:root{--bg-main:#050006;--bg-alt:#0b020d;--accent:#ff3b3b;--accent-soft:rgba(255,59,59,.2);--text-primary:#f5f5f5;--text-secondary:#b3a7c7;--terminal-green:#9bffb0;--border-subtle:hsla(0,0%,100%,.08)}*,:after,:before{box-sizing:border-box}body,html{padding:0;margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,SF Mono,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;background:radial-gradient(circle at top,#08030f 0,#050006 55%,#000 100%);color:var(--text-primary)}body{min-height:100vh;position:relative;overflow-x:hidden}a{color:inherit;text-decoration:none}body:before{background-image:radial-gradient(circle,hsla(0,0%,100%,.16) 1px,transparent 0),radial-gradient(circle,hsla(0,0%,100%,.1) 1px,transparent 0),radial-gradient(circle,hsla(0,0%,100%,.06) 1px,transparent 0);background-size:3px 3px,5px 5px,8px 8px;opacity:.22;animation:star-noise 160s linear infinite}body:after,body:before{content:"";pointer-events:none;position:fixed;inset:0;z-index:0}body:after{background:repeating-radial-gradient(circle,rgba(255,59,59,.05) 0,rgba(255,59,59,.05) 2px,transparent 3px,transparent 9px);opacity:.11;mix-blend-mode:overlay;animation:ripples 26s ease-in-out infinite}.monitor-frame{min-height:100vh;width:100%;padding:1.5rem;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;z-index:1;background:radial-gradient(circle at 50% -18%,rgba(255,59,59,.32),transparent 55%),radial-gradient(circle at 50% 120%,rgba(40,0,80,.52),transparent 65%),linear-gradient(180deg,#030005,#010003 40%,#000)}.monitor-frame:before{inset:-35%;background:radial-gradient(circle at 20% 20%,rgba(255,59,59,.32),transparent 65%),radial-gradient(circle at 82% 18%,rgba(120,90,255,.25),transparent 65%),radial-gradient(circle at 70% 80%,rgba(255,120,160,.25),transparent 75%);opacity:.26;animation:chaos-drift 42s ease-in-out infinite}.monitor-frame:after,.monitor-frame:before{content:"";position:absolute;mix-blend-mode:screen;pointer-events:none}.monitor-frame:after{inset:-45%;background:radial-gradient(circle,rgba(255,0,60,.18) 0,transparent 70%);filter:blur(90px);opacity:.75;animation:halo-spin 70s linear infinite}@media (min-width:900px){.monitor-frame{padding:2.5rem 1.5rem 3.5rem}}.terminal-root{width:100%;max-width:1040px;display:flex;align-items:center;justify-content:center;position:relative;z-index:2}.terminal-shell{width:100%;border-radius:18px;border:1px solid var(--border-subtle);background:radial-gradient(circle at top left,rgba(255,59,59,.15),transparent 55%),radial-gradient(circle at bottom right,rgba(155,255,176,.06),transparent 55%),linear-gradient(135deg,var(--bg-main),var(--bg-alt));box-shadow:0 0 40px rgba(0,0,0,.8),0 40px 80px rgba(0,0,0,.9),0 0 50px rgba(255,59,59,.35);overflow:hidden;position:relative}@media (min-width:900px){.terminal-shell:after{content:"";position:absolute;left:50%;bottom:-26px;transform:translateX(-50%);width:180px;height:20px;border-radius:999px;background:radial-gradient(circle at top,#222,#050003);box-shadow:0 6px 24px rgba(0,0,0,.9),0 0 18px rgba(0,0,0,.7)}}.terminal-shell:before{content:"";position:absolute;inset:0;background-image:linear-gradient(hsla(0,0%,100%,.05) 1px,transparent 0);background-size:100% 2px;opacity:.15;pointer-events:none;mix-blend-mode:soft-light}.terminal-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border-subtle);background:radial-gradient(circle at top left,rgba(255,59,59,.5),rgba(10,0,16,.98));position:relative;z-index:1}.terminal-dots{display:flex;gap:.45rem}.terminal-dot{width:10px;height:10px;border-radius:999px;background-color:hsla(0,0%,100%,.08)}.terminal-dot.red{background-color:#ff5f57}.terminal-dot.amber{background-color:#ffbd2e}.terminal-dot.green{background-color:#28c840}.terminal-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.09em;color:var(--text-secondary)}.terminal-status{font-size:.7rem;text-transform:uppercase;letter-spacing:.15em;color:var(--terminal-green)}.terminal-body{padding:1.25rem;position:relative;z-index:1}@media (max-width:600px){.terminal-body{padding:.9rem}}.terminal-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-gap:1.5rem;gap:1.5rem}@media (max-width:900px){.terminal-grid{grid-template-columns:minmax(0,1fr)}}.terminal-main{min-height:220px}.terminal-line{font-size:.9rem;line-height:1.5;color:var(--terminal-green);white-space:pre-wrap;word-wrap:break-word}.terminal-line--muted{color:var(--text-secondary)}.cursor{display:inline-block;width:.6rem;margin-left:.15rem;background-color:var(--terminal-green);box-shadow:0 0 12px rgba(155,255,176,.9);animation:cursor-blink 1.05s steps(1) infinite}@keyframes cursor-blink{0%,49%{opacity:1}50%,to{opacity:0}}.logo-wrap{display:flex;align-items:center;gap:.9rem;margin-bottom:.75rem}.logo-image{width:52px;height:52px;border-radius:50%;overflow:hidden;box-shadow:0 0 30px rgba(255,59,59,.75)}.logo-meta{display:flex;flex-direction:column;gap:.15rem}.logo-name{font-size:1.05rem;letter-spacing:.18em;text-transform:uppercase;color:var(--text-primary)}.logo-tagline{font-size:.75rem;color:var(--text-secondary)}@media (max-width:480px){.logo-wrap{align-items:flex-start}.logo-image{width:46px;height:46px}.logo-name{font-size:.95rem}.logo-tagline{font-size:.7rem}}.prompt-line{display:flex;align-items:baseline;gap:.4rem;margin-top:.5rem}.prompt-label{color:var(--accent)}.scanline{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(180deg,rgba(0,0,0,.7) 0,rgba(0,0,0,.7) 1px,transparent 0,transparent 2px);mix-blend-mode:soft-light;opacity:.55;animation:scan 6s linear infinite}@media (max-width:600px){.scanline{opacity:.3}}@keyframes scan{0%{transform:translateY(-100%)}to{transform:translateY(100%)}}.sidebar{border-radius:14px;border:1px solid var(--border-subtle);padding:.9rem .9rem .75rem;background:radial-gradient(circle at top,rgba(255,59,59,.25),rgba(5,0,10,.98));position:relative;overflow:hidden}.sidebar:before{content:"";position:absolute;inset:-40%;opacity:.25;background:radial-gradient(circle at top right,hsla(0,0%,100%,.15),transparent 60%);mix-blend-mode:screen}.sidebar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem;position:relative;z-index:1}.sidebar-title{font-size:.76rem;text-transform:uppercase;letter-spacing:.16em;color:var(--text-secondary)}.sidebar-pill{font-size:.66rem;text-transform:uppercase;letter-spacing:.12em;padding:.15rem .6rem;border-radius:999px;border:1px solid hsla(0,0%,100%,.24);color:#ffd4e4}.sidebar-content{font-size:.78rem;color:var(--text-secondary);line-height:1.6;position:relative;z-index:1}.sidebar-list{list-style:none;padding-left:0;margin:.35rem 0 .4rem}.sidebar-list li:before{content:"▸";color:var(--accent);margin-right:.4rem}.chaos-shell{background:radial-gradient(circle at top,rgba(255,59,59,.18),transparent 55%),radial-gradient(circle at bottom right,rgba(155,255,176,.08),transparent 60%),linear-gradient(145deg,#040007,#050006,#020003)}.chaos-header{background:radial-gradient(circle at top left,rgba(255,59,59,.7),#0a000f 60%)}.chaos-body{padding:1.1rem;position:relative;display:flex;flex-direction:column;gap:.9rem}@media (max-width:640px){.chaos-body{padding:.85rem}}.chaos-top-row{flex-wrap:wrap;gap:.9rem;justify-content:space-between}.chaos-id-block,.chaos-top-row{display:flex;align-items:center}.chaos-id-block{gap:.75rem}.chaos-logo{width:80px;height:80px;border-radius:18px;overflow:hidden;box-shadow:0 0 30px rgba(255,59,59,.9),0 0 60px rgba(255,59,59,.4);background:radial-gradient(circle at center,#130008 0,#050006 80%)}@media (max-width:480px){.chaos-logo{width:72px;height:72px;border-radius:16px}.chaos-id-block{align-items:flex-start}}.chaos-id-text{display:flex;flex-direction:column;gap:.2rem}.chaos-name{font-size:1rem;letter-spacing:.25em;text-transform:uppercase}.chaos-tagline{font-size:.75rem;color:var(--text-secondary)}.chaos-actions-desktop{display:flex;flex-direction:column;gap:.5rem;align-items:flex-end}.chaos-banner{min-width:220px;padding:.55rem .75rem;border-radius:10px;border:1px solid hsla(0,0%,100%,.18);background:radial-gradient(circle at top,rgba(0,0,0,.7),rgba(20,0,28,.95));font-size:.68rem;text-transform:uppercase;letter-spacing:.14em;color:var(--text-secondary)}.chaos-banner-line+.chaos-banner-line{margin-top:.15rem}.chaos-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);grid-gap:1rem;gap:1rem}@media (max-width:900px){.chaos-grid{grid-template-columns:minmax(0,1fr)}}.chaos-chat-panel{border-radius:14px;border:1px solid var(--border-subtle);background:radial-gradient(circle at top,rgba(0,0,0,.85),rgba(3,0,7,.98));padding:.75rem .8rem;display:flex;flex-direction:column;gap:.55rem}.chaos-chat-header{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.25rem}.chaos-chat-header-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.16em;color:var(--text-secondary)}.chaos-send-main{border-radius:999px;border:1px solid hsla(0,0%,100%,.25);background:radial-gradient(circle at top right,rgba(255,59,59,.9),rgba(40,0,15,.98));color:var(--text-primary);font-size:.7rem;padding:.45rem 1.1rem;text-transform:uppercase;letter-spacing:.18em;cursor:pointer;white-space:nowrap}.chaos-send-main:hover:not(:disabled){box-shadow:0 0 20px rgba(255,59,59,.85)}.chaos-send-main:disabled{opacity:.6;cursor:default}.chaos-intro{border-bottom:1px solid hsla(0,0%,100%,.06);padding-bottom:.4rem}.chaos-intro-text{font-size:.78rem;color:var(--text-secondary)}.chaos-chat-log{margin-top:.3rem;max-height:260px;overflow-y:auto;padding-right:.3rem}@media (min-width:900px){.chaos-chat-log{max-height:320px}}.msg-block{margin-bottom:.55rem;padding:.55rem .65rem;border-radius:10px;position:relative;overflow:hidden}.msg-ai{border-left:3px solid var(--accent);background:radial-gradient(circle at top left,rgba(255,59,59,.22),rgba(10,0,12,.95));box-shadow:0 0 16px rgba(255,59,59,.35)}.msg-user{border-left:3px solid var(--terminal-green);background:radial-gradient(circle at top right,rgba(155,255,176,.18),rgba(3,8,6,.97));box-shadow:0 0 12px rgba(155,255,176,.25)}.msg-header{font-size:.68rem;text-transform:uppercase;letter-spacing:.16em;display:flex;align-items:center;gap:.35rem;margin-bottom:.2rem}.msg-label{font-weight:600}.msg-sep{opacity:.6}.msg-meta{color:var(--text-secondary)}.msg-body{font-size:.8rem;line-height:1.6;color:var(--text-primary)}.msg-strong{font-weight:600;color:#ffb3b3}.chaos-side-panel{border-radius:14px;border:1px solid var(--border-subtle);background:radial-gradient(circle at bottom,rgba(255,59,59,.16),rgba(4,0,9,.98));padding:.8rem .8rem .7rem;font-size:.78rem;color:var(--text-secondary);display:flex;flex-direction:column;gap:.65rem}.chaos-side-section+.chaos-side-section{border-top:1px solid hsla(0,0%,100%,.08);padding-top:.6rem}.chaos-side-title{font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;margin-bottom:.2rem}.chaos-side-text{margin:.1rem 0}.chaos-side-list{list-style:none;padding-left:0;margin:.25rem 0 0}.chaos-side-list li:before{content:"▸";color:var(--accent);margin-right:.35rem}.chaos-input-row{margin-top:.75rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.chaos-input-label{font-size:.75rem;color:var(--accent)}.chaos-input{flex:1 1;min-width:180px;border-radius:999px;border:1px solid hsla(0,0%,100%,.2);padding:.45rem .9rem;font-size:.8rem;background:rgba(5,0,10,.96);color:var(--text-primary);outline:none}.chaos-input::placeholder{color:rgba(190,180,220,.7)}.chaos-input:focus{border-color:var(--accent);box-shadow:0 0 0 1px rgba(255,59,59,.45)}.chaos-send-mobile{background:radial-gradient(circle at top left,rgba(255,59,59,.8),rgba(35,0,10,.98));font-size:.72rem;padding:.4rem .9rem}.chaos-send,.chaos-send-mobile{border-radius:999px;border:1px solid hsla(0,0%,100%,.22);color:var(--text-primary);text-transform:uppercase;letter-spacing:.16em;cursor:pointer;white-space:nowrap}.chaos-send{background:radial-gradient(circle at top left,rgba(255,59,59,.9),rgba(35,0,10,.98));font-size:.75rem;padding:.45rem .95rem}.chaos-send-mobile:hover:not(:disabled),.chaos-send:hover:not(:disabled){box-shadow:0 0 18px rgba(255,59,59,.8)}.chaos-send-mobile:disabled,.chaos-send:disabled{opacity:.6;cursor:default}@media (min-width:900px){.chaos-send-mobile{display:none}}@media (max-width:899px){.chaos-chat-header{flex-direction:column;align-items:stretch}.chaos-send-main{width:100%;text-align:center}}.chaos-footer{font-size:.66rem}.chaos-footer,.chaos-status-bar{margin-top:.4rem;color:var(--text-secondary)}.chaos-status-bar{padding:.45rem .8rem;border-top:1px solid hsla(0,0%,100%,.08);font-size:.68rem;display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between}.chaos-status-item{display:flex;align-items:baseline;gap:.3rem}.chaos-status-label{text-transform:uppercase;letter-spacing:.16em;font-size:.62rem;opacity:.8}.chaos-status-value{font-size:.7rem}.chaos-status-safe{color:var(--terminal-green)}@media (max-width:480px){.terminal-title{font-size:.7rem;max-width:60%;white-space:normal;line-height:1.3}.terminal-status{font-size:.65rem}}.chaos-mobile-top{padding:1.2rem 1.1rem .8rem;gap:1.4rem}.chaos-mobile-hero,.chaos-mobile-top{display:flex;flex-direction:column;align-items:center}.chaos-mobile-hero{gap:.9rem}.chaos-logo-mobile{width:112px;height:112px;border-radius:22px}.chaos-id-text-center{text-align:center}.chaos-mobile-actions{width:100%;max-width:360px;display:flex;flex-direction:column;gap:.55rem}.mode-row{margin-top:.5rem;display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center}.mode-row-desktop{margin-bottom:.4rem}.mode-row-mobile{width:100%}.mode-btn{min-width:86px;padding:.32rem .75rem;border-radius:999px;border:1px solid hsla(0,0%,100%,.26);background:rgba(2,0,4,.9);font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--text-primary);cursor:pointer}.mode-btn:hover:not(:disabled){border-color:var(--accent);box-shadow:0 0 12px rgba(255,59,59,.65)}.mode-btn-active{background:radial-gradient(circle at top,var(--accent),#8b0000);color:#ffeaea;box-shadow:0 0 18px rgba(255,59,59,.8)}.mode-desc{font-size:.76rem;opacity:.9}@keyframes chaos-drift{0%{transform:translateZ(0) scale(1)}50%{transform:translate3d(-4%,-3%,0) scale(1.05)}to{transform:translate3d(3%,4%,0) scale(1)}}@keyframes halo-spin{0%{transform:rotate(0deg) scale(1)}to{transform:rotate(1turn) scale(1)}}@keyframes star-noise{0%{transform:translateY(0)}to{transform:translateY(-4%)}}@keyframes ripples{0%{transform:scale(1);opacity:.11}50%{transform:scale(1.03);opacity:.2}to{transform:scale(1);opacity:.11}}