:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#eeeef4;background:#101117;font-size:16px;color-scheme:dark;--muted:#a3a3b6;--accent:#b4a1ff;--panel:#191a24;--border:#30313e}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.primary{border:0;background:var(--accent);color:#1b1431;border-radius:10px;padding:12px 20px;font-weight:650}.primary:hover{background:#c4b6ff}.quiet{color:#c1c1d1;background:transparent;border:1px solid transparent;border-radius:8px;padding:9px 12px;font-size:.875rem}.quiet:hover{background:#262733;border-color:var(--border)}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{font-size:.75rem;letter-spacing:.15em;color:var(--accent);font-weight:600}.gate{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 25%,#29213d 0,transparent 55%)}.gate-card{text-align:center;padding:48px 24px;max-width:620px}.mark{display:grid;place-items:center;margin:36px auto 24px;width:74px;height:74px;border:1px solid #64517c;border-radius:22px;background:#30253e;color:#d1bcfa;font:italic 48px Georgia,serif}.gate h1,.welcome h1{font:normal 3.2rem/1.12 Georgia,"Times New Roman",serif;letter-spacing:-.035em;margin:16px 0 20px}.gate p{line-height:1.75;color:var(--muted)}.login-button{display:inline-block;margin:24px 0 8px;min-width:260px}.error{color:#ffadbd;font-size:.875rem;max-width:460px;line-height:1.5}.workspace{display:grid;grid-template-columns:278px 1fr;height:100dvh}aside{background:#16171f;border-right:1px solid var(--border);padding:30px 18px 16px;display:flex;flex-direction:column;min-height:0}.brand{font:1.5rem Georgia,serif;padding:0 12px;margin-bottom:32px}.brand span{display:block;font: .75rem system-ui,sans-serif;color:var(--muted);margin-top:10px;letter-spacing:.08em}aside>.primary{width:100%;text-align:left}.search{display:block;margin:20px 0}input,textarea,select{width:100%;background:#12131b;color:#ecebf6;border:1px solid var(--border);border-radius:8px;padding:12px}input::placeholder,textarea::placeholder{color:#88899d}.search input{font-size:.875rem;background:transparent}.list-label{padding:10px 12px;color:#8d8d9f}nav{flex:1;overflow-y:auto;margin:4px -6px;padding:0 6px}.chat-item{display:block;width:100%;text-align:left;border:0;background:transparent;color:#b9bacd;padding:14px 12px;border-radius:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;margin:3px 0}.chat-item.active{background:#302a43;color:#e0d6ff}.chat-item:hover{background:#252631}.empty-list{font-size:.875rem;color:var(--muted);padding:12px;line-height:1.6}.sidebar-bottom{border-top:1px solid var(--border);padding:16px 8px 0;display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:.875rem;color:var(--muted)}main{display:flex;flex-direction:column;min-width:0;min-height:0}header{min-height:90px;border-bottom:1px solid #262733;padding:18px 32px;display:flex;align-items:center;gap:8px}.header-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.header-title strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.header-title span{font-size:.75rem;color:var(--muted)}.scroll-area{overflow-y:auto;flex:1;min-height:0;scroll-behavior:smooth}.welcome{max-width:880px;margin:0 auto;padding:clamp(45px,9vh,120px) 40px 32px}.welcome p{color:var(--muted);font-size:1.125rem;line-height:1.8}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:40px}.suggestions button{border:1px solid var(--border);border-radius:12px;background:#1a1b25;text-align:left;color:var(--muted);font-size:.875rem;line-height:1.6;padding:22px 18px;min-height:130px}.suggestions button:hover{border-color:#776296;background:#231e31}.suggestions span{display:block;color:#f0eaff;font-size:1rem;margin-bottom:12px}.messages{max-width:850px;margin:auto;padding:24px 40px 36px}.message{margin:16px 0 36px;line-height:1.85;overflow-wrap:anywhere}.message .speaker{display:flex;align-items:center;gap:12px;margin-bottom:10px;color:var(--accent);font-size:.875rem;font-weight:600}.message.user{padding:20px 24px;background:#20212c;border:1px solid #2d2e3b;border-radius:14px}.message.user .speaker{color:#b4b4c5}.message-content{white-space:pre-wrap}.message .quiet{margin-left:auto;padding:4px 8px;font-weight:400}.composer-wrap{width:100%;max-width:850px;margin:auto;padding:0 40px 16px}#composer{background:#1c1d27;border:1px solid #42404f;border-radius:14px;padding:8px}#composer:focus-within{border-color:#9c86d4}#prompt{resize:vertical;min-height:76px;max-height:240px;background:transparent;border:0;padding:12px 14px;line-height:1.6}#prompt:focus{outline:0}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 6px 6px}.composer-footer span,.footnote{font-size:.75rem;color:#9191a5}.footnote{text-align:center;margin:12px 0 0}.notice{font-size:.875rem;color:#e8b2bf;line-height:1.5;margin:8px 4px}#retry{margin:0 0 8px;color:var(--accent)}dialog{color:inherit;background:#1b1c27;border:1px solid #4c455d;border-radius:16px;width:min(600px,92vw);padding:28px}dialog::backdrop{background:#07070dcc;backdrop-filter:blur(4px)}dialog h2{margin:0 0 24px;font-size:1.4rem}dialog label{display:block;font-size:.875rem;margin:18px 0}dialog input,dialog textarea,dialog select{display:block;margin-top:8px}.dialog-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}.danger{border:0;background:transparent;color:#ffb5c0;font-size:.875rem;margin-right:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.mobile{display:none}
@media(max-width:1050px){.workspace{grid-template-columns:240px 1fr}.suggestions{grid-template-columns:1fr}.suggestions button{min-height:0;padding:16px}.suggestions span{margin-bottom:4px}header{padding:16px 20px}.welcome{padding-top:50px}.composer-footer span{display:none}}
@media(max-width:700px){.workspace{display:block}main{height:100dvh}aside{display:none;position:fixed;inset:74px 0 0 0;z-index:10;width:min(340px,90vw);box-shadow:20px 0 60px #0008}.workspace.menu-open aside{display:flex}.mobile{display:block}header{min-height:74px;padding:12px;gap:0}.header-title{margin-left:8px}header .quiet{font-size:.75rem;padding:8px}.header-title span{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.welcome{padding:40px 24px 20px}.welcome h1,.gate h1{font-size:2.6rem}.welcome p{font-size:1rem}.suggestions{gap:10px;margin-top:24px}.messages{padding:20px 18px}.message.user{padding:16px}.composer-wrap{padding:0 12px 14px}.footnote{font-size:.75rem;line-height:1.5}.composer-footer{justify-content:flex-end}.eyebrow{font-size:.75rem}.gate-card>.eyebrow{letter-spacing:.08em}dialog{padding:22px}}
