/* ═══════════════════════════════════════════════════════════════
   McGrath Prospect Explorer — Airtable-style product UI.

   Structure, spacing and shape follow Airtable: cool grey canvas, white
   cards with generous radii and near-invisible shadows, pill buttons,
   circular tinted icon badges, and a light geometric sans throughout.

   McGrath orange stays as the single accent so the tool still reads as
   theirs — the serif is kept for the wordmark only, where it's the actual
   logo, rather than as a UI typeface.

   Mobile-first: agents use this in the car; desktop is the enhancement.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* canvas + surfaces */
  --canvas:     #F7F8FA;
  --surface:    #FFFFFF;
  --surface-2:  #F4F5F7;
  --border:     #E6E8EC;
  --border-2:   #EFF0F3;

  /* text */
  --ink:        #1F2328;
  --ink-2:      #3A4048;
  --ink-soft:   #5A6069;
  --muted:      #8B919A;

  /* brand accent */
  --orange:     #E67200;
  --orange-lt:  #F58C35;
  --orange-wash:#FFF2E5;
  --orange-line:#FBD9B8;
  --rust:       #A34E08;

  /* status tints — muted, Airtable-ish */
  --red:        #D9304C;  --red-wash:   #FDECEF;
  --amber:      #B8791A;  --amber-wash: #FDF4E3;
  --green:      #1E8E52;  --green-wash: #E8F6ED;
  --blue:       #2D6BE0;  --blue-wash:  #EDF3FE;
  --gold:       #CCAE6C;

  /* legacy aliases so older rules and inline styles keep working */
  --paper:      var(--canvas);
  --card:       var(--surface);
  --rule:       var(--border);
  --grey:       var(--surface-2);
  --white:      #FFFFFF;

  --serif: 'Haas Grotesk Display', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto,
           'Helvetica Neue', Arial, sans-serif;

  /* shape */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  /* near-invisible elevation — depth comes from the border, not the shadow */
  --shadow-1: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.05);
  --shadow-2: 0 4px 10px rgba(16,24,40,.06), 0 12px 28px rgba(16,24,40,.08);
  --shadow-3: 0 8px 24px rgba(16,24,40,.10), 0 24px 56px rgba(16,24,40,.12);

  --topbar-h: 60px; --tabs-h: 52px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { background: var(--canvas); }
[hidden] { display: none !important; }

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  min-height: 100vh;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; }
button, select, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

/* ── top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  padding: 0 18px; padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar__brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.wordmark {
  font-family: var(--serif); font-size: 21px; letter-spacing: -.01em;
  color: var(--ink); font-weight: 500;
}
.topbar__sub {
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; font-weight: 600;
}
@media (max-width: 620px) { .topbar__sub { display: none; } }
.topbar__right { display: flex; align-items: center; gap: 10px; }

.agent-select { display: flex; align-items: center; gap: 8px; }
.agent-select__label {
  display: none; font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.agent-select select {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 12px; max-width: 44vw; font-size: 14px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.agent-select select:hover { border-color: #D3D7DE; }
.agent-select select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-wash);
}

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-soft); transition: background .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: #D3D7DE; color: var(--ink); }
.filter-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: var(--r-pill); background: var(--orange); color: #fff;
  font-size: 11px; line-height: 19px; text-align: center; font-weight: 700;
  border: 2px solid var(--surface);
}

/* ── tabs ────────────────────────────────────────────────── */
.tabs {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: 35;
  height: var(--tabs-h); display: flex; gap: 6px; padding: 0 12px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1; background: none; border: none; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.tab:hover { color: var(--ink-2); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--orange); font-weight: 600; }
.tab .ico { color: var(--muted); transition: color .16s var(--ease); }
.tab.is-active .ico { color: var(--orange); }
.tab__count {
  display: inline-block; margin-left: 2px; padding: 1px 8px;
  background: var(--surface-2); border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
}
.tab.is-active .tab__count { background: var(--orange-wash); color: var(--rust); }

/* ── layout ──────────────────────────────────────────────── */
.layout { display: block; }
.results { padding: 24px 18px 100px; max-width: 820px; margin: 0 auto; }
.results__head { margin-bottom: 20px; }
.results__title { font-size: 26px; font-weight: 600; line-height: 1.2; }
.results__meta { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.section-label {
  font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 28px 0 12px;
}

/* ── prospect cards ──────────────────────────────────────── */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px; box-shadow: var(--shadow-1);
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-2); border-color: #D8DCE2; transform: translateY(-1px);
}
.card:active { transform: translateY(0); }
.card.is-done { opacity: .55; }
.card__top { display: flex; gap: 14px; align-items: flex-start; }
.card__body { flex: 1; min-width: 0; }
.card__name { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0 0 3px; }
.card__addr { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.card__why {
  margin: 12px 0 0; padding: 10px 12px;
  background: var(--surface-2); border-radius: var(--r-sm);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.card__foot { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 13px; }

/* score badge — tinted disc, matching the status-badge language */
.score {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  letter-spacing: -.02em;
}
.score--hot  { background: var(--orange-wash); color: var(--orange); }
.score--warm { background: var(--amber-wash);  color: var(--amber); }
.score--cool { background: var(--surface-2);   color: var(--muted); }

/* chips — pills, tinted by meaning */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-soft);
}
.chip .ico { width: .95em; height: .95em; opacity: .8; }
.chip--dist   { background: var(--orange-wash); color: var(--rust); font-weight: 600; }
.chip--sold   { background: var(--red-wash);    color: var(--red);   font-weight: 600; }
.chip--listed { background: var(--green-wash);  color: var(--green); font-weight: 600; }
.chip--withdrawn { background: var(--surface-2); color: var(--muted); }
.chip--state  { background: var(--blue-wash);   color: var(--blue);  font-weight: 600; }

/* ── filters ─────────────────────────────────────────────── */
.filters {
  position: fixed; inset: 0; z-index: 60; background: var(--surface);
  display: none; flex-direction: column;
}
.filters.is-open { display: flex; }
.filters__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px; border-bottom: 1px solid var(--border);
  font-size: 17px; font-weight: 600;
}
.filters__body { flex: 1; overflow-y: auto; padding: 18px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .filters label {
  display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
/* Scoped to .filters on purpose: a bare `.field input` (0,1,1) out-ranks the
   login page's own `.field__input` (0,1,0) and silently eats its left padding,
   putting the field icon on top of the placeholder. */
.filters select, .filters input[type="text"], .filters input[type="number"],
.notefield, .filters .field input, .filters .field select {
  width: 100%; padding: 11px 13px; font-size: 15px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.filters select:focus, .filters input:focus, .notefield:focus,
.filters .field input:focus, .filters .field select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-wash);
}
.filters input[type="range"] { width: 100%; accent-color: var(--orange); }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }

/* ── buttons ─────────────────────────────────────────────── */
/* Anchors are used as buttons in several places (tel: links especially),
   so kill the underline on the shared rule rather than per-variant. */
.btn, .btn-call, .outcome-btn, .text-btn {
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  transition: background .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease), transform .1s var(--ease);
}
.btn:hover, .btn-call:hover { text-decoration: none; }
.btn { background: var(--ink); color: #fff; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.985); }
.btn--block { width: 100%; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--rust); }
.btn--ghost {
  background: var(--surface); color: var(--ink-soft); border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: #D3D7DE; }
.text-btn {
  background: none; border: none; color: var(--ink-soft);
  min-height: auto; padding: 0; font-weight: 500;
}
.text-btn:hover { color: var(--orange); }

.btn-call {
  width: 100%; background: var(--orange); color: #fff; text-decoration: none;
  min-height: 52px; font-size: 15px;
}
.btn-call:hover { background: var(--rust); }
.btn-call .ico { transition: transform .2s var(--ease); }
.btn-call:hover .ico { transform: rotate(-9deg) scale(1.08); }

.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.outcome-btn {
  background: var(--surface); border-color: var(--border); color: var(--ink-2);
  font-size: 13.5px; min-height: 46px; padding: 0 12px;
}
.outcome-btn:hover { background: var(--surface-2); border-color: #D3D7DE; }
.outcome-btn.is-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.outcome-btn.is-primary:hover { background: var(--rust); border-color: var(--rust); }
.outcome-btn.is-neg { color: var(--red); }
.outcome-btn.is-neg:hover { background: var(--red-wash); border-color: #F6C9D0; }
.outcome-btn .ico { transition: transform .18s var(--ease); }
.outcome-btn:hover .ico { transform: translateY(-2px); }

/* ── detail sheet ────────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(16,24,40,.35); backdrop-filter: blur(2px);
}
.sheet {
  position: fixed; z-index: 80; background: var(--surface);
  display: flex; flex-direction: column;
  inset: auto 0 0 0; max-height: 92vh;
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-3);
}
.sheet__grip {
  width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--border);
  margin: 10px auto 4px;
}
.sheet__scroll { overflow-y: auto; padding: 12px 18px 28px; -webkit-overflow-scrolling: touch; }
.sheet__actions {
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); background: var(--surface);
}
@media (min-width: 820px) {
  .sheet {
    inset: 0 0 0 auto; width: 460px; max-height: none;
    border-radius: 0; box-shadow: -8px 0 32px rgba(16,24,40,.12);
  }
  .sheet__grip { display: none; }
}
.detail__name { font-size: 23px; font-weight: 600; line-height: 1.2; }
.detail__addr { color: var(--ink-soft); margin: 4px 0 14px; font-size: 14.5px; }
.detail__specs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.detail__section { margin: 24px 0 0; }

.trigger {
  background: var(--orange-wash); border-radius: var(--r-md);
  padding: 15px; margin-top: 10px;
}
.trigger__addr { font-weight: 600; font-size: 15px; }
.trigger__detail { color: var(--rust); font-size: 13.5px; margin: 4px 0 10px; }

/* score breakdown — progress bars carry the weighting visually */
.reason { margin-bottom: 15px; }
.reason__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; font-weight: 600; margin-bottom: 6px;
}
.reason__pts { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.reason__bar {
  height: 7px; border-radius: var(--r-pill); background: var(--surface-2);
  overflow: hidden; margin-bottom: 7px;
}
.reason__bar > span {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: var(--orange); transition: width .5s var(--ease);
}
.reason__text, .reason__why { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.notebox { margin-top: 20px; }
.notefield { min-height: 88px; resize: vertical; }

.history { margin-top: 12px; }
.history__row {
  display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-2);
  font-size: 13.5px;
}
.history__when { color: var(--muted); white-space: nowrap; font-size: 12.5px; }

/* ── activity ────────────────────────────────────────────── */
.statgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin: 18px 0 28px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--shadow-1);
}
.stat__ico {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-soft);
  display: grid; place-items: center; padding: 9px; margin-bottom: 14px;
}
.stat--accent .stat__ico { background: var(--orange-wash); color: var(--orange); }
.stat__n { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat__n--accent { color: var(--orange); }
.stat__l { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }

.log { display: flex; flex-direction: column; gap: 10px; }
.log__row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 15px; box-shadow: var(--shadow-1); font-size: 14px;
}
.log__meta { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* ── map ─────────────────────────────────────────────────── */
.mapwrap { position: relative; height: calc(100vh - var(--topbar-h) - var(--tabs-h)); }
#map { width: 100%; height: 100%; }
.map-legend {
  position: absolute; left: 14px; bottom: 22px; z-index: 500;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 12.5px; box-shadow: var(--shadow-2);
}
.dot {
  display: inline-block; width: 10px; height: 10px; border-radius: var(--r-pill);
  margin-right: 8px; vertical-align: -1px;
}
.dot--event { background: var(--ink); }
.dot--hot { background: var(--orange); }
.dot--warm { background: var(--amber); }
.dot--cool { background: var(--muted); }

.pin {
  border-radius: var(--r-pill); border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(16,24,40,.28);
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
}

/* clusters — coloured by the hottest prospect inside */
.cluster {
  position: relative; border-radius: var(--r-pill); border: 3px solid #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  box-shadow: 0 3px 10px rgba(16,24,40,.22);
  transition: transform .14s var(--ease);
}
.cluster:hover { transform: scale(1.08); }
.cluster__hot {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--ink); color: #fff; border: 2px solid #fff;
  border-radius: var(--r-pill); font-size: 10px; font-style: normal; line-height: 15px;
  text-align: center;
}
.marker-cluster, .marker-cluster div { background: none !important; }

/* ── map popups ──────────────────────────────────────────── */
.pop .leaflet-popup-content-wrapper {
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--shadow-3); padding: 0; overflow: hidden;
  border: 1px solid var(--border);
}
.pop .leaflet-popup-content { margin: 0; min-width: 268px; line-height: 1.55; }
.pop .leaflet-popup-tip { background: var(--surface); box-shadow: none; }
.pop .leaflet-popup-close-button {
  top: 10px; right: 10px; color: var(--muted); font-size: 20px; width: 24px; height: 24px;
  transition: color .15s var(--ease);
}
.pop .leaflet-popup-close-button:hover { color: var(--ink); background: none; }

.pop__card { padding: 17px; }
.pop__head { display: flex; gap: 12px; align-items: flex-start; padding-right: 22px; }
.pop__score { width: 42px; height: 42px; font-size: 15px; flex: none; }
.pop__id { min-width: 0; }
.pop__name {
  font-size: 16.5px; font-weight: 600; line-height: 1.25; margin: 1px 0 3px;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.pop__addr { margin: 0; font-size: 13px; color: var(--ink-soft); }
.pop__why {
  margin: 12px 0 0; padding: 10px 12px; background: var(--surface-2);
  border-radius: var(--r-sm); font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.pop__facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 11px; font-size: 12.5px; color: var(--ink-soft);
}
.pop__facts .ico { width: 1em; height: 1em; opacity: .7; margin-right: 3px; }
.pop__dot { color: var(--border); margin: 0 2px; }
.pop__trigger {
  margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.pop__trigger-label {
  font-size: 10px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; width: 100%;
}
.pop__trigger-addr { font-size: 13px; color: var(--ink); font-weight: 600; }
.pop__state {
  margin-top: 11px; padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--blue-wash); color: var(--blue); font-size: 12px; font-weight: 600;
  display: inline-block;
}
.pop__state.is-closed { background: var(--surface-2); color: var(--muted); }
.pop__actions { display: flex; gap: 9px; margin-top: 15px; }
.pop__call {
  flex: 1; min-height: 44px; border-radius: var(--r-pill);
  background: var(--orange); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.pop__call:hover { background: var(--rust); }
.pop__call:active { transform: scale(.98); }
.pop__call .ico { transition: transform .2s var(--ease); }
.pop__call:hover .ico { transform: rotate(-9deg) scale(1.08); }
.pop__call.is-disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.pop__more {
  min-height: 44px; padding: 0 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft);
  font-size: 13px; font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pop__more:hover { background: var(--surface-2); color: var(--ink); border-color: #D3D7DE; }

.pop--trigger .leaflet-popup-content-wrapper { background: var(--ink); border-color: var(--ink); }
.pop--trigger .leaflet-popup-tip { background: var(--ink); }
.pop--trigger .leaflet-popup-close-button { color: #7A828C; }
.pop--trigger .leaflet-popup-close-button:hover { color: #fff; }
.pop__card--trigger .pop__name { color: #fff; }
.pop__card--trigger .pop__why { background: rgba(255,255,255,.07); color: #C8CDD4; }
.pop__card--trigger .pop__facts { color: #9AA1AA; }
.pop__eyebrow {
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--orange-lt); font-weight: 700; margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 480px) {
  .pop .leaflet-popup-content-wrapper { max-width: calc(100vw - 40px); }
}

/* ── icons ───────────────────────────────────────────────── */
.ico {
  width: 1em; height: 1em; flex: 0 0 auto;
  vertical-align: -0.125em; color: inherit;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Lineo draws at 2.5 on an 85-unit viewBox — near-invisible at 16px. */
.ico * { stroke-width: 4; }
.ico--lg { width: 1.35em; height: 1.35em; }
/* Only ever inside a fixed-size badge — never applied to a bare SVG, or it
   inflates to fill whatever container it lands in. */
.stat__ico .ico { width: 22px; height: 22px; }
.stat__ico .ico * { stroke-width: 3; }

/* ── misc ────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 56px 20px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.empty h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.empty p { margin: 0; font-size: 14px; }
.empty__ico { width: 44px; height: 44px; color: var(--border); display: block; margin: 0 auto 16px; }

.skeleton {
  height: 118px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border: 1px solid var(--border);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 90; background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-3);
  animation: toast-in .28s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Bar colour reflects how much of the available weight was earned. */
.reason__bar.is-strong > span { background: var(--orange); }
.reason__bar.is-mid    > span { background: var(--amber); }
.reason__bar.is-weak   > span { background: #C9CDD4; }
