:root { color-scheme: dark; --bg: #17181b; --panel: #1f2024; --border: #35373e; --fg: #ededf0; --muted: #a5a7b2; --thread: #61afef; font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif; background: var(--bg); color: var(--fg); }
* { box-sizing: border-box; } [hidden] { display: none !important; }
body { margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
header, main, footer { width: min(100% - 32px, 820px); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-bottom: 1px solid var(--border); gap: 20px; }
a { color: inherit; } .brand { text-decoration: none; font-size: 21px; font-weight: 650; letter-spacing: -.8px; white-space: nowrap; } .brand span { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 10px; letter-spacing: .1px; }
header select { width: auto; font-size: 13px; } main { min-height: 75dvh; padding: 24px 0; }
h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.35; letter-spacing: -1px; font-weight: 600; margin: 14px 0 20px; } h2 { font-size: 16px; font-weight: 600; }
.welcome { max-width: 540px; padding: 30px 0; } .welcome p, .welcome li { color: var(--muted); } .welcome ol { padding-left: 23px; margin: 28px 0; } .welcome li { margin: 16px 0; } .eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: 2px; }
button, input, select, textarea { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--border); border-radius: 7px; min-height: 44px; padding: 9px 12px; }
button { cursor: pointer; font-size: 13px; font-weight: 550; } button:hover:not(:disabled) { background: #2c2e34; border-color: #6b6f7e; } button:disabled { opacity: .4; cursor: default; }
input, select, textarea { width: 100%; font-size: 16px; } textarea { resize: vertical; min-height: 94px; } label { display: block; color: var(--muted); font-size: 12px; margin: 10px 0 7px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
#pair-form button { width: 100%; margin-top: 12px; } .hint { color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.connection { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .connection select { flex: 1; min-width: 140px; width: auto; } #status { font-size: 12px; } #last-seen { min-height: 20px; } .tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.thread-heading, .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.threads { display: flex; overflow: auto; gap: 8px; padding: 12px 1px; } .thread { text-align: left; min-width: 160px; max-width: 270px; white-space: normal; overflow-wrap: anywhere; border-top: 2px solid transparent; } .thread.active { border-top-color: var(--thread); } .thread small { display: block; font-weight: 400; color: var(--muted); }
.destination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 12px; margin: 18px 0; border-left: 3px solid var(--thread); padding-left: 10px; } #destination { overflow-wrap: anywhere; } .thread-actions { display: flex; gap: 8px; padding-bottom: 14px; }
.entry { padding: 16px 0; border-bottom: 1px solid var(--border); } .entry .label { font-size: 11px; letter-spacing: .8px; color: var(--muted); margin-bottom: 8px; } .entry pre { margin: 0; font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; } .entry.user { border-left: 2px solid var(--thread); padding-left: 14px; } .entry.tool, .entry.thinking { font-size: 13px; color: var(--muted); }
pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.65; overflow: auto; tab-size: 2; } .permission, .question { border: 1px solid var(--border); padding: 18px; background: var(--panel); border-radius: 9px; margin: 16px 0; overflow-wrap: anywhere; } .permission pre, .question pre { max-height: 360px; padding: 10px; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; } .permission h3, .question h3 { font-size: 15px; margin: 0 0 12px; } .choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; } .permission label { font-size: 13px; display: flex; gap: 10px; align-items: flex-start; } input[type=checkbox] { width: 20px; min-height: 20px; flex-shrink: 0; } details summary { cursor: pointer; padding: 8px 0; font-size: 13px; }
#composer { margin-top: 24px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--border); } #message { border-color: var(--thread); } .composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 10px; } #receipt { color: var(--muted); font-size: 12px; } #send { border-color: var(--thread); min-width: 88px; }
#notice { position: sticky; bottom: 16px; background: #30323a; border: 1px solid #646875; border-radius: 8px; padding: 14px; margin: 14px 0; font-size: 13px; overflow-wrap: anywhere; }
dialog { background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: 12px; width: min(95vw, 850px); max-height: 85dvh; padding: 20px; } dialog::backdrop { background: #000a; } dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; } .dialog-head { margin: 0; } dialog p { font-size: 12px; color: var(--muted); }
footer { color: var(--muted); font-size: 11px; border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 700px) { main { padding-top: 36px; } .welcome { margin: 20px auto; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background .12s ease; } }

#scan-video { width: 100%; max-height: 60dvh; border-radius: 10px; background: #000; object-fit: cover; }
#pair-manual { margin-top: 14px; } #pair-manual summary { font-size: 12px; color: var(--muted); cursor: pointer; }
