/* Vixomix 0.9 design layer · "Cinema" direction.
   Loaded after styles.css and studio.css. Warm charcoal ground, one coral accent,
   Sora for display, Manrope for reading, and focus states sized for a TV seen
   from three metres. Components added in 0.9 are styled at the end. */
:root{
  --bg:#0f0d0c;--panel:#1a1716;--panel2:#231f1d;--line:#ffffff1a;--text:#f4efe9;
  --muted:#ada29a;--accent:#ff8a5c;--accent-ink:#2a1208;--accent-dark:#3a1d12;--green:#8fd4a0;--warn:#f0b26b;--bad:#f0736e;
  --display:'Sora','Manrope',system-ui,sans-serif;--body:'Manrope',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;
  --r:14px;font-family:var(--body);
}
body{background:var(--bg);color:var(--text);font-family:var(--body)}
h1,h2,h3,.brand b{font-family:var(--display)}
h1{letter-spacing:-.03em}
h2{letter-spacing:-.015em}

/* Surfaces and chrome */
.sidebar{background:#141110;border-color:var(--line)}
.surface{background:var(--panel);border:1px solid var(--line);border-radius:var(--r)}
.record-card,.device-card,.license-card,.source-entry,.feature-card{background:var(--panel);border-color:var(--line)}
input,select,textarea{background:#0b0a09;border:1px solid #ffffff2b;border-radius:10px;color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--accent)}
label{color:#e4dcd5}
.hint{color:var(--muted)}

/* Buttons */
.btn{border-radius:10px;font-weight:700;background:var(--panel2);color:var(--text)}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.secondary{background:transparent;border:1px solid #ffffff2e}
.chip{border-color:var(--line);color:var(--muted)}
.chip.active{background:var(--accent-dark);border-color:var(--accent);color:var(--accent)}

/* Status */
.status-pill{background:#ffffff0f;color:var(--muted)}
.status-pill.good{background:#8fd4a01f;color:var(--green)}
.status-pill.recording{background:#f0736e1f;color:var(--bad)}

/* Switches: larger target, coral when on */
.switch{width:52px;height:30px;background:#3a3532;border-radius:30px}
.switch:after{top:4px;left:4px;width:22px;height:22px;background:#d9cfc8}
.switch.on{background:var(--accent)}
.switch.on:after{left:26px;background:var(--accent-ink)}
[dir=rtl] .switch:after{left:auto;right:4px}[dir=rtl] .switch.on:after{right:26px}

/* 10-foot focus: every focusable thing shows a ring the size of the thing */
:focus-visible{outline:3px solid var(--accent)!important;outline-offset:4px}
.card:focus-visible,.poster:focus-visible,.channel-row:focus-visible,.source-entry :focus-visible{box-shadow:0 0 0 3px var(--accent),0 16px 36px #000a;transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.card:focus-visible,.poster:focus-visible,.channel-row:focus-visible{transform:none}}

/* Dialogs */
#modal{background:var(--panel);border:1px solid #ffffff26;border-radius:22px;color:var(--text)}
#modal::backdrop{background:#0f0d0cd9}
#toast{background:var(--text);color:var(--bg);font-weight:700;border-radius:12px}

/* --- 0.9 · Recording controls --------------------------------------------- */
.record-controls{display:flex;flex-direction:column;gap:20px;margin-bottom:18px}
.record-switch{display:flex;align-items:center;justify-content:space-between;gap:24px}
.record-switch h2{font-size:22px;margin-bottom:6px}
.record-storage h3{font-size:15px;margin-bottom:12px}
.record-storage[aria-disabled=true]{opacity:.6}
.storage-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.storage-option{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:start;padding:16px 18px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);min-height:96px}
.storage-option b{font-size:15px}
.storage-option small{color:var(--muted);font-size:12.5px;line-height:1.45}
.storage-option.active{border:2px solid var(--accent);background:var(--accent-dark);padding:15px 17px}
.storage-option.active b{color:var(--accent)}
.storage-meta{font-size:12px;font-weight:700;color:var(--muted)}.storage-meta.ok{color:var(--green)}
.storage-meta:empty{display:none}
.drive-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

/* --- 0.9 · Pairing (add a playlist / link to account) ----------------------- */
.pair-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.segmented{display:inline-flex;padding:4px;border-radius:12px;background:#0b0a09;border:1px solid var(--line)}
.seg{padding:9px 16px;border-radius:9px;font-weight:700;font-size:13px;color:var(--muted)}
.seg[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.pair-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}
.pair-mac{display:flex;align-items:baseline;gap:10px;margin:0;color:var(--muted);font-size:13px}
.pair-mac code{font-size:17px;font-weight:700;color:var(--text);letter-spacing:.03em}
.pair-qr img{width:100%;height:auto;aspect-ratio:1;display:block;image-rendering:pixelated;border-radius:6px}
.link-dialog #link-panel{margin-top:14px}
.link-cta{display:flex;flex-direction:column;gap:8px;margin:16px 0}
.link-cta .btn{align-self:flex-start}

/* --- 0.9 · Activation ------------------------------------------------------ */
.activation-dialog{max-width:min(980px,94vw)}
.activation-screen{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:36px;align-items:center}
.activation-copy{display:flex;flex-direction:column;gap:16px;min-width:0}
.activation-copy .eyebrow{letter-spacing:.14em;font-size:11px;color:var(--muted);font-weight:700}
.activation-lede{font-size:18px;line-height:1.5;color:#e4dcd5}
.activation-ids{display:grid;gap:10px;padding:16px 18px;border-radius:12px;background:#0b0a09;border:1px solid var(--line)}
.activation-ids>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.activation-ids span{font-size:12px;color:var(--muted)}
.activation-ids code{overflow-wrap:anywhere;font-size:13px}
.activation-ids .activation-mac{font-size:26px;font-weight:700;letter-spacing:.04em;color:var(--text)}
.activation-steps{margin:0;padding-inline-start:20px;display:grid;gap:8px;font-size:15px;color:#e4dcd5}
.activation-steps li::marker{color:var(--accent);font-weight:800}
.activation-screen .qr-box{margin:0;padding:22px;background:var(--panel2);border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.activation-screen .qr-box img{width:100%;max-width:260px;height:auto;aspect-ratio:1;background:#f4efe9;border-radius:10px;padding:8px;image-rendering:pixelated;object-fit:contain}
.activation-screen .qr-box figcaption{font-size:14px;color:var(--muted)}
.activation-screen .qr-box b{color:var(--text);font-size:15px}
@media (max-width:760px){.activation-screen{grid-template-columns:1fr}}
.status-pill:not(.good):not(.warn):not(.warm):not(.bad):not(.danger) .dot{background:#8f857e;box-shadow:none}
