/* UniLife Closer Portal */
:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --panel-2: #f7f8fb;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e8ef;
  --brand: #1d3fbf;
  --brand-2: #2f55e4;
  --brand-soft: #e9eefe;
  --side: #0c1633;
  --side-ink: #c9d2ea;
  --green: #0f8a5f;
  --green-soft: #e2f6ee;
  --amber: #a55c00;
  --amber-soft: #fdf0d9;
  --red: #c42e2a;
  --red-soft: #fce8e7;
  --violet: #6d3fd1;
  --violet-soft: #efe8fd;
  --gray-soft: #eef0f4;
  --gold: #c99a0e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e14; --panel: #141821; --panel-2: #1a1f2a; --ink: #eef1f6; --ink-2: #cfd5e0; --muted: #98a1b2; --line: #262c38;
    --brand: #5b7cf0; --brand-2: #7b96f5; --brand-soft: #1b2445; --side: #080b12; --side-ink: #aab4ca;
    --green: #3ccf97; --green-soft: #0f2d23; --amber: #f1b457; --amber-soft: #33260f;
    --red: #ff6d66; --red-soft: #3a1717; --violet: #a98af5; --violet-soft: #251b3d; --gray-soft: #222733;
    --gold: #e6bd3c; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h3 { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: 10px; padding: 9px 15px; cursor: pointer; background: var(--gray-soft); color: var(--ink); transition: filter .12s, transform .06s, background .12s; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(.96); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: var(--gray-soft); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-accept { background: var(--green); color: #fff; }
.btn-lg { padding: 12px 20px; font-size: 16px; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 650; font-size: 13px; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 15px; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); width: 100%; }
textarea { resize: vertical; }
.error { color: var(--red); margin: 0; min-height: 1.2em; font-size: 14px; }
.warn { background: var(--amber-soft); color: var(--amber); padding: 10px 12px; border-radius: 10px; margin: 12px 0 0; font-size: 14px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }

/* ---------- login ---------- */
.login-screen { min-height: 100%; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), var(--bg); }
.login-card { width: min(390px, 100%); background: var(--panel); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 14px; border: 1px solid var(--line); }
.login-lede { margin: -6px 0 6px; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.brand b { font-weight: 800; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 16px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; gap: 18px; }
.side-brand { color: #fff; padding: 0 8px; font-weight: 800; }
.nav { display: grid; gap: 2px; }
.nav button, .tabbar button { display: flex; align-items: center; gap: 12px; width: 100%; font: inherit; font-weight: 600; font-size: 14px; color: var(--side-ink); background: transparent; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; position: relative; }
.nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav button[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.nav button[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand-2); }
.nav .dot, .tabbar .dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.nav .dot:empty, .tabbar .dot:empty { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-foot .me { color: #fff; font-weight: 650; }
.side-foot .btn-ghost { color: var(--side-ink); border-color: rgba(255, 255, 255, .16); justify-self: start; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 800; margin-right: auto; }
.status-group { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.status-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 650; font-size: 13px; border: 0; border-radius: 9px; padding: 7px 12px; background: transparent; color: var(--muted); cursor: pointer; }
.status-btn i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.status-btn[aria-pressed="true"][data-status="available"] { background: var(--green); color: #fff; }
.status-btn[aria-pressed="true"][data-status="away"] { background: var(--amber); color: #fff; }
.status-btn[aria-pressed="true"][data-status="offline"] { background: var(--ink-2); color: var(--panel); }
.status-btn[aria-pressed="true"] i { opacity: 1; background: #fff; }
.status-btn:disabled { cursor: not-allowed; opacity: .5; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.conn.ok i { background: var(--green); }
.conn.bad i { background: var(--red); }
.banner { position: relative; margin: 12px 24px 0; padding: 11px 40px 11px 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 600; font-size: 14px; }
.banner.bad { background: var(--red-soft); color: var(--red); }
.banner.good { background: var(--green-soft); color: var(--green); }
.banner.clickable { cursor: pointer; }
.banner.clickable:hover { filter: brightness(0.96); }
.banner-go { text-decoration: underline; margin-left: 6px; white-space: nowrap; }
.page { padding: 18px 24px 32px; display: grid; gap: 16px; align-content: start; max-width: 1360px; width: 100%; }
.tabbar { display: none; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head.pad { padding: 16px 18px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 999px; background: var(--gray-soft); color: var(--ink-2); }
.count { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.count:empty { display: none; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--gray-soft); color: var(--ink-2); white-space: nowrap; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.blue { background: var(--brand-soft); color: var(--brand); }
.chip.violet { background: var(--violet-soft); color: var(--violet); }

/* ---------- live ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.live-main { display: grid; gap: 16px; }
.live-side { display: grid; gap: 16px; }
.idle { text-align: center; padding: 56px 20px; }
.idle h2 { font-size: 24px; margin-bottom: 6px; }
.idle p { margin: 0; }
.pulse { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; background: var(--gray-soft); display: grid; place-items: center; }
.pulse span { width: 26px; height: 26px; border-radius: 50%; background: var(--muted); opacity: .5; }
.idle.available .pulse { background: var(--green-soft); }
.idle.available .pulse span { background: var(--green); opacity: 1; animation: breathe 2.4s ease-in-out infinite; }
.idle.away .pulse { background: var(--amber-soft); }
.idle.away .pulse span { background: var(--amber); opacity: 1; }
@keyframes breathe { 50% { transform: scale(.55); opacity: .5; } }

.call.ringing { border-color: var(--green); animation: ringpulse 1.1s ease-in-out infinite; }
@keyframes ringpulse { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); } 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--green) 6%, transparent); } }
.call.ringing .badge { background: var(--green); color: #fff; }
.call.live .badge { background: var(--green-soft); color: var(--green); }
.call.wrapping .badge { background: var(--amber-soft); color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .call.ringing, .pulse span { animation: none !important; } }
.call-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.client-name { font-size: 30px; font-weight: 800; letter-spacing: -.015em; margin-top: 8px; }
.call-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.timer { font-weight: 800; font-size: 18px; }
.facts { display: grid; grid-template-columns: 1.6fr 1.1fr .7fr .9fr .7fr 1fr; gap: 8px; margin: 18px 0 0; }
.facts div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; min-width: 0; }
.facts dt { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 3px 0 0; font-size: 16px; font-weight: 750; overflow-wrap: break-word; }
.notes-box { margin-top: 12px; padding: 12px 14px; background: var(--panel-2); border-radius: 11px; border: 1px solid var(--line); }
.notes-box p { margin: 4px 0 0; }
.objection { color: var(--amber); font-weight: 600; }
.objection:empty { display: none; }

.steps { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.step-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.step-tab { display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; padding: 12px 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.step-tab .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gray-soft); font-size: 12px; }
.step-tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); background: var(--panel); }
.step-tab[aria-selected="true"] .n { background: var(--brand); color: #fff; }
.step-tab em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.step-body { padding: 16px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist li label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-weight: 400; color: var(--ink); }
.checklist li label:hover { background: var(--panel-2); }
.checklist input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.checklist b { font-weight: 700; display: block; }
.checklist small { color: var(--muted); font-style: italic; }
.checklist li.done label { background: var(--green-soft); border-color: transparent; }
.script { display: grid; gap: 12px; }
.script .beat { border-left: 3px solid var(--brand); padding: 4px 0 4px 12px; }
.script .beat h4 { margin: 0 0 3px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.script .beat p { margin: 0; font-size: 15px; }
.script .beat .say { font-style: italic; }
.script .points { margin: 4px 0 0; padding-left: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span2 { grid-column: 1 / -1; }

.wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.wrap-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wrap-head h3 { font-size: 16px; color: var(--ink); }
.autofill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.autofill.loading::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.outcome-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outcome-list button { font: inherit; font-weight: 650; font-size: 14px; padding: 12px 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; position: relative; }
.outcome-list button:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.outcome-list button[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.outcome-list button.win[aria-checked="true"] { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.outcome-list button .suggest { position: absolute; top: -8px; right: 8px; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--violet); color: #fff; }
/* Oct 8 (Istvan): each wrap-up outcome has its own light colour so she finds it at a glance. Wins green (App submitted
   strongest, Closing booked a teal green, App in progress a lighter lime green), Callback booked light blue, No answer grey,
   Not qualified / Not interested a very light red. Picked = the same colour, stronger. */
.outcome-list button[data-outcome] { --oc: transparent; --ocb: var(--line); background: var(--oc); border-color: var(--ocb); }
.outcome-list button[data-outcome="App submitted"] { --oc: rgba(22, 163, 74, .16); --ocb: rgba(22, 163, 74, .45); }
.outcome-list button[data-outcome="Closing booked"] { --oc: rgba(13, 148, 136, .13); --ocb: rgba(13, 148, 136, .42); }
.outcome-list button[data-outcome="App in progress"] { --oc: rgba(101, 163, 13, .09); --ocb: rgba(101, 163, 13, .32); }
.outcome-list button[data-outcome="Callback booked"] { --oc: rgba(59, 130, 246, .09); --ocb: rgba(59, 130, 246, .32); }
.outcome-list button[data-outcome="No answer"] { --oc: rgba(100, 116, 139, .12); --ocb: rgba(100, 116, 139, .35); }
.outcome-list button[data-outcome="Not qualified"], .outcome-list button[data-outcome="Not interested"] { --oc: rgba(239, 68, 68, .06); --ocb: rgba(239, 68, 68, .25); }
.outcome-list button[data-outcome]:hover { filter: brightness(.97); }
.outcome-list button[data-outcome][aria-checked="true"] { background: color-mix(in srgb, var(--ocb) 55%, transparent); border-color: var(--ocb); box-shadow: inset 0 0 0 2px var(--ocb); }
.outcome-list button[data-outcome="Dropped / no connect"][aria-checked="true"], .outcome-list button[data-outcome="Wrong number"][aria-checked="true"] { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cond { padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
#f-app { background: var(--green-soft); border-color: transparent; }
.quick-times { display: flex; flex-wrap: wrap; gap: 6px; align-content: end; }
.quick-times button { font: inherit; font-size: 13px; font-weight: 650; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.filled { box-shadow: 0 0 0 2px color-mix(in srgb, var(--violet) 35%, transparent); }
.wrap-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.kpi b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 650; }
.mini-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; display: grid; gap: 4px; }
.mini-list .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mini-list strong { font-size: 14px; }
.mini-list .btns { display: flex; gap: 6px; margin-top: 4px; }
.mini-list .empty { border-style: dashed; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- calendar ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { border: 1px solid var(--line); border-radius: 11px; padding: 10px; text-align: center; background: var(--panel-2); cursor: pointer; font: inherit; color: var(--ink); }
.day b { display: block; font-size: 20px; font-weight: 800; }
.day span { font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.day em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); min-height: 1.2em; }
.day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.agenda { display: grid; gap: 16px; }
.agenda h2 { font-size: 15px; font-weight: 800; margin: 4px 2px 8px; }
.agenda-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.agenda-item + .agenda-item { margin-top: 8px; }
.agenda-item .when { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.agenda-item .who { font-weight: 750; }
.agenda-item .meta { font-size: 13px; color: var(--muted); }
.agenda-item.overdue { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.agenda-item.soon { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 750; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.me td { background: var(--brand-soft); }
.table .rank { font-weight: 800; width: 48px; color: var(--muted); }
.table .strong { font-weight: 750; }

/* ---------- pipeline ---------- */
.status-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--muted); }
.status-card b { display: block; font-size: 26px; font-weight: 800; }
.status-card span { font-size: 13px; color: var(--muted); font-weight: 650; }
.status-card small { display: block; margin-top: 2px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.status-card.Submitted { border-top-color: var(--brand); }
.status-card.Issued { border-top-color: var(--amber); }
.status-card.Paid { border-top-color: var(--green); }
.status-card.Lost { border-top-color: var(--red); }

/* ---------- leaderboard ---------- */
.lb-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-weight: 650; font-size: 13px; border: 0; border-radius: 8px; padding: 7px 12px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.podium .place { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; box-shadow: var(--shadow); }
.podium .p1 { padding-top: 28px; border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 12%, var(--panel)), var(--panel)); }
.podium .medal { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 8px; }
.podium .p1 .medal { background: var(--gold); }
.podium .p2 .medal { background: #8e98a8; }
.podium .p3 .medal { background: #b8733f; }
.podium .nm { font-weight: 800; font-size: 16px; }
.podium .ap { font-size: 22px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.podium .sub { font-size: 13px; color: var(--muted); }
.podium .me-tag { margin-top: 6px; }

/* ---------- manager ---------- */
.floor-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.floor-kpis .kpi { background: var(--panel); box-shadow: var(--shadow); }
.search { max-width: 320px; }
.log-list { display: grid; gap: 8px; }
.log-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.log-row { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; }
.log-row .t { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.log-row .who b { display: block; }
.log-row .who span { font-size: 13px; color: var(--muted); }
.log-detail { padding: 0 14px 14px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.log-detail .full { grid-column: 1 / -1; }
.log-detail .box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.log-detail .box p { margin: 4px 0 0; white-space: pre-wrap; font-size: 14px; }
.log-detail audio { width: 100%; }
.transcript { max-height: 320px; overflow: auto; font-size: 14px; display: grid; gap: 6px; }
.transcript .line { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.transcript .line b { font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.transcript .line.client b { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  .facts { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 1150px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .floor-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--side); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 2px; justify-content: center; text-align: center; }
  .tabbar button[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
  .tabbar .dot { position: absolute; top: 2px; right: 18%; margin: 0; }
  .main { padding-bottom: 76px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .page { padding: 14px 16px 24px; }
  .banner { margin: 10px 16px 0; }
  .status-cards { grid-template-columns: 1fr 1fr; }
  .podium { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr auto; }
  .log-row .hide-sm { display: none; }
  .log-detail { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(7, minmax(40px, 1fr)); overflow-x: auto; }
  .day { padding: 8px 4px; }
  .day b { font-size: 16px; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:first-child { grid-column: 1 / -1; }
  .outcome-list { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .client-name { font-size: 26px; }
  .agenda-item { grid-template-columns: 70px minmax(0, 1fr); }
  .agenda-item .actions { grid-column: 1 / -1; }
  .floor-kpis { grid-template-columns: 1fr 1fr; }
  .step-tab { font-size: 12px; flex-direction: column; gap: 4px; }
  .page-title { font-size: 18px; width: 100%; }
}

/* =====================================================================
   v2: pay, clients board, quote, carriers, cases, money, payroll
   ===================================================================== */
.row.between { justify-content: space-between; }
.row.flexwrap { flex-wrap: wrap; }
a.btn { text-decoration: none; }
.strong { font-weight: 750; }
label.inline { display: inline-flex; align-items: center; gap: 8px; }
label.inline select, label.inline input { width: auto; }
label.inline.grow { flex: 1; }
label.inline.grow input { flex: 1; width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.icon-btn.sm { width: 26px; height: 26px; border-radius: 7px; vertical-align: middle; }
.icon-btn.sm svg.ic { width: 14px; height: 14px; }
.icon-btn.ok { color: var(--green); border-color: var(--green); }
.chip.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }

/* pay strip on the live page */
.pay-strip { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: linear-gradient(90deg, var(--brand-soft), var(--panel)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); border-radius: var(--radius); padding: 10px 16px; }
.pay-strip .ps-item { display: grid; line-height: 1.2; }
.pay-strip .ps-item small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pay-strip .ps-item b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pay-strip .ps-next { margin-left: auto; font-weight: 650; font-size: 14px; background: var(--green-soft); color: var(--green); padding: 7px 12px; border-radius: 999px; }
.pay-strip .ps-next b { font-size: 16px; }
.pay-strip .ps-next.top { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }

/* my pay */
.pay-grid { display: grid; gap: 16px; }
.pay-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.pay-hero .big { font-size: 44px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.paybar { position: relative; height: 14px; background: var(--gray-soft); border-radius: 999px; margin: 16px 0 6px; overflow: visible; }
.paybar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--green)); }
.paybar .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); opacity: .35; border-radius: 2px; }
.goodnote { margin: 10px 0 0; color: var(--green); font-weight: 650; }
.badnote { margin: 10px 0 0; color: var(--red); font-weight: 650; }
.pay-next .big2 { font-size: 20px; margin-top: 8px; }
.pay-next .gain { font-size: 30px; font-weight: 850; color: var(--green); font-variant-numeric: tabular-nums; }
.pace { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pace div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; }
.pace b { display: block; font-size: 20px; font-weight: 800; }
.pace span { font-size: 12px; color: var(--muted); font-weight: 650; }
.pay-apps { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 16px; align-items: start; }
.kpi-card .big { font-size: 40px; font-weight: 850; }
.pay-apps .mini-list li { gap: 2px; }
.pay-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.ladder { display: grid; gap: 6px; margin-top: 10px; }
.rung { display: grid; grid-template-columns: 1.1fr 1fr .6fr 1.3fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.rung.current { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.quality .qbar { position: relative; height: 10px; border-radius: 999px; background: var(--gray-soft); margin: 12px 0 8px; }
.quality .qbar .fill { height: 100%; border-radius: 999px; background: var(--green); }
.quality.amber .qbar .fill { background: var(--amber); }
.quality.red .qbar .fill { background: var(--red); }
.quality .qbar .line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--red); }
.quality p { margin: 6px 0 0; }
.kpi.warnk b { color: var(--red); }

/* quote */
.step-tabs { grid-template-columns: repeat(4, 1fr); }
.quote-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.quote-form .span2 { grid-column: span 2; }
.quote-results { display: grid; gap: 6px; margin-top: 12px; }
.qrow { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.qrow.near { border-color: var(--brand); background: var(--brand-soft); }
.qrow .cov { font-weight: 750; }
.picked { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); margin-bottom: 10px; }
.eapp-row { margin-top: 14px; flex-wrap: wrap; }
.checks { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 16px; flex-wrap: wrap; margin: 0; background: var(--panel); }
.checks legend { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
.checks label, label.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; }
.checks input, label.check input { width: 18px; height: 18px; accent-color: var(--green); }

/* drawers */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(8, 11, 18, .45); display: flex; justify-content: flex-end; }
.drawer-card { width: min(560px, 100%); height: 100%; overflow: auto; background: var(--panel); padding: 20px; box-shadow: -8px 0 30px rgba(0, 0, 0, .18); display: grid; align-content: start; gap: 14px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { font-size: 20px; font-weight: 800; }
.carrier-tiles { display: grid; gap: 10px; }
.carrier-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.carrier-tile .wn { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.facts.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.facts.compact dd { font-size: 14px; }
.tl-h { margin-top: 4px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { position: relative; display: grid; gap: 2px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.timeline li.transfer::before { background: var(--brand); }
.timeline li.callback::before { background: var(--amber); }
.timeline li.case::before { background: var(--violet); }
.timeline .when { font-size: 12px; color: var(--muted); font-weight: 650; }
.drawer-actions { margin-top: 6px; }

/* call bar (case manager calls) */
.callbar { display: flex; align-items: center; gap: 12px; margin: 12px 24px 0; padding: 10px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 650; }
.callbar .dotlive { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: breathe 1.6s infinite; }
.callbar b { margin-right: auto; }

/* my clients board */
.board { display: grid; gap: 12px; padding-bottom: 6px; }
.board-group { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); border-bottom: 2px solid var(--brand); padding-bottom: 4px; }
.board-group.case { color: var(--violet); border-bottom: 0; padding: 0; }
.board-mine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.board-mine .col { min-height: 58vh; }
.board-mine .col-follow .ccard { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.board-mine .col-follow .ccard .nm, .board-mine .col-follow .ccard .muted { grid-column: 1; }
.board-mine .col-follow .ccard .row { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
.board-case { border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--violet-soft) 30%, var(--panel)); }
.board-case > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.board-case > summary::-webkit-details-marker { display: none; }
.board-case > summary::before { content: '▸'; color: var(--violet); font-size: 12px; transition: transform .15s; }
.board-case[open] > summary::before { transform: rotate(90deg); }
.board-case .case-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.board-case .case-hint { margin-left: auto; }
.board-case[open] .case-hint { visibility: hidden; }
.board-case-cols { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; padding: 0 12px 12px; overflow-x: auto; }
@media (max-width: 900px) { .board-mine { grid-template-columns: 1fr; } .board-mine .col { min-height: 0; } .board-case-cols { grid-template-columns: repeat(5, minmax(160px, 1fr)); } }
.col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; min-height: 180px; display: flex; flex-direction: column; }
.col.case { background: color-mix(in srgb, var(--violet-soft) 45%, var(--panel-2)); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; }
.col-head .n { font-size: 12px; font-weight: 800; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.col-body { display: grid; gap: 8px; padding: 0 8px 8px; align-content: start; }
.col-empty { color: var(--muted); text-align: center; font-size: 13px; padding: 10px 0; }
.ccard { display: grid; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; box-shadow: var(--shadow); }
.ccard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.ccard .nm { font-weight: 750; font-size: 14px; }
.ccard .row { gap: 6px; }
.ccard .row:empty { display: none; }
.ccard .chip { white-space: normal; }
.ccard.paid { border-left: 3px solid var(--green); }
.ccard.closed { opacity: .7; }

/* cases */
.case-row { grid-template-columns: 74px minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr) auto; }
.wait { display: grid; line-height: 1.1; }
.wait b { font-size: 18px; color: var(--ink); }
.wait span { font-size: 11px; }
.wait.slow b { color: var(--amber); }
.wait.late b { color: var(--red); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--green); }
.case-detail { padding: 0 14px 14px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-grid .box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; align-content: start; }
.case-grid .full { grid-column: 1 / -1; }
.seg.flexwrap { flex-wrap: wrap; }
.checks-row { display: flex; gap: 16px; flex-wrap: wrap; }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reqs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.reqs li.done { background: var(--green-soft); border-color: transparent; }
.reqs li.done label { text-decoration: line-through; color: var(--muted); }
.case-notes { white-space: pre-wrap; font: inherit; font-size: 13px; margin: 0; max-height: 180px; overflow: auto; color: var(--ink-2); }

/* money */
.money-grid { display: grid; gap: 16px; }
.ms-wrap { display: grid; gap: 10px; }
.ms-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .ms-two { grid-template-columns: 1fr; } }
.ms-card { display: grid; gap: 12px; align-content: start; }
.ms-lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ms-big { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ms-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--gray-soft); gap: 2px; }
.ms-stack i { display: block; height: 100%; }
.ms-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms-lines li { display: grid; grid-template-columns: 12px 1fr auto 44px; gap: 10px; align-items: center; }
.ms-lines li b { font-variant-numeric: tabular-nums; }
.ms-lines li .small { text-align: right; }
.ms-dot { width: 10px; height: 10px; border-radius: 3px; }
.c1 { background: #2f6f5e; } .c2 { background: #6aa88f; } .c3 { background: #c99a0e; } .c4 { background: #7b8fa6; } .c5 { background: #b9c3b8; }
.ms-prow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border-left: 4px solid var(--green); }
.ms-prow.neg { border-left-color: var(--red); }
.ms-prow .ms-pval { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; align-self: center; }
.ms-prow.neg .ms-pval { color: var(--red); } .ms-prow.pos .ms-pval { color: var(--green); }
.ms-math { grid-column: 1 / -1; }
.ms-cmps { display: grid; gap: 6px; margin-top: 2px; }
.ms-cmp { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; font-size: 13px; }
.ms-cmp b { text-align: right; font-variant-numeric: tabular-nums; }
.ms-cmp .track { height: 10px; background: var(--gray-soft); border-radius: 5px; overflow: hidden; }
.ms-cmp .track i { display: block; height: 100%; border-radius: 5px; }
.ms-cmp i.exp { background: var(--red); } .ms-cmp i.est { background: var(--amber); } .ms-cmp i.dep { background: var(--green); }
.ms-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-better { font-size: 15px; padding: 10px 18px; }
.money-details-h { margin: 12px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.money-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.kpi.hero { background: var(--brand); border-color: var(--brand); }
.kpi.hero b, .kpi.hero span { color: #fff; }
.kpi.neg b, .negt { color: var(--red); }
.kpi.pos b, .post { color: var(--green); }
.hbars { display: grid; gap: 10px; margin-top: 12px; }
.hbar { display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 10px; align-items: center; font-size: 14px; }
.track { height: 10px; background: var(--gray-soft); border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.hbar b { font-variant-numeric: tabular-nums; }
.dl { display: grid; gap: 8px; margin: 12px 0 0; }
.dl div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.dl dt { color: var(--ink-2); font-size: 14px; }
.dl dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.funnel .barcell { width: 40%; }
.money-lost { display: grid; gap: 16px; }
.lost.alert { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.lost p { margin: 10px 0 0; }

@media (max-width: 1150px) {
  .pay-top, .pay-two, .money-two { grid-template-columns: 1fr; }
  .pay-apps { grid-template-columns: 1fr 1fr; }
  .quote-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .callbar { margin: 10px 16px 0; }
  .case-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .case-grid { grid-template-columns: 1fr; }
  .pay-apps { grid-template-columns: 1fr; }
  .rung { grid-template-columns: 1fr 1fr; }
  .pay-strip .ps-next { margin-left: 0; }
}
@media (max-width: 600px) {
  .quote-form { grid-template-columns: 1fr; }
  .quote-form .span2 { grid-column: auto; }
  .qrow { grid-template-columns: 1fr; }
  .facts.compact { grid-template-columns: 1fr 1fr; }
  .pace { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 1fr; }
}

/* =====================================================================
   v3: co-pilot script (handbook), wrap-ups waiting
   ===================================================================== */
.step-tabs { grid-template-columns: repeat(3, 1fr); }
.cp-warn { display: grid; gap: 6px; margin-bottom: 12px; }
.cp-warn:empty { display: none; }
.cp-warn .w { font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 9px; background: var(--gray-soft); color: var(--ink-2); }
.cp-warn .w.red { background: var(--red-soft); color: var(--red); }
.cp-warn .w.amber { background: var(--amber-soft); color: var(--amber); }
.copilot { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.cp-main { display: grid; gap: 12px; min-width: 0; }
.cp-stages { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font: inherit; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.pill.done { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.pill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.say-card { border: 2px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 14px; padding: 16px 18px; background: var(--panel); display: grid; gap: 10px; }
.say-card h3 { color: var(--brand); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.cp-say { display: grid; gap: 8px; }
.cp-say p { margin: 0; font-size: 17px; line-height: 1.5; }
.cp-say p.b { font-weight: 700; }
.cp-say p.cue { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.cp-confirm { display: grid; gap: 6px; }
.cp-confirm:empty, .cp-aside:empty { display: none; }
.conf { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; color: var(--ink); cursor: pointer; }
.conf input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.conf b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.conf span span { font-size: 15px; }
.conf.ask { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); background: var(--amber-soft); }
.conf.ask b { color: var(--amber); }
.conf.done { background: var(--green-soft); border-color: transparent; }
.cp-aside p { margin: 0; font-size: 13px; color: var(--muted); font-style: italic; }
.cp-nav { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.cp-nav #cp-back { margin-right: auto; }
.obj-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; background: var(--panel-2); }
.obj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font: inherit; font-size: 12px; font-weight: 650; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.chip-btn.pre { border-color: var(--amber); color: var(--amber); }
.chip-btn.on { background: var(--amber); border-color: var(--amber); color: #fff; }
.obj-box { background: var(--panel); border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.obj-box p { margin: 0; }
.obj-box .gate { font-style: italic; color: var(--ink-2); }
.obj-box .pass { font-size: 16px; font-weight: 600; }
.obj-box .tag { display: inline-block; font-size: 11px; font-weight: 800; background: var(--amber-soft); color: var(--amber); padding: 2px 7px; border-radius: 6px; vertical-align: 2px; }
.cp-side { display: grid; gap: 10px; }
.snap { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel-2); }
.snap h3 { margin-bottom: 6px; }
.snap dl { margin: 0; display: grid; gap: 6px; }
.snap dl div { display: grid; grid-template-columns: 86px 1fr; gap: 6px; font-size: 13px; }
.snap dt { color: var(--muted); font-weight: 650; }
.snap dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.snap .miss dd { color: var(--amber); }
.snap .ok dd { color: var(--green); }
.unsaved { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); background: color-mix(in srgb, var(--amber-soft) 50%, var(--panel)); }
@media (max-width: 1400px) { .copilot { grid-template-columns: 1fr; } .cp-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cp-side { grid-template-columns: 1fr; } .cp-say p { font-size: 16px; } }

.dialer { display: grid; gap: 8px; }
.dialer .card-head { margin-bottom: 0; }
.dialer p { margin: 0; }
body[data-role="admin"] .dialer, body[data-role="case"] .dialer { display: none; }

/* intake details + credentials */
.more-box { margin: 12px 0 0; }
.more-box summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); }
.facts-more { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 8px; }
.facts-more dd { font-size: 14px; font-weight: 650; }
#live-actions select.input-sm, .input-sm { width: auto; padding: 6px 8px; font-size: 13px; }

/* settings */
.settings { max-width: 860px; }
.settings h2 { margin: 0 0 6px; }
.settings-form { display: grid; gap: 14px; margin-top: 14px; }
.settings-form .field { display: grid; gap: 6px; max-width: 320px; font-weight: 650; font-size: 14px; }
.settings-form h3 { margin: 0; font-size: 15px; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.state-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.state-row b { font-size: 14px; }
.state-row input { padding: 7px 9px; font-size: 14px; }
.state-row.on { border-color: var(--green, #2e9e5b); }
.state-row.need { border-color: var(--amber); }

.intent { display: inline-block; margin: 2px 0 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.intent-hot { background: var(--green-soft); color: var(--green); }
.intent-maybe { background: var(--amber-soft); color: var(--amber); }
.intent-requested { background: var(--gray-soft); color: inherit; }

/* ---------- leads (manager) ---------- */
.lead-head, .lead-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 120px 120px minmax(0, 1.3fr) 110px minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: center; }
.lead-head { padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.lead-row { padding: 12px 14px; cursor: pointer; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; }
.lead-row:hover { background: var(--panel-2); }
.lead-row .who b { display: block; }
.lead-row .sub, .lead-row small { font-size: 13px; color: var(--muted); display: block; }
.lead-timeline { display: grid; gap: 8px; }
.lead-timeline .ev { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.lead-timeline .ev .t { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lead-timeline .ev p { margin: 4px 0 0; font-size: 14px; white-space: pre-wrap; }
.lead-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#leads-filter { margin: 12px 0; }
#leads-kpis { margin-bottom: 14px; }
@media (max-width: 900px) {
  .lead-row { grid-template-columns: 1fr auto; }
  .lead-row .hide-sm { display: none; }
}
.lead-row .row { flex-wrap: wrap; gap: 6px; min-width: 0; }
.lead-row .chip { white-space: normal; }
#leads-tests + *, label:has(#leads-tests) { white-space: nowrap; }
.lead-head, .lead-row { grid-template-columns: minmax(0, 1.4fr) 120px 120px minmax(0, 1.4fr) 110px minmax(0, 1fr) minmax(0, 1.2fr); }

/* ---------- Calendar (v11) ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-nav { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.cal-date { min-width: 150px; text-align: center; font-weight: 750; font-size: 14px; }
.cal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cal-stat { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.cal-stat .cal-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--gray-soft); color: var(--ink-2); }
.cal-stat.blue .cal-ic { background: var(--brand-soft); color: var(--brand); }
.cal-stat.red .cal-ic { background: var(--red-soft); color: var(--red); }
.cal-stat.green .cal-ic { background: var(--green-soft); color: var(--green); }
.cal-stat.violet .cal-ic { background: var(--violet-soft); color: var(--violet); }
.cal-stat .lbl { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.cal-stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cal-stat .sub { display: block; font-size: 12px; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.cal-side { display: grid; gap: 14px; position: sticky; top: 12px; }
.cal-section { padding: 14px; }
.cal-section h2 { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.cal-list { display: grid; gap: 8px; }
.cal-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.cal-row.overdue { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); background: color-mix(in srgb, var(--red-soft) 55%, var(--panel)); }
.cal-row { cursor: pointer; }
.cal-row:hover { border-color: var(--brand); }
.cal-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cal-row.picked { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent); }
.cal-row.next { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); background: color-mix(in srgb, var(--brand-soft) 60%, var(--panel)); }
.cal-when b { display: block; white-space: nowrap; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cal-when span { font-size: 12px; color: var(--muted); }
.cal-who { display: grid; gap: 2px; min-width: 0; }
.cal-who b { font-weight: 750; }
.cal-who span { font-size: 13px; }
.cal-note { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cal-card h2 { font-size: 16px; font-weight: 800; margin: 0; }
.cal-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-big b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cal-big span { margin-left: 6px; color: var(--muted); font-size: 13px; }
.cal-name { font-size: 18px; font-weight: 800; margin-top: 2px; }
.cal-kvs { display: grid; margin: 12px 0; }
.cal-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cal-kv span { color: var(--muted); }
.cal-kv b { font-weight: 600; }
.cal-call { width: 100%; justify-content: center; }
#cal-prep h2 { margin-bottom: 4px; }
@media (max-width: 1100px) { .cal-grid { grid-template-columns: minmax(0, 1fr); } .cal-side { position: static; } }
@media (max-width: 760px) {
  .cal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-row { grid-template-columns: 78px minmax(0, 1fr); }
  .cal-when b { font-size: 15px; }
  .cal-row .cal-tags { grid-column: 2; justify-content: flex-start; }
  .cal-row > button { grid-column: 1 / -1; }
}
.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; }

/* Calendar: date picker + month view */
.cal-head { justify-content: flex-start; }
.cal-head .cal-view { margin-left: auto; }
.cal-pick input { height: 34px; }
.cal-month { padding: 14px; margin-bottom: 14px; }
.mhead, .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mhead span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 6px 6px; }
.mcell { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 104px; padding: 6px; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; }
.mcell:hover { border-color: var(--brand); }
.mcell.out { background: var(--panel-2); color: var(--muted); }
.mcell.today .mnum { background: var(--brand); color: #fff; }
.mcell.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.mnum { align-self: flex-start; font-weight: 750; font-size: 13px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; font-variant-numeric: tabular-nums; }
.mev { font-size: 12px; font-weight: 650; padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mev.late { background: var(--red-soft); color: var(--red); }
.mev.docs { background: var(--amber-soft); color: var(--amber); }
.mmore { font-size: 11px; color: var(--muted); font-weight: 650; padding-left: 4px; }
.cal-month > p { margin: 10px 2px 0; }
@media (max-width: 760px) {
  .cal-head .cal-view { margin-left: 0; }
  .mhead, .mgrid { gap: 3px; }
  .mcell { min-height: 58px; padding: 4px; }
  .mev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .mmore { font-size: 10px; padding: 0; }
}

/* microphone picker, level meter and "they can't hear you" warning */
.mic-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 14px; }
/* Sound check (mic + speaker in one panel) */
.snd-btn { display: inline-flex; align-items: center; gap: 6px; }
.snd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 2px color-mix(in srgb, var(--line) 40%, transparent); }
.snd-dot.ok { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.snd-dot.bad { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent); }
.snd-panel { margin: 12px 24px 0; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); animation: snd-in .16s ease-out; }
@keyframes snd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.snd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.snd-head h3 { margin: 0 0 2px; font-size: 17px; }
.snd-head p { margin: 0; }
.snd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.snd-card { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.snd-card-top { display: flex; align-items: center; gap: 10px; }
.snd-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); font-size: 19px; flex: none; }
.snd-card-title { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.snd-card-title b { font-size: 15px; }
.snd-chip { flex: none; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.snd-chip.ok { background: var(--green-soft); border-color: transparent; color: var(--green); }
.snd-chip.bad { background: var(--red-soft); border-color: transparent; color: var(--red); }
.snd-meter { height: 12px; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 13px); }
.snd-meter span { display: block; height: 100%; width: 0; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 55%, #b6f0d6)); -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 13px); mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 13px); transition: width .08s linear; }
.snd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spk-ask { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.spk-ask.hidden { display: none; }
.snd-yes { background: var(--green); color: #fff; border-color: transparent; }
.snd-no { background: var(--red-soft); color: var(--red); border-color: transparent; }
@media (max-width: 700px) { .snd-panel { margin: 10px 16px 0; padding: 14px; } .snd-grid { grid-template-columns: 1fr; } }

/* manager switched into a closer's portal */
.switch-wrap select { min-width: 170px; }
.switch-bar { margin: 12px 24px 0; padding: 10px 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 600; font-size: 14px; }
@media (max-width: 700px) { .switch-bar { margin: 10px 16px 0; } }

/* manager "Ask" box: questions about the current page, answered by Claude */
.ask-panel { display: flex; flex-direction: column; gap: 10px; margin: 12px 24px 0; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ask-row { display: flex; gap: 8px; align-items: center; }
.ask-row input { flex: 1; min-width: 0; }
.ask-log { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; }
.ask-log:empty { display: none; }
.ask-q { font-weight: 650; font-size: 14px; }
.ask-a { font-size: 14px; line-height: 1.5; white-space: pre-wrap; color: var(--ink); }
.ask-a.err { color: var(--red); }
@media (max-width: 700px) { .ask-panel { margin: 10px 16px 0; } }

/* ============ Manager portal in the Dialer HQ look ============
   Same palette, type and flat bordered cards as UniLife Dialer HQ. Applied to the manager login only
   (body.theme-hq); closers keep the standard portal look. */
body.theme-hq {
  --bg: #F3F5F2; --panel: #FFFFFF; --panel-2: #E9EDE8; --ink: #14212B; --ink-2: #2E3D45; --muted: #5B6A70; --line: #D6DCD4;
  --brand: #0E6B5C; --brand-2: #1A8A76; --brand-soft: #D8EBE5; --side: #14212B; --side-ink: #C4CFCB;
  --green: #1B7A4B; --green-soft: #DDEFE4; --amber: #9A6B12; --amber-soft: #F5E9CF; --red: #B4432F; --red-soft: #F6DED8;
  --violet: #2F5F8A; --violet-soft: #DDE8F2; --gray-soft: #E9EDE8; --gold: #B7862B;
  --radius: 12px; --shadow: none;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  body.theme-hq {
    --bg: #0F171C; --panel: #162128; --panel-2: #1C2A32; --ink: #E6ECEA; --ink-2: #C3CECB; --muted: #93A3A8; --line: #2A3A42;
    --brand: #4FC2A8; --brand-2: #6BD3BB; --brand-soft: #17362F; --side: #0B1216; --side-ink: #A9B8B4;
    --green: #5CCB8C; --green-soft: #173524; --amber: #E6B45A; --amber-soft: #3A2E17; --red: #EE8A74; --red-soft: #3A221D;
    --violet: #8DB8E0; --violet-soft: #1B2D3F; --gray-soft: #1C2A32; --gold: #E0B058;
  }
  body.theme-hq .btn-primary { color: #0B1A16; }
}
body.theme-hq .page-title, body.theme-hq h2, body.theme-hq .side-brand {
  font-family: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif; letter-spacing: -.01em;
}
body.theme-hq .page-title { font-size: 24px; font-weight: 700; }
body.theme-hq h3 { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
body.theme-hq .mono, body.theme-hq .num, body.theme-hq .kpi b, body.theme-hq .kpi-card .big, body.theme-hq .table .num,
body.theme-hq .timer, body.theme-hq .val, body.theme-hq .big {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
body.theme-hq .kpi b, body.theme-hq .kpi-card .big { font-weight: 500; }
body.theme-hq .card, body.theme-hq .login-card { box-shadow: none; }
body.theme-hq .kpi { background: var(--panel); }
body.theme-hq .table th { font-weight: 600; letter-spacing: .07em; background: var(--panel-2); }
body.theme-hq .btn { font-weight: 500; border-radius: 8px; }
body.theme-hq .btn-ghost, body.theme-hq .btn-secondary { background: var(--panel); border-color: var(--line); }
body.theme-hq .btn-ghost:hover:not(:disabled), body.theme-hq .btn-secondary:hover:not(:disabled) { border-color: var(--brand); filter: none; }
body.theme-hq .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); }
body.theme-hq .nav button[aria-current="page"]::before { background: var(--brand-2); }
body.theme-hq .pill { font-weight: 600; }
/* HQ look: light menu like Dialer HQ's tab bar */
body.theme-hq .sidebar { background: var(--panel-2); color: var(--ink); border-right: 1px solid var(--line); }
body.theme-hq .side-brand, body.theme-hq .side-foot .me { color: var(--ink); }
body.theme-hq .nav button, body.theme-hq .tabbar button { color: var(--muted); font-weight: 500; }
body.theme-hq .nav button:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); color: var(--ink); }
body.theme-hq .nav button[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
body.theme-hq .side-foot { border-top-color: var(--line); }
body.theme-hq .side-foot .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* Business Advisor + HQ pages: Dialer HQ inside the portal */
.hq-frame{display:block;width:100%;height:calc(100vh - 150px);min-height:520px;border:0;background:transparent}

/* calendar: tomorrow folded */
.cal-later > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.cal-later > summary::-webkit-details-marker { display: none; }
.cal-later > summary h2 { margin: 0; }
.cal-later > summary h2::before { content: '▸ '; color: var(--muted); }
.cal-later[open] > summary h2::before { content: '▾ '; }
.cal-later[open] > summary .small { visibility: hidden; }
.cal-later[open] > summary { margin-bottom: 10px; }
.cal-overdue { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.cal-overdue h2 { color: var(--red); }

/* settings: license upload */
.lic-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 12px; background: var(--brand-soft); margin: 4px 0 14px; }
.lic-upload-text { display: grid; gap: 2px; }
.lic-upload #lic-msg { grid-column: 1 / -1; margin: 0; }
.lic-upload #lic-msg:empty { display: none; }
.lic-upload label.btn { cursor: pointer; white-space: nowrap; }
.lic-upload label.btn.busy { opacity: .6; pointer-events: none; }
.state-row.ai input, #set-npn.ai { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent); }
@media (max-width: 640px) { .lic-upload { grid-template-columns: 1fr; } }

/* Underwrite IQ: a side panel that leaves the live call visible */
.iq-drawer { background: transparent; pointer-events: none; }
.iq-drawer .drawer-card { pointer-events: auto; width: min(460px, 100%); display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); }
.iq-card h2 { display: flex; align-items: center; gap: 8px; }
.iq-ctx { font-size: 13px; background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; }
.iq-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.iq-q { align-self: flex-end; max-width: 88%; background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 12px; font-size: 14px; white-space: pre-wrap; }
.iq-a { align-self: stretch; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.45; display: grid; gap: 6px; }
.iq-a p { margin: 0; }
.iq-a ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.iq-a.err { color: var(--red); background: var(--red-soft); border-color: transparent; }
.iq-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.iq-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: iqdot 1s infinite ease-in-out; }
.iq-dots i:nth-child(2) { animation-delay: .15s; } .iq-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes iqdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.iq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.iq-chips:empty { display: none; }
.iq-chips .chip-btn { text-align: left; }
.iq-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.iq-form textarea { resize: vertical; min-height: 44px; font: inherit; }
@media (prefers-reduced-motion: reduce) { .iq-dots i { animation: none; opacity: .7; } }
.linkbtn { font: inherit; background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; text-decoration: underline; }

/* client panel: Call now sits right under the name */
.client-actions { position: sticky; top: -20px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px -20px 0; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.client-actions .client-call { font-size: 15px; padding: 10px 18px; }

/* live plan check card */
.plan-card { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--brand); }
.plan-card.changed { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); background: var(--amber-soft); box-shadow: inset 4px 0 0 var(--amber); }
.plan-card.stop { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); background: var(--red-soft); box-shadow: inset 4px 0 0 var(--red); }
.plan-card.used { background: var(--green-soft); box-shadow: inset 4px 0 0 var(--green); }
.plan-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-head b { font-size: 15px; }
.plan-head .plan-why { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }
.plan-quote { margin: 6px 0 0; font-style: italic; font-size: 13px; }
.plan-kvs { display: grid; margin: 8px 0; }
.plan-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; }
.plan-kv span { color: var(--muted); }
.plan-ask { display: grid; gap: 4px; margin: 4px 0 10px; font-size: 14px; }
.plan-ask span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.plan-card .row { gap: 8px; }
.tiny { font-size: 11px; margin: 8px 0 0; }
@media (max-width: 700px) { .plan-kv { grid-template-columns: 110px minmax(0, 1fr); } }
.client-actions + .facts { margin-top: 6px; }

/* Client card: recommended carrier/product facts */
.prod-cards{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.prod-cards h3{margin:0}
.prod-card{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--panel);display:flex;flex-direction:column;gap:6px}
.prod-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.prod-name{font-weight:600}
.prod-upto{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.prod-upto strong{font-size:1.25rem;font-variant-numeric:tabular-nums}
.prod-carrier{margin:0;font-weight:500}
.prod-card p{margin:0}
.prod-benefits{margin:2px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:2px}

/* ---------- double dial (2×) on every closer Call button ---------- */
.dd-wrap { display: inline-flex; align-items: center; gap: 4px; }
.dd-wrap.full { display: flex; width: 100%; }
.dd-wrap.full > .btn { flex: 1; }
.dd-tag { display: inline-block; margin-left: 2px; padding: 1px 5px; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 1.4; background: rgba(255, 255, 255, .22); color: inherit; letter-spacing: .02em; vertical-align: 1px; }
.btn-secondary .dd-tag, .btn-ghost .dd-tag { background: var(--brand-soft); color: var(--brand); }
.dd-i { flex: none; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: italic 700 12px/18px Georgia, serif; cursor: pointer; }
.dd-i:hover, .dd-i:focus-visible { color: var(--brand); border-color: var(--brand); }
.dd-pop { position: absolute; z-index: 90; padding: 10px 12px; border-radius: 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(15, 23, 42, .18); font-size: 13px; line-height: 1.45; }
.dd-pop p { margin: 4px 0 0; color: var(--muted); }
.dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); font-size: 14px; font-weight: 600; }
.dd.amber { background: var(--amber-soft); }
.dd.red { background: var(--red-soft); }
.dd.green { background: var(--green-soft); }
.dd-text { flex: 1 1 220px; }
.dd-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dd-steps { display: inline-flex; gap: 4px; }
.dd-step { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; border: 1.5px solid var(--line); color: var(--muted); background: var(--panel); }
.dd-step.on { border-color: var(--brand); color: var(--brand); animation: ddpulse 1.2s ease-in-out infinite; }
.dd.amber .dd-step.on { border-color: var(--amber); color: var(--amber); }
.dd.green .dd-step.on { border-color: var(--green); color: var(--green); animation: none; }
.dd.red .dd-step.on { border-color: var(--red); color: var(--red); animation: none; }
.dd-step.done { background: var(--muted); border-color: var(--muted); color: var(--panel); }
@keyframes ddpulse { 50% { box-shadow: 0 0 0 4px var(--brand-soft); } }
@media (prefers-reduced-motion: reduce) { .dd-step.on { animation: none; } }
.noreach { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); }
.noreach p { margin: 0 0 8px; }
.nr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) {
  .call-top { flex-wrap: wrap; }
  .call-controls { min-width: 0; width: 100%; flex-wrap: wrap; }
  #live-actions { flex-wrap: wrap; }
}
/* Client card: put a closed client back in the pipeline */
.reopen-box .row{gap:8px;align-items:center}
.reopen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:8px 0}
.reopen-grid .stack{display:flex;flex-direction:column;gap:4px}

/* Leads: book María for a set time */
.lead-sched-row{gap:6px;align-items:center;flex-wrap:wrap}
.lead-sched{width:auto;padding:6px 8px;font-size:13px}

/* calendar: close / reschedule an overdue call-back with a reason */
.cal-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cal-close { font-size: 12px; }
.cal-dialog { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); background: var(--panel); color: var(--ink); }
.cal-dialog::backdrop { background: rgba(8, 11, 18, .45); }
.cal-dialog form { display: grid; gap: 12px; padding: 20px; }
.cal-dialog h2 { font-size: 18px; font-weight: 800; margin: 0; }
.cal-dialog p { margin: 0; }
.cal-dialog .stack { display: flex; flex-direction: column; gap: 4px; }
.cal-dialog textarea { font: inherit; resize: vertical; }
.cal-whys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 520px) { .cal-whys { grid-template-columns: 1fr; } }
.cal-dialog .cal-why { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; }
.cal-dialog .cal-why input { width: auto !important; flex: none; margin: 0; }
.cal-dialog .cal-why span { text-align: left; }
.cal-why:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }

/* Leads page: the "Leads" hero tile lost its color to .floor-kpis .kpi (white text on white) */
.floor-kpis .kpi.hero { background: var(--brand); border-color: var(--brand); }
.floor-kpis .kpi.hero b, .floor-kpis .kpi.hero span { color: #fff; }

.apptext-msg { width: 100%; font-size: 15px; line-height: 1.45; margin-top: 6px; }

/* referrals */
.clients-ref { margin-left: auto; }
.ref-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.ref-dialog { width: min(620px, calc(100vw - 32px)); }
.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.ref-grid .ref-wide { grid-column: 1 / -1; }
.ref-grid .input, .ref-grid select, .ref-grid textarea { width: 100%; box-sizing: border-box; }
.ref-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ref-same { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; margin-top: 4px; }
.ref-same input { width: auto !important; margin: 0; }
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr; } }

/* Away reminder: the Available button pulses until the closer is back */
.status-btn.nudge[data-status="available"] { color: var(--green); box-shadow: 0 0 0 0 var(--green); animation: availpulse 1.4s ease-out infinite; }
@keyframes availpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .status-btn.nudge[data-status="available"] { animation: none; outline: 2px solid var(--green); } }

/* text messages with the client (from GHL) */
.texts-box { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--panel-2); }
.texts-bar { margin: 6px 0 8px; gap: 8px; }
.texts-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; padding: 2px; }
.texts-day { align-self: center; font-size: 11px; color: var(--muted); margin: 6px 0 2px; }
.txt { max-width: 82%; padding: 7px 10px; border-radius: 13px; font-size: 13.5px; line-height: 1.35; }
.txt.in { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.txt.out { align-self: flex-end; background: var(--brand-soft); border-bottom-right-radius: 4px; }
.txt-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.txt-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.drawer .texts-box { margin: 14px 0 16px; }

/* client timeline: call attempts */
.call-stats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 8px; }
.timeline li.call-ok::before { background: var(--green); }
.timeline li.call-no::before { background: var(--red); }
.timeline li.call-vm::before { background: var(--amber); border: 2px solid var(--amber); background: transparent; }
.timeline li.call-ok, .timeline li.call-no, .timeline li.call-vm { font-size: 13px; }

/* voicemail we left: play it back on the client timeline */
.timeline .tl-audio { width: 100%; max-width: 340px; height: 34px; margin-top: 4px; }
.vm-preview { margin-bottom: 16px; }
.office-bg-set { margin-bottom: 16px; }
.obg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.obg-bar .rm-vol { flex: 1 1 200px; max-width: 320px; }

/* Money: expected commission vs deposited */
.money-exp{margin-top:16px}
.money-exp .card-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.money-exp tfoot td{border-top:2px solid var(--line)}
.dep-h{margin:18px 0 6px;font-size:14px}
.dep-list{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:4px}
.dep-list li{display:grid;grid-template-columns:100px 110px minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:4px 0;border-bottom:1px dashed var(--line)}
.dep-form{display:grid;grid-template-columns:150px 140px 170px minmax(0,1fr);gap:8px;align-items:center}
.dep-form .btn{justify-self:start}
@media (max-width:760px){.dep-form{grid-template-columns:1fr 1fr}.dep-list li{grid-template-columns:90px 1fr}}

/* recordings: length in plain sight */
.rec { display: grid; gap: 4px; margin-top: 6px; max-width: 640px; }
.rec-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.rec-len { font-size: 17px; font-variant-numeric: tabular-nums; }
.rec-sep { color: var(--muted); }
.rec-pos { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 6px; }
.rec audio { width: 100%; height: 40px; }

/* Leads: review an unclear "not interested" */
.lead-review{border:1px solid var(--amber);background:var(--amber-soft);display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.lead-review .row{gap:8px;flex-basis:100%}

/* Leads: María (AI) vs closer (live) */
#leads-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
#leads-filter .lf-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px 6px; border-radius: 10px; border: 1px solid var(--line); }
#leads-filter .lf-group.lf-ai { background: color-mix(in srgb, var(--brand) 6%, transparent); }
#leads-filter .lf-group.lf-closer { background: color-mix(in srgb, var(--violet) 8%, transparent); border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); }
#leads-filter .lf-head { font-weight: 750; }
.lead-row.stage-ai { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
.lead-row.stage-closer { box-shadow: inset 4px 0 0 var(--violet); background: color-mix(in srgb, var(--violet) 5%, transparent); }
.lead-row .stage-tag { display: inline-block; font-size: 11px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; padding: 1px 7px; margin-bottom: 3px; }
.lead-row .stage-tag.ai { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.lead-row .stage-tag.closer { color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.lead-row b.overdue { color: var(--red); }

/* Leads: schedule for a closer */
.lead-closer summary{cursor:pointer}
.lead-closer-form{display:grid;grid-template-columns:180px 220px auto;gap:8px;align-items:center;margin-top:8px}
.lead-closer-form textarea{grid-column:1 / -1}
.lead-closer-form .btn{justify-self:start}
@media (max-width:760px){.lead-closer-form{grid-template-columns:1fr}}

/* Leads page: the numbers on top are clickable filters */
button.kpi-click { text-align: left; font: inherit; cursor: pointer; width: 100%; transition: border-color .15s, box-shadow .15s; }
button.kpi-click:hover { border-color: var(--brand); box-shadow: var(--shadow); }
button.kpi-click.is-on:not(.hero) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }

/* Outbound opportunities (closer) */
.ob-lede { margin: 0 0 12px; }
.ob-list { display: grid; gap: 10px; }
.ob-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.ob-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ob-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.ob-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ob-sum summary { cursor: pointer; color: var(--brand); font-weight: 650; }
.ob-sum p { margin: 6px 0 0; white-space: pre-wrap; }
.ob-act .btn { min-width: 110px; }
@media (max-width: 760px) { .ob-row { grid-template-columns: 1fr; } .ob-act .btn { width: 100%; } }

/* The ad video the client saw */
.ad-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel-2); margin: 8px 0; }
.ad-box > summary { cursor: pointer; }
.ad-body { display: grid; gap: 6px; margin-top: 8px; }
.ad-body p { margin: 0; }
.ad-video { width: 100%; max-width: 360px; max-height: 360px; border-radius: 8px; background: #000; }
.ad-script p { white-space: pre-wrap; max-height: 220px; overflow: auto; }
.ob-row[role=button] { cursor: pointer; transition: border-color .15s; }
.ob-row[role=button]:hover { border-color: var(--brand); }

.timeline li.ad { font-weight: 600; }
.timeline li.ad::before { content: '📺 '; }
.ob-tabs { margin-bottom: 4px; justify-self: start; }
.ob-you { color: var(--brand); font-weight: 650; }
.ob-when { color: var(--amber); }
.ob-later { opacity: .8; }

.dnc-check { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 14px; }
.dnc-check.hidden { display: none; }

/* What the red number on "Live" means, at the top of the Live page */
.live-alerts { display: grid; gap: 8px; margin-bottom: 14px; }
.live-alerts .la-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); border: 1px solid var(--red); }
.live-alerts .la-n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; display: inline-grid; place-items: center; }
.live-alerts .la-text { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.live-alerts .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.nav .dot, .tabbar .dot { cursor: help; }

/* Time-zone clocks in the closer top bar */
.tz-clocks { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tz-clock { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--gray-soft); color: var(--muted); white-space: nowrap; cursor: default; }
.tz-clock b { font-weight: 800; margin-right: 2px; }
.tz-clock.open { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tz-clock.best { background: var(--amber-soft); color: var(--amber); border-color: var(--amber); }
@media (max-width: 1100px) { .tz-clocks { display: none; } }

/* Wrap-up: simple and on top. The outcome picker comes right under the client's name, the client card folds away
   (one click: "Client details"), and the Save button stays pinned at the bottom of the screen. */
.call.wrapping { display: flex; flex-direction: column; }
.call.wrapping > * { order: 3; }
.call.wrapping > .call-top { order: 0; }
.call.wrapping > #wrap { order: 1; margin-top: 10px; padding-top: 14px; }
.call.wrapping:not(.show-details) > #c-facts, .call.wrapping:not(.show-details) > #c-lic-warn, .call.wrapping:not(.show-details) > #plan-card,
.call.wrapping:not(.show-details) > #plan-status, .call.wrapping:not(.show-details) > #c-ad-slot, .call.wrapping:not(.show-details) > #c-more-wrap,
.call.wrapping:not(.show-details) > #c-notes-wrap, .call.wrapping:not(.show-details) > #c-texts-slot, .call.wrapping:not(.show-details) > #c-nodata,
.call.wrapping:not(.show-details) > #dd, .call.wrapping:not(.show-details) > #mic-warn { display: none !important; }
.call.wrapping.show-details > #c-facts { margin-top: 14px; }
.wrap-sum { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-details { margin-left: auto; }
.wrap-step { margin: -6px 0 0; }
.call.wrapping .wrap-foot { position: sticky; bottom: 0; z-index: 6; background: var(--panel); margin: 0 -18px -18px; padding: 12px 18px 14px;
  border-top: 1px solid var(--line); box-shadow: 0 -8px 16px -12px rgba(15, 23, 42, .35); border-radius: 0 0 14px 14px; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.call.wrapping .wrap-foot .error { margin: 0 auto 0 0; }
.call.wrapping #wrap-submit { min-width: 240px; }
.call.wrapping .notes textarea { min-height: 64px; }
@media (max-width: 760px) { .call.wrapping .wrap-foot { margin: 0 -16px -16px; padding: 10px 16px 14px; } .call.wrapping #wrap-submit { width: 100%; min-width: 0; } }

.la-x { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.la-x:hover { background: rgba(0,0,0,.06); color: var(--ink); }
#missed-list li.clickable { cursor: pointer; }
#missed-list li.clickable:hover strong { color: var(--brand); text-decoration: underline; }

.cal-search { min-width: 220px; max-width: 300px; flex: 1 1 220px; }
.la-row.la-replied { background: var(--green-soft); border-color: var(--green); }
.la-row.la-replied .la-n { background: var(--green); }
.ob-reply { margin: 2px 0; padding: 6px 10px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 6px; color: var(--ink); font-style: italic; }

/* Wrap-up: one line of what happened on the call (from the AI summary) */
.wrap-what { margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.wrap-what b { color: var(--ink); }
.wrap-what .what-flag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 600; }

/* Sortable column titles (Leads) and sort menus (Transfers, Cases) */
.lead-head button { all: unset; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; white-space: nowrap; border-radius: 4px; }
.lead-head button:hover { color: var(--ink, inherit); text-decoration: underline dotted; }
.lead-head button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lead-head button::after { content: attr(data-arrow); margin-left: 4px; opacity: .35; font-weight: 400; }
.lead-head button.on { color: var(--ink, inherit); }
.lead-head button.on::after { opacity: 1; font-weight: 700; }
.sort-pick { white-space: nowrap; }

/* ---------- sidebar: next 3 calls ---------- */
.side-next { display: grid; gap: 6px; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-next .sn-head { display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 0 4px 2px; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--side-ink); cursor: pointer; }
.side-next .sn-all { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; opacity: .7; }
.side-next .sn-head:hover .sn-all { opacity: 1; color: #fff; }
.side-next .sn-empty { font-size: 12.5px; opacity: .6; padding: 4px; }
.side-next .sn-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); cursor: pointer; transition: background .15s, transform .15s; }
.side-next .sn-item:hover { background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.side-next .sn-time { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font-size: 11.5px; }
.side-next .sn-time strong { color: #fff; font-weight: 700; white-space: nowrap; }
.side-next .sn-time .sn-rel { opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-next .sn-name { color: #fff; font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-next .sn-sub { font-size: 11px; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-next .sn-call { width: 30px; height: 30px; border-radius: 999px; border: 0; background: rgba(46, 160, 67, .22); font-size: 13px; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.side-next .sn-call:hover { background: rgba(46, 160, 67, .45); }
.side-next .sn-call .ic { width: 15px; height: 15px; color: #7ee2a0; }
.side-next .sn-item.soon { border-color: rgba(123, 150, 245, .55); background: rgba(123, 150, 245, .12); }
.side-next .sn-item.soon .sn-rel { color: #aebfff; opacity: 1; font-weight: 700; }
.side-next .sn-item.late { border-color: rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .10); }
.side-next .sn-item.late .sn-rel { color: #ff9ea1; opacity: 1; font-weight: 700; }
body.theme-hq .side-next { border-top-color: var(--line); }
body.theme-hq .side-next .sn-item { background: var(--panel); border-color: var(--line); }
body.theme-hq .side-next .sn-time strong, body.theme-hq .side-next .sn-name { color: var(--ink); }

/* 1 minute or less to a call-back: pulse until it's dialed */
@keyframes sn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .55); border-color: rgba(46, 204, 113, .9); background: rgba(46, 204, 113, .16); }
  50% { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); border-color: rgba(46, 204, 113, .4); background: rgba(46, 204, 113, .30); }
}
@keyframes sn-ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.side-next .sn-item.due { animation: sn-pulse 1.1s ease-in-out infinite; }
.side-next .sn-item.due .sn-rel { color: #7ee2a0; opacity: 1; font-weight: 800; }
.side-next .sn-item.due .sn-call { background: #2ea043; animation: sn-ring 1.1s ease-in-out infinite; }
.side-next .sn-item.due .sn-call .ic { color: #fff; }
@media (prefers-reduced-motion: reduce) { .side-next .sn-item.due, .side-next .sn-item.due .sn-call { animation-duration: 2.4s; } }

/* Leads page: Twilio number check result */
.phone-check { flex-basis: 100%; margin: 0 0 6px; color: var(--ink-2); }
.phone-check.bad { color: var(--red); font-weight: 600; }

/* ===== Simplified Live page (Sep 26) ===== */
/* 1. One "Needs you" list: the right-column copies (missed, wrap-ups, today, up next) are hidden for closers */
.live-side .card.dup { display: none !important; }
.live-alerts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); gap: 10px; }
.live-alerts .ny-head { display: flex; align-items: center; justify-content: space-between; }
.live-alerts .ny-head h3 { font-size: 14px; color: var(--ink); }
.live-alerts .ny-head .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; margin-left: 4px; }
.ny-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ny-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); border-left-width: 4px; }
.ny-row.clickable { cursor: pointer; }
.ny-row .ny-dot { display: none; }
.ny-row .ny-text { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.ny-row .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ny-red { border-left-color: var(--red); }
.ny-amber { border-left-color: var(--amber); }
.ny-orange { border-left-color: #ea7a2a; }
.ny-green { border-left-color: var(--green); }

/* 2. On a call: the call takes the whole width, the right column hides */
.live-grid.in-call { grid-template-columns: minmax(0, 1fr); }
.live-grid.in-call .live-side { display: none; }

/* 3. Script up top: compact client strip, intake folded, warnings as small chips, no duplicate Client box */
.call .facts { margin-top: 10px; gap: 6px; }
.call .facts div { padding: 6px 9px; border-radius: 9px; }
.call .facts dt { font-size: 10px; }
.call .facts dd { font-size: 14px; margin-top: 1px; }
.objection-top { margin: 8px 0 0; font-size: 13px; }
.intake-box { margin: 8px 0 0; }
.intake-box > summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.intake-box[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.intake-box .notes-box { margin-top: 8px; }
.call.wrapping:not(.show-details) > #c-intake, .call.wrapping:not(.show-details) > #c-objection { display: none !important; }
#steps { margin-top: 12px; }
.cp-warn { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-warn .w { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; line-height: 1.35; }
.cp-side .snap:first-child { display: none; }

/* 5. Pay: a small chip in the sidebar instead of the wide bar on Live */
.side-pay { display: grid; gap: 2px; margin: 10px 8px 0; padding: 9px 11px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.side-pay:hover { background: rgba(255, 255, 255, .08); }
.side-pay .sp-main { font-weight: 750; font-size: 13px; }
.side-pay .sp-next { font-size: 11px; color: #7fe0b5; font-weight: 600; }

/* Manager pages use the full screen width (wide monitors); the closer's Live and Settings keep their size. */
body[data-role="admin"]:not(.narrow) .page:not([data-page="live"]):not([data-page="settings"]) { max-width: none; }

/* History: where is this lead now */
.where-btn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; display: grid; gap: 3px; }
.where-btn:hover .chip { filter: brightness(.95); text-decoration: underline; }

/* History: rows open the client card */
#hist-table tr.clickable { cursor: pointer; }
#hist-table tr.clickable:hover td { background: var(--panel-2); }

/* History: every lead */
.hist-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.hist-bar #hist-search { max-width: 280px; }
.hist-filters { flex-wrap: wrap; }

/* My apps (closer) */
.board-apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.col-resubmit .col-head b { color: var(--red); }
@media (max-width: 1100px) { .board-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apps-closed { margin-top: 14px; display: grid; gap: 10px; }
.apps-closed .btn { justify-self: start; }
.apps-closed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

/* Hot / Warm badge (calendar, next calls) */
.score-badge { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: 2px; }
.score-badge.hot { background: #e5484d; color: #fff; }
.score-badge.warm { background: #f5a524; color: #3b2600; }
.side-next .sn-name .score-badge { font-size: 9.5px; padding: 0 6px; vertical-align: 1px; }

/* Outbound: time until the next call-back */
.ob-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 14px; border-radius: 12px; margin-bottom: 10px; font-size: 13.5px; }
.ob-time.free { background: var(--green-soft); color: var(--green); }
.ob-time.due { background: #fdecec; color: #b42318; }
.ob-time.power { background: #efeafd; color: #5b3fc4; }
.ob-time .btn { margin-left: auto; }
.ob-row .score-badge { margin-left: 0; }

/* Carrier logos on the client / lead card (white chip so they read in dark mode too) */
.carrier-logo { display: inline-flex; align-items: center; line-height: 0; max-width: 100%; }
.carrier-logo img { height: 24px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.facts .carrier-logo img { height: 22px; }
/* Dark mode: the logos have dark lettering, so give them a soft light backing there only */
@media (prefers-color-scheme: dark) { .carrier-logo { background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 3px 6px; } }
.prod-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod-name .carrier-logo img { height: 20px; }

/* ===== Simplified lead / client card (Sep 27) ===== */
.card-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.left-off { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); background: var(--green-soft); border-radius: 13px; padding: 13px 15px; }
.left-off h3 { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.left-off .lo-meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.left-off ul { margin: 4px 0 0; padding-left: 18px; }
.left-off li { margin: 3px 0; }
.left-off .lo-next { margin-top: 9px; font-weight: 750; background: var(--panel); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); border-radius: 9px; padding: 8px 11px; }
.plan-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; display: grid; gap: 8px; background: var(--panel); }
.plan-box .pb-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-box .pb-name { font-weight: 750; font-size: 16px; }
.plan-box .why-link { margin-left: auto; font-weight: 650; font-size: 13px; }
.plan-box .pb-kv { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.plan-box .pb-kv .chip { font-size: 12.5px; }
.plan-box .pb-id { font-size: 13.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.plan-box .why-box { display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.plan-box .why-box.hidden { display: none; }
.health-card .hc-ic { height: 24px; width: auto; }
@media (prefers-color-scheme: dark) { .health-card .hc-ic { background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 2px; } }
.tl-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.tl-box .tl-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.tl-box .tl-head b { margin-right: 4px; }
.tl-box .call-stats { display: contents; }
.tl-box .tl-more { margin-top: 8px; font-weight: 650; font-size: 13px; }
.fold-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; }
.fold-box > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.fold-box[open] > summary { margin-bottom: 8px; }
.fold-box > summary { list-style: none; }
.fold-box > summary::-webkit-details-marker { display: none; }
.fold-box > summary b::before { content: "▸ "; color: var(--muted); }
.fold-box[open] > summary b::before { content: "▾ "; }
.plan-box .carrier-logo img { height: 26px; }

/* ---------- Lead card v2 (Sep 27) ---------- */
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 12px; }
.card-head .big-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.card-head .her-time { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: var(--ink-2); font-size: 14px; }
.card-ic { flex: none; vertical-align: -3px; }
.card-call { display: flex; gap: 14px; align-items: stretch; }
.card-callbtn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 12px; min-height: 54px; }
.card-callbtn .cb1 { display: inline-flex; align-items: center; gap: 6px; font-size: 16.5px; font-weight: 750; }
.card-callbtn .cb2 { font-size: 11.5px; font-weight: 500; opacity: .85; }
.card-when { display: flex; flex-direction: column; justify-content: center; min-width: 170px; }
.card-when .cw-l { font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card-when b { font-size: 16px; }
.card-when .cw-h { font-size: 13px; color: var(--muted); }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card-facts .cf { flex: 1 1 auto; }
.card-facts .cf { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; min-width: 0; }
.card-facts .cf-k { display: block; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-facts .cf-v { display: block; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 640px) { .card-call { flex-direction: column; } }
.left-off h3 .lo-meta { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.left-off .lo-row { display: flex; gap: 10px; margin: 4px 0; font-size: 14.5px; }
.left-off .lo-k { flex: none; width: 118px; font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.left-off .lo-next { display: flex; align-items: center; gap: 10px; }
.left-off .lo-next span { flex: 1; }
.left-off .lo-fullbtn { font-weight: 650; font-size: 13px; white-space: nowrap; }
.left-off .lo-full { margin: 8px 0 0; white-space: pre-wrap; }
.left-off .lo-notes { margin-top: 9px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); border-radius: 9px; padding: 8px 11px; }
.left-off .lo-notes-h { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.left-off .lo-notes-w { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12.5px; }
.left-off .lo-notes p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
/* Oct 2: Notes closed by default; "Show all notes" opens María's calls + the closer's calls and notes */
.left-off .lo-notes p.lo-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.left-off .lo-more { font-size: 13px; font-weight: 650; margin-top: 6px; padding: 0; text-transform: none; letter-spacing: 0; }
.left-off .lo-part { margin-top: 10px; }
.left-off .lo-part-h { font-size: 12px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.left-off .lo-item { border-top: 1px solid var(--line); padding: 7px 0; }
.left-off .lo-item-h { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.left-off .lo-item p { margin: 3px 0 0; font-size: 14px; }
.left-off .lo-item .tl-audio { display: block; width: 100%; max-width: 420px; height: 32px; margin-top: 5px; }
.left-off .lo-auto p { font-size: 12.5px; color: var(--muted); }
.left-off .lo-unsaved { background: color-mix(in srgb, #f59e0b 12%, transparent); border-radius: 6px; padding: 7px 8px; }
.left-off.brief-loading, .brief-loading .left-off { opacity: .85; }
.pt-box { margin: 10px 0 2px; background: #fff7fb; border: 1px solid #f3d3e4; border-radius: 10px; padding: 9px 12px; }
.pt-box .pt-h { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #b0306f; }
.pt-box .pt-h .card-ic { color: #d6457f; }
.pt-box .pt-add { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.pt-box ul { margin: 4px 0 0; padding-left: 18px; }
.pt-box li { margin: 3px 0; font-size: 14px; line-height: 1.45; }
.pt-box .pt-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; margin-left: 4px; opacity: 0; }
.pt-box li:hover .pt-x { opacity: 1; }
.pt-input { width: 100%; margin-top: 6px; }
.pt-empty { margin: 8px 0 0; }
.pt-empty .pt-add { font-size: 13px; font-weight: 650; }
@media (prefers-color-scheme: dark) { .pt-box { background: #2d1624; border-color: #5a2b45; } .pt-box .pt-h { color: #f08bb5; } }
.obj-box { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--line)); border-radius: 13px; padding: 11px 14px; font-size: 14.5px; }
.obj-box .obj-ic { color: var(--amber); font-size: 15px; }
.obj-box .obj-t { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--amber); }
.plan-box .pb-sub { font-size: 13.5px; color: var(--muted); }
.plan-box .whyline { font-size: 13.5px; line-height: 1.45; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; }
.plan-box .whyline b { color: var(--brand); }
.ready-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.ready-row .rd-l { font-weight: 700; color: var(--muted); margin-right: 2px; }
.ready-row .rd { padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.ready-row .rd.ok { background: var(--green-soft); color: var(--green); }
.ready-row .rd.no { border: 1px dashed var(--line); color: var(--muted); }
.pb-btns { display: flex; gap: 10px; }
.pb-btns button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 12px; font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.pb-btns button:disabled { opacity: .5; cursor: not-allowed; }
.pb-quote { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.pb-quote .card-ic { color: var(--muted); }
.pb-quote:hover:not(:disabled) { background: var(--panel-2); }
.pb-eapp { background: linear-gradient(180deg, #22b573, #179a5d); color: #fff; border: 1px solid #13874f; box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 4px 12px rgba(23, 154, 93, .25); }
.pb-eapp:hover:not(:disabled) { filter: brightness(1.05); }
.health-line { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 9px 14px; background: var(--panel); }
.health-line b { font-size: 14.5px; margin-right: 3px; }
.health-line .hc-ic { height: 22px; width: auto; }
@media (prefers-color-scheme: dark) { .health-line .hc-ic { background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 2px; } }
.tl-box .tl-sum { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tl-box .tl-sum em { font-style: normal; }
.tl-box .tl-sum .g { color: var(--green); } .tl-box .tl-sum .r { color: var(--red); } .tl-box .tl-sum .a { color: var(--amber); } .tl-box .tl-sum .b { color: var(--brand); }
.pb-qbox { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--panel-2); display: grid; gap: 8px; }
.pb-qbox.hidden { display: none; }
.pb-qbox .qb-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pb-qbox .qb-res { display: grid; gap: 4px; }
.pb-qbox .qb-row { display: flex; gap: 12px; align-items: center; padding: 5px 9px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.pb-qbox .qb-row.near { border-color: var(--green); background: var(--green-soft); }
.pb-qbox .qb-row span:not(.chip) { color: var(--ink-2); }
.pb-qbox .qb-ctl select { width: auto; flex: 0 1 auto; }

/* Live: main benefits of the plan (assets/benefits.js) */
.pb{margin:12px 0 10px;border-radius:16px;background:linear-gradient(135deg,#1f2a6b 0%,#3a2f86 55%,#5b3fc4 100%);padding:14px 16px;color:#fff;box-shadow:0 8px 24px rgba(40,35,120,.22);display:grid;gap:10px}
.pb.hidden{display:none}
.pb-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pb-top .tag{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);padding:3px 10px;border-radius:999px}
.pb-top b{font-size:16px;font-weight:700}.pb-top .sub{margin-left:auto;font-size:12.5px;opacity:.85}
.pb-lang{display:inline-flex;gap:4px}.pb-lang button{font:inherit;font-size:11.5px;font-weight:700;color:#fff;background:transparent;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:2px 9px;cursor:pointer}
.pb-lang button.on{background:#fff;color:#3a2f86}
.pb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pb-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pb-c{background:#fff;color:#101828;border-radius:13px;padding:12px;display:flex;flex-direction:column;gap:7px;min-width:0}
.pb-hd{display:flex;align-items:center;gap:9px}
.pb-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center}
.pb-ic svg{width:19px;height:19px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pb-c h4{margin:0;font-size:14.5px;line-height:1.2}
.pb-c ul{margin:0;padding:0;list-style:none;display:grid;gap:5px}
.pb-c li{position:relative;padding-left:16px;font-size:13px;line-height:1.3;color:#1d2939;font-weight:500}
.pb-c li:before{content:"";position:absolute;left:3px;top:6px;width:6px;height:6px;border-radius:50%}
.pb-wide{flex-direction:row;align-items:center;gap:16px}.pb-wide .pb-hd{flex:none;width:230px}
.pb-wide ul{flex:1;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px}
.pb .c1 .pb-ic{background:#e7f6ee}.pb .c1 svg{stroke:#1e8a4f}.pb .c1 li:before{background:#1e8a4f}
.pb .c2 .pb-ic{background:#e8efff}.pb .c2 svg{stroke:#2e5bd9}.pb .c2 li:before{background:#2e5bd9}
.pb .c3 .pb-ic{background:#fdecef}.pb .c3 svg{stroke:#d6336c}.pb .c3 li:before{background:#d6336c}
.pb .c4 .pb-ic{background:#f1ecff}.pb .c4 svg{stroke:#6d4fd6}.pb .c4 li:before{background:#6d4fd6}
.pb .c5 .pb-ic{background:#fff4d6}.pb .c5 svg{stroke:#b7791f}.pb .c5 li:before{background:#b7791f}
.pb .c6 .pb-ic{background:#e3f7fa}.pb .c6 svg{stroke:#0e8fa3}.pb .c6 li:before{background:#0e8fa3}
.pb .c7 .pb-ic{background:#eaf6e3}.pb .c7 svg{stroke:#4c8a1e}.pb .c7 li:before{background:#4c8a1e}
.pb .c8 .pb-ic{background:#eef1f6}.pb .c8 svg{stroke:#344054}.pb .c8 li:before{background:#344054}
@keyframes pb-flash{0%{box-shadow:0 0 0 4px #ffd166}100%{box-shadow:0 8px 24px rgba(40,35,120,.22)}}
.pb.pb-flash{animation:pb-flash 1.6s ease-out}
@media (max-width:1100px){.pb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-wide{flex-direction:column;align-items:stretch}.pb-wide .pb-hd{width:auto}.pb-wide ul{grid-auto-flow:row}}
@media (max-width:640px){.pb-grid,.pb-two{grid-template-columns:1fr}}

/* Benefits: numbered bullets (soft grey badge, gentle fade every 5 s), bold key words */
.pb-c li{display:flex;align-items:flex-start;gap:7px;padding-left:0}
.pb-c li:before{content:none;display:none}
.pb-c li b{font-weight:800;color:#0f1a33}
.pb-c .pbt{min-width:0}
.pb-c .pbn{flex:none;min-width:20px;height:20px;padding:0 4px;border-radius:999px;display:inline-grid;place-items:center;font-size:10.5px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:#475467;background:#f2f4f7;border:1px solid #dfe3ea;margin-top:-1px;animation:pbn-fade 5s ease-in-out infinite}
@keyframes pbn-fade{0%,70%,100%{opacity:1}85%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.pb-c .pbn{animation:none}}

/* Live screen: where you left off · objection (live) · health (live) — under the client facts */
.live-brief{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:12px;margin:12px 0 2px;align-items:start}
.live-brief .left-off{margin-top:0}
.lb-left,.lb-side{display:grid;gap:10px;align-content:start;min-width:0}
.lb-left .ready-row{border:1px solid var(--line);border-radius:13px;padding:9px 14px;background:var(--panel);margin:0}
.lb-obj{display:grid;gap:7px;font-size:14px;line-height:1.45}
.lb-obj .obj-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lb-obj .obj-what{color:var(--ink)}
.lb-obj .now-tag{margin-left:auto;font-size:11px;font-weight:800;color:#fff;background:#d97706;border-radius:999px;padding:2px 8px}
.lb-obj .was-tag{margin-left:auto;font-size:11px;font-weight:700;color:var(--muted);background:var(--gray-soft);border-radius:999px;padding:2px 8px}
.lb-obj .lib-tag{font-size:11px;font-weight:700;color:#8a6100;background:#fdecc8;border-radius:999px;padding:2px 8px}
.lb-obj.live-now{border:2px solid #e5a000;background:#fff8e6;box-shadow:0 0 0 4px rgba(229,160,0,.12)}
.lb-obj .heard{font-style:italic;color:var(--ink-2)}
.lb-obj .say{display:flex;gap:9px;align-items:flex-start;background:var(--panel);border:1px solid color-mix(in srgb,var(--amber) 35%,var(--line));border-radius:10px;padding:8px 10px;font-size:15px;line-height:1.4}
.lb-obj .say-k{flex:none;font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#fff;background:#1f7a44;border-radius:6px;padding:3px 7px;margin-top:2px}
.lb-obj .say2{font-size:14px}.lb-obj .say2 .say-k{background:#667085}
.lb-obj .earlier{font-size:12.5px;color:var(--muted);border-top:1px dashed color-mix(in srgb,var(--amber) 35%,var(--line));padding-top:6px}
@keyframes lb-flash{0%{box-shadow:0 0 0 6px rgba(229,160,0,.45)}100%{box-shadow:0 0 0 4px rgba(229,160,0,.12)}}
.lb-obj.lb-flash{animation:lb-flash 1.6s ease-out}
.lb-health .health-line{margin-top:0}
.lb-health{display:grid;gap:6px}
.lb-heard,.lb-heard .lb-chips{display:contents}
.chip.now{background:#fff1d6;color:#8a4b00;border:1px solid #f0c36d}
.chip.now i{font-style:normal;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#fff;background:#d97706;border-radius:999px;padding:1px 6px;margin-left:5px}
.lb-heard .h-quote{flex-basis:100%;font-size:12.5px;color:var(--muted);font-style:italic}
@media (max-width:980px){.live-brief{grid-template-columns:1fr}}
/* Full script (closed by default) */
.fs{margin:12px 0 2px;border:1px solid var(--line);border-radius:13px;background:var(--panel);overflow:hidden}
.fs-bar{display:flex;align-items:center;gap:10px;padding:8px 12px;font-size:13px;flex-wrap:wrap}
.fs-bar .fs-ic{width:26px;height:26px;border-radius:8px;background:var(--gray-soft);display:grid;place-items:center;color:var(--ink-2)}
.fs-bar b{font-size:14px}
.fs-lang{display:inline-flex;gap:4px}.fs-lang button{font:inherit;font-size:11px;font-weight:700;border:1px solid var(--line);border-radius:999px;padding:1px 8px;color:var(--muted);background:transparent;cursor:pointer}
.fs-lang button.on{background:#344054;color:#fff;border-color:#344054}
.fs-toggle{margin-left:auto;font:inherit;font-weight:700;font-size:13px;color:#2438b0;background:#eef1ff;border:1px solid #d6dcff;border-radius:999px;padding:4px 12px;cursor:pointer}
.fs-chips{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px;border-top:1px solid var(--line);background:var(--panel-2)}
.fs-chip{font:inherit;font-size:11.5px;font-weight:650;padding:3px 9px;border-radius:999px;border:1px solid var(--line);color:var(--ink-2);background:var(--panel);cursor:pointer}
.fs-chip.done{color:var(--muted)}.fs-chip.on{background:#2438b0;color:#fff;border-color:#2438b0}
.fs-body{border-top:1px solid var(--line);padding:10px 12px 12px;max-height:300px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;align-items:start;position:relative}
.fs-step{margin:0;padding:8px 10px;border-radius:9px}
.fs-step.here{background:#eef1ff;box-shadow:inset 3px 0 0 #2438b0}.fs-step.past{opacity:.55}
.fs-step h5{margin:0 0 5px;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2);display:flex;align-items:center;gap:6px}
.fs-step h5 em{font-style:normal;font-size:10px;letter-spacing:.04em;color:#fff;background:#2438b0;border-radius:999px;padding:1px 7px;margin-left:auto}
.fs-n{width:18px;height:18px;border-radius:50%;background:var(--gray-soft);border:1px solid var(--line);display:inline-grid;place-items:center;font-size:10px;color:var(--ink-2)}
.fs-step p{margin:0 0 3px;font-size:13px;line-height:1.45;color:var(--ink-2)}
.fs-step p.fs-b{font-weight:700;color:var(--ink)}
.fs-step p.fs-cue{font-size:10.5px;font-weight:800;letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.fs-lbl{font-size:10px;font-weight:800;letter-spacing:.05em;color:var(--muted);text-transform:uppercase}
@media (max-width:760px){.fs-body{grid-template-columns:1fr}}

/* Needs you rows open the lead card on click */
.ny-row.clickable:hover { filter: brightness(0.97); }
.ny-row.clickable:hover .ny-text b { color: var(--brand); text-decoration: underline; }

/* Live screen: the video they saw (one slim line on the first call; a small link later) */
#c-adline{margin:12px 0 0}
.adv2{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);border-left:3px solid #1e8a4f;border-radius:12px;padding:8px 14px}
.adv2.life{border-left-color:#2e5bd9}
.av-ic{flex:none;width:24px;height:24px;border-radius:50%;background:#e7f6ee;color:#1e8a4f;display:grid;place-items:center}
.adv2.life .av-ic{background:#e8efff;color:#2e5bd9}
.av-k{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.av-t{font-size:14.5px;color:var(--ink)}
.av-chip{font-size:12px;font-weight:600;color:#1e7a44;background:#eef8f2;border-radius:999px;padding:2px 9px}
.adv2.life .av-chip{color:#2e5bd9;background:#eef3ff}
.av-more{margin-left:auto;font:inherit;font-size:13px;font-weight:600;color:var(--ink-2);background:none;border:0;cursor:pointer;padding:2px 4px}
.av-details{margin-top:6px}
.left-off h3{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap}
.left-off .ad-link{margin-left:auto;text-transform:none;letter-spacing:0;font:inherit;font-size:12.5px;font-weight:600;color:var(--muted);border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:1px 9px;cursor:pointer}

/* Closer double dial in the client timeline: one line, tries underneath */
.timeline .dd-pill { display: inline-block; margin-left: 5px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 18px; background: var(--brand-soft); color: var(--brand); vertical-align: 1px; }
.timeline .tl-tries { margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; max-width: 420px; }
.timeline .tl-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 5px 10px; font-size: 12.5px; }
.timeline .tl-try + .tl-try { border-top: 1px solid var(--line); }
.timeline .tl-n { min-width: 46px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.timeline .tl-d { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.timeline .tl-d.call-ok { background: var(--green); }
.timeline .tl-d.call-no { background: var(--red); }
.timeline .tl-d.call-vm { background: transparent; border: 2px solid var(--amber); width: 6px; height: 6px; }
.timeline .tl-try .tl-audio { flex-basis: 100%; }

/* Settings › While a lead is ringing */
.ring-music .rm-ring-wrap { margin: 14px 0 12px; }
.ring-music .rm-ring { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ring-music .rm-ring:hover { border-color: var(--brand); }
.ring-music .rm-ring.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.ring-music .rm-ring-ic { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); }
.ring-music .rm-ring-txt { display: grid; gap: 2px; flex: 1; }
.ring-music .rm-play-sm { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); font-size: 12px; margin-right: 34px; }
.ring-music .rm-play-sm:hover { border-color: var(--brand); color: var(--brand); }
.ring-music .rm-ring .rm-check { top: 50%; transform: translateY(-50%); right: 12px; }
.ring-music .rm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
@media (max-width: 1100px) { .ring-music .rm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ring-music .rm-tile { position: relative; aspect-ratio: 2.15 / 1; border-radius: 14px; border: 0; padding: 0; cursor: pointer; overflow: hidden; background-color: #1f2230; background-size: cover; background-position: center; color: #fff; text-align: left; font: inherit; box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: transform .15s, box-shadow .15s; }
.ring-music .rm-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.ring-music .rm-tile.on { outline: 3px solid var(--brand); outline-offset: 2px; }
.ring-music .rm-tile-foot { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; }
.ring-music .rm-play { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ring-music .rm-play:hover { transform: scale(1.08); }
.ring-music .rm-tile-label { font-weight: 700; font-size: 17px; text-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-music .rm-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.ring-music .rm-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ring-music .rm-vol { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.ring-music .rm-vol input { width: 220px; accent-color: var(--brand); }
.ring-music .rm-vol-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-size: 15px; }
.ring-music .rm-bar-btns { margin-left: auto; display: inline-flex; gap: 8px; }
.ring-music .rm-preview { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 700; border: 0; padding: 9px 18px; }
.ring-music .rm-preview:hover { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.ring-music .rm-credit { margin: 10px 0 0; opacity: .7; }
.card.settings.ring-music { max-width: 1180px; width: 100%; }
.ring-music .rm-tile-label { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* A live fact the client just said (plan check): brief green flash on its box */
.heard-flash { animation: heard-flash 2.4s ease-out; }
@keyframes heard-flash { 0% { background: var(--green-soft); box-shadow: 0 0 0 2px var(--green); } 100% { background: transparent; box-shadow: 0 0 0 0 transparent; } }

/* The line shown during the 15 s text wait between the two dials */
.dd-quote { position: relative; margin: 10px 0 0; padding: 14px 18px 14px 54px; border-radius: 14px; background: linear-gradient(135deg, #fff5f8 0%, #fdf2e7 100%); border: 1px solid #f6dbe4; }
.dd-quote .dq-heart { position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: #fde4ee; color: #be185d; display: grid; place-items: center; font-size: 13px; animation: dq-beat 1.6s ease-in-out infinite; }
.dd-quote p { margin: 0; font: italic 17px/1.45 Georgia, 'Times New Roman', serif; color: #3b1d2a; }
.dd-quote .dq-tag { display: block; margin-top: 6px; font: 800 11px/1.2 inherit; font-family: inherit; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #be185d; }
.dd-quote.in { animation: dq-in .6s ease-out; }
@keyframes dq-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } }
@keyframes dq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dd-quote { background: linear-gradient(135deg, #2a1620 0%, #2a1f14 100%); border-color: #4a2a38; } :root:not([data-theme="light"]) .dd-quote p { color: #f6dbe4; } }

/* 1st try of a double dial: big "Voicemail? Ring 2nd try" button next to Hang up (Sep 27) */
.btn-warn-big { background: #f59e0b; color: #1f1300; font-weight: 800; padding: 10px 16px; border: 0; box-shadow: 0 2px 8px rgba(245, 158, 11, .35); }
.btn-warn-big:hover { background: #fbbf24; }

/* Top bar: ring station button + small picker */
.rq-btn{display:inline-flex;align-items:center;gap:6px}
.rq-btn.on{border-color:color-mix(in srgb,var(--brand) 45%,var(--line));color:var(--brand)}
.rq-chev{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:.7}
.rq-eq{display:none;align-items:flex-end;gap:1.5px;height:11px}
.rq-btn.on .rq-eq{display:inline-flex}
.rq-eq i{display:block;width:2px;height:4px;background:currentColor;border-radius:1px}
.rq-btn.playing .rq-eq i{animation:rq-eq .9s ease-in-out infinite}
.rq-btn.playing .rq-eq i:nth-child(2){animation-delay:-.3s}.rq-btn.playing .rq-eq i:nth-child(3){animation-delay:-.6s}
@keyframes rq-eq{0%,100%{height:3px}50%{height:11px}}
.rq-bell{font-size:12px;line-height:1}
.rq-pop{position:fixed;z-index:95;width:300px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px;box-shadow:0 12px 36px rgba(15,23,42,.18);display:flex;flex-direction:column;gap:8px}
.rq-pop.hidden{display:none}
.rq-hd{display:flex;justify-content:space-between;align-items:baseline}
.rq-hd b{font-size:13px}.rq-hd span{font-size:11px;color:var(--muted)}
.rq-list{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.rq-row{display:flex;align-items:center;gap:8px;padding:5px 6px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:13px;text-align:left;cursor:pointer;min-width:0}
.rq-row:hover{background:var(--panel-2)}
.rq-row.on{background:var(--brand-soft);color:var(--brand);font-weight:650}
.rq-row.full{grid-column:1/-1}
.rq-th{width:26px;height:26px;border-radius:6px;flex:none;background:var(--panel-2) center/cover no-repeat;display:grid;place-items:center;font-size:14px}
.rq-row .rq-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.rq-row .rq-ok{margin-left:auto;font-size:12px}
.rq-ft{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:8px}
.rq-vic{width:15px;height:15px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.rq-ft input{flex:1;min-width:0;padding:0;height:4px;accent-color:var(--brand)}
.rq-ib{width:28px;height:28px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer;font-size:12px;display:grid;place-items:center;padding:0}
.rq-ib:hover{border-color:var(--brand)}
.rq-ib:disabled{opacity:.4;cursor:default}
.rq-now{font-size:11.5px;color:var(--muted);min-height:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- Bank step helper (drawer-bank) ---------- */
.bank-row { margin-top: 10px; }
.bh-top { display: flex; gap: 8px; align-items: center; }
.bh-search { flex: 1; }
.bh-lang button { font-size: 12px; padding: 4px 9px; }
.bh-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bh-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; color: var(--ink); }
.bh-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.bh-more { font-size: 13px; padding: 4px 8px; border-radius: 999px; width: auto; }
.bh-name { margin: 2px 0 0; font-size: 17px; }
.bh-steps { margin: 0; padding: 0; list-style: none; counter-reset: bh; }
.bh-steps li { counter-increment: bh; display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.45; }
.bh-steps li:first-child { border-top: 0; }
.bh-steps li::before { content: counter(bh); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.bh-btn { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-weight: 750; font-size: 13.5px; white-space: nowrap; }
.bh-warn { background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--line)); border-radius: 10px; padding: 8px 11px; font-size: 14px; }
.bh-rt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; background: var(--panel-2); }
.bh-rt-h { display: flex; align-items: center; gap: 10px; }
.bh-rt-h select { width: auto; margin-left: auto; }
.bh-rt p { margin: 0; }
.bh-num { display: flex; align-items: center; gap: 6px; }
.bh-num b { font-size: 20px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.bh-num.alt b { font-size: 16px; }
.bh-check { display: grid; gap: 6px; }
.bh-check b { font-size: 13px; }
.bh-check-in { font-size: 18px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.bh-check-out { display: flex; flex-wrap: wrap; gap: 6px; }
.bh-remind { display: flex; flex-wrap: wrap; gap: 6px; }
.bh-remind span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 650; }
.bh-fb summary { font-weight: 700; cursor: pointer; font-size: 14px; }
.bh-fb ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 3px; }

/* Live › Next up groups (Sep 28) */
.nq-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.nq-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-left: 6px solid var(--brand); }
.nq-num { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.nq-title { flex: 1 1 auto; min-width: 0; }
.nq-title b { font-size: 15px; color: var(--ink); }
.nq-title b .muted { font-weight: 500; }
.nq-src { background: var(--panel); border: 1px solid var(--line); font-weight: 600; }
.nq-list { padding: 0 10px 10px 10px; gap: 6px; }
.nq-row { background: var(--panel); border-left-width: 1px; }
.nq-row .nq-time { width: 84px; flex-shrink: 0; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.nq-row .ny-text b { font-size: 15px; }
.nq-first { border-color: var(--brand); box-shadow: 0 2px 10px rgba(29, 63, 191, .12); }
.nq-next { font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--brand); }
.nq-more { justify-content: space-between; }
.live-alerts .ny-head .nq-count { background: var(--brand); }
.live-alerts:has(.nq-group) { display: grid; gap: 10px; }
.nq-legend .nq-lg { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); }
.nq-legend .nq-lg > span:first-child { width: 96px; flex-shrink: 0; }
.nq-legend .nq-lg p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.nq-legend .dd-tag { position: static; }
.nq-at { font-weight: 600; }
.nq-dots { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.nq-dots i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Plan card (drawer-plan) ---------- */
.pc-sum { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel-2); }
.pc-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.pc-langrow { align-items: center; gap: 10px; }
.pc-out { display: grid; gap: 10px; }
.pc-linkrow { gap: 6px; }
.pc-linkrow input { flex: 1; font-size: 12.5px; }
.pc-status { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-st { font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); }
.pc-st.on { border: 1px solid transparent; background: var(--green-soft); color: var(--green); }
.pc-st.q { border: 1px solid transparent; background: var(--amber-soft); color: var(--amber); }

/* Shifts (Floor page + editor) */
.shift-cell { display: inline-flex; flex-direction: column; gap: 2px; }
.shift-dialog { max-width: 720px; width: calc(100% - 32px); }
.sd-grid { display: grid; gap: 8px; margin: 12px 0; }
.sd-row { display: grid; grid-template-columns: 96px 60px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.sd-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sd-times .input { width: 118px; padding: 6px 8px; }
.sd-times.dim { opacity: .4; }
.sd-off, .sd-split { display: inline-flex; align-items: center; gap: 4px; }
.sd-two { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .sd-row { grid-template-columns: 1fr auto; } .sd-times { grid-column: 1 / -1; } }
.my-shift { display: inline-flex; align-items: center; gap: 6px; }

/* Leads page: live transfers report */
.xfer-card { margin: 12px 0; padding: 14px 16px; }
.xfer-card h3 { margin: 0; font-size: 16px; }
.xk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.xk { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.xk b { font-size: 22px; }
.xk.good b { color: var(--green); } .xk.warn b { color: var(--amber); } .xk.bad b { color: var(--red); }
.xk-list { margin-top: 10px; }

/* Timeline: the planned call-back on top, apart from the history (Sep 28) */
.tl-next { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; padding: 9px 12px; border: 1.5px dashed var(--brand); border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13.5px; }
.tl-next .ic { width: 16px; height: 16px; flex-shrink: 0; }
.tl-next.late { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }

/* double dial progress line (under the client's name on a call-back) */
.dd-line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 12px 0 0; }
.ddl-s { min-width: 0; }
.ddl-bar { display: block; height: 4px; border-radius: 3px; background: var(--line); }
.ddl-lb { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddl-s.done .ddl-bar, .ddl-s.ok .ddl-bar { background: var(--green); }
.ddl-s.done .ddl-lb { color: var(--green); }
.ddl-s.on .ddl-bar { background: var(--amber); animation: ddl-pulse 1.1s ease-in-out infinite; }
.ddl-s.on .ddl-lb { color: var(--amber); }
.ddl-s.bad .ddl-bar { background: var(--red); }
.ddl-s.bad .ddl-lb { color: var(--red); }
.dd-line.all-ok .ddl-s:first-child .ddl-lb { color: var(--green); overflow: visible; }
@keyframes ddl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ddl-s.on .ddl-bar { animation: none; } }

/* wrap-up: the call dropped mid-conversation, call them back right away */
.dropped-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #eef3ff; border: 1px solid #d6e0fb; }

/* Live call facts: smaller boxes + Family (Sep 28) */
.call .facts { grid-template-columns: 1.5fr 1fr .55fr .9fr .6fr .75fr 1.15fr 1.25fr; gap: 5px; margin-top: 8px; } /* Oct 1: + Health, Family narrower */
.call .facts div { padding: 4px 8px; border-radius: 8px; }
.call .facts dt { font-size: 9.5px; letter-spacing: .03em; }
.call .facts dd { font-size: 13px; font-weight: 700; margin-top: 0; line-height: 1.3; }
.call .facts .fam-cell dd { font-weight: 600; }
/* Oct 1: license for the client's state, in the State box */
.call .facts div.lic-no { border-color: #f1b4ae; background: #fff4f2; }
.facts .lic-tag { font-size: 10.5px; padding: 1px 6px; vertical-align: 1px; }
.facts .lic-ok { font-size: 10.5px; font-weight: 650; color: #1f7a4d; vertical-align: 1px; }
/* Oct 1: Text / Email my credentials with a small line icon */
.btn-iconed { display: inline-flex; align-items: center; gap: 7px; }
.btn-iconed .btn-ic { width: 15px; height: 15px; flex: none; opacity: .75; stroke-width: 1.7; }
.call .facts .health-cell dd { font-weight: 650; font-size: 12.5px; }
.call .facts .health-cell dd.h-ok { color: #1f7a4d; }
.call .facts .health-cell dd.h-warn { color: #a3620a; }
.call .facts .health-cell dd.h-bad { color: #b42318; }
.call .facts .health-cell dd small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .call .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .call .facts .fam-cell, .call .facts .health-cell { grid-column: span 2; } }

/* live call: ID type still empty — slow pulse so the closer asks which document they apply with */
.ask-blink { border-radius: 8px; animation: ask-blink 2.6s ease-in-out infinite; }
.ask-blink dd::after { content: ' · ask which document'; font-size: 11px; font-weight: 700; color: #a55c00; }
@keyframes ask-blink { 0%, 100% { background: transparent; box-shadow: 0 0 0 0 transparent; } 50% { background: #fdf0d9; box-shadow: 0 0 0 2px #f0b95a; } }
@media (prefers-reduced-motion: reduce) { .ask-blink { animation: none; background: #fdf0d9; } }

/* wrap-up auto-save countdown, then "taking the next call 3·2·1" */
.auto-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #eaf7ef; border: 1px solid #bfe6cc; font-weight: 600; }
.auto-bar.next { background: #eef3ff; border-color: #d6e0fb; }
.auto-bar.stopped { background: var(--panel-2, #f7f8fb); border-color: var(--line, #e5e8ef); font-weight: 500; }
.auto-text { flex: 1; min-width: 220px; }
.auto-btns { display: inline-flex; gap: 6px; }
.auto-ring { --p: 0; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#1f8a4c calc(var(--p) * 1%), #cdebd8 0); display: grid; place-items: center; flex: none; }
.auto-ring b { width: 26px; height: 26px; border-radius: 50%; background: #eaf7ef; display: grid; place-items: center; font-size: 13px; color: #14532d; }
.auto-bar.next .auto-ring { background: conic-gradient(#1d3fbf calc(var(--p) * 1%), #d6e0fb 0); }
.auto-bar.next .auto-ring b { background: #eef3ff; color: #1d3fbf; }
.auto-bar.stopped .auto-ring { display: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

.nq-row.nq-later { opacity: .62; }
.nq-row.nq-later:hover { opacity: .9; }
.nq-row.nq-empty { background: transparent; border-style: dashed; justify-content: center; padding: 8px; }
.tz-clock.tz-mine b { margin-right: 2px; }

/* Live › Next up: empty groups as one thin line at the bottom */
.nq-clear { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2, #f7f8fb); border: 1px dashed var(--line, #e5e8ef); font-size: 12px; color: var(--muted, #6b7280); }
.nq-clear-ok { font-weight: 800; color: #1f8a4c; }
.nq-clear-item { display: inline-flex; align-items: center; gap: 6px; }
.nq-clear-item i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* sidebar: group names readable on the dark background (blue "New lead" was invisible) */
.sn-time strong { filter: brightness(1.9) saturate(0.9); }

/* Live › Scheduled: later-today call-backs, one line each */
.nq-minis { list-style: none; margin: 6px 0 0; padding: 0; }
.nq-minis ul { list-style: none; margin: 0; padding: 2px 0; background: #fff; border: 1px solid var(--line, #e5e8ef); border-radius: 10px; }
.nq-mini { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; padding: 7px 12px; border-bottom: 1px dashed #d6ecdf; font-size: 13px; cursor: pointer; }
.nq-mini:last-child { border-bottom: 0; }
.nq-mini:hover { background: #f6fbf8; }
.nq-mini-time { font-weight: 700; color: #0f8a5f; }
.nq-mini-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-mini-at { font-weight: 600; }
@media (max-width: 700px) { .nq-mini { grid-template-columns: 60px 1fr; } .nq-mini-at { display: none; } .nq-mini-who { white-space: normal; } }

.tz-clock .tz-pin { width: 12px; height: 12px; fill: currentColor; vertical-align: -1px; margin-right: 3px; }

/* Live: dial opportunities on hold (something better is due) — one slim line */
.nq-held { opacity: .9; }
.nq-held .nq-head { padding-top: 8px; padding-bottom: 8px; }

/* nav badges: grey = information (next call-back time, dial opportunities); red = act now */
.nav .dot.dot-quiet, .tabbar .dot.dot-quiet { background: rgba(255,255,255,.14); color: #c9d2ea; font-weight: 700; }
.tabbar .dot.dot-quiet { background: #e5e8ef; color: #4b5563; }

/* Outbound › Long shots explanation strip */
.ob-time.long { background: var(--panel-2, #f7f8fb); border: 1px dashed var(--line, #e5e8ef); color: var(--muted, #6b7280); }
.ob-time.long b { color: #374151; }

/* call screener: what to say, big and calm */
.scr-pop { margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: #eef3ff; border: 2px solid #1d3fbf; box-shadow: 0 6px 20px rgba(29,63,191,.15); animation: scr-in .25s ease-out; }
.scr-pop .scr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #1d3fbf; }
.scr-pop .scr-line { margin: 8px 0 6px; font-size: 22px; line-height: 1.35; font-weight: 700; color: #0f1b4d; }
.scr-pop p { margin: 4px 0 0; }
@keyframes scr-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Plan card: carrier illustration drop zone (Sep 28) */
.pc-ill { margin: 10px 0 4px; }
.pc-drop { display: grid; gap: 3px; padding: 12px 14px; border: 1.5px dashed var(--brand); border-radius: 12px; background: var(--brand-soft); cursor: pointer; }
.pc-drop b { color: var(--brand); font-size: 14px; }
.pc-drop.over { background: #dfe7ff; border-style: solid; }
.pc-ill-state { margin-top: 6px; }
.pc-ill-state.bad { color: var(--red); }
.lc-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Lead card: plan card & illustration (after the call) */
.pcl-box{border:1px solid var(--line,#e5e8ef);border-radius:12px;padding:12px 14px;margin:10px 0;display:flex;flex-direction:column;gap:8px}
.pcl-h{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.pcl-ill{display:flex;gap:12px;align-items:center}
.pcl-thumb{width:84px;height:auto;border:1px solid var(--line,#e5e8ef);border-radius:6px;flex-shrink:0}
.pcl-btns{display:flex;gap:8px;flex-wrap:wrap}
.pcl-state:empty{display:none}
/* Leads: "Spoke to María" toggle (works on top of every filter) */
#leads-filter .lf-spoke { font-weight: 700; border: 1px solid color-mix(in srgb, var(--green, #2f855a) 45%, var(--line)); background: color-mix(in srgb, var(--green, #2f855a) 7%, transparent); color: inherit; }
#leads-filter .lf-spoke[aria-pressed="true"] { background: var(--green, #2f855a); color: #fff; border-color: var(--green, #2f855a); }

.pc-ill-state .chip{white-space:normal;max-width:100%;height:auto;line-height:1.35;padding-top:4px;padding-bottom:4px}

/* Settings: my business card (headshot) */
.hs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,200px));gap:18px;margin:12px 0}
.hs-lbl{font-size:12px;font-weight:700;color:var(--muted,#6b7280);margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}
.hs-frame{aspect-ratio:1/1;border:1px solid var(--line,#e5e8ef);border-radius:14px;background:#f5f7fb;display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center;padding:0 10px}
.hs-frame img{width:100%;height:100%;object-fit:cover;display:block}
.hs-frame.round{border-radius:50%;max-width:220px;margin:0 auto;box-shadow:0 0 0 3px #fff,0 0 0 5px #cfe9dc}
.hs-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
@media (max-width:760px){.hs-grid{grid-template-columns:1fr 1fr}}

/* texts: which of our numbers sent it */
.txt .txt-line { font-size: 11px; color: var(--muted, #6b7280); margin-top: 2px; }
.txt.out .txt-line { text-align: right; }

#plan-status.bad { color: #b42318; font-weight: 700; }

/* wrap-up: draft upon agent instruction */
.draft-agent { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--muted, #6b7280); }
.draft-agent input { width: auto; margin: 0; }

/* Case Support · Today */
/* Oct 2: no horizontal overflow — header line (who + buttons), then the open items full width, each wrapping */
.ct-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ct-kpi { background: var(--surface, #fff); border: 1px solid var(--line, #e5e8ef); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.ct-kpi b { display: block; font-size: 24px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.ct-kpi span { font-size: 12px; color: var(--muted, #6b7280); }
.ct-kpi.red b { color: #c42e2a; } .ct-kpi.amber b { color: #a55c00; } .ct-kpi.green b { color: #1f8a4c; }
.ct-list { padding: 0 10px 8px; }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; background: #fff; border: 1px solid var(--line, #e5e8ef); border-radius: 10px; margin-top: 6px; padding: 10px 12px; min-width: 0; }
.ct-who { min-width: 0; grid-column: 1; grid-row: 1; }
.ct-btns { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 420px; }
.ct-mid { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.ct-mid:empty { display: none; }
.ct-row .chip { white-space: normal; max-width: 100%; }
.ct-who .chip { margin-left: 4px; vertical-align: 1px; }
.ct-btns .btn { white-space: nowrap; }
.ct-reqs { display: grid; gap: 6px; }
.ct-req { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border-left: 3px solid #a55c00; background: #fffaf0; }
.ct-req.red { border-left-color: #c42e2a; background: #fff5f5; }
.ct-req-text { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.ct-req .btn { flex: 0 0 auto; }
.ct-owner { flex: 0 0 auto; min-width: 58px; text-align: center; font-size: 11px; }
.chip.gray { background: #eef0f4; color: #4b5563; }
.ct-checked { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ct-need, .ct-date { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line, #e5e8ef); background: #fff; }
@media (max-width: 900px) { .ct-row { grid-template-columns: 1fr; } .ct-btns { grid-column: 1; grid-row: auto; justify-content: flex-start; max-width: none; } .ct-mid { grid-row: auto; } .ct-req { flex-wrap: wrap; } }
.lead-booked{border:1px solid var(--green);background:var(--green-soft);display:flex;flex-wrap:wrap;gap:4px 6px;align-items:baseline}
.lead-booked-msg{color:var(--green);font-weight:600;margin:8px 0 0}

/* ---- Hiring (manager) ---- */
.hire-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.hire-list { display: grid; gap: 10px; }
.hire-item { padding: 0; overflow: hidden; }
.hire-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.hire-row .who { display: grid; gap: 2px; }
.hire-valeria { display: inline-flex; gap: 8px; align-items: center; }
.hire-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.hire-int { display: grid; gap: 4px; justify-items: start; }
.hire-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; margin: 8px 0; }
.hire-fact { display: grid; gap: 1px; }
.hire-fact b { font-weight: 600; font-size: 14px; }
.hire-summary { margin: 6px 0; line-height: 1.5; }
.hire-play { margin-top: 8px; display: grid; gap: 8px; }
.hire-play audio { width: 100%; }
.hire-transcript pre { white-space: pre-wrap; font: inherit; font-size: 13px; max-height: 320px; overflow: auto; background: var(--gray-soft); padding: 10px; border-radius: 8px; }
.hire-dials { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.hire-prog { display: grid; gap: 4px; }
.hire-prog .bar { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.hire-prog .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.hire-prog .bar i.ok { background: var(--green); }
.hire-detail { padding: 0 16px 16px; display: grid; gap: 12px; }
.hire-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hire-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.hire-appts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.hire-state { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.hire-state.on { border-color: var(--green); background: var(--green-soft); }
.hire-state .check { display: flex; gap: 8px; align-items: center; }
.hire-state .input.sm, .hire-state input.sm { padding: 5px 8px; font-size: 13px; }
.hire-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.hire-steps li.done b { color: var(--green); }
.hire-steps .check { display: inline-flex; gap: 8px; align-items: center; margin-right: 8px; }
.hire-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hire-docs li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hire-docs a { color: var(--brand); font-weight: 600; word-break: break-word; }
.hire-docform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.hire-lib { display: grid; gap: 10px; position: sticky; top: 16px; }
.hire-lib .hire-docform { grid-template-columns: 1fr; }
#hire-new .input { min-width: 150px; }
@media (max-width: 1000px) { .hire-layout { grid-template-columns: 1fr; } .hire-lib { position: static; } }
@media (max-width: 640px) { .hire-row { grid-template-columns: 1fr auto; } .hire-prog { grid-column: 1 / -1; order: 3; } .hire-docform { grid-template-columns: 1fr; } }
#hire-new { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr auto; gap: 8px; flex: 1; align-items: center; }
#hire-new .input { min-width: 0; width: 100%; }
@media (max-width: 760px) { #hire-new { grid-template-columns: 1fr; } }

.banner-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 15px; cursor: pointer; opacity: .7; }
.banner-x:hover { opacity: 1; background: rgba(0,0,0,.08); }

/* ---- Lock message ---- */
.notice-lock { position: fixed; inset: 0; z-index: 10000; background: rgba(8, 11, 18, .82); display: grid; place-items: center; padding: 16px; }
.notice-card { width: min(620px, 100%); background: var(--panel); color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); display: grid; gap: 12px; text-align: center; border-top: 6px solid var(--red); }
.notice-ic { font-size: 40px; }
.notice-card h2 { font-size: 22px; font-weight: 800; }
.notice-lock-text { font-size: 19px; line-height: 1.5; white-space: pre-wrap; font-weight: 600; }
.notice-form { display: grid; gap: 14px; }
.notice-form textarea { width: 100%; }
.notice-form .stack { display: grid; gap: 6px; }
.notice-to { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.notice-people { display: grid; gap: 6px; padding-left: 26px; }
.notice-active { display: grid; gap: 10px; background: var(--red-soft); border: 1px solid var(--red); border-radius: 12px; padding: 14px; }
.notice-live b { color: var(--red); }
.btn-danger-soft { background: var(--red-soft) !important; color: var(--red) !important; border-color: var(--red) !important; }

/* Customer Support inbox (Sep 29) */
.sp-cols { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .sp-cols { grid-template-columns: 1fr; } }
.sp-listcard { padding: 0; overflow: hidden; }
.sp-detailcard { padding: 18px 20px; min-height: 320px; }
.sp-group { border-bottom: 1px solid var(--line); padding: 8px 0; }
.sp-gh { display: flex; justify-content: space-between; padding: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.sp-ul { list-style: none; margin: 0; padding: 0; }
.sp-empty { padding: 4px 14px 10px; }
.sp-row { display: flex; gap: 10px; padding: 10px 14px; cursor: pointer; border-left: 3px solid transparent; }
.sp-row:hover { background: var(--panel-2); }
.sp-row.sel { background: var(--brand-soft); border-left-color: var(--brand); }
.sp-av { width: 34px; height: 34px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 13px; }
.sp-rt { flex: 1; min-width: 0; }
.sp-n { display: flex; justify-content: space-between; gap: 8px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.sp-chips .chip { font-size: 11px; padding: 1px 7px; }
.sp-s { color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sp-dh h2 { font-size: 18px; margin-bottom: 3px; }
.sp-msg { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
.sp-body { white-space: pre-wrap; margin-top: 4px; }
.sp-en { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; }
.sp-ai { margin-top: 12px; background: var(--violet-soft); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.sp-ai b { color: var(--violet); }
.sp-box { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.sp-box h3 { margin-bottom: 8px; }
.sp-reply { width: 100%; resize: vertical; }
.sp-rb { margin-top: 8px; flex-wrap: wrap; gap: 8px; }
.sp-rb .grow, .sp-actions .grow { flex: 1; }
.sp-actions { margin-top: 14px; gap: 8px; }
.sp-log { margin-top: 16px; }
.cm-frame { width: 100%; height: 56vh; border: 1px solid var(--line); border-radius: 12px; background: #f3f5f9; }

.cred-ic { display: inline-flex; align-items: center; gap: 6px; }
.cred-ic-note { font-size: 12px; font-weight: 600; color: var(--good, #1b7f4b); white-space: nowrap; }
.cred-ic-note:empty { display: none; }
.cred-ic-note.bad { color: var(--bad, #b42318); white-space: normal; }
.icon-btn.armed { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }
.cred-ic-state { font-size: 13px; padding: 3px 6px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }

/* Morning check card (Floor) */
.morning-body .mc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.morning-body .mc-head .btn { margin-left: auto; }
.morning-body .mc-sum { margin: 0 0 10px 18px; padding: 0; line-height: 1.5; }
.morning-body .mc-acts { margin: 4px 0 10px 0; padding: 0; list-style: none; line-height: 1.6; }
.morning-body h4 { margin: 8px 0 2px; font-size: 13px; }
.morning-body .table-wrap { margin: 6px 0; }

/* Sep 29: Quote started / Win back / wrap-up switch */
.chip.quote { background: #dff4f8; color: #0e7490; font-weight: 700; }
.quote-switch { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.quote-switch .qs-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.quote-switch .qs-row input { width: 18px; height: 18px; }
.quote-switch .qs-more { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.quote-switch .qs-more label { display: flex; flex-direction: column; font-size: 12px; gap: 2px; }
.quote-switch .qs-more input { width: 150px; }
.ob-row.ob-winback { border-left: 4px solid #d4a017; }

/* Sep 30 (Istvan): case status colors — Pending yellow, Paid green, Declined red, Issued-not-paid urgent */
.chip.urgent { background: #dc2626; color: #fff; animation: ul-urgent 1.4s ease-in-out infinite; }
@keyframes ul-urgent { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 50% { box-shadow: 0 0 0 5px rgba(220,38,38,0); } }
@media (prefers-reduced-motion: reduce) { .chip.urgent { animation: none; } }
.case-row { border-left: 5px solid transparent; }
.case-row.st-amber { border-left-color: var(--amber); }
.case-row.st-green { border-left-color: var(--green); }
.case-row.st-red { border-left-color: var(--red); }
.case-row.st-blue { border-left-color: var(--brand); }
.case-row.st-violet { border-left-color: var(--violet); }
.case-row.st-urgent { border-left-color: #dc2626; background: color-mix(in srgb, #dc2626 9%, transparent); }
.show-sm-only { display: none; }
@media (max-width: 860px) { .show-sm-only { display: block; margin-top: 4px; } }
.st-seg button[aria-pressed="true"].st-amber { background: var(--amber); }
.st-seg button[aria-pressed="true"].st-green { background: var(--green); }
.st-seg button[aria-pressed="true"].st-red { background: var(--red); }
.st-seg button[aria-pressed="true"].st-violet { background: var(--violet); }
.st-seg button.st-urgent { color: #dc2626; font-weight: 800; }
.st-seg button[aria-pressed="true"].st-urgent { background: #dc2626; color: #fff; }

/* Sep 30: pictures sent with a text (business card, plan card) */
.txt-files { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.txt-file img { display: block; max-width: 220px; max-height: 260px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.txt-file-link { font-weight: 600; text-decoration: underline; }

/* Sep 30: Mark HOT */
.quote-switch .qs-row + .qs-row { margin-top: 6px; }
.hot-toggle { padding: 2px 10px; font-size: 12px; }

/* Sep 30: lead card icon next to the client's name on a live call */
.lc-open { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: 4px; vertical-align: middle; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--brand); cursor: pointer; }
.lc-open:hover { background: var(--brand-soft); }
.lc-open .ic { width: 18px; height: 18px; }

/* FLOW International (Sep 30): the FLOW NMO · UniLife · All switch in the manager menu, group headings, Home */
.co-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; margin: 4px 0 10px; border-radius: 11px; background: rgba(127, 127, 127, .16); }
.co-btn { height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--side-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.co-btn:hover { background: rgba(127, 127, 127, .14); }
.co-btn[aria-pressed="true"] { color: #fff; }
.co-btn.co-flow[aria-pressed="true"] { background: #1F3A5F; }
.co-btn.co-uni[aria-pressed="true"] { background: #2E6B4E; }
.co-btn.co-all[aria-pressed="true"] { background: #1D1F1E; }
body.co-flow .brand-mark, body.co-all .brand-mark { background: #1F3A5F; }
.nav-head { padding: 14px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home-kpis .kpi small { display: block; margin-top: 2px; font-size: 12px; }
.home-kpis .kpi.co-flow b { color: #1F3A5F; }
.home-kpis .kpi.co-uni b { color: #2E6B4E; }
.chip.co-chip.co-flow { background: #E4EAF2; color: #1F3A5F; }
.chip.co-chip.co-uni { background: #E3F0E8; color: #245A40; }
@media (prefers-color-scheme: dark) {
  body.theme-hq .home-kpis .kpi.co-flow b { color: #9DB8DC; }
  body.theme-hq .home-kpis .kpi.co-uni b { color: #7FCBA4; }
  body.theme-hq .chip.co-chip.co-flow { background: #1B2D3F; color: #9DB8DC; }
  body.theme-hq .chip.co-chip.co-uni { background: #173524; color: #7FCBA4; }
}
.home-table td, .home-table th { vertical-align: middle; }

/* Sep 30 (Istvan): "Ask me anything" chat bubble (replaces Underwrite IQ in the closer menu) */
.ama-bubble { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); padding: 10px 15px 10px 12px;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(20, 30, 60, .28); }
.ama-bubble:hover { filter: brightness(1.06); }
.ama-bubble .ic { width: 18px; height: 18px; }
.drawer.ama { inset: auto 18px 72px auto; width: min(410px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); background: transparent; z-index: 59; }
.drawer.ama .drawer-card { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 16px 44px rgba(10, 16, 30, .3); gap: 8px; }
.drawer.ama .drawer-head h2 { font-size: 17px; }
.drawer.ama .iq-form textarea { min-height: 40px; }
@media (max-width: 860px) { .ama-bubble span { display: none; } .ama-bubble { padding: 12px; bottom: 78px; right: 12px; } .drawer.ama { right: 12px; bottom: 132px; height: min(560px, calc(100vh - 170px)); } }

body.theme-hq .co-btn { color: var(--ink); }
body.theme-hq .co-btn[aria-pressed="true"] { color: #fff; }
.bq-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bq-kpis .kpi.bad b { color: var(--red); }
#bq-agencies tr.sel td { background: var(--gray-soft); }
#bq-agents td.bad { color: var(--red); font-weight: 700; }
.bq-kpis .kpi span, .home-kpis .kpi span { display: block; }
.bq-kpis .kpi small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; }
/* the company switch: each button as wide as its label ("FLOW NMO" didn't fit in a third, Sep 30) */
.co-switch { display: flex; }
.co-btn { flex: 1 1 auto; padding: 0 10px; font-size: 13px; letter-spacing: -.01em; }
.co-btn.co-all { flex: 0 0 auto; padding: 0 14px; }

/* NLG's own scorecard on Business Quality (Sep 30) */
.bq-nlg { padding: 0 16px 16px; display: grid; gap: 14px; }
.bq-nlg .floor-kpis .kpi { box-shadow: none; background: var(--panel-2); }
.bq-nlg-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .bq-nlg-cols { grid-template-columns: 1fr; } }
.bq-nlg table td.worse { color: var(--red); font-weight: 700; }
.bq-nlg table td.better { color: var(--green, #1a7f4b); font-weight: 700; }
.bq-nlg .since { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.bq-nlg h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

#bq-nlg-card[hidden] { display: none; }

/* 3-way call panel (Sep 30) */
.conf{margin:12px 0;padding:12px 14px;border:1px solid var(--line,#d9dee7);border-radius:12px;background:var(--card,#fff)}
.conf-head{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin-bottom:8px}
.conf-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.conf-row .input{flex:1 1 220px;min-width:0;font-size:16px}
.conf-state{margin-top:8px;font-size:14px;color:var(--muted,#667085)}
.conf-state.on{color:var(--ok,#067647);font-weight:600}
.conf-pad{display:grid;grid-template-columns:repeat(3,64px);gap:6px;margin-top:10px}
.conf-key{height:44px;font-size:18px;font-weight:600;padding:0}

/* Sep 30 (Istvan): Scheduled call-backs — HOT / Quote / App bubbles never get cut off; the grey text shrinks instead */
.nq-mini-who { display: flex; align-items: center; gap: 6px; }
.nq-mini-name { flex: 0 0 auto; }
.nq-mini-badges { flex: 0 0 auto; display: inline-flex; gap: 4px; align-items: center; }
.nq-mini-badges .chip, .nq-mini-badges .score-badge { font-size: 11px; padding: 1px 7px; }
.nq-mini-grey { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .nq-mini-who { flex-wrap: wrap; } }

/* Sep 30: draft upon agent instruction */
.draft-box { background: #f8f5ff; border-left: 4px solid #6d3fd1; }
.draft-box p { margin: 4px 0 8px; }

/* Sep 30: Show client (screen link) */
.scr-panel { margin: 10px 0; border: 1px solid #b7e4cf; background: #f2fbf7; border-radius: 12px; padding: 10px 12px; }
.scr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.scr-state { font-size: 12px; color: #6b7280; }
.scr-state.good { color: #0f8a5f; font-weight: 600; }
.scr-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.scr-prev { position: relative; cursor: crosshair; user-select: none; touch-action: none; background: #0f172a; border-radius: 8px; overflow: hidden; }
.scr-prev video { display: block; width: 100%; height: auto; pointer-events: none; }
/* Oct 1 (Istvan): her camera in the preview, where and how the client's phone shows it (bottom-right) */
.scr-prev .scr-cam { position: absolute; right: 10px; bottom: 10px; width: 18%; min-width: 64px; max-width: 120px; aspect-ratio: 3 / 4; border-radius: 10px; border: 2px solid #fff; overflow: hidden; background: #1e293b; box-shadow: 0 4px 14px rgba(0,0,0,.35); pointer-events: none; }
.scr-prev .scr-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.scr-prev .scr-cam .scr-cam-tag { position: absolute; left: 5px; bottom: 5px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 999px; }
.scr-prev .scr-cam .scr-cam-off { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 700; color: #cbd5e1; }
.scr-prev .scr-cam.off video { visibility: hidden; }
.scr-prev .scr-cam.off .scr-cam-off { display: flex; }
/* Oct 1: camera Wide / Close / Closer — the client's phone shows the same framing */
.scr-prev .scr-cam.cam-wide { aspect-ratio: 4 / 3; width: 26%; max-width: 170px; }
.scr-prev .scr-cam video { transform-origin: 50% 40%; transition: transform .2s; }
.scr-prev .scr-cam.cam-closer video { transform: scaleX(-1) scale(1.6); }
.scr-camz { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 2px; padding: 3px; background: rgba(15,23,42,.78); border-radius: 999px; cursor: default; z-index: 3; }
.scr-camz span { font-size: 10px; font-weight: 700; color: #cbd5e1; padding: 0 5px 0 6px; }
.scr-camz button { font: inherit; font-size: 11px; font-weight: 700; color: #e2e8f0; background: transparent; border: 0; border-radius: 999px; padding: 3px 8px; cursor: pointer; }
.scr-camz button:hover { background: rgba(255,255,255,.12); }
.scr-camz button.on { background: #fff; color: #0f172a; }
.screens-list { display: grid; gap: 12px; }
.scr-rec { padding: 12px 14px; }
.scr-rec-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.scr-rec-body { margin-top: 10px; display: grid; gap: 8px; }
.scr-rec-video { width: 100%; max-width: 760px; border-radius: 8px; background: #0f172a; }
.scr-rec-call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scr-rec-audio { width: 100%; max-width: 760px; }
.scr-box { position: absolute; border: 2px dashed #6d3fd1; background: rgba(109, 63, 209, .12); pointer-events: none; }
.scr-unzoom { position: absolute; top: 8px; left: 8px; z-index: 5; font: 700 12px/1 inherit; font-family: inherit; color: #fff; background: #6d3fd1; border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.scr-unzoom:hover { background: #5a2fb8; }
.scr-unzoom.hidden { display: none; }
/* Oct 1 (Istvan): where the client zoomed in on their phone — red box on her preview */
.scr-cv { position: absolute; border: 2px solid #e11d48; background: rgba(225, 29, 72, .08); border-radius: 3px; pointer-events: none; transition: all .25s ease; }
.scr-cv span { position: absolute; left: -2px; top: -20px; font-size: 10.5px; font-weight: 700; color: #fff; background: #e11d48; padding: 1px 6px; border-radius: 4px 4px 4px 0; white-space: nowrap; }
/* the floating "Keep on top" window (Document Picture-in-Picture) */
body.scr-pip-doc { margin: 0; background: #0f172a; }
body.scr-pip-doc .scr-prev { border-radius: 0; min-height: 100vh; display: flex; align-items: center; }
body.scr-pip-doc .scr-prev video#scr-video { width: 100%; }
body.scr-pip-doc .scr-pip-bar { position: fixed; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; font: 600 11px/1.4 -apple-system, Segoe UI, sans-serif; color: #cbd5e1; background: rgba(15, 23, 42, .75); z-index: 5; }
body.scr-pip-doc .scr-pip-bar b { color: #86efac; }
.scr-paused { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .8); color: #fff; font-size: 13px; }
.scr-side p { margin: 0 0 6px; }
.row.wrap { flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .scr-body { grid-template-columns: 1fr; } }

/* Tasks on her apps: red number on "My apps" + list on top (Oct 1) */
.task-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:var(--red,#d92d20);color:#fff;font-size:11px;font-weight:800;vertical-align:middle}
.apps-tasks{border:1px solid #f3c2bd;background:#fff5f4;border-radius:12px;padding:10px 12px;margin:0 0 12px}
.apps-tasks-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.apps-tasks-head .task-badge{margin-left:0}
.apps-task{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #f3d6d3}
.apps-task .ny-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.ccard.has-task{border-color:#e9726a;box-shadow:0 0 0 1px #e9726a inset}

/* Live call: text thread window at the very bottom of the call screen */
.live-texts:empty { display: none; }
.live-texts { margin-top: 18px; }
.live-texts-box { background: var(--panel); }
.live-texts-box > summary { font-weight: 600; cursor: pointer; }
.live-texts-box .texts-list { max-height: 420px; min-height: 120px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px; margin-top: 8px; }

/* Oct 1: one slim line on Live for Case Support tasks (the tasks themselves are on My apps) */
.task-strip{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:14px;color:var(--ink,#14212b);background:#f5f7ff;border:1px solid #cfd8ff;border-radius:10px;padding:8px 12px;cursor:pointer}
.task-strip:hover{border-color:#1d3fbf}
.task-strip .task-badge{margin-left:0}
.task-strip-go{margin-left:auto;color:#1d3fbf;font-weight:700}

/* Help · knowledge base (Oct 1) */
.help-card h3{margin:14px 0 8px}
.help-item{border:1px solid var(--line,#e3e7ee);border-radius:10px;padding:10px 12px;margin:0 0 8px;background:var(--card,#fff)}
.help-item summary{cursor:pointer;list-style:revert}
.help-item[open]{box-shadow:0 1px 0 rgba(0,0,0,.03)}
.help-item ol{padding-left:20px;margin:8px 0}
.help-numbers{margin:6px 0 10px}
.help-form{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.help-form .row .input{flex:1 1 160px;min-width:0}
.help-msg{width:100%;font-size:14px;line-height:1.4}

/* Help: screenshots and "say this" (Oct 1) */
.help-shot { display: block; width: 100%; max-width: 320px; margin: 10px 0 4px; border-radius: 12px; border: 1px solid var(--line); }
.help-shot.help-shot-wide { max-width: 640px; }
.help-say { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); font-size: 14px; }

/* Oct 2: missed live transfers and client text replies on the client timeline */
.timeline li.missed { font-weight: 600; color: var(--red); }
.timeline li.missed::before { background: var(--red); }
.timeline li.reply::before { background: var(--green); }

/* Oct 2: Live › search any client or lead */
.live-search { position: relative; margin-bottom: 12px; }
.live-search input { width: 100%; max-width: 520px; }
.live-search-res { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 4px; max-height: 60vh; overflow: auto; }
.live-search-res .ls-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.live-search-res .ls-row:hover, .live-search-res .ls-row:focus-visible { background: color-mix(in srgb, var(--green) 10%, transparent); }
.live-search-res .ls-row .chip { margin-left: auto; }
.live-search-res .ls-empty { padding: 10px; }

/* Oct 2: Case Support — sent items, closer task line, waiting line, one-at-a-time, calendar */
.ct-req.sent { background: #f4f6f9; border-left-color: #9aa3b2; }
.ct-req.sent .ct-req-text { color: #4b5563; }
.ct-sent { color: #6b7280; font-size: 12px; }
.ct-taskline { margin-top: 6px; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: #f5f7ff; border-left: 3px solid #1d3fbf; overflow-wrap: anywhere; }
.ct-waiting { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding: 10px 12px; border-top: 1px dashed var(--line, #e5e8ef); }
.ct-focus-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ct-focus-head h3 { margin-right: auto; }
.cc-list { display: grid; gap: 10px; }
.cc-day { padding: 12px 14px; }
.cc-date { margin-bottom: 6px; }
.cc-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 0; border-top: 1px solid var(--line, #eef0f4); }
.cc-item .chip { min-width: 112px; text-align: center; }
.ct-checked .ct-need { width: auto; max-width: 260px; flex: 0 0 auto; margin: 0; }
.case-row > .hide-sm.row { flex-wrap: wrap; gap: 4px; min-width: 0; }

/* Oct 2: Cases board · Columns view */
#cases-view { margin-left: auto; }
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kb-col { background: #f3f5f9; border: 1px solid var(--line, #e5e8ef); border-radius: 12px; padding: 8px; min-width: 0; }
.kb-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 8px; }
.kb-cards { display: grid; gap: 8px; }
.kb-card { display: grid; gap: 4px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line, #e5e8ef); border-left: 4px solid #c7cdd8; border-radius: 10px; padding: 9px 10px; cursor: pointer; font: inherit; color: inherit; }
.kb-card:hover { border-color: #b8c0ce; box-shadow: 0 1px 4px rgba(16, 24, 40, .08); }
.kb-card.st-blue { border-left-color: #1d3fbf; } .kb-card.st-amber { border-left-color: #a55c00; } .kb-card.st-violet { border-left-color: #7c3aed; }
.kb-card.st-green { border-left-color: #1f8a4c; } .kb-card.st-red, .kb-card.st-urgent { border-left-color: #c42e2a; }
.kb-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kb-top b { overflow-wrap: anywhere; }
.kb-days { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted, #6b7280); flex: 0 0 auto; }
.kb-days.slow { color: #a55c00; } .kb-days.late { color: #c42e2a; font-weight: 700; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.kb-chips .chip { font-size: 11px; padding: 2px 7px; }
.kb-empty { padding: 8px 6px; }

/* Oct 2: My apps · List view */
.apps-list { display: grid; gap: 8px; }
.apps-list-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; }
.apps-list-row .apps-stage { justify-self: start; margin-top: 10px; white-space: normal; }
.apps-list-row > :last-child { min-width: 0; }
@media (max-width: 700px) { .apps-list-row { grid-template-columns: 1fr; } .apps-list-row .apps-stage { margin-top: 0; } }

/* Oct 2: Cases board columns — collapsible; theme colors so dark mode works */
.kb { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: stretch; }
.kb-col { flex: 1 0 220px; display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 0; transition: flex-basis .15s; }
.kb-col.min { flex: 0 0 46px; padding: 6px 4px; }
.kb-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px 8px; background: none; border: 0; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.kb-head:hover, .kb-head:focus-visible { background: var(--gray-soft); }
.kb-title { flex: 1 1 auto; min-width: 0; }
.kb-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.kb-tog { width: 18px; text-align: center; color: var(--muted); font-weight: 700; }
.kb-col.min .kb-head { flex-direction: column; justify-content: flex-start; height: 100%; min-height: 220px; padding: 8px 0; gap: 10px; }
.kb-col.min .kb-title { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; flex: 0 0 auto; color: var(--ink-2); }
.kb-col.min .kb-tog { order: -1; }
.kb-card { background: var(--panel); border-color: var(--line); }
.kb-card.st-none { border-left-color: var(--line); }

/* Oct 2: Case Support · Overview */
.ov-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ov { display: grid; gap: 14px; }
.ov-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ov-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.ov-tile .k { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ov-tile .v { font-size: 34px; font-weight: 750; line-height: 1.1; margin-top: 6px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ov-tile .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ov-tile.lead { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); border-color: transparent; }
.ov-tile.lead .k, .ov-tile.lead .v, .ov-tile.lead .s { color: #fff; }
.ov-tile.lead .k, .ov-tile.lead .s { opacity: .85; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 960px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }
.ov-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.ov-card h2 { font-size: 16px; font-weight: 700; color: var(--ink); }
.ov-card .sub { font-size: 12.5px; color: var(--muted); margin: 3px 0 14px; }
.ov-bars { display: grid; gap: 2px; }
.ov-bar { display: grid; grid-template-columns: 128px minmax(0, 1fr) 40px 40px; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ov-bar.static { cursor: default; }
.ov-bar:hover, .ov-bar:focus-visible { background: var(--panel-2); outline: none; }
.ov-lab { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.ov-track { display: block; height: 10px; background: var(--gray-soft); border-radius: 0 4px 4px 0; overflow: hidden; }
.ov-fill { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.ov-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.ov-pct { text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .ov-bar { grid-template-columns: 96px minmax(0, 1fr) 32px; } .ov-pct { display: none; } }
.ov-score { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ov-sc { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.ov-sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ov-sc .k { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.ov-sc .v { font-size: 26px; font-weight: 750; margin-top: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-sc .s { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.ov-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ov-pill b { font-size: 11px; }
.ov-pill.good { background: var(--green-soft); color: var(--green); }
.ov-pill.warn { background: var(--amber-soft); color: var(--amber); }
.ov-pill.bad { background: var(--red-soft); color: var(--red); }
.ov-pill.info { background: var(--gray-soft); color: var(--muted); }
.ov-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ov-mini div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.ov-mini b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ov-mini span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) { .ov-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ov-cols { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid var(--line); }
.ov-col { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; border-radius: 6px 6px 0 0; outline: none; }
.ov-col:hover, .ov-col:focus-visible { background: var(--panel-2); }
.ov-col i { display: block; width: 64%; max-width: 24px; background: var(--brand); border-radius: 4px 4px 0 0; }
.ov-cv { font-size: 11px; font-weight: 700; color: var(--ink-2); min-height: 15px; font-variant-numeric: tabular-nums; }
.ov-xax { display: flex; gap: 2px; margin-top: 4px; }
.ov-xax span { flex: 1 1 0; text-align: center; font-size: 10.5px; color: var(--muted); white-space: nowrap; min-width: 0; overflow: visible; }
.ov-xax span.today { font-weight: 700; color: var(--ink-2); }
.ov-tablewrap { overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ov-table th { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ov-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ov-table td.name { font-weight: 600; white-space: nowrap; }
.ov-tip { position: fixed; z-index: 1000; pointer-events: none; background: var(--ink); color: var(--panel); font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); max-width: 260px; white-space: pre-line; }

.ov-grid.wide2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 960px) { .ov-grid.wide2 { grid-template-columns: minmax(0, 1fr); } }
.kb-col { flex-basis: 190px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ov-tile.lead { background: linear-gradient(135deg, #24379a 0%, #3049c4 100%); } }
.ov-table th { padding: 6px; } .ov-table td { padding: 9px 6px; }

/* Oct 2: Case Support help guides */
.gd { display: grid; gap: 18px; max-width: 1180px; }
.gd-hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; border-radius: 20px; padding: 28px 30px; }
.gd-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.gd-goal-lbl { margin-top: 14px; font-size: 13px; font-weight: 700; opacity: .85; }
.gd-goal { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; font-weight: 750; letter-spacing: -.015em; margin: 4px 0 10px; max-width: 30ch; color: #fff; }
.gd-lede { font-size: 15.5px; line-height: 1.55; max-width: 70ch; margin: 0; opacity: .92; }
.gd-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.gd-pillar { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 14px; }
.gd-pillar p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; opacity: .9; }
.gd-pillar b { font-size: 15px; }
.gd-pk { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.gd-num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.gd-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.gd-h { font-size: 18px; font-weight: 750; color: var(--ink); }
.gd-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.gd-road { list-style: none; counter-reset: rd; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; padding: 0; margin: 18px 0 0; }
.gd-road li { counter-increment: rd; position: relative; padding: 38px 12px 0 0; display: grid; gap: 4px; }
.gd-road li::before { content: counter(rd); position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; z-index: 1; }
.gd-road li::after { content: ''; position: absolute; top: 12px; left: 26px; right: 0; height: 2px; background: var(--line); }
.gd-road li:last-child::after { display: none; }
.gd-road b { font-size: 14.5px; color: var(--ink); }
.gd-road span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.gd-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.gd-task { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-top: 4px solid var(--acc, var(--brand)); border-radius: 14px; padding: 16px 18px; background: var(--panel); }
.gd-task h3 { font-size: 15.5px; color: var(--ink); font-weight: 750; letter-spacing: 0; }
.gd-tgoal { display: flex; gap: 8px; align-items: baseline; background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.gd-tgoal b { font-size: 15px; line-height: 1.4; color: var(--ink); }
.gd-tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--acc, var(--brand)); border-radius: 6px; padding: 2px 7px; }
.gd-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.gd-tip { font-size: 13.5px; line-height: 1.5; background: var(--amber-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; }
.gd-done { margin-top: auto; display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; }
.gd-done > span:first-child { color: var(--green); font-weight: 800; }
.gd-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .gd-two { grid-template-columns: minmax(0, 1fr); } }
.gd-day { display: grid; gap: 10px; margin-top: 14px; }
.gd-dayrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.gd-dayrow b { color: var(--ink); }
@media (max-width: 560px) { .gd-dayrow { grid-template-columns: minmax(0, 1fr); gap: 2px; } .gd-hero { padding: 22px 18px; } .gd-tasks { grid-template-columns: minmax(0, 1fr); } }
.gd-good { list-style: none; padding: 14px; margin: 16px 0 0; display: grid; gap: 8px; background: var(--green-soft); border-radius: 12px; font-size: 14px; color: var(--ink); }
.gd-good li { display: flex; gap: 8px; }
.gd-good li span { color: var(--green); font-weight: 800; }
.gd-tools { display: grid; gap: 10px; margin-top: 14px; }
.gd-tool { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.gd-tool b { color: var(--ink); font-size: 14.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gd-hero { background: linear-gradient(135deg, #24379a 0%, #3049c4 100%); } :root:not([data-theme="light"]) .gd-num { color: #24379a; } }

/* Oct 2: Logs */
.lg { display: grid; gap: 14px; }
.lg-note { background: var(--brand-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.lg-head { flex-wrap: wrap; gap: 10px; }
.lg-days { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-dayb { display: grid; gap: 1px; text-align: left; font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.lg-dayb span { font-size: 12px; color: var(--muted); }
.lg-dayb.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; }
.lg-row { display: grid; grid-template-columns: 78px 170px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lg-row time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.lg-page { font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--gray-soft); border-radius: 999px; padding: 2px 9px; justify-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lg-what { color: var(--ink); overflow-wrap: anywhere; }
.lg-gap { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0; border-bottom: 1px dashed var(--line); background: var(--panel-2); }
@media (max-width: 600px) { .lg-row { grid-template-columns: 64px minmax(0, 1fr); } .lg-page { grid-column: 2; } .lg-what { grid-column: 2; } }

/* Oct 2: Ask me anything — product answers come only from the carrier PDFs */
.iq-a .iq-src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #0f7a55; background: #e1f4ec; padding: 3px 9px; border-radius: 999px; margin-bottom: 6px; }
.iq-a .iq-src .ic { width: 13px; height: 13px; }
.iq-a .iq-refs { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line, #e3e6ec); font-size: 12px; color: var(--muted, #6b7280); }
@media (prefers-color-scheme: dark) { .iq-a .iq-src { color: #3ccf97; background: #0f2d23; } }
/* Oct 2: carrier buttons on the Cases board */
.cases-carriers { flex-wrap: wrap; }
.seg button .seg-n { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 8px; font-size: 11px; line-height: 16px; background: var(--line); color: var(--ink, inherit); }
.seg button[aria-pressed="true"] .seg-n { background: rgba(255,255,255,.25); color: #fff; }
.portal-check { margin: 10px 0 2px; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Oct 2 (Istvan): Team time (manager only) ---------- */
.tt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.tt-head .tt-when { font-weight: 750; font-size: 15px; margin-right: auto; }
.tt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tt-card { padding: 4px 16px 12px; }
.tt-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 160px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tt-row.tt-headrow { border-top: 0; padding: 10px 0 4px; }
.tt-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt-who b { display: block; font-size: 14px; }
.tt-who > div { display: grid; min-width: 0; }
.tt-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.tt-mid { min-width: 0; }
.tt-axis { position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.tt-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tt-axis span:first-child { transform: none; }
.tt-barwrap { position: relative; }
.tt-bar { display: flex; height: 22px; border-radius: 7px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.tt-seg { height: 100%; }
.tt-a { background: var(--green); }
.tt-i { background: var(--amber); opacity: .75; }
.tt-o { background: transparent; }
.tt-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; }
.tt-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 6px; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-chip { font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--ink-2); }
.tt-chip b { font-weight: 700; color: var(--ink); }
.tt-num { display: grid; justify-items: end; gap: 2px; text-align: right; }
.tt-num > b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tt-focus { font-size: 12px; font-weight: 750; }
.tt-good { color: var(--green); } .tt-warn { color: var(--amber); } .tt-low { color: var(--red); }
.tt-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.tt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tt-sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line); }
.tt-list { display: grid; gap: 12px; }
.tt-pcard { padding: 14px 16px; display: grid; gap: 12px; }
.tt-phead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.tt-pstats { display: flex; flex-wrap: wrap; gap: 22px; }
.tt-pstats > div { display: grid; }
.tt-pstats b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tt-cols { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding-bottom: 2px; }
.tt-col { flex: 1 1 0; min-width: 22px; display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 4px 2px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.tt-col:hover { background: var(--panel-2); }
.tt-colbox { position: relative; width: 100%; max-width: 46px; height: 74px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.tt-colbox i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px 6px 0 0; }
.tt-col-l { background: var(--green-soft); }
.tt-col-a { background: var(--green); }
.tt-collab { font-size: 11px; color: var(--muted); font-weight: 650; }
.tt-colval { font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .tt-row { grid-template-columns: 1fr; gap: 8px; } .tt-num { justify-items: start; text-align: left; } .tt-headrow { display: none; } }

/* ---------- AI Office (Oct 3) ---------- */
.off-brief { margin-bottom: 14px; }
.off-brief-head, .off-card-head { display: flex; gap: 10px; align-items: center; }
.off-brief-head h3 { margin: 0; }
.off-brief-head p { margin: 2px 0 0; }
.off-av { --c: #64748b; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 17px;
  background: color-mix(in srgb, var(--c) 16%, var(--panel)); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.off-av.big { width: 44px; height: 44px; font-size: 22px; }
.off-md { line-height: 1.5; }
.off-md p { margin: 6px 0; }
.off-md ul { margin: 6px 0; padding-left: 20px; }
.off-md.bad { color: var(--red); }
.off-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.off-card { --c: #64748b; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--c); }
.off-card.lead { background: color-mix(in srgb, var(--c) 5%, var(--panel)); }
.off-watch { margin: 0; color: var(--ink-2, var(--ink)); }
.off-report summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand); }
.off-report .off-md { font-size: 13px; max-height: 260px; overflow: auto; }
.off-card-foot { margin-top: auto; justify-content: space-between; align-items: center; }
.off-room { margin-bottom: 14px; }
.off-room-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.off-room-head h3 { margin: 0; }
.off-room-head p { margin: 0; flex: 1 1 320px; }
.off-form { display: grid; gap: 8px; margin-top: 10px; }
.off-form textarea { width: 100%; resize: vertical; min-height: 56px; }
.off-actions { gap: 8px; align-items: center; }
.off-actions select { max-width: 280px; }
.off-read { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
#off-mic.rec { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.off-live { display: grid; gap: 10px; margin-top: 12px; }
.off-live:empty { display: none; }
.off-q-line { padding: 8px 12px; border-radius: 10px; background: var(--gray-soft); }
.off-ans { --c: #64748b; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 5%, var(--panel)); }
.off-ans-body { flex: 1; min-width: 0; }
.off-final { --c: #1f3a8a; padding: 12px 14px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 6%, var(--panel)); display: grid; gap: 6px; }
.off-dec { display: grid; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.off-dec-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.off-task-add { gap: 8px; margin: 10px 0; }
.off-task-add #off-task-text { flex: 1 1 300px; }
.off-tasks-card { margin-bottom: 14px; }
.off-meetings { display: grid; gap: 8px; }
.off-meet { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.off-meet summary { cursor: pointer; }
.off-meet-body { display: grid; gap: 8px; margin-top: 10px; }
@media (max-width: 640px) { .off-dec-row { flex-direction: column; align-items: flex-start; } .off-actions select { max-width: 100%; width: 100%; } }

.off-brief-title { flex: 1; min-width: 0; }
.off-brief-toggle { flex: none; }
.off-brief.closed { padding-top: 12px; padding-bottom: 12px; }
.off-phone { font-weight: 600; color: var(--brand); text-decoration: none; }
.off-phone:hover { text-decoration: underline; }
.off-tg { margin-bottom: 14px; }
.off-tg-steps { margin: 8px 0; padding-left: 20px; }
.off-tg-form { gap: 8px; }
.off-tg-form .input { flex: 1 1 320px; }
.off-face { object-fit: cover; padding: 0; background: var(--brand-soft); }
.off-card .off-face { width: 56px; height: 56px; }
.off-av.big.off-face { width: 52px; height: 52px; }

/* Oct 3 (Istvan): Live › Next up in plain words — labels, NEXT CALL card, next appointment */
.lab { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; margin: 2px 5px 0 0; white-space: nowrap; vertical-align: 1px; }
.lab.u1 { background: #1d3fbf; color: #fff; }
.lab.u2 { background: #e9eefe; color: #1d3fbf; }
.lab.s1 { background: #0f6b46; color: #fff; }
.lab.s2 { background: #2f9e66; color: #fff; }
.lab.s3 { background: #d6f0e2; color: #0b5e3e; }
.lab.s4 { background: #fde7c2; color: #7a4300; }
.lab.s5 { background: #e5e7eb; color: #4b5563; }
.lab.f { background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); }
.lab.fr { background: var(--panel); color: #b3261e; border: 1px solid #f1b5b0; }
.nq-labs { display: block; line-height: 1.5; }
.nq-row .ny-text b { display: block; }
.nq-top { display: grid; gap: 8px; }
.nq-appt { display: grid; gap: 2px; background: #fff8ec; border: 1px solid #f0c36d; color: #7a4300; border-radius: 12px; padding: 9px 14px; font-size: 13.5px; }
.nq-appt b { color: #5a3500; }
.nq-next-card { border: 2px solid #0f6b46; border-radius: 16px; padding: 14px 16px; background: #f0faf5; cursor: pointer; }
.nq-next-card.nq-protect { border-color: #c99a0e; background: #fffaf0; }
.nq-nk { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #0f6b46; }
.nq-protect .nq-nk { color: #8a5a00; }
.nq-nn { font-size: 22px; font-weight: 700; margin: 2px 0 4px; color: var(--ink); }
.nq-nf { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-top: 6px; }
.nq-nq { font-family: Georgia, serif; font-size: 13.5px; border-left: 3px solid #0f6b46; padding: 1px 0 1px 10px; margin-top: 6px; color: var(--ink); }
.nq-nb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.nq-backup { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
@media (prefers-color-scheme: dark) {
  .nq-next-card { background: #10241a; } .nq-next-card.nq-protect { background: #2a2210; }
  .nq-appt { background: #2a2210; color: #f1c27a; border-color: #6b5520; } .nq-appt b { color: #f6d79c; }
  .lab.u2 { background: #1b2445; color: #a9bdf8; } .lab.s3 { background: #12352a; color: #8fe0b8; } .lab.s4 { background: #3a2a10; color: #f1c27a; } .lab.s5 { background: #2a2f3a; color: #b8c0cc; }
}
/* Oct 3 (Istvan): on-top window — switch tab from here + who is on the call (name, age, DOB, state) */
body.scr-pip-doc { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
body.scr-pip-doc .scr-pip-bar { position: static; flex-direction: column; align-items: stretch; gap: 3px; padding: 4px 8px 5px; background: #0f172a; border-bottom: 1px solid #1e293b; }
body.scr-pip-doc .scr-pip-bar .pip-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body.scr-pip-doc #pip-switch { font: 700 11px/1 -apple-system, Segoe UI, sans-serif; color: #fff; background: #4f46e5; border: 0; border-radius: 6px; padding: 5px 9px; cursor: pointer; white-space: nowrap; }
body.scr-pip-doc #pip-switch:hover { background: #4338ca; }
body.scr-pip-doc .pip-client { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font: 500 12px/1.35 -apple-system, Segoe UI, sans-serif; color: #e2e8f0; }
body.scr-pip-doc .pip-client b { color: #fff; font-size: 13px; }
body.scr-pip-doc .pip-client i { font-style: normal; color: #64748b; }
body.scr-pip-doc .pip-client .pip-st { color: #fde68a; font-weight: 700; }
body.scr-pip-doc .scr-prev { flex: 1; min-height: 0; }
body.scr-pip-doc .scr-prev video#scr-video { max-height: 100%; object-fit: contain; }

/* AI Office · Work queue (Oct 3) */
.off-work { display: grid; gap: 8px; }
.off-wo { border: 1px solid var(--line, #e2e8f0); border-left: 4px solid #94a3b8; border-radius: 10px; padding: 8px 12px; }
.off-wo-needs { border-left-color: #dc2626; }
.off-wo-queued { border-left-color: #d97706; }
.off-wo-done { border-left-color: #16a34a; }
.off-wo summary { cursor: pointer; list-style: none; }
.off-wo summary::-webkit-details-marker { display: none; }
.off-wo-last { margin-top: 4px; }
.off-wo-notes { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* AI-EAPP extension card (Settings) */
.eapp-ext .eapp-steps { margin: 10px 0 8px 18px; padding: 0; display: grid; gap: 6px; }
.eapp-status { font-weight: 700; margin: 6px 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--brand-soft); }
.eapp-status.good { color: #1E7A4C; background: #E2F4EA; }
.eapp-status.warn { color: #9A5B00; background: #FFF1DB; }
.eapp-status.bad { color: #B42318; background: #FDE8E6; }

/* Oct 5: 3-way keypad key flash when pressed from the keyboard */
.conf-key.pressed { background: #0E5A8A; color: #fff; }

/* Oct 5: Hiring = one pipeline (no documents column) */
.hire-pipe { margin: 4px 0 14px; flex-wrap: wrap; }
.hire-pipe button .n { margin-left: 6px; font-weight: 600; opacity: .7; }
.hire-touch { display: flex; gap: 10px; flex-wrap: wrap; }
/* Oct 5: AI-EAPP draft line (client card + History) */
.eapp-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.eapp-draft-box:empty { display: none; }
.eapp-draft-box { margin: 0 0 10px; }

/* Oct 5 (Istvan): wrap-up — "Quote given" and "Mark HOT" as two clear switches */
.qs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .qs-cards { grid-template-columns: minmax(0, 1fr); } }
.qs-card { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.qs-card:hover { border-color: #b8c0ce; }
.qs-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.qs-card:has(.qs-input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand); }
.qs-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 800; background: var(--gray-soft); color: var(--muted); transition: background .15s, color .15s; }
.qs-txt { display: grid; gap: 2px; min-width: 0; }
.qs-txt b { font-size: 15px; color: var(--ink); }
.qs-sub { font-weight: 400; font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qs-switch { width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.qs-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.qs-card:has(.qs-input:checked) .qs-switch::after { transform: translateX(18px); }
.qs-quote:has(.qs-input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.qs-quote:has(.qs-input:checked) .qs-ic, .qs-quote:has(.qs-input:checked) .qs-switch { background: var(--brand); color: #fff; }
.qs-hot:has(.qs-input:checked) { border-color: #ea580c; background: #fff4ec; }
.qs-hot:has(.qs-input:checked) .qs-ic { background: #ea580c; color: #fff; }
.qs-hot:has(.qs-input:checked) .qs-switch { background: #ea580c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qs-hot:has(.qs-input:checked) { background: #3a1e0f; border-color: #f97316; } }
.quote-switch .qs-more { margin-top: 10px; }

/* Oct 5: links inside Help task cards */
.gd-link { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 8px; font-weight: 700; font-size: 14px; color: var(--brand); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--panel-2); }
.gd-link:hover { border-color: var(--brand); }

/* Oct 5: "What you need to do" on Case Support Today */
.ct-todo { margin: 0 10px 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid; border-radius: 0 10px 10px 0; padding: 10px 14px; }
.ct-todo-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 14px; }
.ct-todo-who { font-size: 13px; color: var(--ink-2); }
.ct-todo ol { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.ct-todo li { margin: 2px 0; }

/* Oct 5: per-case 'You do now' line on Case Support Today */
.ct-do { font-size: 14px; line-height: 1.45; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; }
.ct-do b { color: var(--ink); }
.ct-do.now { background: var(--amber-soft); border-color: var(--amber); }
/* Oct 5 (Istvan): one-screen close — call controls + what the client sees, in the on-top window and the share panel */
.scr-show { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.scr-show .btn { border-radius: 0; border: 0; background: #fff; color: #334155; }
.scr-show .btn.on { background: #1765AA; color: #fff; }
body.scr-pip-doc .pip-ctl { padding: 6px 8px 8px; background: #0f172a; display: flex; flex-direction: column; gap: 6px; font: 600 12px/1.3 -apple-system, Segoe UI, sans-serif; }
body.scr-pip-doc .pip-show { display: flex; gap: 6px; }
body.scr-pip-doc .pip-show button { flex: 1; padding: 8px; border-radius: 6px; border: 1px solid #334155; background: #1e293b; color: #cbd5e1; font-weight: 700; font-size: 12.5px; cursor: pointer; }
body.scr-pip-doc .pip-show button.on { background: #1765AA; border-color: #2A7CC4; color: #fff; }
body.scr-pip-doc .pip-btns { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
body.scr-pip-doc .pip-btns button, body.scr-pip-doc .pip-3w button { padding: 6px 9px; border-radius: 6px; border: 0; background: #334155; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; }
body.scr-pip-doc .pip-btns button:disabled { opacity: .45; cursor: not-allowed; }
body.scr-pip-doc .pip-btns button.hang { background: #C0392B; }
body.scr-pip-doc .pip-btns button.warn { background: #B45309; }
body.scr-pip-doc .pip-timer { margin-left: auto; color: #94a3b8; font-weight: 600; }
body.scr-pip-doc .pip-3w .pip-row { display: flex; gap: 5px; }
body.scr-pip-doc .pip-3w input { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 6px; border: 1px solid #334155; background: #0b1220; color: #fff; font-size: 13px; }
body.scr-pip-doc .pip-3w button.go { background: #1765AA; }
body.scr-pip-doc .pip-pad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 5px; }
body.scr-pip-doc .pip-pad button { padding: 7px 0; border-radius: 6px; border: 0; background: #1e293b; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
body.scr-pip-doc .pip-msg { color: #fde68a; font-weight: 600; min-height: 0; }
body.scr-pip-doc .pip-msg:empty { display: none; }
body.scr-pip-doc .hidden { display: none !important; }

/* Oct 5: ask the client to upload (Case Support) */
.dr-panel { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 14px 16px; display: grid; gap: 10px; margin-top: 4px; }
.dr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.dr-head b { font-size: 15px; }
.dr-head .seg { margin-left: auto; }
.dr-rows { display: grid; gap: 8px; }
.dr-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 170px 120px; gap: 8px; align-items: start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.dr-row.off { opacity: .55; }
.dr-cb { padding-top: 9px; }
.dr-main { display: grid; gap: 3px; min-width: 0; }
.dr-label { width: 100%; }
.dr-send { display: grid; gap: 6px; }
.dr-ch { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.dr-chk { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; margin: 0 !important; font-weight: 650; min-width: 84px; }
.dr-chk input, .dr-cb input { width: auto !important; margin: 0; flex: none; }
.dr-ch .input { flex: 1; min-width: 200px; max-width: 320px; }
.dr-preview { background: #eef7ee; border: 1px solid #cfe7cf; border-radius: 12px 12px 12px 3px; padding: 9px 12px; font-size: 14px; max-width: 520px; }
.dr-err { color: var(--red); font-weight: 600; min-height: 1px; }
.dr-status { display: grid; gap: 6px; margin: 4px 0 6px; }
.dr-req { background: #f5f7ff; border: 1px solid #dfe5fb; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.dr-req-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dr-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.dr-files { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 13px; }
.dr-files a { color: var(--brand); font-weight: 600; }
.dr-next { margin-top: 6px; font-weight: 600; color: var(--green); }
@media (max-width: 760px) { .dr-row { grid-template-columns: 26px minmax(0, 1fr); } .dr-row .dr-sel { grid-column: 2; } }
.hire-top .hire-del { margin-left: auto; }

/* Oct 5 (Istvan): UniLife logo at the top left */
.ul-logo { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 700; font-size: 27px; letter-spacing: -0.3px; line-height: 1; }
.ul-logo .ul-uni { color: #fff; }
.ul-logo .ul-life { color: #4cb87a; }
body.theme-hq .ul-logo .ul-uni { color: #1d3c6e; }
body.theme-hq .ul-logo .ul-life { color: #3f9e6b; }

/* Oct 5 (Istvan): Daily Tasks */
.dt-intro { margin: 0 0 12px; }
.dt-body { display: grid; gap: 16px; max-width: 980px; }
.dt-group { padding: 14px 16px; border-left: 4px solid #3b5bdb; }
.dt-group.dt-red { border-left-color: #c42e2a; }
.dt-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dt-head h2 { margin: 0; font-size: 17px; }
.dt-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #eef1f5; }
.dt-card:first-of-type { border-top: 0; }
.dt-main { flex: 1; min-width: 0; }
.dt-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dt-name { font-size: 15.5px; }
.dt-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: #1b2733; }
.dt-draft { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.dt-draft input { width: auto; max-width: 180px; }
.dt-acts { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 700px) { .dt-card { flex-direction: column; align-items: stretch; } }

/* Oct 5 (Istvan): Quotes */
.qt-body { display: grid; gap: 16px; }
.qt-group { padding: 14px 16px; }
.qt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.qt-card { border: 1px solid #e3e8ef; border-left: 4px solid #3b5bdb; border-radius: 10px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.qt-card.qt-violet { border-left-color: #7048e8; }
.qt-card.qt-amber { border-left-color: #e8a317; }
.qt-main { cursor: pointer; display: grid; gap: 4px; }
.qt-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qt-name { font-size: 15.5px; }
.qt-plan { font-weight: 600; color: #1b2733; font-size: 14px; }
.qt-meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.qt-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* Oct 5: Quotes — minimize sections and cards */
.qt-group > summary { list-style: none; cursor: pointer; }
.qt-group > summary::-webkit-details-marker { display: none; }
.qt-group > summary .qt-sec-fold::after { content: 'Minimize ▴'; }
.qt-group:not([open]) > summary .qt-sec-fold::after { content: 'Show ▾'; }
.qt-group > summary .qt-sec-fold { margin-left: auto; }
.qt-group:not([open]) > summary { margin-bottom: 0; }
.qt-fold { margin-left: auto; border: 1px solid #d6dde6; background: #fff; color: #3d4c5c; border-radius: 6px; width: 26px; height: 24px; line-height: 1; font-size: 16px; font-weight: 700; cursor: pointer; }
.qt-fold:hover { background: #eef2f6; }
.qt-card.qt-min { padding: 8px 12px; gap: 0; }
/* Oct 5: E-Applications TOTAL bar */
.ea-total { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.ea-big { display: flex; align-items: baseline; gap: 8px; }
.ea-big b { font-size: 30px; line-height: 1; color: #0f2a4a; }
.ea-lbl { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #5b6b7d; }
.ea-stages { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ea-chip b { margin-left: 2px; }

/* Oct 5: Case Support Inbox */
.ci-top { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--line, #e6e8ef); }
.ci-thread { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding: 4px 2px 10px; }
.ci-msg { max-width: 88%; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line, #e6e8ef); background: #f7f8fb; }
.ci-msg.out { align-self: flex-end; background: #eef2ff; border-color: #d9e0ff; }
.ci-msg.in { align-self: flex-start; }
.ci-subj { font-weight: 700; font-size: 13px; margin: 4px 0 2px; }
.ci-body { white-space: pre-wrap; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ci-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.ci-f { display: flex; flex-direction: column; gap: 4px; }
.ci-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.chip-btn { border: 1px solid var(--line, #d9dde7); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.chip-btn:hover { background: #eef2ff; border-color: #c7d2fe; }
.ci-pick { display: flex; flex-direction: column; gap: 6px; max-height: 58vh; overflow-y: auto; }
.ci-pickrow { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line, #e6e8ef); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.ci-pickrow:hover { border-color: #c7d2fe; background: #f5f7ff; }
.ci-pickmain { flex: 1; min-width: 0; }
.ci-pickreqs { color: #9a4b00; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-msg.ci-wide { max-width: 100%; width: 100%; }
.ci-mail { width: 100%; height: 560px; border: 1px solid #d9e0ff; border-radius: 10px; background: #fff; margin-top: 6px; }
.ci-sms { max-width: 70%; background: transparent; border: 0; padding: 0; }
.ci-smsb { background: #1d9bf0; color: #fff; border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }

/* Oct 6 (Istvan: Today "very hard to the eyes", Calendar "very easy"): Today in the Calendar's calm style:
   white sections, thin lines, one small colored mark per thing, quiet buttons. */
.nq-group.ct-calm { background: #fff; border: 1px solid var(--line, #e5e8ef); border-radius: 12px; margin-top: 12px; }
.nq-group.ct-calm .nq-head { border-left-width: 0; padding-bottom: 6px; }
.nq-group.ct-calm .nq-num { width: 22px; height: 22px; font-size: 12px; line-height: 22px; }
.ct-calm .ct-list { padding: 0 14px 10px; }
.ct-calm .ct-row { border: 0; border-top: 1px solid var(--line, #e5e8ef); border-radius: 0; margin-top: 0; padding: 12px 2px; }
.ct-calm .ct-row:first-child { border-top: 0; }
details.ct-todo { margin: 0 14px 8px; background: transparent; border: 0; border-radius: 0; padding: 0; }
details.ct-todo summary { cursor: pointer; font-size: 13px; color: var(--muted, #6b7280); list-style: revert; }
details.ct-todo summary b { color: var(--ink-2, #374151); font-weight: 600; }
details.ct-todo[open] summary { margin-bottom: 4px; }
details.ct-todo ol { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2, #374151); }
.ct-calm .ct-do { background: transparent; border: 0; border-left: 3px solid #cbd5e1; border-radius: 0; padding: 2px 0 2px 10px; margin: 4px 0 8px; font-size: 14px; }
.ct-calm .ct-do.now { background: transparent; border-left-color: #d97706; }
.ct-calm .ct-reqs { gap: 0; }
.ct-calm .ct-req, .ct-calm .ct-req.red, .ct-calm .ct-req.sent { background: transparent; border-left: 0; border-radius: 0; border-top: 1px solid #f1f3f7; padding: 6px 0; }
.ct-calm .ct-req:first-child { border-top: 0; }
.ct-calm .ct-req-text { font-size: 13.5px; }
.ct-calm .ct-req .btn { background: transparent; border: 1px solid var(--line, #e5e8ef); box-shadow: none; font-weight: 500; padding: 3px 9px; font-size: 12.5px; color: var(--ink-2, #374151); }
.ct-calm .ct-req .btn:hover { background: #f5f7ff; border-color: #c7d2fe; }
.ct-calm .ct-btns .btn-secondary, .ct-calm .ct-btns .btn-ghost { background: transparent; border: 1px solid var(--line, #e5e8ef); box-shadow: none; font-weight: 500; }
.ct-calm .ct-btns .btn-secondary:hover, .ct-calm .ct-btns .btn-ghost:hover { background: #f5f7ff; }
.ct-calm .ct-taskline { background: transparent; border-left: 3px solid #cbd5e1; border-radius: 0; padding: 2px 0 2px 10px; color: var(--ink-2, #4b5563); }
.ct-calm .ct-row > .ct-who .chip { font-size: 11.5px; }
/* Oct 6: change the call-back time in one click */
.cal-when-edit { background: none; border: 1px dashed transparent; border-radius: 8px; padding: 4px 6px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cal-when-edit:hover { border-color: #9fb3c8; background: #f4f7fb; }
.cal-when-edit .cw-edit { display: block; font-size: 11px; font-weight: 700; color: var(--brand); opacity: 0; }
.cal-when-edit:hover .cw-edit, .cal-when-edit:focus-visible .cw-edit { opacity: 1; }
.card-when-edit { background: none; border: 1px dashed #c7d1dc; border-radius: 10px; padding: 6px 10px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.card-when-edit:hover { background: #f4f7fb; border-color: var(--brand); }
.card-when-edit .cw-edit { font-size: 11.5px; font-weight: 700; color: var(--brand); margin-top: 2px; }
.tl-change { margin-left: auto; }
.te-dialog .te-when { font-size: 16px; }
.te-quick { gap: 6px; margin: 8px 0; }
.te-why { display: grid; gap: 6px; margin: 8px 0 12px; }
.te-why label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.te-dialog .te-why label { display: flex !important; flex-direction: row !important; justify-content: flex-start; text-align: left; gap: 10px; }
.te-dialog .te-why input[type=radio] { width: auto !important; margin: 0; flex: 0 0 auto; }
.te-dialog .te-why span { flex: 1; }

/* Oct 6: Approved = its own green (Paid keeps the darker green) */
.chip.teal { background: #dcf5ec; color: #0b7a5c; }
.case-row.st-teal { border-left-color: #10b981; }
.kb-card.st-teal { border-left-color: #10b981; }
.st-seg button[aria-pressed="true"].st-teal { background: #0f9f74; color: #fff; }
/* Oct 6: client uploaded -> number 1 on Today, red and blinking */
.nq-group.ct-calm.ct-blink { border: 2px solid #dc2626; animation: ctBlink 1.2s ease-in-out infinite; }
.nq-group.ct-blink .nq-num { animation: ctDot 1.2s ease-in-out infinite; }
@keyframes ctBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); border-color: #fca5a5; } }
@keyframes ctDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ct-blink-chip { animation: ctDot 1.2s ease-in-out infinite; }
.btn.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn.btn-danger:hover { background: #b91c1c; }
@media (prefers-reduced-motion: reduce) { .nq-group.ct-blink, .nq-group.ct-blink .nq-num, .ct-blink-chip { animation: none; } }
.ci-msg.ci-up { border-color: #fecaca; background: #fff7f7; }
.ci-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.ci-files a { font-size: 13px; padding: 3px 9px; border: 1px solid #e5e8ef; border-radius: 999px; background: #fff; }

/* Oct 6: status filter bubbles on the Cases list */
.st-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.st-pill { border: 1.5px solid transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; transition: transform .08s ease, box-shadow .12s ease; }
.st-pill b { font-size: 12px; font-weight: 800; background: rgba(255,255,255,.75); border-radius: 999px; padding: 1px 7px; color: inherit; }
.st-pill.all { background: #fff; border-color: var(--line, #e5e8ef); color: var(--ink, #111827); }
.st-pill:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.st-pill[aria-pressed="true"] { border-color: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.st-pill.all[aria-pressed="true"] { background: #1d3fbf; color: #fff; border-color: #1d3fbf; box-shadow: none; }
.st-pill.all[aria-pressed="true"] b { background: rgba(255,255,255,.22); color: #fff; }
.st-pill.chip.urgent { background: #fee2e2; color: #b91c1c; }

/* Oct 6: client phone on the Cases board */
.case-ph { display: flex; flex-direction: column; gap: 2px; }
.case-phone { font-size: 13px; font-weight: 600; color: var(--ink-2, #374151); font-variant-numeric: tabular-nums; }

/* Oct 6: AP on the case */
.case-money { display: flex; gap: 10px; margin-top: 10px; }
.case-money > div { flex: 1; background: #f7f8fb; border: 1px solid var(--line, #e5e8ef); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.case-money b { font-size: 17px; font-variant-numeric: tabular-nums; }

/* Oct 6: approved + bank update */
.bk-frame { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #eef1f6; }
.bk-subj { color: #334155; }
.bk-reveal { margin-top: 8px; padding: 10px 12px; border: 1px dashed #f59e0b; border-radius: 10px; background: #fffbeb; display: grid; gap: 6px; max-width: 520px; }
.bk-line { display: flex; align-items: center; gap: 10px; }
.bk-line .muted { min-width: 130px; }

/* Oct 6: declines */
.dc-box { border-left: 4px solid #dc2626; }
.dc-reasons { margin: 4px 0 8px 18px; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.dc-sent { margin: 4px 0; }
/* Oct 6: deep answers from the closer's AI assistant */
.iq-src.iq-deep { background: #f1ecff; color: #5b3fc4; }

/* Oct 6 (Istvan): wrap-up › Instant approval? Yes / No */
.instant { display: flex; flex-wrap: wrap; gap: 8px 18px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.instant legend { font-size: 12px; font-weight: 700; padding: 0 4px; }
.instant-opt { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.instant-opt input { width: auto; margin: 0; }
.instant:has(#w-instant-yes:checked) { border-color: #16a34a; background: #f0fdf4; }

/* Oct 6: client basics on the case */
.case-client .cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.cc-cell { background: #f7f8fb; border: 1px solid var(--line, #e5e8ef); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; min-width: 0; }
.cc-cell b, .cc-cell a { font-size: 15px; overflow-wrap: anywhere; }
.cc-cell a { font-weight: 700; color: var(--brand, #1d3fbf); text-decoration: none; }
.cc-cell.wide { grid-column: span 2; }
.cc-cell .icon-btn { position: absolute; top: 6px; right: 6px; }
.case-st { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 800; letter-spacing: .3px; color: #334155; background: #eef1f6; border-radius: 6px; padding: 1px 6px; vertical-align: 1px; }

/* Oct 6: resubmit reason */
.rs-box { border-left: 4px solid #dc2626; display: grid; gap: 8px; }
.rs-now { background: #fff5f5; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 12px; }

/* ---------- System status (Oct 6) ---------- */
.hs-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hs-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hs-big { display: flex; gap: 14px; align-items: center; }
.hs-big b { display: block; font-size: 20px; }
.hs-big .hs-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; }
.hs-big.hs-ok .hs-ic { background: var(--green); }
.hs-big.hs-warn .hs-ic { background: var(--amber); }
.hs-big.hs-bad .hs-ic { background: var(--red); }
.hs-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-bottom: 14px; }
.hs-group h3 { display: flex; align-items: center; gap: 6px; }
.hs-list { list-style: none; margin: 0; padding: 0 0 6px; }
.hs-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.hs-row b { display: block; font-size: 14px; }
.hs-detail { display: block; }
.hs-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; flex: none; }
.hs-dot.hs-ok { background: var(--green); }
.hs-dot.hs-warn { background: var(--amber); }
.hs-dot.hs-bad { background: var(--red); }
.hs-dot.hs-off { background: var(--line); color: var(--muted); }
.hs-row.hs-bad { background: var(--red-soft); }
.hs-fix { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink); }
.hs-errs { list-style: none; margin: 0; padding: 0; }
.hs-errs li { padding: 10px 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .hs-groups { grid-template-columns: minmax(0, 1fr); } }
/* Oct 6: write a text from the lead card */
.txt-send { display: grid; gap: 6px; margin-top: 8px; }
.txt-compose { width: 100%; resize: vertical; min-height: 54px; }
/* Oct 6: carrier underwriting guides on Help */
.uw-guides { display: grid; gap: 8px; margin-bottom: 18px; }
.uw-guide { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; }

/* Oct 6 (Istvan): Quotes as rows like the Cases board; the carrier is a logo tile + its color on the left edge */
.qt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-fbtn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 13.5px inherit; cursor: pointer; }
.qt-fbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.qt-fbtn .qt-fn { font-size: 12px; background: color-mix(in srgb, currentColor 14%, transparent); border-radius: 999px; padding: 1px 7px; }
.qt-fdot { width: 10px; height: 10px; border-radius: 50%; background: var(--car); display: inline-block; }
.qt-rows { display: grid; gap: 8px; }
.qt-row { display: grid; grid-template-columns: 70px 132px minmax(0, 1.6fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-left: 5px solid var(--car); border-radius: 10px; background: var(--panel); }
.qt-row:hover { box-shadow: 0 2px 10px rgba(16, 24, 40, .06); }
.qt-wait b { font-size: 17px; }
.qt-wait.ok b { color: var(--green); }
.qt-car { height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px 8px; overflow: hidden; }
.qt-car .carrier-logo { background: none; padding: 0; }
.qt-car { height: 44px; }
.qt-car .carrier-logo img { height: 32px; max-width: 116px; object-position: center; }
.qt-car-none { font-size: 12px; color: var(--muted); font-weight: 600; }
.qt-who { display: grid; gap: 2px; cursor: pointer; min-width: 0; }
.qt-who b { font-size: 15px; }
.qt-plan2 { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qt-row .qt-acts { display: flex; gap: 8px; flex-wrap: nowrap; }
@media (max-width: 900px) {
  .qt-row { grid-template-columns: 56px 96px minmax(0, 1fr); }
  .qt-row .qt-acts { grid-column: 1 / -1; }
  .qt-car .carrier-logo img { max-width: 80px; height: 22px; }
  .qt-plan2 { white-space: normal; }
}

/* Oct 6 (Istvan): CEO Today */
.ceo-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 14px; }
.ceo-kpis .kpi.ceo-red b { color: #b42318; } .ceo-kpis .kpi.ceo-amber b { color: #b45309; }
.ceo-ask { margin-bottom: 14px; }
.ceo-ask .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ceo-chat { max-height: 520px; overflow-y: auto; display: grid; gap: 10px; }
.ceo-msg { padding: 10px 14px; border-radius: 12px; line-height: 1.55; font-size: 14.5px; }
.ceo-msg.you { justify-self: end; max-width: 80%; background: var(--brand, #2E6B4E); color: #fff; }
.ceo-msg.ai { background: var(--panel-2, #f6f7f5); border: 1px solid var(--line); }
.ceo-msg.ai p { margin: 0 0 8px; } .ceo-msg.ai p:last-child { margin-bottom: 0; }
.ceo-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ceo-ideas .btn { white-space: normal; text-align: left; height: auto; padding: 8px 12px; }
.ceo-input { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); }
.ceo-input textarea { flex: 1; resize: vertical; min-height: 46px; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.ceo-dots { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand, #2E6B4E); animation: ceoPulse 1s ease-in-out infinite; vertical-align: middle; }
@keyframes ceoPulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (max-width: 1100px) { .ceo-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Oct 6 (Istvan): the manager portal gets the same dark blue menu on the left as the Case Support, Compliance and
   Commissions portals (#0c1633), instead of the light HQ sidebar. */
body.theme-hq .sidebar { background: #0c1633; color: #c9d2ea; border-right: 0; }
body.theme-hq .side-brand, body.theme-hq .side-foot .me { color: #fff; }
body.theme-hq .ul-logo .ul-uni { color: #fff; }
body.theme-hq .ul-logo .ul-life { color: #5fd39a; }
body.theme-hq .nav button, body.theme-hq .tabbar button { color: #c9d2ea; font-weight: 600; }
body.theme-hq .nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
body.theme-hq .nav button[aria-current="page"] { background: rgba(255, 255, 255, .10); color: #fff; box-shadow: none; }
body.theme-hq .nav button[aria-current="page"]::before { background: #7b96f5; }
body.theme-hq .nav-head { color: #8d9bc4; }
body.theme-hq .side-foot { border-top-color: rgba(255, 255, 255, .08); }
body.theme-hq .side-foot .btn-ghost { color: #c9d2ea; border-color: rgba(255, 255, 255, .16); background: transparent; }
body.theme-hq .co-switch { background: rgba(255, 255, 255, .08); }
body.theme-hq .co-btn { color: #c9d2ea; }
body.theme-hq .co-btn:hover { background: rgba(255, 255, 255, .08); }
body.theme-hq .co-btn[aria-pressed="true"] { color: #fff; }
body.theme-hq .co-btn.co-uni[aria-pressed="true"] { background: #2E6B4E; }
body.theme-hq .co-btn.co-flow[aria-pressed="true"] { background: #1f3a73; }
body.theme-hq .co-btn.co-all[aria-pressed="true"] { background: #31406b; }
body.theme-hq .side-next { border-top-color: rgba(255, 255, 255, .08); color: #c9d2ea; }
body.theme-hq .tabbar { background: #0c1633; }

.ceo-money { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.ceo-money .kpi { border-top: 3px solid #1f3a73; }
.ceo-money .kpi.ceo-red b { color: #b42318; }
@media (max-width: 1100px) { .ceo-money { grid-template-columns: 1fr 1fr; } }

/* Oct 6: CEO Leads page */
.cl-top { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cl-top .seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.cl-top .seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.cl-top .seg button[aria-pressed="true"] { background: #1f3a73; color: #fff; }
#cl-body > .card { margin-bottom: 14px; }
#cl-body .ceo-kpis { margin-bottom: 14px; }
.cl-bar { display: grid; grid-template-columns: 200px minmax(0, 1fr) 48px; align-items: center; gap: 12px; margin: 6px 0; font-size: 14px; }
.cl-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.cl-track { height: 12px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.cl-fill { height: 100%; border-radius: 6px; background: #1f3a73; }
.cl-fill.red { background: #b42318; }
.cl-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 10px; }
@media (max-width: 1100px) { .cl-groups { grid-template-columns: 1fr; } }

/* Oct 6: Find any client (manager top bar) */
.find-wrap { position: relative; flex: 1 1 260px; max-width: 360px; }
.find-wrap input { width: 100%; }
.find-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 4px; max-height: 360px; overflow-y: auto; }
.find-row { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font: inherit; cursor: pointer; color: var(--ink); }
button.find-row:hover, button.find-row:focus-visible { background: var(--panel-2); }

/* Oct 7: Cases toolbar: carrier logos, small view switch at the right */
.cases-carriers .car-logo-btn { padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
.cases-carriers .car-logo { height: 20px; max-width: 92px; object-fit: contain; display: block; }
.cases-carriers .car-logo-btn[aria-pressed="false"] .car-logo { filter: grayscale(.35); opacity: .85; }
.seg.view-toggle { margin-left: auto; }
.seg.seg-xs button { padding: 4px 8px; min-height: 0; line-height: 1; display: inline-flex; align-items: center; }

.rs-replace { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px dashed #fecaca; }
.rs-replace select { flex: 1 1 320px; }

/* Oct 7: sold client's service wrap-up */
.svc-box { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; background: color-mix(in srgb, var(--green) 6%, transparent); }
.svc-head { margin: 0 0 8px; }
.svc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-opts button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: 600 13.5px inherit; cursor: pointer; text-align: left; }
.svc-opts button[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Oct 7: Case Support inbox easier to read: emails and texts apart, calm text bubbles */
.ci-tabs { margin: 8px 0 10px; }
.ci-thread { max-height: 62vh; overscroll-behavior: contain; scroll-behavior: smooth; padding-right: 6px; }
.ci-smsb { background: #e8f1ff; color: #0f172a; border: 1px solid #cfe0ff; border-radius: 16px 16px 4px 16px; font-size: 15px; }
.ci-msg.in .ci-smsb, .ci-msg.in.ci-sms .ci-smsb { background: #f1f5f9; border-color: #e2e8f0; border-radius: 16px 16px 16px 4px; }
.ci-fold { align-self: flex-end; max-width: 88%; text-align: left; display: flex; gap: 8px; align-items: baseline; background: #f7f8fb; border: 1px solid #e6e8ef; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; color: #0f172a; cursor: pointer; }
.ci-fold:hover { background: #eef2ff; }
.ci-fold-ic { color: #64748b; }
.ci-mail { height: 480px; }

/* Oct 7: the closer fixes a box María got wrong (Live screen + lead card) */
.fx-cell { cursor: pointer; transition: border-color .15s; }
.fx-cell:hover { border-color: var(--accent, #2563eb); }
.fx-cell:hover > dd:not([data-editing])::after, .fx-cell:hover > .cf-v:not([data-editing])::after { content: ' ✎'; font-weight: 400; color: var(--muted); font-size: .85em; }
.fx-edit { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.fx-edit .input { min-width: 64px; flex: 1 1 90px; font-size: 14px; }
.card-facts .cf-v .fx-edit { white-space: normal; }
.card-facts .cf:has([data-editing]) { flex: 1 1 100%; }
.facts > div:has(dd[data-editing]) { grid-column: span 2; }

.ci-top .grow { flex: 1; }
.ci-replyh { align-items: center; gap: 10px; margin-bottom: 4px; }
.ci-replyh h3 { margin: 0; }

/* ---- Oct 7: one-screen close (piece 1) ---- */
.cw{position:fixed;inset:0;z-index:900;display:grid;grid-template-columns:280px 1fr;grid-template-rows:1fr auto;background:#EEF2F6;color:#132030}
.cw.hidden{display:none}
body.cw-on{overflow:hidden}
.cw-side{grid-row:1/3;background:#0F1B2A;color:#fff;padding:18px;display:flex;flex-direction:column;gap:14px;overflow:auto}
.cw-name{font-size:18px;font-weight:700}.cw-sub{font-size:12px;color:#A9B6C4;margin-top:2px}
.cw-call{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cw-cb{background:#22354B;color:#D6DEE7;border:0;border-radius:8px;min-height:44px;font:500 12px inherit;cursor:pointer}
.cw-cb:hover{background:#2C4560}.cw-cb.hang{background:#B42318;color:#fff;font-weight:600}
.cw-box{background:#17283C;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:3px;font-size:12px;color:#C3CFDB}
.cw-box small{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#8FA1B4}
.cw-box b{font-size:14px;color:#fff}.cw-box b.ok{color:#7EE2A0}.cw-box b.bad{color:#FFB4A8}
.cw-box .cw-row{margin-top:6px}
.cw-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.cw-st{display:flex;gap:10px;align-items:center;padding:10px;border-radius:8px;color:#8FA1B4;font-size:14px}
.cw-st .cw-n{width:24px;height:24px;border-radius:50%;border:1px solid #4A5A6C;display:grid;place-items:center;font-size:12px}
.cw-st.on{background:#2F7DE1;color:#fff;font-weight:700}.cw-st.on .cw-n{background:#fff;color:#2F7DE1;border-color:#fff}
.cw-st.done .cw-n{background:#1F7A3A;border-color:#1F7A3A;color:#fff}
.cw-exit{margin-top:auto;background:transparent;border:1px solid #3A4E66;color:#C3CFDB;border-radius:8px;min-height:40px;cursor:pointer;font:500 13px inherit}
.cw-main{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.cw-sec{display:flex;flex-direction:column;min-height:0;flex:1}.cw-sec.hidden{display:none}
.cw-head{background:#fff;border-bottom:1px solid #C7D1DC;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cw-head h2{margin:0;font-size:18px;color:#0B3B5C}.cw-head p{margin:2px 0 0;font-size:13px;color:#4A5A6C}
.cw-body{padding:24px;overflow:auto;display:flex;flex-direction:column;gap:16px;max-width:820px}
.cw-grid{background:#fff;border:1px solid #C7D1DC;border-radius:10px;padding:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cw-f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#4A5A6C}.cw-f.hidden{display:none}
.cw-f .input.need{background:#FFF6C2;border-color:#D9B82E}
.cw-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cw-msg{margin:0;padding:10px 14px;border-radius:6px;font-size:13px;background:#EEF4F9;border:1px solid #D3E2EE;color:#0B3B5C}
.cw-msg.warn{background:#FFF6DB;border-color:#E7C66B;color:#6B5200}.cw-msg.bad{background:#FDF0EE;border-color:#F3CFC9;color:#A1291B}.cw-msg.hidden{display:none}
#cw-msg2{margin:10px 24px 0}
.cw-log{margin:0;max-height:180px;overflow:auto;background:#F6F8FA;border:1px solid #E1E7EE;border-radius:6px;padding:8px 10px;font:12px/1.5 ui-monospace,Menlo,monospace;color:#3D4C5C;white-space:pre-wrap}
.cw-log.hidden{display:none}
.cw-pdf{flex:1;min-height:0;background:#525659;display:flex;margin-top:10px}.cw-pdf iframe{flex:1;border:0;width:100%;height:100%}
.cw-foot{grid-column:2;background:#FFFBEA;border-top:1px solid #E3D3A8;padding:8px 24px;font-size:11px;color:#4A3B12}
@media (max-width:900px){.cw{grid-template-columns:1fr}.cw-side{grid-row:auto}.cw-grid{grid-template-columns:1fr 1fr}.cw-foot{grid-column:1}}

.cw-prevslot:empty{display:none}
.cw-prevslot .scr-prev{width:100%;border:2px solid #2F7DE1}
.cw-prevslot .scr-camz{font-size:11px}

/* Oct 7: one-screen close, piece 1b: illustration drawn with pdf.js; the client preview without a shared tab */
.cw-pdf{flex-direction:column}
.cw-pdfscroll{position:relative;flex:1;min-height:0;overflow:auto;padding:20px 24px;display:flex;flex-direction:column;align-items:center;gap:16px}
.cw-pg{flex:0 0 auto;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.35)}
.cw-pg canvas{display:block;width:100%;height:100%}
.scr-prev.nosrc{aspect-ratio:9/16;max-height:360px;background:#fff;margin:0 auto}
.scr-prev.nosrc video#scr-video{display:none}
.scr-mirror{display:none;position:absolute;inset:0;overflow:hidden;background:#fff}
.scr-prev.nosrc .scr-mirror{display:block}
.scr-mirror img{display:block;width:100%;transition:transform .25s}
.scr-mirror-msg{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#0B3B5C;color:#fff;text-align:center;padding:12px;font-size:12px}
.scr-mirror-msg b{font-size:14px}
.scr-mirror[data-label]:not([data-label=""])::after{content:attr(data-label);position:absolute;left:8px;top:8px;background:rgba(15,27,42,.78);color:#fff;font-size:11px;padding:2px 8px;border-radius:10px}

/* Oct 7: one-screen close, step 3: the application inside the portal */
.cw-app{flex:1;min-height:0;display:flex;margin-top:10px;background:#E9EDF2;border-radius:10px;overflow:hidden}.cw-app iframe{flex:1;border:0;width:100%;height:100%;background:#E9EDF2}

/* Oct 8: small buttons under Illustration (numbers + sales sheets) and the highlighter */
.cw-sub{list-style:none;display:flex;flex-wrap:wrap;gap:4px;padding:0 6px 6px 40px}
.cw-doc{font-weight:600;font-size:10.5px;line-height:1.1;font-family:inherit;padding:3px 7px;border-radius:999px;border:1px solid #3A4B5E;background:#16263A;color:#C9D6E3;cursor:pointer}
.cw-doc:hover{border-color:#5E86B0;color:#fff}.cw-doc.on{background:#2F7DE1;border-color:#2F7DE1;color:#fff}
.cw-pg{position:relative}
.cw-hl{position:absolute;background:rgba(255,226,0,.36);outline:2px solid rgba(234,179,8,.95);border-radius:3px;pointer-events:none}
.cw-pdf.hlmode .cw-pg{cursor:crosshair;user-select:none}

/* Oct 8: zoom buttons, client's zoom box */
.cw-zoom{display:inline-flex;gap:2px}.cw-zoom .btn{min-width:40px;padding-left:10px;padding-right:10px;font-weight:700}
.cw-cv{position:absolute;outline:3px solid #E5484D;background:rgba(229,72,77,.08);border-radius:4px;pointer-events:none;z-index:2}

/* Oct 8: Before You Start — Explain & Confirm (pop-up before the application) */
.cw-pc{position:absolute;inset:0;z-index:20;background:rgba(10,20,32,.55);display:grid;place-items:center;padding:20px;overflow:auto}
.cw-pc-card{background:#fff;color:#132030;border-radius:12px;max-width:820px;width:100%;padding:22px 24px;box-shadow:0 20px 60px rgba(0,0,0,.35);border-top:6px solid #D9B82E}
.cw-pc-card h3{margin:0 0 4px;font-size:20px;color:#0B3B5C}.cw-pc-lead{margin:0 0 12px;color:#41566B}
.cw-pc-item{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #E1E7EE;border-radius:10px;margin-bottom:8px;background:#FFFBEA}
.cw-pc-item.on{background:#ECF7F0;border-color:#9FD0B2}
.cw-pc-n{flex:0 0 26px;height:26px;border-radius:50%;background:#0B3B5C;color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px}
.cw-pc-item.on .cw-pc-n{background:#1E7A3A}
.cw-pc-tx{flex:1}.cw-pc-tx b{display:block;font-size:14.5px}.cw-pc-tx small{display:block;margin-top:4px;color:#7A5B00;font-weight:700;font-size:11.5px}
.cw-pc-tx p{margin:2px 0 0;font-size:13.5px;line-height:1.45;white-space:pre-line;color:#26384A}
.cw-pc-ok{flex:0 0 auto;align-self:center;min-width:120px}
.cw-pc-final{margin-top:10px;padding:10px 12px;border-radius:8px;background:#EEF4F9}.cw-pc-final p{margin:4px 0 0;font-size:14px}
.cw-pc-stop{margin:10px 0 0;color:#A1291B;font-weight:700;font-size:13px}
.cw-pc-btns{margin-top:14px;flex-wrap:wrap;justify-content:flex-end;gap:8px}.cw-pc-no{color:#A1291B}
.cw-pc-item.info{background:#F6F8FB}.cw-pc-info{flex:0 0 auto;align-self:center;font-size:11.5px;color:#6B7C8F;font-weight:700;padding:6px 10px;border:1px dashed #C7D2DE;border-radius:999px}
.cw-pc-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cw-pc-lang{display:inline-flex;border:1px solid #C7D2DE;border-radius:999px;overflow:hidden;flex:0 0 auto}
.cw-pc-lang button{border:0;background:#fff;color:#41566B;font-weight:600;font-size:12.5px;line-height:1;font-family:inherit;padding:7px 12px;cursor:pointer}.cw-pc-lang button.on{background:#0B3B5C;color:#fff}

.gd-videos { display: grid; gap: 18px; }
.gd-video { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .gd-video { grid-template-columns: minmax(0, 1fr); } }
.gd-vframe { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #0f172a; border: 1px solid var(--line); }
.gd-vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gd-vtext h3 { margin: 0 0 6px; }

/* Oct 8 (Istvan: "make the inbox like an actual inbox"): Valeria's Inbox — folders | message list | reading pane */
.rb-page { max-width: none; padding-bottom: 16px; }
.rb-app { display: grid; grid-template-columns: 200px minmax(300px, 380px) 1fr; height: calc(100vh - 150px); min-height: 520px; background: #fff; border: 1px solid #e6e8ef; border-radius: 14px; overflow: hidden; }
.rb-folders { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: #f7f8fb; border-right: 1px solid #e6e8ef; overflow-y: auto; }
.rb-compose { margin: 0 4px 12px; justify-content: center; border-radius: 12px; padding: 10px 12px; }
.rb-folder { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 12px; border-radius: 0 18px 18px 0; font-size: 14px; color: inherit; cursor: pointer; text-align: left; }
.rb-folder:hover { background: #eceff5; }
.rb-folder.on { background: #dbe6ff; font-weight: 700; color: #0f3d6e; }
.rb-count { font-size: 12px; color: #5b6475; }
.rb-count.hot { font-weight: 800; color: #0f3d6e; }
.rb-note { padding: 10px 12px; }
.rb-listcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid #e6e8ef; }
.rb-listhead { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid #e6e8ef; }
.rb-listhead .input { flex: 1; border-radius: 20px; background: #f1f3f8; border-color: transparent; }
.rb-rows { flex: 1; overflow-y: auto; }
.rb-row { position: relative; display: flex; gap: 10px; padding: 10px 28px 10px 14px; border-bottom: 1px solid #f0f2f6; cursor: pointer; }
.rb-row:hover { background: #f7f8fb; box-shadow: inset 3px 0 0 #c7d2fe; }
.rb-row.sel { background: #e8efff; box-shadow: inset 3px 0 0 #2f5bd3; }
.rb-row.unread .rb-name, .rb-row.unread .rb-l2, .rb-row.unread .rb-time { font-weight: 800; color: #111827; }
.rb-av { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: #e3e9f7; color: #2f4b8a; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.rb-av.sm { width: 30px; height: 30px; font-size: 11px; }
.rb-rt { min-width: 0; flex: 1; }
.rb-l1 { display: flex; justify-content: space-between; gap: 8px; }
.rb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-time { font-size: 12px; color: #6b7280; white-space: nowrap; }
.rb-l2 { font-size: 13px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rb-l3 { display: flex; gap: 6px; margin-top: 4px; }
.rb-stage { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #f1f3f8; color: #4b5563; white-space: nowrap; }
.rb-stage.warn { background: #fff4e5; color: #9a5b00; }
.rb-dotu { position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #2f5bd3; }
.rb-empty { padding: 28px 16px; text-align: center; }
.rb-read { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rb-readhead { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #e6e8ef; }
.rb-who { flex: 1; min-width: 0; }
.rb-thread { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 8px; background: #fbfcfe; }
.rb-day { align-self: center; font-size: 12px; color: #6b7280; background: #eef1f6; padding: 3px 12px; border-radius: 12px; margin: 8px 0 4px; }
.rb-bub { max-width: 72%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.rb-bub.in { align-self: flex-start; background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.rb-bub.out { align-self: flex-end; background: #2f5bd3; color: #fff; border-bottom-right-radius: 4px; }
.rb-bub.failed { background: #fee2e2; color: #7f1d1d; }
.rb-btext { white-space: pre-wrap; overflow-wrap: anywhere; }
.rb-bmeta { font-size: 11px; opacity: .8; margin-top: 4px; text-align: right; }
.rb-bub.in .rb-bmeta { text-align: left; color: #6b7280; opacity: 1; }
.rb-bub a { color: inherit; }
.rb-mail { width: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; }
.rb-mail.in { border-left: 4px solid #1fa37a; }
.rb-mailhead { display: flex; align-items: center; gap: 10px; }
.rb-mailhead > div { flex: 1; }
.rb-tag { font-size: 11px; color: #6b7280; }
.rb-subj { font-weight: 700; margin: 10px 0 6px; }
.rb-mailbody { white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: #1f2937; overflow-wrap: anywhere; max-height: 360px; overflow-y: auto; }
.rb-composer { border-top: 1px solid #e6e8ef; padding: 10px 16px 12px; display: grid; gap: 8px; background: #fff; }
.rb-chan { display: flex; gap: 6px; align-items: center; }
.rb-chan button { border: 1px solid #d6dbe6; background: #fff; border-radius: 16px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.rb-chan button.on { background: #0f3d6e; border-color: #0f3d6e; color: #fff; }
.rb-chan button:disabled { opacity: .4; cursor: not-allowed; }
.rb-subjin, .rb-ta { width: 100%; box-sizing: border-box; border: 1px solid #d6dbe6; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; }
.rb-ta { resize: vertical; min-height: 64px; }
.rb-sendrow { display: flex; justify-content: space-between; align-items: center; }
.rb-placeholder { margin: auto; text-align: center; padding: 40px 20px; display: grid; gap: 6px; justify-items: center; }
.rb-bigicon { font-size: 40px; opacity: .5; }
@media (max-width: 900px) {
  .rb-app { grid-template-columns: 1fr; height: auto; }
  .rb-folders { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e6e8ef; }
  .rb-folder { border-radius: 16px; white-space: nowrap; }
  .rb-rows { max-height: 50vh; }
  .rb-read { min-height: 60vh; }
}

/* Oct 9 (Istvan): one-card Live + full-screen ring */
.nq-simple { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2, #f7f8fb); border: 1px dashed var(--line, #e5e8ef); }
.ring-over { position: fixed; inset: 0; z-index: 9000; background: rgba(12, 27, 22, .96); display: flex; align-items: center; justify-content: center; padding: 24px; }
.ring-over.hidden { display: none; }
.ring-box { width: min(720px, 100%); text-align: center; color: #fff; }
.ring-kind { font-size: 14px; letter-spacing: .18em; font-weight: 700; color: #7fe3b2; margin-bottom: 10px; animation: ringpulse 1.2s infinite; }
.ring-name { font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.ring-lines { font-size: clamp(16px, 2.2vw, 20px); color: #d7e6de; display: grid; gap: 6px; margin-bottom: 18px; }
.ring-lines div { white-space: normal; }
.ring-timer { font-size: 16px; color: #9fc5b3; margin-bottom: 22px; }
.ring-answer { width: 100%; max-width: 560px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; padding: 26px 20px; border-radius: 20px; border: 0; background: #16a05a; color: #fff; cursor: pointer; box-shadow: 0 10px 40px rgba(22, 160, 90, .45); display: inline-flex; align-items: center; justify-content: center; gap: 14px; animation: ringpulse 1.2s infinite; }
.ring-answer .ic { width: 34px; height: 34px; }
.ring-answer:hover { background: #119151; }
.ring-key { font-size: 13px; font-weight: 600; opacity: .8; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 2px 8px; }
.ring-pass { margin-top: 18px; color: #c9d9d1 !important; }
@keyframes ringpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* Oct 9 (Istvan): one-screen close fixes — banner above the overlay, the client's application mirrored, not-watching badge */
body.cw-on .banner:not(.hidden){position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:100000;max-width:760px;width:calc(100% - 40px);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.scr-mirror.m-app{overflow:auto;background:#E9EDF2;font-family:Arial,Helvetica,sans-serif;color:#1B2733}
.scr-mirror .ma-h{background:linear-gradient(180deg,#2A7CC4,#1765AA);color:#fff;padding:7px 8px;font-size:10px;display:flex;flex-direction:column}
.scr-mirror .ma-h b{font-size:12px}
.scr-mirror .ma-st{background:#fff;border-top:3px solid #1765AA;margin:5px;padding:6px;font-size:10px;font-weight:700;color:#0D4E8C}
.scr-mirror .ma-ag{background:#fff;border-left:3px solid #0F5FA8;margin:5px;padding:5px 6px;font-size:10px}
.scr-mirror .ma-ag small{display:block;font-size:8px;text-transform:uppercase;color:#4C5B6B}
.scr-mirror .ma-s{background:#fff;border:1px solid #9FB3C8;margin:5px}
.scr-mirror .ma-t{background:#1765AA;color:#fff;font-size:8.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:3px 5px}
.scr-mirror .ma-r{display:flex;justify-content:space-between;gap:6px;padding:3px 5px;border-top:1px solid #E1E7EE;font-size:9.5px}
.scr-mirror .ma-r span{color:#4C5B6B}.scr-mirror .ma-r b{text-align:right;word-break:break-word}.scr-mirror .ma-r b.e{color:#A0AAB4;font-weight:400}
.scr-mirror-msg.bad{background:#7A1F1F}
.scr-prev.nowatch::before{content:'Client is not watching';position:absolute;z-index:4;left:0;right:0;top:0;background:#B42318;color:#fff;font-size:11px;font-weight:700;text-align:center;padding:3px}
.card-oscbtn{align-self:center}

/* Oct 10: hire card, tabbed (Istvan: "way too much, confusing to the eyes") */
.hc-top { gap: 10px; }
.hc-top .hc-tabs { margin-left: auto; }
.hc-pane { margin-top: 14px; }
.hs-more { position: relative; }
.hs-more > summary { list-style: none; cursor: pointer; }
.hs-more > summary::-webkit-details-marker { display: none; }
.hs-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 170px; display: grid; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.hs-more.right .hs-menu { left: auto; right: 0; min-width: 300px; }
.hs-menu > button { text-align: left; font: inherit; font-size: 14px; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: inherit; }
.hs-menu > button:hover { background: var(--gray-soft); }
.hs-menu > button.danger { color: var(--red); }
.hs-menu.wide, .hs-menu .hs-menu.wide { position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 4px 10px; margin-bottom: 4px; gap: 6px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.hs { grid-column: 1 / -1; display: grid; gap: 14px; }
.hs-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.hs-sum { flex: 1 1 320px; display: grid; gap: 8px; }
.hs-sum > b { font-size: 16px; }
.hs-sum .bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.hs-sum .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hs-sum .bar i.ok { background: var(--green); }
.hs-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hs-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: visible; }
.hs-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.hs-row:first-child { border-top: 0; }
.hs-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--line); color: var(--muted); flex: none; }
.hs-row.done .hs-ic, .hc-doc.ok .hs-ic { background: var(--green); border-color: var(--green); color: #fff; }
.hs-row.skip .hs-ic { background: var(--gray-soft); }
.hs-row.now { background: var(--brand-soft); }
.hs-row.now .hs-ic { border-color: var(--brand); box-shadow: inset 0 0 0 5px var(--panel); background: var(--brand); }
.hs-row.skip .hs-t b, .hs-row.skip .hs-s { color: var(--muted); }
.hs-t { display: flex; gap: 8px; align-items: center; }
.hs-t b { font-size: 15px; }
.hs-s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hs-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hs-rec { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; font-size: 13px; padding: 6px 10px; margin-top: 6px; border-radius: 8px; background: var(--bg); }
.hs-rec.none { opacity: .65; }
.hs-rec .num { font-variant-numeric: tabular-nums; }
.hs-rec a { color: var(--brand); font-weight: 600; }
.hs-reimb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; padding: 0 4px; }
.hc-docs { display: grid; gap: 0; }
.hc-doc { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); }
.hc-doc:first-child { border-top: 0; }
.hc-doc:not(.ok) b { color: var(--muted); font-weight: 600; }
.hc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hc-tiles.four { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hc-tile { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.hc-tile.on { border-color: var(--green); background: var(--green-soft); }
.hc-tile .check { display: flex; gap: 8px; align-items: center; }
.hc-tile .input.sm { padding: 5px 8px; font-size: 13px; }
.hc-checks { display: grid; gap: 8px; }
.hc-check { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.hc-check.on { border-color: var(--green); background: var(--green-soft); }
@media (max-width: 720px) {
  .hc-top .hc-tabs { margin-left: 0; order: 9; width: 100%; overflow-x: auto; }
  .hs-row { grid-template-columns: 30px 1fr; }
  .hs-act { grid-column: 2; justify-content: flex-start; }
  .hs-rec { grid-template-columns: 1fr auto; }
}

/* Oct 11: Valeria's Inbox, Gmail look + texts on a phone (Istvan: "as easy as possible") */
.rb-app { grid-template-columns: 220px 1fr; background: #f6f8fc; border-color: #e3e7ef; font-family: "Google Sans", Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.rb-app .rb-read { display: none; }
.rb-app.reading .rb-listcol { display: none; }
.rb-app.reading .rb-read { display: flex; background: #fff; border-radius: 16px 0 0 0; }
.rb-folders { background: #f6f8fc; border-right: 0; padding: 12px 8px 12px 0; }
.rb-compose { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 14px 8px; padding: 16px 22px 16px 16px; border: 0; border-radius: 16px; background: #c2e7ff; color: #001d35; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; width: fit-content; box-shadow: none; }
.rb-compose:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.rb-compose-ic { font-size: 18px; }
.rb-folder { display: grid; grid-template-columns: 26px 1fr auto; padding: 0 12px 0 24px; height: 34px; border-radius: 0 17px 17px 0; font-size: 14px; color: #202124; }
.rb-folder:hover { background: #e9ecf2; }
.rb-folder.on { background: #d3e3fd; font-weight: 700; color: #001d35; }
.rb-fic { font-size: 13px; opacity: .8; }
.rb-count { font-size: 12px; font-weight: 600; color: #444746; }
.rb-count.hot { font-weight: 800; color: #001d35; }
.rb-listcol { background: #fff; border-right: 0; border-radius: 16px 0 0 0; }
.rb-listhead { align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #edf0f5; }
.rb-listhead .input { max-width: 640px; height: 44px; border-radius: 24px; background: #eaf1fb; border: 0; padding: 0 18px; font-size: 15px; }
.rb-listhead .input:focus { background: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.3); outline: none; }
.rb-iconbtn { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; color: #444746; cursor: pointer; flex: none; }
.rb-iconbtn:hover { background: #eef0f3; }
.rb-range { margin-left: auto; font-size: 12px; color: #5f6368; }
.rb-row { display: grid; grid-template-columns: 26px minmax(120px, 200px) 1fr auto; align-items: center; gap: 10px; padding: 0 18px 0 14px; height: 42px; border-bottom: 1px solid #f1f3f4; background: #f2f6fc; font-size: 14px; color: #5f6368; box-shadow: none; }
.rb-row:hover { box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); z-index: 1; background: #f2f6fc; }
.rb-row.unread { background: #fff; color: #202124; }
.rb-row.unread .rb-name, .rb-row.unread .rb-snip, .rb-row.unread .rb-time { font-weight: 700; color: #202124; }
.rb-row .rb-name { font-weight: 500; color: #202124; }
.rb-chic { font-size: 14px; text-align: center; }
.rb-mid { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rb-snip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rb-row .rb-time { font-size: 12px; font-weight: 500; color: #5f6368; }
.rb-stage { flex: none; font-size: 11px; padding: 1px 8px; border-radius: 4px; background: #e8eaed; color: #3c4043; }
.rb-stage:empty { display: none; }
.rb-stage.warn { background: #fef7e0; color: #8a5300; }
.rb-top { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid #edf0f5; flex-wrap: wrap; }
.rb-top .rb-who { flex: 1; min-width: 160px; }
.rb-av.ul { background: #0f3d6e; color: #fff; }
.rb-tabs { display: inline-flex; background: #eef1f6; border-radius: 20px; padding: 3px; gap: 2px; }
.rb-tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 17px; font: inherit; font-size: 13px; font-weight: 600; color: #444746; cursor: pointer; }
.rb-tabs button.on { background: #fff; color: #0b57d0; box-shadow: 0 1px 2px rgba(60,64,67,.25); }
.rb-tabs button:disabled { opacity: .4; cursor: not-allowed; }
/* Gmail thread */
.gm-pane { flex: 1; overflow-y: auto; padding: 18px 28px 40px 72px; }
.gm-subject { font-size: 22px; font-weight: 400; color: #1f1f1f; margin: 4px 0 18px; }
.gm-thread { display: flex; flex-direction: column; border-top: 1px solid #edf0f5; }
.gm-msg { border-bottom: 1px solid #edf0f5; padding: 12px 0; }
.gm-mhead { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; cursor: pointer; }
.gm-mhead .rb-av { width: 40px; height: 40px; }
.gm-from b { font-size: 14px; color: #1f1f1f; }
.gm-addr { font-size: 12px; color: #5e5e5e; }
.gm-to { margin-top: 1px; }
.gm-snip { font-size: 13px; color: #5e5e5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.gm-msg.open .gm-snip { display: none; }
.gm-msg:not(.open) .gm-to { display: none; }
.gm-date { font-size: 12px; color: #5e5e5e; white-space: nowrap; }
.gm-body { display: none; margin: 14px 0 4px 52px; white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: #222; overflow-wrap: anywhere; }
.gm-msg.open .gm-body { display: block; }
.gm-actions { margin: 18px 0 0 52px; display: flex; gap: 10px; }
.gm-pill { border: 1px solid #747775; background: #fff; border-radius: 18px; padding: 8px 22px; font: inherit; font-size: 14px; font-weight: 600; color: #444746; cursor: pointer; }
.gm-pill:hover { background: #f2f2f2; }
.gm-reply { margin: 16px 0 0 52px; border-radius: 12px; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); padding: 12px 16px; display: grid; gap: 8px; background: #fff; }
.gm-subj { border: 0; border-bottom: 1px solid #edf0f5; padding: 6px 0; font: inherit; font-size: 14px; outline: none; }
.gm-ta { border: 0; resize: vertical; min-height: 120px; font: inherit; font-size: 14px; line-height: 1.55; outline: none; }
.gm-rbar { display: flex; align-items: center; gap: 8px; }
.gm-send { border: 0; background: #0b57d0; color: #fff; border-radius: 18px; padding: 9px 24px; font: inherit; font-weight: 600; cursor: pointer; }
.gm-send:hover { background: #0a4fbd; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.gm-rbar .rb-iconbtn { margin-left: auto; }
/* Phone */
.ph-wrap { flex: 1; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: 18px; background: #f6f8fc; }
.ph { width: 390px; max-width: 100%; height: min(760px, 100%); display: flex; flex-direction: column; background: #fff; border: 10px solid #111; border-radius: 46px; box-shadow: 0 10px 30px rgba(0,0,0,.18); position: relative; overflow: hidden; }
.ph-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #111; border-radius: 16px; z-index: 2; }
.ph-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 40px 12px 10px; background: #f6f6f8; border-bottom: 1px solid #e5e5ea; }
.ph-head .rb-av { width: 46px; height: 46px; background: linear-gradient(#a3a8b4, #868b97); color: #fff; font-size: 16px; }
.ph-head b { font-size: 13px; font-weight: 600; }
.ph-chat { flex: 1; overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.ph-stamp { align-self: center; font-size: 11px; color: #8e8e93; margin: 12px 0 6px; font-weight: 500; }
.ph-b { max-width: 76%; padding: 8px 13px; border-radius: 19px; font-size: 15px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; font-family: -apple-system, "SF Pro Text", Helvetica, Arial, sans-serif; }
.ph-b.out { align-self: flex-end; background: #0b84ff; color: #fff; border-bottom-right-radius: 6px; }
.ph-b.in { align-self: flex-start; background: #e9e9eb; color: #000; border-bottom-left-radius: 6px; }
.ph-b.failed { background: #ff3b30; }
.ph-b a { color: inherit; display: block; margin-top: 4px; font-weight: 600; }
.ph-status { align-self: flex-end; font-size: 11px; color: #8e8e93; margin: 1px 4px 6px; }
.ph-status.bad { color: #ff3b30; font-weight: 600; }
.ph-bar { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 6px; border-top: 1px solid #e5e5ea; background: #fff; }
.ph-in { flex: 1; border: 1px solid #c7c7cc; border-radius: 18px; padding: 7px 14px; font: inherit; font-size: 15px; resize: none; max-height: 120px; outline: none; font-family: -apple-system, Helvetica, Arial, sans-serif; }
.ph-send { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #0b84ff; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; margin-bottom: 2px; }
.ph-send:disabled { background: #c7c7cc; cursor: not-allowed; }
.ph-from { text-align: center; font-size: 10.5px; color: #8e8e93; padding: 0 8px 10px; background: #fff; }
@media (max-width: 860px) {
  .rb-app { grid-template-columns: 1fr; }
  .rb-folders { flex-direction: row; overflow-x: auto; padding: 8px; }
  .rb-folder { border-radius: 17px; padding: 0 12px; }
  .rb-compose { margin: 0 8px 0 0; padding: 10px 16px; }
  .rb-row { grid-template-columns: 22px 1fr auto; }
  .rb-row .rb-mid { grid-column: 2 / 4; }
  .rb-row { height: auto; padding: 8px 12px; }
  .gm-pane { padding: 14px 14px 30px; }
  .gm-body, .gm-actions, .gm-reply { margin-left: 0; }
  .ph { border-width: 6px; border-radius: 30px; }
}
.gm-from { min-width: 0; overflow: hidden; }
.gm-pane { overflow-x: hidden; }

/* Oct 11: the client preview shows the highlights too */
.scr-mwrap { position: relative; transition: transform .25s; }
.scr-mwrap img { display: block; width: 100%; }
.scr-mwrap i { position: absolute; background: rgba(255, 214, 0, .45); outline: 2px solid #E0B000; border-radius: 3px; pointer-events: none; }

/* Oct 11: client's mobile under the name in the one-screen close */
.cw-phone { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: #9fd3ff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.cw-phone:hover { text-decoration: underline; }

/* Oct 11: New Leads, 24 h with "how long ago" tiles */
.nl-row { grid-template-columns: 84px minmax(180px, 1.2fr) 2fr auto; }
.nl-age { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 64px; border-radius: 10px; padding: 6px 4px; text-align: center; line-height: 1.1; }
.nl-age b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nl-age span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.nl-age small { font-size: 11px; opacity: .7; margin-top: 2px; }
.nl-hot { background: #fde8e8; color: #b42318; box-shadow: inset 0 0 0 1px #f6c4c0; }
.nl-hot b { animation: nlPulse 1.6s ease-in-out infinite; }
.nl-warm { background: #fff1e0; color: #b54708; box-shadow: inset 0 0 0 1px #fbd9b0; }
.nl-mid { background: #fef7d6; color: #8a6100; box-shadow: inset 0 0 0 1px #f3e2a0; }
.nl-old { background: var(--panel-2, #eef1f6); color: var(--muted, #5b6474); box-shadow: inset 0 0 0 1px var(--line); }
.nl-group { display: flex; align-items: center; gap: 8px; margin: 14px 2px 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #5b6474); }
.nl-group:first-child { margin-top: 0; }
.nl-group-n { background: var(--line); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
@keyframes nlPulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .nl-hot b { animation: none; } }
@media (max-width: 760px) { .nl-row { grid-template-columns: 1fr; } .nl-age { flex-direction: row; gap: 8px; min-height: 0; justify-content: flex-start; padding: 6px 10px; } .nl-age b { font-size: 18px; } }
@media (prefers-color-scheme: dark) {
  .nl-hot { background: rgba(240, 68, 56, .16); color: #ff8a80; box-shadow: inset 0 0 0 1px rgba(240, 68, 56, .35); }
  .nl-warm { background: rgba(247, 144, 9, .15); color: #fdb469; box-shadow: inset 0 0 0 1px rgba(247, 144, 9, .32); }
  .nl-mid { background: rgba(234, 179, 8, .13); color: #f5d565; box-shadow: inset 0 0 0 1px rgba(234, 179, 8, .28); }
}
.rb-sec { padding: 16px 0 4px 26px; font-size: 12px; font-weight: 600; color: #5f6368; letter-spacing: .3px; }
.rb-lab { width: 12px; height: 12px; border-radius: 3px; display: inline-block; justify-self: center; }

/* Oct 11 (Istvan): Help = tabs, one topic at a time (no endless scroll) */
.help-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e3e7ee); }
.help-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line, #e3e7ee); background: var(--card, #fff); color: inherit; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.help-tab:hover { border-color: #9fb3d1; }
.help-tab[aria-selected="true"] { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.help-tab .help-tab-n { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.07); }
.help-tab[aria-selected="true"] .help-tab-n { background: rgba(255,255,255,.25); }
.help-panel-intro { margin: 0 0 12px; font-size: 15px; }
.help-panel { font-size: 15px; line-height: 1.5; max-width: 900px; }
.help-panel .help-item summary { padding: 4px 0; font-size: 15px; }
.help-search { width: 100%; max-width: 420px; margin: 0 0 12px; }
.uw-carrier { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #667085); }
.uw-carrier:first-child { margin-top: 0; }
.help-legend-panel .nq-lg { margin: 0 0 10px; }
.help-empty { padding: 14px 0; }
.bad-t { color: var(--red); font-weight: 600; }
.hs-risk { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 4px; }

/* Oct 11 (Istvan): the client card was wider than the drawer, so HOT, Coverage and Screen share were cut off on the right.
   Grid children may shrink now, and the header and the call row wrap instead of overflowing. */
.drawer-card { grid-template-columns: minmax(0, 1fr); }
.drawer-card > * { min-width: 0; }
.card-head { row-gap: 6px; }
.card-call { flex-wrap: wrap; }
.card-call .card-callbtn { flex: 1 1 200px; }
.card-when { min-width: 150px; }
