/* LeadOrbit — one stylesheet. Tokens first; components below. */
:root {
  --navy: #0D1F4E; --navy-2: #16295F; --navy-3: #1E3577; --navy-line: #2C437F;
  --paper: #F6F4EE; --card: #FFFFFF; --line: #E4DFD3; --line-2: #EEEAE0; --field: #D5CFC1;
  --ink: #172036; --muted: #545D70; --quiet: #B9C3E0;
  --green: #0E7A55; --green-bg: #E6F3EC; --mint: #3DD598;
  --orange: #9A430C; --orange-bg: #FCEEE3; --red: #B42318; --red-bg: #FDECEA; --blue-bg: #EEF1F8;
  --radius: 14px; --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.45; }
a { color: var(--navy); }
a:hover { color: #2F4C9C; }
h1, h2, h3 { color: var(--navy); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 232px; background: var(--navy); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--quiet); }
.switcher label { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--quiet); }
.switcher select { min-height: 42px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--navy-line); background: var(--navy-2); color: #fff; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav > a, .nav > span { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--radius-sm); color: #D3DAEE; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--navy-3); color: #fff; font-weight: 700; }
.nav > span[aria-disabled="true"] { color: #7F8BB3; cursor: default; }
.nav .soon { display: inline-block; min-height: 0; margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: #7F8BB3; border: 1px solid var(--navy-line); border-radius: 999px; padding: 1px 7px; }
.nav svg { flex: 0 0 18px; }
.me { margin-top: auto; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 4px 10px; padding: 12px; border-radius: 12px; background: var(--navy-2); }
.me > span:nth-child(2) { min-width: 0; }
.me a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 999px; background: var(--mint); color: var(--navy); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.me a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; display: block; }
.me small { color: var(--quiet); font-size: 12px; display: block; }
.me form { grid-column: 1 / -1; border-top: 1px solid var(--navy-line); padding-top: 6px; }
.me form .linkbtn { width: 100%; text-align: left; }
.linkbtn { border: none; background: none; color: var(--quiet); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 6px; border-radius: 8px; }
.linkbtn:hover { color: #fff; background: var(--navy-3); }
.main { flex: 1; min-width: 0; padding: 28px 40px 64px; }
.page { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head p { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* Cards, tabs, tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.card > * + * { margin-top: 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #EEEAE0; }
.tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.tabs a[aria-current="page"] { background: #fff; color: var(--navy); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.tile .label { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; color: var(--muted); text-transform: uppercase; }
.tile .num { font-size: 34px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); padding: 6px 10px 8px; text-transform: uppercase; }
td { padding: 11px 10px; border-top: 1px solid var(--line-2); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.table-wrap { overflow-x: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.blue { background: var(--blue-bg); color: var(--navy-3); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.red { background: var(--red-bg); color: var(--red); }
.check { color: var(--green); font-weight: 800; }
.dash { color: #B9B2A2; }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--field); background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); width: 100%; }
textarea { padding: 10px 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #9DB4F0; outline-offset: 1px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; font-size: 14px; }
.checks label, label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-3); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--field); }
.btn.ghost:hover { background: var(--paper); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
details.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #FBFAF6; }
details.panel > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 800; color: var(--navy); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "+ "; }
details.panel[open] > summary::before { content: "– "; }
details.panel > div { padding: 0 18px 18px; }

/* Messages */
.flash { padding: 11px 16px; border-radius: 12px; background: var(--green-bg); color: #0B5F42; font-weight: 600; font-size: 14px; }
.error { padding: 11px 16px; border-radius: 12px; background: var(--red-bg); color: var(--red); font-weight: 600; font-size: 14px; }
.note { padding: 11px 16px; border-radius: 12px; background: var(--orange-bg); color: #7A3409; font-size: 14px; }

/* Sign in */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); padding: 24px 16px; }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.auth-brand { color: #fff; display: flex; flex-direction: column; gap: 10px; }
.auth-brand strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.auth-brand p { color: #C9D2EC; }
.auth-card { background: var(--paper); border-radius: 22px; padding: 28px 24px; }
.auth-card h1 { font-size: 24px; margin-bottom: 14px; }
.auth-card .btn { width: 100%; min-height: 50px; font-size: 16px; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); font-weight: 600; }
.checklist li:first-child { border-top: none; }
.tick { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 999px; border: 2px solid var(--field); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tick.done { background: var(--green); border-color: var(--green); color: #fff; }
.checklist a { margin-left: auto; font-size: 13px; font-weight: 700; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { position: static; height: auto; flex: none; padding: 14px; gap: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav > span[aria-disabled="true"] { display: none; }
  .me { margin-top: 0; }
  .main { padding: 20px 16px 48px; }
}

/* Leads list */
.views { display: flex; flex-wrap: wrap; gap: 6px; }
.views a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.views a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.views a span { font-weight: 600; color: var(--muted); }
.views a[aria-current="page"] span { color: var(--quiet); }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.filterbar input[type=search] { flex: 1 1 220px; min-height: 40px; background: var(--paper); border-color: transparent; }
.filterbar select { width: auto; min-height: 40px; font-size: 13px; }
.leadtable { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.leadtable table td, .leadtable table th { padding-left: 12px; padding-right: 12px; }
.leadtable table th:first-child, .leadtable table td:first-child { padding-left: 18px; }
.leadtable tr.row:hover td { background: #FAF9F5; }
.leadtable tr.row.open td { background: #F1F4FB; }
.leadtable a.name { font-weight: 700; color: var(--ink); text-decoration: none; display: block; }
.leadtable a.name:hover { color: var(--navy-3); text-decoration: underline; }
.leadtable .sub { font-size: 12.5px; color: var(--muted); }
.leadtable .phone { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.pager .actions { margin-left: auto; }
details.columns { position: relative; }
details.columns > summary { list-style: none; cursor: pointer; }
details.columns > summary::-webkit-details-marker { display: none; }
details.columns .menu { position: absolute; right: 0; top: 46px; z-index: 5; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(13,31,78,.14); padding: 14px; display: flex; flex-direction: column; gap: 8px; }

/* Slide-over panel */
.overlay { position: fixed; inset: 0; z-index: 30; }
.overlay .scrim { position: absolute; inset: 0; background: rgba(13,31,78,.28); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%; background: #fff; box-shadow: -24px 0 48px rgba(13,31,78,.18); display: flex; flex-direction: column; }
.drawer-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--field); background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; font-weight: 700; }
.iconbtn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.iconbtn.close { margin-left: auto; border: none; background: var(--paper); color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.drawer h2 { font-size: 21px; }
.pcard { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #FBFAF6; font-size: 13px; }
.pcard strong { min-width: 92px; color: var(--navy); }
.pcard form { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pcard select { min-height: 34px; padding: 0 8px; font-size: 13px; width: auto; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.timeline li { display: flex; gap: 14px; }
.timeline time { flex: 0 0 74px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline strong { display: block; }
.timeline .green { color: var(--green); }
.timeline .red { color: var(--red); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.drawer details summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 13px; }

/* Import */
.steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.steps span { padding: 6px 12px; border-radius: 999px; background: #EEEAE0; }
.steps span[aria-current="step"] { background: var(--navy); color: #fff; }
.colmap td { vertical-align: middle; }
.colmap select { min-width: 220px; }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.counts div { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.counts b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.counts .bad b { color: var(--red); }
.counts .ok b { color: var(--green); }
.small-table td, .small-table th { font-size: 13px; padding: 7px 8px; }

/* ===== Milestone 3: campaigns, templates, system ===== */
:root { --wa-bg: #EFE7DD; --wa-bubble: #FFFFFF; --wa-link: #027EB5; --rust: #9A430C; --purple: #5B3FA8; --purple-bg: #EFEBFA; --shadow: 0 1px 2px rgba(13,31,78,.06), 0 8px 24px rgba(13,31,78,.06); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); font-weight: 600; }
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.title-row .meta { font-size: 13px; color: var(--muted); }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.mint { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.btn.mint:hover { background: #2fc488; color: var(--navy); }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.green:hover { background: #0b6647; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.danger-link { background: none; border: none; color: var(--red); padding: 0 6px; }
.btn .kbd { font-size: 11px; opacity: .7; }
.linkish { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; }
.alarm-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--red-bg); color: var(--red); font-weight: 700; font-size: 14px; border: 1px solid #F6C9C4; }
.alarm-bar a { margin-left: auto; color: var(--red); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: #B9B2A2; flex: 0 0 9px; }
.dot.green { background: var(--mint); box-shadow: 0 0 0 3px rgba(61,213,152,.18); }
.dot.red { background: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.15); }
.dot.orange { background: #F2994A; }
.dot.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Sidebar numbers */
.side-numbers { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.side-numbers h4 { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--quiet); }
.side-numbers div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #D3DAEE; }
.side-numbers small { margin-left: auto; color: #8F9BC2; font-size: 11.5px; font-weight: 600; }

/* Wizard stepper */
.wizard { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.wizard a, .wizard span.step { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); min-height: 52px; }
.wizard a:hover { background: var(--paper); }
.wizard .n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid var(--field); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--muted); background: #fff; }
.wizard .done .n { background: var(--green-bg); border-color: var(--green-bg); color: var(--green); }
.wizard .current .n { background: var(--navy); border-color: var(--navy); color: #fff; }
.wizard b { display: block; font-size: 14px; color: var(--ink); font-weight: 700; line-height: 1.15; }
.wizard .current b { color: var(--navy); font-weight: 800; }
.wizard small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

/* Builder layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.split > aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .split > aside { position: static; } }
.section-title { font-size: 19px; font-weight: 800; color: var(--navy); margin: 6px 0 -4px; }
.card .lead { color: var(--muted); font-size: 14px; }
.foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }
.foot-actions .back { font-weight: 700; color: var(--muted); text-decoration: none; }
.foot-actions .spacer { flex: 1; }

/* Type cards */
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.type-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.type-card:hover { border-color: var(--field); box-shadow: var(--shadow); }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card .t { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 15px; }
.type-card .radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--field); flex: 0 0 20px; display: inline-flex; align-items: center; justify-content: center; }
.type-card p { font-size: 13px; color: var(--muted); }
.type-card .needs { font-size: 12.5px; font-weight: 700; color: var(--navy-3); margin-top: auto; }
.type-card:has(input:checked) { border: 2px solid var(--navy); background: #F3F5FB; padding: 15.5px 17.5px; }
.type-card:has(input:checked) .radio { border-color: var(--navy); background: radial-gradient(var(--navy) 0 4.5px, #fff 5.5px); }
.type-card:has(input:focus-visible) { outline: 3px solid #9DB4F0; outline-offset: 1px; }
.type-card.off { cursor: not-allowed; background: #FBFAF6; }
.type-card.off .t, .type-card.off p { color: #A7A08F; }
.type-card.off .needs { color: var(--orange); }

/* Steps list */
.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step-box { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #FBFAF6; }
.step-box.off { opacity: .55; }
.badge { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--navy); }
.badge.call { background: var(--rust); }
.badge.outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.step-box b { font-size: 14.5px; color: var(--ink); }
.step-box .sub { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.step-box .inline-input { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.step-box input[type=number] { width: 74px; min-height: 38px; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--blue-bg); color: var(--navy-3); }

/* Plain-words card */
.plain { background: var(--navy); color: #fff; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.plain h3 { color: #fff; font-size: 16px; }
.plain ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: #E4E9F7; }
.plain b { color: #fff; }
.plain .btn { width: 100%; min-height: 48px; }

/* Chips as filters */
.chip-set { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check small { color: var(--muted); font-weight: 600; }
.chip-check:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-check:has(input:checked) small { color: var(--quiet); }
.chip-check:has(input:focus-visible) { outline: 3px solid #9DB4F0; }
.filter-group { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group > span { font-size: 13px; font-weight: 800; color: var(--ink); }
.filter-group .hint { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #EEEAE0; gap: 2px; }
.seg label { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,31,78,.1); }

/* Audience result */
.audience-big { display: flex; align-items: baseline; gap: 10px; }
.audience-big b { font-size: 46px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.audience-big span { color: var(--muted); font-size: 14px; }
.meter { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--green); }
.meter i.out { background: #E9B9A4; }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.reasons li { display: grid; grid-template-columns: 1fr 70px 44px; align-items: center; gap: 10px; }
.reasons .bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.reasons .bar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.reasons b { text-align: right; font-variant-numeric: tabular-nums; }
.split-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-stats div { border-radius: 12px; background: var(--paper); padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.split-stats b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.people li:first-child { border-top: none; }
.people .av { width: 30px; height: 30px; border-radius: 999px; background: var(--blue-bg); color: var(--navy-3); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.people .who { min-width: 0; flex: 1; }
.people .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people .who span { color: var(--muted); font-size: 12px; }
.htmx-request .busy, .busy.htmx-request { opacity: .55; transition: opacity .2s; }

/* Variant tabs */
.variant-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-tabs a, .variant-tabs button.add { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field); background: #fff; color: var(--navy); font-weight: 800; font-size: 14px; text-decoration: none; }
.variant-tabs a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.variant-tabs a .w { font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: var(--blue-bg); color: var(--navy-3); }
.variant-tabs a[aria-current="true"] .w { background: rgba(255,255,255,.16); color: #fff; }
.variant-tabs button.add { border-style: dashed; background: none; cursor: pointer; font-family: inherit; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .pick-grid { grid-template-columns: 1fr; } }
.verify { font-size: 12.5px; font-weight: 700; color: var(--green); line-height: 1.6; }
.verify .mono { font-size: 12px; }
.verify.warn { color: var(--orange); }
.button-map { width: 100%; }
.button-map td { vertical-align: middle; }

/* WhatsApp phone preview */
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phone { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 38px; background: #0D1F4E; padding: 10px; box-shadow: 0 30px 60px -20px rgba(13,31,78,.45); }
.phone-screen { border-radius: 30px; overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; min-height: 520px; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; background: #fff; border-bottom: 1px solid #E8E2D6; }
.phone-bar .av { width: 34px; height: 34px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.phone-bar b { display: block; font-size: 14px; color: #111; }
.phone-bar small { font-size: 11px; color: #667; }
.chat { padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; background-image: radial-gradient(rgba(13,31,78,.035) 1px, transparent 1px); background-size: 14px 14px; }
.bubble { background: var(--wa-bubble); border-radius: 4px 14px 14px 14px; padding: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.06); max-width: 100%; }
.bubble .media { border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #3B1F6E, #6D3FA0 55%, #E8833A); aspect-ratio: 1.6; display: flex; align-items: center; justify-content: center; color: #F8E7C1; font-weight: 800; font-size: 13px; text-align: center; }
.bubble .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble .media.doc { aspect-ratio: auto; padding: 14px; background: #F2EFEA; color: #333; justify-content: flex-start; gap: 8px; font-weight: 700; }
.bubble .htext { font-weight: 800; font-size: 14px; padding: 6px 6px 0; color: #111; }
.bubble .text { padding: 6px 6px 2px; font-size: 13.5px; line-height: 1.45; color: #111; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .text mark { background: #FFF1B8; border-radius: 3px; padding: 0 2px; }
.bubble .foot { padding: 2px 6px; font-size: 12px; color: #8a8a8a; }
.bubble .time { text-align: right; font-size: 10.5px; color: #8a8a8a; padding: 0 6px 2px; }
.wa-btn { background: #fff; border-radius: 10px; padding: 9px; text-align: center; color: var(--wa-link); font-weight: 600; font-size: 13.5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); display: flex; gap: 6px; align-items: center; justify-content: center; }
.wa-btn small { font-size: 10.5px; font-weight: 800; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 1px 7px; }
.phone-note { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Test send */
.test-card { border: 1px dashed var(--field); border-radius: 16px; padding: 16px 18px; background: #FDFCF9; display: flex; flex-direction: column; gap: 12px; }
.test-card h3 { display: flex; align-items: center; gap: 8px; }
.track { display: flex; align-items: flex-start; gap: 0; }
.track .s { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); position: relative; text-align: center; }
.track .s::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.track .s:first-child::before { display: none; }
.track .s i { width: 20px; height: 20px; border-radius: 999px; background: #fff; border: 2px solid var(--field); z-index: 1; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: #fff; }
.track .s.on { color: var(--green); }
.track .s.on i { background: var(--green); border-color: var(--green); }
.track .s.on::before { background: var(--green); }
.track .s.now i { animation: pulse 1.2s infinite; border-color: var(--navy-3); }
.test-result { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.test-result.failed { border-color: #F6C9C4; background: var(--red-bg); }

/* Campaign list */
.camp-list { display: flex; flex-direction: column; gap: 10px; }
.camp { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.camp:hover { border-color: var(--field); box-shadow: var(--shadow); color: inherit; }
.camp h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.camp .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.camp .facts b { color: var(--ink); font-weight: 700; }
.camp .go { font-weight: 800; color: var(--navy); font-size: 14px; white-space: nowrap; }
.empty { text-align: center; padding: 48px 24px; background: #fff; border: 1px dashed var(--field); border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 460px; }

/* Templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tpl { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tpl .top { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 6px; }
.tpl .top h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.tpl .mono { color: var(--muted); }
.tpl .mini { background: var(--wa-bg); padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.tpl .mini .bubble .text { font-size: 12.5px; max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.tpl .mini .wa-btn { font-size: 12px; padding: 6px; }
.tpl .bottom { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.tpl .bottom .langs { display: flex; gap: 4px; }
.tpl .bottom a { margin-left: auto; font-size: 13px; font-weight: 800; }
.btn-rows { display: flex; flex-direction: column; gap: 8px; }
.btn-row { display: grid; grid-template-columns: 140px 1fr 170px; gap: 8px; align-items: center; }
.btn-row .extra { grid-column: 2 / 4; }
@media (max-width: 720px) { .btn-row { grid-template-columns: 1fr; } .btn-row .extra { grid-column: auto; } }
.slot-table td { vertical-align: middle; }
.slot-table .slot { font-family: var(--mono); font-weight: 700; color: var(--navy-3); background: var(--blue-bg); border-radius: 8px; padding: 3px 8px; font-size: 12.5px; }
textarea.body { min-height: 190px; font-size: 14.5px; line-height: 1.55; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }

/* Review */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.facts-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.facts-card .label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; display: flex; justify-content: space-between; }
.facts-card .label a { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.facts-card b { font-size: 17px; color: var(--navy); }
.facts-card span { font-size: 13px; color: var(--muted); }
.checks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checks-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.checks-list li:first-child { border-top: none; }
.checks-list .ic { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--green); margin-top: 1px; }
.checks-list .ic.no { background: var(--red); }
.checks-list .ic.warn { background: #E5A33A; }
.checks-list a { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.start-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }

/* System */
.sys-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sys-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.sys-tile .label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sys-tile b { font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.sys-tile span { font-size: 13px; color: var(--muted); }
.sys-tile.bad { border-color: #F6C9C4; background: #FFF8F7; }
.sys-tile.bad b { color: var(--red); }
.alarm { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.alarm:first-child { border-top: none; }
.alarm .sev { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.sev.critical { background: var(--red-bg); color: var(--red); }
.sev.warn { background: var(--orange-bg); color: var(--orange); }
.sev.info { background: var(--blue-bg); color: var(--navy-3); }
.alarm small { grid-column: 2 / 3; color: var(--muted); font-size: 12.5px; }
pre.trace { white-space: pre-wrap; font-size: 11.5px; background: #0F1A3A; color: #D9E1F7; padding: 12px; border-radius: 12px; max-height: 260px; overflow: auto; }

@media (max-width: 720px) {
  .grid[style] { grid-template-columns: 1fr !important; }
  .split-stats { grid-template-columns: 1fr 1fr; }
  .head-actions { width: 100%; }
}
.slot-table select { min-width: 190px; }
.slot-table td:last-child input { min-width: 160px; }
@media (max-width: 860px) { .side-numbers { display: none; } }

/* platform view note on System */
.chip-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px;
  border-radius: 999px; background: var(--blue-bg); color: var(--navy); font-size: 13px; font-weight: 600; }

/* ============ Milestone 4: sending, inbox, notifications ============ */
:root { --wa-out: #D9FDD3; --wa-read: #34B7F1; }

/* bell and nav badge */
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bell { position: relative; }
.bell > summary { list-style: none; cursor: pointer; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #D3DAEE; position: relative; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary:hover, .bell[open] > summary { background: var(--navy-2); color: #fff; }
.bell-n { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--navy); }
.bell-panel { position: fixed; left: 236px; top: 18px; width: 360px; max-height: min(560px, calc(100vh - 40px)); overflow-y: auto; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px -12px rgba(13,31,78,.45), 0 0 0 1px rgba(13,31,78,.06); z-index: 60; padding: 8px; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; }
.bell-head b { color: var(--navy); font-size: 15px; }
.bell-head .linkish { font-size: 12.5px; text-decoration: none; }
.bell-item { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.bell-item:hover { background: var(--paper); color: var(--ink); }
.bell-item b { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.bell-item.unread b { color: var(--navy); font-weight: 800; }
.bell-item small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.bell-item em { display: block; font-style: normal; font-size: 11.5px; color: #8b93a6; margin-top: 4px; }
.bell-item .sev-dot { width: 9px; height: 9px; border-radius: 999px; margin-top: 5px; background: transparent; }
.bell-item.unread .sev-dot { background: var(--navy-3); }
.bell-item.unread.critical .sev-dot { background: #E5484D; }
.bell-item.unread.warn .sev-dot { background: #F2994A; }
.bell-empty { padding: 18px 12px; font-size: 13px; color: var(--muted); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--mint); color: var(--navy); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge.hot { background: #E5484D; color: #fff; animation: pulse 2s ease-in-out infinite; }
.alarm-bar.paused { background: var(--orange-bg); color: var(--orange); border-color: #F3D2BB; }
.alarm-bar.paused a { color: var(--orange); }
@media (max-width: 860px) { .bell-panel { left: 12px; right: 12px; width: auto; top: 70px; } }

/* buttons and dialogs */
.btn.big { min-height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn.green[disabled] { background: #9DBFB1; border-color: #9DBFB1; cursor: not-allowed; }
.btn.ghost.danger { color: var(--red); }
.btn.ghost.danger:hover { background: var(--red-bg); border-color: #F6C9C4; }
.btn.danger-solid { background: var(--red); border-color: var(--red); }
.btn.danger-solid:hover { background: #932015; }
.start-box.ready { background: linear-gradient(135deg, #F1FAF5, #FFFFFF 60%); border-color: #CBE7D9; }
.start-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
dialog.confirm { border: none; border-radius: 22px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(13,31,78,.55); color: var(--ink); }
dialog.confirm::backdrop { background: rgba(13,31,78,.42); backdrop-filter: blur(3px); }
dialog.confirm form { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; }
dialog.confirm h2 { font-size: 21px; }
dialog.confirm p { color: var(--muted); font-size: 14px; }
.confirm-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.confirm-ic.red { background: var(--red-bg); color: var(--red); }
.confirm-facts { list-style: none; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.confirm-facts li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: 13.5px; }
.confirm-facts span { color: var(--muted); font-weight: 600; }
.confirm-facts b { color: var(--ink); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* campaign list */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.camp-bar { margin-top: 10px; height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; max-width: 420px; }
.camp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--mint)); border-radius: 999px; }
.camp.running { border-left: 4px solid var(--mint); }
.camp.paused { border-left: 4px solid #F2994A; }

/* live campaign */
.live-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.live-title h1 { font-size: 30px; }
.live-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.live-sub b { color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--line-2); color: var(--muted); }
.status-pill.running { background: var(--green-bg); color: var(--green); }
.status-pill.paused { background: var(--orange-bg); color: var(--orange); }
.status-pill.scheduled { background: var(--blue-bg); color: var(--navy-3); }
.live-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.live-controls form { margin: 0; }
.pause-banner { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--orange-bg); border: 1px solid #F3D2BB; }
.pause-banner .pb-ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.pause-banner b { color: var(--orange); }
.pause-banner p { font-size: 13.5px; color: #7A3409; margin-top: 2px; }
.hero-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.hero-main { display: flex; align-items: center; gap: 26px; padding: 26px 28px; }
.ring { --pct: 0; flex: 0 0 132px; width: 132px; height: 132px; border-radius: 999px; background: conic-gradient(var(--green) calc(var(--pct) * 1%), var(--line-2) 0); display: flex; align-items: center; justify-content: center; position: relative; transition: background .6s; }
.ring > div { width: 104px; height: 104px; border-radius: 999px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.ring b { font-size: 30px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ring small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-text h2 { font-size: 34px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-text h2 span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pace { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.stackbar { display: flex; height: 12px; border-radius: 999px; background: repeating-linear-gradient(-45deg, var(--line-2), var(--line-2) 6px, #F5F2EA 6px, #F5F2EA 12px); overflow: hidden; }
.stackbar i { display: block; height: 100%; transition: width .6s ease; }
.stackbar i.sent, .legend i.sent { background: linear-gradient(90deg, var(--green), #20A06F); }
.stackbar i.fail, .legend i.fail { background: #E5484D; }
.stackbar i.skip, .legend i.skip { background: #F2C14E; }
.legend i.wait { background: repeating-linear-gradient(-45deg, #D9D3C4, #D9D3C4 3px, #F0ECE2 3px, #F0ECE2 6px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-side { background: linear-gradient(180deg, #F9F7F1, #F4F1E8); border-left: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.hs { display: flex; flex-direction: column; gap: 4px; }
.hs > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hs b { font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.hs b small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hs > small { font-size: 12.5px; color: var(--muted); }
.hs .meter { height: 6px; margin-top: 2px; }
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.fstep { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.fstep .label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fstep b { font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fstep small { font-size: 12px; color: var(--muted); min-height: 16px; }
.fbar { height: 4px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-top: 6px; }
.fbar i { display: block; height: 100%; background: var(--navy-3); border-radius: 999px; transition: width .6s; }
.fstep.green b { color: var(--green); } .fstep.green .fbar i { background: var(--green); }
.fstep.red b { color: var(--red); } .fstep.red .fbar i { background: #E5484D; }
.fstep.blue .fbar i { background: #4F6BD8; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.live-side { display: flex; flex-direction: column; gap: 14px; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; animation: feedin .4s ease; }
.feed li:first-child { border-top: none; }
.feed li.green .ft { color: var(--green); } .feed li.red .ft { color: var(--red); }
.feed .ft b a, .feed .ft b { color: var(--ink); text-decoration: none; }
.feed q { display: block; color: var(--muted); font-style: italic; font-size: 12.5px; margin-top: 2px; quotes: "“" "”"; }
.feed time { font-size: 11.5px; color: #8b93a6; white-space: nowrap; }
@keyframes feedin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.av { --h: 220; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 999px; background: hsl(var(--h) 55% 90%); color: hsl(var(--h) 45% 32%); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.av.sm { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; }
.av.lg { width: 44px; height: 44px; flex-basis: 44px; font-size: 14px; }
.reasons .bar.yes i, .reasons .bar.call i { background: var(--green); }
.reasons .bar.text i { background: #4F6BD8; }
.reasons .bar.no i, .reasons .bar.stop i { background: #E5484D; }
.held { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.held li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.held b { font-variant-numeric: tabular-nums; }
.vtable td, .vtable th { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); } .live-grid { grid-template-columns: 1fr; } .hero-card { grid-template-columns: 1fr; } .hero-side { border-left: none; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
@media (max-width: 640px) { .hero-main { flex-direction: column; align-items: flex-start; padding: 20px; } .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-text h2 { font-size: 28px; } .pause-banner { grid-template-columns: 40px 1fr; } .pause-banner form { grid-column: 1 / -1; } }

/* inbox */
.page:has(> .inbox) { max-width: 1320px; }
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 56px); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.ib-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #FCFBF8; }
.ib-head { padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line-2); }
.ib-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ib-title h1 { font-size: 24px; }
.ib-search { position: relative; }
.ib-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ib-search input { min-height: 40px; padding-left: 36px; border-radius: 12px; background: #fff; font-size: 14px; }
.ib-views { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: #EEEAE0; }
.ib-views a { flex: 1; text-align: center; padding: 7px 4px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ib-views a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,31,78,.08); }
.ib-views a span { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #F2994A; color: #fff; font-size: 10.5px; align-items: center; justify-content: center; }
.ib-items { flex: 1; overflow-y: auto; padding: 6px; }
.ib-item { display: flex; gap: 12px; padding: 11px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); position: relative; transition: background .12s; }
.ib-item:hover { background: #F3F0E8; color: var(--ink); }
.ib-item.on { background: #E9EEFB; }
.ib-item.needs::before { content: ""; position: absolute; left: 2px; top: 50%; width: 4px; height: 26px; margin-top: -13px; border-radius: 999px; background: #F2994A; }
.ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ib-top b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-item.needs .ib-top b { font-weight: 800; color: var(--navy); }
.ib-top time { font-size: 11.5px; color: #8b93a6; white-space: nowrap; }
.ib-prev { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-prev i { font-style: normal; color: #8b93a6; }
.ib-item.needs .ib-prev { color: var(--ink); font-weight: 600; }
.ib-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11.5px; color: #8b93a6; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; background: var(--line-2); color: var(--muted); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.orange { background: var(--orange-bg); color: var(--orange); }
.tag.win { background: var(--green-bg); color: var(--green); }
.unowned { color: var(--orange); font-weight: 700; }
.ib-none { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.ib-thread { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ib-empty { margin: auto; max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px; color: var(--muted); font-size: 14px; }
.th { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.th-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); background: #fff; }
.th-back { display: none; }
.th-who { flex: 1; min-width: 0; }
.th-who b { display: block; font-size: 16px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-who small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.th-who .chip { padding: 1px 8px; font-size: 11px; }
.th-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.owner { font-size: 12px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--line-2); }
.owner.me { background: var(--green-bg); color: var(--green); }
.th-q { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 18px; background: #FFF8EC; border-bottom: 1px solid #F4E3C4; font-size: 13px; color: #7A3409; }
.th-q .q-ic { width: 28px; height: 28px; border-radius: 9px; background: #F2994A; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.th-q p { margin-top: 2px; color: var(--ink); font-style: italic; }
.th-scroll { flex: 1; min-height: 0; overflow-y: auto; background: var(--wa-bg); background-image: radial-gradient(rgba(13,31,78,.04) 1px, transparent 1px); background-size: 16px 16px; }
.th-msgs { display: flex; flex-direction: column; gap: 4px; padding: 18px 6% 22px; }
.th-none { text-align: center; color: var(--muted); font-size: 13px; padding: 30px; }
.day { display: flex; justify-content: center; margin: 10px 0 6px; }
.day span { background: rgba(255,255,255,.92); color: #5f6b7d; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.msg { display: flex; flex-direction: column; max-width: min(520px, 78%); gap: 3px; animation: msgin .25s ease; }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b7487; padding: 0 6px; }
.mb { background: #fff; border-radius: 4px 14px 14px 14px; padding: 6px 8px 4px; box-shadow: 0 1px 1px rgba(0,0,0,.07); position: relative; min-width: 84px; }
.msg.out .mb { background: var(--wa-out); border-radius: 14px 4px 14px 14px; }
.msg.template .mb { background: #fff; }
.msg.out.template .mb { border-top: 3px solid #25D366; }
.mb .media { border-radius: 10px; overflow: hidden; margin: -2px -4px 6px; background: linear-gradient(135deg, #3B1F6E, #6D3FA0 55%, #E8833A); aspect-ratio: 1.7; max-width: 340px; }
.mb .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb .media.broken::after { content: "🖼"; display: flex; height: 100%; align-items: center; justify-content: center; font-size: 28px; }
.mb .text { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: #111b21; padding-right: 54px; }
.mb .foot { font-size: 12px; color: #8696a0; margin-top: 4px; }
.mb .tap { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #027EB5; padding: 2px 54px 2px 2px; }
.mb .meta { position: absolute; right: 8px; bottom: 4px; display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: #667781; }
.tk { color: #8696a0; }
.tk.read { color: var(--wa-read); }
.tk.bad { display: inline-flex; width: 14px; height: 14px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 10px; font-weight: 800; align-items: center; justify-content: center; }
.tk.q { display: inline-flex; width: 14px; height: 14px; border-radius: 999px; background: #F2C14E; color: #5b4300; font-size: 10px; font-weight: 800; align-items: center; justify-content: center; }
.msg-btns { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.msg-btns span { background: #fff; border-radius: 10px; padding: 8px; text-align: center; color: #027EB5; font-size: 13px; font-weight: 600; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg-err { font-size: 11.5px; color: var(--red); font-weight: 700; padding: 0 6px; }
.th-compose { border-top: 1px solid var(--line-2); background: #F7F5F0; padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.win { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.win b { color: var(--green); }
.win.closed { color: var(--orange); font-weight: 700; }
.composer { display: flex; align-items: flex-end; gap: 10px; }
.composer textarea { flex: 1; min-height: 46px; max-height: 160px; resize: none; border-radius: 22px; padding: 12px 18px; font-size: 14.5px; line-height: 1.4; border-color: #DDD7C9; box-shadow: 0 1px 2px rgba(13,31,78,.04); }
.composer .send { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 999px; border: none; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s, background .15s; }
.composer .send:hover { background: #0b6647; }
.composer .send:active { transform: scale(.94); }
.composer .send[disabled] { opacity: .5; }
.tpl-send { align-items: stretch; }
.tpl-pick { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tpl-preview { font-size: 13px; color: var(--ink); background: #fff; border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; max-height: 120px; overflow-y: auto; border: 1px solid var(--line-2); }
.tpl-send .btn { align-self: flex-end; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 150px); border-radius: 16px; }
  .inbox.has-thread .ib-list { display: none; }
  .inbox:not(.has-thread) .ib-thread { display: none; }
  .th-back { display: inline-flex; }
  .th-head { flex-wrap: wrap; padding: 10px 12px; }
  .th-actions { width: 100%; justify-content: flex-start; }
  .th-msgs { padding: 14px 10px 18px; }
  .msg { max-width: 88%; }
}

/* lead panel: tasks, chat, campaigns */
.task-strip { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--green-bg); border: 1px solid #CBE7D9; }
.task-strip .ts-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.task-strip b { display: block; font-size: 13.5px; color: var(--green); }
.task-strip small { display: block; font-size: 12px; color: var(--muted); }
.panel-chat { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.pc-head b { color: #128C7E; }
.pc-open { margin-left: auto; font-weight: 700; font-size: 13px; }
.pc-msgs { background: var(--wa-bg); padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.pc-msg { max-width: 85%; background: #fff; border-radius: 10px; padding: 6px 9px; font-size: 12.5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-msg.out { align-self: flex-end; background: var(--wa-out); }
.pc-msg time { display: block; text-align: right; font-size: 10px; color: #8696a0; margin-top: 2px; }
.panel-camps { display: flex; flex-direction: column; gap: 6px; }
.pcamp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 8px 10px; border-radius: 12px; background: var(--paper); }
.pcamp a { font-weight: 700; }
.pcamp form { margin-left: auto; }
.tile-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.tile-link:hover { border-color: var(--field); box-shadow: var(--shadow); color: inherit; }
.tile-link.hot { border-color: #F3D2BB; background: linear-gradient(135deg, #FFF8F1, #fff 70%); }
.tile .late { color: var(--red); font-weight: 700; }
.pcamp.add select { flex: 1; min-height: 36px; font-size: 13px; }

/* ===== Milestone 5: calls, knowledge, files ===== */
.chip-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--navy); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.chip-btn:hover { background: var(--paper); }
.spacer { flex: 1; }
.inline-field { margin-top: 6px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* nav: calls badge and my status dot */
.st-dot { width: 8px; height: 8px; border-radius: 999px; margin-left: 6px; flex: 0 0 8px; background: transparent; }
.st-dot.available { background: var(--mint); box-shadow: 0 0 0 3px rgba(61,213,152,.2); }
.st-dot.break { background: #F2994A; }
.nav a .nav-badge + .st-dot { margin-left: 6px; }

/* status switch */
.status-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.status-seg label { gap: 7px; }
.status-seg .st-available:has(input:checked) { color: var(--green); }
.status-seg .st-break:has(input:checked) { color: var(--orange); }
.break-reasons { position: absolute; top: 46px; right: 0; z-index: 6; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(13,31,78,.14); width: 300px; }
.break-reasons[hidden] { display: none; }

/* the caller's home */
.held-call { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(120deg, #E8FBF2, #fff 70%); border: 1.5px solid #9DE5C4; text-decoration: none; color: var(--ink); }
.held-call b { display: block; font-size: 15px; color: var(--navy); }
.held-call small { color: var(--muted); font-size: 12.5px; }
.hc-pulse { width: 34px; height: 34px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #CDEFE0; }
.call-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.ch-next { padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.next-btn { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; border: none; border-radius: 20px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 14px 30px rgba(13,31,78,.24); transition: transform .12s, box-shadow .12s; }
.next-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(13,31,78,.3); }
.next-btn:active { transform: translateY(1px); }
.next-btn[disabled] { background: #9AA3BC; box-shadow: none; cursor: not-allowed; transform: none; }
.nb-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--mint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.nb-text b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.nb-text small { color: #C9D2EE; font-size: 13.5px; font-weight: 600; }
.nb-arrow { font-size: 26px; font-weight: 800; color: var(--mint); }
.waiting-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wchip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wchip b { color: var(--navy); }
.wchip.callback, .wchip.call_me, .wchip.demo, .wchip.senior { background: var(--orange-bg); color: var(--orange); }
.wchip.callback b, .wchip.call_me b, .wchip.demo b, .wchip.senior b { color: var(--orange); }
.they-called { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.they-called label { font-size: 13px; font-weight: 800; }
.tc-row { display: flex; gap: 8px; max-width: 420px; }
.tc-row input { flex: 1; }
.ch-day { background: linear-gradient(180deg, #F9F7F1, #F4F1E8); border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; justify-content: center; }
.day-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.day-stats div { background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.day-stats b { display: block; font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.day-stats span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plist a { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); transition: background .12s; }
.plist a:hover { background: #EFEBE0; }
.plist time b { display: block; font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }
.plist time small { font-size: 11px; color: var(--muted); }
.pl-main b { display: block; font-size: 14px; }
.pl-main small { color: var(--muted); font-size: 12px; }
.plist li.late a { background: var(--red-bg); }
.plist li.late time b { color: var(--red); }
.pl-h { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.pl-h.late { color: var(--red); }
.pl-empty { padding: 6px 0; }

/* the call screen */
.take-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: var(--blue-bg); font-size: 14px; }
.call-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.call-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.call-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.call-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.cc-top { display: flex; gap: 14px; align-items: center; }
.cc-who h1 { font-size: 26px; }
.cc-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cc-dial { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.cc-phone .mono { font-size: 18px; color: var(--navy); font-weight: 600; }
.cc-phone small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dial-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 10px 22px rgba(14,122,85,.3); }
.dial-btn:hover { background: #0b6647; color: #fff; }
.dial-btn .timer { font-style: normal; font-family: var(--mono); font-size: 14px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.2); }
.why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.why li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.why time { margin-left: auto; color: var(--muted); font-size: 12px; }
.script-card .script-body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; background: #FFFDF6; border-left: 4px solid var(--mint); border-radius: 0 12px 12px 0; padding: 14px 16px; }
.script-card.folded .script-body, .script-card.folded .objections { display: none; }
.objections { display: flex; flex-direction: column; gap: 6px; }
.obj-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.obj-item summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--navy); list-style: none; }
.obj-item summary::before { content: "“"; color: var(--orange); font-weight: 800; margin-right: 4px; }
.obj-item[open] summary { border-bottom: 1px solid var(--line-2); }
.obj-item p { padding: 10px 12px; font-size: 14px; white-space: pre-wrap; }
.outcome-card { border-width: 1.5px; }
.outcomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.outcome { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 10px; border-radius: 14px; border: 1.5px solid var(--field); background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; text-align: center; transition: background .12s, border-color .12s; }
.outcome input { position: absolute; opacity: 0; pointer-events: none; }
.outcome:hover { background: var(--paper); }
.outcome.green:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.outcome.blue:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.outcome.ink:has(input:checked) { background: #5B6378; border-color: #5B6378; color: #fff; }
.outcome.red:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.outcome:has(input:focus-visible) { outline: 3px solid #9DB4F0; }
.when-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--blue-bg); }
.when-box[hidden] { display: none; }
.when-box input { max-width: 280px; }
.quick-when { display: flex; flex-wrap: wrap; gap: 6px; }
.best-time { display: flex; align-items: center; gap: 8px; }
.best-time input { max-width: 130px; }
.abusive-box { padding: 10px 12px; border-radius: 12px; background: var(--red-bg); color: var(--red); }
.abusive-box[hidden] { display: none; }
.outcome-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 6px; border-top: 1px solid var(--line-2); }
.qlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qlist li { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--orange-bg); }
.qlist small { color: var(--muted); }
.q-answer { display: flex; gap: 8px; }
.q-answer input { flex: 1; }
.call-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.call-history li { position: relative; padding: 8px 0 8px 16px; border-top: 1px solid var(--line-2); font-size: 13px; }
.call-history li:first-child { border-top: none; }
.call-history li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 999px; background: #B9B2A2; }
.call-history li.green::before { background: var(--green); } .call-history li.blue::before { background: var(--navy-3); } .call-history li.red::before { background: var(--red); }
.call-history b { display: block; }
.call-history small { color: var(--muted); font-size: 12px; }
.call-history p { margin-top: 3px; color: var(--ink); font-size: 12.5px; }
.call-history .ht { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.files a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.files a:hover { background: var(--paper); }
.files b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files small { color: var(--muted); font-size: 11.5px; }
.fi { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--blue-bg); color: var(--navy-3); font-size: 14px; }
.fi.call_recording, .fi.voice_note { background: var(--green-bg); color: var(--green); }
.upload { display: flex; flex-direction: column; gap: 6px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border: 1.5px dashed var(--field); border-radius: 14px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); }
.drop:hover { background: var(--paper); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop small { color: var(--muted); font-weight: 600; }
.voice { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.voice .rec { align-self: flex-start; }
.rec-time { font-family: var(--mono); font-size: 13px; color: var(--red); }
.rec-opts { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--paper); }
.rec-opts[hidden] { display: none; }
.voice audio { width: 100%; height: 36px; }
.vn small { display: block; color: var(--muted); font-size: 11.5px; }
.skip-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
dialog.confirm input[type=text] { width: 100%; }

/* knowledge drawer */
.kb-overlay[hidden] { display: none; }
.kb-overlay .drawer input[type=search] { width: 100%; }
.kb-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kb-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: grab; }
.kb-item summary { cursor: pointer; list-style: none; padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; }
.kb-item b { font-size: 14px; color: var(--navy); }
.kb-item p { padding: 0 13px; font-size: 13.5px; white-space: pre-wrap; }
.kb-item .actions { padding: 10px 13px 12px; }
.kb-item.objection { border-left: 4px solid #F2994A; }
.kb-item.faq { border-left: 4px solid var(--mint); }
.kb-kind { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kb-none { padding: 10px 0; }

/* manager: team calls */
.team-tiles .tile .label, .team-tiles .tile .num { display: block; }
.team-tiles .tile small { display: block; margin-top: 4px; }
.tile.hot { border-color: #F3D2BB; background: linear-gradient(135deg, #FFF3EE, #fff 70%); }
.tile.hot .num { color: var(--red); }
.people-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 8px; }
.pb { display: grid; grid-template-columns: 44px minmax(0, 1fr) 46px 64px 58px; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; color: var(--ink); }
.pb:hover { border-color: var(--field); box-shadow: var(--shadow); color: var(--ink); }
.pb.picked { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(13,31,78,.12); }
.pb .av { position: relative; }
.pb .st { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 999px; border: 2px solid #fff; background: #B9B2A2; }
.pb.available .st { background: var(--mint); } .pb.break .st { background: #F2994A; }
.pb-main { min-width: 0; }
.pb-main b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-main small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-main .langs { color: var(--navy-3); }
.pb-nums { text-align: center; }
.pb-nums b { display: block; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.pb-nums small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.assign-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--paper); position: sticky; top: 0; z-index: 2; }
.assign-bar select { min-height: 36px; max-width: 260px; }
.task-table td small.sub { display: block; color: var(--muted); font-size: 12px; }
.task-table tr.late td { background: #FFF6F4; }
.tab-n { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--line-2); color: var(--muted); font-size: 11px; align-items: center; justify-content: center; margin-left: 6px; }
.tab-n.hot { background: var(--orange); color: #fff; }

/* campaign calls step */
.caller-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.caller-pick[hidden] { display: none; }
.caller-chip { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.caller-chip input { position: absolute; opacity: 0; }
.caller-chip:has(input:checked) { border-color: var(--navy); background: #F3F5FB; }
.caller-chip b { display: block; font-size: 13.5px; }
.caller-chip small { color: var(--muted); font-size: 12px; }
.lang-cover { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lc { padding: 10px 12px; border-radius: 12px; background: var(--green-bg); }
.lc b { display: block; font-size: 14px; }
.lc span { display: block; font-size: 12.5px; color: var(--ink); }
.lc small { color: var(--green); font-weight: 700; font-size: 12px; }
.lc.none { background: var(--orange-bg); }
.lc.none small { color: var(--orange); }

/* knowledge pages */
.kb-search { display: flex; gap: 8px; align-items: center; }
.kb-search input { flex: 1; max-width: 520px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.kb-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; border-top: 4px solid var(--line); }
.kb-card:hover { border-color: var(--field); box-shadow: var(--shadow); color: var(--ink); }
.kb-card.faq { border-top-color: var(--mint); } .kb-card.objection { border-top-color: #F2994A; } .kb-card.script { border-top-color: var(--navy); } .kb-card.article { border-top-color: #9DB4F0; }
.kb-card b { font-size: 15px; color: var(--navy); }
.kb-card p { font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; margin-top: auto; }
.kb-form { display: flex; flex-direction: column; gap: 14px; }
.kb-form fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kb-form textarea { width: 100%; font-size: 15px; line-height: 1.55; }
.kind-seg { flex-wrap: wrap; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slots[hidden] { display: none; }
.lang-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.add-lang summary { list-style: none; cursor: pointer; }
.add-lang form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.q-cards { display: flex; flex-direction: column; gap: 10px; }
.q-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.q-card header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.q-card header a { margin-left: auto; font-weight: 700; }
.q-text { font-size: 16px; color: var(--navy); }
.q-answer-text { padding: 10px 12px; border-radius: 12px; background: var(--green-bg); white-space: pre-wrap; font-size: 14px; }
.q-form { display: flex; flex-direction: column; gap: 8px; }
.q-form textarea { width: 100%; }
.q-close { align-self: flex-end; }

/* lead panel and lists */
.assign-one { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--paper); }
.assign-one select { min-height: 34px; font-size: 13px; flex: 1; }
.panel-calls { border: 1px solid var(--line); border-radius: 16px; padding: 0 12px 8px; }
.panel-calls .pc-head { padding: 10px 0; border-bottom: none; }
.panel-calls .pc-head b { color: var(--navy); }
.panel-files { display: flex; flex-direction: column; gap: 6px; }
details.assign-menu { position: relative; }
details.assign-menu > summary { list-style: none; cursor: pointer; }
details.assign-menu > summary::-webkit-details-marker { display: none; }
details.assign-menu .menu { position: absolute; right: 0; top: 50px; z-index: 6; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(13,31,78,.14); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lang-rows { display: flex; flex-direction: column; gap: 8px; }
.lang-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lang-row select { max-width: 220px; min-height: 38px; }
.level-seg label { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.script-card .script-body { max-height: 420px; overflow: auto; }

@media (max-width: 960px) {
  .call-hero { grid-template-columns: 1fr; }
  .ch-day { border-left: none; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .call-layout { grid-template-columns: 1fr; }
  .call-side { position: static; }
  .pb { grid-template-columns: 44px 1fr 48px 60px; }
  .pb .pb-nums:last-child { display: none; }
}
@media (max-width: 640px) {
  .next-btn { grid-template-columns: 52px 1fr; padding: 16px; }
  .nb-ic { width: 52px; height: 52px; }
  .nb-arrow { display: none; }
  .nb-text b { font-size: 21px; }
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-actions .btn { flex: 1; }
  .outcome-actions .btn.big { flex-basis: 100%; }
  .cc-dial { flex-direction: column; align-items: stretch; }
  .dial-btn { justify-content: center; }
  .grid.two { grid-template-columns: 1fr; }
  .break-reasons { right: auto; left: 0; }
}
.lang-rows + .linkish { align-self: flex-start; }
.block-bar { padding: 12px 16px; border-radius: 14px; background: var(--orange-bg); color: #7A3409; font-size: 14px; }
.block-bar.hard { background: var(--red-bg); color: var(--red); }
.block-bar b { margin-right: 6px; }
.lost-notes { margin: 0; padding: 12px 16px; border-left: 4px solid var(--mint); background: var(--paper); border-radius: 0 12px 12px 0; text-align: left; white-space: pre-wrap; max-width: 560px; }

/* ===== Milestone 6: dashboards ===== */
.auth-note { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
.card.flush { padding: 0; }
.card.flush > * + * { margin-top: 0; }
.card-head.pad { padding: 20px 24px 12px; }
.card-head.sub { margin-top: 18px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: var(--field); box-shadow: var(--shadow); color: inherit; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--navy-3); opacity: .85; }
.kpi.green::before { background: var(--green); }
.kpi.warn::before { background: #F2994A; }
.k-label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-size: 30px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.kpi b small { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.kpi b.dur { font-size: 24px; }
.kpi.green b { color: var(--green); }
.kpi > small { font-size: 12.5px; color: var(--muted); }

/* Reached → responded → interested → won */
.flow { display: flex; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; overflow-x: auto; }
.flow-step { flex: 1 1 0; min-width: 118px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: inherit; }
a.flow-step:hover { background: var(--paper); color: inherit; }
.flow-step span { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.flow-step b { font-size: 28px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.flow-step small { font-size: 12px; color: var(--muted); }
.flow-step.interested b, .flow-step.demos b { color: var(--green); }
.flow-step.won { background: var(--green-bg); }
.flow-step.won b { color: var(--green); }
a.flow-step.won:hover { background: #d9eee2; }
.flow-arrow { flex: 0 0 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.flow-arrow i { width: 22px; height: 2px; background: var(--field); position: relative; }
.flow-arrow i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--field); border-right: none; }
.flow-arrow em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--navy-3); background: var(--blue-bg); border-radius: 999px; padding: 1px 7px; }

/* Overview */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-grid > *, .day-grid > *, .day-col > * { min-width: 0; }
.stack-col { display: flex; flex-direction: column; gap: 20px; }
.alarm-list { display: flex; flex-direction: column; gap: 6px; }
.alarm-list a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--red-bg); color: var(--red); font-size: 14px; text-decoration: none; border: 1px solid #F6C9C4; }
.alarm-list a.warn, .alarm-list a.info { background: var(--orange-bg); color: var(--orange); border-color: #F3D5BF; }
.alarm-list time { margin-left: auto; font-size: 12px; opacity: .8; }
.mini-camps { display: flex; flex-direction: column; gap: 8px; }
.mini-camp { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.mini-camp:hover { border-color: var(--field); }
.mc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: inherit; }
.mc-main:hover { color: inherit; }
.mc-name { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-facts { font-size: 12.5px; color: var(--muted); }
.mc-facts b { color: var(--ink); }
.mc-bar { height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #20A06F); border-radius: 999px; }
.mini-camp.paused .mc-bar i { background: #F2C14E; }
.iconbtn.go { color: var(--green); font-size: 13px; }
.mini-camp .iconbtn { width: 34px; height: 34px; cursor: pointer; }
.who-on { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.who-on span { display: inline-flex; align-items: center; gap: 4px; }
.who-on b { color: var(--ink); font-size: 16px; }
.who-on .st-dot { margin: 0 4px 0 0; }
.who-on .st-dot.offline, .who-cell .st-dot.offline, .status-chip .st-dot.offline { background: #CFC8B8; }
.who-cell { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.who-cell .av { position: relative; }
.who-cell .av .st-dot { position: absolute; right: -2px; bottom: -2px; margin: 0; width: 9px; height: 9px; border: 2px solid #fff; box-shadow: none; }
.who-cell a { text-decoration: none; }
.who-cell a:hover { text-decoration: underline; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-table td { vertical-align: middle; }
.daybars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 6px; }
.daybars.tall { height: 170px; }
.db { flex: 1 1 0; min-width: 8px; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.db-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.db-bars i { flex: 1 1 0; max-width: 16px; min-height: 2px; border-radius: 4px 4px 1px 1px; transition: height .5s; }
.db small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.db-bars i.sent, .legend i.sent { background: linear-gradient(180deg, #20A06F, var(--green)); }
.db-bars i.calls, .legend i.calls { background: #4F6BD8; }
.db-bars i.conn, .legend i.conn { background: var(--mint); }
.db-bars i.resp, .legend i.resp { background: #F2C14E; }
.cmp-table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 13px; }
.cmp-table thead th { color: var(--navy); font-size: 14px; font-weight: 800; }
.cmp-table td, .cmp-table th { padding: 10px 12px; border-top: 1px solid var(--line-2); }
.cmp-table b.won { color: var(--green); }

/* My day */
.day-head form { margin-left: auto; }
.btn.big-next { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.status-chip .st-dot { margin: 0; }
.day-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring stats" "ring time"; gap: 16px 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; box-shadow: var(--shadow); }
.ring.big { grid-area: ring; width: 156px; height: 156px; flex-basis: 156px; }
.ring.big > div { width: 124px; height: 124px; }
.ring.big b { font-size: 40px; }
.ring.met { background: conic-gradient(var(--mint) 100%, var(--line-2) 0); }
.dh-stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dh-stats div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--paper); }
.dh-stats b { font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.dh-stats .green b { color: var(--green); }
.dh-stats span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dh-stats small { font-size: 12px; color: var(--muted); }
.day-time { grid-area: time; display: flex; flex-direction: column; gap: 8px; }
.tbar { display: flex; height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.tbar i { display: block; height: 100%; }
.tbar i.active, .tlegend i.active { background: var(--green); }
.tbar i.break, .tlegend i.break { background: #F2994A; }
.tbar i.idle, .tlegend i.idle { background: #D9D3C4; }
.tlegend i.signed { background: var(--navy-3); }
.tlegend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.tlegend span { display: inline-flex; align-items: center; gap: 6px; }
.tlegend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.tlegend b { color: var(--ink); }
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.day-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.all-clear { padding: 14px 16px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 14px; }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.todo li > a, .todo li > form > button, .todo .td-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.todo li > a:hover, .todo li > form > button:hover { border-color: var(--field); background: var(--paper); color: inherit; }
.todo li.late > a { border-color: #F6C9C4; background: #FFF8F7; }
.todo li.hot > form > button { border-color: #BFE3CF; background: #F4FBF7; }
.td-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.td-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.td-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo time { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.todo .go { font-weight: 800; color: var(--navy); }
.todo li.more a { justify-content: center; font-size: 13px; font-weight: 700; border-style: dashed; }
.goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.goals li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.2fr) 74px; align-items: center; gap: 12px; }
.g-label { font-weight: 700; font-size: 14px; }
.g-label small { font-weight: 600; color: var(--muted); }
.g-meter { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.g-meter i { display: block; height: 100%; border-radius: 999px; background: var(--navy-3); transition: width .6s; }
.goals li.met .g-meter i { background: var(--mint); }
.goals b { text-align: right; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.goals b small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.weekbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 120px; }
.wb { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wb-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.wb-bars i { width: 40%; max-width: 18px; min-height: 2px; border-radius: 4px 4px 1px 1px; }
.wb-bars i.last, .legend i.last { background: #D9D3C4; }
.wb-bars i.this, .legend i.this { background: var(--navy-3); }
.wb.future .wb-bars i.this { display: none; }
.wb small { font-size: 11px; font-weight: 700; color: var(--muted); }
.small-table.vs td, .small-table.vs th { border-top: 1px solid var(--line-2); }
.up { color: var(--green); font-size: 11px; }
.down { color: var(--red); font-size: 11px; }
.hourbars { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.hb { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hb-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.hb-bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 1px 1px; background: #9DB0E8; }
.hb.best .hb-bar i { background: var(--green); }
.hb.thin .hb-bar i { opacity: .38; }
.hb small { font-size: 10.5px; color: var(--muted); }
.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ranking li { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 13.5px; }
.ranking li.me { background: var(--blue-bg); font-weight: 800; }
.ranking .rk { font-weight: 800; color: var(--muted); text-align: center; }
.ranking .rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking b { font-variant-numeric: tabular-nums; color: var(--navy); }
.ranking small { color: var(--muted); }

/* Reports */
.period-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range input[type=date], .range select { min-height: 38px; width: auto; font-size: 13px; }
.report-table { font-size: 13.5px; }
.report-table th { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding: 10px 12px; background: var(--paper); }
.report-table td { padding: 10px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.report-table td small { display: block; font-size: 11.5px; }
.report-table tr.quiet td { color: var(--muted); }
.report-table tfoot th, .report-table tfoot td { background: var(--paper); border-top: 2px solid var(--line); font-weight: 800; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); }
.report-table b.green { color: var(--green); }
.rate { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.rate.good { background: var(--green-bg); color: var(--green); }
.rate.low { background: var(--orange-bg); color: var(--orange); }
.kept { display: inline-flex; gap: 3px; }
.kept i { font-style: normal; font-size: 12px; font-weight: 800; min-width: 22px; padding: 1px 6px; border-radius: 6px; text-align: center; }
.kept i.ok { background: var(--green-bg); color: var(--green); }
.kept i.late { background: var(--orange-bg); color: var(--orange); }
.kept i.miss { background: var(--red-bg); color: var(--red); }
.outcome-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.outcome-legend span { display: inline-flex; align-items: center; gap: 6px; }
.outcome-legend b { color: var(--ink); }
.outcome-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.outcome-rows { display: flex; flex-direction: column; gap: 8px; }
.or { display: grid; grid-template-columns: 90px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 13px; }
.or-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-bar { display: flex; height: 14px; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.or-bar i { display: block; height: 100%; }
.or b { text-align: right; font-variant-numeric: tabular-nums; }
.oc.interested { background: var(--green); } .oc.demo_booked { background: #20A06F; } .oc.demo_done { background: var(--mint); }
.oc.won { background: var(--navy); } .oc.call_back { background: #4F6BD8; } .oc.follow_up { background: #8FA3EA; }
.oc.no_answer { background: #C9C2B2; } .oc.busy { background: #DDD6C8; } .oc.switched_off { background: #A9A291; }
.oc.not_interested { background: #E5484D; } .oc.wrong_number { background: #F2994A; } .oc.on_dnd { background: #9A430C; }
.heat { display: flex; flex-direction: column; gap: 3px; overflow-x: auto; }
.heat-row { display: grid; grid-template-columns: 38px repeat(auto-fit, minmax(26px, 1fr)); gap: 3px; min-width: 420px; }
.heat-row.head span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center; }
.heat .hd { font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; }
.hc { --a: 0; height: 26px; border-radius: 5px; background: rgba(14, 122, 85, calc(0.06 + var(--a) * 0.94)); color: var(--navy); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.hc.hi { color: #fff; }
.hc.thin { opacity: .38; }
.heat-row.all { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.heat-row.all .hd { color: var(--navy); }
.hc.none { background: #F6F4EE; }
.asked { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.asked li { padding-left: 4px; }
.asked li span:first-child { margin-right: 6px; }
.aq-n { font-weight: 800; color: var(--navy-3); margin-right: 6px; }

/* Settings: targets and prices */
.target-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tg-head { display: flex; align-items: center; gap: 8px; }
.tg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.tg-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tg-list form { margin: 0; }
.target-form { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.month-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.month-strip div { border-radius: 12px; background: var(--paper); padding: 12px 14px; display: flex; flex-direction: column; }
.month-strip span { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.month-strip b { font-size: 22px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.month-strip small { font-size: 12px; color: var(--orange); }
.month-strip .warn b { color: var(--orange); }
.price-table td { padding: 8px 10px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.price-table th { padding: 8px 10px; text-align: left; font-size: 12px; color: var(--muted); }
.money-in { max-width: 140px; font-variant-numeric: tabular-nums; }
.price-extra { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.price-form > * + * { margin-top: 14px; }

/* Campaign results */
.results-card .flow { border: none; padding: 0; background: none; }
.spend { display: grid; grid-template-columns: minmax(170px, auto) minmax(0, 1fr); gap: 14px 22px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--paper); }
.spend-main { display: flex; flex-direction: column; }
.spend-main b { font-size: 30px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.spend-main small { font-size: 12.5px; color: var(--muted); }
.spend-per { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.spend-per div { background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.spend-per span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.spend-per b { font-size: 18px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.spend-per .won b { color: var(--green); }
.spend-notes { grid-column: 1 / -1; }
.skeleton .sk-line { height: 64px; border-radius: 12px; background: linear-gradient(90deg, var(--line-2), #F7F5EF, var(--line-2)); background-size: 200% 100%; animation: sk 1.4s infinite linear; }
.skeleton .sk-line.short { height: 18px; width: 40%; }
@keyframes sk { to { background-position: -200% 0; } }

/* Leads list: one campaign step */
.filter-chip-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; }
.fchip a { color: #fff; }
.fchip a.x { display: inline-flex; width: 22px; height: 22px; border-radius: 999px; align-items: center; justify-content: center; background: var(--navy-3); text-decoration: none; font-size: 11px; }

@media (max-width: 1100px) {
  .dash-grid, .day-grid { grid-template-columns: 1fr; }
  .target-form { grid-template-columns: 1fr 1fr; }
  .price-extra { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .day-hero { grid-template-columns: 1fr; grid-template-areas: "ring" "stats" "time"; justify-items: center; padding: 18px; }
  .dh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .day-time { width: 100%; }
  .day-head { align-items: flex-start; }
  .day-head form { width: 100%; margin: 0; }
  .day-head .big-next { width: 100%; }
  .flow { flex-direction: column; padding: 6px; }
  .flow-arrow { flex: 0 0 auto; flex-direction: row; padding: 0 14px; justify-content: flex-start; }
  .flow-arrow i { width: 2px; height: 14px; }
  .flow-arrow i::after { display: none; }
  .flow-step { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 8px 14px; }
  .flow-step b { font-size: 22px; order: -1; min-width: 60px; }
  .kpi b { font-size: 26px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spend { grid-template-columns: 1fr; }
  .month-strip { grid-template-columns: 1fr; }
  .target-form, .price-extra { grid-template-columns: 1fr; }
  .goals li { grid-template-columns: minmax(0, 1fr) 70px; }
  .goals .g-meter { grid-column: 1 / -1; grid-row: 2; }
  .or { grid-template-columns: 64px minmax(0, 1fr) 34px; }
}

/* ---- M7: the follow-up step ---- */
.fu-now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fu-now > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-left: 1px solid var(--line-2); min-width: 0; }
.fu-now > div:first-child { border-left: none; }
.fu-now span { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fu-now b { font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.fu-now small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.fu-now .green { background: var(--green-bg); }
.fu-now .green b { color: var(--green); }

.fu-switch-card { padding: 18px 22px; }
.fu-switch { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.fu-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fu-switch .track { flex: 0 0 52px; width: 52px; height: 30px; border-radius: 999px; background: var(--field); position: relative; transition: background .18s; }
.fu-switch .track i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(13,31,78,.25); transition: transform .18s; }
.fu-switch input:checked + .track { background: var(--green); }
.fu-switch input:checked + .track i { transform: translateX(22px); }
.fu-switch input:focus-visible + .track { outline: 3px solid #9DB4F0; outline-offset: 2px; }
.fu-switch input:disabled + .track { opacity: .55; }
.fu-switch .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fu-switch .txt b { font-size: 16px; color: var(--navy); }
.fu-switch .txt small { font-size: 13px; color: var(--muted); }

.fu-body { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; transition: opacity .18s; }
.fu-body.off { opacity: .45; }
.fu-body .card > .card-head { margin-bottom: 14px; }

.who-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.who-card { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.who-card:hover { border-color: var(--field); }
.who-card input { position: absolute; opacity: 0; pointer-events: none; }
.who-card .radio { margin-top: 2px; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--field); flex: 0 0 18px; }
.who-card b { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.who-card small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.who-card:has(input:checked) { border: 2px solid var(--navy); background: #F3F5FB; padding: 13.5px 15.5px; }
.who-card:has(input:checked) .radio { border-color: var(--navy); background: radial-gradient(var(--navy) 0 4px, #fff 5px); }
.who-card:has(input:focus-visible) { outline: 3px solid #9DB4F0; outline-offset: 1px; }
.never { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.never .chip { background: var(--green-bg); color: var(--green); }
.never .chip::before { content: "✓"; font-size: 11px; }

.fu-when { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper label { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--navy); }
.stepper input[type=number] { width: 72px; text-align: center; font-size: 22px; font-weight: 800; padding: 6px 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .iconbtn { cursor: pointer; }
.stepper .iconbtn:hover { background: var(--blue-bg); }
.at-choice { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.at-choice label.inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.at-choice .at-time { width: auto; min-height: 36px; padding: 4px 8px; }
.at-choice label.same { flex-wrap: nowrap; align-items: flex-start; }
.at-choice label.same input { flex: 0 0 18px; margin-top: 1px; }
.at-choice label.same span { min-width: 0; }

.fu-last { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: end; }
.fu-last p { padding-bottom: 10px; }
.opt { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 8px; vertical-align: middle; letter-spacing: 0; }
.fu-pick { border: none; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; }
.fu-pick:hover { color: #2F4C9C; }
.fu-variants { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fu-variants li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.fu-variants li b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-variants + .note { margin-top: 10px; }

.fu-plain { gap: 16px; }
.fu-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fu-tl li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; position: relative; }
.fu-tl li > div { display: flex; flex-direction: column; gap: 1px; padding-bottom: 2px; min-width: 0; }
.fu-tl b { font-size: 14px; }
.fu-tl span { font-size: 13.5px; color: #E4E9F7; font-variant-numeric: tabular-nums; }
.fu-tl small { font-size: 12px; color: var(--quiet); }
.fu-tl small.warn { color: #FFB59E; font-weight: 700; }
.tl-dot { width: 14px; height: 14px; margin: 3px 2px 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.tl-go .tl-dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(61,213,152,.25); }
.tl-late .tl-dot { background: #FF8A65; box-shadow: 0 0 0 3px rgba(255,138,101,.25); }
.tl-late b, .tl-late > div > span { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.5); }
.tl-gap { min-height: 46px; align-items: center; }
.tl-gap .tl-line { justify-self: center; width: 2px; height: 100%; min-height: 46px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.5) 0 4px, transparent 4px 8px); }
.tl-gap span:not(.tl-line) { font-size: 12.5px; color: var(--quiet); font-weight: 600; }
.fu-ex { font-size: 12px; color: var(--quiet); }
.fu-est { border-top: 1px solid var(--navy-line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #E4E9F7; }
.fu-est .fu-cost { color: var(--quiet); font-size: 13px; }
.fu-est .warn { color: #FFB59E; font-weight: 700; }
.fu-off { font-size: 14px; color: #E4E9F7; line-height: 1.5; }

/* the follow-up on the campaign page */
.fu-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px; margin: 12px 0; border-radius: 12px; background: var(--blue-bg); font-size: 13.5px; color: var(--ink); }
.fu-line b { color: var(--navy); }
.fu-line a { margin-left: auto; font-weight: 700; font-size: 13px; }
.step-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.step-col { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step-col h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.step-col h3 .small { flex: 1 1 160px; font-weight: 600; }
.step-col .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.step-col .nums div { display: flex; flex-direction: column; min-width: 0; }
.step-col .nums span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.step-col .nums b { font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.step-col .nums .green b { color: var(--green); }
.step-col .skips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.step-col .skips li { display: flex; justify-content: space-between; gap: 10px; }
.step-col .skips b { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) { .who-cards { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .fu-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fu-now > div:nth-child(3) { border-left: none; }
  .fu-now > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .fu-last { grid-template-columns: 1fr; }
  .fu-last p { padding-bottom: 0; }
  .step-compare { grid-template-columns: 1fr; }
  .step-col .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fu-line a { margin-left: 0; }
}
.feed li.purple .ft { color: var(--purple); }
.menu-btn { position: relative; }
.menu-btn > summary { list-style: none; cursor: pointer; }
.menu-btn > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.menu-pop a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.menu-pop a:hover { background: var(--blue-bg); color: var(--navy); }
