/* Top Leads app skin, Nov 2026 (user approved Nov 1: "lets build it with geist"). Loaded after theme.css, app.css and
   trends.css by the app pages only, so the landing pages keep their own look. Inspired by Rivian's software notes:
   calm spacing, big light numbers, a muted outdoor palette with ONE amber accent for the one action that matters,
   thin dividers, soft rounded panels, restrained motion. Mockups: docs/design/. */
/* Fonts and tokens live in geist.css (loaded just before this file). */
body { font-feature-settings: "ss01" 1; letter-spacing: -0.005em; }
h1, h2, h3, .display { letter-spacing: -0.02em; }
code { font-family: var(--font-num); }
.btn { font-weight: 500; transition: background .2s var(--ease), border-color .2s, transform .1s; }
.btn.primary { font-weight: 600; }
.btn.primary:hover { filter: brightness(1.04); }
.chip { font-weight: 450; border-color: var(--line-strong); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:hover { border-color: var(--ink-2); }

/* ---------- rail: light, quiet, the page colour ---------- */
#rail { --ink: inherit; --ink-2: inherit; --muted: inherit; --bg-2: inherit; --card: inherit; --line: inherit; --line-strong: inherit; --accent-soft: inherit; --primary: inherit; --primary-ink: inherit; }
#rail { background: var(--bg); color: var(--ink); border-right: 1px solid var(--line); }
#rail .brand { color: var(--ink); }
#rail button[role=tab] { color: var(--ink-2); font-weight: 450; border-radius: var(--r); transition: background .2s, color .2s; }
#rail button[role=tab]:hover { background: var(--bg-2); color: var(--ink); }
#rail button[role=tab][aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 550; }
#rail .foot { color: var(--muted); }
.avatar, .mavatar { background: var(--bg-2); color: var(--ink-2); font-weight: 600; }

/* ---------- top bar and explore header ---------- */
#top { border-bottom-color: var(--line); background: var(--bg); }
#top h1 { font-weight: 550; }
#top .ctx { border-color: var(--line); }
#top .ctx span { border-left-color: var(--line); font-weight: 450; color: var(--ink-2); }
#main, #body, #explore { background: var(--bg); }
#viewSeg { box-shadow: none; background: var(--card); border-color: var(--line); }
#viewSeg button { font-weight: 500; }
#viewSeg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.searchbar { border-color: var(--line); box-shadow: none; border-radius: var(--r-lg); }
.searchbar:focus-within { border-color: var(--forest-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest-2) 14%, transparent); }
.searchbar .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }  /* the one amber button on this screen is Export */
#count { font-weight: 450; color: var(--muted); }
.sortsel { font-weight: 500; color: var(--ink-2); }

/* Export is the one primary action on the lead screens: the only amber button. */
#exportBtn { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
#exportBtn:hover { filter: brightness(1.04); background: var(--amber); }

/* ...so the rail's subscribe button is ink, not a second amber one. */
#rail #upgradeCta { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* The headline count: big and light, like the mockup ("4,158 leads worth mailing") */
.hero-count { margin: 4px 0 18px; }
.hero-count .n { display: block; font: 300 56px/1 var(--font-body); letter-spacing: -0.045em; font-feature-settings: "tnum" 1; }
.hero-count .t { color: var(--ink-2); margin-top: 8px; font-size: var(--fs-md); }
.hero-count .t b { font-weight: 550; color: var(--ink); }
.eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- score: a large light number with a thin meter under it ---------- */
.score { --v: 0; display: inline-grid; justify-items: end; align-content: center; gap: 5px; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none !important; color: var(--ink) !important;
  font: 300 var(--fs-xl)/1 var(--font-body); letter-spacing: -0.03em; font-feature-settings: "tnum" 1; }
.score::after { content: ""; width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--score-c, var(--score-mid)) calc(var(--v) * 1%), var(--line) 0); }
.score.mid { --score-c: var(--forest-2); } .score.hi { --score-c: var(--forest); } .score.top { --score-c: var(--amber); }
.card .photo .score { top: 12px; left: 12px; padding: 7px 10px 8px; border-radius: 12px; background: color-mix(in srgb, var(--card) 92%, transparent) !important; box-shadow: var(--shadow); font-size: 22px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card .photo .score::after { width: 32px; }
#detail .hero .scoreflag { background: color-mix(in srgb, var(--card) 94%, transparent); color: var(--ink); padding: 8px 12px 8px 10px; border-radius: 14px; }
#detail .cta .big { font-weight: 300; font-size: 56px; letter-spacing: -0.045em; font-feature-settings: "tnum" 1; }
#detail .cta .big small, #detail .facts span { font-size: var(--fs-sm); letter-spacing: 0; }
#detail .facts span { font-size: var(--fs-xs); }
td.c-score { width: 72px; }
td.c-score .score { font-size: var(--fs-lg); }
td.c-score .score::after { width: 32px; }
.mrow .score { font-size: var(--fs-lg); }

/* ---------- signals: one muted hue and one icon per kind, so colour is never the only cue ---------- */
.pill.sig { background: none !important; padding: 2px 0; gap: 5px; color: var(--ink-2) !important; font-weight: 450 !important; font-size: var(--fs-xs); }
.pill.sig::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--sig-c, var(--muted)); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.pill.sig { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E"); }
.pill.sig.k-tax_sale { --sig-c: var(--sig-tax); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V9l8-5 8 5v12'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.pill.sig.k-excess_funds { --sig-c: var(--sig-tax); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M16.5 7.5c-.8-1.3-2.5-2-4.5-2-2.5 0-4 1.3-4 3s1.5 2.6 4 3.1 4 1.5 4 3.3-1.6 3.1-4 3.1c-2.1 0-3.8-.8-4.6-2.2'/%3E%3C/svg%3E"); }
.pill.sig.k-delinquent_tax, .pill.sig.k-delinquent_multi_year { --sig-c: var(--sig-delq); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5l3 2'/%3E%3C/svg%3E"); }
.pill.sig.k-probate_notice, .pill.sig.k-heirs_or_estate, .pill.sig.k-owner_deceased { --sig-c: var(--sig-estate); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V8a6 6 0 0 1 12 0v13'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E"); }
.pill.sig.k-foreclosure_notice { --sig-c: var(--sig-fore); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10l4 4v12H5z'/%3E%3Cpath d='M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.pill.sig.k-absentee, .pill.sig.k-out_of_state, .pill.sig.k-po_box { --sig-c: var(--sig-owner); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-7 4 14 3-7h4'/%3E%3C/svg%3E"); }
.pill.sig.k-trust, .pill.sig.k-entity_owner, .pill.sig.k-institutional { --sig-c: var(--slate); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='16' height='13' rx='2'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3C/svg%3E"); }
.pill.sig.k-vacant_lot, .pill.sig.k-no_homestead { --sig-c: var(--muted); }
.pill.sig.hot { color: var(--ink) !important; font-weight: 550 !important; }
.pill.sig.maybe { border: 0; border-bottom: 1px dashed var(--sig-estate); border-radius: 0; padding: 2px 0 1px; }  /* an obituary match, not a court filing */
.pill.na { background: none; color: var(--muted); padding: 2px 0; }
.card .sigs, #list.compact .row .sigs { gap: 3px 12px; }
#detail .why .pill { font-size: var(--fs-sm); }
.card .photo .tag { background: color-mix(in srgb, var(--card) 92%, transparent) !important; padding: 4px 10px !important; border-radius: 999px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- one-click lists, honest gaps, doubtful numbers ---------- */
.lists { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; overflow-x: auto; scrollbar-width: none; }
.lists::-webkit-scrollbar { display: none; }
.lists .lbl { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; flex: none; }
.chip.list { flex: none; background: var(--card); border-color: var(--line); }
.chip.list.on { background: var(--forest); border-color: var(--forest); color: var(--bg); }
.chip.list svg { width: 13px; height: 13px; color: var(--amber-text); }
.lists + .chips { margin-top: 10px; }
.nir { color: var(--muted); font-style: italic; }
.nir a { color: inherit; }
.looksoff { all: unset; display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font: 500 11px/1.6 var(--font-body); font-style: normal; letter-spacing: 0; color: var(--amber-text); background: var(--amber-soft); cursor: pointer; vertical-align: 1px; }
.looksoff::before { content: "!"; font-weight: 700; }
.looksoff:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lo-why { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 400; letter-spacing: 0; font-family: var(--font-body); max-width: 46ch; }
#detail .facts .flagged { color: var(--ink-2); }
#detail .facts .flagged > span { display: block; }

/* ---------- cards ---------- */
#list.cards { gap: 28px 22px; }
.card .photo { border-radius: var(--r-lg); background: var(--skel); animation: none; }
.card .photo img { transition: transform .5s var(--ease), opacity .4s var(--ease); }
.card .photo .county { background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card .photo .lockchip, #detail .hero .nohero .lockchip { background: color-mix(in srgb, var(--card) 94%, transparent); color: var(--ink); font-weight: 500; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card .title { font-weight: 500; letter-spacing: -0.015em; margin-top: 12px; }
.card .meta { color: var(--muted); }
.card .owner { color: var(--ink-2); }
.card.active .photo { outline: 2px solid var(--forest); outline-offset: 3px; }
.receipt, .card .receipt { border-top-color: var(--line); color: var(--muted); }
.receipt svg { color: var(--forest-2); }
.receipt .src { font-weight: 500; }
.fresh { color: var(--forest-2); font-weight: 500; }
#list.compact { border-color: var(--line); background: var(--card); border-radius: var(--r-lg); }
#list.compact .hdr { background: transparent; font-weight: 500; }
#list.compact .row .addr { font-weight: 500; }
#list.compact .row .score { justify-items: start; }

/* ---------- map: calm pins, soft density ---------- */
#mapcol { border-left-color: var(--line); }
.pin { font: 500 11.5px/1 var(--font-num); padding: 5px 8px; background: var(--card); color: var(--ink); border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.12); }
.pin.mid { background: var(--forest-2); color: #fff; } .pin.hi { background: var(--forest); color: var(--bg); }
:root[data-theme="dark"] .pin.mid { color: #121413; }
.pin.focus { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 30%, transparent), 0 2px 10px rgba(0,0,0,.25); }
.marker-cluster div { font: 500 11px/1 var(--font-num); color: var(--ink); background: color-mix(in srgb, var(--forest) 16%, var(--card)); border: 0;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--forest) 12%, transparent), 0 0 0 14px color-mix(in srgb, var(--forest) 6%, transparent); }
.marker-cluster.big div { background: color-mix(in srgb, var(--forest) 28%, var(--card)); }
.leaflet-heatmap-layer { opacity: .85; }
.leaflet-control-zoom { border-radius: var(--r) !important; }
.mapnote { font-weight: 500; border-color: var(--line); }
#map .leaflet-tile-pane { transition: opacity .7s var(--ease); }
body.map-cold #map .leaflet-tile-pane, body.map-cold #map .leaflet-labels-pane, body.map-cold #map .leaflet-overlay-pane, body.map-cold #map .leaflet-marker-pane { opacity: 0; }

/* ---------- tables (Top leads, Tax sale, Parcels) ---------- */
#tablewrap { border-color: var(--line); border-radius: var(--r-lg); }
th { background: var(--card); font-weight: 500; letter-spacing: .06em; color: var(--muted); border-bottom-color: var(--line); }
td { border-bottom-color: var(--line); height: 60px; }
td.c-situs .cell, td.c-address .cell { font-weight: 500; }
tbody tr:hover td { background: color-mix(in srgb, var(--bg-2) 60%, var(--card)); }
.tablehead .sub { font-weight: 450; }
.stat { border-color: var(--line); border-radius: var(--r-lg); }
.stat .n { font: 300 28px/1.1 var(--font-body); letter-spacing: -0.035em; font-feature-settings: "tnum" 1; }

/* Top leads: today's numbers, large and light, before the ranked table */
.today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.today > div { padding: 18px 20px 18px 0; display: grid; gap: 6px; align-content: start; }
.today > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.today b { font: 300 44px/1 var(--font-body); letter-spacing: -0.045em; font-feature-settings: "tnum" 1; }
.today b.amber { color: var(--amber-text); }
.today span { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 820px) { .today { grid-template-columns: repeat(2, minmax(0, 1fr)); } .today > div:nth-child(3) { padding-left: 0; border-left: 0; } .today b { font-size: 34px; } }

/* ---------- lead panel ---------- */
#detail { background: var(--card); }
#detail .bar { border-bottom-color: var(--line); }
#detail .tabs button { font-weight: 500; }
#detail .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
#detail h2 { font-weight: 500; letter-spacing: -0.025em; font-size: 30px; }
#detail .facts div { font-weight: 300; font-size: 26px; letter-spacing: -0.03em; font-feature-settings: "tnum" 1; }
#detail section { border-top-color: var(--line); }
#detail h3 { font-weight: 550; }
#detail .cta { border-color: var(--line); box-shadow: none; background: var(--bg); border-radius: var(--r-xl); padding: 20px; }
#detail .cta .btn.primary { height: 48px; }
#detail .notice { border-color: var(--line); }
#detail .links a { border-color: var(--line); font-weight: 500; }
#detail .tl li.hot::before { border-color: var(--sig-tax); background: var(--sig-tax); }
#detail .tl li.future::before { border-color: var(--amber); }
#detail .tl li.maybe::before { border-color: var(--sig-estate); }

/* ---------- dialogs ---------- */
#cancelDlg { position: fixed; inset: 0; z-index: 2100; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; overflow: auto; }
.cxsum { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 16px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); font-size: var(--fs-sm); }
.cxsum dt { color: var(--muted); } .cxsum dd { margin: 0; font-weight: 500; font-feature-settings: "tnum" 1; }
.cxnote { margin: 0 0 16px; font-size: var(--fs-sm); color: var(--amber-text); }
.cxbtns { display: grid; gap: 8px; }
.cxbtns .btn { width: 100%; }
.btn.danger { background: transparent; border-color: var(--hot); color: var(--hot); }
.btn.danger:hover { background: var(--hot-soft); }
#cxDone .btn { width: 100%; margin-top: 8px; }
.upcard, .fbcard { border-radius: 28px; }
.upcard h2 { font-weight: 500; letter-spacing: -0.03em; }
.plan { background: var(--bg); border: 1px solid var(--line); }
.planname { font-weight: 550; }
#accountMenu { border-color: var(--line); border-radius: var(--r-lg); }
.toast { background: var(--ink); color: var(--bg); font-weight: 500; }

/* ---------- loading: skeletons in the real layout, a quiet "Updated" line, never a spinner ---------- */
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.sk { background: linear-gradient(100deg, var(--skel) 30%, var(--skel-hi) 50%, var(--skel) 70%); background-size: 200% 100%; animation: shimmer 1.8s ease-in-out infinite; border-radius: 8px; }
.skcard .sk.photo { border-radius: var(--r-lg); }
.skcard .sk.l1 { height: 18px; width: 64%; margin-top: 14px; }
.skcard .sk.l2 { height: 12px; width: 40%; margin-top: 9px; }
.skcard .sk.l3 { height: 12px; width: 78%; margin-top: 14px; border-radius: 6px; }
.skcard .sk.l4 { height: 10px; width: 56%; margin-top: 18px; border-radius: 6px; }
.skrow { border-bottom-color: var(--line); }
body.loading #count::after { content: none; }
body.loading #list:not(.skeleton), body.loading #table { opacity: .45; filter: saturate(.6); transition: opacity .25s var(--ease), filter .25s; }
.updated { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; font-weight: 450; }
.updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--forest-2); }
body.loading .updated::before { background: var(--amber); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.listhead { gap: 12px; }
.listhead .right { display: inline-flex; align-items: center; gap: 16px; }
/* Table tabs, the property panel and the map before its first tiles: skeletons in their real shape (Nov 4). */
body.loading #table.skeleton { opacity: 1; filter: none; }
.sktable { padding: 6px 0; }
.sktr { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.sktr .sk { height: 12px; border-radius: 6px; }
.sktr:first-child .sk { height: 10px; width: 40% !important; opacity: .7; }
.skdetail .sk.hero { height: 340px; border-radius: 0; }
.skdetail .sk.l1 { height: 30px; width: 62%; margin-top: 4px; }
.skdetail .sk.l2 { height: 13px; width: 38%; margin-top: 12px; }
.skdetail .skfacts { display: flex; gap: 28px; margin: 26px 0; }
.skdetail .skfacts .sk { height: 40px; width: 64px; }
.skdetail .sk.l3 { height: 13px; width: 86%; margin-top: 14px; border-radius: 6px; }
.skdetail .sk.l3.s { width: 54%; }
#detail.busy .scroll { opacity: .5; transition: opacity .2s var(--ease); }
body.map-cold #map { background: linear-gradient(100deg, var(--skel) 30%, var(--skel-hi) 50%, var(--skel) 70%); background-size: 200% 100%; animation: shimmer 1.8s ease-in-out infinite; }
body.map-cold #map::after { content: "Loading map…"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 401; font-size: var(--fs-sm); color: var(--muted); pointer-events: none; }
.newbadge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--forest-soft); color: var(--forest); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
#detail .asof { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
#detail .asof svg { width: 13px; height: 13px; flex: none; }
/* Admin "view as free" badge: amber so it is never mistaken for the real free plan (user, Nov 4). */
.viewasbadge { display: inline-flex; align-items: center; gap: 10px; margin-left: 14px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.viewasbadge button { border: 0; border-radius: 999px; padding: 4px 10px; background: var(--card); color: var(--ink); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.viewasbadge[hidden] { display: none; }
@media (max-width: 700px) { .viewasbadge { margin-left: 8px; } .viewasbadge span { display: none; } .viewasbadge button::before { content: "Free view · "; } }
@media (prefers-reduced-motion: reduce) {
  .sk, body.loading .updated::before, body.map-cold #map { animation: none; }
  #map .leaflet-tile-pane, .card .photo img, body.loading #list, body.loading #table { transition: none; }
}

/* ---------- Trends: big light numbers, calm cards (chart colours stay the validated set in trends.css) ---------- */
#trends { background: var(--bg); }
.tv .kpi { border-color: var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; }
.tv .kpi .v { font: 300 36px/1.05 var(--font-body); letter-spacing: -0.04em; font-feature-settings: "tnum" 1; margin-top: 6px; }
.tv .kpi .d { font-weight: 450; }
.tv .card { border-color: var(--line); border-radius: var(--r-xl); padding: 22px 22px 16px; }
.tv .card h2 { font-weight: 550; }
.tv .seg { border-color: var(--line); background: var(--card); }
.tv .seg button { font-weight: 500; }
.tv .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tv .chart text { font-family: var(--font-num); }
.tv .samplebar { border-color: transparent; border-radius: var(--r-lg); }
:root { --grid-c: #e4e1da; }
.tv { --grid: var(--line); --axis: var(--line-strong); --tick: var(--muted); }

/* ---------- phone ---------- */
@media (max-width: 820px) {
  #rail { background: var(--card); border-top-color: var(--line); }
  #top { background: var(--bg); border-bottom-color: var(--line); --ink: inherit; --muted: inherit; --bg-2: inherit; --card: inherit; --line-strong: inherit; --primary: inherit; --primary-ink: inherit; color: var(--ink); }
  .hero-count .n { font-size: 44px; }
}

/* ---------- Ask (ask.js; mockup docs/design/ask.html): a side panel beside the map, members only ---------- */
:root { --askw: 380px; }
body.asking { --mapw: 38%; }  /* the list keeps room for the search bar while the panel is open */
#askBtn { background: var(--amber-soft); border: 0; border-radius: var(--r); padding: 10px 12px; margin-top: 8px; display: flex; align-items: center; gap: 12px; color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: 500; cursor: pointer; text-align: left; white-space: nowrap; transition: background .2s, box-shadow .2s; }
#askBtn svg { width: 20px; height: 20px; flex: none; }
#askBtn .lk { margin-left: auto; display: inline-flex; color: var(--amber-text); }
#askBtn .lk svg { width: 15px; height: 15px; }
#askBtn .lk[hidden] { display: none; }
#askBtn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 55%, transparent); }
#askBtn[aria-expanded="true"] { background: var(--amber); color: var(--amber-ink); box-shadow: var(--shadow); }
#askBtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
body.asking #main { right: var(--askw); }
body.asking #detail { left: calc((100vw - var(--askw)) / 2); width: min(1120px, calc(100vw - var(--askw) - 32px)); }
#ask { position: fixed; top: 0; right: 0; bottom: 0; width: var(--askw); z-index: 1002; display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line); color: var(--ink); }
#ask[hidden] { display: none; }
#ask .ph { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
#ask .ph .top { display: flex; align-items: center; gap: 8px; }
#ask .ph h2 { margin: 0; flex: 1; font-size: 17px; font-weight: 550; letter-spacing: -0.02em; }
#ask kbd { font: 500 10.5px/1 var(--font-num); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
#ask .ic { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; color: var(--muted); display: grid; place-items: center; cursor: pointer; font-size: 20px; line-height: 1; }
#ask .ic:hover { background: var(--bg-2); color: var(--ink); }
#ask .ic svg { width: 16px; height: 16px; }
#ask .sees { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
#ask .sees .t { font: 500 11px/1 var(--font-num); padding: 5px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
#ask .thread { flex: 1; overflow: auto; padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
#ask .empty { margin: auto 0; display: grid; gap: 16px; }
#ask .empty[hidden] { display: none; }
#ask .empty h3 { margin: 0; font-size: 26px; font-weight: 300; letter-spacing: -0.035em; line-height: 1.15; }
#ask .empty p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
#ask .starters { display: grid; gap: 8px; }
#ask .starters button { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; display: flex; gap: 10px; align-items: center; }
#ask .starters button:hover { border-color: var(--ink-2); }
#ask .starters svg { width: 15px; height: 15px; color: var(--forest-2); flex: none; }
#ask .msg.you { align-self: flex-end; max-width: 86%; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 18px 18px 6px 18px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
#ask .msg.you .c { font: 500 11.5px/1 var(--font-num); background: color-mix(in srgb, var(--bg) 18%, transparent); padding: 3px 6px; border-radius: 6px; white-space: nowrap; }
#ask .msg.bot { font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
#ask .msg.bot p { margin: 0 0 10px; white-space: pre-wrap; }
#ask .msg.bot b { font-weight: 600; }
#ask .caret { display: inline-block; width: 7px; height: 15px; background: var(--amber); vertical-align: -2px; margin-left: 2px; border-radius: 1px; animation: askblink 1s steps(2) infinite; }
@keyframes askblink { 50% { opacity: 0; } }
#ask .status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
#ask .status:empty { display: none; }
#ask .spin { width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
#ask .changed { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--amber-soft); font-size: 12.5px; color: var(--ink); margin-bottom: 12px; }
#ask .changed svg { width: 16px; height: 16px; color: var(--amber-text); flex: none; }
#ask .changed .what { flex: 1; }
#ask .changed b { font-weight: 550; }
#ask .changed s { color: var(--muted); }
#ask .changed button { border: 0; background: var(--card); color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; height: 28px; padding: 0 12px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); }
#ask .changed button:disabled { opacity: .5; cursor: default; }
#ask .cards:empty { display: none; }
#ask .cards { display: grid; gap: 8px; margin: 2px 0 10px; }
.askcard { display: grid; grid-template-columns: 52px minmax(0, 1fr) 18px; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.askcard:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.askcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.askcard .sc .score { font-size: 24px; }
.askcard .bd { display: grid; gap: 3px; min-width: 0; }
.askcard .a { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askcard .meta, .askcard .src { font-size: 11.5px; color: var(--muted); }
.askcard .sigs { display: flex; flex-wrap: wrap; gap: 4px; }
.askcard .sigs .pill { font-size: 11px; }
.askcard .go svg { width: 15px; height: 15px; color: var(--muted); }
#ask .err { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hot-soft); color: var(--hot); font-size: 13px; }
#ask .err button { border: 1px solid currentColor; background: none; color: inherit; font: inherit; font-size: 12px; font-weight: 500; height: 28px; padding: 0 12px; border-radius: 999px; cursor: pointer; }
#ask .composer { padding: 10px 14px 14px; border-top: 1px solid var(--line); position: relative; }
#ask .quota { font-size: 12px; color: var(--muted); margin: 0 4px 8px; }
#ask .quota.low { color: var(--amber-text); font-weight: 500; }
#ask .box { border: 1px solid var(--line-strong); background: var(--card); border-radius: 18px; padding: 8px 8px 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
#ask .box:focus-within { border-color: var(--forest-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest-2) 14%, transparent); }
#ask .cchips { display: contents; }
#ask .cchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 8px; border-radius: 8px; background: var(--forest-soft); color: var(--forest); font: 500 12px/1 var(--font-num); align-self: center; }
#ask .cchip .k { opacity: .7; }
#ask .cchip .rm { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 3px; font-size: 15px; line-height: 1; }
#ask textarea { flex: 1 1 200px; min-width: 0; border: 0; background: none; resize: none; outline: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.45; padding: 6px 0; max-height: 160px; }
#ask textarea::placeholder { color: var(--muted); }
#ask .tools { display: flex; gap: 6px; margin-left: auto; }
#ask .plus, #ask .send { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
#ask .send { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#ask .plus svg, #ask .send svg { width: 15px; height: 15px; }
#ask .plus:focus-visible, #ask .send:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#ask .hint { font-size: 11.5px; color: var(--muted); margin: 8px 4px 0; display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; }
#ask .pick { position: absolute; left: 14px; right: 14px; bottom: calc(100% - 4px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg, var(--shadow)); padding: 6px; max-height: 340px; overflow: auto; z-index: 2; }
#ask .pick[hidden] { display: none; }
#ask .pick .gh { padding: 8px 10px 4px; font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
#ask .pick .opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; cursor: pointer; }
#ask .pick .opt.on { background: var(--bg); box-shadow: inset 2px 0 0 var(--forest); }
#ask .pick .opt code { font: 500 12px var(--font-num); color: var(--forest); }
#ask .pick .opt .sub { margin-left: auto; color: var(--amber-text); font-size: 12px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { #ask .caret, #ask .spin { animation: none; } .askcard { transition: none; } }
@media (max-width: 1180px) and (min-width: 821px) { :root { --askw: 360px; } }
@media (max-width: 820px) {
  #askBtn { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 2px; flex: 1; border-radius: var(--r-sm); min-width: 0; margin: 0; position: relative; }
  #askBtn .lk { position: absolute; top: 4px; right: calc(50% - 18px); margin: 0; }
  #askBtn .lk svg { width: 11px; height: 11px; }
  #ask kbd { display: none; }
  body.asking #main { right: 0; }
  body.asking #detail { left: 50%; width: min(1120px, calc(100vw - 32px)); }
  #ask { width: auto; left: 0; bottom: 62px; border-left: 0; z-index: 1000; }
}

/* Copy address (Nov 4): a quiet pill after the full address in the property header */
#detail h2 .copyaddr { font-family: var(--font-body); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 0; white-space: nowrap; position: relative; top: -4px; vertical-align: middle; margin-left: 8px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
#detail h2 .copyaddr:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- Today's picks: the Top leads page (picks.js; user approved the mockup Nov 4) ---------- */
#picks { flex: 1; min-width: 0; overflow: auto; background: var(--bg); }
.pk-wrap { max-width: 1180px; margin: 0 auto; padding: 36px 32px 56px; }
.pk-head { max-width: 760px; margin-bottom: 34px; }
.pk-eyebrow { font: 500 11px/1 var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.pk-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 12px; color: var(--ink); }
.pk-head h1 span { color: var(--muted); }
.pk-head p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.pk-nudge { margin-top: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px 14px 18px; border-radius: var(--r-lg); background: var(--amber-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.pk-nudge b { font-weight: 600; }
.pk-nudge .btn.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); white-space: nowrap; }
.pk-sec { margin-top: 30px; }
.pk-sechead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.pk-sechead h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.pk-sechead span { color: var(--muted); font-size: 13px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }  /* 5 picks a section: one row of 5 on a laptop */
.pk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pk-card:hover, .pk-card:focus-visible { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-1px); outline: none; }
.pk-photo { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.pk-photo img, .pk-photo .ph { width: 100%; height: 100%; object-fit: cover; display: block; background-size: cover; background-position: center; }
.pk-photo .ph.blurred { filter: blur(10px) saturate(.8); transform: scale(1.15); }
.pk-photo .score { position: absolute; top: 10px; left: 10px; padding: 7px 10px 8px; border-radius: 12px; background: color-mix(in srgb, var(--card) 92%, transparent) !important; box-shadow: var(--shadow); font-size: 22px; }
.pk-photo .score::after { width: 32px; }
.pk-county { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); box-shadow: var(--shadow); }
.pk-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pk-body h3 { font-size: 15px; font-weight: 550; line-height: 1.35; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.pk-meta { font-size: 13px; color: var(--muted); }
.pk-why { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 2px 0 6px; }
.pk-spots { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pk-spots .dots { display: inline-flex; gap: 3px; }
.pk-spots .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.pk-spots .dots i.on { background: var(--ink-2); border-color: var(--ink-2); }
.pk-spots.last { color: var(--amber-text); }
.pk-spots.last .dots i.on { background: var(--amber); border-color: var(--amber); }
.pk-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pk-foot a { color: var(--ink-2); }
.pk-loading { color: var(--muted); }
@media (max-width: 820px) { .pk-wrap { padding: 22px 16px 40px; } .pk-head h1 { font-size: 32px; } .pk-nudge { flex-direction: column; align-items: flex-start; } }
.pk-day { font-weight: 500; text-decoration: none; }
.pk-note { color: var(--ink-2); }
.pk-spots.mine { color: var(--forest-2); } .pk-spots.mine .dots i.on { background: var(--forest-2); border-color: var(--forest-2); }
.pk-locked { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--card); cursor: pointer; }
.pk-locked p { flex: 1; min-width: 240px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); } .pk-locked b { color: var(--ink); font-weight: 600; }
.pk-locked .btn.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.pk-card.sk { cursor: default; } .pk-card.sk .pk-body { gap: 10px; } #picks .sk { height: 12px; border-radius: 6px; }
.pk-locked .lockchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 5px 10px; border-radius: 999px; background: var(--bg-2); } .pk-locked .lockchip svg { width: 13px; height: 13px; flex: none; }

/* ---------- Tax sale calendar: the Tax sale page (taxsale.js; user approved the mockup Nov 4) ---------- */
#taxcal { flex: 1; min-width: 0; overflow: auto; background: var(--bg); }
.tc-nexts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tc-next { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tc-next .co { font: 500 11px/1 var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tc-next .when { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin-top: 6px; }
.tc-next .count { color: var(--amber-text); font-size: 13px; } .tc-next .count b { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -0.03em; color: var(--ink); margin-right: 2px; }
.tc-next p { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin: 6px 0 0; }
.tc-next.none { background: transparent; border-style: dashed; } .tc-next.none .when { color: var(--muted); font-size: 16px; }
.tc-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 760px; }
.tc-counts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -4px 0 14px; } .tc-counts b { color: var(--ink); font-weight: 600; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }  /* 5 a county: one row each on a laptop */
.tc-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.tc-item:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.tc-item .b { padding: 12px 14px 14px; }
.tc-item h4 { margin: 0 0 10px; font-size: 14.5px; font-weight: 550; line-height: 1.35; color: var(--ink); }
.tc-item .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 18px; }
.tc-item .facts div { display: flex; flex-direction: column; } .tc-item .facts b { font-size: 15px; font-weight: 550; color: var(--ink); } .tc-item .facts span { font-size: 11.5px; color: var(--muted); }
.tc-item .sc { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tc-date { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 4px 0 10px; }
.tc-more { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.tc-arch { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; max-width: 640px; }
@media (max-width: 1100px) { .tc-nexts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-item .sc span:last-child { white-space: nowrap; }
.tc-arch .r { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; color: var(--ink-2); font-size: 13.5px; border-top: 1px solid var(--line); }
.tc-arch .r:first-child { border-top: 0; } .tc-arch .r b { font-weight: 500; color: var(--ink); } .tc-arch .r span { color: var(--muted); text-align: right; }
.tc-ph { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; } .tc-ph img, .tc-ph .ph { width: 100%; height: 100%; object-fit: cover; display: block; background-size: cover; background-position: center; }
.tc-ph .ph.blurred { filter: blur(10px) saturate(.8); transform: scale(1.15); }
#taxcal .sk { border-radius: 6px; }
@media (max-width: 820px) { .tc-nexts { grid-template-columns: 1fr; } }
.tc-grid .tc-item.more { display: none; } .tc-grid.all .tc-item.more { display: block; } .tc-all { margin-top: 14px; }

/* ---------- Source settings: the admin Sources page (srcadmin.js; user, Nov 4) ---------- */
#srcadmin { flex: 1; min-width: 0; overflow: auto; background: var(--bg); }
.sa .tc-counts { margin-top: 16px; }
.sa-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.sa-row { border-top: 1px solid var(--line); } .sa-row:first-child { border-top: 0; }
.sa-row.off .sa-name b { color: var(--muted); }
.sa-main { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1.1fr) 80px auto auto; gap: 16px; align-items: center; padding: 14px 18px; }
.sa-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .sa-name b { font-weight: 550; color: var(--ink); font-size: 14px; } .sa-name span { font-size: 12px; color: var(--muted); }
.sa-legal { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
.sa-legal select { font: inherit; font-size: 12px; color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; }
.sa-lbl { font: 500 10.5px/1 var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 5px; }
.sa-pull, .sa-rows { font-size: 13px; color: var(--ink-2); min-width: 0; }
.sa-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; margin-top: 2px; }
.sa-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--muted); } .sa-dot.ok { background: var(--forest-2); } .sa-dot.bad { background: var(--sig-tax); }
.sa-sws { display: flex; flex-direction: column; gap: 6px; }
.sa-sw { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.sa-sw i { width: 30px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.sa-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.sa-sw.on i { background: var(--forest-2); } .sa-sw.on i::after { transform: translateX(12px); } .sa-sw.on { color: var(--ink); }
.sa-sw:disabled { opacity: .45; cursor: not-allowed; }
.sa-sw:focus-visible i { outline: 2px solid var(--forest-2); outline-offset: 2px; }
.sa-hbtn { font-size: 12.5px; white-space: nowrap; }
.sa-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px 14px; background: var(--amber-soft); color: var(--ink); font-size: 13px; }
.sa-confirm > div { flex: 1 1 100%; } .sa-confirm > div span { color: var(--ink-2); }
.sa-confirm input { flex: 1; min-width: 220px; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); }
.sa-confirm .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sa-err { color: var(--sig-tax); }
.sa-rowhist { padding: 0 18px 12px; }
.sa-hist { width: 100%; border-collapse: collapse; font-size: 12.5px; } .sa-hist td, .sa-hist th { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; color: var(--ink-2); vertical-align: top; }
.sa-hist th { font-weight: 500; color: var(--muted); border-top: 0; } .sa-hist b { color: var(--ink); font-weight: 600; } .sa-note { color: var(--muted); }
.sa-muted { color: var(--muted); font-size: 12px; } .sa-pad { padding: 10px 2px; }
.sa-raw summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
@media (max-width: 1100px) { .sa-main { grid-template-columns: 1fr 1fr; } .sa-sws { flex-direction: row; gap: 16px; } }
@media (max-width: 640px) { .sa-main { grid-template-columns: 1fr; } }
.sa-sw.soft i { opacity: .55; } .sa-sw em { font-style: normal; font-size: 11px; color: var(--amber-text); margin-left: 4px; }
