/* =========================================================================
   Live ICP Tracker — mid-fi wireframe styles
   Clean grey boxes, real labels, a touch of Malachyte green.
   ========================================================================= */
@import url('colors_and_type.css');

:root {
  --wf-line: #DDDAD2;          /* wireframe box border */
  --wf-line-strong: #C7C2B8;
  --wf-fill: #F1EFEA;          /* grey placeholder fill */
  --wf-fill-2: #E7E4DD;        /* darker grey placeholder */
  --wf-surface: #FFFFFF;
  --wf-page: #F6F4EF;
  --wf-ink: #2B3338;
  --wf-muted: #6B7479;
  --wf-subtle: #9AA0A3;
  --rail-w: 232px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--wf-page);
  color: var(--wf-ink);
  font-family: var(--font-sans);
  font-size: 14px;
}
#root { height: 100%; }

/* ---- App frame --------------------------------------------------------- */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  height: 100vh;
  overflow: hidden;
}
.app.external { grid-template-columns: 1fr; }

/* ---- Sidebar ----------------------------------------------------------- */
.rail {
  background: #FDFBF7;
  border-right: 1px solid var(--border-default);
  display: flex; flex-direction: column;
  min-height: 0;
}
.rail-brand {
  height: 60px; flex: none; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-default);
}
.rail-brand img { width: 26px; height: 26px; }
.rail-brand .wm { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.rail-brand .wm small { display: block; font-size: 10.5px; color: var(--fg-subtle); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }

.rail-sync {
  margin: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--bg-accent-soft);
}
.rail-sync .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-malachyte); display: inline-block; box-shadow: 0 0 0 3px rgba(3,131,98,0.18); }
.rail-sync .row1 { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 12px; }
.rail-sync .row2 { font-size: 11px; color: var(--fg-muted); margin-top: 4px; }

.nav-group { padding: 6px 10px; }
.nav-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); font-weight: 500; padding: 10px 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  color: var(--wf-ink); cursor: pointer; font-size: 13px;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out);
  width: 100%; text-align: left; background: none; font-family: inherit;
}
.nav-item:hover { background: rgba(6,23,31,0.04); }
.nav-item.active { background: var(--bg-accent-soft); color: var(--c-malachyte-dark); border-color: rgba(3,131,98,0.18); font-weight: 500; }
.nav-item .ic { width: 17px; height: 17px; flex: none; color: var(--fg-muted); }
.nav-item.active .ic { color: var(--c-malachyte); }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--fg-subtle); background: var(--wf-fill); border-radius: var(--r-pill); padding: 1px 8px; }
.nav-item.active .count { background: rgba(3,131,98,0.12); color: var(--c-malachyte-dark); }
.nav-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px 28px; position: relative; }
.nav-sub::before { content: ""; position: absolute; left: -10px; top: 4px; bottom: 4px; width: 1.5px; background: var(--wf-line); border-radius: 1px; }
.nav-subitem {
  text-align: left; font-family: inherit; font-size: 13px; color: var(--fg-muted); background: transparent;
  border: none; border-radius: var(--r-sm); padding: 6px 10px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-subitem:hover { background: rgba(6,23,31,0.04); color: var(--wf-ink); }
.nav-subitem.active { color: var(--c-malachyte-dark); font-weight: 600; }

.rail-foot { margin-top: auto; padding: 14px; border-top: 1px solid var(--border-default); }
.rail-foot .who { display: flex; align-items: center; gap: 9px; }

/* ---- Main column ------------------------------------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: 60px; flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  background: var(--wf-surface);
  border-bottom: 1px solid var(--border-default);
}
.topbar h1 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.topbar .sub { font-size: 12px; color: var(--fg-muted); }
.topbar .spacer { flex: 1; }

.scroll { overflow-y: auto; min-height: 0; flex: 1; }
.page { padding: 22px 24px 48px; max-width: 1440px; }

/* ---- Generic wireframe primitives ------------------------------------- */
.card {
  background: var(--wf-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
}
.card.pad { padding: 16px; }
.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }
.mono { font-family: var(--font-mono); }

.ph { background: var(--wf-fill); border-radius: var(--r-xs); display: block; }     /* placeholder block */
.logo-mono {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--wf-fill-2); border: 1px solid var(--wf-line);
  display: grid; place-items: center; font-weight: 500; color: var(--wf-muted);
  font-size: 14px; flex: none; letter-spacing: -0.01em;
}
.logo-mono.lg { width: 52px; height: 52px; font-size: 19px; border-radius: var(--r-lg); }
.logo-mono.sm { width: 26px; height: 26px; font-size: 11px; border-radius: var(--r-sm); }
.logo-mono.logo-img { background: #fff; padding: 0; overflow: hidden; }
.logo-mono.logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--wf-fill-2); border: 1px solid var(--wf-line);
  display: grid; place-items: center; font-size: 11px; color: var(--wf-muted); font-weight: 500; flex: none;
}

/* labels / chips */
.label-micro { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); font-weight: 500; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--wf-fill); color: var(--wf-muted); border: 1px solid transparent; white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.tier { font-weight: 500; font-size: 11px; padding: 2px 8px; border-radius: var(--r-xs); color: #fff; letter-spacing: 0.02em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--border-default); background: var(--wf-surface); color: var(--wf-ink);
  transition: background var(--dur-fast) var(--ease-out);
}
.btn:hover { background: rgba(6,23,31,0.04); }
.btn.pri { background: var(--c-malachyte); color: #fff; border-color: var(--c-malachyte); }
.btn.pri:hover { background: #026E52; }
.btn.sm { padding: 5px 11px; font-size: 12px; }

/* filter popover */
.filter-anchor { position: relative; }
.btn.filter-on { border-color: var(--c-malachyte); color: var(--c-malachyte-dark); background: var(--bg-accent-soft); }
.filter-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px;
  padding: 0 4px; margin-left: 2px; font-size: 10px; font-weight: 600; line-height: 1;
  color: #fff; background: var(--c-malachyte); border-radius: 8px;
}
.filter-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 320px;
  background: var(--wf-surface); border: 1px solid var(--border-default); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: popIn var(--dur-fast) var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.filter-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border-default); font-weight: 600; font-size: 13px;
}
.filter-clear {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 500; color: var(--c-malachyte-dark);
}
.filter-clear:hover { text-decoration: underline; }
.filter-pop-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.filter-field { display: flex; flex-direction: column; gap: 7px; }
.filter-field > label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-muted); display: flex; align-items: center; gap: 6px;
}
.filter-hint, .filter-suffix { font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg-subtle); }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-range input {
  width: 100%; min-width: 0; font-family: inherit; font-size: 13px; color: var(--wf-ink);
  background: var(--wf-fill); border: 1px solid transparent; border-radius: var(--r-md); padding: 7px 10px; outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.filter-range input:focus { border-color: var(--c-malachyte); background: var(--wf-surface); }
.filter-dash { color: var(--fg-subtle); flex: none; }
.filter-seg { width: 100%; }
.filter-seg button { flex: 1; padding: 6px 4px; font-size: 12px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  padding: 5px 11px; border-radius: var(--r-pill); text-transform: capitalize;
  border: 1px solid var(--border-default); background: var(--wf-surface); color: var(--wf-muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--wf-line-strong); }
.filter-chip.on { background: var(--c-malachyte); border-color: var(--c-malachyte); color: #fff; }
.filter-pop-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-top: 1px solid var(--border-default); background: var(--wf-fill);
}
.btn .ic { width: 15px; height: 15px; }
.btn.ghost { border-color: transparent; background: transparent; }

/* row selection */
.row-check {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  width: 16px; height: 16px; margin: 0; flex: none; vertical-align: middle;
  border: 1.5px solid var(--wf-line-strong); border-radius: 5px; background: var(--wf-surface);
  display: inline-grid; place-content: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.row-check:hover { border-color: var(--c-malachyte); }
.row-check:checked, .row-check:indeterminate { background: var(--c-malachyte); border-color: var(--c-malachyte); }
.row-check:checked::after {
  content: ""; width: 9px; height: 9px; background: #fff;
  clip-path: polygon(14% 47%, 0 60%, 39% 100%, 100% 22%, 86% 9%, 38% 71%);
}
.row-check:indeterminate::after { content: ""; width: 8px; height: 2px; border-radius: 1px; background: #fff; }
.tbl tbody tr.row-selected { background: var(--bg-accent-soft); }
.tbl tbody tr.row-selected:hover { background: var(--bg-accent-soft); }
.sel-count { font-size: 12px; font-weight: 600; color: var(--c-malachyte-dark); }
.referral-posted-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--c-malachyte-dark); background: var(--bg-accent-soft); border: 1px solid rgba(3,131,98,0.18); border-radius: var(--r-pill); padding: 6px 12px; margin-right: 8px; }
.btn.ghost:hover { background: rgba(6,23,31,0.04); }

/* ---- Add-to-list modal ---- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,23,31,0.35); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 440px; background: var(--wf-surface);
  border: 1px solid var(--wf-line); border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--wf-line); }
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--wf-line); background: var(--wf-surface-2, rgba(6,23,31,0.02)); }
.modal-input {
  width: 100%; box-sizing: border-box; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--wf-line-strong); border-radius: 9px; background: var(--wf-surface); color: var(--wf-ink);
}
.modal-input:focus { outline: none; border-color: var(--c-malachyte); }
.intro-check {
  width: 44px; height: 44px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--c-malachyte-soft, rgba(46,125,90,0.12)); color: var(--c-malachyte-dark, var(--c-malachyte));
}
.btn.pri:disabled { opacity: 0.5; cursor: not-allowed; }
.saved-pick { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.saved-pick-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--wf-line); border-radius: 10px;
  background: var(--wf-surface); cursor: pointer; font-size: 14px; text-align: left;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.saved-pick-row:hover { border-color: var(--c-malachyte); }
.saved-pick-row.on { border-color: var(--c-malachyte); background: var(--bg-accent-soft); }

/* ---- Saved lists view ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 56px 24px; }
.empty-state h3 { margin: 4px 0 0; font-size: 16px; }
.empty-state p { margin: 0; max-width: 380px; font-size: 13px; }
.saved-card { cursor: pointer; gap: 4px; }
.saved-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.saved-title-wrap { display: flex; flex-direction: column; gap: 1px; }
.saved-title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.saved-logos { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--wf-line); }

/* score bar */
.score-num { font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: var(--r-pill); background: var(--wf-fill); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--c-malachyte); }

/* segmented control */
.seg { display: inline-flex; background: var(--wf-fill); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.seg button {
  border: none; background: none; font-family: inherit; font-size: 12.5px; color: var(--wf-muted);
  padding: 5px 12px; border-radius: var(--r-sm); cursor: pointer; font-weight: 500;
}
.seg button.on { background: var(--wf-surface); color: var(--wf-ink); box-shadow: var(--shadow-xs); }

/* search input */
.search { display: flex; align-items: center; gap: 8px; background: var(--wf-fill); border: 1px solid transparent; border-radius: var(--r-pill); padding: 7px 14px; min-width: 220px; }
.search input { border: none; background: none; outline: none; font-family: inherit; font-size: 13px; width: 100%; color: var(--wf-ink); }
.search .ic { width: 15px; height: 15px; color: var(--fg-subtle); }

/* ---- Data table -------------------------------------------------------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 600; padding: 14px 9px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border-default); position: sticky; top: 0; background: var(--wf-surface); z-index: 5;
  box-shadow: 0 1px 0 var(--border-default);
}
.tbl thead th.num { text-align: right; }
.tbl tbody tr { border-bottom: 1px solid #F0EDE7; cursor: pointer; }
.tbl tbody tr:hover { background: rgba(3,131,98,0.04); }
.tbl tbody td { padding: 12px 9px; vertical-align: middle; }
.tbl tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.app[data-density="compact"] .tbl tbody td { padding: 7px 14px; }
.app[data-density="compact"] .acct-cell .logo-mono { width: 28px; height: 28px; font-size: 11px; }

.acct-cell { display: flex; align-items: center; gap: 11px; }
.acct-cell .nm { font-weight: 500; }
.acct-cell .dm { font-size: 11.5px; color: var(--fg-subtle); }

.rank { font-variant-numeric: tabular-nums; color: var(--fg-subtle); font-size: 12px; width: 26px; }

/* vendors inline */
.vend-row { display: flex; gap: 5px; flex-wrap: wrap; }
.vend { font-size: 11px; padding: 1px 7px; border-radius: var(--r-xs); background: var(--wf-fill); border: 1px solid var(--wf-line); color: var(--wf-muted); }
.vend.exp { border-color: var(--c-sunset); color: #9A5B1E; background: rgba(216,146,81,0.1); }

/* ---- Card / roster grids ---------------------------------------------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.app[data-density="compact"] .grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.acard { padding: 14px; display: flex; flex-direction: column; gap: 11px; cursor: pointer; }
.acard:hover { border-color: var(--wf-line-strong); }
.acard .head { display: flex; gap: 11px; align-items: flex-start; }
.acard .head .meta { flex: 1; min-width: 0; }
.acard .stat-row { display: flex; gap: 14px; }
.acard .stat { font-size: 12px; }
.acard .stat b { display: block; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* tier columns (kanban) */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.tier-col { background: var(--wf-fill); border-radius: var(--r-lg); padding: 12px; }
.tier-col > .head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tier-col .stack { display: flex; flex-direction: column; gap: 9px; }
.tier-mini { background: var(--wf-surface); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: 11px; cursor: pointer; }
.tier-mini:hover { border-color: var(--wf-line-strong); }

/* ---- Layout helpers ---------------------------------------------------- */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; } .gap24 { gap: 24px; }
.grow { flex: 1; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--wf-surface); border: 1px solid var(--border-default); border-radius: var(--r-lg); padding: 14px 16px; }
.kpi .v { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.kpi .d { font-size: 11.5px; margin-top: 6px; }
.up { color: var(--c-malachyte); } .down { color: var(--st-danger); }

/* section header */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.sec-head h2 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.sec-head .line { flex: 1; height: 1px; background: var(--border-default); }

/* ---- Detail (command card) -------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field .k { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-subtle); font-weight: 500; }
.field .v { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.field .src { font-size: 10px; color: var(--fg-subtle); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }

.person { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid #F0EDE7; }
.person:last-child { border-bottom: none; }
.person .meta { flex: 1; min-width: 0; }
.person .nm { font-weight: 500; font-size: 13px; }
.person .tt { font-size: 11.5px; color: var(--fg-muted); }

.signal { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F0EDE7; }
.signal:last-child { border-bottom: none; }
.signal .sic { width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.signal .stx { flex: 1; }
.signal .when { font-size: 11px; color: var(--fg-subtle); white-space: nowrap; }

.heat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.winplan { background: var(--bg-accent-soft); border: 1px solid rgba(3,131,98,0.16); border-radius: var(--r-lg); padding: 16px; }
.winplan .thesis { font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.hyp { background: var(--wf-surface); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: 12px; font-size: 13px; line-height: 1.55; }

/* weight tuner sliders */
.tuner-row { display: grid; grid-template-columns: 200px 1fr 56px; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid #F0EDE7; }
.tuner-row .nm { font-weight: 500; font-size: 13px; }
.tuner-row .nt { font-size: 11.5px; color: var(--fg-muted); line-height: 1.4; }
input[type=range].sl { -webkit-appearance: none; width: 100%; height: 5px; border-radius: var(--r-pill); background: var(--wf-fill); outline: none; }
input[type=range].sl::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c-malachyte); cursor: pointer; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
input[type=range].sl::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--c-malachyte); cursor: pointer; border: 2px solid #fff; }
.wval { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* bars chart */
.hbar { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; padding: 7px 0; }
.hbar .lab { font-size: 12.5px; }
.hbar .track { height: 8px; background: var(--wf-fill); border-radius: var(--r-pill); overflow: hidden; }
.hbar .track > i { display: block; height: 100%; border-radius: var(--r-pill); }
.hbar .pv { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--wf-muted); }

/* ---- External view ----------------------------------------------------- */
.ext-wrap { min-height: 100vh; overflow-y: auto; }
.ext-hero {
  background: var(--c-charcoal); color: var(--fg-inverse);
  padding: 30px 0 34px; position: relative; overflow: hidden;
}
.ext-hero .inner { max-width: 1080px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.ext-oval { position: absolute; border-radius: 50%; transform: rotate(-9deg); opacity: 0.9; }
.ext-body { max-width: 1080px; margin: 0 auto; padding: 26px 32px 64px; }
.ext-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--r-lg); }
.ext-list-row { display: grid; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #F0EDE7; }
.ext-list-row:last-child { border-bottom: none; }
.proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.proof .p { border: 1px solid var(--border-default); border-radius: var(--r-lg); padding: 16px; background: #fff; }
.proof .p .s { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--c-malachyte); }

/* warmth pills (partner input) */
.warmth-set { display: inline-flex; gap: 6px; }
.warmth-set button {
  font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-default);
  background: #fff; color: var(--wf-muted);
}
.warmth-set button.on[data-w="hot"]  { background: rgba(193,69,69,0.12); border-color: var(--st-danger); color: var(--st-danger); }
.warmth-set button.on[data-w="warm"] { background: rgba(216,146,81,0.14); border-color: var(--c-sunset); color: #9A5B1E; }
.warmth-set button.on[data-w="cold"] { background: var(--wf-fill); border-color: var(--wf-line-strong); color: var(--wf-muted); }

.note-input { width: 100%; border: 1px solid var(--border-default); border-radius: var(--r-md); padding: 9px 11px; font-family: inherit; font-size: 13px; resize: vertical; min-height: 38px; background: var(--wf-page); color: var(--wf-ink); }
.note-input:focus { outline: none; border-color: var(--c-malachyte); box-shadow: 0 0 0 3px rgba(3,131,98,0.12); }

/* coverage / banner */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); font-size: 13px; }
.banner.info { background: rgba(75,78,135,0.08); border: 1px solid rgba(75,78,135,0.2); }
.banner.warn { background: rgba(216,146,81,0.1); border: 1px solid rgba(216,146,81,0.3); }

.empty { text-align: center; color: var(--fg-subtle); padding: 40px; }

/* scrollbar */
.scroll::-webkit-scrollbar, .ext-wrap::-webkit-scrollbar { width: 10px; }
.scroll::-webkit-scrollbar-thumb, .ext-wrap::-webkit-scrollbar-thumb { background: #DDD8CF; border-radius: 8px; border: 3px solid var(--wf-page); }
