/* ============================================================
   APERTURE — Connected Capital Valuation Terminal
   Design DNA: shared with Riposte (graphite + brushed silver).
   Accent override: teal (#69d0a9) bridging to CC brand.
   ============================================================ */

:root {
  /* Graphite scale */
  --bg: #0a0c10;
  --bg-elev-1: #11141a;
  --bg-elev-2: #171b22;
  --bg-elev-3: #1d222b;
  --bg-elev-4: #232934;

  /* Brushed silver typography */
  --ink: #e7e9ee;
  --ink-2: #a4adbb;
  --ink-3: #6c7686;
  --ink-4: #4a525e;
  --silver: #c9d1d9;
  --silver-2: #8b95a5;

  /* Hairlines + dividers */
  --hairline: #1f242d;
  --hairline-strong: #2a323d;
  --hairline-bright: #353e4b;

  /* APERTURE accent (teal, bridges to CC brand-accent #69d0a9)
     --accent-rgb is the canonical alpha-able token per Cahill's
     handoff guidance — use rgba(var(--accent-rgb), <alpha>) everywhere
     instead of hard-coding rgba(126,224,189,...). */
  --accent: #7ee0bd;
  --accent-deep: #4ab98e;
  --accent-rgb: 126, 224, 189;
  --accent-glow: rgba(var(--accent-rgb), 0.18);
  --accent-soft: rgba(var(--accent-rgb), 0.08);

  /* Semantic */
  --success: #5fb878;
  --warn: #d4a657;
  --danger: #d96b6b;
  --info: #7ad9ff;

  /* Approach colors (income / sales / cost) */
  --approach-income: #7ee0bd;
  --approach-sales:  #b0a7e8;
  --approach-cost:   #d4a657;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.03) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 12px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --shadow-glow: 0 0 0 1px var(--accent-glow), 0 0 24px rgba(126,224,189,0.08);

  /* Geometry */
  --radius: 6px;
  --radius-lg: 10px;
  --radius-sm: 4px;

  /* Typography */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --serif: 'Fraunces', Georgia, serif;

  /* Layout */
  --topbar-h: 52px;
  --rail-w: 280px;
  --rail-r-w: 380px;
  --status-h: 28px;
}

html[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-elev-1: #ffffff;
  --bg-elev-2: #ffffff;
  --bg-elev-3: #f0f2f5;
  --bg-elev-4: #e8ecf1;
  --ink: #0e1116;
  --ink-2: #4a525e;
  --ink-3: #6c7686;
  --ink-4: #a4adbb;
  --silver: #4a525e;
  --silver-2: #6c7686;
  --hairline: #e3e6eb;
  --hairline-strong: #d0d5dc;
  --hairline-bright: #b5bcc6;
  --accent: #4ab98e;
  --accent-deep: #2f8a68;
  --accent-rgb: 74, 185, 142;
  --accent-glow: rgba(var(--accent-rgb), 0.22);
  --accent-soft: rgba(var(--accent-rgb), 0.07);
  --shadow-1: 0 1px 0 rgba(255,255,255,0.5) inset, 0 1px 2px rgba(0,0,0,0.06);
  --shadow-2: 0 12px 32px rgba(20,30,50,0.10), 0 0 0 1px rgba(0,0,0,0.04) inset;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(var(--accent-rgb), 0.05), transparent 60%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(201,209,217,0.025), transparent 60%);
}

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(var(--accent-rgb), 0.25); }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--hairline-bright); }

/* ============== TOPBAR ============== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  background: var(--bg-elev-1);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; padding: 0 16px; gap: 16px;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}
.topbar__left { display: flex; align-items: center; gap: 12px; min-width: var(--rail-w); }
.brand {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: var(--radius); transition: background .15s;
}
.brand:hover { background: var(--bg-elev-3); }
.brand__mark { width: 22px; height: 22px; }
.brand__word {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; color: var(--ink);
}
.brand__tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  padding-left: 10px; border-left: 1px solid var(--hairline-strong);
  margin-left: 2px;
}

.cmdk {
  flex: 1; max-width: 540px; height: 34px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elev-2); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); padding: 0 12px; color: var(--ink-3);
  font-size: 12.5px; transition: border-color .15s, background .15s;
}
.cmdk:hover { border-color: var(--hairline-bright); color: var(--ink-2); }
.cmdk svg { flex-shrink: 0; }
.cmdk span { flex: 1; text-align: left; }
.cmdk kbd, kbd {
  font-family: var(--mono); font-size: 10px; padding: 2px 5px;
  background: var(--bg-elev-3); border: 1px solid var(--hairline-strong);
  border-radius: 3px; color: var(--ink-3);
}

.topbar__right { display: flex; align-items: center; gap: 10px; }
.iconbtn {
  position: relative;
  width: 32px; height: 32px;
  background: var(--bg-elev-2); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.iconbtn:hover { border-color: var(--hairline-bright); color: var(--ink); }
.iconbtn__badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent-deep); color: #0a0c10;
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.user {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 10px 4px 5px; background: var(--bg-elev-2);
  border: 1px solid var(--hairline-strong); border-radius: 18px;
}
.user__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #7ee0bd, #4ab98e);
  color: #0a0c10; font-weight: 700; font-size: 10.5px; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
}
.user__meta { display: flex; flex-direction: column; }
.user__name { font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.user__role { font-size: 9.5px; color: var(--ink-3); line-height: 1.2; font-family: var(--mono); letter-spacing: .04em; }

/* ============== SHELL ============== */
.shell {
  position: fixed; top: var(--topbar-h); bottom: var(--status-h); left: 0; right: 0;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr var(--rail-r-w);
  overflow: hidden;
}

/* ============== RAILS ============== */
.rail {
  background: var(--bg-elev-1);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; overflow: hidden;
}
.rail--right { border-right: none; border-left: 1px solid var(--hairline); }
.rail__header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--hairline);
}
.rail__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.rail__filters { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 12px;
  background: var(--bg-elev-3); border: 1px solid var(--hairline-strong);
  color: var(--ink-2); font-size: 11px; transition: all .12s;
}
.chip:hover { color: var(--ink); border-color: var(--hairline-bright); }
.chip--active {
  background: var(--accent-soft); border-color: var(--accent-deep);
  color: var(--accent);
}
.chip__n {
  font-family: var(--mono); font-size: 10px; padding: 0 5px;
  background: rgba(255,255,255,0.04); border-radius: 8px;
}
.chip--sm { font-size: 10.5px; padding: 3px 8px; }

/* Left rail: subject + queue */
.subject-card {
  margin: 14px 16px; padding: 14px;
  background: var(--bg-elev-2); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 11px;
}
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.field-input, .field-input--mono {
  height: 32px; padding: 0 10px;
  background: var(--bg); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm); color: var(--ink);
  font-size: 12.5px; transition: border-color .12s, box-shadow .12s;
  outline: none; width: 100%;
}
.field-input--mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.field-input:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-glow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: var(--radius);
  background: var(--bg-elev-3); border: 1px solid var(--hairline-strong);
  color: var(--ink); font-size: 12.5px; font-weight: 500;
  transition: all .12s;
}
.btn:hover { background: var(--bg-elev-4); border-color: var(--hairline-bright); }
.btn--accent {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #002818; border-color: var(--accent-deep);
  font-weight: 600; letter-spacing: .015em;
}
.btn--accent:hover {
  background: linear-gradient(180deg, #8de8c8, #56c79a);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.22);
}
.btn--ghost { background: transparent; border-color: var(--hairline); }
.btn--sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

.queue-list { padding: 8px 8px; overflow-y: auto; flex: 1; }
.queue-item {
  padding: 10px 11px; border-radius: var(--radius-sm);
  margin-bottom: 4px; cursor: pointer; transition: background .12s;
  border-left: 2px solid transparent;
}
.queue-item:hover { background: var(--bg-elev-2); }
.queue-item--active {
  background: var(--bg-elev-2); border-left-color: var(--accent);
}
.queue-item__addr { font-size: 12px; color: var(--ink); margin-bottom: 3px; }
.queue-item__meta {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  display: flex; gap: 10px;
}

/* ============== MAIN WORKSPACE ============== */
.main {
  overflow-y: auto; padding: 20px 24px 60px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(126,224,189,0.025), transparent 70%),
    var(--bg);
}
.workspace-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: var(--ink-3); text-align: center;
}
.workspace-empty__mark {
  width: 96px; height: 96px; opacity: .35;
  filter: grayscale(1) brightness(1.2);
}
.workspace-empty__title { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.workspace-empty__hint { font-size: 12px; max-width: 360px; }

/* Subject header (above the 3 approach cards) */
.subject-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  gap: 24px;
}
.subject-header__addr {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.015em; line-height: 1.2;
  margin-bottom: 6px;
}
.subject-header__meta {
  display: flex; gap: 22px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .03em;
}
.subject-header__meta strong { color: var(--ink); font-weight: 500; }
.subject-header__verdict {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  padding: 12px 16px; background: var(--bg-elev-2);
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  min-width: 200px;
}
.verdict-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.verdict-value {
  font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--accent);
  letter-spacing: -.01em;
}
.verdict-sub { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }

/* The 3 approach panels */
.approach-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  margin-bottom: 20px;
}
.panel {
  background: var(--bg-elev-1); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--hairline);
  background: var(--bg-elev-2);
}
.panel__title {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.panel__title-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
.panel__title-dot--income { background: var(--approach-income); }
.panel__title-dot--sales  { background: var(--approach-sales);  }
.panel__title-dot--cost   { background: var(--approach-cost);   }
.panel__weight {
  font-family: var(--mono); font-size: 10px; padding: 2px 7px;
  background: var(--bg-elev-3); border: 1px solid var(--hairline-strong);
  border-radius: 4px; color: var(--ink-2); letter-spacing: .04em;
}
.panel__body { padding: 14px; flex: 1; }
.panel__value-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--hairline);
}
.panel__value {
  font-family: var(--mono); font-size: 24px; font-weight: 500;
  color: var(--ink); letter-spacing: -.01em;
}
.panel__value--ppu {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}

.metric-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 11.5px; border-bottom: 1px dotted var(--hairline);
}
.metric-row:last-child { border-bottom: none; }
.metric-row__label { color: var(--ink-3); }
.metric-row__value { font-family: var(--mono); color: var(--ink); font-size: 11px; }

/* Reconciliation panel — wide, sits below the 3 approach grid */
.reconciliation {
  background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 20px;
  box-shadow: var(--shadow-1);
}
.reconciliation__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.reconciliation__title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.reconciliation__method {
  font-size: 11px; color: var(--ink-3); font-family: var(--mono);
}
.recon-formula {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: center; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--radius); margin-bottom: 14px;
  font-family: var(--mono); font-size: 13px;
}
.recon-formula__expr { color: var(--ink-2); }
.recon-formula__expr .num { color: var(--ink); }
.recon-formula__expr .wt { color: var(--accent); }
.recon-formula__result {
  font-size: 18px; color: var(--accent); font-weight: 500;
  padding-left: 14px; border-left: 1px solid var(--hairline-strong);
}
.recon-rationale {
  font-size: 12px; color: var(--ink-2); line-height: 1.6;
  padding-top: 10px; border-top: 1px dotted var(--hairline);
}

/* Comp table (sits below reconciliation) */
.comps-section { margin-top: 12px; }
.comps-section__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.comps-section__title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.comps-audit {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elev-1); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); margin-bottom: 12px;
  font-size: 11.5px; color: var(--ink-2);
}
.comps-audit__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow);
  flex-shrink: 0;
}
.comps-table { width: 100%; border-collapse: collapse; }
.comps-table thead th {
  text-align: left; font-size: 9.5px; padding: 8px 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 500; border-bottom: 1px solid var(--hairline-strong);
  background: var(--bg-elev-1);
}
.comps-table tbody td {
  padding: 11px 10px; font-size: 12px; color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.comps-table tbody tr:hover { background: var(--bg-elev-1); }
.comps-table .ct-num { font-family: var(--mono); color: var(--ink-3); font-size: 11px; }
.comps-table .ct-addr { line-height: 1.3; }
.comps-table .ct-sold { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.comps-table .ct-mono { font-family: var(--mono); font-size: 11.5px; }
.comps-table .ct-src { width: 240px; }
.comp-src { display: flex; flex-direction: column; gap: 4px; }
.comp-src__name {
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  color: var(--accent); text-transform: uppercase;
}
.comp-src__meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.comp-parcel {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; background: var(--bg-elev-2);
  border: 1px solid var(--hairline-strong); border-radius: 3px;
  font-family: var(--mono); font-size: 10px; color: var(--ink);
  letter-spacing: .02em; transition: all .12s;
}
.comp-parcel:hover { border-color: var(--accent-deep); color: var(--accent); }
.comp-parcel__arrow { font-size: 9px; opacity: .6; }
.units-badge {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.units-badge--real { background: rgba(95,184,120,0.15); color: var(--success); border: 1px solid rgba(95,184,120,0.3); }
.units-badge--est  { background: rgba(212,166,87,0.13); color: var(--warn);    border: 1px solid rgba(212,166,87,0.3); }

/* ============== RIGHT RAIL (live tickers + audit chain) ============== */
.rail--right { padding: 0; }
.ticker-panel {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--hairline);
}
.ticker-panel__title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ticker-panel__title .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ticker {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dotted var(--hairline);
}
.ticker:last-child { border-bottom: none; }
.ticker__label { font-size: 11px; color: var(--ink-3); }
.ticker__value {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.ticker__value--accent { color: var(--accent); }
.ticker__value--mute  { color: var(--ink-3); }

/* Step pipeline visualization */
.pipeline {
  padding: 16px;
}
.pipeline-step {
  display: flex; gap: 11px; padding: 10px 0;
  position: relative;
}
.pipeline-step::before {
  content: ''; position: absolute; left: 7px; top: 24px; bottom: -2px;
  width: 1px; background: var(--hairline-strong);
}
.pipeline-step:last-child::before { display: none; }
.pipeline-step__dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-elev-2); border: 2px solid var(--hairline-strong);
  position: relative; z-index: 1;
}
.pipeline-step--active .pipeline-step__dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.pipeline-step--done .pipeline-step__dot {
  background: var(--accent-deep); border-color: var(--accent-deep);
}
.pipeline-step--done .pipeline-step__dot::after {
  content: ''; position: absolute; top: 2px; left: 4px;
  width: 4px; height: 7px;
  border: solid #051914; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.pipeline-step__body { flex: 1; padding-top: 1px; }
.pipeline-step__label {
  font-size: 12px; color: var(--ink); margin-bottom: 2px;
}
.pipeline-step--pending .pipeline-step__label { color: var(--ink-3); }
.pipeline-step__sub {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
}

/* ============== STATUS BAR ============== */
.statusbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--status-h);
  background: var(--bg-elev-1); border-top: 1px solid var(--hairline);
  display: flex; align-items: center; padding: 0 14px; gap: 18px;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  z-index: 100;
}
.status-item { display: flex; align-items: center; gap: 6px; }
.status-item--ok::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
}
.status-item--alert::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn);
}
.status-spacer { flex: 1; }

/* Toasts */
.toasts {
  position: fixed; bottom: 40px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg-elev-3); border: 1px solid var(--hairline-bright);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 12px; color: var(--ink); box-shadow: var(--shadow-2);
  max-width: 320px; animation: slide-in .25s ease-out;
}
@keyframes slide-in { from { transform: translateX(20px); opacity: 0; } }

/* Skeleton (loading state) */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elev-2), var(--bg-elev-3), var(--bg-elev-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 3px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Spinner */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--hairline-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
