/* ThunderDragon – dark, red and gold. Crimson for the main action (Call,
   Sign in), gold for highlights and the "DRAGON" in the wordmark. Always
   dark: easy on the eyes for evening calls from Tokyo. */

:root {
  --bg: #131112;
  --surface: #1f1b1c;
  --surface-2: #292324;
  --line: #352d2e;
  --line-2: #2a2425;
  --ink: #ece5da;
  --ink-2: #ece3d8;
  --muted: #c6bcb1;
  --header: #0c0a0b;
  --header-ink: #f7f1e8;
  --mint: #f2b33d; /* gold highlight (the name is from the old palette) */
  --mint-soft: #3a2e16;
  --gold: #f2b33d;
  /* The wordmark: THUNDER in brushed silver, DRAGON in shining gold. */
  --silver-shine: linear-gradient(180deg, #ffffff 0%, #d9dde3 45%, #9aa1ab 100%);
  --gold-shine: linear-gradient(180deg, #f8d27a 0%, #e9a93a 55%, #c7861c 100%);
  --primary: #d61f3a;
  --primary-ink: #ffffff;
  --primary-dark: #e8344f;
  --link: #f5c260;
  --nav-active: #3a1820;
  --warn-bg: #33290f;
  --warn-line: #5a4719;
  --warn-ink: #f0cf8a;
  --bad-bg: #2a1214;
  --bad-line: #6b2a2f;
  --bad-ink: #ff9d9d;
  --great-bg: #173a27;
  --great-ink: #a7ebbd;
  --accent: #f2b33d;
  --accent-ink: #131112;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: none;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --input-bg: #171415;
  --input-line: #76696a;
  --notice-bg: #241f20;
  --pill-ink: #f2b33d;
  --ghost-hover: #332c2d;
  --backdrop: rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Already dark (Joseph, 14 Oct, Fold 6 in Samsung Internet: "why is the colour off"). Samsung
   Internet's dark mode re-colours sites unless they have their own dark-mode styles; this rule
   (with the color-scheme meta tag) says we do, so it leaves the colours alone. */
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
a { color: var(--link); }
/* Headings use the wordmark's font and spacing, everywhere; body text stays
   in Inter so it's easy to read while calling. */
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; color: #e9e1d6; }
h1 { font-size: clamp(28px, 6.5vw, 34px); line-height: 1.05; margin: 0 0 6px; }
h2 { font-size: 21px; line-height: 1.1; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 6px 0; color: var(--ink-2); }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14.5px; }
.small { font-size: 14.5px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Header & navigation ---------- */

.topbar {
  background: var(--header);
  color: var(--header-ink);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: 0.06em; text-transform: uppercase; color: #e9e1d6; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.brand-mark { width: 36px; height: 36px; flex: none; }
/* DRAGON in gold that shines, softer on the eye than flat bright gold. */
.brand .wm { color: #e9e1d6; background: var(--silver-shine); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .wm .wm-2 { margin-left: 0.14em; color: var(--gold); background: var(--gold-shine); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Samsung Internet's own dark mode darkens gradients, and text cut out of one
   goes dark with it (THUNDER went navy, DRAGON and the numbers brown – Fold 6,
   14 Oct). There (class set in index.html) those words are a plain colour,
   which it leaves alone. */
.no-shine .brand .wm, .no-shine .brand .wm .wm-2, .no-shine .kpi .value, .no-shine .daycard .dc-title .gold, .no-shine .dc-stat b { background: none; -webkit-text-fill-color: currentColor; }
.no-shine .brand .wm { color: #eef0f3; }
.no-shine .brand .wm .wm-2, .no-shine .kpi .value, .no-shine .daycard .dc-title .gold, .no-shine .dc-stat b { color: var(--gold); }
@media (max-width: 480px) { .topbar .brand { font-size: 25px; } .topbar .brand-mark { width: 32px; height: 32px; } }
.topnav { display: none; gap: 4px; margin-left: 12px; flex: 1; }
.topnav a, .bottomnav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 15px;
  position: relative;
}
.topnav a { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.topnav a.active { background: var(--nav-active); color: #fff; }
.topbar .spacer { flex: 1; }
/* Prospects: one row of lists, then Country / Campaign dropdowns (Joseph, 13 Oct). */
.list-filters { gap: 8px 14px; margin: 2px 0 10px; }
.list-filters .filter { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; }
.list-filters select { width: auto; min-width: 0; max-width: 220px; }
/* Find anyone, from every screen (Joseph, 13 Oct). */
.qs { position: relative; margin-left: auto; flex: 0 1 260px; min-width: 0; }
.qs-input { width: 100%; min-width: 0; min-height: 38px; padding: 7px 12px; border-radius: 999px; border: 1px solid #4a3f40; background: #1c1819; color: var(--header-ink); font: inherit; font-size: 15px; }
.qs-input::placeholder { color: #b9aea3; }
.qs-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.qs-results { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); padding: 4px; z-index: 30; }
.qs-item, .qs-all { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.qs-item:hover, .qs-item:focus, .qs-all:hover, .qs-all:focus { background: var(--surface-2); outline: none; }
.qs-sub { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.qs-all { color: var(--link); font-weight: 600; align-items: center; border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; }
.qs-empty { padding: 10px; color: var(--muted); font-size: 14.5px; }
/* Phones: a small box by the logo that widens across the bar while you type. */
@media (max-width: 640px) {
  .topbar { gap: 8px; }
  .qs { flex: 0 1 92px; min-width: 52px; }
  .qs-input { font-size: 16px; }
  .qs:focus-within { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); z-index: 31; }
  .qs-results { left: 0; right: 0; width: auto; }
}
.ready-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; }
.ready-line.ok { border-left-color: #3fbf7f; }
.ready-line.ok b { color: #7fe0a8; }
/* Auto-dial (18 Oct): one line above the calls - Start, then the countdown and Pause / Skip / Stop. */
.auto-bar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; }
.auto-bar.off { border-left-color: var(--line); }
/* Parallel dialler (14 Nov): Power | Parallel, the lines, each line's box. */
.par-controls { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg-btn { background: none; border: 0; color: inherit; padding: 5px 11px; font: inherit; font-size: 14px; cursor: pointer; }
.seg-btn.on { background: var(--gold); color: #111; font-weight: 700; }
.par-skip { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.par-bar .par-lines { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.par-line { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; font-size: 14px; min-width: 0; }
.par-line .par-st { margin-top: 2px; }
.par-line.ring .par-st { color: var(--gold); }
.par-line.win { border-color: #2fbf71; }
.par-line.win .par-st { color: #2fbf71; font-weight: 700; }
.par-line.vm .par-st { color: #8ab4ff; }
.par-line.gone { opacity: 0.6; }
.par-bar .par-foot { flex: 1 1 100%; margin: 0; }
.par-hung { margin-bottom: 8px; }
/* Someone came through (stage B): the person | the company | notes and what happened. */
.pickup { border-color: #2fbf71; margin-bottom: 10px; }
.pickup-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pickup-head h2 { margin: 0; }
.pickup-dot { width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px #2fbf7133; }
.pickup-cols { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; }
.pickup-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; font-size: 15px; line-height: 1.45; }
.pickup-col h4 { margin: 0 0 6px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.pickup-col .k { opacity: 0.65; font-size: 13px; margin-top: 6px; }
.pickup-col textarea { width: 100%; }
.pickup-about { margin: 8px 0; white-space: pre-wrap; }
@media (max-width: 900px) { .pickup-cols { grid-template-columns: 1fr; } }
.par-hung li { margin: 4px 0; }
.auto-bar .auto-next { flex: 1 1 220px; min-width: 0; }
.auto-bar .auto-btns { display: flex; align-items: center; gap: 6px; flex: none; }
.auto-bar[data-auto-phase="countdown"] { border-left-color: var(--primary); }
/* Pinned under the top bar while a run is on (Hiro, AD-1). */
.auto-pinned { position: sticky; z-index: 15; background: var(--bg); padding-top: 4px; }
.auto-pinned .auto-bar { margin-bottom: 6px; }
.outcomes[data-wait="ring"] .wait-note { grid-column: 1 / -1; margin: 0 0 4px; }
@media (max-width: 420px) {
  .auto-bar { font-size: 14px; padding: 7px 10px; gap: 6px 8px; }
  .auto-bar .auto-co, .auto-bar .auto-hint { display: none; }
  .auto-bar .btn { padding: 5px 11px; min-height: 0; }
}
.test-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); font-size: 14.5px; }
.test-banner .btn { flex: none; }
.demo-pill { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.3px; }
.badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--header);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-left: 4px;
}

.bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
/* Simple mode has six tabs: spread across the full width (QA-03; Import and Sequences, 22 Oct). */
body.simple .bottomnav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bottomnav a {
  color: var(--muted);
  text-align: center;
  padding: 8px 2px 9px;
  border-radius: 0;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bottomnav a .ico { font-size: 18px; line-height: 1; }
.bottomnav a { min-width: 0; font-size: 10px; }
.bottomnav a .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottomnav a.active { color: var(--gold); font-weight: 600; }
.bottomnav .badge { position: absolute; top: 3px; left: calc(50% + 6px); margin: 0; }
/* Six tabs on a narrow phone: a touch smaller, never cut off. After the
   base rule, so it wins (Hiro, NV-1). */
@media (max-width: 380px) { .bottomnav a { font-size: 10px; letter-spacing: -0.1px; } }
/* Six tabs in the top bar on a small laptop: tighter, so search, the gear
   and the test-area badge keep their room (Hiro, NV-2). */
@media (min-width: 860px) and (max-width: 1040px) {
  .topnav { gap: 0; margin-left: 6px; }
  .topnav a { padding: 6px 7px; font-size: 13.5px; }
  .qs { flex: 0 1 200px; min-width: 96px; }
  .topbar .brand { font-size: 24px; }
}

main.shell { max-width: 1120px; margin: 0 auto; padding: 14px 14px 96px; }

@media (min-width: 860px) {
  main.shell { padding: 22px 20px 96px; }
}
/* Eight tabs (Import and Sequences, 22 Oct): the top bar from 1040px; below
   that the bottom bar, so nothing runs off the side (Hiro, NV-3). */
@media (min-width: 1040px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  main.shell { padding-bottom: 48px; }
}

/* ---------- Building blocks ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.panel.tight { padding: 12px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 2px 0 14px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .grid2 { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr); align-items: start; }
}
.divider { border: 0; border-top: 1px solid var(--line-2); margin: 12px 0; }

.btn {
  background: var(--primary);
  color: var(--primary-ink);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  min-height: 44px;
}
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { background: var(--ghost-hover); }
.btn.danger { background: var(--bad-bg); color: var(--bad-ink); border: 1px solid var(--bad-line); }
.btn.small { padding: 6px 10px; min-height: 34px; font-size: 14.5px; }
.btn.big { font-size: 18px; padding: 14px 20px; min-height: 54px; }
.btn.block { width: 100%; }
.icon-btn { border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 4px 8px; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  padding: 3px 9px;
  background: var(--mint-soft);
  border-radius: 999px;
  color: var(--pill-ink);
  font-weight: 600;
  white-space: nowrap;
}
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill.grey { background: var(--surface-2); color: var(--muted); }
.pill.hot { background: var(--header); color: var(--mint); }

.notice { border-left: 3px solid var(--gold); padding: 9px 12px; background: var(--notice-bg); font-size: 15px; border-radius: 0 8px 8px 0; margin: 8px 0; }
.notice.warn { border-color: #d9a441; background: var(--warn-bg); color: var(--warn-ink); }
.notice.bad { border-color: #c4553f; background: var(--bad-bg); color: var(--bad-ink); }
/* A call's specific ask, read before the phone rings (Joseph, 17 Oct). */
.notice.ask-box { border-left-width: 6px; font-size: 17px; padding: 11px 14px; }
.notice.ask-box b { display: block; color: var(--gold); }
.notice.ask-box .ask-note { font-size: 15px; margin-top: 4px; }

.field { display: block; margin: 0 0 12px; }
.field-label { display: block; font-size: 14.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
.hint { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.field input, .field select, .field textarea, input.inp, select.inp, textarea.inp {
  border: 1px solid var(--input-line);
  border-radius: 9px;
  padding: 10px 11px;
  width: 100%;
  background: var(--input-bg);
  min-height: 42px;
}
.field textarea, textarea.inp { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.checkbox { display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 6px 0; }
.checkbox.stats-history { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
.form-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.empty { text-align: center; padding: 28px 12px; }
.empty p { max-width: 420px; margin: 6px auto 14px; }

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin: 0 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 15px;
  white-space: nowrap;
}
.tab.active { background: var(--nav-active); color: #fff; border-color: var(--nav-active); }
.tab .count { opacity: 0.75; margin-left: 4px; }
/* Stats: any day on its own, or any days together (Joseph, 14 Oct). */
.day-picker { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; max-width: 520px; margin: -4px 0 14px; }
.day-picker .day-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-picker input[type="date"] { min-height: 38px; padding: 4px 8px; width: 100%; min-width: 0; }
.day-picker .btn.small { min-width: 38px; min-height: 38px; padding: 0 10px; font-size: 18px; line-height: 1; }
.day-picker .showing { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.day-picker .showing b { color: var(--gold); }
/* The folded Fold (~344px): the period chips wrap instead of running off the
   edge, From and To get a full row each, and the day table drops "Spoke" so
   "Booked" – the number that matters – stays in view (QA-04). */
@media (max-width: 400px) {
  .period-tabs { flex-wrap: wrap; overflow-x: visible; }
  .day-picker { grid-template-columns: minmax(0, 1fr) auto auto; }
  .day-picker .day-field { grid-column: 1 / -1; }
  .day-picker > button:first-of-type { grid-row: 3; grid-column: 2; }
  .day-picker > button:last-of-type { grid-row: 3; grid-column: 3; }
  .day-picker .showing { grid-row: 3; grid-column: 1; align-self: center; }
  .day-table th:nth-child(4), .day-table td:nth-child(4) { display: none; }
}
.day-table td:first-child { white-space: nowrap; }
.day-table td.gold { color: var(--gold); font-weight: 700; }
.day-table tr.clickable { cursor: pointer; }
/* Next step (Joseph, 14 Oct). */
.next-step h3 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.next-step .next-row { flex-wrap: wrap; gap: 8px; align-items: center; }
.next-step .chip.danger.active { background: var(--crimson, #d61f3a); border-color: var(--crimson, #d61f3a); color: #fff; }
.next-step .notice { margin-top: 14px; }
.next-line { gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.next-meta { color: var(--gold); }
/* Enquiries from thunderdragon.app (Joseph, 14 Oct). */
.list-item.enquiry { flex-direction: column; align-items: stretch; gap: 10px; }
.enquiry .main { min-width: 0; width: 100%; }
.enquiry .enquiry-contact { gap: 10px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.enquiry .enquiry-contact a { color: var(--gold); overflow-wrap: anywhere; }
.enquiry .enquiry-note { margin: 8px 0 0; color: var(--muted); font-style: italic; }
/* The when-line wraps rather than cutting: on a folded phone the source pill goes under "15 minutes ago" (Hiro, 18 Oct). */
.list-item.enquiry .meta { white-space: normal; overflow: visible; }
.enquiry .enquiry-actions { gap: 8px; flex-wrap: wrap; }
.day-table tr.clickable:hover td:first-child, .day-table tr.clickable:focus td:first-child { color: var(--gold); }

/* ---------- Session bar ---------- */

.session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--header);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.session-bar .live { color: var(--mint); font-weight: 700; font-size: 14.5px; letter-spacing: 0.3px; }
.session-bar .stat { font-size: 14.5px; color: var(--ink-2); }
.session-bar .stat b { color: #fff; font-size: 16px; margin-right: 2px; }
.session-bar .btn { min-height: 34px; padding: 6px 12px; font-size: 14.5px; }
.session-bar .btn.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.2); }

/* ---------- Call card ---------- */

.call-card .who { display: flex; gap: 12px; align-items: flex-start; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.call-card h1 { font-size: clamp(28px, 7vw, 36px); margin: 0; }
.call-card .sub { margin: 2px 0; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 4px; font-size: 15px; color: var(--ink-2); }
.facts span { white-space: nowrap; }
.dial-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 14px 0 8px; }
/* "Calling from" (19 Nov): the number they'll see, one tap to change it. */
.from-row { margin: -2px 0 8px; }
.from-switch { width: auto; max-width: 100%; font-size: 14px; padding: 4px 8px; }
.number-line { font-size: 16px; font-variant-numeric: tabular-nums; }
.quick-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.quick-links a, .quick-links button {
  font-size: 14.5px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 11px;
  text-decoration: none;
  color: var(--ink);
}

.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .outcomes { grid-template-columns: 1fr 1fr 1fr; } }
/* A laptop screen (1366×768): the outcome buttons start in view (QA-09). The
   notes box is one line until you type in it, and the buttons go four across. */
@media (min-width: 1100px) {
  .call-card textarea.call-notes { min-height: 44px; height: 44px; }
  .call-card textarea.call-notes:focus, .call-card textarea.call-notes:not(:placeholder-shown) { min-height: 90px; height: 90px; }
  .call-card:not(.focus-card) .outcomes { grid-template-columns: repeat(4, 1fr); }
  .said-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .said-row .objections .chip { font-size: 14px; padding: 5px 10px; }
  .said-row .notes-block h3 { margin-top: 0; }
}
.outcome {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 11px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
}
.outcome:hover { border-color: var(--muted); background: var(--surface-2); }
.outcome.good { border-color: var(--line); }
.outcome.great { background: var(--great-bg); border-color: var(--great-bg); color: var(--great-ink); }
.outcome.bad { color: var(--bad-ink); }

.meeting-outcome .meeting-next { display: block; }
.opener-box { margin: 6px 0 8px; }
.opener-line { margin: 0 0 4px; font-size: 16px; line-height: 1.45; }
.objection-lines summary { cursor: pointer; font-size: 14.5px; color: var(--muted); padding: 2px 0; }
.objection-lines ul { margin: 4px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.objection-lines li { margin: 2px 0 6px; }
.script-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; white-space: pre-wrap; font-size: 16px; line-height: 1.55; margin: 8px 0; max-height: 220px; overflow-y: auto; }
@media (min-width: 860px) { .script-box { max-height: 360px; } }

.list-item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
}
.list-item:first-child { border-top: 0; }
/* Meetings: on narrow screens the buttons go under the name, never over it. */
.meeting-row { flex-wrap: wrap; }
.meeting-row .main { flex: 1 1 260px; }
/* The name and both times wrap on a phone instead of being cut off (QA-02). */
.list-item.meeting-row .main b, .list-item.meeting-row .meta { white-space: normal; overflow: visible; }
.meeting-row > .row { flex: 0 1 auto; }
.list-item .main { min-width: 0; flex: 1; }
.list-item .main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item.clickable { cursor: pointer; }
/* Narrow phones: the badges go on their own line under the name, so the name,
   title and next step get the full width (QA-05). */
@media (max-width: 420px) {
  .prospect-row { flex-wrap: wrap; }
  .prospect-row .main { flex-basis: calc(100% - 40px); }
  .prospect-row .tags { flex-basis: 100%; padding-left: 32px; }
}
.list-item.clickable:hover b { color: var(--gold); }
.list-item.current { background: var(--surface-2); margin: 0 -12px; padding: 10px 12px; border-radius: 8px; }

.chip { font-size: 14.5px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 11px; color: var(--ink); }
.chip.active { background: var(--nav-active); border-color: var(--nav-active); color: #fff; }
.objections { margin-top: 10px; }
.relationship div { margin-top: 3px; }

/* ---------- Message card ---------- */

.message-preview { white-space: pre-wrap; }

/* ---------- Stats ---------- */

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi .label { font-size: 12.5px; color: var(--muted); }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
/* Numbers that matter shine in the same gold as DRAGON. */
.kpi .value, .kpi.hero .value { background: var(--gold-shine); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi .sub { font-size: 13.5px; color: var(--muted); }
.kpi.hero { background: var(--header); border-color: var(--header); }
.kpi.hero .label, .kpi.hero .sub { color: var(--ink-2); }
.kpi.hero .value { color: var(--mint); }

table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 13.5px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.data td { padding: 8px; border-bottom: 1px solid var(--line-2); }
table.data td.num, table.data th.num { text-align: right; }
.table-wrap { overflow-x: auto; }
/* Dashboard (23 Oct): a spreadsheet, numbers lined up; Silver blurs what's on Gold. */
.dash-controls .dash-row { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.dash-controls .dash-scope { width: auto; max-width: 100%; min-height: 40px; }
.dash-controls .field.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.dash-table td, .dash-table th { white-space: nowrap; }
.dash-table td.dash-line { white-space: normal; min-width: 260px; color: var(--muted); }
.dash-table td.gold { color: var(--gold); font-weight: 700; }
.dash-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--line) 25%, transparent); }
.dash-locked { filter: blur(5px); user-select: none; color: var(--muted); }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* ---------- Timeline ---------- */

.timeline .t-item { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.timeline .t-item:first-child { border-top: 0; }
.timeline .t-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 13.5px; color: var(--ink-2); }
.timeline .t-body { font-size: 15px; }
.timeline .t-body .meta { font-size: 13.5px; color: var(--muted); }
.recordings .rec-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.recordings .rec-row:first-of-type { border-top: 0; }
.recordings .rec-row .rec-player:has(audio) { grid-column: 1 / -1; }
.recordings .rec-pin { grid-column: 1 / -1; justify-self: start; }
.recordings .rec-row.booked b { color: var(--gold); }
.booking-call { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: var(--radius-sm); background: var(--warn-bg); }
.booking-call b { color: var(--gold); }
.booking-call .rec-player:has(audio) { grid-column: 1 / -1; }
.rec-player audio { display: block; width: 100%; max-width: 440px; height: 40px; margin-top: 6px; }
.timeline .t-body .text { white-space: pre-wrap; color: var(--ink-2); margin-top: 2px; }

/* ---------- Modal & toast ---------- */

.modal-backdrop { position: fixed; inset: 0; background: var(--backdrop); display: grid; place-items: end center; z-index: 50; padding: 0; }
.modal { background: var(--surface); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
.modal.wide { max-width: 760px; }
@media (min-width: 640px) {
  .modal-backdrop { place-items: center; padding: 20px; }
  .modal { border-radius: 18px; }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; position: sticky; top: 0; background: var(--surface); }
.modal-head h2 { margin: 0; }
.modal-body { padding: 6px 16px 18px; }
/* A dialog's Save and Cancel, kept in view at the bottom while the form scrolls (QA-10). */
.modal-actions { position: sticky; bottom: 0; z-index: 1; background: var(--surface); margin: 12px -16px -18px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }

/* ---------- Meeting booked: the booking page with the form (18 Oct) ----------
   Above the form on a phone (down to the folded Fold, 344px), beside it on a laptop. */
.booking-modal .modal-head { z-index: 3; }
.booking-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.booking-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px 12px; }
.booking-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.booking-head h3 { margin: 0; }
.booking-panel.folded .booking-body { display: none; }
.booking-body { margin-top: 8px; }
.booking-frame { display: block; width: 100%; height: min(60vh, 560px); min-height: 340px; border: 0; border-radius: 8px; background: #fff; }
.booking-blank { margin: 6px 0 0; }
.booking-foot { margin-top: 6px; }
.booking-form { min-width: 0; }
.booking-form h3 { margin: 4px 0 8px; }
@media (min-width: 1000px) {
  .modal.booking-modal { max-width: 1180px; }
  .booking-layout { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); align-items: start; }
  .booking-layout .booking-panel { position: sticky; top: 52px; }
  /* The whole panel (head, page, copy button) fits beside the form without scrolling. */
  .booking-frame { height: clamp(380px, calc(92vh - 260px), 720px); }
  .booking-layout .modal-actions { margin-left: 0; }
  /* Booking page hidden: just the form. */
  .modal.booking-modal:has(.booking-panel.folded) { max-width: 760px; }
  .booking-layout:has(.booking-panel.folded) { grid-template-columns: minmax(0, 1fr); }
  .booking-layout .booking-panel.folded { position: static; }
  .booking-layout:has(.booking-panel.folded) .modal-actions { margin-left: -16px; }
}

/* ---------- A booked call's follow-up: what was said beside the draft ---------- */
.draft-layout { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.draft-main, .draft-aside { min-width: 0; }
.draft-aside { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px 12px; }
.draft-aside h3 { margin: 0 0 6px; }
.draft-state { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.draft-state .hint { margin: 0; }
.draft-agenda, .draft-notes, .draft-transcript { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 10px; color: var(--ink-2); }
.draft-transcript { max-height: 320px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--input-bg); }
.pill.good { background: var(--great-bg); color: var(--great-ink); }

.toast {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--header);
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
  max-width: calc(100vw - 32px);
  font-size: 15px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--bad-ink); }
@media (min-width: 1040px) { .toast { bottom: 24px; } }
/* Undo in the toast (9 Nov): the button takes clicks, the rest still doesn't block the page. */
.toast-action { pointer-events: auto; margin-left: 10px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.toast:not(.show) .toast-action { pointer-events: none; }
.toast-action:hover, .toast-action:focus-visible { background: rgba(255, 255, 255, 0.15); }

/* ---------- Login ---------- */

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; overflow-x: hidden; padding: 20px; background: radial-gradient(circle at 50% 18%, rgba(214, 31, 58, 0.22), transparent 55%), var(--bg); }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; width: 100%; max-width: 400px; min-width: 0; }
/* Fits a narrow screen (the Fold's cover screen is ~344px): the logo line scales, and wraps rather than pushing the card off-centre. */
.login-card .brand { color: #e9e1d6; font-size: min(34px, 8vw); gap: 12px; max-width: 100%; }
.login-card .brand .wm { min-width: 0; }
.login-card .brand-mark { width: min(50px, 12vw); height: min(50px, 12vw); }
@media (max-width: 380px) { .login-card { padding: 20px 18px; } }

.login-card .tagline { margin: 4px 0 18px; }

.loading { padding: 40px; text-align: center; color: var(--muted); }

/* The loader (Joseph picked E, the pixel dragon, 11 Nov 2026): a spinning arc round a flapping pixel dragon.
   The words stay for screen readers; under reduced motion everything holds still. */
.td-loader { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 32px 16px; }
/* Full loaders sit in the true middle of the screen, on a computer too (Joseph, 12 Nov). Clicks pass through. */
.td-loader:not(.mini) { position: fixed; inset: 0; min-height: 0; padding: 0; pointer-events: none; }
.td-loader.mini { min-height: 0; padding: 12px 0; gap: 10px; }
.td-loader.mini .td-loader-ring { width: 36px; height: 36px; }
.td-loader.mini .td-loader-ring::before { border-width: 2px; }
.td-loader.mini .td-loader-ring img { inset: 7px; width: 22px; height: 22px; }
.td-loader-ring { position: relative; width: 120px; height: 120px; }
.td-loader-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: #D61F3A; animation: td-spin 1.1s linear infinite; }
.td-loader-ring img { position: absolute; inset: 26px; width: 68px; height: 68px; image-rendering: pixelated; }
@keyframes td-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .td-loader-ring::before { animation: none; } }
.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; }

/* ---------- Import mapping ---------- */

.map-grid { display: grid; grid-template-columns: 1fr; gap: 6px 14px; }
.map-head { font-size: 15px; margin: 14px 0 6px; }
.map-more { margin-top: 12px; }
.map-more > summary { cursor: pointer; color: var(--muted); font-size: 15px; padding: 4px 0; }
.map-more .map-grid { margin-top: 6px; }
.map-spare { margin: 0; line-height: 1.6; }
@media (min-width: 640px) { .map-grid { grid-template-columns: 1fr 1fr; } }
.map-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; font-size: 15px; }
.map-row select { padding: 7px 8px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--input-bg); min-width: 0; }

.step-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.step-card .step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--header); color: var(--mint); display: grid; place-items: center; font-weight: 700; font-size: 14.5px; flex: none; }

/* ---------- Setup guide (call screen) ---------- */

.setup { border-color: var(--mint); }
.setup-steps { list-style: none; margin: 12px 0 0; padding: 0; }
.setup-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.setup-step:first-child { border-top: 0; padding-top: 4px; }
.setup-step:last-child { padding-bottom: 0; }
.setup-step.done .step-num { background: var(--primary); color: var(--primary-ink); }
.setup-step h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 2px; }
.setup-step p { margin: 2px 0 8px; }
.setup-numbers { margin-bottom: 8px; }
.setup-call { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 420px; }
.steps-list { margin: 6px 0 12px; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.steps-list li { margin: 4px 0; }
.copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 2px; }
.copy-line code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; overflow-wrap: anywhere; min-width: 0; }

/* ---------- Emails sent from Gmail ---------- */

.list-item .meta.wrap { white-space: normal; }
.list-item .meta.bad { color: var(--bad-ink); }

/* ---------- Prospects: market chips ---------- */

.market-chips { gap: 6px; margin: 0 0 10px; }
.market-chips .chip { min-height: 34px; }
.chip .count { opacity: 0.75; margin-left: 2px; }

/* ---------- Settings: channels I'm using ---------- */

.channel-list { display: grid; gap: 2px; }
.channel-list .channel { align-items: flex-start; margin: 4px 0; }
.channel-list .channel input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.channel-list .channel .hint { margin-top: 0; }

/* ---------- Sequences: who is where ---------- */

.roster-counts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* ---------- Prospect: sequence card ---------- */

.seq-card .seq-step { font-weight: 650; margin: 6px 0 2px; }
.step-tools { display: inline-flex; gap: 4px; flex: none; margin-left: auto; }
.seq-card .bar { margin: 8px 0 6px; }

/* ---------- Which sequence someone is in (18 Oct) ---------- */

/* The chip on the call list and the simple card: tap for the panel. */
.seq-chip { font: inherit; font-size: 13px; font-weight: 600; line-height: 1.25; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.seq-chip:hover, .seq-chip:focus-visible { border-color: var(--gold); color: var(--gold); }
.seq-chip.manual { border-style: dashed; }
.seq-chip.off { color: var(--muted); }
.seq-line { margin: 6px 0 2px; }
.call-row .c-seq { max-width: 220px; }
/* In the table the chip wraps onto a second line, so the Sequence column
   never pushes the table past the panel (SQ-1, Hiro 18 Oct). */
.call-table .c-seq .seq-chip { white-space: normal; overflow-wrap: anywhere; border-radius: 12px; max-width: 170px; }
.call-table .c-seq .seq-sep { display: none; }
.call-table .c-seq .seq-where { display: block; font-weight: 500; color: var(--muted); }
/* Tablets and small laptops: Title makes way for Sequence (it's on their card; SQ-1b). */
@media (min-width: 761px) and (max-width: 1080px) {
  .call-table .h-title, .call-row .c-title { display: none; }
}
.seq-body .seq-step { font-weight: 650; margin: 6px 0 2px; }
.seq-body .bar { margin: 8px 0 6px; }
.seq-body .tags { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.seq-steps { list-style: none; margin: 8px 0 4px; padding: 0; }
.seq-li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.seq-li:first-child { border-top: 0; }
.seq-li .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.seq-li.done { color: var(--muted); }
.seq-li.done .mark { background: var(--header); color: var(--mint); }
.seq-li.current { font-weight: 650; }
.seq-li.current .mark { background: var(--primary); color: var(--primary-ink); }
.seq-li .main { min-width: 0; overflow-wrap: anywhere; }
.seq-all > summary { cursor: pointer; color: var(--link); font-size: 14.5px; margin: 6px 0; }
.seq-move { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; }
.seq-move p { margin: 0 0 6px; }
.seq-mode { margin: 8px 0; }
.seq-mode p { margin: 6px 0; }

/* Sequences → Rules: "If [who] → [sequence]", in order. */
.rule-list { list-style: none; margin: 10px 0 0; padding: 0; }
.rule-row { border-top: 1px solid var(--line-2); padding: 10px 0; }
.rule-row:first-child { border-top: 0; }
.rule-row.off .rule-text { opacity: 0.55; }
/* The ↑ ↓ Change buttons drop under the rule when there isn't room (phones),
   so the rule itself reads on one or two lines. */
.rule-line { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.rule-line .main { min-width: 0; flex: 1 1 230px; }
.rule-text { overflow-wrap: anywhere; }
.rule-line .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.rule-line .step-tools .icon-btn { font-size: 20px; padding: 2px 6px; }
.rule-editor { margin: 10px 0 0 36px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rule-editor > p.small { margin: 8px 0 4px; font-weight: 600; }
.danger-text { color: var(--bad-ink); }
.add-list { max-height: 420px; overflow-y: auto; border-top: 1px solid var(--line-2); }
.move-group { border-top: 1px solid var(--line-2); padding: 8px 0; }
.move-group > summary { cursor: pointer; overflow-wrap: anywhere; }
.move-names { margin: 6px 0 0; padding-left: 18px; font-size: 14px; max-height: 360px; overflow-y: auto; }
.move-names li { padding: 2px 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .rule-editor { margin-left: 0; }
}

/* The call table: a really good spreadsheet. A table on a laptop, a
   stack of small cards on a phone. */
.table-panel { padding: 0; overflow: hidden; }
.call-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.call-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.call-table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.call-row { cursor: pointer; }
.call-row:hover td, .call-row:focus-visible td { background: var(--surface-2); }
.call-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.call-row.open td { background: var(--nav-active); border-bottom-color: transparent; }
.call-row .c-name b { display: block; }
.call-row .c-name .sub { display: none; }
.call-row .c-name .pill { margin-top: 4px; }
.call-row .c-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.call-row .c-last { max-width: 240px; }
.call-row .c-last .when { white-space: nowrap; }
.call-row .c-last .note { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.call-row .c-next { white-space: nowrap; }
/* A long ask wraps to two lines instead of pushing the table off the panel (QA-19). */
.call-row .c-next .next-ask { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 240px; color: var(--gold); }
.open-row > td { padding: 0 8px 12px; background: var(--nav-active); border-bottom: 1px solid var(--line); }
.call-card.inline { margin: 0; }
.followups { margin: 0 0 10px; }
.later-line { margin: 10px 2px 0; }
@media (max-width: 760px) {
  .call-table thead { display: none; }
  .call-table, .call-table tbody, .call-table tr, .call-table td { display: block; width: 100%; }
  .call-table tr.call-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name list" "phone next" "last last" "seq seq"; gap: 3px 10px; padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
  .call-table tr.call-row td { padding: 0; border: 0; width: auto; }
  .call-row .c-name { grid-area: name; min-width: 0; }
  .call-row .c-name b { display: inline; }
  .call-row .c-name .pill { margin: 0 0 0 6px; }
  .call-row .c-name .sub { display: block; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .call-row .c-title, .call-row .c-company { display: none; }
  .call-row .c-list { grid-area: list; text-align: right; }
  .call-row .c-phone { grid-area: phone; }
  .call-row .c-next { grid-area: next; text-align: right; font-size: 13.5px; }
  .call-row .c-last { grid-area: last; max-width: none; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .call-row .c-last .note { display: inline; }
  .call-row .c-last .note::before { content: " · "; }
  /* The sequence chip: its own short line, so the name never gets squeezed (the Fold, 344px). */
  .call-row .c-seq { grid-area: seq; max-width: none; min-width: 0; }
  .call-row .c-seq .seq-chip { font-size: 12.5px; padding: 2px 8px; }
  .call-row.open { background: var(--nav-active); }
  .open-row > td { padding: 0 6px 10px; }
}
}

/* "Today: 34 dials · 6 conversations · 1 of 2 meetings" */
.scoreboard { margin: 4px 0 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Simple mode: advanced settings fold away until needed. */
details.advanced { margin: 0 0 12px; }
details.advanced > summary { cursor: pointer; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; list-style: none; }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::before { content: "▸ "; }
details.advanced[open] > summary::before { content: "▾ "; }
details.advanced[open] > summary { margin-bottom: 12px; }

/* "See who you've called" on the score line, and today's list */
.linkish { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.call-table.called-today tr.today-row { cursor: pointer; }
.call-table.called-today td { padding: 6px 8px; }

/* ---------- Day card: one day to screenshot and share (Joseph, 13 Oct) ---------- */
/* Menus and search hide while it's open, so the screenshot is the logo, the line and the numbers. */
body.share-mode .topnav, body.share-mode .bottomnav, body.share-mode .qs { display: none !important; }
body.share-mode main.shell { padding-bottom: 32px; }
/* The header as on the ThunderDragon page: logo left, Sign out right (Joseph, 13 Oct: "just change the log in to sign out"). */
.share-signout { display: none; }
body.share-mode .share-signout { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid #4a3f40; background: transparent; color: #fff; font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
body.share-mode .share-signout:hover { border-color: #6a5a5b; }
body.share-mode main.shell { background: radial-gradient(circle at 50% 0%, rgba(214, 31, 58, 0.22), transparent 480px) no-repeat; padding-left: 16px; padding-right: 16px; }
body.share-mode .demo-pill { display: none; }
body.share-mode .daycard .dc-title { margin-top: 40px; }
body.share-mode .daycard .dc-lead { font-size: 19px; }
.daycard { max-width: 560px; margin: 0 auto; }
.daycard .dc-title { font-size: clamp(40px, 11vw, 60px); line-height: 1.02; letter-spacing: 0.04em; margin: 18px 0 0; }
.daycard .dc-title .gold { background: var(--gold-shine); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.daycard .dc-lead { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.dc-card { margin-top: 24px; background: #1a1617; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 4px 12px; }
.dc-head h2 { font-size: 26px; margin: 0; }
.dc-head span { color: var(--muted); font-size: 15px; }
.dc-stat { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.dc-stat .k { display: block; color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.dc-stat b { display: block; font-size: 34px; line-height: 1.1; background: var(--gold-shine); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dc-stat .r { text-align: right; }
.dc-stat .r strong { display: block; font-size: 26px; line-height: 1.15; color: var(--ink); }
.dc-stat .r span { color: var(--muted); font-size: 13.5px; }
.dc-stat.win { border-color: var(--primary); background: linear-gradient(90deg, rgba(214, 31, 58, 0.28), var(--surface)); }
.dc-countries { display: grid; gap: 8px; }
.dc-country { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.dc-country p { margin: 0; }
.dc-country .n { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.dc-country .s { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
/* A country that booked stands out: crimson edge, a soft glow, a gold pill. */
.dc-country.hit { border: 1.5px solid var(--primary); background: linear-gradient(90deg, rgba(214, 31, 58, 0.30), var(--surface) 75%); box-shadow: 0 0 0 1px rgba(214, 31, 58, 0.25), 0 6px 22px rgba(214, 31, 58, 0.22); }
.dc-country .n em { font-style: normal; white-space: nowrap; font-size: 14.5px; font-weight: 700; color: #1a1206; background: var(--gold-shine); padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 14px rgba(242, 179, 61, 0.45); }
.dc-foot { margin: 12px 4px 2px; color: var(--muted); font-size: 14px; }
.dc-nav { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }

/* "What next?" after they answer (Joseph, 13 Oct): four plain choices. */
.what-next { display: grid; gap: 8px; }
.what-next-option { flex-direction: column; align-items: flex-start; text-align: left; border-radius: var(--radius-sm); padding: 12px 16px; gap: 2px; }
.what-next-option .hint { margin: 0; }

/* Gmail client secret: dots without being a password box (stops Chrome autofill) */
input.masked{-webkit-text-security:disc;text-security:disc}
/* Email signature paste box: looks like the email will (white, like Gmail) */
.sig-box{display:block;border:1px solid var(--input-line);border-radius:9px;padding:10px 11px;width:100%;min-height:90px;background:#fff;color:#222;font:14px/1.45 Arial,Helvetica,sans-serif;overflow-wrap:anywhere;overflow:auto;max-height:320px}
.sig-box img{max-width:100%;height:auto}
.sig-box a{color:#1a5fb4}
.sig-box:empty::before{content:"Paste your Gmail signature here";color:#888}
.sig-links{margin:6px 0 0;overflow-wrap:anywhere}
/* Narrow phones: the TEST AREA pill goes (the yellow banner already says it), and
   the search is a magnifier that opens across the bar when tapped (QA-06). */
.demo-pill { white-space: nowrap; }
@media (max-width: 420px) {
  .demo-pill { display: none; }
  .qs { flex: 0 0 44px; min-width: 44px; }
  .qs:not(:focus-within) .qs-input { padding: 0; color: transparent; background: #1c1819 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9aea3' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat center / 18px; }
  .qs:not(:focus-within) .qs-input::placeholder { color: transparent; }
  .topbar .brand { min-width: 0; font-size: min(25px, 6.2vw); }
  .topbar .brand-mark { width: min(32px, 8vw); height: min(32px, 8vw); }
}

/* Simple mode (Joseph, 14 Oct): one person at a time, Call / Prospects / Stats */
/* The market chips and "Full version" share a line; Messages and Meetings sit just above the card (QA-11). */
.focus-top { flex-wrap: nowrap; gap: 8px; align-items: center; }
.focus-top > :first-child { min-width: 0; }
.focus-top [data-focus="full"] { flex: none; }
.focus-links { margin: 4px 0 8px; }
.focus-bar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.focus-bar .market-chips { margin: 0; }
.group-pick { display: flex; align-items: center; gap: 10px; }
.group-pick select { flex: 1; min-height: 40px; }
.focus-count { margin: 10px 2px 6px; }
.focus-card .who { align-items: center; }
.focus-card h1 { font-size: clamp(26px, 7vw, 34px); line-height: 1.1; }
.focus-card .facts { margin-top: 10px; }
.focus-card .dial-row .btn.big { min-height: 58px; font-size: 19px; }
.focus-card .outcome { min-height: 50px; }
.focus-notes { max-height: 4.6em; overflow: hidden; }
.focus-foot { margin-top: 10px; }
.focus-switch { text-align: center; margin: 22px 0 6px; }
body.simple .followups { margin: 6px 0 0; }
body.simple .page-head { margin-bottom: 8px; }
body.simple .page-head h1 { font-size: 24px; }
body.simple .page-head .scoreboard { font-size: 14px; }
body.simple .focus-bar .market-chips > .muted:not(:first-child) { display: none; }
.focus-card textarea.inp { min-height: 44px; }
body.simple .page-head h1 { display: none; }
body.simple .page-head { margin: 0 0 6px; }
.focus-count { text-align: right; margin: 8px 4px 4px; }
body.simple .followups { margin: 12px 2px 0; }
/* Their email on the Call screen, editable there and then (14 Oct) */
.call-email { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.call-email .inp { flex: 1 1 200px; min-width: 0; min-height: 40px; }
.call-email [hidden] { display: none !important; }

/* Meetings (Joseph, 18 Oct): what happened and what's next on each one. */
.meeting-outcome { margin-top: 4px; font-size: 14.5px; overflow-wrap: anywhere; }
.meeting-outcome[data-outcome="no_show"] b { color: var(--warn-ink); }
.meeting-outcome[data-outcome="attended"] b { color: var(--great-ink); }
.meeting-help { margin: 0 0 8px; padding-left: 18px; }
.meeting-filters { margin-bottom: 10px; }
.meeting-filters .inp { max-width: 360px; }

/* Settings from anywhere (Joseph, 18 Oct): a gear in the top bar. */
.settings-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; color: var(--header-ink); text-decoration: none; font-size: 22px; line-height: 1; border: 1px solid #4a3f40; background: #1c1819; }
.settings-link:hover, .settings-link:focus { border-color: var(--gold); outline: none; }
body.share-mode .settings-link { display: none; }
/* The meeting's words keep their width on a phone; its buttons wrap below
   (".list-item .main" otherwise squeezes them to a few letters a line). */
.list-item.meeting-row .main { flex: 1 1 260px; }

/* By role and country: the name and count in full, the buttons under them on a phone. */
.list-item.audience-row { flex-wrap: wrap; }
.list-item.audience-row .main { flex: 1 1 220px; }
.list-item.audience-row .main b, .list-item.audience-row .meta { white-space: normal; overflow: visible; }

/* Sequences (Joseph, 18 Oct): the ones nobody is on fold away. */
.seq-unused { margin: 2px 0 10px; }
.seq-unused summary { cursor: pointer; padding: 4px 0; }

/* ---------- Posts (Joseph, 18 Oct): the call clips to every site ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ok-text { color: var(--great-ink); }
.warn-text { color: var(--warn-ink); }
.account-row { flex-wrap: wrap; gap: 8px; }
.account-row .meta { white-space: normal; }
.composer .form-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin: 0 0 16px; }
.composer .form-step > div { min-width: 0; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--nav-active); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.drop-zone { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 18px 12px; border: 2px dashed var(--input-line); border-radius: var(--radius-sm); background: var(--input-bg); cursor: pointer; margin: 8px 0; min-height: 90px; overflow-wrap: anywhere; }
.drop-zone.over { border-color: var(--gold); }
.post-thumb { display: block; height: 96px; width: auto; max-width: 160px; object-fit: cover; border-radius: var(--radius-sm); background: #000; margin: 6px 0; }
.post-thumb[hidden] { display: none; }
.post-preview { display: block; width: 100%; max-width: 220px; max-height: 360px; border-radius: var(--radius-sm); background: #000; margin: 6px 0 10px; }
.when-row { margin: 6px 0 2px; }
.when-row .inp { width: auto; min-width: 0; flex: 1 1 140px; max-width: 200px; }
.site-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0; background: var(--surface-2); }
.site-box.off { opacity: 0.8; }
.site-box .field { margin: 8px 0 6px; }
.site-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.site-head input { width: 20px; height: 20px; }
.small-select { width: auto; max-width: 100%; min-height: 34px; padding: 4px 8px; font-size: 14px; }
.field-label .count { font-weight: 400; float: right; }
.count.over { color: var(--bad-ink); }
.post-actions { margin-top: 6px; }
.posts-queue .market-chips { margin-bottom: 6px; }
/* One line per post (26 Oct): thumbnail, when and what, the title, one pill
   and at most one button. Tap it for the rest. */
.post-card { border-top: 1px solid var(--line-2); }
.post-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; list-style: none; }
.post-row::-webkit-details-marker { display: none; }
.post-row:hover { background: var(--surface-2); }
.post-row-thumb { flex: 0 0 auto; width: 44px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 18px; }
.post-row-thumb .post-thumb { height: 56px; width: 44px; max-width: none; margin: 0; object-fit: cover; }
.post-row-main { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; }
.post-row-when { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row-warn { display: block; color: var(--warn-ink); font-weight: 600; }
.post-row-warn[hidden] { display: none; }
.post-row-stats { display: block; }
.ig-test { margin: 8px 0 10px; }
.post-row-end { flex: 0 1 auto; min-width: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.post-row-end .pill { white-space: normal; max-width: 100%; }
.post-body { padding: 0 2px 14px 56px; }
.hand-line { display: grid; gap: 4px; margin: 6px 0; }
@media (max-width: 640px) {
  .post-row { flex-wrap: wrap; }
  .post-row-end { flex-basis: 100%; justify-content: flex-start; padding-left: 56px; }
  .post-row-title { white-space: normal; }
  .post-body { padding-left: 0; }
}
.site-lines { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.site-line { font-size: 15px; padding-left: 10px; border-left: 3px solid var(--line); overflow-wrap: anywhere; }
.site-line.ok { border-color: var(--great-ink); }
.site-line.warn { border-color: #d9a441; }
.site-line.bad { border-color: #c4553f; color: var(--bad-ink); }
.site-line.muted { color: var(--muted); }
.site-line .row.inline { display: inline-flex; margin-left: 6px; vertical-align: middle; }
.checkbox.tick { display: inline-flex; margin: 0; font-size: 14.5px; }
.tiktok-box { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
@media (max-width: 520px) {
  .composer .form-step { grid-template-columns: minmax(0, 1fr); }
  .step-no { display: none; }
}
.account-row .main { flex: 1 1 240px; }
.account-row .mark { font-weight: 700; }
/* Import → the calls HubSpot has that aren't here (step B, 18 Oct): the
   list scrolls sideways on a phone rather than squashing. */
.missing-calls { margin-top: 10px; }
.missing-calls summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.missing-calls table.data { min-width: 640px; }
.missing-calls td:nth-child(-n+3) { white-space: nowrap; }

/* Deals (HubSpot exit, step C): the client campaign picker sits small under the client's name. */
.deal-campaign { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; color: var(--muted); }
.deal-campaign select { width: auto; max-width: 260px; }

/* Deals (Hiro, #87): on a phone the name keeps its width; the pill and
   "Pick the person" go under it. */
.list-item.deal-row { flex-wrap: wrap; }
.list-item.deal-row .main { flex: 1 1 220px; }
.list-item.deal-row .main b, .list-item.deal-row .meta { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
/* The person picker's results: rows like the rest of the app, readable in dark. */
.deal-results { margin-top: 8px; }
.deal-results .list-item { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-2); color: var(--ink); font: inherit; cursor: pointer; padding: 10px 4px; display: block; }
.deal-results .list-item:first-child { border-top: 0; }
.deal-results .list-item:hover, .deal-results .list-item:focus { color: var(--gold); outline: none; }
.deal-results .list-item .muted { display: block; overflow-wrap: anywhere; }
/* Which list they're from, on the call card (21 Oct). */
.list-line { margin: 6px 0; }
.split-box[hidden], .field[hidden], .inp[hidden] { display: none !important; }
.split-box { border-left: 3px solid var(--line, #ddd); padding-left: 12px; margin: 6px 0 10px; }
.ab-compare td, .ab-compare th { padding: 4px 10px; text-align: right; }
.ab-compare td:first-child, .ab-compare th:first-child { text-align: left; }
.history-fold { margin: 10px 0; }
.history-fold > summary { cursor: pointer; font-weight: 600; }
.history-fold .timeline { box-shadow: none; border: 0; padding: 6px 0 0; }
.seq-row, .seq-row:hover { text-decoration: none; color: inherit; }
.seq-row .seq-steps-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seq-row .main { min-width: 0; }
.seq-row .main > b { overflow-wrap: anywhere; white-space: normal; }

/* Call opens on your lists (22 Oct): one big button per list. */
.list-picker { display: grid; gap: 10px; margin-bottom: 14px; }
.list-picker .lp-head { font-size: 20px; margin: 0 0 2px; }
.list-button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  text-align: left; width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer;
}
.list-button:hover, .list-button:focus-visible { border-color: var(--gold); }
.list-button .lb-name { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.list-button .lb-go { grid-row: 1 / span 2; grid-column: 2; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-button .lb-sub { grid-column: 1; font-size: 13px; color: var(--muted); }
.list-button.hot { border-color: var(--gold); }
.list-button.hot .lb-go { background: var(--gold); color: var(--accent-ink); }
.list-button.quiet .lb-go { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.list-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 0 0 10px; }
.list-head .list-title { font-size: 17px; overflow-wrap: anywhere; }

/* Emails (22 Oct) */
.auto-meter { display: grid; gap: 6px; margin-bottom: 12px; }
.auto-meter .meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.auto-meter .meter > div { height: 100%; background: var(--gold); }
.email-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.email-preview .email-body { white-space: pre-wrap; font: inherit; margin: 8px 0 0; }
.next-quick { display: grid; gap: 8px; margin: 4px 0 14px; }
.next-quick .btn { width: 100%; justify-content: center; }
.next-quick p { margin: 0; }
.next-quick .next-quiet { justify-self: start; font-size: 14.5px; }
.step-builder { display: grid; gap: 8px; margin: 6px 0; }
.sb-step { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; background: var(--surface); }
.sb-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sb-words { display: grid; gap: 6px; }
.sb-words summary { cursor: pointer; overflow-wrap: anywhere; }
.steps-section[hidden] { display: none !important; }
.step-picker { display: grid; gap: 8px; }

/* Lists (22 Oct) */
.lists-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .lists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.list-card { display: grid; gap: 8px; margin: 0; }
.list-card .lc-name { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.list-card .lc-steps { margin: 0; overflow-wrap: anywhere; }
.list-page-name { overflow-wrap: anywhere; }
.list-steps { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 4px; }
.pill.gold { color: var(--gold); border-color: var(--warn-line); }

/* The Publish press with a LinkedIn preview (23 Oct). */
.publish-confirm { display: grid; gap: 16px; }
@media (min-width: 760px) { .publish-confirm { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.li-preview { background: #fff; color: #1d1d1d; border: 1px solid #dcdcdc; border-radius: 10px; padding: 12px 0 0; font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; font-size: 14px; overflow: hidden; }
.li-head { display: flex; gap: 8px; align-items: center; padding: 0 14px 8px; }
.li-head .muted { color: #666; }
.li-avatar { width: 40px; height: 40px; border-radius: 50%; background: #c7d7e6; color: #1d1d1d; display: grid; place-items: center; font-weight: 700; flex: none; }
.li-avatar.page { border-radius: 6px; background: #1d1d1d; color: #f5c542; }
.li-text { white-space: pre-wrap; line-height: 1.43; padding: 0 14px 10px; overflow-wrap: anywhere; }
.li-more { background: none; border: 0; padding: 0; color: #666; font: inherit; cursor: pointer; }
.li-more:hover { color: #0a66c2; text-decoration: underline; }
.li-media img, .li-media video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.li-media-name { padding: 10px 14px; border-top: 1px solid #eee; color: #666; }

/* Insert field and Preview on email steps (23 Oct). */
.field-tools { gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.preview-list { display: grid; gap: 12px; }
.preview-body { white-space: pre-wrap; line-height: 1.5; }
mark.fill { background: color-mix(in srgb, var(--gold) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
mark.fill.warn { background: var(--warn-bg); color: var(--warn-ink); outline: 1px solid #d9a441; }
.preview-notes { margin: 8px 0 0; padding-left: 28px; }

/* One-click follow-ups on the call card (23 Oct): big, first. */
.top-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more-outcomes { grid-column: 1 / -1; }
.more-outcomes > summary { cursor: pointer; color: var(--muted); font-size: 14.5px; padding: 4px 0; list-style: none; }
.more-outcomes > summary::-webkit-details-marker { display: none; }
.more-outcomes[open] > summary { color: var(--ink); }
.more-outcomes .more-list { margin-top: 6px; }
.quick-outcomes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.outcome.quick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; font-size: 16px; min-height: 64px; }
.outcome.quick .hint { font-size: 12.5px; font-weight: 400; opacity: 0.8; }
@media (max-width: 480px) { .quick-outcomes { grid-template-columns: 1fr; } }

/* The cheat card on the call card (23 Oct): always in view. Under the outcomes
   on narrower screens (one line per answer where it fits); a side column from
   1200px, so the outcome buttons still start in view on a 1366×768 laptop (CC-2).
   Easy to read (Joseph, 25 Oct, dyslexia-friendly): left-aligned, a bigger
   font, line-height 1.5, room between blocks, lines kept short, no italics or
   capitals, bold only for what they say; off-white on the dark card. */
.cheat-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin: 14px 0 0; font-size: 15.5px; line-height: 1.5; text-align: left; color: var(--ink); background: var(--surface); font-style: normal; text-transform: none; letter-spacing: 0.01em; }
.cheat-card p { margin: 0; }
.cheat-head { color: var(--muted); }
.cheat-ask { margin: 0 0 12px; max-width: 60ch; }
.cheat-ask ol { margin: 2px 0 0; padding-left: 22px; }
.cheat-rows { display: grid; gap: 8px 22px; }
.cheat-row { max-width: 60ch; }
.cheat-say { font-weight: 700; }
.cheat-card p.cheat-row { margin: 0; }
.cheat-card .cheat-foot { margin-top: 12px; color: var(--muted); }
@media (min-width: 1200px) {
  .call-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
  .call-card:not(.focus-card) .call-body .outcomes { grid-template-columns: repeat(3, 1fr); }
}
.number-row .list-line { margin: 0 0 0 10px; }
.card-who { margin: 0 0 4px; font-size: 16px; }

/* The table and full call cards, two columns from 1100px (Joseph, 25 Oct:
   "make better use of the whole screen"). Narrower, the pieces stack as
   before: info, the outcomes, the rest, then the cheat card. */
.call-body.two-col { display: flex; flex-direction: column; }
.call-body.two-col > .call-left, .call-body.two-col > .call-right { display: contents; }
.call-body.two-col .call-info { order: 1; }
.call-body.two-col .call-log { order: 2; }
.call-body.two-col .call-rest { order: 3; }
.call-body.two-col .cheat-card { order: 4; }
/* Stacked, the 5 questions are the top of the cheat card. */
.call-body.two-col .cheat-questions { border-bottom: 0; border-radius: 10px 10px 0 0; padding-bottom: 0; }
.call-body.two-col .cheat-questions .cheat-ask { margin-bottom: 0; }
.call-body.two-col > .call-right > .cheat-card { margin-top: 0; border-top: 0; border-radius: 0 0 10px 10px; padding-top: 12px; }
.next-row { margin-top: 10px; align-items: center; }
@media (min-width: 1100px) {
  /* The Call screen gets the whole width of a laptop, not 1120px of it. */
  /* The whole screen (Joseph, 28 Oct: "on the pic you showed me this spanned the whole screen"). */
  main.shell:has(.call-table) { max-width: none; }
  .call-body.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 0 24px; align-items: start; }
  .call-body.two-col .call-info .company-line { margin-top: 10px; }
  /* The right column: what happened first (three buttons, More, Next step),
     then the cheat card, its blocks two across. */
  .call-body.two-col > .call-left, .call-body.two-col > .call-right { display: flex; flex-direction: column; }
  .call-body.two-col .call-info { order: 1; }
  .call-body.two-col .cheat-questions { order: 2; margin: 12px 0; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; }
  .call-body.two-col .call-rest { order: 3; }
  .call-body.two-col > .call-right > .cheat-card { border-top: 1px solid var(--line); border-radius: 10px; padding-top: 10px; }
  .call-body.two-col .call-log { order: -1; margin-bottom: 8px; }
  .call-body.two-col .cheat-card { margin: 0; font-size: 15px; padding: 10px 14px; }
  .call-body.two-col .cheat-ask { margin-bottom: 10px; }
  .call-body.two-col .cheat-ask ol { columns: 1; }
  /* Six one-liners (26 Oct): one column, a line each. */
  .call-body.two-col .cheat-rows { display: grid; gap: 8px; }
  .call-body.two-col .cheat-row { max-width: none; }
  /* The three outcome buttons in a row, More outcomes under them. */
  /* More outcomes ▾ is the fourth button in that row until it's opened. */
  .call-card .call-body.two-col .outcomes.top-outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .call-body.two-col .more-outcomes:not([open]) { grid-column: auto; }
  .call-body.two-col .more-outcomes > summary { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 6px 9px; font-size: 13px; line-height: 1.25; }
  .call-body.two-col .next-row { margin-top: 8px; }
  .call-body.two-col .cheat-card { line-height: 1.45; }
  /* The outcome buttons, compact: four across, one or two short lines. */
  .call-card .call-body.two-col .outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 0; }
  .call-body.two-col .outcome { padding: 6px 9px; font-size: 13px; min-height: 0; line-height: 1.25; }
  .call-body.two-col .outcome.quick { padding: 7px 10px; font-size: 14px; min-height: 0; }
  .call-body.two-col .outcome.quick .hint { font-size: 12px; }
  .call-body.two-col .quick-outcomes { gap: 6px; }
  .call-body.two-col .next-row .btn { padding: 6px 10px; font-size: 13.5px; }
}
/* A smaller laptop: three across, the questions in one column. */
@media (min-width: 1100px) and (max-width: 1299px) {
  .call-card .call-body.two-col .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* TikTok's posting rules on the form (26 Oct). */
.bad-text { color: var(--bad-ink); }
.block-hint { display: block; margin-left: 24px; }
.tiktok-disclose { margin: 4px 0 6px 24px; display: grid; gap: 4px; }
.warn-text { color: var(--warn-ink); }
.li-tag { color: #0a66c2; font-weight: 600; }
/* Edit opens under the post's row (27 Oct). */
.composer.inline { margin: 4px 0 16px; border: 1px solid var(--line); box-shadow: none; }
/* Open: the video beside each site's words, with Copy (27 Oct). */
.site-looks { display: grid; gap: 14px; margin: 8px 0 12px; }
.site-looks:empty { display: none; }
@media (min-width: 900px) { .site-looks:has(.site-looks-media) { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start; } }
.site-looks-media .post-preview { width: 100%; max-width: none; margin: 0; max-height: 460px; object-fit: contain; background: #000; border-radius: var(--radius-sm); }
.site-looks-words { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.site-look { display: grid; gap: 6px; min-width: 0; }
.site-look .row { gap: 6px; }
.look-part { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.look-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.posts-queue .post-card, #post-form { scroll-margin-top: 76px; }
/* Posts → LinkedIn tab (27 Oct): by day, a card per post – the time, the video and words as LinkedIn shows them. */
.posts-tabs { margin-bottom: 8px; }
.posts-tabs .chip { font-size: 15px; font-weight: 600; }
.li-day { margin: 14px 0 6px; }
.li-day-head { margin: 0 0 8px; font-size: 16px; }
.li-day-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); align-items: start; }
.li-card.post-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; display: grid; gap: 8px; background: var(--surface); }
.li-card-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.li-card-end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.li-when b { font-size: 17px; }
.li-card .li-preview .li-media video, .li-card .li-preview .li-media img { max-height: 360px; }
.li-checked { margin: 0; color: var(--great-ink); font-weight: 600; }
.li-earlier { margin-top: 18px; }
.li-earlier > summary { cursor: pointer; font-weight: 600; }
.li-day-cards > .composer { grid-column: 1 / -1; }
.li-card.post-card, .li-card-end { min-width: 0; }
.li-card-end .pill { white-space: normal; }
/* The call card in three columns (Joseph picked B, 28 Oct): who they are | the
   call | what to say back. Narrower than 1100px they stack in that order. */
.call-body.three-col { display: grid; gap: 14px; }
.call-body.three-col .call-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.call-body.three-col .call-col > * { margin: 0; }
.call-body.three-col .col-head { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.call-body.three-col .card-who-row { display: flex; gap: 12px; align-items: center; }
.call-body.three-col .card-who-row .card-who { margin: 0; font-size: 19px; }
.call-body.three-col .card-who-row .sub { margin: 2px 0 0; }
.call-body.three-col .call-log { display: grid; gap: 8px; }
.call-body.three-col .call-log .notes-block h3 { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.call-card .call-body.three-col .outcomes.top-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.call-body.three-col .outcome { min-height: 46px; font-size: 15px; }
.call-body.three-col .next-row .btn { padding: 5px 10px; font-size: 13px; }
.say-cards { display: grid; gap: 8px; }
.say-card { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); line-height: 1.4; }
.say-card .cheat-pivot { color: var(--accent); }
.say-more > summary, .call-body.three-col .history-fold > summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.say-more .cheat-ask { margin: 6px 0 0; }
.cheat-card .say-cards { margin-bottom: 8px; }
@media (min-width: 1100px) {
  .call-body.three-col { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 22px; align-items: start; }
}
/* Stacked (under 1100px): the call first – Call, the opener, the outcomes in
   view as the card opens (Hiro, CC-2); who they are next, then what to say. */
@media (max-width: 1099px) {
  .call-body.three-col .call-main-col { order: 1; }
  .call-body.three-col .call-who { order: 2; }
  .call-body.three-col .call-say { order: 3; }
}
/* Simple mode's card in the same three columns (29 Oct), on a wider page so
   none is squeezed. Stacked, its name comes first: who they are, then Call,
   then the rest of what you know, then what to say. */
@media (min-width: 1100px) {
  main.shell:has(.focus-card) { max-width: 1480px; }
}
.focus-card .call-who { display: grid; gap: 10px; align-content: start; }
.focus-card .who-head, .focus-card .who-more { display: grid; gap: 8px; align-content: start; min-width: 0; }
.focus-card .who-head > *, .focus-card .who-more > * { margin: 0; }
.focus-card .number-row { gap: 6px 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1099px) {
  .focus-card .call-body.three-col .call-who { display: contents; }
  .focus-card .call-body.three-col .who-head { order: 0; }
  .focus-card .call-body.three-col .call-main-col { order: 1; }
  .focus-card .call-body.three-col .who-more { order: 2; }
  .focus-card .call-body.three-col .call-say { order: 3; }
}
/* The LinkedIn strip and the sequence stage on the call card (28 Oct). */
.li-strip { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 6px; }
.li-strip .li-row { flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.li-switch { display: inline-flex; gap: 4px; }
.li-sent { color: var(--great-ink); }
.stage-chip { justify-self: start; }
.dc-mode { display: flex; justify-content: center; margin: 4px 0 8px; }
.card-steps { justify-content: space-between; align-items: center; gap: 8px; }
/* Where else a LinkedIn post goes, and the rest folded under More (29 Oct). */
.li-also { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.li-fold > summary { cursor: pointer; }
.li-fold-body { display: grid; gap: 6px; margin-top: 6px; }
.li-fold-body > * { margin: 0; }
.li-fold .post-body { padding: 0; }
.li-fold .site-looks, .li-fold .site-looks:has(.site-looks-media) { grid-template-columns: minmax(0, 1fr); }
.li-fold .site-looks-words { grid-template-columns: minmax(0, 1fr); }
.li-fold .site-looks-media .post-preview { max-height: 320px; }
/* A PDF post's pages (30 Oct). */
.pdf-view { display: grid; gap: 4px; }
.pdf-view iframe { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }

/* The browser phone's bar (Telnyx, 30 Oct): pinned to the foot while a call is on. */
.phone-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: var(--radius); background: var(--great-bg); color: var(--great-ink); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); font-weight: 600; }
.phone-bar[data-state="ringing"] { background: var(--warn-bg); color: var(--warn-ink); }
.phone-bar[data-state="ended"] { background: var(--surface); color: var(--muted); }
.phone-bar .phone-words { font-variant-numeric: tabular-nums; }
.phone-bar .btn.danger { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* The Next button (Joseph, 6 Nov): log "No answer" and move on, in one tap. */
.outcome.next { border-color: var(--ink); font-weight: 600; }
/* LinkedIn's numbers on a posted card, and What's working (6 Nov). */
.li-stats { margin: 0; }
.li-ranking { display: grid; gap: 10px; }
.li-rank td.li-rank-opener { min-width: 220px; }
.li-rank td.li-rank-opener a { display: block; color: inherit; }
.li-rank td.li-rank-opener .pill { margin-top: 4px; display: inline-block; }
/* A video that loads nothing until play is pressed (8 Nov: Supabase bandwidth). */
.lazy-video { position: relative; }
.lazy-video video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.lazy-play { position: relative; display: grid; place-items: center; width: 100%; min-height: 180px; max-height: 420px; padding: 0; border: 0; border-radius: inherit; background: #111; color: #fff; cursor: pointer; overflow: hidden; }
.lazy-play:disabled { cursor: progress; }
.lazy-cover { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.lazy-card { display: grid; gap: 4px; padding: 24px 16px 64px; text-align: center; color: #eee; word-break: break-word; }
.lazy-card .muted { color: #aaa; }
.lazy-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; font-size: 22px; line-height: 1; padding-left: 4px; }
.lazy-card + .lazy-play-icon { top: auto; bottom: 14px; transform: translateX(-50%); }
.lazy-play:hover .lazy-play-icon, .lazy-play:focus-visible .lazy-play-icon { background: rgba(0, 0, 0, 0.8); }
.lazy-video.post-preview { padding: 0; overflow: hidden; }
/* "Call again" on the card auto-dial is on (10 Nov): same person, nothing logged. */
.btn.big.call-again { background: var(--accent, #db4f1e); }

/* ---------- The phone: calls in, keypads, Recent (12 Nov 2026) ---------- */
.phone-bar[data-state="incoming"] { background: var(--warn-bg); color: var(--warn-ink); animation: phone-pulse 1.2s ease-in-out infinite; }
.phone-bar .btn.good { background: var(--great-ink); border-color: var(--great-ink); color: var(--bg); }
@keyframes phone-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 194, 51, 0.25), 0 8px 24px rgba(0, 0, 0, 0.45); } }
@media (prefers-reduced-motion: reduce) { .phone-bar[data-state="incoming"] { animation: none; } }
.phone-keypad { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; justify-content: center; padding-top: 6px; }
.phone-keypad[hidden] { display: none; }
/* The call bar only shows during a call: [hidden] has to win over display:flex (13 Nov, empty green bar). */
.phone-bar[hidden] { display: none; }
.phone-key, .dial-key { font-size: 18px; font-variant-numeric: tabular-nums; }
.phone-panel { margin: 0 0 12px; }
.phone-panel:empty { display: none; }
.phone-panel .notice { margin-bottom: 8px; }
.phone-tools { gap: 8px; }
.recent-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.recent-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.recent-row:first-child { border-top: 0; }
.recent-row.unseen { background: var(--warn-bg); }
.recent-icon { width: 20px; text-align: center; font-weight: 700; }
.recent-icon.bad, .bad-ink { color: var(--bad-ink); }
.recent-main { flex: 1 1 240px; min-width: 0; }
.recent-end { display: flex; gap: 6px; align-items: center; }
.recent-end audio { height: 32px; max-width: 240px; }
.dial-pad { display: grid; gap: 10px; }
.dial-pad input { font-size: 20px; letter-spacing: 0.04em; }
.dial-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 280px; }
.dial-key { padding: 12px 0; }
.greeting-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 600px) {
  .phone-bar { left: 8px; right: 8px; transform: none; max-width: none; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .recent-end { width: 100%; justify-content: flex-end; }
}

/* ---------- Texts (12 Nov 2026) ---------- */
.text-thread { display: grid; gap: 10px; }
.text-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.text-bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.text-bubble.in { justify-self: start; border-bottom-left-radius: 4px; }
.text-bubble.out { justify-self: end; background: var(--great-bg); color: var(--great-ink); border-bottom-right-radius: 4px; }
.text-bubble.out[data-status="failed"] { background: var(--bad-bg, var(--surface-2)); color: var(--bad-ink); }
.text-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.text-compose { display: grid; gap: 6px; }
.text-compose textarea { width: 100%; }
.posts-zone { display: flex; align-items: center; gap: 8px; }
.posts-zone .market-chips { margin: 0; }
.li-day-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ok-all-list { margin: 8px 0 14px; padding-left: 18px; max-height: 40vh; overflow: auto; }
.ok-all-list li { margin: 4px 0; }
/* Every outcome in sight (Joseph, 17 Nov): the rest under the top three, no fold. */
.top-outcomes > .more-list { grid-column: 1 / -1; margin-top: 2px; }
/* A call on (17 Nov): room under the page for the call bar, and messages above it. */
body.phone-on { padding-bottom: calc(var(--phone-bar-h, 0px) + 24px); }
body.phone-on .toast { bottom: calc(var(--phone-bar-h, 0px) + 28px + env(safe-area-inset-bottom, 0px)); }

/* "From +81…" on the call bar (20 Nov). */
.phone-from { opacity: 0.8; font-weight: 400; }
/* The caller card on a call in (20 Nov): who it is, or a search to attach the call. */
.phone-bar .phone-caller { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 6px; border-top: 1px solid var(--line); font-weight: 400; }
.phone-bar .phone-caller .inp { flex: 1 1 260px; min-width: 0; }
.phone-bar .phone-caller-results { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }

/* A client list's focus view (Joseph, 23 Nov): only that list at the top of Calls. Missed calls and Telnyx credit stay. */
.client-focus [data-focus-hide], .client-focus [data-score="auto"], .client-focus [data-score="clock"], .client-focus .followups,
.client-focus [data-dial-pad], .client-focus [data-recent-toggle], .client-focus .recent-row, .client-focus [data-texts-notice] { display: none !important; }
.client-focus [data-calls-notice] { display: none !important; }
.pitch-card { margin: 10px 0 0; padding: 12px 16px; max-width: 760px; }
.pitch-card ul { margin: 6px 0 0; padding-left: 20px; }
.pitch-card li { margin: 2px 0; line-height: 1.45; }

/* A client's call script, top of the right-hand panel (23 Nov). */
.client-script { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); padding: 8px 12px; margin-bottom: 10px; }
.client-script > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.client-script .script-sec { margin-top: 8px; }
.client-script .script-head { margin: 0 0 2px; font-weight: 700; }
.client-script ul { margin: 0; padding-left: 16px; display: grid; gap: 2px; line-height: 1.4; }
.client-script .script-opt { list-style: circle; color: var(--muted); }
.client-script .script-opt.fits { color: inherit; background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 6px; padding: 2px 6px; margin-left: -6px; list-style: none; }

/* The lists on Call, one tap to switch (25 Nov). */
.list-chips { flex-wrap: wrap; }
.list-chips .chip { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
