:root{--bg:#fff;--surface:#fff;--surface-2:#f4f4f5;--text:#18181b;--muted:#71717a;--border:#e4e4e7;--accent:#18181b;--accent-text:#fff;--error:#b91c1c;--ok:#15803d;--term-bg:#0d0f12;--term-text:#d6dae0;--term-dim:#7d8590;--term-ok:#4ade80;--ring:0 0 0 2px color-mix(in srgb, var(--text) 25%, transparent);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#111113;--surface:#111113;--surface-2:#1f1f23;--text:#ececef;--muted:#8e8e96;--border:#2a2a2f;--accent:#ececef;--accent-text:#111113;--error:#f87171;--ok:#4ade80;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#111113;--surface:#111113;--surface-2:#1f1f23;--text:#ececef;--muted:#8e8e96;--border:#2a2a2f;--accent:#ececef;--accent-text:#111113;--error:#f87171;--ok:#4ade80;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font:15px/1.6 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,sans-serif}button,textarea,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}:focus-visible{box-shadow:var(--ring);outline:none}h1,h2,h3{letter-spacing:-.01em;font-weight:600}.muted{color:var(--muted)}.error{color:var(--error);text-align:center;margin:0 0 8px;font-size:.875rem}.app{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:5;background:var(--bg);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:10px max(16px,50% - 360px);display:flex;position:sticky;top:0}.brand{letter-spacing:.04em;font-size:1rem;font-weight:600}.actions{align-items:center;gap:2px;display:flex}.pill{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:6px;font-size:.8rem}.icon-button{width:34px;height:34px;color:var(--muted);background:0 0;border:none;border-radius:8px;place-items:center;display:inline-grid}.icon-button:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.icon-button[aria-pressed=true]{color:var(--text)}.mic{align-self:flex-end}.mic.on,.mic.on:hover:not(:disabled){color:var(--error)}.icon-button svg,.send svg{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.thread{flex-direction:column;flex:1;gap:20px;width:100%;max-width:720px;margin:0 auto;padding:28px 16px 8px;display:flex}.preview-banner{color:var(--muted);text-align:center;margin:0;font-size:.8rem}.empty{text-align:center;flex-direction:column;align-items:center;gap:6px;margin:auto 0;padding:32px 0;display:flex}.empty h1{margin:0;font-size:1.5rem}.empty p{margin:0;font-size:.9rem}.chips{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:20px;display:flex}.chip{border:1px solid var(--border);color:var(--muted);background:0 0;border-radius:8px;padding:7px 12px;font-size:.875rem}.chip:hover:not(:disabled){color:var(--text);border-color:var(--muted)}.row{align-items:center;gap:8px;display:flex}.row.user{justify-content:flex-end}.pin{opacity:0;filter:grayscale();background:0 0;border:none;padding:4px;font-size:.85rem}.row.user:hover .pin,.pin:focus-visible{opacity:.5}.pin:hover{opacity:1!important}.pin[aria-pressed=true]{opacity:1;filter:none}@media (hover:none){.pin{opacity:.4}}.memory-panel{border:1px solid var(--border);border-radius:10px;width:calc(100% - 32px);max-width:688px;margin:16px auto 0;padding:14px 16px}.memory-panel h2{margin:0 0 8px;font-size:.9rem}.memory-panel p{margin:0;font-size:.875rem}.memory-panel ul{gap:4px;margin:0;padding:0;list-style:none;display:grid}.memory-panel li{border-bottom:1px solid var(--border);overflow-wrap:anywhere;justify-content:space-between;gap:12px;padding:6px 0;font-size:.875rem;display:flex}.memory-panel li:last-child{border-bottom:none}.memory-panel button.link{flex-shrink:0;font-size:.8rem}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.row.user .bubble{background:var(--surface-2);border-radius:14px;max-width:min(80%,560px);padding:8px 14px}.row.assistant .bubble{max-width:100%}.typing{gap:4px;padding:8px 0;display:flex}.typing span{background:var(--muted);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite blink}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}@keyframes fade{0%{opacity:0}}.composer-wrap{width:100%;max-width:720px;padding:8px 16px max(12px, env(safe-area-inset-bottom));background:var(--bg);margin:0 auto;position:sticky;bottom:0}.composer{border:1px solid var(--border);background:var(--surface);border-radius:14px;align-items:flex-end;gap:6px;padding:6px 6px 6px 14px;display:flex}.composer:focus-within{border-color:var(--muted)}.composer textarea{resize:none;background:0 0;border:none;outline:none;flex:1;max-height:200px;padding:7px 0;line-height:1.5}.composer textarea:focus-visible{box-shadow:none}.send{background:var(--accent);width:34px;height:34px;color:var(--accent-text);border:none;border-radius:9px;flex:none;place-items:center;display:inline-grid}.fineprint{text-align:center;color:var(--muted);margin:6px 0 0;font-size:.72rem}.signin{justify-content:center;align-items:center;padding:16px}.signin-card{flex-direction:column;gap:28px;width:100%;max-width:360px;display:flex}.signin-intro{text-align:center;flex-direction:column;align-items:center;gap:8px;display:flex}.signin-intro h1{letter-spacing:.04em;margin:0;font-size:1.75rem}.signin-intro p{margin:0 0 16px;font-size:.9rem}.signin-why{border-top:1px solid var(--border);padding-top:24px}.signin-why h2{text-align:center;margin:0 0 10px;font-size:.9rem}.google-button{border:1px solid var(--border);background:var(--surface);border-radius:10px;justify-content:center;align-items:center;gap:10px;width:100%;padding:10px 16px;font-weight:500;display:inline-flex}.google-button:hover{background:var(--surface-2)}.google-button svg{width:18px;height:18px}.corner{position:fixed;top:10px;right:10px}.paywall-backdrop{z-index:20;background:#0006;place-items:center;padding:16px;animation:.15s ease-out fade;display:grid;position:fixed;inset:0}.paywall{border:1px solid var(--border);background:var(--surface);text-align:center;border-radius:14px;width:100%;max-width:720px;max-height:calc(100dvh - 32px);padding:28px;overflow-y:auto}.paywall h2{margin:6px 0 8px;font-size:1.25rem}.paywall>p{max-width:480px;color:var(--muted);margin:0 auto;font-size:.9rem}.paywall .eyebrow{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0;font-size:.72rem}.plans{text-align:left;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:22px 0 14px;display:grid}.plan{border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:6px;padding:16px;display:flex;position:relative}.plan:has(.badge){border-color:var(--text)}.plan h3,.plan .price{margin:0}.plan h3{font-size:.9rem}.plan .price{font-size:1.25rem;font-weight:600}.plan ul{color:var(--muted);flex:1;margin:0;padding-left:18px;font-size:.85rem}.badge{background:var(--accent);color:var(--accent-text);border-radius:6px;padding:1px 8px;font-size:.7rem;position:absolute;top:-9px;right:12px}button.primary{background:var(--accent);color:var(--accent-text);border:none;border-radius:9px;padding:9px 14px;font-weight:500}.paywall>button.primary{margin-top:18px;padding:10px 20px}button.link{color:var(--muted);background:0 0;border:none;font-size:.875rem;text-decoration:underline}@media (max-width:520px){.pill{display:none}.row.user .bubble{max-width:88%}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.signin-joke{text-align:left;align-items:center;gap:12px;display:flex}.mascot{flex:none;width:84px;height:84px;overflow:visible}.mascot .head{transform-origin:60px 100px;animation:3.2s ease-in-out infinite huff}.mascot .brow,.mascot .mouth{fill:none;stroke:#2b2135;stroke-width:3.2px;stroke-linecap:round}.mascot .eye{fill:#2b2135;transform-box:fill-box;transform-origin:50%;animation:3.2s ease-in-out infinite squint}.mascot .vein path{fill:none;stroke:#ef4444;stroke-width:3px;stroke-linecap:round}.mascot .vein{animation:.8s ease-in-out infinite vein}.mascot .puffs circle{fill:var(--muted);opacity:0;transform-box:fill-box;transform-origin:50%;animation:2.4s ease-out infinite puff}.mascot .puffs circle:nth-child(2){animation-delay:.4s}.mascot .puffs circle:nth-child(3){animation-delay:.8s}@keyframes huff{0%,60%,to{transform:rotate(0)}66%{transform:rotate(-5deg)}72%{transform:rotate(5deg)}78%{transform:rotate(-4deg)}84%{transform:rotate(3deg)}}@keyframes squint{0%,60%,to{transform:scaleY(1)}66%,84%{transform:scaleY(.35)}}@keyframes vein{0%,to{transform:translate(93px,40px)scale(.85)}50%{transform:translate(93px,40px)scale(1.12)}}@keyframes puff{0%{opacity:0;transform:translateY(8px)scale(.5)}30%{opacity:.55}to{opacity:0;transform:translateY(-16px)scale(1.3)}}.signin-note{color:var(--muted);font-size:.82rem;line-height:1.55;margin:0!important}.signin-note strong{color:var(--text)}@media (max-width:380px){.signin-joke{text-align:center;flex-direction:column-reverse}}code{background:var(--surface-2);border-radius:5px;padding:1px 5px;font:.85em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.term{border:1px solid var(--border);background:var(--surface-2);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;max-width:100%;max-height:320px;margin:0;padding:10px 12px;font:.8rem/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:auto}.term-cmd{font-weight:600}.term .exit{color:var(--error)}.row.assistant:has(.term){display:block}.approve{border:1px solid var(--text);background:var(--surface);border-radius:12px;flex-direction:column;gap:8px;margin-bottom:8px;padding:12px;display:flex}.approve p{margin:0;font-size:.85rem}.approve-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.approve-actions.working{justify-content:center;margin-bottom:8px;font-size:.85rem}.toggle{color:var(--muted);align-items:center;gap:6px;font-size:.85rem;display:inline-flex}.status{vertical-align:middle;border-radius:6px;margin-left:6px;padding:1px 8px;font-size:.72rem;font-weight:500}.box-actions{flex-wrap:wrap;align-items:center;gap:14px;margin-top:10px;display:flex}.row.assistant:has(.job){flex-direction:column;align-items:flex-start;gap:4px}.job{color:var(--muted);flex-wrap:wrap;align-items:center;gap:10px;margin:0;font-size:.8rem;display:flex}.job-done{color:var(--text)}.job-failed{color:var(--error)}.connect{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:12px;font-size:.875rem;display:flex}.notice{margin:0 0 12px;font-size:.85rem}.memory-panel ul.upcoming{margin-bottom:14px}.connect select{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;border-radius:6px;margin-left:4px;padding:2px 4px}.speaker-bar{border:1px solid var(--border);color:var(--text);border-radius:10px;justify-content:space-between;padding:8px 12px}.row.assistant:has(.rate){flex-direction:column;align-items:flex-start;gap:4px}.rate{opacity:.55;align-items:center;gap:2px;font-size:.8rem;transition:opacity .15s;display:flex}.row.assistant:hover .rate,.rate:focus-within{opacity:1}.rate:has([aria-pressed=true]){opacity:1}.rate button{cursor:pointer;filter:grayscale();background:0 0;border:1px solid #0000;border-radius:6px;padding:2px 6px;font-size:.85rem;line-height:1.4}.rate button[aria-pressed=true]{border-color:var(--border);background:var(--surface-2);filter:none}.rate button:focus-visible{box-shadow:var(--ring);outline:none}.rate .muted{margin-left:6px}.correct{flex-direction:column;gap:8px;width:100%;max-width:560px;display:flex}.correct textarea{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);font:inherit;resize:vertical;border-radius:10px;padding:8px 10px;font-size:.875rem}.correct div{align-items:center;gap:12px;display:flex}.memory-panel h2.section-gap{margin-top:20px}.version{white-space:nowrap;font-variant-numeric:tabular-nums}.brand-group{align-items:center;gap:6px;min-width:0;display:inline-flex}.chat-list{z-index:20;background:var(--surface-2);border-right:1px solid var(--border);visibility:hidden;flex-direction:column;width:min(280px,85vw);transition:transform .2s,visibility .2s;display:flex;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.chat-list.open{visibility:visible;transform:none}.chat-list-backdrop{z-index:19;background:#00000059;position:fixed;inset:0}.chat-list-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:10px 10px 10px 16px;display:flex}.chat-list-body{flex:1;padding:6px 8px 16px;overflow-y:auto}.chat-list-empty{padding:12px 8px;font-size:.85rem}.chat-list h3{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin:14px 8px 4px;font-size:.72rem;font-weight:600}.chat-list ul{margin:0;padding:0;list-style:none}.chat-list li{border-radius:8px;align-items:center;display:flex}.chat-list li:hover,.chat-list li.active{background:var(--surface)}.chat-item{min-width:0;color:var(--text);font:inherit;text-align:left;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;background:0 0;border:none;flex:1;padding:8px;font-size:.875rem;overflow:hidden}.chat-item:focus-visible{box-shadow:var(--ring);border-radius:8px;outline:none}.chat-delete{opacity:0;width:28px;height:28px}.chat-list li:hover .chat-delete,.chat-list li.active .chat-delete,.chat-delete:focus-visible{opacity:1}@media (hover:none){.chat-delete{opacity:1}}@media (min-width:1100px){.chat-list{visibility:visible;transform:none}.chat-list-backdrop,.list-toggle{display:none}.app.with-list{padding-left:280px}}.bubble.rich{white-space:normal}.bubble.rich p{white-space:pre-wrap;margin:0 0 10px}.bubble.rich p:last-child{margin-bottom:0}.bubble.rich code{background:var(--surface-2);border-radius:5px;padding:1px 5px;font:.85em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.code{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;margin:4px 0 12px;overflow:hidden}.code:last-child{margin-bottom:0}.code-head{border-bottom:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;padding:4px 6px 4px 12px;font-size:.75rem;display:flex}.code-copy{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:3px 8px}.code-copy:hover{background:var(--surface);color:var(--text)}.code-copy:focus-visible{box-shadow:var(--ring);outline:none}.code pre{margin:0;padding:10px 12px;font-size:.8rem;line-height:1.55;overflow-x:auto}.code pre code,.bubble.rich .code code{white-space:pre;background:0 0;padding:0;font:.8rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.step{border:1px solid var(--border);background:var(--surface);border-radius:10px;max-width:100%}.step summary{cursor:pointer;align-items:center;gap:10px;padding:7px 12px;font-size:.8rem;list-style:none;display:flex}.step summary::-webkit-details-marker{display:none}.step summary:before{content:"▸";color:var(--muted);transition:transform .15s}.step[open] summary:before{transform:rotate(90deg)}.step summary:focus-visible{box-shadow:var(--ring);border-radius:10px;outline:none}.step-cmd{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font:600 .8rem ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.step-status{color:var(--muted);font-variant-numeric:tabular-nums;flex:none}.step.failed .step-status{color:var(--error)}.step .term{border-radius:8px;margin:0 8px 8px}.row.assistant:has(.step){display:block}.chat-title{text-overflow:ellipsis;white-space:nowrap;max-width:min(46vw,420px);font-size:.95rem;font-weight:600;overflow:hidden}.new-chat{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:10px;align-items:center;gap:8px;margin:10px 8px 2px;padding:8px 10px;font-size:.875rem;display:flex}.new-chat:hover:not(:disabled){border-color:var(--muted)}.new-chat:focus-visible{box-shadow:var(--ring);outline:none}.new-chat svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:16px;height:16px}.with-dot{place-items:center;display:inline-grid;position:relative}.dot{background:var(--muted);border-radius:50%;width:8px;height:8px;display:inline-block}.dot.on{background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent)}.dot.off{background:var(--error)}.with-dot .dot{width:7px;height:7px;box-shadow:0 0 0 2px var(--bg);position:absolute;top:-3px;right:-4px}.status{align-items:center;gap:6px;display:inline-flex}.status.on{background:color-mix(in srgb, var(--ok) 15%, transparent);color:var(--ok)}.status.off{background:color-mix(in srgb, var(--error) 12%, transparent);color:var(--error)}@media (min-width:1100px){.list-close{display:none}}.terminal{z-index:15;background:var(--term-bg);height:min(55dvh,520px);color:var(--term-text);border-top:1px solid #2a2f37;flex-direction:column;font:.82rem/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -8px 24px #00000040}@media (min-width:1100px){.app.with-list .terminal{left:280px}}.terminal-bar{background:#161a1f;border-bottom:1px solid #2a2f37;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px 6px 14px;display:flex}.terminal-title{color:var(--term-dim);align-items:center;gap:8px;display:inline-flex}.terminal-title .dot.on{background:var(--term-ok);box-shadow:none}.terminal-actions{gap:4px;display:inline-flex}.terminal-actions button{color:var(--term-text);font:inherit;cursor:pointer;background:0 0;border:1px solid #2a2f37;border-radius:6px;padding:3px 9px;font-size:.75rem}.terminal-actions button:hover:not(:disabled){background:#232830}.terminal-actions button:disabled{opacity:.4;cursor:default}.terminal-actions button:focus-visible{outline:2px solid var(--term-ok);outline-offset:1px}.terminal-body{cursor:text;flex:1;padding:10px 14px 14px;overflow-y:auto}.terminal-body pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 4px}.t-cmd{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px}.t-prompt{color:var(--term-ok);white-space:nowrap}.t-err{color:#f87171}.t-note{color:var(--term-dim)}.t-input{align-items:baseline;gap:8px;margin-top:6px;display:flex}.t-input input{min-width:0;color:var(--term-text);font:inherit;caret-color:var(--term-ok);background:0 0;border:none;outline:none;flex:1;padding:0}.t-input input:focus,.t-input input:focus-visible{box-shadow:none;border:none;outline:none}.app.term-open .composer-wrap{bottom:min(55dvh,520px)}.app.term-open .thread{padding-bottom:min(55dvh,520px)}.lock-row{flex-wrap:wrap;align-items:center;gap:6px 12px;margin:4px 0 12px;font-size:14px;display:flex}.lock-backdrop{z-index:60;background:#00000073;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.lock-dialog{background:var(--surface);width:min(400px,100%);max-height:calc(100dvh - 32px);color:var(--text);border:1px solid var(--border);border-radius:16px;gap:12px;padding:20px;display:grid;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.lock-dialog h2{margin:0;font-size:18px}.lock-dialog p{margin:0}.lock-dialog label{gap:4px;font-size:14px;display:grid}.lock-dialog input{font:inherit;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:10px;padding:9px 11px}.lock-dialog input:focus-visible{box-shadow:var(--ring);outline:none}.lock-qr{background:#fff;border-radius:12px;place-items:center;width:200px;height:200px;margin:0 auto;padding:10px;display:grid}.lock-key code{word-break:break-all}.lock-error{color:var(--error);font-size:14px}.lock-buttons{justify-content:flex-end;align-items:center;gap:12px;display:flex}.t-lock{font:inherit;border:1px solid var(--term-dim);color:var(--term-text);cursor:pointer;background:0 0;border-radius:999px;margin-left:10px;padding:1px 8px;font-size:12px}span.t-lock{cursor:default;border:none;padding:0}.kind-tabs{background:var(--surface-2);border-radius:10px;grid-template-columns:1fr 1fr;gap:4px;margin:0 8px 8px;padding:3px;display:grid}.kind-tabs button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:6px 4px;font-size:13px;display:inline-flex}.kind-tabs button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001f}.kind-tabs button:focus-visible{box-shadow:var(--ring);outline:none}.kind-count{color:var(--muted);font-size:11px}.new-chat.sandbox{border-color:color-mix(in srgb, var(--ok) 45%, var(--border))}.kind-badge{background:color-mix(in srgb, var(--ok) 14%, transparent);color:var(--ok);border:1px solid color-mix(in srgb, var(--ok) 35%, transparent);white-space:nowrap;border-radius:999px;flex:none;padding:2px 8px;font-size:12px}.empty>.link{margin:4px auto 0;display:inline-block}@media (max-width:600px){.kind-word{display:none}.kind-badge{padding:2px 6px}.chat-title{max-width:30vw}}.code.has-preview{overflow:hidden}.code-tabs{gap:2px;display:inline-flex}.code-tabs button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:3px 8px;font-size:.75rem}.code-tabs button[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border)}.code-tabs button:focus-visible{box-shadow:var(--ring);outline:none}.code-actions{gap:2px;display:inline-flex}.preview-frame{background:#fff;border:0;width:100%;display:block}.preview-full{z-index:70;background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.preview-full-bar{border-bottom:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;padding:8px 12px;font-size:.85rem;display:flex}.preview-full .preview-frame{flex:1;height:auto}.bubble.rich:has(.has-preview){width:100%}.attachments{flex-wrap:wrap;gap:8px;margin:0 0 8px;display:flex}.attachment{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;width:64px;height:64px;position:relative;overflow:hidden}.attachment img{object-fit:cover;width:100%;height:100%;display:block}.attachment button{color:#fff;cursor:pointer;background:#000000a6;border:none;border-radius:999px;width:22px;height:22px;font-size:15px;line-height:1;position:absolute;top:2px;right:2px}.attachment button:focus-visible{box-shadow:var(--ring);outline:none}.user-msg{flex-direction:column;align-items:flex-end;gap:6px;min-width:0;max-width:100%;display:flex}.msg-images{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.msg-images img{border:1px solid var(--border);object-fit:cover;border-radius:12px;max-width:min(240px,60vw);max-height:200px;display:block}.show-aria{color:var(--ok)}.live-reply .bubble>:last-child:after{content:"▍";color:var(--muted);margin-left:1px;animation:1s step-end infinite caret}@keyframes caret{50%{opacity:0}}@media (prefers-reduced-motion:reduce){.live-reply .bubble>:last-child:after{animation:none}}.row.user .user-msg{max-width:min(80%,560px)}.row.user .user-msg .bubble{max-width:100%}@media (max-width:640px){.row.user .user-msg{max-width:88%}}.bubble.rich .rich-h{white-space:normal;margin:14px 0 6px;font-weight:650}.bubble.rich .rich-h1{font-size:1.2rem}.bubble.rich .rich-h2{font-size:1.08rem}.bubble.rich .rich-h3,.bubble.rich .rich-h4{font-size:1rem}.bubble.rich .rich-h:first-child{margin-top:0}.bubble.rich ul,.bubble.rich ol{white-space:normal;margin:0 0 10px;padding-left:1.4em}.bubble.rich li{white-space:pre-wrap;margin:3px 0}.rich-table{border:1px solid var(--border);border-radius:10px;margin:4px 0 12px;overflow-x:auto}.rich-table table{border-collapse:collapse;width:100%;font-size:.9rem}.rich-table th,.rich-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--border);white-space:normal;padding:7px 10px}.rich-table th{background:var(--surface-2);font-weight:600}.rich-table tr:last-child td{border-bottom:none}.timer-note{background:color-mix(in srgb, var(--ok) 12%, transparent);color:var(--text);border-radius:10px;margin:0 0 8px;padding:8px 12px;font-size:.9rem}.fineprint.count{color:var(--error);margin-bottom:4px}.legal{max-width:680px;color:var(--text);margin:0 auto;padding:32px 16px 64px;line-height:1.6}.legal h1{margin:0 0 4px;font-size:1.6rem}.legal h2{margin:24px 0 6px;font-size:1.1rem}.legal a{color:inherit}.legal ul{padding-left:1.3em}.sheet-backdrop{z-index:55;background:#00000059;position:fixed;inset:0}.memory-panel.sheet{z-index:56;border:none;border-left:1px solid var(--border);background:var(--surface);overscroll-behavior:contain;width:min(460px,100%);max-width:none;padding:0 16px calc(24px + env(safe-area-inset-bottom));border-radius:0;margin:0;position:fixed;top:0;bottom:0;right:0;overflow-y:auto;box-shadow:-12px 0 40px #0000002e}.sheet-head{z-index:1;padding:calc(10px + env(safe-area-inset-top)) 12px 10px 16px;background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin:0 -16px 12px;display:flex;position:sticky;top:0}.sheet-title{font-size:1rem;font-weight:650}@media (max-width:600px){.memory-panel.sheet{width:100%;box-shadow:none;border-left:none}.sheet-backdrop{display:none}}.usage{border:1px solid var(--border);border-radius:10px;margin:0 0 14px;padding:12px}.usage-row{font-variant-numeric:tabular-nums;justify-content:space-between;gap:12px;font-size:.9rem;display:flex}.usage-bar{background:var(--surface-2);border-radius:999px;height:6px;margin:8px 0;overflow:hidden}.usage-bar span{background:var(--ok);border-radius:999px;height:100%;display:block}.usage .muted{font-size:.8rem}.repeat-warning{color:var(--text);background:#f59e0b2e;border-radius:8px;margin:0 0 6px;padding:6px 10px;font-size:.85rem}.preview-wait{background:var(--surface-2)}.status .checked{color:var(--muted);font-weight:400}
