/*
 * Backed Systems CRM. Brand tokens from backedsystems.com (named-locally-site/styles.css):
 * Deep Navy #0B1F3B, Slate #334155, Cool Gray #64748B, Soft White #F8FAFC, gradient cyan #0EA5E9 -> blue #3B82F6
 * -> violet #8B5CF6, teal #14B8A6 for online/success. Inter (UI/headings), Plus Jakarta Sans (body), IBM Plex Mono (numbers).
 * Dense app UI; small accent text uses AA-deepened shades, the bright brand colours are fills only.
 */
:root {
  --navy: #0B1F3B; --slate: #334155; --cool: #64748B; --soft: #F8FAFC;
  --cyan: #0EA5E9; --blue: #3B82F6; --violet: #8B5CF6; --teal: #14B8A6;
  --grad: linear-gradient(90deg, #0EA5E9 0%, #3B82F6 50%, #8B5CF6 100%);

  --bg: #F8FAFC; --surface: #FFFFFF; --surface-2: #F1F5F9; --ink: #0B1F3B; --muted: #334155; --faint: #5B6B82;
  --line: #E2E8F0; --line-strong: #8A99AE;
  --accent: #2563EB; --accent-ink: #FFFFFF; --accent-soft: #EEF4FF;
  --pri-bg: #0B1F3B; --pri-ink: #FFFFFF; --pri-hover: #17335C;
  --good: #0F766E; --good-soft: #DDF5F1; --warn: #9A4A00; --warn-soft: #FDF0DC;
  --bad: #B42318; --bad-soft: #FDE4E1; --info: #1D4ED8; --info-soft: #E3ECFF;
  --violet-ink: #5B21B6; --violet-soft: #EFE9FE; --neutral-soft: #EEF2F6;
  --online: #14B8A6; --focus: #2563EB;
  --shadow: 0 1px 2px rgba(11, 31, 59, .06), 0 14px 36px rgba(11, 31, 59, .16); --scrim: rgba(11, 31, 59, .40);
  --sans: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --head: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1A33; --surface: #12294A; --surface-2: #173257; --ink: #F8FAFC; --muted: #CBD5E1; --faint: #9FB0C6;
    --line: #22395C; --line-strong: #5A7196;
    --accent: #38BDF8; --accent-ink: #0B1F3B; --accent-soft: rgba(59, 130, 246, .20);
    --pri-bg: #0EA5E9; --pri-ink: #0B1F3B; --pri-hover: #38BDF8;
    --good: #5EEAD4; --good-soft: rgba(20, 184, 166, .18); --warn: #FBBF24; --warn-soft: rgba(251, 191, 36, .14);
    --bad: #FF8A7A; --bad-soft: rgba(255, 138, 122, .15); --info: #93C5FD; --info-soft: rgba(59, 130, 246, .20);
    --violet-ink: #C4B5FD; --violet-soft: rgba(139, 92, 246, .22); --neutral-soft: #1C3A63;
    --online: #2DD4BF; --focus: #38BDF8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px rgba(2, 8, 23, .5); --scrim: rgba(2, 8, 23, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1A33; --surface: #12294A; --surface-2: #173257; --ink: #F8FAFC; --muted: #CBD5E1; --faint: #9FB0C6;
  --line: #22395C; --line-strong: #5A7196;
  --accent: #38BDF8; --accent-ink: #0B1F3B; --accent-soft: rgba(59, 130, 246, .20);
  --pri-bg: #0EA5E9; --pri-ink: #0B1F3B; --pri-hover: #38BDF8;
  --good: #5EEAD4; --good-soft: rgba(20, 184, 166, .18); --warn: #FBBF24; --warn-soft: rgba(251, 191, 36, .14);
  --bad: #FF8A7A; --bad-soft: rgba(255, 138, 122, .15); --info: #93C5FD; --info-soft: rgba(59, 130, 246, .20);
  --violet-ink: #C4B5FD; --violet-soft: rgba(139, 92, 246, .22); --neutral-soft: #1C3A63;
  --online: #2DD4BF; --focus: #38BDF8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px rgba(2, 8, 23, .5); --scrim: rgba(2, 8, 23, .6);
  color-scheme: dark;
}

/* logo swap follows the same theme rules as the tokens */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: inline-block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, .brand, .btn, .tabs button, th { font-family: var(--head); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 13px; } .fine-l { font-size: 12.5px; margin: 0; }
.mt0 { margin-top: 0 !important; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; }
.mb6 { margin-bottom: 6px; } .mb8 { margin-bottom: 8px; } .self-end { align-self: end; padding-bottom: 8px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: 24px; text-align: center; }
.grad-bar { height: 3px; background: var(--grad); }
.linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }
.nocall { font-family: var(--mono); font-weight: 500; white-space: nowrap; text-decoration: line-through; color: var(--muted); }

/* screens: boot / login / no access */
.screen.center { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; }
.boot-logo { width: 200px; height: auto; }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; padding: 0 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.auth-card .grad-bar { margin: 0 -22px 10px; }
.auth-logo { width: 190px; height: auto; margin-top: 8px; }
.auth-h { font-size: 20px; margin: 4px 0 0; letter-spacing: -.01em; }
.auth-sub { margin: 0; font-size: 13.5px; }
#login-form { display: flex; flex-direction: column; gap: 10px; }
.fine { font-size: 12px; color: var(--faint); margin: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 14px; min-height: 52px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand img { width: 140px; height: auto; vertical-align: middle; }
.brand-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
:root:not([data-theme="dark"]) .brand-tag { color: var(--info); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.tabs button { border: 0; background: none; padding: 15px 12px 13px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); font-weight: 600; }
.tabs .cnt { font-family: var(--mono); font-size: 11px; margin-left: 5px; padding: 1px 6px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.me { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); position: relative; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.live { background: var(--online); } .dot.bad { background: var(--bad); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 240px; display: flex; flex-direction: column; }
.menu > button { text-align: left; background: none; border: 0; padding: 10px; border-radius: 7px; cursor: pointer; }
.menu > button:hover { background: var(--surface-2); }
.menu-who { padding: 8px 10px; font-size: 12.5px; color: var(--faint); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }
.menu-theme { display: flex; align-items: center; gap: 4px; padding: 6px 10px; }
.menu-theme span { flex: 1; }
.menu-theme button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 12px; }
.menu-theme button[aria-pressed="true"] { background: var(--pri-bg); color: var(--pri-ink); border-color: var(--pri-bg); }
@media (max-width: 700px) {
  .top-row { gap: 4px 10px; padding-block: 6px; }
  .tabs { order: 3; flex-basis: 100%; }
  .tabs button { padding: 10px 10px 9px; }
  .brand img { width: 118px; }
  .me .who { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .me { margin-left: auto; }
}

.banner { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.banner.bad { background: var(--bad-soft); border-color: transparent; color: var(--ink); }
.banner.good { background: var(--good-soft); border-color: transparent; color: var(--ink); }
main { padding-block: 14px 72px; }
h2.vt { font-size: 19px; margin: 4px 0 2px; letter-spacing: -.01em; }
.vsub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
h3.sec { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 22px 0 8px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
h3.sec .num { letter-spacing: 0; color: var(--ink); }

/* controls */
.btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 8px 13px; cursor: pointer; font-weight: 500; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--ink); min-height: 36px; }
.btn:hover { background: var(--surface-2); }
.btn.pri { background: var(--pri-bg); color: var(--pri-ink); border-color: var(--pri-bg); }
.btn.pri:hover { background: var(--pri-hover); border-color: var(--pri-hover); }
.btn.sm { padding: 5px 10px; font-size: 13px; min-height: 32px; }
.btn.big { padding: 12px 16px; font-size: 15px; min-height: 46px; }
.btn.wide { width: 100%; }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=date], select, textarea {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 8px 10px; min-width: 0; max-width: 100%; min-height: 36px; }
textarea { width: 100%; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; font-weight: 500; }
label.f input, label.f select { width: 100%; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.bar.between { justify-content: space-between; } .bar.center-y { align-items: center; } .bar.end-y { align-items: flex-end; } .bar.end { justify-content: flex-end; }
.bar .grow { flex: 1 1 200px; }
.filters label.f { flex: 0 1 140px; }
.filters label.f.grow { flex: 1 1 220px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--neutral-soft); color: var(--muted); white-space: nowrap; line-height: 1.4; }
.chip.mono { font-family: var(--mono); font-weight: 500; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.acc { background: var(--accent-soft); color: var(--info); }
.chip.vio { background: var(--violet-soft); color: var(--violet-ink); }
.chip.solidbad { background: var(--bad); color: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
#dr-head .chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.chips.inline { display: inline-flex; }

/* queue */
.qgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .qgrid { grid-template-columns: minmax(0, 1fr); } }
.cards { display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; cursor: pointer; text-align: left; width: 100%; }
.card:hover { border-color: var(--line-strong); }
.card.due { border-left: 4px solid var(--warn); }
.card.over { border-left: 4px solid var(--bad); }
.card.nosite-ok { border-left: 4px solid var(--good); }
.chip.nosite-tag { background: var(--good); color: #fff; font-weight: 600; }
/* Call-queue band labels (owner 11-03): Hot, Best, Older. */
.chip.band { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.chip.band-hot { background: var(--bad-soft); color: var(--bad); }
.chip.band-best { background: var(--good-soft); color: var(--good); }
.chip.band-older { background: var(--neutral-soft); color: var(--muted); }
.card .nm { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font-family: var(--head); }
.card .meta { font-size: 12.5px; color: var(--muted); grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.card .tp { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink); margin: 2px 0 0; padding-left: 10px; border-left: 2px solid var(--line); }
.card .pitchln { grid-column: 1 / -1; font-size: 13px; color: var(--ink); margin: -2px 0 2px; }
.card .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.phone { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.kpi b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 500; line-height: 1.1; }
.kpi span { font-size: 11.5px; color: var(--muted); }
.pool .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.pool .row:first-child { border-top: 0; }
.pool .row .nm { font-weight: 600; font-size: 13.5px; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; overflow-wrap: anywhere; }
.pool .row .meta { font-size: 12px; color: var(--muted); grid-column: 1 / 2; }
.pool .bar label.f { flex: 1 1 90px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 0; }

/* table */
.tbox { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
td.wrapc { white-space: normal; min-width: 180px; max-width: 320px; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
table.click tbody tr { cursor: pointer; }
table.click tbody tr:hover td { background: var(--surface-2); }
tbody tr.sel td { background: var(--accent-soft); }
tbody tr.hid td { opacity: .62; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td input[type=checkbox], th input[type=checkbox] { width: 18px; height: 18px; }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; background: var(--accent-soft); border-radius: 8px; margin: 8px 0; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }

/* pipeline */
.funnel { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
@media (max-width: 900px) { .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.stage b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 500; }
.stage span { font-size: 11.5px; color: var(--muted); }
.plist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.prow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 12px; border-top: 1px solid var(--line); align-items: center; }
.prow:first-child { border-top: 0; }
.prow .nm { font-weight: 600; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; overflow-wrap: anywhere; font-family: var(--head); }
.prow .meta { font-size: 12px; color: var(--muted); }
.warn-t { color: var(--warn); }
@media (max-width: 640px) { .prow { grid-template-columns: minmax(0, 1fr) auto; } .prow .mid { grid-column: 1 / 2; } }

/* dashboard */
.range { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.range button { border: 0; background: var(--surface); padding: 7px 12px; cursor: pointer; border-left: 1px solid var(--line); min-height: 34px; }
.range button:first-child { border-left: 0; }
.range button[aria-pressed="true"] { background: var(--pri-bg); color: var(--pri-ink); }
.targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tgt { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tgt .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tgt .h b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.meter { position: relative; height: 8px; background: var(--surface-2); border-radius: 4px; margin: 8px 0 4px; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grad); border-radius: 4px; }
.meter i.done { background: var(--teal); }
.meter u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .5; }
.tgt small { font-size: 11.5px; color: var(--muted); }
.table-note { font-size: 12px; margin: 6px 0 0; }

/* drawer */
#scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--bg); z-index: 50; box-shadow: var(--shadow); display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.dr-top { display: flex; gap: 6px; align-items: center; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dr-top .sp { flex: 1; }
.dr-top .btn { min-height: 40px; }
.dr-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.dr-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dr-sec h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.dr-sec h4 { margin: 12px 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
#dr-name { font-size: 21px; margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hd-meta { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.hd-meta.hd-site { color: var(--ink); background: var(--warn-soft); border-radius: 8px; padding: 6px 10px; }
.hd-meta.hd-site.unsafe { background: var(--bad-soft); font-weight: 600; }
/* A website we won't link: the domain as plain, non-clickable text next to its don't-open badge. */
.site-off { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-off .site-host { color: var(--faint); cursor: default; }
.hd-meta.hd-ask { color: var(--ink); font-size: 14px; margin: 4px 0 6px; }
.hd-meta.hd-ask.low { color: var(--muted); font-size: 13px; }
.hd-ask a { color: inherit; }
.hd-finding { margin: 6px 0 8px; padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 8px; font-size: 14px; color: var(--ink); }
.hd-finding p { margin: 0 0 4px; }
.hd-finding p:last-child { margin-bottom: 0; }
.hd-finding .warn { font-weight: 600; }
.hd-finding .faint { font-size: 13px; }
.conf { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-left: 2px; background: var(--line-strong); }
.conf.c-high { background: var(--good); } .conf.c-medium { background: var(--warn); } .conf.c-low { background: transparent; border: 1.5px solid var(--line-strong); }
.hd-line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; }
.callrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.bigcall { font-size: 18px; padding: 12px 18px; min-height: 52px; }
.callrow .btn { min-height: 48px; }
.strike { text-decoration: line-through; }
.clock { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--good-soft); color: var(--good); margin-top: 8px; font-weight: 500; }
.clock.off { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.clock.unk { background: var(--surface-2); color: var(--muted); }
.rules { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.rules li { padding: 6px 9px; border-radius: 7px; background: var(--surface-2); }
.rules li.warn { background: var(--warn-soft); color: var(--ink); }
.rules li.bad { background: var(--bad-soft); color: var(--ink); font-weight: 600; }
.subh { margin: 12px 0 4px; font-size: 12px; color: var(--muted); }
.tps { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.tps li { margin: 2px 0; }
.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 420px) { .outs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.out { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 12px 6px; min-height: 52px; font-weight: 600; cursor: pointer; font-size: 13.5px; line-height: 1.2; font-family: var(--head); }
.out:hover { background: var(--surface-2); }
.out.good { border-color: var(--good); color: var(--good); }
.out.accent { background: var(--pri-bg); border-color: var(--pri-bg); color: var(--pri-ink); }
.out.warn { border-color: var(--warn); color: var(--warn); }
.out.bad { border-color: var(--bad); color: var(--bad); }
.out.muted { color: var(--muted); }
.out[disabled] { opacity: .5; cursor: progress; }
#drawer .dr-sec .btn.sm { min-height: 40px; padding: 7px 12px; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hist li:first-child { border-top: 0; }
.hist .when { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.hist .nt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 460px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.snaprec { font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--line); }
.snaprec:first-child { border-top: 0; }
#dr-snap-text { font-family: var(--mono); font-size: 12px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.check input { width: 20px; height: 20px; }

/* evidence card */
.ev { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.ev > summary { cursor: pointer; padding: 12px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-family: var(--head); }
.ev > summary::-webkit-details-marker { display: none; }
.ev > summary::after { content: "▾"; font-size: 11px; letter-spacing: 0; }
.ev[open] > summary::after { content: "▴"; }
.ev h5 { margin: 10px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-family: var(--head); }
.ev ol { margin: 0 0 10px; padding-left: 20px; font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.ev li b { font-weight: 600; }
.ev li q { display: block; margin: 3px 0; padding-left: 8px; border-left: 2px solid var(--blue); quotes: none; }
.ev li i { font-style: normal; color: var(--muted); font-size: 11.5px; display: block; }
.ev li em { display: block; font-style: normal; font-size: 12px; color: var(--ink); background: var(--warn-soft); padding: 4px 7px; border-radius: 6px; margin-top: 3px; }
.ev .never { margin: 0 0 10px; padding: 8px 10px; border-radius: 7px; background: var(--bad-soft); color: var(--ink); font-size: 12.5px; }
.ev .never ul { margin: 4px 0 0; padding-left: 18px; }
.ev .src { margin: 0 0 12px; font-size: 11.5px; color: var(--faint); }
.ev .expired { margin: 0 0 10px; padding: 8px 10px; border-radius: 7px; background: var(--bad); color: var(--surface); font-weight: 600; font-size: 12.5px; }

/* call script (read live on a phone: big text, one column, tap-to-expand) */
.scr-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.scr-wrap > summary { cursor: pointer; padding: 13px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); font-weight: 700; list-style: none; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-family: var(--head); min-height: 44px; }
.scr-wrap > summary::-webkit-details-marker { display: none; }
.scr-wrap > summary::after { content: "▾"; font-size: 11px; letter-spacing: 0; color: var(--muted); }
.scr-wrap[open] > summary::after { content: "▴"; }
.scr-wrap[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.scr { padding-bottom: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.scr p { margin: 0; }
.scr-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.scr-lbl { font-family: var(--head); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.sayblock { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.say { font-size: 16.5px; line-height: 1.55; color: var(--ink); padding: 2px 0 2px 11px; border-left: 3px solid var(--blue); overflow-wrap: anywhere; }
.scr-open { background: var(--accent-soft); border-radius: 10px; padding: 11px 12px; }
.scr-open .say { font-size: 17.5px; border-left-color: var(--violet); }
#drawer .scr .btn.copy { min-height: 40px; min-width: 64px; padding: 6px 10px; }
.scr-note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px !important; }
.scr-src { font-size: 11.5px; color: var(--faint); margin-top: 4px !important; overflow-wrap: anywhere; }
.scr-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.scr-rules li { padding: 6px 9px; border-radius: 7px; background: var(--surface-2); }
.scr-expired { padding: 8px 10px; border-radius: 7px; background: var(--bad); color: var(--surface); font-weight: 600; font-size: 13px; }
h5.scr-sec { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-family: var(--head); font-weight: 600; display: flex; gap: 8px; align-items: center; }
h5.scr-sec .num { letter-spacing: 0; color: var(--ink); }
.scr-find { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.scr-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 7px; background: var(--surface); }
.scr-card.s-strong { border-left: 4px solid var(--bad); }
.scr-card.s-medium { border-left: 4px solid var(--warn); }
.scr-card.s-note { border-left: 4px solid var(--line-strong); }
.scr-card-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.scr-card-h b { font-family: var(--head); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.scr-diag { border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 7px; background: var(--surface); }
.scr-diag-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.scr-diag-h b { font-family: var(--head); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.scr-ev { margin: 4px 0 6px; }
.pv-row { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.scr-why, .scr-fix { font-size: 13px; color: var(--muted); }
.scr-why b, .scr-fix b { color: var(--ink); font-weight: 600; margin-right: 2px; }
.scr-acc, .scr-obj { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 11px; }
.scr-acc > summary, .scr-obj > summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 600; font-size: 14.5px; font-family: var(--head); display: flex; align-items: center; gap: 8px; list-style: none; }
.scr-acc > summary::-webkit-details-marker, .scr-obj > summary::-webkit-details-marker { display: none; }
.scr-acc > summary::before, .scr-obj > summary::before { content: "▸"; color: var(--muted); font-size: 12px; flex: none; }
.scr-acc[open] > summary::before, .scr-obj[open] > summary::before { content: "▾"; }
.scr-acc[open], .scr-obj[open] { padding-bottom: 11px; }
.scr-acc[open] > summary, .scr-obj[open] > summary { color: var(--ink); }
.scr-objs { display: flex; flex-direction: column; gap: 6px; }
.scr-dnp { background: var(--good-soft); border-color: transparent; }
.scr-dnp ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.scr-dnp li p { font-size: 13px; margin-top: 4px; }
.scr-dnp .say { font-size: 15px; }
.scr-q { font-size: 12px; color: var(--muted); font-weight: 600; margin: 8px 0 4px !important; }
.scr-list { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.scr-list .scr-note { margin-top: 2px !important; }
.scr-open .scr-h:not(:first-child) { margin-top: 12px; }
.scr-cad .scr-list b { font-weight: 600; }
.scr-close { display: flex; flex-direction: column; gap: 6px; }
.scr-prices { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4px 12px; margin: 4px 0 0; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.scr-prices dt { color: var(--muted); }
.scr-prices dd { margin: 0; text-align: right; color: var(--ink); }
.clipbuf { position: fixed; top: 0; left: -9999px; opacity: 0; }
@media (max-width: 520px) {
  .sayblock { grid-template-columns: minmax(0, 1fr); }
  .sayblock .btn.copy { justify-self: start; }
  .scr-prices { grid-template-columns: minmax(0, 1fr); }
  .scr-prices dd { text-align: left; margin-bottom: 4px; }
}

/* picker, modal, toasts */
#picker { position: fixed; z-index: 70; inset: auto 16px 16px auto; width: min(340px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; }
#picker ul { list-style: none; margin: 8px 0 0; padding: 2px; max-height: 280px; overflow-y: auto; }
#picker li button { width: 100%; text-align: left; border: 0; background: none; padding: 10px 8px; border-radius: 7px; cursor: pointer; display: flex; gap: 8px; align-items: center; min-height: 40px; }
#picker li button:hover { background: var(--surface-2); }
.modal { position: fixed; inset: 0; z-index: 90; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { width: min(420px, 100%); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-h { margin: 0; font-size: 18px; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; gap: 6px; align-items: center; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 9px; font-size: 13px; box-shadow: var(--shadow); max-width: 100%; pointer-events: auto; }
.toast.bad { background: var(--bad); color: var(--surface); }
@media (prefers-reduced-motion: no-preference) { #drawer { animation: slide .16s ease-out; } @keyframes slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } } }

/* training (setter course): same tokens, light/dark follow :root */
.tr-top { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.tr-top .vsub { margin-bottom: 0; max-width: 640px; }
.tr-prog { min-width: 220px; flex: 0 1 300px; }
.tr-prog-h { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.tr-prog-h b { font-size: 18px; font-weight: 500; color: var(--ink); }
.tr-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.tr-side { position: sticky; top: 66px; display: flex; flex-direction: column; gap: 6px; }
.tr-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tr-nav-b { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 10px; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 13.5px; color: var(--ink); min-height: 44px; }
.tr-nav-b:hover { border-color: var(--line-strong); }
.tr-nav-b.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.tr-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.tr-nav-b.done .tr-n { background: var(--good-soft); color: var(--good); }
.tr-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tr-t small { font-family: var(--sans); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.tr-reset { align-self: flex-start; color: var(--muted); }
.tr-main { min-width: 0; }
.tr-mod { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; }
.tr-mod > .vt:focus { outline: none; }
.tr-kicker { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; font-family: var(--head); }
.tr-sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.tr-sec p { margin: 0 0 10px; line-height: 1.55; max-width: 76ch; }
.tr-h3 { font-size: 15.5px; margin: 0 0 8px; letter-spacing: -.005em; }
.tr-h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.tr-list, .tr-steps { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; line-height: 1.5; max-width: 80ch; }
.tr-say { background: var(--accent-soft); border-radius: 10px; padding: 9px 11px; margin: 0 0 10px; }
.tr-say .say { font-size: 15.5px; margin: 0; }
.tr-lbl { display: block; font-family: var(--head); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.tr-never { background: var(--bad-soft); border-radius: 8px; padding: 9px 11px; margin: 0 0 10px; font-size: 13px; }
.tr-never ul { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.tr-never q { quotes: "“" "”"; }
.tr-note { padding: 9px 11px; border-radius: 8px; background: var(--surface-2); font-size: 13px; margin: 0 0 10px; max-width: none !important; }
.tr-note.warn { background: var(--warn-soft); }
.tr-note.bad { background: var(--bad-soft); font-weight: 600; }
.tr-note.good { background: var(--good-soft); }
.tr-tbox { margin: 0 0 10px; }
.tr-table th, .tr-table td { white-space: normal; min-width: 90px; }
.tr-table td { line-height: 1.45; }
.tr-links { margin: 0 0 10px; }
.tr-ev { margin: 0 0 6px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.tr-ev li { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.tr-ev q { display: block; margin: 4px 0; padding-left: 8px; border-left: 2px solid var(--blue); quotes: none; line-height: 1.5; }
.tr-ev i { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.tr-ev em { display: block; font-style: normal; font-size: 12px; background: var(--warn-soft); padding: 4px 7px; border-radius: 6px; margin-top: 4px; }
.tr-src { font-size: 11.5px; color: var(--faint); margin: 0 0 10px !important; }
.tr-small { font-size: 13px; color: var(--muted); margin: 0 0 6px !important; }
.tr-small b { color: var(--ink); font-weight: 600; margin-right: 2px; }
.tr-sig { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tr-sig > li, .tr-cat-i { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 6px; }
.tr-sig .tr-say { margin: 0; }
.tr-sig-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tr-sig-h b { font-family: var(--head); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.tr-gls { gap: 10px; }
.tr-gl .tr-say { margin: 0; }
.tr-ex { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; color: var(--ink); }
.tr-gl-no { font-size: 13px; background: var(--bad-soft); border-radius: 7px; padding: 6px 9px; margin: 0 !important; line-height: 1.5; }
.tr-gl-no b { font-weight: 600; margin-right: 2px; }
.tr-gl .tr-src { margin: 0 !important; }
.tr-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tr-cat .tr-list { margin: 0; font-size: 13px; }
.tr-flags { margin: 0; padding: 6px 8px 6px 24px; background: var(--warn-soft); border-radius: 7px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.tr-objs { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.tr-obj { border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; }
.tr-obj > summary { cursor: pointer; padding: 11px 0; min-height: 44px; font-weight: 600; font-family: var(--head); display: flex; align-items: center; gap: 8px; list-style: none; }
.tr-obj > summary::-webkit-details-marker { display: none; }
.tr-obj > summary::before { content: "▸"; color: var(--muted); font-size: 12px; flex: none; }
.tr-obj[open] > summary::before { content: "▾"; }
.tr-obj[open] { padding-bottom: 10px; }
.tr-take { background: var(--surface-2); border: 0; border-radius: 10px; padding: 12px 14px; }
.tr-take .tr-list { margin: 0; }
.tr-quiz { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.tr-q { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px; margin: 0 0 10px; min-width: 0; }
.tr-q.ok { border-color: var(--good); }
.tr-q.bad { border-color: var(--bad); }
.tr-q legend { font-weight: 600; font-family: var(--head); padding: 0 4px; font-size: 14px; }
.tr-opt { display: flex; gap: 9px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.4; min-height: 40px; }
.tr-opt:hover { background: var(--surface-2); }
.tr-opt input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.tr-opt.right { background: var(--good-soft); }
.tr-opt.wrong { background: var(--bad-soft); }
.tr-why { font-size: 13px; margin: 6px 0 2px !important; color: var(--muted); }
.tr-why b { color: var(--ink); }
.tr-msg { font-size: 13px; font-weight: 600; }
.tr-msg.good { color: var(--good); } .tr-msg.bad { color: var(--bad); }
.tr-done { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tr-pn { margin-top: 14px; }
.tr-pn .btn { max-width: 48%; white-space: normal; text-align: left; }
@media (max-width: 980px) {
  .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-side { position: static; }
  .tr-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .tr-nav li { flex: 0 0 200px; }
  .tr-nav-b { height: 100%; }
}
@media (max-width: 520px) {
  .tr-mod { padding: 12px 12px 14px; }
  .tr-prog { flex-basis: 100%; }
  .tr-cat { grid-template-columns: minmax(0, 1fr); }
  .tr-pn .btn { max-width: 100%; width: 100%; }
  .tr-pn { flex-direction: column; align-items: stretch; }
}

/* Daily dial counter (header) */
.dials { display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; white-space: nowrap; }
.dials b { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.dials .dl-c { color: var(--muted); }
@media (max-width: 40rem) { .dials .dl-l, .dials .dl-c { display: none; } .dials b::after { content: " today"; font-family: inherit; font-size: 11px; font-weight: 400; } }

/* Horizontal scroll bar at the TOP of wide tables (owner request): flip the scroller, flip the table back */
.tbox { transform: rotateX(180deg); }
.tbox > table { transform: rotateX(180deg); }

/* AI Visibility Tracker */
.vis-pick { flex: 0 1 260px; }
.vis-tiles { margin-top: 4px; }
.meter i.over { background: var(--bad); }
.vis-h { margin: 0 0 2px; font-size: 17px; }
.vis-client { padding: 14px; }
.vis-confirm { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; }
.vis-list { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; }
.vis-list li { margin: 3px 0; }
.bad-t { color: var(--bad); font-weight: 600; }
.vis-method { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.vis-method li { margin: 4px 0; overflow-wrap: anywhere; }
.vis-tab td { vertical-align: middle; }
.vis-cell { color: var(--accent); font-weight: 600; }
.vis-cell.sel { text-decoration: underline; }
.vis-drill { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.vis-run { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.vis-run:first-of-type { border-top: 0; }
.vis-ans { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.5; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; margin-top: 8px; max-height: 360px; overflow-y: auto; }
.vis-cites summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.vis-cites ol { margin: 0; padding-left: 20px; font-size: 13px; }
.vis-cites li { margin: 3px 0; overflow-wrap: anywhere; }
.vis-trend { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.vis-series { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.vis-series h4 { margin: 0 0 6px; font-size: 13px; }
.vis-bars { list-style: none; margin: 0; padding: 0; }
.vis-bars li { display: grid; grid-template-columns: 84px minmax(0, 1fr) 64px; gap: 8px; align-items: center; font-size: 12px; margin: 4px 0; }
.vis-bars .c { text-align: right; }
.vis-bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.vis-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grad); border-radius: 5px; }
.vis-ed { border-top: 1px solid var(--line); margin-top: 8px; }
.vis-prow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; margin: 6px 0; }
.vis-prow input[type=text] { width: 100%; }
.vis-engs { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.vis-engs legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
@media (max-width: 640px) {
  .vis-prow { grid-template-columns: 24px minmax(0, 1fr); }
  .vis-prow > .check, .vis-prow > .btn, .vis-prow > span:empty { grid-column: 2; justify-self: start; }
  .vis-pick { flex: 1 1 100%; }
}
.vis-snip { font-size: 12.5px; margin: 6px 0 0; overflow-wrap: anywhere; }
/* Gatekeeper callback panel (drawer) */
.gk { margin-top: 10px; border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 10px; padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.gk[hidden] { display: none; }
.gk-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.gk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbtn { font: inherit; font-size: 13px; font-weight: 600; min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.chipbtn[aria-pressed="true"] { border-color: var(--violet); background: var(--accent-soft); }
.gk-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.gk-grid .f { margin: 0; }
.gk-grid input { width: 100%; min-width: 0; }
.gk-prev { font-size: 13px; padding: 6px 9px; border-radius: 7px; background: var(--surface-2); overflow-wrap: anywhere; }
.gk-lines { border-top: 1px solid var(--line); padding-top: 6px; }
.gk-lines .say { font-size: 14px; margin: 2px 0 6px; }
.gk-when { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 480px) { .gk-grid { grid-template-columns: minmax(0, 1fr); } }
/* Contact card (owner's direct email / line) under "Ask for:" in the drawer */
.ct { margin: 6px 0 10px; border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 10px; padding: 8px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ct:empty { display: none; }
.ct-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-empty { margin: 0; font-size: 13px; }
.ct.web { border-left-color: var(--line); }
.web-status { margin: 0; font-size: 13px; }
.web-status.warn { font-weight: 600; }
.web-form { display: flex; flex-direction: column; gap: 4px; }
.web-row { display: flex; gap: 6px; flex-wrap: wrap; }
.web-row input { flex: 1 1 200px; min-width: 0; }
/* One-click previews (lead card: Build preview, send buttons, the text-consent step) */
.pv-build { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.pv-send { gap: 6px; }
.pv-consent { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pv-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
/* Auto-demo card (lead drawer: Build demo, status chip, drop photos with their sources) */
.dj-ask { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--info-soft); }
.dj-drop { display: block; padding: 14px 12px; border: 2px dashed var(--line); border-radius: 8px; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.dj-drop:hover, .dj-drop:focus-within { border-color: var(--info); color: inherit; }
.dj-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dj-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.dj-name { flex: 1 1 100%; overflow-wrap: anywhere; font-weight: 600; }
.dj-file select { flex: 0 1 190px; min-width: 0; }
.dj-file input[type="url"] { flex: 1 1 220px; min-width: 0; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: pvspin .8s linear infinite; } @keyframes pvspin { to { transform: rotate(360deg); } } }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.ct-k { font-size: 12px; color: var(--muted); min-width: 76px; }
.ct-email { font-family: var(--mono); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; min-width: 0; }
.ct-mail { font-size: 13px; color: var(--info); }
.ct-meta { font-size: 12.5px; margin: 0; overflow-wrap: anywhere; }
.ct-form { display: flex; flex-direction: column; gap: 8px; }
.ct-in { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-in input { width: 100%; min-width: 0; }
.ct-err { margin: 0; font-size: 12.5px; color: var(--bad); font-weight: 600; }
.ct-err[hidden] { display: none; }
input[aria-invalid="true"] { border-color: var(--bad); }
.ct-ind { color: var(--info); font-size: 13px; margin-left: 4px; }
.ct-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* Email composer (inline under the Contact card; built on open, never re-rendered by live updates). */
.em { border-left-color: var(--violet); gap: 8px; }
.em[hidden] { display: none; }
.em-grid select, .em-grid input { width: 100%; min-width: 0; }
.em textarea { width: 100%; min-width: 0; box-sizing: border-box; font: 13.5px/1.5 var(--sans); resize: vertical; min-height: 220px; }
.em-notes { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.em-notes:empty { display: none; }
.em-cold-why, .em-restored, .em-len, .em-foot { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.em-restored { padding: 5px 9px; border-radius: 7px; background: var(--info-soft); color: var(--info); }
.em-restored .linkbtn { color: inherit; text-decoration: underline; }
.em-len { padding: 5px 9px; border-radius: 7px; background: var(--warn-soft); color: var(--warn); }
.em-len[hidden], .em-restored[hidden], .em-after[hidden] { display: none; }
.em-warn { display: flex; flex-direction: column; gap: 6px; }
.em-w { font-size: 12.5px; padding: 6px 9px; border-radius: 7px; overflow-wrap: anywhere; }
.em-w ul { margin: 4px 0 0; padding-left: 18px; }
.em-w.bad { background: var(--bad-soft); color: var(--bad); }
.em-w.warn { background: var(--warn-soft); color: var(--warn); }
.em-w.info { background: var(--info-soft); color: var(--info); }
.em-w.good { background: var(--good-soft); color: var(--good); }
.em-acts { flex-wrap: wrap; gap: 6px; }
.em-acts a[hidden] { display: none; }
.em-after { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; padding: 6px 9px; border-radius: 7px; background: var(--surface-2); }
.scr-contact { font-weight: 600; color: var(--ink); }

/* ---------------- Billing card (drawer) ---------------- */
.bl-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bl-inv { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.bl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bl-top .sp { flex: 1; }
.bl-amt { font-size: 15px; }
.bl-inv .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.bl-lines { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.bl-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dashed var(--line); }
.bl-lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.bl-inv .banner { margin-top: 8px; }
.bl-confirm { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere; }
.bl-confirm.bad { border-color: var(--bad); background: var(--bad-soft); }
.bl-form { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.bl-form h4 { margin: 0 0 8px; }
.bl-rows { display: flex; flex-direction: column; gap: 6px; }
.bl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.bl-row .grow { flex: 1 1 220px; }
.bl-row .bl-amtf { flex: 0 1 130px; }
.bl-row .bl-qtyf { flex: 0 1 64px; }
.bl-form textarea, .bl-form input, .bl-form select { width: 100%; }
.bl-total { margin: 8px 0 0; font-size: 14px; }
.bl-total b { font-size: 16px; }
@media (max-width: 480px) {
  .bl-row .grow { flex-basis: 100%; }
  .bl-row .bl-amtf { flex: 1 1 120px; }
}

/* ---------------- Billing tab ---------------- */
.good-t { color: var(--good); }
.bt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.bt-kpis .kpi { min-width: 0; }
.bt-kpis .kpi span { display: block; }
.bt-kpis .kpi b { font-size: 20px; margin-top: 2px; overflow-wrap: anywhere; }
.bt-kpis .kpi small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.bt-kpis .kpi.bad b { color: var(--bad); }
.bt-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 820px) { .bt-2col { grid-template-columns: minmax(0, 1fr); } }
.bt-goal .h b small { font-size: 13px; font-family: var(--sans); }
.bt-goal .meter { height: 12px; border-radius: 6px; }
.bt-goal .meter u { width: 3px; }
.bt-bars li { grid-template-columns: 64px minmax(0, 1fr) 96px; font-size: 12.5px; }
.bt-new { margin-bottom: 12px; }
.bt-h { font-size: 15px; margin-bottom: 8px; }
.bt-res { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bt-pick { width: 100%; justify-content: space-between; flex-wrap: wrap; text-align: left; min-height: 40px; }
.bt-pick b { overflow-wrap: anywhere; }
.bt-card { margin-bottom: 12px; }
.bt-card .btn.sm { min-height: 40px; padding: 7px 12px; }
.bt-formhead { margin-bottom: 6px; }
.bt-test { flex: 0 0 auto; align-self: flex-end; min-height: 36px; }
.bt-table td.wrapc { min-width: 160px; }
.bt-top { margin-bottom: 10px; }
.bt-top .vsub { margin-bottom: 4px; }

/* ---------- Commissions (Billing tab) + deal credit (drawer) ---------- */
.cm { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 4px; }
.cm-top { margin-bottom: 2px; }
.cm-h { margin-top: 16px; }
.cm-honest { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.cm-honest li { margin: 2px 0; }
.cm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cm-card { min-width: 0; }
.cm-name { overflow-wrap: anywhere; }
.cm-fig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 6px; }
.cm-fig div { min-width: 0; }
.cm-fig dt { font-size: 11.5px; color: var(--muted); }
.cm-fig dd { margin: 2px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.cm-rates { list-style: none; margin: 6px 0; padding: 0; font-size: 12.5px; }
.cm-rates li { margin: 2px 0; overflow-wrap: anywhere; }
.cm-rates li span { color: var(--muted); display: inline-block; min-width: 104px; }
.cm-btns { flex-wrap: wrap; }
.cm-form { margin-bottom: 12px; }
.cm-role { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; margin: 10px 0 0; min-width: 0; }
.cm-role legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.cm-role legend .faint { font-weight: 400; font-size: 12px; }
.cm-from { max-width: 220px; }
.cm-rep { font-family: var(--mono); font-size: 12px; white-space: pre; overflow-x: auto; }
.cm-sub { margin-top: 16px; }
.cm-table td.wrapc { min-width: 140px; }
.dl-credit .subh { margin-top: 4px; }
@media (max-width: 520px) {
  .cm-fig dd { font-size: 15px; }
  .cm-card .btn.sm, .cm-form .btn.sm { min-height: 40px; }
}
.dl-credit .muted.blk { display: block; margin-top: 4px; }

/* Growth tab (js/growth.js): the go-to-market board */
.gr-nosend { margin-top: 4px; }
.gr-filter { min-width: 0; }
/* Summary tiles (Mover OS kit KPI tile: label, big number, status chips, grey purpose line, 3px colour rail at the bottom) */
.gr-purpose { font-size: 14px; color: var(--ink); max-width: 70ch; }
.gr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gr-tile { font: inherit; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; min-width: 0; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 31, 59, .05); border-bottom: 3px solid var(--rail, var(--line-strong)); }
.gr-tile:hover { border-color: var(--line-strong); border-bottom-color: var(--rail, var(--line-strong)); }
.gr-tile[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); border-bottom-color: var(--rail, var(--accent)); box-shadow: 0 0 0 1px var(--accent) inset; }
.gr-tile-plans { --rail: var(--info); } .gr-tile-ads { --rail: var(--warn); } .gr-tile-email { --rail: var(--violet); } .gr-tile-channels { --rail: var(--good); }
.gr-tile-l { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gr-tile-n { font-family: var(--head); font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.gr-tile-n small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.gr-tile-by { display: flex; flex-wrap: wrap; gap: 4px; min-height: 21px; font-size: 12px; }
.gr-tile-p { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.gr-tile-hint { margin: 6px 0 0; }
@media (max-width: 900px) { .gr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Compact cards: a 4px stage-colour rail on the left */
.gr-item { border-left: 4px solid var(--line-strong); }
.gr-item.st-info { border-left-color: var(--info); } .gr-item.st-acc { border-left-color: var(--accent); } .gr-item.st-good { border-left-color: var(--good); }
.gr-item.st-warn { border-left-color: var(--warn); } .gr-item.st-vio { border-left-color: var(--violet); } .gr-item.st-bad { border-left-color: var(--bad); }
.gr-meta { margin: 4px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.gr-sumrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.gr-sum { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-toggle { flex: 0 0 auto; min-width: 64px; }
.gr-body { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.gr-tags { margin-top: 6px; }
.gr-sec { margin-top: 6px; }
.gr-blurb { margin: -2px 0 6px; }
.gr-review { margin: 0 0 8px; }
.gr-list { display: flex; flex-direction: column; gap: 10px; }
.gr-empty { padding: 14px; }
.gr-item { min-width: 0; }
.gr-new { border-style: dashed; }
.gr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.gr-title { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.gr-copy { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; margin: 8px 0 0; }
.gr-email { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.gr-line { margin: 6px 0 0; overflow-wrap: anywhere; }
.gr-doc { font-size: 12.5px; }
.gr-upd { margin: 8px 0 0; }
.gr-acts { margin-top: 8px; }
.gr-form { margin-top: 8px; }
.gr-steps { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 2px; }
.gr-steps-h { display: flex; gap: 6px; align-items: center; }
.gr-steplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gr-step { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.gr-step-h { display: flex; align-items: center; gap: 8px; }
.gr-subjects { list-style: none; margin: 6px 0 0; padding: 0; overflow-wrap: anywhere; }
.gr-subjects li { margin: 2px 0; }
.gr-thread { margin-top: 10px; border-left: 3px solid var(--line); padding-left: 10px; }
.gr-comments { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gr-c-h { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.gr-c .gr-copy { margin-top: 2px; }
.gr-status .gr-copy { color: var(--muted); font-style: italic; font-size: 12.5px; }
@media (max-width: 560px) {
  .gr-form .grid2, .gr-form .grid3 { grid-template-columns: minmax(0, 1fr); }
  .gr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gr-tile { padding: 9px 10px 11px; }
  .gr-tile-n { font-size: 24px; }
  .gr-step { padding: 8px 9px; }
  .gr-thread { padding-left: 8px; }
}
.gr-ro { align-self: flex-start; font-size: 13px; padding: 7px 10px; }

/* ---------------- call intelligence (calls.js) ---------------- */
.cc-calls .cc-call { padding: 10px 0; }
.cc-sum { margin: 6px 0 4px; font-size: 14px; }
.cc-tasks { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-task label { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; min-height: 32px; }
.cc-task input[type="checkbox"] { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.cc-task.done span { text-decoration: line-through; color: var(--faint); }
.cc-tx { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; font-family: var(--mono); font-size: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 8px 0 0; }
.cc-form textarea { width: 100%; box-sizing: border-box; font: inherit; }
.cc-todos { margin: 0 0 12px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }

/* Calls this week + objection playbook (js/weekly.js), meeting line in the Calls card (js/calls.js) */
.wk { margin-top: 18px; }
.wk-kpis { margin: 6px 0 12px; }
.wk .tbox { margin-bottom: 8px; }
.wk-op { max-width: 420px; overflow-wrap: anywhere; }
.wk meter { width: 100%; max-width: 160px; height: 10px; }
.pb-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pb-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pb-reply { margin: 4px 0 6px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pb-mini { margin: 4px 0 0; padding-left: 18px; }
.cc-meetline { gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cc-form input[type="datetime-local"] { font: inherit; min-height: 36px; max-width: 100%; }

/* ---------------- Fresh leads tab (js/fresh.js) ---------------- */
.fr-nosend { margin-top: 4px; }
.fr-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fr-filters .fr-q { grid-column: span 2; }
.fr-count { margin: 10px 0 6px; }
.fr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fr-card { min-width: 0; }
.fr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.fr-title { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.fr-line { margin: 6px 0 0; overflow-wrap: anywhere; }
.fr-socials a { margin-right: 10px; }
.fr-acts { margin-top: 10px; }
.fr-why { margin: 6px 0 0; padding-left: 18px; }
.fr-why li { margin: 2px 0; }
.fr-form { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.fr-empty { margin-top: 10px; }
.fr-frow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.fr-frow .fr-q { flex: 1 1 220px; min-width: 0; }
.fr-more { flex: 1 1 100%; }
.fr-more > summary, .fr-health > summary, .fr-settings > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.fr-more[open] > .fr-filters { margin-top: 8px; }
.fr-pager { justify-content: center; align-items: center; gap: 12px; }
.fr-tblwrap { overflow-x: auto; max-width: 100%; }
.fr-tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.fr-tbl th, .fr-tbl td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.fr-tbl input { min-height: 34px; max-width: 160px; }
.fr-set h5 { margin: 14px 0 6px; font-size: 13px; }
.fr-set .chk, .fr-srcs .chk { display: inline-flex; gap: 6px; align-items: flex-start; min-height: 32px; }
.fr-srcs { gap: 6px 16px; flex-wrap: wrap; }
.fr-nocall { white-space: normal; }
@media (max-width: 520px) {
  .fr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr-filters .fr-q { grid-column: 1 / -1; }
  .fr-pager .btn { flex: 1 1 0; min-height: 40px; }
  .fr-acts .btn { flex: 1 1 calc(50% - 8px); min-height: 40px; }
  .fr-form .grid2 { grid-template-columns: minmax(0, 1fr); }
}
/* Lead drawer: one pitch, the rest collapsed (owner 10-28) */
.dr-more { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
#dr-pitch .scr-acc { margin-top: 4px; }
#dr-hist-wrap .hist { padding-bottom: 12px; }
/* Call log at the top of the lead drawer (owner 10-29: was it called before?) */
.calllog { margin: 6px 0 2px; font-size: 14px; }
.calllog.never { color: var(--muted, #667); }
.calllog-list { margin: 2px 0 6px 18px; padding: 0; font-size: 13px; }
.calllog-list .nt { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted, #667); }
.card .meta > .chip:first-child { white-space: normal; max-width: 100%; }

/* Social leads tab (js/social.js) */
.sl-filters { flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.sl-filters .btn.on { outline: 2px solid currentColor; }
.sl-card { margin-bottom: 12px; }
.sl-who { margin: 0; font-size: 1rem; }
.sl-pain { margin: 6px 0; }
.sl-meta .chip { margin: 0 4px 4px 0; }
.sl-draft { margin-top: 10px; }
.sl-bm { margin: 8px 0 12px; padding: 10px 12px; }
.sl-bm summary { cursor: pointer; font-weight: 600; }
.sv-post { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; font-size: 13px; }
.sv-post dt { color: var(--muted); font-weight: 600; }
.sv-post dd { margin: 0; overflow-wrap: anywhere; }
.sv-post dd.sl-text { grid-column: 1 / -1; max-height: 240px; overflow: auto; }
.sl-text { white-space: pre-wrap; margin: 4px 0 0; padding: 8px; border-radius: 6px; background: rgba(127, 127, 127, 0.08); }
.sl-form { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; margin-top: 10px; }
.sl-form textarea, .sl-form button { grid-column: 1 / -1; }
/* Messenger mute control (js/messenger.js) */
.ms-panel { margin-top: 16px; }
.ms-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid rgba(127, 127, 127, 0.15); }
.ms-row .btn { margin-left: auto; }
.ms-id { font-family: ui-monospace, monospace; }

/* No-show follow-ups (js/followups.js) */
.fu-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; }
.fu-step { display: grid; gap: 4px; justify-items: start; padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.fu-step.done { opacity: .65; }
.fu-step.now { border-color: var(--warn, #c80); }
.fu-pre { white-space: pre-wrap; font: inherit; font-size: .9em; margin: 4px 0 0; }
.fu-warn { margin: 0; }
