/* ==========================================================================
   Nimbus v1 — Activity Log chrome + Habitat evidence analyzer styles
   (linked from index.html).

   2026-10-04 — the audit-detail block under the Activity Log list is gone.
   Rows expand inline in both lists (the console's .incident-details-panel
   rules, including the action row .idp-verdict built by js/audit.js — those
   live in index.html next to the expander styles). This file keeps the
   Activity Log's Load More / deep-link notice, the Habitat tab's Mirage
   analyzer replay (#habitatViewer), and #screen-spectrum (LIVE SPECTRUM),
   which shares the analyzer's canvas rules.
   Everything inherits the console's tokens and components (--bg/--border/
   --text*, --tier-*, --font-*, .panel, .activity-row, .tier-pill,
   .verdict-pill, .row-action, .empty-state); this file only adds rules
   scoped under #screen-log / #habitatViewer / #screen-spectrum so nothing
   leaks into the other tabs.
   ========================================================================== */

/* ---- Activity Log: Load More + deep-link notice ---------------------------- */
#screen-log #logLoadMoreBtn:disabled { opacity: 0.45; cursor: default; }
#screen-log #logLoadMoreBtn:not(:disabled):hover { border-color: var(--accent); color: var(--text); }
#screen-log .log-count { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); min-height: 14px; }
#screen-log .log-notice { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--tier-likely); border-left-width: 3px; border-radius: 4px;
                          background: rgba(245,158,11,0.08); color: var(--text); font-family: var(--font-mono); font-size: 12px; }
#screen-log .log-notice[hidden] { display: none; }

/* ---- layout --------------------------------------------------------------- */
#habitatViewer { margin-top: 24px; }
#habitatViewer > .panel, #habitatViewer > details.panel { margin-bottom: 16px; }
#screen-spectrum .panel h3, #habitatViewer .panel h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#screen-spectrum .panel h3 .spacer, #habitatViewer .panel h3 .spacer { flex: 1; }
#screen-spectrum .panel h3 .h-meta, #habitatViewer .panel h3 .h-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--text-dim); font-weight: 400; }
#habitatViewer .panel h4 {
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint); margin: 18px 0 8px;
}

/* ---- summary: two of the console's .panel .kv definition lists side by side ----- */
#habitatViewer .kv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 32px; }
#habitatViewer .kv-cols dl { margin: 0; }
#habitatViewer .kv-cols dd { font-family: var(--font-mono); font-size: 13px; }
#habitatViewer .kv-cols dd.big { font-size: 15px; font-weight: 700; }

/* ---- evidence replay (Mirage analyzer in offline feed mode) ------------------ */
#habitatViewer canvas.evidence { display: block; width: 100%; background: #000; border: 1px solid var(--border); border-radius: 6px; }
#habitatViewer #acfCanvas { height: 120px; }
#habitatViewer > h4, #habitatViewer #evidencePanel > h4 { margin-top: 14px; }
#habitatViewer #evEmpty { margin: 6px 0 4px; }
#habitatViewer .ev-specrow { height: 560px; }
#habitatViewer .replay-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
#habitatViewer .replay-bar .transport .fnbtn { min-width: 34px; padding: 3px 6px; font-size: 12px; }
#habitatViewer .replay-bar .transport .fnbtn.playing { background: var(--accent); color: #fff; border-color: var(--accent); }
#habitatViewer .replay-bar .transport select { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 2px; font: inherit; }
#habitatViewer .replay-bar #evScrub { flex: 1 1 200px; min-width: 120px; accent-color: var(--accent); height: 18px; margin: 0; cursor: ew-resize; }
#habitatViewer .replay-bar .time-readout { min-width: 148px; color: var(--text); font-weight: 700; letter-spacing: 0.5px; }
#habitatViewer .replay-bar .crumb { display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); white-space: nowrap; }
#habitatViewer .replay-bar .crumb .crumb-full { color: var(--text-faint); }
#habitatViewer .replay-bar .crumb .crumb-sep { color: var(--accent); }
#habitatViewer .replay-bar .crumb .crumb-zoom { color: var(--text); }
#habitatViewer .replay-bar .crumb .crumb-src { color: var(--tier-clear); }
#habitatViewer .replay-bar .crumb .crumb-src.stored { color: var(--text-dim); }
#habitatViewer .replay-bar .crumb .crumb-src.err { color: var(--tier-likely); }
#habitatViewer #evWfHist { font-size: 8px; text-align: center; line-height: 1.2; }
#habitatViewer .wfspanaxis .vslider { height: 80px; }
#screen-spectrum .wfwrap canvas:not(.ov), #habitatViewer .wfwrap canvas:not(.ov) { cursor: crosshair; }
#screen-spectrum .speccanvas, #habitatViewer .speccanvas { cursor: crosshair; }
#habitatViewer .canvas-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin: 4px 0 12px; min-height: 14px; }
#habitatViewer .evidence-selector { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0; text-transform: none; font-weight: 400; }
#habitatViewer .evidence-selector select, #habitatViewer .verdict-bar select, #habitatViewer .verdict-bar input, #habitatViewer .live-ctl select, #habitatViewer .live-ctl input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text);
  padding: 4px 8px; font-size: 12px; font-family: var(--font-mono);
}

/* ---- features / explanation ------------------------------------------------ */
#habitatViewer .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
#habitatViewer .features-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
#habitatViewer .features-table th { text-align: left; color: var(--text-faint); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px; border-bottom: 1px solid var(--border); }
#habitatViewer .features-table td { padding: 3px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
#habitatViewer .features-table td.k { color: var(--text-dim); width: 42%; }
#habitatViewer .explain-text { font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; color: var(--text); line-height: 1.5; }
#habitatViewer .gate-chip {
  display: inline-block; padding: 2px 9px; margin: 2px 6px 2px 0; border-radius: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--tier-clear); background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.4);
}

/* ---- verdict bar (row-action button vocabulary) ------------------------------ */
#habitatViewer .verdict-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#habitatViewer .verdict-bar .row-action { min-width: 132px; padding: 6px 10px; font-size: 12px; }
#habitatViewer .row-action.confirm { color: var(--tier-clear); border-color: rgba(16,185,129,0.45); }
#habitatViewer .row-action.confirm:hover { background: rgba(16,185,129,0.14); border-color: var(--tier-clear); }
#habitatViewer .row-action.fp { color: var(--tier-confirmed); border-color: rgba(229,57,53,0.45); }
#habitatViewer .row-action.fp:hover { background: rgba(229,57,53,0.14); border-color: var(--tier-confirmed); }
#habitatViewer .row-action.site { color: rgba(212,170,90,1); border-color: rgba(212,170,90,0.45); }
#habitatViewer .row-action.site:hover { background: rgba(212,170,90,0.14); border-color: rgba(212,170,90,1); }
#habitatViewer .row-action.snooze { color: var(--tier-likely); border-color: rgba(245,158,11,0.45); }
#habitatViewer .row-action.snooze:hover { background: rgba(245,158,11,0.14); border-color: var(--tier-likely); }
#habitatViewer .row-action.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
#habitatViewer .row-action.small { min-width: 0; padding: 2px 8px; font-size: 10px; }
#habitatViewer .verdict-bar input[type=text] { width: 220px; }
#habitatViewer .status-line { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); min-height: 16px; margin-top: 8px; }
#habitatViewer .status-line.err { color: var(--tier-confirmed); }
#habitatViewer .status-line.ok { color: var(--tier-clear); }

/* ---- verdict / history lists ---------------------------------------------- */
#habitatViewer .v-list .v-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 4px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px;
}
#habitatViewer .v-list .v-row:last-child { border-bottom: none; }
#habitatViewer .v-list .v-meta { color: var(--text-faint); font-size: 11px; }
#habitatViewer .v-list a { color: var(--text); text-decoration: none; }
#habitatViewer .v-list a:hover { color: var(--accent); }
#habitatViewer .h-list .h-row {
  display: grid; grid-template-columns: 70px 100px 1fr auto; gap: 12px; align-items: center;
  padding: 5px 4px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px;
}
#habitatViewer .h-list .h-row.current { background: rgba(74,107,255,0.08); }
#habitatViewer .rid-table { width: 100%; }

/* ---- live spectrum panel ----------------------------------------------------- */
#screen-spectrum .mode-banner, #habitatViewer .mode-banner {
  display: none; padding: 10px 14px; margin-bottom: 12px; border-radius: 6px; align-items: center; gap: 14px;
  background: rgba(229,57,53,0.14); border: 1px solid var(--tier-confirmed); color: var(--tier-confirmed);
  font-family: var(--font-mono); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 12px;
}
#screen-spectrum .mode-banner.on, #habitatViewer .mode-banner.on { display: flex; }
#screen-spectrum .mode-banner .spacer, #habitatViewer .mode-banner .spacer { flex: 1; }
#habitatViewer .live-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
#screen-spectrum .ws-dot, #habitatViewer .ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); display: inline-block; margin-right: 6px; }
#screen-spectrum .ws-dot.on, #habitatViewer .ws-dot.on { background: var(--tier-clear); box-shadow: 0 0 6px var(--tier-clear); }
#screen-spectrum .ws-dot.err, #habitatViewer .ws-dot.err { background: var(--tier-confirmed); }
#screen-spectrum .detect-strip, #habitatViewer .detect-strip { display: flex; gap: 4px; margin: 8px 0; align-items: stretch; }
#screen-spectrum .detect-strip .row-action, #habitatViewer .detect-strip .row-action { flex: 0 0 auto; min-width: 0; }
#screen-spectrum .detect-strip .cell, #habitatViewer .detect-strip .cell {
  flex: 1; min-width: 0; height: 28px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; cursor: pointer;
}
#screen-spectrum .detect-strip .cell:hover, #habitatViewer .detect-strip .cell:hover { background: var(--bg-elev); }

/* ---- analyzer (ported from Mirage) ------------------------------------------- */
#screen-spectrum .specrow, #habitatViewer .specrow { display: flex; gap: 8px; align-items: stretch; height: 460px; min-height: 200px; }
#screen-spectrum .speccol, #habitatViewer .speccol { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#screen-spectrum .speccol canvas, #habitatViewer .speccol canvas { background: #000; border: 1px solid var(--border); border-radius: 4px; display: block; width: 100%; }
#screen-spectrum .speccanvas, #habitatViewer .speccanvas { flex: 0 0 auto; height: 50%; }
#screen-spectrum .wfwrap, #habitatViewer .wfwrap { flex: 1 1 auto; min-height: 80px; position: relative; }
#screen-spectrum .wfwrap canvas, #habitatViewer .wfwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#screen-spectrum .wfwrap canvas.ov, #habitatViewer .wfwrap canvas.ov { border: none; background: transparent; pointer-events: none; }
#screen-spectrum .divider, #habitatViewer .divider { height: 9px; cursor: row-resize; display: flex; align-items: center; justify-content: center; color: var(--text-faint); flex: 0 0 auto; }
#screen-spectrum .divider:hover, #habitatViewer .divider:hover { color: var(--accent); }
#screen-spectrum .divider::before, #habitatViewer .divider::before { content: "⠿"; letter-spacing: 2px; font-size: 11px; }
#habitatViewer .rightrail { display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: 54px; flex: 0 0 54px; }
#habitatViewer .wfspanaxis, #habitatViewer .dbaxis { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; color: var(--text-faint); padding: 2px 0; font-family: var(--font-mono); }
#habitatViewer .vslider { writing-mode: vertical-lr; direction: rtl; -webkit-appearance: slider-vertical; appearance: slider-vertical; width: 16px; height: 96px; cursor: ns-resize; accent-color: var(--accent); }
#habitatViewer .ctlrows { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
#habitatViewer .specctl { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
#habitatViewer .specctl label { display: inline; margin: 0; cursor: pointer; white-space: nowrap; }
#habitatViewer .specctl input[type=number] { width: 64px; padding: 2px 4px; margin: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; font: inherit; }
#habitatViewer .specctl select { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 2px; font: inherit; }
#habitatViewer .ctlbox { display: flex; align-items: center; gap: 5px; padding: 3px 7px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; white-space: nowrap; flex: 0 0 auto; }
#habitatViewer .ctlbox .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-faint); }
#habitatViewer .mkbtn, #habitatViewer .fnbtn { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 4px; font: inherit; padding: 3px 8px; cursor: pointer; }
#habitatViewer .fnbtn:hover { border-color: var(--accent); }
#habitatViewer .mkbtn.set { outline: 1px solid var(--text-faint); }
#habitatViewer .mkbtn.active { background: var(--accent); color: #fff; }
#habitatViewer .mkbtn.on { background: #3b2f00; outline: 1px solid #9e6a03; }
#habitatViewer .swatch { width: 14px; height: 14px; border: 1px solid #444; border-radius: 3px; display: inline-block; }
#habitatViewer .mkTable { font-size: 11px; border-collapse: collapse; margin-top: 6px; font-family: var(--font-mono); }
#habitatViewer .mkTable td, #habitatViewer .mkTable th { padding: 1px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left; }
#habitatViewer .measbox { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-top: 6px; font-family: var(--font-mono); }
#habitatViewer .measbox .m { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 5px; padding: 4px 10px; }
#habitatViewer .measbox .m b { color: var(--tier-clear); }
#habitatViewer .measbox .m.fail b { color: var(--tier-confirmed); }
#habitatViewer .measbox .faint { color: var(--text-faint); }
#screen-spectrum .ovl, #habitatViewer .ovl { display: none; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 4px; color: #fff; font-family: var(--font-mono); }
#screen-spectrum .ovl.hot, #habitatViewer .ovl.hot { display: inline-block; background: #9e6a03; }
#screen-spectrum .ovl.clip, #habitatViewer .ovl.clip { display: inline-block; background: #da3633; }
#habitatViewer .subrow { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
#habitatViewer .subrow > div { flex: 1 1 320px; }

/* ---- LIVE SPECTRUM tab (js/live.js) ------------------------------------------ */
/* No analyzer controls here: cycle label + channel strip, then a tall plot
   (trace ≈ 40 %, waterfall ≈ 60 % of ~70vh), then a one-line footer note.
   Every slot of the label / event line / strip cell has a FIXED width so the
   layout never shifts when a value changes (operator request 2026-09-09). */
#screen-spectrum .spectrum-page > .panel, #screen-spectrum .spectrum-page > .mode-banner { margin-bottom: 16px; }
#screen-spectrum .cycle-panel { padding-bottom: 12px; }
#screen-spectrum .cycle-row { display: flex; align-items: center; gap: 14px; min-height: 0; margin: 0; }
#screen-spectrum .cycle-row:has(.cycle-meta:empty) { display: none; }
#screen-spectrum .cycle-row .spacer { flex: 1; }
#screen-spectrum .cycle-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); white-space: nowrap; width: 34ch; height: 22px; line-height: 22px; margin-top: 6px; text-align: right; overflow: hidden; }
#screen-spectrum .live-stats .st-phase { position: relative; }
#screen-spectrum .ovl { width: 8ch; height: 20px; line-height: 16px; box-sizing: border-box; text-align: center; display: inline-block; visibility: hidden; margin-left: auto; margin-right: 18px; }
#screen-spectrum .ovl.hot, #screen-spectrum .ovl.clip { visibility: visible; }
/* Lead tile (2026-09-28: one full-width PHASE tile; the SWEEP / DWELLS /
   LAST EVENT / LINK tiles were dropped — the channel + panel rows below
   already say where the cycle is). Fixed heights / slot widths so values
   changing never move anything. */
#screen-spectrum .live-stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
#screen-spectrum .live-stats .stat-card { padding: 12px 16px 12px; min-width: 0; display: flex; flex-direction: column; height: 92px; box-sizing: border-box; font-variant-numeric: tabular-nums; }
#screen-spectrum .live-stats .st-phase-head { display: flex; align-items: center; gap: 16px; height: 40px; }
#screen-spectrum .live-stats .st-phase-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
#screen-spectrum .live-stats .stat-card .label { height: 14px; line-height: 14px; white-space: nowrap; }
#screen-spectrum .live-stats .stat-card .sub { margin-top: 3px; height: 16px; line-height: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; width: 16ch; }
#screen-spectrum .live-stats .phase { box-sizing: border-box; width: 7ch; padding: 0; text-align: center; font-family: var(--font-mono); font-size: 24px; line-height: 36px; height: 38px; letter-spacing: 2px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-dim); flex: 0 0 auto; }
#screen-spectrum .live-stats .phase.scan { color: var(--accent); border-color: var(--accent); }
#screen-spectrum .live-stats .phase.dwell { color: var(--tier-possible); border-color: var(--tier-possible); }
#screen-spectrum .live-stats .phase.analyzer { color: var(--tier-confirmed); border-color: var(--tier-confirmed); }
#screen-spectrum .live-stats .bar { position: relative; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--border); overflow: hidden; }
#screen-spectrum .live-stats .bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width .25s linear; }
#screen-spectrum .live-stats .bar.dwell .fill { background: var(--tier-possible); transition: width .9s linear; }
#screen-spectrum .live-stats .bar.scan::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--segs, 10) - 3px), var(--bg-card) calc(100% / var(--segs, 10) - 3px), var(--bg-card) calc(100% / var(--segs, 10))); }
#screen-spectrum .ws-status { display: inline-flex; align-items: center; justify-content: flex-end; width: 9ch; flex: 0 0 auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); white-space: nowrap; }
#screen-spectrum .ws-status .ws-dot { width: 8px; height: 8px; margin-right: 6px; }
#screen-spectrum .row-lbl { display: flex; align-items: center; gap: 12px; height: 18px; margin: 12px 0 4px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
#screen-spectrum .row-lbl .restart-note { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--tier-likely); }
/* tiles: channel row + panel row. Fixed inner slots; ten channel tiles fit
   on one line at 1600 px and wrap below that. */
#screen-spectrum .panel-strip, #screen-spectrum .detect-strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; align-items: stretch; }
#screen-spectrum .detect-strip .row-action { flex: 0 0 auto; align-self: stretch; height: auto; width: 76px; }
#screen-spectrum .detect-strip .row-action.resume.inactive { opacity: .45; cursor: default; }
#screen-spectrum .panel-strip .cell { border: 1px solid var(--border); border-radius: 3px; background: var(--bg); }
#screen-spectrum .cell.tile {
  flex: 1 1 108px; min-width: 108px; max-width: 220px; height: auto; padding: 5px 8px 4px; gap: 0;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; cursor: pointer; overflow: hidden;
}
#screen-spectrum .cell.ptile { cursor: default; flex-basis: 128px; min-width: 128px; }
#screen-spectrum .cell.tile .t-top, #screen-spectrum .cell.tile .t-row { display: flex; align-items: baseline; white-space: nowrap; height: 16px; line-height: 16px; }
#screen-spectrum .cell.tile .t-top { height: 20px; line-height: 20px; margin-bottom: 1px; }
#screen-spectrum .cell.tile .t-top .v { font-size: 15px; font-weight: 700; color: var(--text); }
#screen-spectrum .cell.tile .t-top .u { font-size: 9px; color: var(--text-faint); margin-left: 4px; }
#screen-spectrum .cell.tile .pin { display: inline-block; width: 1.4em; text-align: left; font-size: 11px; }
#screen-spectrum .cell.tile .f { display: inline-block; width: 4ch; }
#screen-spectrum .cell.tile .pid { display: inline-block; width: 3ch; }
#screen-spectrum .cell.tile .name { display: inline-block; width: 9ch; overflow: hidden; text-overflow: clip; }
#screen-spectrum .cell.tile .k { display: inline-block; width: 5ch; color: var(--text-faint); }
#screen-spectrum .cell.tile .k.dwell { color: var(--tier-possible); }
#screen-spectrum .cell.tile .v { display: inline-block; color: var(--text); }
#screen-spectrum .cell.tile .db { width: 4ch; text-align: right; }
#screen-spectrum .cell.tile .deg { width: 4ch; text-align: right; }
#screen-spectrum .cell.tile .age { width: 6ch; text-align: right; }
#screen-spectrum .cell.tile .t-row .u { display: inline-block; width: 5ch; margin-left: 0.6ch; color: var(--text-faint); font-size: 10px; }
#screen-spectrum .cell.tile.shown { background: var(--bg-elev); box-shadow: inset 0 -2px 0 var(--accent); }
#screen-spectrum .cell.tile.shown.dwell { box-shadow: inset 0 -2px 0 var(--tier-possible); }
#screen-spectrum .cell.ptile.shown { border-color: var(--accent); }
#screen-spectrum .cell.ptile.shown.dwell { border-color: var(--tier-possible); }
#screen-spectrum .specrow { height: 70vh; min-height: 460px; }
#screen-spectrum .speccanvas { height: 40%; }
#screen-spectrum .wfwrap { flex: 1 1 60%; }
#screen-spectrum .spectrum-foot { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--text-faint); }

/* ---- Habitat captures (2026-09-29) ------------------------------------------ */
.hab-captures { display: flex; flex-direction: column; gap: 8px; }
.hab-captures .hab-psd { display: block; width: 100%; height: 170px; background: #000; border: 1px solid var(--border); border-radius: 4px; }
.hab-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.hab-thumb { display: flex; flex-direction: column; gap: 3px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; text-align: left; color: var(--text-dim); font-family: var(--font-mono); font-size: 10px; line-height: 1.25; }
.hab-thumb:hover { border-color: var(--accent); }
.hab-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hab-thumb canvas { width: 160px; height: 64px; image-rendering: pixelated; background: #000; border-radius: 2px; display: block; }
.hab-thumb .ht-tier { text-transform: uppercase; letter-spacing: 1px; }
.hab-thumb.tier-confirmed .ht-tier { color: var(--tier-confirmed); }
.hab-thumb.tier-likely .ht-tier { color: var(--tier-likely); }
.hab-thumb.tier-possible .ht-tier { color: var(--tier-possible); }
#habitatViewer { margin-top: 18px; }
#habitatViewer > h4 { margin-top: 14px; }
