:root,[data-theme=dark]{color-scheme:dark;--bg: #0c0d11;--text: #ece8e1;--muted: #9a958c;--body: #c9c3b8;--line: #262833;--field: #1a1c22;--field-line: #343844;--accent: #6d5efc;--accent-text: #fff;--panel: #16181e;--bad-bg: #3a1618;--bad-text: #ffd0d0;--warn-bg: #3a2e12;--warn-text: #ffe3a3;--ok-bg: #16352b;--ok-text: #b6f3d8;--out: #2a2458;--danger-line: #6a3030;--fp: #d9d3ff;--modal: rgba(0, 0, 0, .55)}[data-theme=light]{color-scheme:light;--bg: #f4f1ea;--text: #1c1915;--muted: #5e584f;--body: #3a342c;--line: #ddd6c8;--field: #fff;--field-line: #cfc6b6;--accent: #3d348b;--accent-text: #fff;--panel: #fff;--bad-bg: #f8d6d6;--bad-text: #6d1218;--warn-bg: #ffe6b3;--warn-text: #5c3b00;--ok-bg: #d7f3e6;--ok-text: #0d4a32;--out: #e4e0ff;--danger-line: #c47a7a;--fp: #2c2466;--modal: rgba(40, 32, 20, .45)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:Segoe UI,system-ui,sans-serif}button,input,textarea,select{font:inherit;color:inherit;background:var(--field);border:1px solid var(--field-line);border-radius:10px;padding:.65rem .8rem}button{cursor:pointer;background:var(--accent);border-color:transparent;color:var(--accent-text)}button.ghost{background:transparent;border-color:var(--field-line);color:var(--text)}button.danger-btn{background:#8f2d2d;color:#fff}button:disabled{opacity:.5;cursor:default}.shell{min-height:100vh;display:flex;flex-direction:column}.top,.row{display:flex;justify-content:space-between;gap:.75rem;align-items:center;flex-wrap:wrap}.brand-name{display:flex;align-items:center;gap:.7rem;min-width:0}.brand-emblem{width:40px;height:40px;border-radius:10px;background:#050505;flex:none;display:block}.brand-lockup{width:min(100%,440px);height:auto;background:#050505;border-radius:16px;border:1px solid #1a1a1a;display:block}.top{padding:.9rem 1.1rem;border-bottom:1px solid var(--line)}.muted{color:var(--muted);font-size:.85rem}.banner{margin:.7rem 1rem 0;padding:.7rem .85rem;border-radius:10px}.banner.bad{background:var(--bad-bg);color:var(--bad-text)}.banner.warn{background:var(--warn-bg);color:var(--warn-text)}.banner.tight{margin:0}.card{width:min(440px,calc(100% - 2rem));margin:4vh auto 2rem;display:grid;gap:.8rem}.card.wide{width:min(760px,calc(100% - 2rem))}h1,h2{margin:0;font-weight:600}p{margin:0;line-height:1.45;color:var(--body)}label{display:grid;gap:.3rem;color:var(--body)}.check{grid-template-columns:auto 1fr;align-items:start}.words{display:grid;grid-template-columns:repeat(2,1fr);gap:.45rem;padding:0;list-style:none;margin:0}.words li{background:var(--panel);border-radius:8px;padding:.45rem .6rem;display:flex;align-items:center;gap:.45rem}.words span{color:var(--muted);min-width:1.4rem}.words strong{flex:1;font-weight:600}.words button,.inline{padding:.3rem .5rem;font-size:.85rem}.pill{border-radius:999px;padding:.2rem .6rem;font-size:.8rem}.pill.ok{background:var(--ok-bg);color:var(--ok-text)}.pill.bad{background:var(--bad-bg);color:var(--bad-text)}.danger{border:1px solid var(--danger-line);padding:.8rem;border-radius:12px;display:grid;gap:.6rem}.chat{flex:1;display:grid;grid-template-columns:280px 1fr;min-height:0}aside{border-right:1px solid var(--line);padding:.8rem;display:flex;flex-direction:column;gap:.45rem}.me{display:flex;justify-content:space-between;color:var(--body);gap:.5rem}.contact{display:flex;justify-content:space-between;background:transparent;color:inherit;text-align:left}.contact.on{border-color:var(--accent)}.thread{display:flex;flex-direction:column;min-height:70vh}.thread header,.composer{padding:.8rem 1rem}.log{flex:1;padding:1rem;display:flex;flex-direction:column;gap:.45rem}.bubble{max-width:min(70%,36rem);background:var(--panel);padding:.55rem .75rem;border-radius:12px}.bubble.out{margin-left:auto;background:var(--out)}.bubble small{display:block;color:var(--muted);margin-bottom:.15rem}.composer{display:flex;gap:.5rem}.composer input{flex:1}.empty{margin:auto;color:var(--muted);padding:2rem}.modal,.flash-gate{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--modal);display:grid;place-items:center;padding:1rem;z-index:5}.flash-gate{z-index:20;background:#000000b8}.flash-card{width:min(640px,100%);display:grid;gap:.9rem;padding:1.2rem;border-radius:16px;border:3px solid #fff;animation:phrase-flash 1.4s ease-in-out infinite}.flash-card h1,.flash-card p,.flash-card li{color:inherit}.flash-card button.ghost{color:inherit;border-color:currentColor;background:transparent}.flash-card ul{margin:0;padding-left:1.1rem;display:grid;gap:.35rem}@keyframes phrase-flash{0%,to{background:#6d1010;color:#fff}50%{background:#ffbf47;color:#1a0d00}}.secret-out{font-family:ui-monospace,monospace;font-size:1.15rem;line-height:1.5;padding:.9rem;border-radius:12px;background:var(--panel);word-break:break-word}.ticker{min-height:2.8rem;color:var(--body)}.back{justify-self:start}.fp{display:block;white-space:pre-wrap;word-break:break-all;color:var(--fp)}code{font-family:ui-monospace,monospace}.stack{display:grid;gap:.45rem}@media(max-width:800px){.chat,.words{grid-template-columns:1fr}.thread{min-height:60vh}.bubble{max-width:90%}.top{align-items:flex-start}}@media(prefers-reduced-motion:reduce){.flash-card{animation:none;background:#6d1010;color:#fff}}
