/* Stony Hill Advisors, Inc. brand: dark green primary, gold only as a fill or a rule (never text on a light
   background), near-black text on a cool tint. Playfair Display for headings, Mulish for the interface. */
:root {
  --brand: #004415;
  --brand-deep: #002c0d;
  --brand-soft: #e6efe9;
  --gold: #ddc514;
  --gold-soft: #faf6dc;
  --paper: #f8fafc;
  --card: #ffffff;
  --ink: #262626;
  --muted: #5b6168; /* 6.0:1 on --paper, 6.3:1 on white */
  --line: #e4e6e8;
  --line-strong: #cfd3d7;
  --sky: #8fb9a0;
  --green: #2f7d4f;
  --green-soft: #e3f1e8;
  --amber: #b7791f;
  --amber-soft: #fbf0d9;
  --amber-ink: #8a5a0f; /* amber for text: 5.2:1 on --amber-soft, 5.9:1 on white (WCAG AA) */
  --red: #a23b3b;
  --red-soft: #f6e3e3;
  --blue: #2b5c9e;
  --blue-soft: #e2ebf7;
  --purple: #5b4a9c;
  --purple-soft: #e9e5f5;
  --slate: #6b7280;
  --slate-ink: #5b6270; /* badge text: 5.3:1 on --slate-soft */
  --green-ink: #276b43; /* badge text: 5.5:1 on --green-soft */
  --slate-soft: #eceef1;
  --offboard: #b3b9bf;
  --radius: 10px;
  --ctl-radius: 10px;
  --ctl-h: 40px; /* minimum control height; 44px on phones */
  --ring: 0 0 0 3px rgba(221, 197, 20, 0.55);
  --shadow: 0 1px 2px rgba(0, 68, 21, 0.05), 0 4px 16px rgba(0, 68, 21, 0.05);
  --font-ui: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23004415' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --search-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%235b6168' stroke-width='1.6'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%235b6168' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --check-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.muted { color: var(--muted); }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--card); color: var(--ink); white-space: nowrap; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--brand); }
h1 a, h2 a, h3 a { color: inherit; }
h1 { font-size: 28px; letter-spacing: -0.01em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--slate-soft); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--brand-deep); color: #e8f0ea; padding: 12px 14px; border-radius: 8px; overflow: auto; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- controls: one modern look app-wide (no browser-default chrome) ---------- */
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { -webkit-appearance: none; appearance: none; min-height: var(--ctl-h); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
  -webkit-appearance: none; appearance: none;
  min-height: var(--ctl-h); padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--ctl-radius);
  background-color: var(--card); color: var(--ink); line-height: 1.3;
  box-shadow: inset 0 1px 1px rgba(0, 68, 21, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
select {
  padding-right: 36px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
select::-ms-expand { display: none; }
textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #6b7280; } /* 4.8:1 on white */
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: #a9afb5; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type="search"]:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { padding-left: 38px; background-image: var(--search-ico); background-repeat: no-repeat; background-position: 12px center; background-size: 16px 16px; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
input[type="date"] { min-width: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--card) center / 12px 10px no-repeat;
  cursor: pointer; vertical-align: middle; transition: background-color 0.15s ease, border-color 0.15s ease;
}
input[type="checkbox"]:hover { border-color: var(--brand); }
input[type="checkbox"]:checked { background-color: var(--brand); border-color: var(--brand); background-image: var(--check-ico); }
input[type="checkbox"]:focus-visible { outline: none; box-shadow: var(--ring); }
select:disabled, input:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }

.btn {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--ctl-h); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--ctl-radius);
  background: var(--card); color: var(--ink); cursor: pointer; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn:focus-visible, .seg-btn:focus-visible, .pill:focus-visible, .sync-chip:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--brand); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.on-dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn.on-dark:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--gold); }
.ico { width: 15px; height: 15px; flex: none; }
.busy .ico { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Segmented control and pills (Matches page, and anywhere a small set of choices is picked). */
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: #eaedf0; border-radius: 12px; max-width: 100%; }
.seg-btn {
  border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 9px;
  min-height: var(--ctl-h); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; white-space: nowrap;
}
.seg-btn:hover { color: var(--brand); background: rgba(255, 255, 255, 0.6); }
.seg-btn.on { background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgba(0, 44, 13, 0.25); }
.seg.small .seg-btn { font-size: 12px; padding: 4px 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--ctl-h); padding: 6px 8px 6px 14px; border-radius: 999px; max-width: 100%;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 500; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pill > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill:hover { border-color: var(--brand); }
.pill.on { background: var(--gold-soft); border-color: var(--gold); color: var(--brand); font-weight: 600; }
.pill-n { font-size: 12px; font-weight: 600; background: var(--slate-soft); color: var(--muted); border-radius: 999px; padding: 2px 8px; }
.pill.on .pill-n { background: var(--brand); color: #fff; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand); color: #dce8e0; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 6px 8px 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--gold); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 17px; }
.brand-sub { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.sync-compact { display: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; justify-content: space-between; min-height: var(--ctl-h); color: #cfe0d5; padding: 9px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; color: #fff; }
.nav a:focus-visible { outline: none; box-shadow: var(--ring); }
.nav a.active { background: rgba(221, 197, 20, 0.18); color: #fff; }
.nav .count { font-size: 11px; background: rgba(255, 255, 255, 0.12); padding: 1px 7px; border-radius: 999px; color: #e6efe9; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: #a3c0ad; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-foot .mode { display: inline-flex; align-items: center; gap: 6px; }
.sidebar-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.sidebar-foot .dot.ro { background: var(--sky); }
.sidebar-foot .repo { margin-top: 2px; overflow-wrap: anywhere; }
.sidebar-foot .sync { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sidebar-foot .sync-t { color: #cfe0d5; line-height: 1.3; }
.sidebar-foot .sync .btn { width: 100%; }

.main { padding: 28px 36px 60px; max-width: 1400px; width: 100%; min-width: 0; }
.loading { color: var(--muted); padding: 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Loading skeleton: the page shape appears at once, the numbers fill in. */
.skeleton { display: grid; gap: 16px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, #e4e6e8 25%, #f1f4f6 37%, #e4e6e8 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-title { height: 30px; width: 220px; max-width: 70%; }
.sk-line { height: 14px; width: 520px; max-width: 90%; margin-top: -6px; }
.sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sk-kpi { height: 86px; }
.sk-block { height: 170px; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sk-card { height: 260px; }
@media (prefers-reduced-motion: reduce) { .sk, .busy .ico { animation: none; } }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .value { font-family: var(--font-display); font-size: 30px; color: var(--brand); margin-top: 4px; line-height: 1; }
.kpi .value.alert { color: var(--amber-ink); }
.kpi .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.card-head .more { font-size: 12px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 8px; font-family: var(--font-ui); font-weight: 600; }

/* Outbound flow: queue -> email ladder -> outcome (yes path / dead). Bars are proportional to the busiest stage. */
.flow { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 12px; margin-bottom: 18px; }
.flow-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.flow-summary b { color: var(--brand); font-family: var(--font-display); font-size: 18px; margin-right: 3px; }
.flow-summary .good b { color: var(--green); }
.flow-summary .bad b { color: var(--red); }
.flow-summary .rate { margin-left: auto; font-weight: 600; color: var(--brand); }
.flow-track { display: grid; grid-template-columns: 1.15fr 22px 4fr 22px 3.7fr; gap: 10px; align-items: stretch; }
.flow-group { background: #f1f4f6; border-radius: 10px; padding: 10px; min-width: 0; }
.flow-group.outcome { display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; }
.g-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--brand); margin: 0 2px 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.g-label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.g-stages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: stretch; }
.g-stages.yes, .g-stages.later, .g-stages.no { grid-template-columns: 34px; grid-auto-columns: minmax(0, 1fr); }
.flow-group.outcome .g-label { margin-bottom: 0; }
.path-tag { display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; writing-mode: vertical-rl; transform: rotate(180deg); }
.path-tag.yes { background: var(--green-soft); color: var(--green); }
.path-tag.no { background: var(--red-soft); color: var(--red); }
.path-tag.later { background: var(--amber-soft); color: var(--amber-ink); }
.flow-arrow { position: relative; align-self: center; height: 2px; background: var(--line-strong); margin-top: 18px; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 6px solid var(--line-strong); border-right: 0; }
.stg { display: grid; grid-template-rows: auto auto auto auto; align-content: start; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px 8px; color: var(--ink); min-width: 0; --tone: var(--brand); --tone-soft: var(--blue-soft); }
.stg:hover { border-color: var(--tone); text-decoration: none; }
.stg-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2; }
.stg-n { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--tone); }
.stg-bar { display: block; height: 6px; border-radius: 3px; background: var(--slate-soft); overflow: hidden; margin-top: 3px; }
.stg-bar i { display: block; height: 100%; background: var(--tone); border-radius: 3px; min-width: 0; }
.stg-sub { font-size: 11px; color: var(--muted); line-height: 1.2; }
.stg.zero .stg-n { color: var(--line-strong); }
.stg.queue { --tone: var(--slate); }
.stg.touch { --tone: var(--blue); }
.stg.touch.t2 { --tone: #2a5290; }
.stg.touch.t3 { --tone: #1f4478; }
.stg.touch.t4 { --tone: #183c6e; }
.stg.win { --tone: var(--green); }
.stg.dead { --tone: var(--red); }
.stg.nurture { --tone: var(--amber-ink); }
.stg.dead.zero .stg-n, .stg.win.zero .stg-n, .stg.nurture.zero .stg-n { color: var(--line-strong); }
.funnel-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.funnel-tip { margin-left: auto; }
.board-note { margin-top: 12px; }
.chip-link { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--brand); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-link:hover { border-color: var(--brand); text-decoration: none; background: var(--brand-soft); }

.board { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-margin-top: 12px; }
.col { background: #eef1f3; border-radius: 10px; padding: 10px; min-height: 200px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; }
.col-head .t { font-weight: 600; font-size: 13px; }
.col-head .c { color: var(--muted); font-size: 12px; }
.col.win { background: #e8f2ec; }
.col.dead { background: #f1e6e6; }
.col.nurture { background: #f6efdf; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; display: block; color: var(--ink); }
.col-empty { color: var(--muted); font-size: 12px; font-style: italic; padding: 4px 4px 8px; }
.mini:hover { border-color: var(--brand); text-decoration: none; }
.mini .t { font-weight: 600; font-size: 13px; }
.mini .m { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; justify-content: space-between; gap: 6px; }
.mini .due { font-size: 11px; margin-top: 4px; }
.mini .due.over { color: var(--red); font-weight: 600; }
.mini .due.soon { color: var(--amber-ink); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; background: var(--slate-soft); color: var(--slate-ink); white-space: nowrap; }
.badge.prospect { background: var(--slate-soft); color: var(--slate-ink); }
.badge.drafted { background: var(--amber-soft); color: var(--amber-ink); }
.badge.contacted { background: var(--blue-soft); color: var(--blue); }
.badge.replied, .badge.engaged { background: var(--green-soft); color: var(--green-ink); }
.badge.qualified { background: var(--green-soft); color: var(--green-ink); }
.badge.presented, .badge.under_loi { background: var(--purple-soft); color: var(--purple); }
.badge.closed { background: var(--gold-soft); color: #6b5a0c; }
.badge.on_hold { background: var(--slate-soft); color: var(--slate-ink); }
.badge.dead, .badge.rejected { background: var(--red-soft); color: var(--red); }
.badge.active { background: var(--green-soft); color: var(--green-ink); }
.badge.paused { background: var(--amber-soft); color: var(--amber-ink); }
.badge.tier { background: var(--brand); color: #fff; }
.badge.tier.D, .badge.tier.unrated { background: var(--slate-soft); color: var(--slate-ink); }
.badge.strong { background: var(--green-soft); color: var(--green-ink); }
.badge.possible { background: var(--amber-soft); color: var(--amber-ink); }
.badge.weak { background: var(--slate-soft); color: var(--slate-ink); }
.badge.not_fit { background: var(--red-soft); color: var(--red); }
.badge.stage.g-queue { background: var(--slate-soft); color: #4b5260; }
.badge.stage.g-ladder { background: var(--blue-soft); color: var(--blue); }
.badge.stage.g-yes { background: var(--green-soft); color: var(--green-ink); }
.badge.stage.g-dead { background: var(--red-soft); color: var(--red); }
.badge.stage.g-nurture { background: var(--amber-soft); color: var(--amber-ink); }
.badge.mention-ok { background: var(--green-soft); color: var(--green-ink); }
.badge.mention-never { background: var(--red-soft); color: var(--red); }
.badge.stage.g-off { background: #eceff1; color: #5b6168; }
.score { display: inline-flex; align-items: center; gap: 6px; }
.score .bar { width: 54px; height: 6px; background: var(--slate-soft); border-radius: 3px; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: var(--brand); }
.score.strong .bar i { background: var(--green); }
.score.possible .bar i { background: var(--amber); }
.score.not_fit .bar i { background: var(--red); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"] { min-width: 250px; }
.toolbar select { max-width: 200px; }
.toolbar .spacer { flex: 1; }
.count-line { color: var(--muted); font-size: 12px; margin: 0 0 8px; }

/* Sellers: which leads (the active pipeline or all), report chips, parked badge and the pager. */
.sellers-scope { margin: 0 0 12px; }
a.seg-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.seg-n { font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, 0.06); border-radius: 999px; padding: 1px 8px; }
.seg-btn.on .seg-n { background: rgba(255, 255, 255, 0.18); }
.badge.report { white-space: normal; }
.badge.report.r-delivered { background: var(--green-soft); color: var(--green-ink); }
.badge.report.r-prepared_internal, .badge.report.r-prepared { background: var(--amber-soft); color: var(--amber-ink); }
.badge.report.r-requested { background: var(--blue-soft); color: var(--blue); }
.badge.report.r-offered { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge.parked { background: var(--slate-soft); color: var(--slate-ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 4px; }
.pager-t { color: var(--muted); font-size: 13px; }
.btn.disabled { opacity: 0.45; pointer-events: none; }
.col-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.col-more .col-link { font-size: 12px; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8fafc; cursor: pointer; white-space: nowrap; }
table.data th.sorted { color: var(--brand); }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr.row:hover td { background: #f3f7f4; cursor: pointer; }
table.data .sub { color: var(--muted); font-size: 12px; display: block; }
table.data .t { font-weight: 600; }

.detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.fact { min-width: 0; }
.fact .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.fact .v { margin-top: 2px; word-break: break-word; }
.fact .v.empty { color: #646a70; font-style: italic; } /* 5.4:1 on white */
.fact .v .badge { white-space: normal; max-width: 100%; } /* long email-type badges wrap instead of widening the page */
.fact-note { display: block; color: var(--muted); font-size: 12px; }
.para { white-space: pre-wrap; overflow-wrap: anywhere; }

.ladder { display: flex; align-items: center; gap: 0; margin: 6px 0 4px; flex-wrap: wrap; row-gap: 8px; }
.ladder .step { display: flex; align-items: center; }
.ladder .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--card); }
.ladder .dot.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.ladder .dot.next { border-color: var(--gold); color: var(--brand); background: var(--gold-soft); }
.ladder .dot.win { background: var(--green); border-color: var(--green); color: #fff; }
.ladder .dot.dead { background: var(--red); border-color: var(--red); color: #fff; }
.ladder .dot.nurture { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-ink); }
.ladder .line { width: 34px; height: 2px; background: var(--line-strong); }
.ladder .line.done { background: var(--brand); }
.ladder .cap { font-size: 11px; color: var(--muted); margin-left: 6px; margin-right: 10px; white-space: nowrap; }

.fit { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: #fafbfc; }
.fit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fit ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
.fit li.ask { color: var(--amber-ink); }
.fit li.block { color: var(--red); }
.decision { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.decision select { flex: 1 1 180px; min-width: 0; max-width: 280px; font-size: 13px; }
.decision .stamp { flex-basis: 100%; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.timeline li:last-child { border-bottom: none; }
.timeline .when { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline .who { color: var(--muted); font-size: 12px; }
.attention li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.attention li:last-child { border-bottom: none; }
.attention .why { color: var(--muted); font-size: 12px; }
.empty-note { color: var(--muted); font-style: italic; }

.buyer-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.buyer-card .routes { background: var(--gold-soft); border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-size: 13px; }
.buyer-card .routes b { color: var(--brand); }

.modal { border: none; border-radius: 12px; padding: 0; width: min(760px, 94vw); max-height: 90vh; box-shadow: 0 20px 60px rgba(0, 44, 13, 0.35); }
.modal::backdrop { background: rgba(0, 44, 13, 0.45); }
.modal form { display: flex; flex-direction: column; max-height: 90vh; }
.modal .modal-head { padding: 18px 22px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal .modal-body { padding: 8px 22px 12px; overflow: auto; }
.modal .modal-foot { padding: 12px 22px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #f8fafc; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; }
.field .help { font-size: 11px; color: var(--muted); margin-top: 4px; }
.form-note { margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); font-size: 13px; line-height: 1.45; }
.field.check label { display: flex; align-items: center; gap: 10px; min-height: var(--ctl-h); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; color: var(--ink); cursor: pointer; }
.checks { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ctl-h); font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.form-section { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); font-weight: 600; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--brand-deep); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 44, 13, 0.28); max-width: 440px; font-size: 13px; line-height: 1.4; animation: toast-in 0.18s ease-out; }
.toast-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast.error { background: var(--red); }
.toast.ok { background: var(--green-ink); }
.toast.ok::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.22) var(--check-ico) center / 9px 8px no-repeat; }
.toast.saving::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
.toast-x { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; min-height: 32px; margin: -6px -8px -6px 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.toast-x:hover { background: rgba(255, 255, 255, 0.15); }
.toast-x:focus-visible { outline: none; box-shadow: var(--ring); }
@keyframes toast-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.settings-token { display: flex; gap: 8px; align-items: center; }
.settings-token input { flex: 1; min-width: 0; }
details.legacy { margin-top: 12px; }
details.legacy summary { cursor: pointer; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.legacy-list { margin: 8px 0 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; font-size: 12px; }
.legacy-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.legacy-list dt { color: var(--muted); text-transform: capitalize; }
.legacy-list dd { margin: 0; overflow-wrap: anywhere; }
.legacy-list .empty { color: #8d939a; font-style: italic; }

/* ---------- Matches: controls, map, detail panel, cards ---------- */
.mx-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 10px; }
.mx-count { font-size: 13px; margin-bottom: 12px; }
.mx-count b { color: var(--brand); }
.empty-state { background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 24px; text-align: center; color: var(--muted); }
.empty-state h2 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { margin: 0; }

.mx-map { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.mm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; min-width: 0; }
.mm-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mm-hint { color: var(--muted); font-size: 12px; }
.mm-wrap { border-radius: 8px; background: radial-gradient(circle at center, #fbfcfc 0%, #eef2f0 72%); overflow: hidden; }
.mm-wrap.zoomed { overflow: auto; aspect-ratio: 1 / 1; max-height: 78vh; -webkit-overflow-scrolling: touch; }
.mm { display: block; width: 100%; height: auto; font-family: var(--font-ui); -webkit-tap-highlight-color: transparent; }
.mm-wrap:not(.zoomed) .mm { max-height: max(420px, calc(100vh - 290px)); }
.mm-band { fill: none; }
.mm-band.l-strong { stroke: rgba(47, 125, 79, 0.07); }
.mm-band.l-possible { stroke: rgba(183, 121, 31, 0.07); }
.mm-band.l-weak { stroke: rgba(107, 114, 128, 0.06); }
.mm-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.mm-ring-label { font-size: var(--mm-fs, 12px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; fill: #646a70; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #f6f8f7; stroke-width: calc(var(--mm-fs, 12px) * 0.3); stroke-linejoin: round; pointer-events: none; }
.mm-edge { stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0.16; transition: opacity 0.15s ease; pointer-events: none; }
.mm-edge.l-strong { stroke: var(--green); }
.mm-edge.l-possible { stroke: var(--amber); }
.mm-edge.l-weak { stroke: #8a93a3; }
.mm.focus .mm-edge { opacity: 0.04; }
.mm.focus .mm-edge.hot { opacity: 0.95; stroke-width: 2.2; }
.mm-node { cursor: pointer; transition: opacity 0.15s ease; }
.mm-node:focus { outline: none; }
.mm-hit { fill: transparent; }
.mm-dot { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke 0.15s ease; }
.mm-dot.g-queue, .lg-dot.g-queue { fill: var(--slate); background: var(--slate); }
.mm-dot.g-ladder, .lg-dot.g-ladder { fill: var(--blue); background: var(--blue); }
.mm-dot.g-yes, .lg-dot.g-yes { fill: var(--green); background: var(--green); }
.mm-dot.g-dead, .lg-dot.g-dead { fill: var(--red); background: var(--red); }
.mm-dot.g-nurture, .lg-dot.g-nurture { fill: var(--amber); background: var(--amber); }
.mm-dot.g-off, .lg-dot.g-off { fill: var(--offboard); background: var(--offboard); }
.mm-dot.g-unknown { fill: #d3d7db; }
.mm-node:hover .mm-dot, .mm-node:focus-visible .mm-dot, .mm-node.hot .mm-dot { stroke: var(--brand); stroke-width: 2.5; }
.mm-node.sel .mm-dot { stroke: var(--gold); stroke-width: 3.5; }
.mm.focus .mm-node:not(.hot):not(.sel) { opacity: 0.28; }
.mm-label { font-size: var(--mm-fs, 12px); font-weight: 600; fill: var(--ink); dominant-baseline: central; paint-order: stroke; stroke: #fbfcfb; stroke-width: calc(var(--mm-fs, 12px) * 0.3); stroke-linejoin: round; pointer-events: none; }
.mm.focus .mm-label { opacity: 0.35; }
.mm-hub { cursor: pointer; transition: opacity 0.15s ease; }
.mm-hub:focus { outline: none; }
.mm-hub-hit { fill: transparent; stroke: none; }
.mm-hub-c { fill: var(--brand); stroke: var(--gold); stroke-width: 2; }
.mm-hub:hover .mm-hub-c, .mm-hub:focus-visible .mm-hub-c, .mm-hub.hot .mm-hub-c, .mm-hub.on .mm-hub-c { stroke-width: 5; }
.mm-hub text { fill: #fff; font-size: 15px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.mm.focus .mm-hub:not(.hot) { opacity: 0.55; }

.mm-legend { display: grid; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--ink); }
.lg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.lg-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.lg-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-item.muted { color: var(--muted); }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0, 68, 21, 0.12); }
.lg-line { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.lg-line.l-strong { background: var(--green); }
.lg-hub { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; letter-spacing: 0.04em; margin-right: 6px; }
.lg-line.l-possible { background: var(--amber); }
.lg-line.l-weak { background: #8a93a3; }
.mm-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; display: none; }

.mm-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.mm-panel-empty p { color: var(--muted); margin: 8px 0 0; }
.mm-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.mm-panel-title { min-width: 0; }
.mm-panel-title h2 { font-size: 20px; overflow-wrap: anywhere; }
.mm-panel-title h2:focus { outline: none; }
.mm-panel-title .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mm-panel .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.mm-panel .btn.block { margin-top: 12px; }

.mfit { border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 10px; }
.mfit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.mfit-buyer { font-weight: 600; color: var(--brand); }
.mfit-sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-top: 8px; }
.mfit-sub.ask { color: var(--amber-ink); }
.mfit-list { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.mfit-list li + li { margin-top: 2px; }
.mfit-list.ask { color: #8f5f14; }
.mfit-list.block { color: var(--red); margin-top: 8px; }


/* Matches, ranked list: one card per buyer, a table of its sellers (best first). Rows stack into cards on a phone. */
.mx-buyers { display: grid; gap: 16px; }
.mx-buyer .card-head { align-items: flex-start; }
.mx-buyer .card-head .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mx-buyer + .mx-buyer { margin-top: 0; }
table.data.mx-rank { box-shadow: none; }
table.data.mx-rank th { cursor: default; }
table.data.mx-rank th, table.data.mx-rank td { padding-left: 8px; padding-right: 8px; }
table.data.mx-rank .score .bar { width: 40px; }
table.data.mx-rank td.num { color: var(--muted); font-variant-numeric: tabular-nums; width: 2.5em; }
table.data.mx-rank td.lead a.t { color: var(--ink); }
table.data.mx-rank td.lead a.t:hover { color: var(--brand); }
table.data.mx-rank td.lead { min-width: 140px; }
table.data.mx-rank td.nw { white-space: nowrap; }
table.data.mx-rank td.why { min-width: 220px; max-width: 440px; font-size: 13px; }
table.data.mx-rank .sub.ask { color: var(--amber-ink); margin-top: 3px; }
table.data.mx-rank select { width: 150px; max-width: 150px; font-size: 13px; }
.mx-buyer { scroll-margin-top: 16px; } /* where Next brings the buyer's list back into view */
/* Between a phone and a wide desktop (901 to 1280 px) the seven columns are wider than the main column and the
   Decision select would sit off screen, so each row becomes a compact card: the company on top, then fit, stage,
   state and decision side by side, then the reasons. Phones keep the two-column stack below; wider screens keep the
   table. The table needs about 875 px (measured 2026-10-05 over every ranked row); at 1281 px the column is 931 px. */
@media (min-width: 901px) and (max-width: 1280px) {
  table.data.mx-rank, table.data.mx-rank tbody { display: block; }
  table.data.mx-rank thead { display: none; }
  table.data.mx-rank tr { display: grid; grid-template-columns: max-content max-content max-content minmax(0, 1fr); gap: 6px 24px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data.mx-rank tr:last-child { border-bottom: none; }
  table.data.mx-rank td { display: block; padding: 0; border: none; min-width: 0; }
  table.data.mx-rank td.m-hide { display: none; }
  table.data.mx-rank td.lead { grid-column: 1 / -1; min-width: 0; }
  table.data.mx-rank td.why { grid-column: 1 / -1; order: 1; min-width: 0; max-width: none; }
  table.data.mx-rank td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
  table.data.mx-rank select { width: 100%; max-width: 260px; }
}
@media (max-width: 1200px) {
  .flow-track { grid-template-columns: 1.1fr 22px 4fr; }
  .flow-arrow + .flow-group.outcome { grid-column: 1 / -1; }
  .flow-arrow:nth-of-type(4) { display: none; }
  .flow-group.outcome { grid-template-columns: 1fr; }
  .mx-map { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ---------- UI/UX pass (2026-10-06): skip link, quick find, Today lists, sellers toolbar, seller header ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--brand); font-weight: 700; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; text-decoration: none; }
.main:focus { outline: none; }

/* Quick find: a search-styled button in the sidebar (an icon in the phone top bar) opens the finder dialog. */
.topbar-tools { display: flex; align-items: center; gap: 6px; min-width: 0; }
.find-icon { display: none; }
.find-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 14px; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #dfeae3; font-weight: 500;
}
.find-btn span { flex: 1; }
.find-btn kbd { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.find-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--gold); }
.find-btn:focus-visible, .find-icon:focus-visible { outline: none; box-shadow: var(--ring); }
.finder { border: none; padding: 0; margin: 10vh auto auto; width: min(640px, 94vw); max-height: 76vh; border-radius: 14px; background: var(--card); box-shadow: 0 24px 70px rgba(0, 44, 13, 0.4); }
.finder::backdrop { background: rgba(0, 44, 13, 0.45); }
.finder-box { display: flex; flex-direction: column; max-height: 76vh; }
.finder-head { display: flex; gap: 8px; align-items: center; padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.finder-head input { flex: 1; min-width: 0; font-size: 16px; }
.find-hint { color: var(--muted); font-size: 12px; padding: 8px 16px 4px; min-height: 26px; }
.find-list { list-style: none; margin: 0; padding: 0 8px 8px; overflow: auto; }
.find-row a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.find-row a:hover { text-decoration: none; background: var(--brand-soft); }
.find-row[aria-selected="true"] a { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.find-main { display: flex; flex-direction: column; min-width: 0; }
.find-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: none; max-width: 45%; }
.find-foot { padding: 0 16px; }
.find-foot:not(:empty) { padding: 8px 16px; border-top: 1px solid var(--line); }
.find-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px 12px; border-top: 1px solid var(--line); background: #f8fafc; color: var(--muted); font-size: 12px; border-radius: 0 0 14px 14px; }
.find-keys kbd { margin-right: 3px; }
.icon-btn { width: var(--ctl-h); padding: 0; flex: none; }
.icon-btn .ico { width: 16px; height: 16px; }

/* Dashboard: Today tiles are links into the lists they count; the lists keep one lead per row, 44 px or taller. */
.kpi-link { display: block; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.kpi-link:hover { text-decoration: none; border-color: var(--brand); }
.kpi.hot { border-color: #e6d79a; background: linear-gradient(180deg, var(--gold-soft), var(--card) 70%); }
.kpi.hot::after { content: ""; display: block; height: 3px; margin: 10px -16px -14px; background: var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.today-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pipe-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.today-grid { margin-bottom: 16px; }
.today-grid > .card + .card { margin-top: 0; }
section > .section-title:first-child { margin-top: 6px; }
.wl { list-style: none; margin: 0 -8px; padding: 0; }
.wl-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.wl-row:last-child { border-bottom: none; }
.wl-link { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 48px; padding: 9px 8px; border-radius: 8px; color: var(--ink); }
.wl-link:hover { text-decoration: none; background: #f3f7f4; }
.wl-link:hover .wl-name { color: var(--brand); text-decoration: underline; }
.wl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-name { font-weight: 700; color: var(--blue); }
.wl-snip { color: var(--ink); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wl-snip.muted { color: var(--muted); font-style: italic; }
.wl-flag { font-size: 12px; color: var(--muted); }
.wl-flag.over { color: var(--red); font-weight: 600; }
.wl-flag.soon { color: var(--amber-ink); font-weight: 600; }
.wl-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; max-width: 42%; text-align: right; }
.wl-when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.wl-row.has-act { padding-right: 8px; }
.wl-row.has-act .btn { flex: none; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.card-foot:empty { display: none; }
.card-foot .more { margin-left: auto; font-size: 12px; }
.loading-note { display: flex; align-items: center; gap: 8px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin 0.8s linear infinite; flex: none; }

/* Pipeline: a strip that jumps to any column. On a desktop the heading, the strip and the board fill one window
   (.pipe-top: the window less the page's top padding and a 16 px foot), so every column is whole on screen when the
   page opens; each column scrolls under its own heading and, at its end, the wheel hands over to the page (no
   overscroll containment), which carries the counts and the flow below the board. */
.board-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.jump { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.jump:hover { border-color: var(--brand); }
.jump:focus-visible { outline: none; box-shadow: var(--ring); }
.jump-n { background: var(--slate-soft); color: var(--slate-ink); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.jump.win { border-color: #b9d8c4; }
.jump.win .jump-n { background: var(--green-soft); color: var(--green-ink); }
.jump.dead .jump-n { background: var(--red-soft); color: var(--red); }
.jump.nurture .jump-n { background: var(--amber-soft); color: var(--amber-ink); }
.jump.zero { color: var(--muted); }
.col { scroll-margin-left: 8px; }
@media (min-width: 901px) {
  .pipe-top { display: flex; flex-direction: column; height: calc(100vh - 44px); height: calc(100dvh - 44px); min-height: 480px; }
  .pipe-top > .board { flex: 1 1 auto; min-height: 0; }
  .pipe-top .col { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
  .pipe-top .col-head { padding: 12px 14px 10px; }
  .pipe-top .col-cards { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 10px 10px; }
  .pipe-funnel { margin-top: 18px; }
}

/* Sellers: search, Filters (folded on a phone) and Sort on one row; filter labels sit above their selects. */
.toolbar.search-row { flex-wrap: nowrap; margin-bottom: 8px; }
.toolbar.search-row input[type="search"] { flex: 1 1 auto; min-width: 0; max-width: 560px; }
.filters-toggle { display: none; }
.filters-toggle .pill-n, .filters-toggle .pill-n { background: var(--brand); color: #fff; }
.flt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flt-l { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-left: 2px; }
.sort-flt { margin-left: auto; flex: none; }
.sort-flt select { max-width: 230px; }
.search-row .sort-flt .flt-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.toolbar.filters { align-items: flex-end; }
.toolbar.filters select { max-width: 200px; }
.toolbar.filters select.set { border-color: var(--brand); background-color: var(--brand-soft); font-weight: 600; }
.clear-btn { align-self: flex-end; }
table.data th .th-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; min-height: 24px; border-radius: 4px; }
table.data th .th-btn:focus-visible { box-shadow: var(--ring); }
table.data th.narrow, table.data td.narrow { width: 1%; white-space: nowrap; }
table.data.sellers-table td.lead { min-width: 200px; }
table.data.sellers-table td.lead a.t { color: var(--ink); font-weight: 700; }
table.data.sellers-table td.lead a.t:hover { color: var(--brand); }
table.data.sellers-table .owner-cell { min-width: 160px; max-width: 220px; }
table.data.sellers-table .owner-cell .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data.sellers-table td.lead { max-width: 320px; }
table.data.sellers-table .sub .badge { margin-top: 3px; }
table.data .sub.what { color: var(--muted); }
.over-t { color: var(--red); font-weight: 600; }
.soon-t { color: var(--amber-ink); font-weight: 600; }
table.data.mx-rank .sub.cap, .sub.cap { color: var(--muted); font-size: 11px; margin-top: 3px; white-space: normal; }

/* Seller page: labelled chips instead of a row of unlabelled ones, and the owner contact right under the name. */
.detail-title { min-width: 0; flex: 1 1 420px; }
.badge.kv { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; }
.badge.kv .kv-k { color: var(--muted); font-weight: 600; margin-right: 2px; }
.badge.stage-chip { background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.head-note { color: var(--muted); margin-top: 6px; font-size: 13px; overflow-wrap: anywhere; }
.head-note.src { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.contact-line > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 28px; min-width: 0; max-width: 100%; }
.contact-line a { overflow-wrap: anywhere; }
.contact-line .ct-name { font-weight: 700; }
.contact-line a { font-weight: 600; }
.fact.wide { grid-column: 1 / -1; }
.crumb a { display: inline-flex; align-items: center; min-height: 28px; }
.buyer-fits { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 13px; }

/* Forms: what the action does, inline errors next to the fields, and the field that needs filling marked. */
.form-msg { margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 13px; font-weight: 600; }
.form-help { margin: 8px 0 4px; color: var(--muted); font-size: 13px; }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(162, 59, 59, 0.18) !important; }
.error-state { border-color: var(--red-soft); }
.error-state code { white-space: normal; overflow-wrap: anywhere; }

/* Sellers table on narrower screens: the owner folds into the company cell (it is also the phone card's second line),
   then the tier (97% unrated) and the score bar, so the table fits without a sideways scroll down to about 1,024 px. */
table.data .sub.owner-inline, table.data .sub.tier-inline { display: none; }
@media (max-width: 1365px) {
  table.data.sellers-table .col-owner { display: none; }
  table.data.sellers-table .sub.owner-inline { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
}
@media (max-width: 1100px) {
  table.data.sellers-table .col-tier { display: none; }
  table.data.sellers-table .sub.tier-inline { display: block; }
  table.data.sellers-table .score .bar { display: none; }
  table.data.sellers-table th, table.data.sellers-table td { padding-left: 8px; padding-right: 8px; }
  table.data.sellers-table td.lead { min-width: 180px; }
  table.data.sellers-table .sub.owner-inline { max-width: 200px; }
}
html { -webkit-text-size-adjust: 100%; }

@media (max-width: 900px) {
  .mx-buyer { scroll-margin-top: 114px; } /* below the sticky top bar (about 102 px on a phone) */
  :root { --ctl-h: 44px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .main { min-width: 0; max-width: 100vw; }
  .nav { min-width: 0; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; padding: max(6px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); gap: 2px; box-shadow: 0 2px 10px rgba(0, 44, 13, 0.25); }
  .topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
  .brand { padding: 0 2px; min-height: 44px; min-width: 0; }
  .brand-mark { width: 28px; height: 28px; font-size: 12px; }
  .brand-name { font-size: 15px; }
  .sync-compact { display: block; min-width: 0; }
  .sync-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 0 12px; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #dfeae3; font-size: 12px; font-weight: 500; white-space: nowrap;
  }
  .sync-chip:disabled { opacity: 0.7; }
  .nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 2px; margin: 0 -12px; padding: 0 12px 6px; }
  .nav::-webkit-scrollbar { display: none; }
  /* Scroll cue: the edge fades where more links sit off screen (classes set by syncNavCue in app.js). */
  .nav.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .nav.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
  .nav.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
  .nav a { white-space: nowrap; min-height: 44px; padding: 7px 12px; font-size: 13px; gap: 6px; border-radius: 999px; }
  .nav a.active { background: var(--gold); color: var(--brand); }
  .nav a.active .count { background: rgba(0, 68, 21, 0.15); color: var(--brand); }
  .sidebar-foot { display: none; }
  .main { padding: 16px 16px 48px; }
  h1 { font-size: 24px; }
  .page-head { margin-bottom: 14px; }
  .page-head .actions, .detail-head .actions { width: 100%; }
  .page-head .actions .btn, .detail-head .actions .btn { flex: 1 1 auto; text-align: center; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 10px; }
  .kpi .label { font-size: 10px; letter-spacing: 0.04em; }
  .kpi .value { font-size: 24px; }
  .kpi .hint { font-size: 11px; }
  .card { padding: 14px 14px; }
  .card-head { flex-wrap: wrap; align-items: baseline; }
  .card-head a.more { flex-basis: 100%; min-height: 44px; display: inline-flex; align-items: center; }
  .card-head span.more { flex-basis: 100%; margin-top: -6px; }
  .decision select { font-size: 16px; max-width: none; } /* under 16px, iOS zooms the page when the select gets focus */
  .seg.small .seg-btn { min-width: 44px; }
  .main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .modal .modal-head { padding-top: max(18px, env(safe-area-inset-top)); }
  .facts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar input[type="search"] { min-width: 0; width: 100%; }
  .toolbar select { flex: 1 1 40%; min-width: 0; max-width: none; }
  button, input, select, textarea { font-size: 16px; }
  .btn.small, .seg-btn, .seg.small .seg-btn { font-size: 14px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .attention li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ladder .line { width: 16px; }
  .ladder .cap { margin-right: 6px; }
  .board { grid-auto-columns: minmax(250px, 82vw); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
  .col { scroll-snap-align: start; }
  .modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .modal form { max-height: 100dvh; height: 100dvh; }
  .modal .modal-body { flex: 1; }
  .modal .modal-foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .toasts { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .settings-token { flex-wrap: wrap; }
  .settings-token input { min-width: 0; flex: 1 1 100%; }
  pre { font-size: 11px; }
  .legacy-list > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sk-grid { grid-template-columns: minmax(0, 1fr); }
  .sk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Flow stacks: each group becomes a block, each stage a row with a horizontal bar. */
  .flow { padding: 14px 14px 10px; }
  .flow-summary { gap: 4px 14px; font-size: 12px; }
  .flow-summary .rate { margin-left: 0; flex-basis: 100%; }
  .flow-track { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow-arrow { display: none; }
  .g-stages { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .g-stages.yes, .g-stages.later, .g-stages.no { grid-template-columns: minmax(0, 1fr); }
  .path-tag { writing-mode: horizontal-tb; transform: none; justify-self: start; padding: 2px 8px; }
  .stg { grid-template-columns: 1fr auto; grid-template-rows: auto auto; grid-template-areas: "l n" "bar bar" "sub sub"; gap: 2px 10px; padding: 8px 10px; align-items: baseline; }
  .stg-l { grid-area: l; font-size: 12px; }
  .stg-n { grid-area: n; font-size: 22px; }
  .stg-bar { grid-area: bar; height: 5px; }
  .stg-sub { grid-area: sub; }

  /* Tables become cards: first cell is the title, the rest are labelled pairs. */
  table.data.stack, table.data.stack tbody { display: block; }
  table.data.stack thead { display: none; }
  table.data.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data.stack tr:last-child { border-bottom: none; }
  table.data.stack td { display: block; padding: 0; border: none; min-width: 0; }
  table.data.stack td.lead { grid-column: 1 / -1; }
  table.data.stack td.lead .t { font-size: 15px; }
  table.data.stack td.wide { grid-column: 1 / -1; }
  table.data.stack td.m-hide { display: none; }
  table.data.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
  table.data.stack tr.row:hover td { background: transparent; }
  table.data.stack td select { width: 100%; }
  table.data.mx-rank select { width: 100%; max-width: none; font-size: 16px; }
  table.data.mx-rank td.why, table.data.mx-rank td.lead { min-width: 0; max-width: none; }

  /* Matches: controls wrap full width, the map fills the screen, the detail panel is a bottom sheet. */
  .page-head > .seg { width: 100%; }
  .mx-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .seg { display: flex; width: 100%; }
  .seg .seg-btn { flex: 1 1 auto; padding: 6px 10px; }
  .mx-map { grid-template-columns: minmax(0, 1fr); }
  .mm-card { padding: 8px; margin: 0 -8px; }
  .mm-tools .seg { width: auto; }
  .mm-note { display: block; }
  .decision select { max-width: none; }
  .mm-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 72dvh; border-radius: 16px 16px 0 0;
    padding: 12px 16px max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 44, 13, 0.3);
    transform: translateY(110%); visibility: hidden; transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .mm-panel.open { transform: none; visibility: visible; transition: transform 0.22s ease; }
  .mm-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 10px; }
}

@media (max-width: 480px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(5), .kpi:nth-child(6) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-panel, .mm-panel.open { transition: none; }
}

/* Phone (UI/UX pass): the finder fills the screen, Today first, filters folded, empty card cells hidden, 44 px targets. */
@media (max-width: 900px) {
  .find-btn { display: none; }
  .find-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; flex: none; }
  .find-icon .ico { width: 18px; height: 18px; }
  .finder { margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .finder-box { height: 100%; max-height: 100dvh; }
  .finder-head { padding-top: max(10px, env(safe-area-inset-top)); }
  .find-list { flex: 1; }
  .find-row a { min-height: 56px; }
  .find-tags { max-width: 40%; }
  .find-keys { display: none; }
  .find-foot:not(:empty) { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .today-kpis, .pipe-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi.hot::after { margin: 8px -10px -10px; }
  .wl-link { min-height: 52px; flex-wrap: wrap; gap: 6px 12px; }
  .wl-main { flex: 1 1 100%; }
  .wl-meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; max-width: none; text-align: left; }
  .wl-meta:empty { display: none; }
  .card-foot .more { margin-left: 0; min-height: 44px; display: inline-flex; align-items: center; }
  .chip-link { min-height: 44px; padding: 6px 14px; font-size: 13px; }
  .funnel-tip { display: none; }
  .pipe-funnel { display: none; }
  .board-jump { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px 4px; }
  .board-jump::-webkit-scrollbar { display: none; }
  .jump { min-height: 44px; flex: none; font-size: 13px; }
  .toolbar.search-row { flex-wrap: wrap; }
  .toolbar.search-row input[type="search"] { flex: 1 1 100%; max-width: none; }
  .filters-toggle { display: inline-flex; flex: 1 1 40%; }
  .sort-flt { margin-left: 0; flex: 1 1 50%; }
  .sort-flt select { max-width: none; width: 100%; }
  .toolbar.filters.collapsed { display: none; }
  .toolbar.filters .flt { flex: 1 1 45%; }
  .toolbar.filters select { max-width: none; width: 100%; }
  .clear-btn { flex: 1 1 100%; }
  table.data.stack td.nil { display: none; }
  table.data.sellers-table td.lead { min-width: 0; }
  table.data.sellers-table .sub.owner-inline { max-width: none; }
  table.data.sellers-table .sub.tier-inline { display: none; }
  table.data.sellers-table .col-tier:not(.nil) { display: block; }
  table.data.sellers-table .score .bar { display: block; }
  .contact-line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact-line > span { min-height: 44px; }
  .crumb a { min-height: 44px; }
  .detail-title { flex-basis: 100%; }
  .pager .btn { min-width: 96px; }
  .tm-title a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Links inside facts, contact lines, fit cards and ranked rows: a fingertip-sized target, not just the text. */
  .fact .v a, .contact-line a, .fit-head a, .buyer-card h2 a, .mx-buyer h2 a, .col-more .col-link, .mfit-head a { display: inline-flex; align-items: center; min-height: 44px; }
  table.data.mx-rank td.lead a.t { display: flex; align-items: center; min-height: 44px; }
  .mini { min-height: 44px; }
}
.tm-title { margin-top: 10px; }
.tm-title:first-child { margin-top: 0; }
.tm-title a { color: var(--brand); }
.wl-flag.ask-t { color: var(--amber-ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.filters-toggle[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
