:root{--fs-xs: 11px;--fs-sm: 12px;--fs-base: 13px;--fs-md: 14px;--fs-lg: 16px;--fs-xl: 18px;font-size:var(--fs-base);--bg: #11151c;--surface: #191f29;--border: #313b4b;--text: #e8edf5;--muted: #a9b5c7;--accent: #9abaff;--active: #293c60;--sidebar-width: 15rem;--state-managed: #9de0b1;--state-discovered: #9abaff;--state-orphaned: #ffd291;--state-dead: #ffadad;--term-bg: #11151c;--term-fg: #e8edf5;--term-selection: rgba(154, 186, 255, .35);color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.4;color:var(--text);background:var(--bg);font-synthesis:none}:root[data-theme=light]{--bg: #f4f6fa;--surface: #ffffff;--border: #d3dae6;--text: #16202e;--muted: #5b6b82;--accent: #1f5fd1;--active: #dce7fb;--state-managed: #1f8a4c;--state-discovered: #1f5fd1;--state-orphaned: #a15c00;--state-dead: #b3261e;--term-bg: #ffffff;--term-fg: #16202e;--term-selection: rgba(31, 95, 209, .25);color-scheme:light}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:.35rem;padding:.6rem .8rem}button,a{cursor:pointer}button:hover:not(:disabled){background:var(--active)}button:disabled,fieldset:disabled{opacity:.6}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent)}.app{max-width:1100px;margin:auto;height:100dvh;display:flex;flex-direction:column}header{display:flex;align-items:center;gap:1rem;padding:1rem;border-bottom:1px solid var(--border)}header img{display:block;width:170px;max-height:55px;object-fit:contain}h1{flex:1;margin:0;font-size:var(--fs-xl)}nav{display:flex;align-items:center;gap:.8rem}main{flex:1;min-height:0;display:flex;flex-direction:column}.messages{overflow-y:auto;flex:1;padding:1.2rem;display:flex;flex-direction:column;gap:.9rem}.message{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--border);padding:.85rem 1rem;border-radius:.6rem;max-width:90%}.assistant{align-self:flex-start;background:var(--surface)}.user{align-self:flex-end;background:var(--active);border-color:var(--accent)}.tabular{font-family:ui-monospace,monospace;overflow-x:auto}.muted,.upload{color:var(--muted)}.upload{border:none;background:transparent}.composer{padding:1rem;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:.5rem}textarea{width:100%;min-height:5rem;resize:vertical}.actions,.choices,.other{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.question{border:1px solid var(--border);border-radius:.5rem;padding:1rem;background:var(--surface);margin:0;min-width:0}.question legend{font-weight:600}.question label{display:flex;align-items:center;gap:.5rem}.question>button,.other{margin-top:.75rem}.other label{flex:1}.other input{min-width:0;width:100%}.home{padding:1rem;overflow-y:auto}.home li{margin:.75rem 0}@media(max-width:600px){header{flex-wrap:wrap;gap:.6rem}h1{font-size:var(--fs-lg)}nav{width:100%;justify-content:flex-end}.message{max-width:100%}.other{flex-direction:column;align-items:stretch}}@media(max-width:480px){header img{width:40px;height:40px}}.attachments{list-style:none;margin:.4rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem;font-size:var(--fs-sm, .85rem)}.attachments li{border:1px solid var(--border);border-radius:999px;padding:.15rem .6rem;background:var(--bg);color:var(--muted);display:inline-flex;align-items:center;gap:.3rem}.attachments.queued li button{border:none;background:transparent;padding:0 .2rem;line-height:1;cursor:pointer}.message.assistant a.halo-link{display:inline-block;margin-top:.35rem;padding:.45rem .8rem;border-radius:.5rem;background:var(--accent, #003060);color:#fff;text-decoration:none;font-weight:600}.message.assistant a.halo-link:hover{filter:brightness(1.1)}
