:root { --bg:#f2f3f5; --panel:#fff; --ink:#1b1d21; --muted:#686d76; --line:#d5d8de; --accent:#4a5bb8; --accent-ink:#fff; --bad:#a3261b; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg:#141518; --panel:#1e2024; --ink:#e8eaee; --muted:#9ea3ac; --line:#363a41; --accent:#8d9cf0; --accent-ink:#141518; --bad:#ff8a7a; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
main { display:grid; gap:10px; padding:10px 12px 24px; max-width:760px; margin:0 auto; }
#line { margin:0; font-size:14px; color:var(--muted); } #line b { color:var(--ink); }
a { color:var(--accent); }
#drop { display:grid; place-items:center; min-height:90px; border:2px dashed var(--line); border-radius:8px; background:var(--panel); cursor:pointer; color:var(--muted); text-align:center; padding:12px; }
#drop.over, #drop:hover { border-color:var(--accent); color:var(--ink); }
#drop input { position:absolute; width:1px; height:1px; opacity:0; }
#drop:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
#examples-row, #prompts { margin:0; font-size:13px; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
#preview { max-width:100%; max-height:46vh; justify-self:start; border-radius:6px; border:1px solid var(--line); }
button { font:inherit; font-weight:600; min-height:38px; padding:0 16px; cursor:pointer; color:var(--accent-ink); background:var(--accent); border:0; border-radius:5px; }
button:disabled { opacity:.5; cursor:default; }
#examples button, #prompts button { min-height:28px; padding:0 10px; font-size:13px; font-weight:400; color:var(--muted); background:transparent; border:1px solid var(--line); border-radius:14px; }
#examples button:hover, #prompts button:hover { color:var(--accent); border-color:var(--accent); }
#stop, #wipe { background:transparent; color:var(--ink); border:1px solid var(--line); font-weight:500; }
#wipe { min-height:30px; }
#status { margin:0; min-height:1.4em; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; } #status.bad { color:var(--bad); }
#bar { height:4px; background:var(--line); border-radius:2px; overflow:hidden; margin-top:-4px; } #bar i { display:block; height:100%; width:0; background:var(--accent); transition:width .2s; }
#ask { display:flex; gap:8px; } #q { flex:1; min-width:0; font:inherit; padding:8px 10px; color:var(--ink); background:var(--panel); border:1px solid var(--line); border-radius:6px; min-height:38px; }
#log { display:grid; gap:8px; }
.turn { background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:8px 12px; }
.turn .q { color:var(--muted); font-size:13px; margin:0 0 4px; } .turn .a { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; } .turn .note { margin:6px 0 0; font-size:12px; color:var(--muted); }
#more { color:var(--muted); font-size:13px; } #more p { margin:6px 0; } summary { cursor:pointer; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
:where(button,input,summary,a,[tabindex]):focus-visible { outline:2px solid var(--accent) !important; outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration:.01ms !important; } }
