:root { color-scheme: dark; --bg: #000; --fg: #e8e8e8; --muted: #8a8a8a; --card: #111; --line: #262626; --green: #22c55e; --red: #ef4444; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, sans-serif; padding: env(safe-area-inset-top) 16px calc(88px + env(safe-area-inset-bottom)); }
header { padding: 16px 0 8px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 13px; color: var(--muted); margin: 20px 0 8px; text-transform: none; }
h3 { font-size: 16px; margin: 4px 0 10px; }
.sub, .hint, .ref, .default { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.opt input { margin-top: 4px; accent-color: var(--green); }
.opt.later span { color: var(--muted); }
.rec { color: var(--green); font-style: normal; font-size: 12px; border: 1px solid var(--green); border-radius: 6px; padding: 0 5px; }
.default { margin-top: 8px; }
details { margin-top: 8px; }
summary { color: var(--muted); cursor: pointer; }
.body { white-space: pre-wrap; font-size: 13px; color: #c8c8c8; margin-top: 6px; }
.why { width: 100%; margin-top: 10px; background: #000; color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
footer { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #000 30%); }
button { font: inherit; border-radius: 12px; border: 1px solid var(--line); background: #1a1a1a; color: var(--fg); padding: 10px 14px; }
button.primary { width: 100%; min-height: 52px; background: var(--green); color: #000; font-weight: 700; border: none; }
button.primary:disabled { background: #1f2a22; color: #5c6b60; }
button.danger { color: var(--red); margin-top: 12px; }
#settings { margin: 28px 0; color: var(--muted); }
.key { display: block; word-break: break-all; background: var(--card); padding: 10px; border-radius: 10px; margin: 8px 0; color: var(--fg); }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); background: #1d1d1d; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.qa { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.qa .q, .qa .a { padding: 10px; border-radius: 10px; white-space: pre-wrap; font-size: 14px; }
.qa .q { background: #14301f; align-self: flex-end; max-width: 92%; }
.qa .a { background: #181818; border: 1px solid var(--line); }
.qa .who { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.waiting { color: #e0b44a; font-size: 13px; }
.ask { margin-top: 10px; }
.ask-open { width: 100%; }
.ask-form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ask-text { width: 100%; background: #000; color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
.opt input:disabled + span { opacity: 0.5; }
.ask-form[hidden] { display: none; }
.tabs { display: flex; gap: 18px; }
.tab { background: none; border: none; padding: 0; font-size: 22px; font-weight: 700; color: var(--muted); border-radius: 0; }
.tab.on { color: var(--fg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { font-size: 13px; padding: 6px 10px; border-radius: 999px; }
.chip.on { background: var(--fg); color: #000; }
.status { color: var(--fg); }
.s-decided { color: var(--green); }
.s-pending { color: #e0b44a; }
.decision { margin: -4px 0 4px; }
.ropts { margin-top: 6px; font-size: 13px; }
.ropt { padding: 4px 0; color: var(--muted); }
.ropt.chosen { color: var(--fg); }

/* the landing queue (desk DESIGN 15.16) */
.land { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.land.done { opacity: 0.6; }
.land-head { line-height: 1.6; word-break: break-all; }
.land-state { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: rgba(128, 128, 128, 0.25); margin-left: 4px; }
.land-state.passed { background: rgba(34, 224, 107, 0.25); }
.land-state.failed { background: rgba(255, 107, 107, 0.3); }
.land-label { font-size: 12px; opacity: 0.75; margin-top: 10px; }
.land pre { overflow-x: auto; font-size: 12px; white-space: pre; margin: 4px 0; padding: 8px; background: rgba(128, 128, 128, 0.12); border-radius: 8px; max-height: 40vh; }
.land pre.nix { border-left: 3px solid #ffb347; }
.land details { margin-top: 8px; }
.land-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.land-approve { flex: 1; }
.land-close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 13px; padding: 8px 4px; }
.land-close[data-armed] { color: var(--red); }
/* plans (desk DESIGN 15.7) share the cards */
.land-state.done, .land-state.approved { background: rgba(34, 224, 107, 0.25); }
.plan-ops { margin: 4px 0 0 20px; padding: 0; font-size: 14px; line-height: 1.8; }
