:root{color-scheme:dark;--bg:#111216;--card:#1b1d23;--line:#2a2c34;--ink:#f4f4f6;--muted:#9296a5;--accent:#f58b45;--shade:#2a2c32;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,textarea{font:inherit}button{cursor:pointer}#app{width:100%;max-width:570px;margin:auto;min-height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.login{padding:34px 24px}.mark{width:64px;height:64px;border:2px solid var(--accent);border-radius:50%;display:grid;place-items:center;margin-bottom:20px}.mark::after{content:"";width:36px;height:36px;background:var(--accent);border-radius:50%}h1{font-size:56px;letter-spacing:-4px;margin:12px 0}h2{font-size:26px;letter-spacing:-.6px;margin:0}p{margin:0;color:var(--muted);line-height:1.4}.tag{margin-bottom:36px}.form{display:grid;gap:14px;padding:20px 0}label{display:grid;gap:7px;font-size:12px;font-weight:600;color:var(--muted)}input,textarea{width:100%;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:14px;outline:none;min-height:48px;padding:13px 15px;font-size:16px}input:focus,textarea:focus{border-color:var(--accent)}.btn{border:0;background:var(--accent);color:#17131a;font-weight:700;border-radius:15px;padding:15px 18px;min-height:48px}.secondary{background:var(--card);color:var(--ink);border:1px solid var(--line)}.btn:disabled{opacity:.5}.error{color:#ffa8a8;font-size:13px;min-height:0}.header{display:flex;gap:12px;align-items:center;padding:23px 20px;border-bottom:1px solid var(--line)}.header>div{flex:1}.overline{font-size:10px;letter-spacing:2px;color:var(--accent);font-weight:700;padding-bottom:6px}.sub{font-size:14px;color:var(--muted);margin-top:5px}.avatar{width:47px;height:47px;border-radius:16px;background:var(--shade);color:var(--ink);display:grid;place-items:center;font-weight:700;flex:none;border:none}.list{flex:1;min-height:0;padding:0 20px}.row{width:100%;display:flex;align-items:center;gap:13px;padding:17px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;color:var(--ink)}.row-content{flex:1;min-width:0}.row-name{font-size:17px;font-weight:650}.preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time{font-size:12px;color:var(--muted)}.footer{padding:16px 20px;margin-top:auto}.footer button{width:100%}.empty{text-align:center;padding:62px 18px}.empty h2{margin-bottom:8px}.back{background:none;border:0;color:var(--accent);font-size:36px;padding:0 12px 0 0}.content{padding:20px}.chat-view{height:100dvh;max-height:100dvh}.history{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:9px;padding:16px;min-height:0}.bubble{padding:11px 15px;border-radius:18px;max-width:86%;width:max-content;overflow-wrap:anywhere;white-space:pre-wrap;background:var(--card);align-self:flex-start}.mine{align-self:flex-end;background:var(--shade)}.sender{color:#b8bac4;font-size:12px;font-weight:600;margin-bottom:5px}.stamp{color:var(--muted);font-size:10px;text-align:right;margin-top:6px}.composer{display:flex;align-items:flex-end;gap:9px;padding:10px 16px;border-top:1px solid var(--line)}.composer textarea{max-height:110px;resize:vertical;min-height:47px;border-radius:24px}.send{width:48px;height:48px;flex:none;padding:0;border-radius:50%;border:0;background:var(--accent);font-size:27px;color:#17131a;font-weight:700}.status{display:block;padding:4px 20px;color:#ffa8a8;font-size:13px}.profile{padding:24px;display:grid;gap:14px}.profile .avatar{width:68px;height:68px;font-size:22px}.install{margin-top:8px;font-size:13px}
a.install{display:inline-block;color:var(--accent);text-decoration:none;margin-top:12px}
/* Desktop and tablet layout: one data source, two panes on wide screens. */
.workspace{max-width:none!important;min-height:100dvh;display:flex!important;flex-direction:column}.sidebar,.pane{display:flex;flex-direction:column;min-height:0}.sidebar{flex:1}.pane{flex:1;min-width:0}.workspace:not(.list-screen) .sidebar{display:none}.workspace.list-screen .desktop-empty{display:none}.row.selected{background:var(--shade);border-radius:14px;padding-inline:12px;border-left:2px solid var(--accent)}.workspace .content,.workspace .profile{width:min(100%,600px)}.chat-screen{height:100dvh;max-height:100dvh}.chat-screen .chat-view{flex:1;height:auto;max-height:none}.desktop-empty{align-items:center;justify-content:center}.welcome-empty{text-align:center;display:grid;justify-items:center;gap:14px;padding:28px}.welcome-empty .mark{margin:0 0 5px}.welcome-empty h2{font-size:34px}.welcome-empty p{max-width:290px}
@media(min-width:850px){.workspace{display:grid!important;grid-template-columns:minmax(290px,350px) minmax(0,1fr);height:100dvh;max-height:100dvh;overflow:hidden}.workspace .sidebar{display:flex!important;background:#16181d;border-right:1px solid var(--line);height:100%;min-height:0}.workspace .sidebar .list{overflow:auto}.workspace .pane{height:100%;min-height:0;overflow:hidden}.workspace.list-screen .desktop-empty{display:flex}.workspace .back{display:none}.workspace .header{padding:22px 24px}.workspace .sidebar .header{padding:22px 18px}.workspace .history{padding:24px clamp(24px,5vw,76px);max-width:1100px;width:100%;align-self:center}.workspace .composer{padding:18px clamp(24px,5vw,76px) 24px}.workspace .chat-view .header{background:#17191f}.workspace .bubble{max-width:min(75%,680px)}.workspace .content,.workspace .profile{padding:32px}.workspace .chat-view .composer textarea{min-height:50px}.workspace .chat-view .send{width:50px;height:50px}.workspace .desktop-empty{background:radial-gradient(ellipse at center,#181a21 0%,#111216 66%)}}
/* KRUG — editorial dark. A deliberately rare, small warm accent. */
:root{--bg:#101113;--card:#1a1c20;--line:#2a2c31;--ink:#f5f5f5;--muted:#93969e;--accent:#f58b45;--shade:#26282d}
.login{padding-top:46px}.login h1{font-size:53px;letter-spacing:-3.8px;margin:10px 0 12px}.login .tag{font-size:15px;margin-bottom:32px}.mark{width:46px;height:46px;border-color:var(--accent);border-width:1.5px}.mark::after{width:11px;height:11px;background:var(--accent)}.btn{background:#292b31;color:var(--ink);border:1px solid #36383f;border-radius:13px;font-weight:650}.btn:hover,.btn:focus-visible{background:#32343b}.btn.secondary{background:#1a1c20;border:1px solid var(--line)}.overline{color:#a0a2a9;letter-spacing:2.5px}.avatar{color:var(--ink);background:#26282d;border-radius:14px}.back{color:var(--muted)}.send{background:#292b31;border:1px solid #36383f;color:var(--accent)}.sender{color:#a8aab0}.mine{background:#26282d}.bubble{border-radius:15px}.bubble.mine{border-bottom-right-radius:5px}.bubble:not(.mine){border-bottom-left-radius:5px}.row.selected{border-left:2px solid var(--accent);background:#24262b;border-radius:10px}.row:hover{background:#202227}.workspace .sidebar{background:#151619}.workspace .chat-view .header{background:#141518}.workspace .desktop-empty{background:var(--bg)}.welcome-empty .mark{width:52px;height:52px}.welcome-empty h2{font-weight:650}.workspace .history{max-width:1000px}.composer{gap:12px}.composer textarea{background:#1a1c20;border-radius:16px}.send:hover{background:#35373d}a.install,.existing{color:var(--muted)}input:focus,textarea:focus{border-color:#777b85;box-shadow:0 0 0 1px #777b85}.login .form{gap:16px}.login input{border-radius:12px}
