/* LeadOrbit — one stylesheet. Tokens first; components below. */
:root {
  --navy: #0D1F4E; --navy-2: #16295F; --navy-3: #1E3577; --navy-line: #2C437F;
  --paper: #F4F5FA; --card: #FFFFFF; --line: #E3E6EF; --line-2: #ECEEF5; --field: #CDD2E0;
  --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;
  --violet: #5B47E0; --violet-bg: #EFECFF; --violet-ink: #3F2FB4;
  --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; }
[hidden] { display: none !important; }
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; }
.switcher.one span { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--navy-line); background: var(--navy-2); color: #fff; 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; }
.side .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); }
.side .me > span:nth-child(2) { min-width: 0; }
.side .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; }
.side .me a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; display: block; }
.side .me small { color: var(--quiet); font-size: 12px; display: block; }
.side .me form { grid-column: 1 / -1; border-top: 1px solid var(--navy-line); padding-top: 6px; }
.side .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: #ECEEF5; }
.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-block; vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; 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); }
.chip.violet { background: var(--violet-bg); color: var(--violet-ink); }
.check { color: var(--green); font-weight: 800; }
.dash { color: #A9B0C2; }

/* 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); }
/* One primary colour for every action button in the app: violet, the contrast to the navy menu.
   Ghost (outlined) for second choices, red only for deleting, green only for phoning someone.
   tests/test_m10_polish.py fails if a page brings back another colour. */
.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(--violet); background: var(--violet); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 6px 14px -8px rgba(91,71,224,.65); }
.btn:hover { background: #4A37CF; border-color: #4A37CF; color: #fff; }
.btn.call { background: var(--green); border-color: var(--green); box-shadow: none; }
.btn.call:hover { background: #0b6647; border-color: #0b6647; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--field); box-shadow: none; }
.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: #FAFBFD; }
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; }
  .side .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(--violet); border-color: var(--violet); 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 60%; min-height: 40px; background: var(--paper); border-color: transparent; order: -2; }
.filterbar > button[type=submit], .filterbar > a.small { order: -1; }
.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 .ph { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy-3); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.leadtable .ph::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 3px #DDF7E6; }
.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: #FAFBFD; 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: #ECEEF5; }
.steps span[aria-current="step"] { background: var(--violet); 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[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; box-shadow: none; }
.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: #A9B0C2; 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 .sn { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #D3DAEE; text-decoration: none; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; }
.side-numbers a.sn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-numbers .sn { align-items: flex-start; }
.side-numbers .sn .dot { margin-top: 5px; }
.side-numbers .sn-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.side-numbers .sn-name { overflow-wrap: break-word; line-height: 1.25; }
.side-numbers small { color: #8F9BC2; font-size: 11px; font-weight: 600; }
.side-numbers .sn.active small { color: #7FE3B7; }
.side-numbers .sn.paused small { color: #FFC47A; }

/* 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(--violet); border-color: var(--violet); 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 (min-width: 1101px) { .split.wide-aside { grid-template-columns: minmax(0, 1fr) 380px; } .split.halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 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: #FAFBFD; }
.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: #FAFBFD; }
.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.wa { background: #1FA45B; }
.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: a light guide panel that explains what will happen */
.plain { background: linear-gradient(180deg, #F6F4FF 0%, #F1F6FF 100%); color: var(--ink); border: 1px solid #E2DDFC; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.plain h3 { color: var(--violet-ink); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.plain h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px #E2DDFC; }
.plain ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: #3B4257; }
.plain ol li::marker { color: var(--violet); font-weight: 800; }
.plain b { color: var(--navy); }
.plain .btn { width: 100%; min-height: 48px; }

/* Sticky note: tips and help that sit beside a form */
.sticky { position: relative; padding: 20px 22px 22px; border-radius: 4px 4px 18px 4px; background: linear-gradient(180deg, #FFF6CC 0%, #FFF0B3 100%); color: #4A3B12; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 24px -16px rgba(120,90,0,.45); display: flex; flex-direction: column; gap: 12px; }
.sticky::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 0 0 18px 0; background: linear-gradient(135deg, #F3DC86 50%, transparent 50%); opacity: .9; }
.sticky::before { content: ""; position: absolute; top: -7px; left: 50%; width: 74px; height: 16px; margin-left: -37px; background: rgba(255,255,255,.55); border: 1px solid rgba(160,130,40,.15); transform: rotate(-2deg); }
.sticky h3 { color: #5B4810; font-size: 15.5px; }
.sticky ol, .sticky ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.5; }
.sticky li::marker { color: #B08A12; font-weight: 800; }
.sticky b { color: #3E3008; }
.sticky code { background: rgba(255,255,255,.6); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }

/* 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(--violet); border-color: var(--violet); 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: #ECEEF5; 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(--violet); border-color: var(--violet); 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: minmax(0, 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(min(300px, 100%), 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: minmax(0, 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(min(240px, 100%), 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: minmax(0, 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:not(.ghost)[disabled] { background: #B9B0F0; border-color: #B9B0F0; box-shadow: none; }
.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); box-shadow: none; }
.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, #F3F4F9 6px, #F3F4F9 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, #D3D8E4, #D3D8E4 3px, #EDEFF5 3px, #EDEFF5 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, #F8F9FC, #F2F3F8); 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: minmax(0, 1fr); } .hero-card { grid-template-columns: minmax(0, 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: #ECEEF5; }
.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: #F0F2F8; 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; padding-right: 62px; }  /* room for the time */
.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; }
.msg-bot { margin-top: 4px; max-width: min(420px, 100%); font-size: 11.5px; line-height: 1.35; color: #6b4a00; background: #fff4d6; border: 1px solid #f6dfa0; border-radius: 10px; padding: 5px 9px; }
.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(--violet); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s, background .15s; }
.composer .send:hover { background: #4A37CF; }
.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: minmax(0, 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 minmax(0, 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 .hc-acts { display: flex; gap: 8px; align-items: center; }
.held-call .hc-acts form { margin: 0; }
@media (max-width: 640px) { .held-call { grid-template-columns: 34px minmax(0, 1fr); } .held-call .hc-acts { grid-column: 1 / -1; justify-content: flex-end; } }
.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, #4F3BD6 0%, #6E56F0 100%); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(91,71,224,.55); 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, .wchip.enquiry { background: var(--orange-bg); color: var(--orange); }
.wchip.callback b, .wchip.call_me b, .wchip.demo b, .wchip.senior b, .wchip.enquiry 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, #F8F9FC, #F2F3F8); 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(min(320px, 100%), 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(--violet); border-color: var(--violet); 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: #A9B0C2; }
.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(min(400px, 100%), 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: #A9B0C2; }
.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(min(250px, 100%), 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(min(300px, 100%), 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: minmax(0, 1fr); }
  .ch-day { border-left: none; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .call-layout { grid-template-columns: minmax(0, 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: minmax(0, 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: #D3D8E4; }
.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: #D3D8E4; }
.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: 11px; letter-spacing: .03em; line-height: 1.25; text-transform: uppercase; color: var(--muted); padding: 10px 9px; background: var(--paper); vertical-align: bottom; }
.report-table td { padding: 10px 9px; border-top: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.report-table td:first-child, .report-table th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; padding-left: 16px; }
.report-table thead th:first-child, .report-table tfoot th:first-child { background: var(--paper); }
.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: #F4F5FA; }
.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(min(280px, 100%), 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), #F6F7FB, 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(--violet-bg); color: var(--violet-ink); font-size: 13px; font-weight: 600; }
.fchip a { color: #fff; }
.fchip a.x { display: inline-flex; width: 22px; height: 22px; border-radius: 999px; align-items: center; justify-content: center; background: #fff; color: var(--violet); text-decoration: none; font-size: 11px; }

@media (max-width: 1100px) {
  .dash-grid, .day-grid { grid-template-columns: minmax(0, 1fr); }
  .target-form { grid-template-columns: 1fr 1fr; }
  .price-extra { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .day-hero { grid-template-columns: minmax(0, 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: minmax(0, 1fr); }
  .month-strip { grid-template-columns: minmax(0, 1fr); }
  .target-form, .price-extra { grid-template-columns: minmax(0, 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; margin-right: 5px; }

.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: #3B4257; font-variant-numeric: tabular-nums; }
.fu-tl small { font-size: 12px; color: var(--muted); }
.fu-tl small.warn { color: var(--red); font-weight: 700; }
.tl-dot { width: 14px; height: 14px; margin: 3px 2px 0; border-radius: 999px; background: var(--violet); box-shadow: 0 0 0 3px #E2DDFC; }
.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(23,32,54,.4); }
.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, #C9C0F8 0 4px, transparent 4px 8px); }
.tl-gap span:not(.tl-line) { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fu-ex { font-size: 12px; color: var(--muted); }
.fu-est { border-top: 1px solid #E2DDFC; padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #3B4257; }
.fu-est .fu-cost { color: var(--muted); font-size: 13px; }
.fu-est .warn { color: var(--red); font-weight: 700; }
.fu-off { font-size: 14px; color: #3B4257; 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: minmax(0, 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: minmax(0, 1fr); }
  .fu-last p { padding-bottom: 0; }
  .step-compare { grid-template-columns: minmax(0, 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); }

/* ---- M7.1: the Overview, with an orbit ---- */
:root { --violet: #5B47E0; --violet-bg: #EFECFF; --sky: #2EA8F5; --sky-bg: #E8F5FE; --marigold: #F5A524; --marigold-deep: #B86E00;
        --marigold-bg: #FFF5DF; --coral: #F2557A; --coral-bg: #FFEDF0; --lavender: #C3C8F4; }


.orbit-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 32px 30px; color: var(--ink); isolation: isolate;
  background: radial-gradient(90% 120% at 100% 0%, rgba(46,168,245,.16) 0, rgba(46,168,245,0) 55%),
              radial-gradient(70% 90% at 0% 100%, rgba(61,213,152,.14) 0, rgba(61,213,152,0) 55%),
              linear-gradient(120deg, #F3F1FF 0%, #ECEFFF 45%, #E8F6FE 100%);
  border: 1px solid #E2E1FB; box-shadow: 0 18px 40px -30px rgba(63,47,180,.45); }
.orbit-art { position: absolute; z-index: -1; right: -40px; top: 50%; width: 760px; height: 430px; transform: translateY(-50%); pointer-events: none; }
.orbit-art ellipse { fill: none; stroke: rgba(91,71,224,.16); stroke-width: 1.3; }
.orbit-art .sun { fill: url(#sunGlow); }
.orbit-art .core { fill: #FFC84A; }
.orbit-art .p1 { fill: #12A672; }
.orbit-art .p2 { fill: var(--marigold); }
.orbit-art .p3 { fill: var(--coral); }
.oh-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.oh-date { font-size: 13px; font-weight: 700; color: var(--violet); }
.orbit-hero h1 { color: var(--navy); font-size: 34px; line-height: 1.1; margin-top: 4px; }
.oh-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.oh-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid #E2E1FB; backdrop-filter: blur(6px); }
.oh-tabs a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.oh-tabs a:hover { color: var(--navy); background: #fff; }
.oh-tabs a[aria-current="page"] { background: var(--violet); color: #fff; }
.oh-tabs a:focus-visible, .oh-cta:focus-visible, .oh-steps a:focus-visible, .now-pill:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.oh-setup { display: flex; align-items: center; gap: 26px; margin-top: 26px; }
.oh-ring { position: relative; flex: 0 0 128px; width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.75); }
.oh-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--mint) 0, #12A672 calc(var(--p) * 1%), #E2E1FB 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); }
.oh-ring > div { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.oh-ring b { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.oh-ring b small { font-size: 18px; font-weight: 700; color: var(--muted); }
.oh-ring span { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.oh-next { min-width: 0; max-width: 560px; }
.oh-next h2 { color: var(--navy); font-size: 24px; line-height: 1.2; }
.oh-next p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.oh-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--violet); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(91,71,224,.8); }
.oh-cta:hover { background: #4A37CF; color: #fff; }

.oh-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.oh-steps li > a, .oh-steps li > div { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 1px 2px rgba(13,31,78,.05); }
.oh-steps li > a:hover { background: #fff; border-color: #D6D0FA; color: var(--ink); }
.oh-steps .st-ic { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #EEF0F7; color: var(--muted); }
.oh-steps .st-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.oh-steps .st-tx b { font-size: 13.5px; line-height: 1.25; color: var(--navy); }
.oh-steps .st-tx small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.oh-steps li.done .st-ic { background: var(--mint); color: var(--navy); }
.oh-steps li.done .st-tx small { color: var(--green); font-weight: 700; }
.oh-steps li.next > a, .oh-steps li.next > div { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(91,71,224,.12); }
.oh-steps li.next .st-ic { background: var(--violet); color: #fff; }
.oh-steps li.next .st-tx small { color: var(--violet); font-weight: 700; }
.oh-steps li.started .st-ic { background: var(--marigold-bg); color: var(--marigold-deep); }

.oh-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.now-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 8px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 1px 2px rgba(13,31,78,.06); }
.now-pill:hover { background: #fff; border-color: #D6D0FA; color: var(--ink); }
.now-pill b { font-size: 20px; font-weight: 800; margin-right: 2px; font-variant-numeric: tabular-nums; color: var(--navy); }
.now-pill small { margin-left: 8px; font-size: 12px; color: var(--muted); }
.now-pill .np-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #EEF0F7; color: var(--muted); }
.now-pill.on .np-ic { background: var(--mint); color: var(--navy); }
.now-pill.hot .np-ic { background: var(--marigold); color: #3A2400; }
.oh-cta.small { margin-top: 0; min-height: 52px; font-size: 14px; }

.ov-tiles { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 12px; }
.ov-tiles .tile { --c: var(--navy-3); --bg: var(--blue-bg); display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--bg); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.ov-tiles a.tile:hover { border-color: var(--c); color: var(--ink); }
.ov-tiles .tile .t-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--c); color: #fff; margin-bottom: 10px; }
.ov-tiles .tile .t-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.ov-tiles .tile b { font-size: clamp(22px, 2.1vw, 30px); overflow-wrap: anywhere; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.ov-tiles .tile > small { font-size: 12.5px; color: var(--muted); }
.ov-tiles .tile.t-sky { --c: var(--sky); --bg: var(--sky-bg); }
.ov-tiles .tile.t-violet { --c: var(--violet); --bg: var(--violet-bg); }
.ov-tiles .tile.t-marigold { --c: var(--marigold-deep); --bg: var(--marigold-bg); }
.ov-tiles .tile.t-mint { --c: #12A672; --bg: #E4F8EF; }
.ov-tiles .tile.t-mint b { color: var(--green); }
.ov-tiles .tile.t-coral { --c: var(--coral); --bg: var(--coral-bg); }
.ov-tiles .tile.t-indigo { --c: var(--navy-3); --bg: #EAEDF8; }

.flow-step.reached b { color: #1B87D1; }
.flow-step.responded b { color: var(--violet); }
.flow-step.demos b { color: var(--marigold-deep); }

.empty-orbit { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #F7F6FF; border: 1px dashed #D6D0FA; flex-wrap: wrap; }
.empty-orbit > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.empty-orbit b { color: var(--navy); font-size: 15px; }
.empty-orbit span { color: var(--muted); font-size: 13px; }

@media (max-width: 1180px) { .oh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ov-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .orbit-hero { padding: 22px 18px 22px; border-radius: 20px; }
  .orbit-hero h1 { font-size: 28px; }
  .orbit-art { right: -260px; opacity: .6; }
  .oh-setup { flex-direction: column; align-items: flex-start; gap: 16px; }
  .oh-ring { flex-basis: 104px; width: 104px; height: 104px; }
  .oh-ring b { font-size: 28px; }
  .oh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oh-today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now-pill { flex: 1 1 100%; }
  .oh-today b { font-size: 28px; }
  .oh-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .orbit-art animateMotion { display: none; } }

/* ---- M7.1: WhatsApp numbers, one card each ---- */
.nums { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.nums-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nums-head p { margin-top: 4px; max-width: 640px; color: var(--muted); font-size: 14px; }
.num-card { position: relative; overflow: hidden; padding: 20px 22px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(13,31,78,.45); }
.num-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--violet), var(--sky)); }
.num-card.live::before { background: linear-gradient(90deg, #12A672, var(--mint)); }
.num-card.paused::before { background: linear-gradient(90deg, var(--marigold), #FFD36B); }
.nc-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nc-logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--violet), var(--sky)); }
.num-card.live .nc-logo { background: linear-gradient(135deg, #12A672, var(--mint)); }
.num-card.paused .nc-logo { background: linear-gradient(135deg, var(--marigold-deep), var(--marigold)); }
.nc-id { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.nc-id h3 { font-size: 18px; }
.nc-num { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.nc-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-prov { font-size: 12.5px; font-weight: 700; color: var(--navy-3); background: var(--blue-bg); padding: 4px 10px; border-radius: 999px; }
.nc-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--violet-bg); color: var(--violet); }
.nc-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nc-state.live { background: #E4F8EF; color: var(--green); }
.nc-state.paused { background: var(--marigold-bg); color: var(--marigold-deep); }
.nc-checks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nc-checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.nc-checks li > i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; }
.nc-checks li.ok > i { background: #E4F8EF; color: var(--green); }
.nc-checks li.bad > i { background: var(--red-bg); color: var(--red); }
.nc-checks li.wait > i { background: var(--marigold-bg); color: var(--marigold-deep); }
.nc-checks li.info > i { background: var(--violet-bg); font-size: 11px; }
.nc-checks li.info { color: var(--muted); flex-basis: 100%; }
.nc-checks li.nc-prods { margin-left: auto; }
.nc-checks code, .chk code { font-size: 12.5px; background: var(--paper); padding: 1px 6px; border-radius: 6px; }
.nc-warn { margin-top: 10px; font-size: 13px; color: var(--orange); background: var(--orange-bg); padding: 8px 12px; border-radius: 10px; }
.nc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.nc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid #DCD6FB; background: #F7F6FF; color: var(--violet); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.nc-btn:hover { background: var(--violet-bg); border-color: #C9C0F8; }
.nc-btn[aria-expanded="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.nc-btn.quiet { background: #fff; border-color: var(--line); color: var(--navy); }
.nc-btn.quiet[aria-expanded="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.nc-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.nc-panel { margin-top: 14px; padding: 18px; border-radius: 16px; background: #FAF9FF; border: 1px solid #ECE8FD; }
.nc-loading { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #D6D0FA; border-top-color: var(--violet); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.chk { display: flex; gap: 12px; align-items: flex-start; }
.chk > i { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; }
.chk.ok > i { background: var(--mint); color: var(--navy); }
.chk.bad > i { background: var(--coral); color: #fff; }
.chk > div { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.chk > div > b { color: var(--navy); font-size: 15px; }
.chk > div > span { color: var(--muted); }
.chk-missing { margin-top: 14px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.chk-missing > b { font-size: 14px; color: var(--navy); }
.chk-differ { border-color: #F3D2B8; background: #FFFBF7; }
.chk-differ > b { color: var(--orange); }
.chk-missing ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chk-missing li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.chk-missing li > span { display: flex; flex-direction: column; }
.chk-missing small { color: var(--muted); font-size: 12px; }
.chk-again { margin-top: 12px; }
.nc-test { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.nc-test-go { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nc-tslot:not(:empty) { margin-top: 14px; }
.nc-empty { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.nc-empty b { color: var(--navy); }
.nc-empty span { color: var(--muted); }
.nc-empty-go { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hook-steps { list-style: none; margin: 0; padding: 0; counter-reset: hs; display: flex; flex-direction: column; gap: 14px; }
.hook-steps > li { counter-increment: hs; position: relative; padding-left: 42px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.hook-steps > li::before { content: counter(hs); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hook-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: -12px; width: 2px; background: #E2DDFC; }
.hook-steps > li > b { color: var(--navy); font-size: 14.5px; }
.hook-url { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hook-url code { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; color: var(--navy); background: #fff; border: 1px solid #DCD6FB; border-radius: 10px; padding: 9px 12px; }
.hook-events { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.hook-events span { font-size: 12.5px; font-weight: 700; color: var(--green); background: #E4F8EF; padding: 4px 10px 4px 8px; border-radius: 999px; }
.hook-events span::before { content: "✓ "; }
.hook-new { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #DCD6FB; }
.hook-new summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.hook-new p { margin: 8px 0 10px; max-width: 640px; }
.nc-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.nc-settings .nc-switches, .nc-settings .actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.nc-settings .actions { flex-direction: row; }
@media (max-width: 860px) { .nc-test, .nc-settings { grid-template-columns: minmax(0, 1fr); } .nc-checks li.nc-prods { margin-left: 0; } }
@media (max-width: 560px) { .num-card { padding: 16px; } .nc-btn { flex: 1 1 calc(50% - 8px); justify-content: center; } }
.hook-warn { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--orange); background: var(--orange-bg); padding: 8px 12px; border-radius: 10px; }


/* ---- M7.2: tags and stages as soft colour badges ---- */
.tg-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tg { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.tg.t0 { background: #EFECFF; color: #4A37C9; }
.tg.t1 { background: #E6F4FE; color: #0B6FA8; }
.tg.t2 { background: #E4F8EF; color: #0E7A55; }
.tg.t3 { background: #FFF3DA; color: #8A5300; }
.tg.t4 { background: #EEF6DD; color: #4E6B12; }
.tg.t5 { background: #E9F7F8; color: #0F6E77; }
.tg.t6 { background: #F6ECFD; color: #7A2FA8; }
.tg.t7 { background: #EEF0F7; color: #46506A; }
.tg.more { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.stg { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #EEF0F7; color: #46506A; margin: 1px 0; }
.stg small { font-size: 11px; font-weight: 600; opacity: .75; }
.stg.s-contacted { background: #E6F4FE; color: #0B6FA8; }
.stg.s-responded { background: #EFECFF; color: #4A37C9; }
.stg.s-interested { background: #E4F8EF; color: #0E7A55; }
.stg.s-demo_booked, .stg.s-demo_done { background: #FFF3DA; color: #8A5300; }
.stg.s-won { background: #12A672; color: #fff; }
.stg.s-lost { background: #FFECEF; color: #B4234A; }

/* ---- M7.2: people and teams ---- */
.ut-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ut-guide > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, #F6F4FF, #F1F6FF); border: 1px solid #E2DDFC; font-size: 14px; color: #3B4257; line-height: 1.5; }
.ut-guide b { color: var(--navy); }
.ut-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ut-ic.people { background: var(--violet); }
.ut-ic.teams { background: #12A672; }
.ut-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ut-head p { margin-top: 2px; }
.ut-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--violet-bg); color: var(--violet-ink); font-size: 12.5px; font-weight: 800; vertical-align: 2px; }
.ut-av { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 800; color: hsl(var(--h) 55% 28%); background: hsl(var(--h) 75% 90%); }
.ut-list { list-style: none; margin: 0; padding: 0; }
.ut-row { display: grid; grid-template-columns: 34px minmax(180px, 1.3fr) 92px 120px minmax(0, 1.6fr) 230px; align-items: center; gap: 12px 14px; padding: 12px 4px; border-top: 1px solid var(--line-2); }
.ut-row.off { opacity: .6; }
.ut-who { display: flex; flex-direction: column; min-width: 0; }
.ut-who b { color: var(--navy); font-size: 14.5px; }
.ut-who span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ut-you { font-size: 11px; font-weight: 700; color: var(--violet); background: var(--violet-bg); border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.ut-role { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #EEF0F7; color: #46506A; white-space: nowrap; justify-self: start; }
.ut-role.r-admin { background: var(--violet-bg); color: var(--violet-ink); }
.ut-role.r-manager { background: #E6F4FE; color: #0B6FA8; }
.ut-role.r-caller { background: #E4F8EF; color: #0E7A55; }
.ut-team { font-size: 13px; font-weight: 700; color: var(--navy-3); white-space: nowrap; }
.ut-team.none { color: var(--muted); font-weight: 500; }
.ut-meta { font-size: 12.5px; color: var(--muted); min-width: 0; }
.ut-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.ut-actions form { margin: 0; }
.ut-offtag { font-size: 12px; font-weight: 700; color: var(--muted); background: #EEF0F7; padding: 3px 9px; border-radius: 999px; }
.ut-add { margin: 14px 0 16px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; align-items: start; }
.team-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px -24px rgba(13,31,78,.5); position: relative; }
.team-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #12A672, var(--mint)); }
.team-card.warn::before { background: linear-gradient(90deg, var(--marigold-deep), var(--marigold)); }
.team-card.new { background: linear-gradient(180deg, #FAF9FF, #F4F7FF); border: 1.5px dashed #CFC7F9; box-shadow: none; }
.team-card.new::before { display: none; }
.tc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tc-top h3 { font-size: 16.5px; }
.tc-n { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tc-warn { font-size: 13px; color: #7A4B00; background: var(--marigold-bg); border-radius: 10px; padding: 8px 10px; }
.tc-manager { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #F6F7FB; }
.tc-manager span { display: flex; flex-direction: column; line-height: 1.25; }
.tc-manager small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tc-manager b { color: var(--navy); font-size: 14px; }
.tc-nomgr { font-size: 13.5px; color: var(--muted); }
.tc-members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tc-members li { display: inline-flex; align-items: center; gap: 7px; padding: 3px 4px 3px 3px; border-radius: 999px; background: #F2F3F8; font-size: 13px; font-weight: 600; color: var(--ink); }
.tc-members li form { margin: 0; display: inline-flex; }
.tc-x { width: 22px; height: 22px; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.tc-x:hover { background: var(--red-bg); color: var(--red); }
.tc-x:focus-visible { outline: 2px solid var(--violet); }
.tc-members li.tc-empty { background: none; padding: 0; color: var(--muted); font-weight: 500; }
.tc-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tc-pop > summary { list-style: none; }
.tc-pop > summary::-webkit-details-marker { display: none; }
.tc-pop[open] { flex-basis: 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: #FAFBFD; border: 1px solid var(--line); }
.tc-pop[open] > summary { align-self: flex-start; }
.tc-pop form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.tc-pick { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.tc-pick label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.tc-pick label:hover { background: #F2F3F8; }
.tc-pick label:has(input:checked) { background: var(--violet-bg); }
.tc-pick label span { display: flex; flex-direction: column; line-height: 1.25; }
.tc-pick small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 1100px) { .ut-row { grid-template-columns: 34px minmax(0, 1fr) auto; } .ut-team, .ut-meta { grid-column: 2 / -1; } .ut-actions { grid-column: 2 / -1; justify-content: flex-start; } }
@media (max-width: 720px) { .ut-guide { grid-template-columns: minmax(0, 1fr); } }

/* ---- M7.3: undo an import ---- */
.undo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.undo-card h2 { margin-bottom: 12px; }
.undo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.undo-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #F6F7FB; font-size: 14px; }
.undo-list li b { font-size: 22px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.undo-list li.go b { color: var(--red); }
.undo-list li.keep b { color: var(--green); }
.undo-tags { margin-top: 10px; }
.undo-go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) { .undo-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- M7.3: tags ---- */
.tags-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.tags-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.tags-tools input[type=search] { flex: 1 1 220px; min-height: 40px; }
.tags-tools .seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tags-tools .seg input { position: absolute; opacity: 0; pointer-events: none; }
.tags-tools .seg label:has(input:checked) { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,31,78,.08); }
.tags-tools .seg small { font-weight: 600; color: var(--muted); }
.tags-list { display: flex; flex-direction: column; }
.tag-row { display: grid; grid-template-columns: 22px minmax(0, 230px) 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 6px; border-top: 1px solid var(--line-2); }
.tag-row.head { grid-template-columns: 22px 1fr; border-top: none; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tag-row:has(input[name=tag_uids]:checked) { background: var(--violet-bg); border-radius: 10px; }
.tag-row .tg { justify-self: start; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag-n { font-size: 13px; font-weight: 700; color: var(--navy-3); text-decoration: none; white-space: nowrap; }
.tag-n.zero { color: var(--muted); font-weight: 500; }
.tag-use { min-width: 0; overflow: hidden; }
.tag-use .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag-ren > summary { list-style: none; }
.tag-ren > summary::-webkit-details-marker { display: none; }
.tag-ren[open] > summary { display: none; }
.tag-ren-box { display: inline-flex; gap: 6px; }
.tag-ren-box input { min-height: 36px; width: 170px; }
.tags-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #D6D0FA; box-shadow: 0 16px 34px -18px rgba(63,47,180,.45); }
.tags-bar b { color: var(--navy); margin-right: 4px; }
.tags-merge { display: inline-flex; gap: 6px; }
.tags-merge input { min-height: 36px; width: 200px; }
.tags-none { padding: 18px 6px; }
@media (max-width: 1000px) { .tags-grid { grid-template-columns: minmax(0, 1fr); } .tag-row { grid-template-columns: 22px minmax(0, 1fr) auto; } .tag-use { grid-column: 2 / -1; } }

/* ---- M8: documents ---- */
.dt { flex: none; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #EEF0F7; color: #46506A; }
.dt svg { width: 22px; height: 22px; }
.dt.big { width: 64px; height: 64px; border-radius: 18px; }
.dt.big svg { width: 34px; height: 34px; }
.dt-pdf { background: #FFECEF; color: #D63A60; }
.dt-image { background: #E6F4FE; color: #0B6FA8; }
.dt-video { background: #EFECFF; color: #4A37C9; }
.dt-ppt { background: #FFF3DA; color: #B86E00; }
.doc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.doc-tools input[type=search] { flex: 1 1 260px; max-width: 420px; min-height: 42px; }
.doc-types { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--line-2); flex-wrap: wrap; }
.doc-types a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.doc-types a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,31,78,.08); }
.doc-arch { margin-left: auto; color: var(--muted); font-weight: 600; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.doc-card { display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.doc-card:hover { border-color: #CFC7F9; box-shadow: 0 14px 30px -22px rgba(63,47,180,.5); color: var(--ink); }
.doc-card:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.doc-thumb { position: relative; overflow: hidden; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #F4F5FA; }
.doc-card.t-pdf .doc-thumb { background: linear-gradient(160deg, #FFF4F6, #FFE6EC); }
.doc-card.t-image .doc-thumb { background: #E6F4FE; }
.doc-card.t-video .doc-thumb { background: linear-gradient(160deg, #F6F4FF, #ECE8FF); }
.doc-card.t-ppt .doc-thumb { background: linear-gradient(160deg, #FFF9EC, #FFF0D2); }
.doc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-thumb em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.doc-thumb .dt.big { background: #fff; box-shadow: 0 8px 18px -12px rgba(13,31,78,.4); }
.doc-flag { position: absolute; top: 10px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.doc-flag.kit { left: 10px; background: var(--violet); color: #fff; }
.doc-flag.internal { right: 10px; background: var(--orange-bg); color: var(--orange); }
.doc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.doc-body > b { color: var(--navy); font-size: 15px; line-height: 1.3; }
.doc-meta { font-size: 12.5px; color: var(--muted); }
.doc-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink); margin-top: 2px; }
.doc-stats b { color: var(--navy); }
.doc-empty { margin-top: 8px; }
.doc-new { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 20px; border-radius: 18px; border: 2px dashed #CFC7F9; background: #FAF9FF; text-align: center; cursor: pointer; color: var(--muted); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--navy); font-size: 15px; }
.dropzone small { font-size: 12.5px; }
.dropzone .dz-ic { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--violet); color: #fff; margin-bottom: 4px; }
.dropzone.over, .dropzone:hover { border-color: var(--violet); background: var(--violet-bg); }
.dropzone.has { border-style: solid; border-color: #12A672; background: #F1FBF6; }
.dropzone:focus-within { outline: 3px solid var(--violet); outline-offset: 2px; }
.dropzone.small { padding: 16px; flex-direction: row; gap: 10px; flex-wrap: wrap; }
.doc-h1 { display: flex; align-items: center; gap: 12px; }
.doc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.doc-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(min(320px, 100%), 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.doc-preview { padding: 12px; }
.doc-preview iframe { width: 100%; height: 620px; border: none; border-radius: 12px; background: #F4F5FA; }
.doc-preview img, .doc-preview video { width: 100%; max-height: 620px; object-fit: contain; border-radius: 12px; background: #0D1F4E0A; display: block; }
.doc-noprev { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; text-align: center; color: var(--muted); }
.doc-noprev b { color: var(--navy); }
.doc-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 4px 2px; font-size: 12.5px; color: var(--muted); }
.doc-side { display: flex; flex-direction: column; gap: 14px; }
.doc-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.doc-numbers div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, #F6F4FF, #F1F6FF); border: 1px solid #E2DDFC; }
.doc-numbers b { font-size: 24px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.doc-numbers span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ver-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.ver-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ver-list li:first-child { border-top: none; }
.ver-n { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; background: #EEF0F7; color: var(--muted); }
.ver-list li.current .ver-n { background: var(--violet); color: #fff; }
.ver-tx { display: flex; flex-direction: column; min-width: 0; }
.ver-tx b { color: var(--navy); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver-tx small { font-size: 12px; color: var(--muted); }
.ver-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ver-act form { margin: 0; }
.ver-new { margin-top: 12px; }
.kit-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kit-toggles form { margin: 0; }
.kit-on, .kit-off { min-height: 36px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.kit-on { background: var(--violet); color: #fff; border: 1px solid var(--violet); }
.kit-off { background: #fff; color: var(--violet); border: 1px dashed #CFC7F9; }
.kit-on:focus-visible, .kit-off:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.doc-edit { margin: 0; }
.doc-sends td { vertical-align: middle; }
.kit-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.kit-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
.kit-row:hover { background: #F6F7FB; }
.kit-row:has(input:checked) { background: var(--violet-bg); }
.kit-row.internal { opacity: .85; }
.kit-row .ds-tx { flex: 1; }
.live-kit { font-weight: 700; color: var(--violet); text-decoration: none; }
.docs-card .card-head { align-items: center; }
.docs-sent { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.docs-sent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; font-size: 13px; }
.docs-sent li b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-sent li small { grid-column: 1; color: var(--muted); font-size: 11.5px; }
.docs-sent li .chip { grid-column: 2; grid-row: 1 / span 2; }
.doc-bubble { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 16px; border-radius: 10px; background: rgba(255,255,255,.55); border: 1px solid rgba(13,31,78,.08); }
.doc-bubble .db-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #FFECEF; color: #D63A60; flex: none; }
.doc-bubble span:last-child { display: flex; flex-direction: column; min-width: 0; }
.doc-bubble b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-bubble small { font-size: 12.5px; opacity: .8; }
/* the send drawer */
.docs-drawer { width: min(460px, 100%); }
.ds { display: flex; flex-direction: column; gap: 12px; }
.ds-who { display: flex; flex-direction: column; }
.ds-name { font-size: 17px; font-weight: 800; color: var(--navy); }
.ds-via { font-size: 12.5px; color: var(--muted); }
.ds-banner { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.ds-banner.ok { background: #E4F8EF; color: #0B5E41; }
.ds-banner.open { background: #E4F8EF; color: #0B5E41; }
.ds-banner.wait { background: var(--marigold-bg); color: #7A4B00; }
.ds-banner.bad { background: var(--red-bg); color: #8E1C13; }
.ds-banner a { color: inherit; font-weight: 700; }
.ds-q { min-height: 40px; }
.ds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ds-item details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ds-item details[open] { border-color: #CFC7F9; box-shadow: 0 10px 24px -20px rgba(63,47,180,.6); }
.ds-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.ds-item summary::-webkit-details-marker { display: none; }
.ds-item summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 14px; }
.ds-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ds-tx b { color: var(--navy); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-tx small { font-size: 12px; color: var(--muted); }
.ds-kit { color: var(--violet); font-weight: 800; margin-right: 6px; }
.ds-go { font-size: 12.5px; font-weight: 800; color: var(--violet); padding: 5px 10px; border-radius: 999px; background: var(--violet-bg); }
.ds-item details[open] .ds-go { background: var(--violet); color: #fff; }
.ds-form { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 14px; }
.ds-how label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ds-how input { position: absolute; opacity: 0; pointer-events: none; }
.ds-how label:has(input:checked) { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,31,78,.1); }
.ds-how small { font-weight: 500; }
.ds-agree { padding: 8px 10px; border-radius: 10px; background: var(--marigold-bg); color: #5B3A00; font-weight: 600; }
.ds-sent { border-top: 1px dashed var(--line); padding-top: 12px; }
.ds-sent h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.ds-sent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ds-sent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; font-size: 13px; }
.ds-sent li span:first-child { color: var(--navy); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-sent li small { grid-column: 1; color: var(--muted); font-size: 11.5px; }
.ds-sent li .chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 1000px) { .doc-detail, .doc-new { grid-template-columns: minmax(0, 1fr); } .doc-preview iframe { height: 460px; } }
.docs-overlay { z-index: 40; }
.doc-thumb img.pdf-page { inset: 18px auto auto 50%; transform: translateX(-50%); width: 64%; height: auto; border-radius: 6px 6px 0 0; box-shadow: 0 10px 24px -10px rgba(13,31,78,.5); }
.doc-phone-page { display: none; }
.doc-preview iframe.with-page { background-color: #F4F5FA; background-repeat: no-repeat; background-position: center 16px; background-size: auto calc(100% - 32px); }
@media (max-width: 720px) {
  .doc-preview.has-thumb iframe { display: none; }
  .doc-phone-page { display: block; padding: 16px; border-radius: 12px; background: #F4F5FA; }
  .doc-phone-page img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 10px 24px -12px rgba(13,31,78,.5); }
}

/* M9 — voice notes and media in chats */
.vn { display: flex; align-items: center; gap: 10px; min-width: 250px; padding: 4px 54px 12px 2px; }
.vn.compact { min-width: 0; width: 100%; padding: 2px 0; gap: 8px; }
.vn-play { flex: none; width: 38px; height: 38px; border-radius: 999px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: var(--violet); color: #fff; box-shadow: 0 4px 10px -4px rgba(91,71,224,.7); transition: transform .1s; }
.msg.out .vn-play, .pc-msg.out .vn-play { background: var(--green); box-shadow: 0 4px 10px -4px rgba(14,122,85,.7); }
.vn.compact .vn-play { width: 30px; height: 30px; }
.vn-play:active { transform: scale(.92); }
.vn-play .i-pause, .vn.playing .vn-play .i-play { display: none; }
.vn.playing .vn-play .i-pause { display: block; }
.vn-play svg { margin-left: 1px; }
.vn-track { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; min-width: 120px; outline-offset: 3px; }
.vn.compact .vn-track { height: 22px; min-width: 70px; }
.vn-track i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: #B8C0D3; transition: background .15s; }
.msg.out .vn-track i, .pc-msg.out .vn-track i { background: #9DC9AE; }
.vn-track i.on { background: var(--violet); }
.msg.out .vn-track i.on, .pc-msg.out .vn-track i.on { background: var(--green); }
.vn-time { font-size: 11.5px; font-weight: 700; color: #667781; font-variant-numeric: tabular-nums; min-width: 32px; }
.vn-speed { flex: none; border: none; border-radius: 999px; background: rgba(13,31,78,.08); color: var(--navy); font: inherit; font-size: 11.5px; font-weight: 800; padding: 3px 8px; cursor: pointer; min-width: 38px; }
.vn-speed.fast { background: var(--violet); color: #fff; }
.mm-img { display: block; margin: -2px -4px 4px; border-radius: 10px; overflow: hidden; max-width: 300px; background: #E8EBF3; }
.mm-img img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.mm-img.sticker { background: none; max-width: 140px; }
.mm-img.compact { margin: 0 0 2px; max-width: 160px; }
.mm-img.compact img { max-height: 140px; }
.mm-vid { display: block; width: 300px; max-width: 100%; border-radius: 10px; margin: -2px -4px 4px; background: #000; }
.mb .mm-file { margin: 0 50px 12px 0; text-decoration: none; color: inherit; }
.mm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 4px 54px 6px 2px; }
.pc-msg .mm-chip { padding: 0; font-size: 12.5px; }
.mm-wait, .mm-gone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 4px 54px 8px 2px; }
.mm-gone small { flex-basis: 100%; font-size: 12px; }
.mm-gone a { font-weight: 700; font-size: 12.5px; }
.mm-spin { width: 14px; height: 14px; border-radius: 999px; border: 2px solid #C9CFDF; border-top-color: var(--violet); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mb .mm-cap { margin-top: 2px; }

/* the recorder */
.composer .mic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 999px; border: 1px solid #DDD7C9; background: #fff; color: var(--violet); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s, background .15s, color .15s; }
.composer .mic:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.composer .mic:active { transform: scale(.94); }
/* attach a file from the computer */
.composer .clip { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 999px; border: 1px solid #DDD7C9; background: #fff; color: var(--violet); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s, background .15s, color .15s; }
.composer .clip:hover { background: var(--violet-bg); border-color: #C9C2F7; }
.composer .clip:active { transform: scale(.94); }
.th-compose[data-attaching] form.composer { display: none; }
.attach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 10px 10px 14px; border-radius: 22px; background: #fff; border: 1px solid #E8DFF9; box-shadow: 0 6px 18px -10px rgba(91,71,224,.45); }
.attach[hidden] { display: none; }
.th-compose .note-line { margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; background: var(--marigold-bg); color: var(--marigold-deep); font-size: 13px; }
.attach .at-err { flex-basis: 100%; padding-left: 52px; font-size: 12.5px; font-weight: 700; color: var(--red); }
.attach .at-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: linear-gradient(135deg, var(--violet-bg), #E3F6EE); }
.attach .at-file { display: flex; flex-direction: column; min-width: 0; max-width: 260px; }
.attach .at-file b { font-size: 14px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach .at-file small { font-size: 12px; color: var(--muted); }
.attach input[type=text] { flex: 1 1 200px; min-width: 0; min-height: 40px; border-radius: 999px; }
.attach .btn { border-radius: 999px; }
.attach .at-note { flex-basis: 100%; font-size: 11.5px; color: var(--muted); padding-left: 52px; }
.th-compose[data-recording] form.composer { display: none; }
.rec { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 26px; background: #fff; border: 1px solid #E8DFF9; box-shadow: 0 6px 18px -10px rgba(91,71,224,.45); min-height: 58px; }
.rec-dot { width: 12px; height: 12px; border-radius: 999px; background: #E5484D; flex: none; animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 50% { box-shadow: 0 0 0 7px rgba(229,72,77,0); } }
.rec-clock { font-size: 17px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; min-width: 46px; }
.rec-level { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; min-width: 60px; }
.rec-level i { flex: 1; max-width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #8B7BF0, var(--violet)); transform: scaleY(.15); transform-origin: center; transition: transform .08s; }
.rec-hint { font-size: 12px; color: var(--muted); }
.rec audio { flex: 1; min-width: 0; height: 40px; }
.rec .btn { border-radius: 999px; }
.rec-stop { width: 44px; height: 44px; border-radius: 999px; border: none; background: #E5484D; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rec-stop:hover { background: #c93a3f; }
.rec-x { border: none; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 8px; }
.rec-x:hover { color: var(--red); }
.rec-msg { font-size: 12.5px; color: var(--red); font-weight: 700; }
.rec-len { font-size: 12.5px; font-weight: 800; color: var(--navy); }
@media (max-width: 640px) { .rec { flex-wrap: wrap; border-radius: 18px; } .rec-hint { display: none; } }

/* audio in the library */
.dt-audio { background: #E9F7EF; color: #0E7A55; }
.doc-audio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 300px; border-radius: 12px; background: radial-gradient(120% 120% at 20% 10%, #EFEAFF 0%, #F6F3FF 40%, #E9F7EF 100%); padding: 28px; }
.doc-audio .vn { min-width: min(420px, 100%); padding: 10px 16px; background: #fff; border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(13,31,78,.5); }
.dc-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 100%; padding: 0 22px; background: linear-gradient(135deg, #EFEAFF, #E6F6EE); }
.dc-wave i { width: 4px; border-radius: 2px; background: var(--violet); opacity: .75; }
.rec.doc-rec { margin-top: 10px; }
.or-rec { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.or-rec .btn { border-radius: 999px; }
/* auto-send on Yes */
.auto-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; }
.auto-list label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.auto-list label:has(input:checked) { border-color: #B9EBD2; background: #F0FBF5; }
.auto-list .tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.auto-list .tx small { color: var(--muted); font-size: 12.5px; }
.auto-preview { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--wa-bg, #EFEAE2); }
.auto-preview .ap { align-self: flex-end; max-width: 85%; background: var(--wa-out); border-radius: 12px 4px 12px 12px; padding: 7px 10px; font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.auto-preview .ap.in { align-self: flex-start; background: #fff; border-radius: 4px 12px 12px 12px; color: #027EB5; font-weight: 700; }
.kit-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.auto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.auto-preview .ap-docs { display: contents; }
@media (max-width: 760px) { .auto-grid { grid-template-columns: minmax(0, 1fr); } }
.rec-take { font-size: 13px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.vn-dl { font-size: 12px; font-weight: 800; color: var(--violet); }
.tool-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tool-list li { display: grid; grid-template-columns: 12px 110px 1fr; align-items: center; gap: 4px 10px; }
.tool-list code { grid-column: 3; background: var(--blue-bg); padding: 4px 8px; border-radius: 8px; width: fit-content; }
.vn-dl { font-size: 12px; font-weight: 800; color: var(--violet); }
.tool-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tool-list li { display: grid; grid-template-columns: 12px 110px 1fr; align-items: center; gap: 4px 10px; }
.tool-list code { grid-column: 3; background: var(--blue-bg); padding: 4px 8px; border-radius: 8px; width: fit-content; }
/* the import's last step: always in reach, and below the tables where the eye ends up */
.final-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px 14px 20px; border-radius: 16px; background: #fff; border: 1px solid #DCD5FB; box-shadow: 0 18px 40px -18px rgba(13,31,78,.35); }
.final-bar .fb-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.final-bar .fb-tx b { color: var(--violet-ink); font-size: 15px; }
.final-bar .fb-tx span { font-size: 13px; color: var(--muted); }
.final-bar form { margin: 0; }
@media (max-width: 760px) { .final-bar { flex-wrap: wrap; } .final-bar .fb-tx { flex-basis: 100%; } }
/* M10: languages a lead also speaks */
.also-speaks { grid-column: 1 / -1; border: none; padding: 0; margin: 0; min-width: 0; }
.also-speaks legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 6px; }
.also-speaks legend .hint { display: block; font-weight: 500; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-chip { position: relative; }
.lang-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lang-chip span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-chip input:checked + span { background: var(--violet-bg); border-color: #C9C0FA; color: var(--violet-ink); }
.lang-chip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 800; }
.lang-chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.grid > .field.wide { grid-column: span 2; }
.grid > .field textarea { min-height: 46px; }
@media (max-width: 760px) { .grid > .field.wide { grid-column: 1 / -1; } }
/* M10: hot / warm / cold */
.temp { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.temp button { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.temp button.t-hot { color: #D92D20; }
.temp button.t-warm { color: #B54708; }
.temp button.t-cold { color: #1570EF; }
.temp button.t-hot:hover { background: #FEE4E2; }
.temp button.t-warm:hover { background: #FEF0C7; }
.temp button.t-cold:hover { background: #D1E9FF; }
.temp button.t-hot.on { background: linear-gradient(135deg, #F97066, #D92D20); color: #fff; box-shadow: 0 2px 8px rgba(217, 45, 32, .3); }
.temp button.t-warm.on { background: linear-gradient(135deg, #FDB022, #F79009); color: #fff; box-shadow: 0 2px 8px rgba(247, 144, 9, .3); }
.temp button.t-cold.on { background: linear-gradient(135deg, #53B1FD, #1570EF); color: #fff; box-shadow: 0 2px 8px rgba(21, 112, 239, .3); }
.temp-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.temp-badge.hot { background: #FFE4DC; color: #B42318; }
.temp-badge.warm { background: #FFF1CC; color: #8A5A00; }
.temp-badge.cold { background: #E3EEFF; color: #1D4ED8; }
.pcard .temp { margin-top: 6px; }
.pcard form.temp { margin-left: 0; }
.cc-win { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.cc-win a { margin-left: auto; font-weight: 700; }
.cc-win.green { background: var(--green-bg); color: var(--green); }
.cc-win.orange { background: #FFF1CC; color: #8A5A00; }
.cc-win.red { background: var(--red-bg); color: var(--red); }
.cc-win.closed { background: var(--line-2); color: var(--muted); }
.cc-who .temp { margin-top: 8px; }
.tag-suggest { position: absolute; z-index: 60; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #DCD5FB; border-radius: 12px; box-shadow: 0 16px 34px -14px rgba(13,31,78,.35); max-height: 260px; overflow-y: auto; }
.tag-suggest li { padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tag-suggest li:hover, .tag-suggest li.on { background: var(--violet-bg); color: var(--violet-ink); }
.on-now { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--green); white-space: nowrap; }
.on-now i { width: 8px; height: 8px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 3px rgba(61,213,152,.2); }
td.n small.muted { display: block; font-size: 11px; }
/* M10: 24-hour window running out */
.tag.win.orange { background: #FFF1CC; color: #8A5A00; }
.tag.win.red { background: var(--red-bg); color: var(--red); animation: winpulse 2s ease-in-out infinite; }
@keyframes winpulse { 50% { box-shadow: 0 0 0 3px rgba(229,72,77,.18); } }
.win.ok.orange b, .win.ok.orange strong { color: #8A5A00; }
.win.ok.red b, .win.ok.red strong { color: var(--red); }
.ib-sort { display: flex; gap: 4px; margin-top: 8px; font-size: 12.5px; }
.ib-sort a { padding: 4px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; }
.ib-sort a[aria-current="true"] { background: var(--violet-bg); color: var(--violet-ink); }
@media (prefers-reduced-motion: reduce) { .tag.win.red { animation: none; } }
/* M10: pilot send */
.pilot-pick { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--violet-bg); border: 1px solid #DCD5FB; font-size: 13.5px; cursor: pointer; }
.pilot-pick > input { margin-top: 3px; }
.pilot-pick b { display: block; color: var(--violet-ink); margin-bottom: 2px; }
.pilot-pick input[type=number] { width: 76px; min-height: 30px; padding: 0 8px; display: inline-block; }
.pilot-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-radius: 16px; background: #F6F3FF; border: 1px solid #DCD5FB; }
.pilot-banner.ready { background: #FFF8E6; border-color: #F3D27A; }
.pilot-banner .pl-ic { font-size: 26px; }
.pilot-banner .pl-tx { flex: 1; min-width: 0; }
.pilot-banner .pl-tx b { color: var(--navy); }
.pilot-banner .pl-tx p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pl-bar { display: block; height: 6px; border-radius: 999px; background: #E6E1FB; margin-top: 8px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--violet); border-radius: 999px; }
@media (max-width: 760px) { .pilot-banner { flex-wrap: wrap; } }
.bk-facts { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.bk-facts li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.bk-facts span { color: var(--muted); }
.bk-steps { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.bk-steps code { background: var(--blue-bg); padding: 2px 6px; border-radius: 6px; }
/* M10: Ready to launch */
.launch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.launch-head.ok { border-color: #B9EBD2; background: linear-gradient(135deg, #F0FBF5, #fff 60%); }
.launch-head.warn { border-color: #F3D27A; background: linear-gradient(135deg, #FFF8E6, #fff 60%); }
.launch-head.fail { border-color: #F6C9C4; background: linear-gradient(135deg, #FDECEA, #fff 60%); }
.lh-score { display: flex; align-items: baseline; gap: 4px; padding: 12px 16px; border-radius: 14px; background: var(--violet); color: #fff; }
.lh-score b { font-size: 32px; font-weight: 800; line-height: 1; }
.lh-score span { font-size: 14px; font-weight: 700; opacity: .8; }
.lh-tx { flex: 1; min-width: 240px; }
.lh-tx h2 { font-size: 20px; }
.lh-tx p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.lh-products { display: flex; gap: 6px; flex-wrap: wrap; }
.lh-products a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); }
.lh-products a[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.launch-sec h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ls-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--mint); }
.launch-sec.warn .ls-dot { background: #F2994A; }
.launch-sec.fail .ls-dot { background: #E5484D; }
.launch-sec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.launch-sec ul { gap: 8px; }
.lchk { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--paper); }
.lchk.ok { background: var(--p-mint); }
.lchk.warn { background: var(--p-lemon); }
.lchk.fail { background: var(--p-rose); }
.lchk-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; line-height: 1; color: #fff; box-shadow: 0 2px 6px -2px rgba(13,31,78,.35); }
.lchk.ok .lchk-ic { background: var(--p-mint-ink); }
.lchk.warn .lchk-ic { background: #D9970F; }
.lchk.fail .lchk-ic { background: var(--p-rose-ink); }
.lchk-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lchk-tx b { font-size: 14px; color: var(--ink); }
.lchk-tx small { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.lchk .btn { flex: none; }
.launch-note { margin-top: 18px; max-width: 640px; }
.launch-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: #fff; border: 1px solid #DCD5FB; text-decoration: none; color: var(--ink); font-size: 13.5px; box-shadow: 0 10px 24px -18px rgba(91,71,224,.55); }
.launch-strip:hover { border-color: var(--violet); color: var(--ink); }
.launch-strip b { color: var(--violet-ink); }
.launch-strip .ls-ic { font-size: 20px; }
.launch-strip .ls-go { margin-left: auto; flex: none; font-weight: 800; color: var(--violet); }

/* ---------------------------------------------------------------------------
   Campaign builder: the message step and the review, in pastel cards
   --------------------------------------------------------------------------- */
:root {
  --p-mint: #E5F7EF; --p-mint-ink: #0B6E4C; --p-mint-line: #BFE9D6;
  --p-peach: #FFF0E5; --p-peach-ink: #A9500F; --p-peach-line: #F8D2B5;
  --p-rose: #FFECEF; --p-rose-ink: #AE2445; --p-rose-line: #F6C3CF;
  --p-sky: #E7F3FD; --p-sky-ink: #1A64A0; --p-sky-line: #BFDDF6;
  --p-lilac: #EFEBFF; --p-lilac-ink: #4936C2; --p-lilac-line: #D3CBFA;
  --p-lemon: #FFF7D6; --p-lemon-ink: #876000; --p-lemon-line: #F2E1A1;
}
h2.with-ic { display: flex; align-items: center; gap: 10px; }
.h-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.h-ic.mint, .rv-ic.mint { background: var(--p-mint); color: var(--p-mint-ink); }
.h-ic.peach, .rv-ic.peach { background: var(--p-peach); color: var(--p-peach-ink); }
.h-ic.rose, .rv-ic.rose { background: var(--p-rose); color: var(--p-rose-ink); }
.h-ic.sky, .rv-ic.sky { background: var(--p-sky); color: var(--p-sky-ink); }
.h-ic.lilac, .rv-ic.lilac { background: var(--p-lilac); color: var(--p-lilac-ink); }
.h-ic.lemon, .rv-ic.lemon { background: var(--p-lemon); color: var(--p-lemon-ink); }
.msg-card { display: flex; flex-direction: column; gap: 16px; }
.msg-card .card-head { align-items: center; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--paper); }
.save-state i { width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; background: #fff; color: var(--muted); }
.save-state.ok { background: var(--p-mint); color: var(--p-mint-ink); }
.save-state.ok i { background: var(--p-mint-ink); color: #fff; }
.save-state.bad { background: var(--p-rose); color: var(--p-rose-ink); }
.save-state.bad i { background: var(--p-rose-ink); color: #fff; }
.variant-tabs form { display: inline; }
.variant-tabs a { flex: 0 1 auto; flex-direction: row; gap: 10px; min-height: 48px; padding: 0 12px 0 8px; border-radius: 14px; min-width: 0; }
.variant-tabs a .vl { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--p-lilac); color: var(--p-lilac-ink); font-weight: 800; }
.variant-tabs a[aria-current="true"] .vl { background: rgba(255,255,255,.2); color: #fff; }
.variant-tabs a .vtn { font-weight: 700; font-size: 13.5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-tabs a .vtn.none { font-weight: 600; font-style: italic; opacity: .75; }
.msg-form { display: flex; flex-direction: column; gap: 16px; }
.tpl-pick .fl { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); }
.tpl-pick .vbadge { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--p-lilac); color: var(--p-lilac-ink); }
.tpl-pick select { width: 100%; min-height: 52px; margin-top: 8px; font-size: 15px; font-weight: 700; border-radius: 14px; border: 1.5px solid var(--p-lilac-line); background-color: #fff; padding-left: 14px; }
.tpl-pick select:focus { border-color: var(--violet); }
.msg-extras { display: flex; flex-direction: column; gap: 12px; }
.msg-extras:empty { display: none; }
.tpl-status { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; }
.ts-chip.ok { background: var(--p-mint); color: var(--p-mint-ink); }
.ts-chip.wait { background: var(--p-lemon); color: var(--p-lemon-ink); }
.tpl-wait { font-size: 13px; color: var(--p-lemon-ink); }
.nn-box { border-radius: 14px; background: var(--p-sky); border: 1px solid var(--p-sky-line); }
.nn-box summary { list-style: none; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.nn-box summary::-webkit-details-marker { display: none; }
.nn-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--p-sky-ink); }
.nn-tx { flex: 1; line-height: 1.5; }
.nn-change { font-weight: 800; font-size: 12.5px; color: var(--p-sky-ink); white-space: nowrap; padding-top: 5px; }
.nn-box[open] .nn-change { visibility: hidden; }
.nn-box .field { padding: 0 14px 14px 56px; }
.hdr-box { display: flex; gap: 14px; padding: 12px; border-radius: 14px; background: var(--p-peach); border: 1px solid var(--p-peach-line); }
.hdr-thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; position: relative; }
.hdr-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hdr-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; font-size: 13.5px; }
.hdr-tx b { color: var(--navy); font-size: 14px; }
.hdr-tx > span { color: var(--muted); }
.hdr-tx details summary { cursor: pointer; font-weight: 800; font-size: 12.5px; color: var(--p-peach-ink); margin-top: 4px; }
.hdr-tx details input { margin-top: 8px; width: 100%; }
.hdr-tx details small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.share-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--p-lilac); border: 1px solid var(--p-lilac-line); }
.share-row .sr-ic { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--p-lilac-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.share-row label { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; }
.share-row label small { color: var(--muted); font-size: 12px; }
.share-row .pct { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--p-lilac-ink); }
.share-row .pct input { width: 80px; min-height: 40px; text-align: right; }
.btn-map-box h3, .ar-box h3 { margin-bottom: 8px; }
.btn-map { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.btn-map li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; font-size: 13px; }
.btn-map .bm-btn { flex: none; min-width: 150px; padding: 7px 12px; border-radius: 10px; background: #fff; font-weight: 800; color: #0B7FC1; text-align: center; box-shadow: 0 1px 0 rgba(13,31,78,.06); }
.btn-map .bm-then { color: var(--ink); }
.btn-map li.mint, .ar.mint { background: var(--p-mint); }
.btn-map li.peach, .ar.peach { background: var(--p-peach); }
.btn-map li.rose, .ar.rose { background: var(--p-rose); }
.btn-map li.sky, .ar.sky { background: var(--p-sky); }
.ar-box .small { margin-bottom: 10px; }
.ar-list { display: flex; flex-direction: column; gap: 10px; }
.ar { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border-radius: 12px; }
.ar-when { font-size: 12.5px; font-weight: 800; color: var(--navy); }
.ar textarea { background: #fff; border-color: transparent; }
.ar-docs { border-radius: 10px; background: rgba(255,255,255,.62); }
.ar-docs > summary { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 38px; padding: 6px 10px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); }
.ar-docs > summary::-webkit-details-marker { display: none; }
.ar-docs > summary small { font-weight: 500; color: var(--muted); }
.ar-docs[open] > summary { border-bottom: 1px solid rgba(13,31,78,.08); }
.ar-clip { display: inline-flex; color: var(--violet-ink); }
.ar-picked { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ar-doc-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid #DCD6FB; font-size: 12px; font-weight: 700; color: var(--violet-ink); overflow-wrap: anywhere; }
.ar-change { margin-left: auto; font-size: 12px; color: var(--violet-ink); text-decoration: underline; }
.ar-docs:not(.has) .ar-change, .ar-docs:not(.has) .ar-picked, .ar-docs.has .ar-none { display: none; }
.ar-max { color: var(--orange); font-weight: 700; }
.ar-doc-pick { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; }
.ar-doc-pick label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; cursor: pointer; }
.ar-doc-pick label:hover, .ar-doc-pick label:has(input:checked) { background: #fff; }
.ar-doc-pick .tx { display: flex; flex-direction: column; min-width: 0; }
.ar-doc-pick .tx b { font-size: 13px; overflow-wrap: anywhere; }
.ar-doc-pick .tx small { font-size: 12px; color: var(--muted); }
.ar-doc-pick p { margin: 4px 2px 0; }
@media (max-width: 720px) { .btn-map li { flex-direction: column; align-items: stretch; } .btn-map .bm-btn { min-width: 0; } }

/* the review */
.rv-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--p-lilac-line); background: linear-gradient(120deg, var(--p-lilac) 0%, #F6F3FF 45%, var(--p-sky) 100%); }
.rv-hero.ready { border-color: var(--p-mint-line); background: linear-gradient(120deg, var(--p-mint) 0%, #F2FBF7 45%, var(--p-sky) 100%); }
.rv-hero-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--violet); box-shadow: 0 6px 16px -10px rgba(91,71,224,.6); }
.rv-hero.ready .rv-hero-ic { color: var(--p-mint-ink); }
.rv-hero-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-hero-tx b { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.rv-hero-tx span { font-size: 13.5px; color: var(--muted); }
.rv-hero-state { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #fff; }
.rv-pill.ok { color: var(--p-mint-ink); }
.rv-pill.bad { color: var(--p-rose-ink); }
.rv-pill.warn { color: var(--p-lemon-ink); }
.rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.rv-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; opacity: .55; pointer-events: none; }
.rv-card.mint::after { background: var(--p-mint); } .rv-card.peach::after { background: var(--p-peach); }
.rv-card.rose::after { background: var(--p-rose); } .rv-card.sky::after { background: var(--p-sky); }
.rv-card.lilac::after { background: var(--p-lilac); } .rv-card.lemon::after { background: var(--p-lemon); }
.rv-card.wide { grid-column: 1 / -1; }
.rv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; position: relative; z-index: 1; }
.rv-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.rv-label { font-size: 13px; font-weight: 800; color: var(--muted); }
.rv-edit { margin-left: auto; font-size: 12.5px; font-weight: 800; text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--navy); }
.rv-edit:hover { background: var(--p-lilac); color: var(--p-lilac-ink); }
.rv-card > b { font-size: 17px; color: var(--navy); position: relative; z-index: 1; }
.rv-card > span { font-size: 13px; color: var(--muted); line-height: 1.5; position: relative; z-index: 1; }
.rv-variants { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.rv-variants li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--p-mint); }
.rv-variants .vl { width: 28px; height: 28px; flex: none; border-radius: 8px; background: #fff; color: var(--p-mint-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.rv-variants .vtn { flex: 1; font-weight: 800; color: var(--navy); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-variants .vtn.none { font-weight: 600; font-style: italic; color: var(--p-rose-ink); }
.rv-variants .vbar { width: 110px; height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.rv-variants .vbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6EDDB0, var(--p-mint-ink)); }
.rv-variants .vw { width: 42px; text-align: right; font-weight: 800; color: var(--p-mint-ink); }
.rv-preview .card-head { align-items: center; margin-bottom: 14px; }
.rv-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.rv-phone { display: flex; flex-direction: column; gap: 8px; }
.rv-vtag { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--p-lilac); color: var(--p-lilac-ink); }
.wa-chat { padding: 14px 12px; border-radius: 16px; background-color: #EFE7DD; background-image: radial-gradient(rgba(13,31,78,.05) 1px, transparent 1px); background-size: 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.wa-chat .bubble .text { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.wa-chat .bubble .media.ph { font-size: 34px; }
.wa-chat .bubble .media.broken::after { content: "🖼"; font-size: 34px; }
.rv-tname { font-size: 11.5px; color: var(--muted); }
.checks-list.tinted { gap: 8px; }
.checks-list.tinted li { border-top: none; padding: 10px 12px; border-radius: 12px; }
.checks-list.tinted li.ok { background: var(--p-mint); }
.checks-list.tinted li.warn { background: var(--p-lemon); }
.checks-list.tinted li.no { background: var(--p-rose); }
.checks-list.tinted li.ok .ic { background: var(--p-mint-ink); }
.checks-list.tinted li.no .ic { background: var(--p-rose-ink); }
.checks-list.tinted li.warn .ic { background: #D9970F; }
.checks-list.tinted a { color: var(--navy); }
.plain-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plain-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.plain-steps .ps-n { width: 26px; height: 26px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; background: var(--p-sky); color: var(--p-sky-ink); }
.plain-steps li:nth-child(3n+2) .ps-n { background: var(--p-lilac); color: var(--p-lilac-ink); }
.plain-steps li:nth-child(3n) .ps-n { background: var(--p-peach); color: var(--p-peach-ink); }
.start-box.ready { background: linear-gradient(120deg, var(--p-mint), #fff 55%, var(--p-lilac)); border-color: var(--p-mint-line); }
@media (max-width: 860px) { .rv-grid { grid-template-columns: minmax(0, 1fr); } .rv-hero { flex-wrap: wrap; } .rv-hero-state { justify-content: flex-start; } }

/* M10.3 — test card: typed number, read tip */
.to-pick { display: flex; flex-direction: column; gap: 10px; }
.to-pick .to-other[hidden] { display: none; }
.read-tip { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 4px 4px 14px 4px; background: linear-gradient(180deg, #FFF6CC, #FFF0B3); color: #4A3B12; font-size: 13.5px; line-height: 1.45; box-shadow: 0 10px 20px -16px rgba(120,90,0,.5); }
.read-tip b { color: #3E3008; }
.read-tip ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.read-tip li::marker { color: #B08A12; }

/* M10.3 — WhatsApp numbers: header help, Setup guide as a note, help dialog */
.nums-go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.help-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--p-sky-line); background: var(--p-sky); color: var(--p-sky-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.help-pill span { width: 24px; height: 24px; border-radius: 50%; background: var(--p-sky-ink); color: #fff; font: italic 800 14px/24px Georgia, serif; text-align: center; }
.help-pill:hover { filter: brightness(.97); }
.help-pill:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.nc-spacer { flex: 1 1 auto; }
.nc-btn.guide { background: linear-gradient(180deg, #FFF6CC, #FFEFAE); border-color: #EBD68A; color: #6B5208; border-radius: 4px 4px 14px 4px; box-shadow: 0 6px 14px -10px rgba(120,90,0,.6); }
.nc-btn.guide:hover { background: #FFEDA3; }
.nc-btn.guide[aria-expanded="true"] { background: #FFE58A; border-color: #E0C25C; color: #4A3B12; }
.guide-note { position: relative; padding: 20px 22px 22px; border-radius: 4px 4px 22px 4px; background: linear-gradient(180deg, #FFF8D9 0%, #FFF1BC 100%); box-shadow: 0 14px 28px -20px rgba(120,90,0,.55); }
.guide-note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 84px; height: 18px; margin-left: -42px; background: rgba(255,255,255,.6); border: 1px solid rgba(160,130,40,.15); transform: rotate(-2deg); }
.guide-note .gn-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #E6CF7E; }
.guide-note .gn-head b { font-size: 16px; color: #4A3B12; }
.guide-note .gn-head span { font-size: 13.5px; color: #6B5A26; }
.guide-note .hook-steps > li { color: #5E5124; }
.guide-note .hook-steps > li > b { color: #3E3008; }
.guide-note .hook-steps > li::before { background: #F5C842; color: #4A3B12; }
.guide-note .hook-steps > li:not(:last-child)::after { background: #EBD68A; }
.guide-note .hook-url code { border-color: #E6CF7E; }
.guide-note .hook-new { border-top-color: #E6CF7E; }
@media (max-width: 560px) { .nc-spacer { display: none; } .nc-btn.guide { flex-basis: 100%; } }

dialog.help-dialog { border: none; border-radius: 24px; padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 30px 80px -20px rgba(13,31,78,.55); color: var(--ink); background: #fff; }
dialog.help-dialog::backdrop { background: rgba(13,31,78,.42); backdrop-filter: blur(3px); }
.hd-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 24px 26px 6px; }
.hd-top h2 { font-size: 21px; color: var(--navy); }
.hd-top p { margin-top: 4px; color: var(--muted); font-size: 14px; max-width: 620px; }
.hd-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.hd-x:hover { background: var(--paper); }
.hd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px 26px; }
.hd-card { border-radius: 18px; padding: 16px 18px; border: 1px solid; }
.hd-card h3 { font-size: 15.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.hd-card h3::before { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hd-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; line-height: 1.5; }
.hd-card.sky { background: var(--p-sky); border-color: var(--p-sky-line); } .hd-card.sky h3 { color: var(--p-sky-ink); } .hd-card.sky h3::before { content: "i"; font-style: italic; font-family: Georgia, serif; background: var(--p-sky-ink); }
.hd-card.mint { background: var(--p-mint); border-color: var(--p-mint-line); } .hd-card.mint h3 { color: var(--p-mint-ink); } .hd-card.mint h3::before { content: "✓"; background: var(--p-mint-ink); }
.hd-card.rose { background: var(--p-rose); border-color: var(--p-rose-line); } .hd-card.rose h3 { color: var(--p-rose-ink); } .hd-card.rose h3::before { content: "✕"; background: var(--p-rose-ink); }
.hd-card li::marker { color: currentColor; }
.hd-foot { padding: 0 26px 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .hd-grid { grid-template-columns: minmax(0, 1fr); } }

/* M10.3 — logo chooser, company page, product cards */
.logo-pick { display: flex; align-items: center; gap: 16px; }
.lp-tile { width: 96px; height: 96px; flex: none; border-radius: 22px; background: repeating-conic-gradient(#F3F1FF 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 2px dashed #C9C0F8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-pick.has .lp-tile { border-style: solid; border-color: var(--line); background: #fff; }
.lp-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.lp-img[hidden], .lp-ini[hidden], .lp-remove[hidden], .lp-err[hidden] { display: none; }
.lp-ini { font-size: 30px; font-weight: 800; color: var(--violet); letter-spacing: -.02em; }
.lp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lp-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lp-side > label.btn { cursor: pointer; }
.lp-side:has(.lp-file:focus-visible) > label.btn { outline: 3px solid var(--violet); outline-offset: 2px; }
.lp-remove { font-size: 12.5px; color: var(--red); text-decoration: none; }
.lp-hint { color: var(--muted); font-size: 12px; }
.lp-err { color: var(--red); font-size: 12.5px; font-weight: 700; }
.co-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 12px; }
.co-grid .logo-pick { flex-direction: column; align-items: flex-start; }
.co-grid .lp-tile { width: 128px; height: 128px; border-radius: 28px; }
.co-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-fields .co-wide { grid-column: 1 / -1; }
.co-fields textarea { min-height: 64px; }
.co-uses { margin-top: 16px; padding: 10px 14px; border-radius: 4px 4px 14px 4px; background: linear-gradient(180deg, #FFF8D9, #FFF1BC); color: #5E5124; font-size: 13.5px; }
.co-uses b { color: #3E3008; }
.sticky-save { position: sticky; bottom: 14px; z-index: 5; align-self: flex-end; width: fit-content; padding: 0; border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(63,47,180,.55); }
@media (max-width: 760px) { .co-grid { grid-template-columns: minmax(0, 1fr); } }

.prods { display: flex; flex-direction: column; gap: 18px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.prod-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); overflow: hidden; }
.prod-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; }
.prod-card.lilac::before { background: var(--p-lilac-ink); } .prod-card.mint::before { background: var(--p-mint-ink); }
.prod-card.peach::before { background: var(--p-peach-ink); } .prod-card.sky::before { background: var(--p-sky-ink); }
.prod-card.rose::before { background: var(--p-rose-ink); } .prod-card.lemon::before { background: var(--p-lemon-ink); }
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-logo { width: 60px; height: 60px; flex: none; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 21px; font-weight: 800; }
.pc-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 18px; }
.pc-logo.lilac { background: var(--p-lilac); color: var(--p-lilac-ink); } .pc-logo.mint { background: var(--p-mint); color: var(--p-mint-ink); }
.pc-logo.peach { background: var(--p-peach); color: var(--p-peach-ink); } .pc-logo.sky { background: var(--p-sky); color: var(--p-sky-ink); }
.pc-logo.rose { background: var(--p-rose); color: var(--p-rose-ink); } .pc-logo.lemon { background: var(--p-lemon); color: var(--p-lemon-ink); }
.pc-id { min-width: 0; flex: 1; }
.pc-id h3 { font-size: 18px; color: var(--navy); }
.pc-id p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pc-chip { align-self: flex-start; }
.pc-missing { color: #98A1B5; font-style: italic; }
.pc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 13.5px; }
.pc-facts li { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pc-facts a { color: var(--violet-ink); font-weight: 700; text-decoration: none; }
.pc-facts a:hover { text-decoration: underline; }
.pf-ic { width: 26px; height: 26px; flex: none; border-radius: 9px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.pc-flow { display: flex; flex-direction: column; gap: 6px; }
.pc-flow-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.tip-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1; cursor: help; padding: 0; }
.pc-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.pc-stages > li { display: inline-flex; align-items: center; }
.pc-stages > li + li::before { content: ""; width: 14px; height: 2px; background: #C9D6EE; margin: 0 3px; border-radius: 2px; }
.pc-stages .st-end { gap: 4px; }
.pc-stages .st-end i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pc-flow-note { font-size: 12px; color: var(--muted); line-height: 1.45; }
.st-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--p-sky); color: var(--p-sky-ink); }
.st-pill.won { background: var(--p-mint); color: var(--p-mint-ink); }
.st-pill.lost { background: var(--p-rose); color: var(--p-rose-ink); }
.pc-edit { border-top: 1px solid var(--line-2); padding-top: 12px; }
.pc-edit > summary { cursor: pointer; font-weight: 800; color: var(--violet); font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.pc-edit > summary::-webkit-details-marker { display: none; }
.pc-edit > summary::before { content: "✎"; }
.pc-edit[open] > summary { margin-bottom: 14px; }
.pc-edit .pc-wide, #add-product .pc-wide { grid-column: 1 / -1; }
.more-opts > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.more-opts[open] > summary { margin-bottom: 10px; }
@media (max-width: 560px) { .pc-facts { grid-template-columns: minmax(0, 1fr); } }

/* M10.3 — grouped menu, company logo in the menu */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.ng-head { display: flex; align-items: stretch; gap: 2px; }
.ng-head > a { flex: 1; 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; }
.ng-tog { width: 34px; flex: none; border: none; background: none; color: #8C98C2; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ng-tog:hover, .ng-label:hover { background: var(--navy-2); color: #fff; }
.ng-tog svg, .ng-chev { transition: transform .18s ease; }
.nav-group.open .ng-tog svg, .nav-group.open .ng-chev { transform: rotate(90deg); }
.ng-label { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border: none; background: none; border-radius: var(--radius-sm); color: #D3DAEE; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.ng-label svg:first-child { flex: 0 0 18px; }
.ng-chev { margin-left: auto; color: #8C98C2; }
.nav-group.in > .ng-head > a:not([aria-current]), .nav-group.in > .ng-head > .ng-label { color: #fff; }
.ng-items { display: none; flex-direction: column; gap: 2px; margin: 0 0 4px 21px; padding-left: 10px; border-left: 1.5px solid var(--navy-line); }
.nav-group.open > .ng-items { display: flex; }
.ng-items a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 10px; color: #BFC8E4; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.ng-items a svg { flex: 0 0 16px; opacity: .85; }
.ng-items a[aria-current="page"] { background: var(--navy-3); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--mint); }
.ng-tog:focus-visible, .ng-label:focus-visible, .ng-items a:focus-visible, .ng-head > a:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
@media (max-width: 860px) {
  .nav-group, .ng-head, .ng-items, .nav-group.open > .ng-items { display: contents; }
  .ng-tog, .ng-label { display: none; }
  .ng-items a { min-height: 42px; padding: 0 12px; font-size: 14px; }
}
.brand.co { gap: 12px; }
.brand-tile { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 0 2px rgba(61,213,152,.55); }
.brand-tile img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand.co strong { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.brand.co small { display: flex; align-items: center; gap: 4px; margin-top: 2px; }

/* M10.3 — move arrows */
.mv { display: inline-flex; gap: 4px; }
.mv-btn { width: 32px; height: 32px; border-radius: 10px; border: 1px solid #DCD6FB; background: #F7F6FF; color: var(--violet); font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mv-btn:hover:not(:disabled) { background: var(--violet); border-color: var(--violet); color: #fff; }
.mv-btn:disabled { opacity: .35; cursor: default; }
.mv-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; }
tr.moved { animation: moved .9s ease-out; }
@keyframes moved { from { background: var(--p-lemon); } to { background: transparent; } }
.unsaved { font-size: 13px; font-weight: 700; color: var(--p-peach-ink); background: var(--p-peach); padding: 6px 12px; border-radius: 999px; }
.unsaved[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { tr.moved { animation: none; } }
.tags-other { margin-top: 8px; display: inline-block; font-size: 12.5px; padding: 6px 10px; border-radius: 10px; background: var(--p-sky); color: var(--p-sky-ink); }
.tags-other a { color: inherit; font-weight: 800; }
.nc-test .to-pick { display: contents; }
@media (max-width: 560px) { .co-fields { grid-template-columns: minmax(0, 1fr); } }
tr:target { animation: moved 1.4s ease-out; scroll-margin-top: 120px; }
.nc-panel:has(> .guide-note) { padding: 0; background: none; border: none; box-shadow: none; }

/* M10.4 — why a test failed, in plain words */
.fail-why { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #F6C9C4; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.fail-why b { color: var(--p-rose-ink); }
.fail-why ul { margin: 2px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* M10.4 — import: drop a file */
.fdrop { position: relative; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-face { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px 26px; border: 2px dashed #C9C0F8; border-radius: 20px; background: linear-gradient(180deg, #FAF9FF, #F3F0FF); text-align: center; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.drop-face[hidden], .drop-chosen[hidden], .drop-err[hidden] { display: none; }
.drop-face:hover { border-color: var(--violet); background: #F1EDFF; }
.fdrop.over .drop-face { border-color: var(--violet); background: var(--violet-bg); transform: scale(1.01); }
.fdrop:has(.drop-input:focus-visible) .drop-face { outline: 3px solid var(--violet); outline-offset: 3px; }
.drop-ic { width: 58px; height: 58px; border-radius: 18px; background: #fff; color: var(--violet); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -14px rgba(63,47,180,.6); margin-bottom: 4px; }
.drop-title { font-size: 16px; color: var(--navy); }
.drop-sub { font-size: 14px; color: var(--muted); }
.drop-sub u { color: var(--violet); font-weight: 700; text-underline-offset: 3px; }
.drop-kinds { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.drop-kinds span { font-weight: 800; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--p-mint); color: var(--p-mint-ink); }
.drop-chosen { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--p-mint-line); background: var(--p-mint); }
.dc-ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--p-mint-ink); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; }
.dc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-name { color: var(--navy); overflow-wrap: anywhere; }
.dc-size { color: var(--p-mint-ink); font-weight: 700; }
.drop-err { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--p-rose); color: var(--p-rose-ink); font-size: 13.5px; font-weight: 700; }
.fdrop.bad .drop-face { border-color: #F0A7B6; }
.drop-help { margin-top: -6px; }
.drop-help a { font-weight: 700; }

/* M10.5 — inbox: more room, a calm header */
.main.tight { padding: 14px 16px 14px; }
.main.tight .inbox { height: calc(100vh - 28px); border-radius: 18px; }
.main.tight > .flash, .main.tight > .ok-msg { margin-bottom: 10px; }
.th-head { container-type: inline-size; padding: 10px 14px; gap: 12px; }
.th-who b.num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.th-who small.th-meta { display: block; overflow: hidden; }
.tm-row { display: flex; flex-wrap: wrap; align-items: center; row-gap: 3px; margin-left: -14px; }
.tm-row > span { position: relative; display: inline-flex; align-items: center; padding-left: 14px; }
.tm-row > span::before { content: "·"; position: absolute; left: 4px; color: #A9B0C2; font-weight: 800; }  /* a dot starting a line falls outside and is clipped */
.th-owner { gap: 4px; font-weight: 700; color: var(--muted); }
.th-owner.mine { color: var(--p-mint-ink); }
.th-owner.none { color: var(--p-peach-ink); }
.th-owner .linkish { font-size: inherit; color: var(--violet); text-decoration: none; }
.th-actions { flex-wrap: nowrap; gap: 6px; }
.tb { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px 0 5px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tb:hover { background: var(--paper); color: var(--navy); }
.tb:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.tb .ti { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ti.lilac { background: var(--p-lilac); color: var(--p-lilac-ink); }
.ti.sky { background: var(--p-sky); color: var(--p-sky-ink); }
.ti.peach { background: var(--p-peach); color: var(--p-peach-ink); }
.ti.mint { background: var(--p-mint); color: var(--p-mint-ink); }
.tb.call { padding: 0 14px; background: #128C4A; border-color: #128C4A; color: #fff; }
.tb.call:hover { background: #0E7A40; color: #fff; }
.tb.take { padding: 0 14px; background: var(--violet); border-color: var(--violet); color: #fff; }
.tb.take:hover { background: var(--violet-ink); color: #fff; }
@container (max-width: 690px) {
  .th-actions .tb:not(.call):not(.take) { padding: 0 4px; }
  .th-actions .tb:not(.call):not(.take) .lbl { display: none; }
}
@container (max-width: 520px) {
  .th-actions { width: 100%; flex-wrap: wrap; }
}
@media (max-width: 860px) { .main.tight { padding: 10px 10px 16px; } .main.tight .inbox { height: calc(100vh - 150px); } }
.main.tight .page { max-width: none; gap: 10px; }

/* M10.5 — back to where you came from */
.page-back, .drawer-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(13,31,78,.05); }
.page-back:hover, .drawer-back:hover { background: var(--violet-bg); border-color: #D6CEFB; color: var(--violet-ink); }
.page-back[hidden], .drawer-back[hidden] { display: none; }
.drawer-back { margin-right: auto; }
.crumbs a[data-back] { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; }
.crumbs a[data-back]:hover { background: var(--violet-bg); color: var(--violet-ink); }

/* M10.5 — call screen: one calm header, keenness in How did it go? */
.call-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; }
.call-card > .cc-top { flex: 1 1 360px; min-width: 0; }
.call-card > .cc-dial { flex: 0 1 auto; padding: 10px 12px 10px 16px; }
.call-card > p.note { flex-basis: 100%; }
.cc-who { min-width: 0; }
.cc-who h1 { font-size: 24px; line-height: 1.15; }
.cc-who h1.num, .th-who b.num { font-variant-numeric: tabular-nums; }
.cc-sub .chip { font-size: 12px; }
.temp-now.unset { background: var(--paper); color: var(--muted); border: 1px dashed var(--field); }
.temp-now.hot { background: #FFE9E2; color: #B4320C; }
.temp-now.warm { background: #FFF3D6; color: #8A5A00; }
.temp-now.cold { background: #E7F3FD; color: #1A64A0; }
.keen-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--p-lemon); border: 1px solid var(--p-lemon-line); }
.keen-box[hidden] { display: none; }
.kb-q { font-weight: 800; color: var(--navy); font-size: 14.5px; }
.kb-q .hint { font-weight: 600; }
.keen-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keen { position: relative; cursor: pointer; }
.keen input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.keen > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid transparent; box-shadow: 0 1px 2px rgba(13,31,78,.06); transition: border-color .12s, background .12s; }
.keen b { font-size: 14.5px; color: var(--navy); }
.keen small { font-size: 12px; color: var(--muted); }
.keen.k-hot input:checked + span { border-color: #E8590C; background: #FFF1EB; }
.keen.k-warm input:checked + span { border-color: #E0A100; background: #FFF8E1; }
.keen.k-cold input:checked + span { border-color: #2E8BD8; background: #EEF6FE; }
.keen input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (max-width: 640px) { .keen-opts { grid-template-columns: minmax(0, 1fr); } }

/* M10.5 — Team calls: one compact strip instead of four big boxes */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ss { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-width: 0; }
.ss + .ss { border-left: 1px solid var(--line-2); }
.ss-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--muted); }
.ss-tx { display: flex; flex-direction: column; min-width: 0; }
.ss-tx b { font-size: 22px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.ss-tx small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.ss.sky .ss-ic { background: var(--p-sky); color: var(--p-sky-ink); }
.ss.lilac .ss-ic { background: var(--p-lilac); color: var(--p-lilac-ink); }
.ss.rose .ss-ic { background: var(--p-rose); color: var(--p-rose-ink); }
.ss.rose .ss-tx b { color: var(--p-rose-ink); }
.ss.mint .ss-ic { background: var(--p-mint); color: var(--p-mint-ink); }
.ss.calm .ss-tx b { color: #9AA3B8; }
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ss:nth-child(3) { border-left: none; } .ss:nth-child(n+3) { border-top: 1px solid var(--line-2); } }
.noname { font-style: normal; color: #8b93a6; font-weight: 600; }
.main.tight .flash { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; margin: 0; box-shadow: 0 16px 40px -14px rgba(13,31,78,.45); animation: toast-out 5s ease forwards; pointer-events: none; }
@keyframes toast-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .main.tight .flash { animation: none; } }

/* M10.6 — Saved replies and Documents as drawer tabs on the chat's right edge */
.th { position: relative; }
.th-rail { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.rail-tab { writing-mode: vertical-rl; display: inline-flex; align-items: center; gap: 8px; padding: 14px 8px; border: 1px solid; border-right: none; border-radius: 14px 0 0 14px; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .01em; cursor: pointer; box-shadow: -6px 8px 18px -12px rgba(13,31,78,.45); transition: padding .15s; }
.rail-tab svg { flex: none; }
.rail-tab:hover { padding-right: 12px; }
.rail-tab:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.rail-tab.lilac { background: var(--p-lilac); color: var(--p-lilac-ink); border-color: var(--p-lilac-line); }
.rail-tab.sky { background: var(--p-sky); color: var(--p-sky-ink); border-color: var(--p-sky-line); }
.th:has(.th-rail) .th-msgs { padding-right: calc(6% + 34px); }
.th-actions .tb.on-phone { display: none; }
@media (max-width: 860px) {
  .th-rail { display: none; }
  .th-actions .tb.on-phone { display: inline-flex; }
  .th:has(.th-rail) .th-msgs { padding-right: 10px; }
}

/* M10.7 — the menu folds to icons */
.nav-fold { width: 30px; height: 30px; flex: none; border: none; border-radius: 9px; background: transparent; color: #8C98C2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.nav-fold:hover { background: var(--navy-2); color: #fff; }
.nav-fold:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.brand-row .brand { min-width: 0; }
.side { transition: flex-basis .18s ease, padding .18s ease; }
html.nav-mini .side { flex-basis: 76px; padding: 18px 10px; gap: 16px; overflow-x: hidden; }
html.nav-mini .nav-fold svg { transform: rotate(180deg); }
html.nav-mini .brand-row { flex-direction: column; gap: 8px; }
html.nav-mini .brand-row .nav-fold { margin-left: 0; order: 3; }
html.nav-mini .brand { padding: 0; justify-content: center; }
html.nav-mini .brand > span:not(.brand-tile) { display: none; }
html.nav-mini .switcher, html.nav-mini .side-numbers, html.nav-mini .nav > span[aria-disabled="true"] { display: none; }
html.nav-mini .nav-group, html.nav-mini .ng-head, html.nav-mini .ng-items, html.nav-mini .nav-group.open > .ng-items { display: contents; }
html.nav-mini .ng-label { display: none; }
html.nav-mini .nav a, html.nav-mini .ng-items a { position: relative; justify-content: center; gap: 0; padding: 0; min-height: 44px; font-size: 0; margin: 0; border-left: none; box-shadow: none; }
html.nav-mini .ng-items a svg { width: 18px; height: 18px; opacity: 1; }
html.nav-mini .ng-items a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--mint); }
html.nav-mini .nav-badge { position: absolute; top: 3px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; margin: 0; }
html.nav-mini .st-dot { position: absolute; bottom: 8px; right: 12px; }
html.nav-mini .side .me { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 8px 4px; }
html.nav-mini .side .me > span:nth-child(2) { display: none; }
html.nav-mini .side .me form { border-top: none; padding-top: 0; }
html.nav-mini .side .me .linkbtn { font-size: 0; width: auto; padding: 6px; }
html.nav-mini .side .me .linkbtn::before { content: "⎋"; font-size: 16px; }
html.nav-mini .bell-panel { left: 82px; }
@media (max-width: 860px) { .nav-fold { display: none; } }
/* Phones and small tablets: the menu folds away behind "Menu", so a page starts at the top of the screen. */
.nav-burger { display: none; }
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: var(--navy-2); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .nav-burger:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
  .side[data-open] .nav-burger { background: #fff; color: var(--navy); }
  .side:not([data-open]) > :not(.brand-row) { display: none; }
  .side:not([data-open]) { gap: 0; }
  .side .nav .nav-sep { flex-basis: 100%; margin: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* M10.7 — lead panel: a clear header, then cards */
.lead-drawer { width: 520px; background: #F6F7FB; }
.lead-drawer .drawer-top { background: #fff; }
.lead-drawer .drawer-top .close { margin-left: auto; }
.ld-over { font-weight: 800; color: var(--navy); font-size: 14px; }
.lead-drawer .drawer-body { padding: 16px 16px 28px; gap: 12px; }
.ld-hero { display: flex; gap: 14px; align-items: center; padding: 4px 4px 0; }
.ld-who { min-width: 0; }
.ld-who h2 { font-size: 22px; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.ld-who h2.num { font-variant-numeric: tabular-nums; }
.ld-who p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.ld-who p.ld-meta { overflow: hidden; }
.ld-noname { font-size: 13px; color: var(--p-peach-ink) !important; }
.ld-noname a { color: var(--violet); font-weight: 700; }
.ld-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-dnc { padding: 10px 12px; border-radius: 14px; background: var(--p-rose); color: var(--p-rose-ink); font-size: 13px; }
.ld-dnc details { margin-top: 6px; }
.ld-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ld-h { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); }
.ld-h small { color: var(--muted); font-weight: 600; }
.ld-h .ti { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.ti.lemon { background: var(--p-lemon); color: var(--p-lemon-ink); }
.ld-prod { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ld-prod:last-of-type { border-bottom: none; padding-bottom: 0; }
.lp-top { display: flex; align-items: center; gap: 8px; }
.lp-top b { font-size: 15px; color: var(--navy); }
.lp-owner { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-stage select { min-height: 34px; padding: 0 28px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; width: auto; }
.lp-stage select.s-interested, .lp-stage select.s-demo_booked, .lp-stage select.s-demo_done, .lp-stage select.s-won { background-color: var(--p-mint); color: var(--p-mint-ink); border-color: var(--p-mint-line); }
.lp-stage select.s-lost { background-color: var(--p-rose); color: var(--p-rose-ink); border-color: var(--p-rose-line); }
.lp-stage select.s-new, .lp-stage select.s-contacted, .lp-stage select.s-responded, .lp-stage select.s-none { background-color: var(--p-sky); color: var(--p-sky-ink); border-color: var(--p-sky-line); }
.ld-addprod { display: flex; gap: 6px; align-items: center; }
.ld-addprod select { width: auto; min-height: 34px; font-size: 13px; }
.ld-card .tg-row { margin-top: 0; }
.ld-card .assign-one { background: var(--paper); }
.ld-more > summary { cursor: pointer; font-weight: 800; color: var(--navy); font-size: 14px; }
.ld-more[open] > summary { margin-bottom: 4px; }
.ld-note { display: flex; gap: 8px; align-items: flex-end; }
.ld-note textarea { flex: 1; min-height: 44px; }
.ld-stop > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--red); padding: 4px; }
.lead-drawer .panel-chat { background: #fff; }
@media (max-width: 560px) { .lead-drawer .tb .lbl { display: none; } .lead-drawer .tb { padding: 0 6px; } .ld-note { flex-direction: column; align-items: stretch; } }

/* M10.7 — send a document: quick picks */
.ds-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ds-pick { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ds-pick:hover { background: var(--paper); }
.ds-pick.pk-kit { color: #8A5A00; }
.ds-pick.pk-pop { color: #B4320C; }
.ds-pick.pk-rec { color: var(--p-sky-ink); }
.ds-pick.pk-tag { color: var(--p-lilac-ink); }
.ds-pick.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.ds-pick:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.phone-in { display: flex; gap: 6px; }
.phone-in .cc-select { flex: 0 0 auto; width: auto; max-width: 46%; }
.phone-in input { flex: 1; min-width: 0; }
.desk-toggle { display: block; width: 100%; margin-bottom: 6px; padding: 9px 12px; border-radius: 12px; border: 1px dashed #C9C0F8; background: var(--violet-bg); color: var(--violet-ink); font: inherit; font-size: 13px; font-weight: 800; text-align: left; cursor: pointer; }
.desk-toggle::before { content: "🔔 "; }
.desk-toggle.on { border-style: solid; border-color: var(--p-mint-line); background: var(--p-mint); color: var(--p-mint-ink); }
.desk-toggle.blocked, .desk-toggle.unsupported { border-color: var(--line); background: var(--paper); color: var(--muted); cursor: default; font-weight: 600; }
.desk-toggle[hidden] { display: none; }
.side { z-index: 25; }  /* above the page's own layers, so the bell's panel isn't covered */

/* M10.8 — prices, customers, money */
.pc-prices { display: flex; flex-wrap: wrap; gap: 6px; }
.price-chip { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--p-lemon); color: var(--p-lemon-ink); }
.pc-price-edit > summary::before { content: "₹"; font-weight: 800; }
.price-form { display: flex; flex-direction: column; gap: 10px; }
.price-rows { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto 28px; gap: 6px; align-items: center; }
.price-row select { width: auto; min-height: 40px; }
.pr-amt { display: flex; align-items: center; gap: 6px; padding-left: 10px; border: 1px solid var(--field); border-radius: 12px; background: #fff; }
.pr-amt input { border: none; min-height: 38px; padding-left: 0; box-shadow: none; }
.pr-amt:focus-within { outline: 3px solid var(--violet-bg); border-color: var(--violet); }
.pr-x { color: var(--muted); text-decoration: none; font-size: 15px; }
@media (max-width: 560px) { .price-row { grid-template-columns: 1fr 1fr; } }

/* Lead panel: Won asks what they bought; customer of this product */
.lp-stage { display: contents; }
.won-box { order: 9; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--p-lemon); border: 1px solid var(--p-lemon-line); }
.won-box[hidden] { display: none; }
.wb-h { flex-basis: 100%; margin: 0; font-weight: 800; color: var(--p-lemon-ink); font-size: 13.5px; }
.won-box select { width: auto; flex: 1 1 200px; min-height: 38px; background-color: #fff; }
.wb-amt { flex: 1 1 140px; }
.wb-amt[hidden] { display: none; }
.wb-tip { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--p-lemon-ink); }
.wb-act { flex-basis: 100%; display: flex; gap: 8px; }
.lp-won { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 7px 12px; border-radius: 12px; background: var(--p-mint); color: var(--p-mint-ink); font-size: 13px; }
.lp-won b { color: var(--navy); }
.lp-won-miss { font-style: italic; }
.lp-won .linkish { margin-left: auto; font-size: 12.5px; color: var(--violet); text-decoration: none; }
.lp-cust { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.lp-cust select { width: auto; min-height: 34px; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 0 28px 0 10px; }
.lp-cust select.cs-active { background-color: var(--p-mint); color: var(--p-mint-ink); border-color: var(--p-mint-line); }
.lp-cust select.cs-inactive { background-color: var(--p-peach); color: var(--p-peach-ink); border-color: var(--p-peach-line); }
.lp-cust input { min-height: 34px; font-size: 13px; }
.lp-cust .btn { min-height: 34px; }
.lp-cust-ro { margin: 0; font-size: 13px; }
@media (max-width: 420px) { .lp-cust { grid-template-columns: 1fr 1fr; } .lp-cust .btn { grid-column: span 2; } }
.call-won { margin: 12px 0 4px; }
/* Reports: Money */
.mny-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.mny { flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.mny > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mny > b { font-size: 22px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.mny > small { font-size: 12.5px; color: var(--muted); }
.mny.in { background: var(--p-mint); border-color: var(--p-mint-line); }
.mny.in > span, .mny.in > small { color: var(--p-mint-ink); }
.mny.out { background: var(--p-peach); border-color: var(--p-peach-line); }
.mny.out > span, .mny.out > small { color: var(--p-peach-ink); }
.mny.net.up { background: var(--p-sky); border-color: var(--p-sky-line); }
.mny.net.up > span, .mny.net.up > small { color: var(--p-sky-ink); }
.mny.net.down { background: var(--p-rose); border-color: var(--p-rose-line); }
.mny.net.down > span, .mny.net.down > small { color: var(--p-rose-ink); }
.mny-op { align-self: center; font-size: 20px; font-weight: 800; color: var(--muted); }
.mny-camps { margin-top: 14px; }
.mny-camps h3 { font-size: 14px; margin: 0 0 6px; }
.mny-camps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mny-camps li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.mny-camps li:last-child { border-bottom: none; }
.mny-camps li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mny-camps li span { color: var(--muted); font-size: 13px; }
.mny-camps li b { font-variant-numeric: tabular-nums; }
.mny-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 4px 4px 14px 4px; background: linear-gradient(180deg, #FFF6CC 0%, #FFF0B3 100%); color: #4A3B12; font-size: 13.5px; }
@media (max-width: 640px) { .mny-op { display: none; } .mny { flex-basis: calc(50% - 4px); } }
/* Campaign results: what it brought in */
.cr-money { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cr-money .mny { flex: 1 1 140px; }
/* Try the demo */
.auth-demo { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--p-lilac); border: 1px solid var(--p-lilac-line); }
.auth-demo > div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--p-lilac-ink); line-height: 1.45; }
.auth-demo b { font-size: 14px; color: var(--navy); }
.auth-demo .btn { flex: 0 0 auto; background: #fff; }
@media (max-width: 480px) { .auth-demo { flex-direction: column; align-items: stretch; } }
.demo-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; padding: 9px 14px; border-radius: 12px; background: var(--p-lilac); border: 1px solid var(--p-lilac-line); color: var(--p-lilac-ink); font-size: 13.5px; }
.demo-bar form { margin-left: auto; }
.demo-bar .linkish { color: var(--violet); text-decoration: none; font-size: 13px; }
.demo-tag { font-weight: 800; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--violet); }
/* M10.10 — Reports: the funnel, day-by-day charts, tables */
.vz-funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vzf-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) minmax(96px, 150px); gap: 14px; align-items: center; }
.vzf-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vzf-name b { font-size: 14px; color: var(--navy); }
.vzf-name small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.vzf-track { display: flex; justify-content: center; }
.vzf-band { display: block; height: 46px; min-width: 18px; clip-path: polygon(0 0, 100% 0, calc(100% - var(--inset)) 100%, var(--inset) 100%); transition: filter .15s; }
a.vzf-band:hover, a.vzf-band:focus-visible { filter: brightness(1.08); }
a.vzf-band:focus-visible { outline: 3px solid var(--violet-bg); outline-offset: 2px; }
.vzf-num { display: flex; flex-direction: column; gap: 1px; }
.vzf-num b { font-size: 20px; font-weight: 800; color: var(--navy); }
.vzf-num small { font-size: 12px; color: var(--muted); }
.vzf-row { align-items: stretch; }
.vzf-name, .vzf-num { justify-content: center; min-height: 46px; }
.vzf-track { align-self: stretch; }
.vzf-band { height: auto; min-height: 46px; }
@media (max-width: 640px) {
  .vzf-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 8px; }
  .vzf-name small { font-size: 11px; }
  .vzf-num b { font-size: 16px; }
  .vzf-num small { font-size: 10.5px; max-width: 64px; }
}

.vz-h { font-size: 17px; margin: 22px 0 10px; color: var(--navy); }
.vz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.vz-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 12px; }
.vz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vz-head h3 { margin: 0; font-size: 14px; color: var(--navy); }
.vz-total { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.vz-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.vz-legend { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2, #3b4256); }
.vz-legend li { display: inline-flex; align-items: center; gap: 5px; }
.vz-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.vz-legend b { color: var(--navy); }
.vz-plot { position: relative; margin-top: 8px; padding-top: 14px; }
.vz-top { position: absolute; top: 0; left: 0; font-size: 11px; color: #898781; font-variant-numeric: tabular-nums; }
.vz-plot::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 1px solid #e1e0d9; }
.vz-cols { display: flex; align-items: stretch; gap: 2px; }
.vz-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; outline: none; border-radius: 6px; cursor: default; }
.vz-col:hover .vz-stack, .vz-col:focus-visible .vz-stack { background: rgba(42, 120, 214, .07); }
.vz-col:focus-visible { box-shadow: 0 0 0 2px var(--violet-bg); }
.vz-stack { position: relative; width: 100%; height: 110px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; border-bottom: 1px solid #c3c2b7; border-radius: 4px 4px 0 0; }
.vz-stack i { display: block; width: 100%; max-width: 24px; flex: none; }
.vz-stack i:last-child { border-radius: 4px 4px 0 0; }
.vz-col small { font-size: 10.5px; color: #898781; height: 13px; line-height: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vz-tip { position: fixed; z-index: 60; pointer-events: none; min-width: 150px; padding: 9px 11px; border-radius: 10px; background: #fff; color: var(--navy); font-size: 12.5px; box-shadow: 0 10px 30px -10px rgba(16, 24, 64, .35), 0 0 0 1px rgba(11, 11, 11, .08); }
.vz-tip b.vt-t { display: block; margin-bottom: 5px; font-size: 12px; color: var(--muted); font-weight: 700; }
.vz-tip .vt-r { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 1px 0; }
.vz-tip .vt-r i { width: 10px; height: 3px; border-radius: 2px; }
.vz-tip .vt-r span { color: var(--muted); }
.vz-tip .vt-r b { font-variant-numeric: tabular-nums; }

.vz-funnel-card { margin-bottom: 4px; }
.vz-table-card { margin-top: 18px; }
.vz-table { font-size: 13px; }
.vz-table th, .vz-table td { padding: 8px 10px; border-top: 1px solid var(--line-2, #eef0f5); white-space: nowrap; }
.vz-table thead th { border-top: none; font-size: 11px; }
.vz-table .vz-groups th { text-align: center; color: var(--navy); font-size: 11px; padding-bottom: 0; }
.vz-table .vz-groups th + th { border-left: 1px solid var(--line-2, #eef0f5); }
.vz-table td.n, .vz-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.vz-table td.zero { color: #b7b9c3; }
.vz-table tbody th, .vz-table tfoot th { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--navy); font-weight: 700; }
.vz-table tfoot td, .vz-table tfoot th { border-top: 2px solid var(--line, #e4e7ef); font-weight: 800; color: var(--navy); }
.cr-table .cr-name { white-space: normal; min-width: 220px; }
.cr-table .cr-name a { font-weight: 800; color: var(--navy); text-decoration: none; }
.cr-table .cr-name a:hover { text-decoration: underline; }
.cr-table .cr-name small { display: block; margin-top: 2px; font-weight: 500; color: var(--muted); font-size: 12px; }
.cr-type { font-weight: 700; }
.cr-type.t-whatsapp { color: #15803d; } .cr-type.t-whatsapp_call { color: var(--violet); } .cr-type.t-call { color: #b45309; }
.cr-bar-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.cr-bar { flex: 1; height: 8px; border-radius: 999px; background: #e9eef8; overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: #2a78d6; border-radius: 999px; }
.cr-note { margin-top: 10px; max-width: 760px; }
.vz-table th:first-child, .vz-table td:first-child { padding-left: 18px; position: sticky; left: 0; background: #fff; z-index: 1; }
.vz-table th:last-child, .vz-table td:last-child { padding-right: 18px; }
.vz-plot { margin-top: auto; }
.vz-legend + .vz-plot, .vz-sub + .vz-plot { margin-top: auto; }
@media (min-width: 1100px) {
  .vz-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vz-grid > .vz-card { grid-column: span 2; }
  .vz-grid > .vz-card:nth-child(-n+2) { grid-column: span 3; }
}
.vz-table thead th { text-transform: none; letter-spacing: 0; font-size: 12px; }
.vz-table .vz-groups th { font-size: 12px; }
.cr-table th, .cr-table td { padding-left: 8px; padding-right: 8px; }
.cr-table .cr-name { min-width: 190px; max-width: 260px; }
.cr-bar-cell { min-width: 104px; }
.pick-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pick-contacts[hidden], .pick-one[hidden] { display: none; }
.vcf-help summary { cursor: pointer; font-weight: 700; color: var(--violet); font-size: 13.5px; }
.vcf-help ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2, #3b4256); max-width: 760px; }
.pick-one { margin-top: 6px; font-size: 13px; color: var(--violet); text-decoration: none; align-self: flex-start; }
/* M10.11 — LeadOrbit as an app on the phone */
.install-card { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px -18px rgba(13, 31, 78, .45); }
.install-card[hidden] { display: none; }
.install-card .ic-icon img { display: block; border-radius: 10px; }
.install-card .ic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-card .ic-text b { color: var(--navy); font-size: 14px; }
.install-card .ic-text small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.install-card .ic-x { border: 0; background: none; color: var(--muted); font-size: 15px; padding: 6px; cursor: pointer; }
/* Opened from the home screen: room for the phone's status bar */
html.app .side { padding-top: max(14px, env(safe-area-inset-top)); }
/* M10.12 — provider keys, saved encrypted */
.field[hidden] { display: none; }
.nc-key { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.nk-head { display: flex; gap: 10px; align-items: flex-start; }
.nk-lock { width: 30px; height: 30px; border-radius: 9px; background: var(--p-lilac); color: var(--p-lilac-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nk-head b { display: block; color: var(--navy); font-size: 14px; }
.nk-head small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.nk-head code { font-size: 12px; }
.nk-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.nk-row.end { justify-content: flex-end; }
.nk-row > .btn { flex: none; width: auto; min-width: 0; }
.nk-row .nk-field { flex: 1 1 260px; margin: 0; }
.nk-row > span.small { flex: 1 1 260px; color: var(--muted); }

/* M10.13: numbers — portfolio note, provider steps */
.pf-note { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.55; }
.pf-note > b { font-size: 14px; color: var(--navy); }
.pf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.pf-list li b { color: var(--navy); }
.pf-list li span { font-size: 12.5px; color: var(--muted); }
.chk.warn { margin-top: 12px; }
.chk.warn > i { background: #F5B33D; color: #fff; }
.reg-form { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.step-out:empty { display: none; }
.slot-name { display: block; font-size: 11px; color: var(--muted); font-family: var(--mono, ui-monospace, monospace); }

/* M10.13: sign-in story, forgot password, keep me signed in */
.auth-logo { display: inline-flex; align-items: center; gap: 10px; }
.auth-logo strong { font-size: 26px; }
.auth-punch { font-size: 28px; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; color: #fff !important; margin: 6px 0 0; text-wrap: balance; }
.auth-sub { font-size: 14.5px; line-height: 1.5; color: #C9D2EC; margin: 0; }
.auth-box:has(.auth-steps) { max-width: 440px; }
.auth-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.auth-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.auth-steps li i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.auth-steps .s1 { background: rgba(61, 213, 152, .14); color: #9FF0CD; } .auth-steps .s1 i { background: #3DD598; color: var(--navy); }
.auth-steps .s2 { background: rgba(255, 196, 92, .14); color: #FFDCA0; } .auth-steps .s2 i { background: #FFC45C; color: var(--navy); }
.auth-steps .s3 { background: rgba(167, 154, 255, .18); color: #D5CFFF; } .auth-steps .s3 i { background: #A79AFF; color: var(--navy); }
.auth-pw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.auth-pw-head label { font: inherit; }
.auth-forgot { font-size: 13px; font-weight: 700; color: var(--violet, #5B47E0); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.auth-remember { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--navy); cursor: pointer; }
.auth-remember input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet, #5B47E0); }
.auth-remember small { display: block; font-size: 12px; color: var(--muted); }
.auth-info { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--p-yellow, #FFF4D2); color: var(--navy); font-size: 14px; line-height: 1.5; }
.auth-info.ok { background: var(--p-mint, #DDF7EC); }
.auth-back { text-align: center; font-size: 14px; margin: 4px 0 0; }
.auth-back a { color: var(--violet, #5B47E0); font-weight: 700; }

/* M10.13: Help — how it works, getting the API, contact support, Softdew's support inbox */
.role-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .01em; background: var(--p-lilac, #EFECFF); color: var(--p-lilac-ink, #3F2FB4); border: 1px solid var(--p-lilac-line, #D9D2FF); vertical-align: 1px; }
.role-badge.manager { background: #E8F5FE; color: #0B5C8E; border-color: #BFE3FB; }
.role-badge.caller { background: var(--p-mint, #E5F7EF); color: var(--p-mint-ink, #0B6E4C); border-color: var(--p-mint-line, #BFE9D6); }
.me-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.help-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.help-hero h1 { font-size: 28px; letter-spacing: -0.02em; }
.help-hero p { margin-top: 6px; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.55; }
.help-phases { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.help-phases li { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; font-size: 12px; color: var(--muted); }
.help-phases b { font-size: 13.5px; color: var(--navy); }
.help-phases .ph-setup, .j-step.setup .j-num { background: #EFECFF; }
.help-phases .ph-reach, .j-step.reach .j-num { background: #E2F7EC; }
.help-phases .ph-learn, .j-step.learn .j-num { background: #E3F2FD; }

.journey { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.j-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 16px; }
.j-step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, #D6D2F0 0 6px, transparent 6px 11px); }
.j-num { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.j-step.setup .j-num { color: #3F2FB4; } .j-step.reach .j-num { color: #0B6E4C; } .j-step.learn .j-num { color: #0B5C8E; }
.j-body { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.j-body h2 { font-size: 16px; color: var(--navy); }
.j-body p { font-size: 14px; line-height: 1.55; color: #3B4166; }
.j-go { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--violet); text-decoration: none; padding: 4px 10px; margin-left: -10px; border-radius: 8px; }
.j-go:hover { background: var(--violet-bg); }
.j-go::after { content: " ›"; }
.j-who { font-size: 12.5px; color: var(--muted); }
.help-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 10px; align-items: start; }
.help-callers { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.help-callers b { font-size: 15px; color: var(--navy); }
.help-callers ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.help-words dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.help-words dt { font-weight: 800; color: var(--navy); }
.help-words dd { margin: 0; color: #3B4166; line-height: 1.5; }
.help-more { margin-top: 18px; font-size: 14px; color: var(--muted); }
.help-more a { color: var(--violet); font-weight: 700; }

.api-before { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; margin-top: 18px; }
.api-before > b { font-size: 15px; color: var(--navy); }
.api-before ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.api-h { margin-top: 26px; font-size: 18px; }
.api-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.api-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: #3B4166; font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line); background: var(--card); transition: transform .12s ease, box-shadow .12s ease; }
.api-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(27, 31, 75, .5); }
.api-card b { font-size: 16px; color: var(--navy); }
.api-card em { font-style: normal; font-weight: 700; font-size: 12.5px; margin-top: auto; padding-top: 6px; }
.api-card.meta { border-top: 4px solid #2EA8F5; } .api-card.meta em { color: #0B5C8E; }
.api-card.gupshup { border-top: 4px solid #3DD598; } .api-card.gupshup em { color: #0B6E4C; }
.api-card.twilio { border-top: 4px solid #F2545B; } .api-card.twilio em { color: #A12A30; }
.api-card.d360 { border-top: 4px solid #A79AFF; } .api-card.d360 em { color: #3F2FB4; }
.api-sec { margin-top: 18px; scroll-margin-top: 16px; }
.api-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.api-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; font-size: 14px; line-height: 1.55; color: #3B4166; }
.api-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: var(--violet-bg); color: var(--violet-ink, #3F2FB4); }
.api-steps b { color: var(--navy); }
.api-coming { margin-top: 18px; }
.api-coming a { font-weight: 700; color: inherit; }

.sup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 16px; align-items: start; }
@media (max-width: 900px) { .sup-grid { grid-template-columns: minmax(0, 1fr); } }
.sup-form textarea { min-height: 130px; }
.sup-who { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sup-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sup-contact > b { font-size: 15px; color: var(--navy); }
.sc-row { display: flex; align-items: center; gap: 8px; }
.sc-row i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.sc-row a { color: var(--navy); font-weight: 700; word-break: break-all; }
.sc-hours, .sc-tip { font-size: 12.5px; color: #6B5A1E; line-height: 1.5; }
.sc-tip a { color: inherit; font-weight: 700; }
.sup-h { margin-top: 26px; font-size: 18px; }
.sup-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sup-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sup-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.sup-item summary::-webkit-details-marker { display: none; }
.sup-item summary b { color: var(--navy); font-size: 15px; }
.sup-item summary small { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.sup-st { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sup-st.open { background: #FFF1D6; color: #8A5300; }
.sup-st.answered { background: var(--p-mint, #E5F7EF); color: var(--p-mint-ink, #0B6E4C); }
.sup-st.closed { background: #ECEEF5; color: var(--muted); }
.sup-thread { display: flex; flex-direction: column; gap: 10px; padding: 4px 18px 16px; }
.sup-msg { max-width: 640px; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.sup-msg p { white-space: pre-wrap; margin: 4px 0 0; color: #2A2F55; }
.sup-msg.customer { background: #F4F3FB; border-top-left-radius: 4px; }
.sup-msg.support { background: var(--violet-bg); align-self: flex-end; border-top-right-radius: 4px; }
.sm-who { font-size: 12px; font-weight: 700; color: var(--muted); }
.sup-more { display: flex; gap: 8px; align-items: flex-end; }
.sup-more .field { flex: 1; margin: 0; }
.sup-more textarea { min-height: 44px; }
.sup-tabs { margin-top: 16px; display: inline-flex; }
.sup-tabs .n { margin-left: 6px; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: rgba(27, 31, 75, .08); }
.sup-table { width: 100%; }
.sup-table td small { display: block; color: var(--muted); font-size: 12px; }
.sup-table td a { color: var(--navy); text-decoration: none; }
.sup-table td a:hover b { text-decoration: underline; }
.sup-answer { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.back-link { font-size: 13px; margin-bottom: 6px; }
.back-link a { color: var(--violet); font-weight: 700; text-decoration: none; }
.back-link a::before { content: "‹ "; }
.card.flush { padding: 0; overflow: hidden; }

/* M10.14: campaign audience — who is it for */
.aud-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.aw-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.aw-card input { position: absolute; opacity: 0; pointer-events: none; }
.aw-card b { font-size: 15px; color: var(--navy); }
.aw-card small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.aw-card .aw-n { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--navy); background: #F1F3F9; border-radius: 999px; padding: 2px 9px; align-self: flex-start; }
.aw-card::after { content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #C5CAD9; background: #fff; }
.aw-card:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-bg); }
.aw-card:has(input:checked)::after { border: 5px solid var(--violet); }
.aw-card:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.aw-card.new:has(input:checked) .aw-n { background: var(--p-sky, #E3F2FD); }
.aw-card.cust:has(input:checked) .aw-n { background: var(--p-mint, #E5F7EF); }
.aw-card.back:has(input:checked) .aw-n { background: #FFF1D6; }
.aw-hint { margin-top: 8px; }
.aud-more-h { margin-top: 22px; font-size: 15px; color: var(--navy); }

/* M10.14: Calls tabs, status label, the sleeping cat */
.calls-head { align-items: center; }
.my-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px 6px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ms-label { font-size: 12px; font-weight: 800; color: var(--muted); }
.calls-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; padding: 5px; border-radius: 16px; background: #E9EBF4; align-self: flex-start; width: fit-content; max-width: 100%; }
.calls-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.calls-tabs a small { font-size: 11.5px; font-weight: 600; color: #8A90AE; }
.calls-tabs a:hover { color: var(--navy); background: rgba(255, 255, 255, .55); }
.calls-tabs a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(13, 31, 78, .12); }
.calls-tabs a[aria-current="page"] svg { color: var(--violet); }
.ct-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .calls-tabs a small { display: none; } .calls-tabs a { padding: 0 12px; } }

.cat-empty { display: flex; align-items: center; gap: 18px; padding: 6px 0 2px; }
.cat-empty > div { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cat-empty b { color: var(--navy); font-size: 15px; }
.sleepy-cat { flex: none; overflow: visible; }
@media (max-width: 520px) { .cat-empty { flex-direction: column; text-align: center; } }
.cat-breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: cat-breathe 3.6s ease-in-out infinite; }
.cat-tail { transform-box: fill-box; transform-origin: 100% 0%; animation: cat-tail 4.8s ease-in-out infinite; }
.cat-z { opacity: 0; animation: cat-z 3.6s ease-out infinite; }
.cat-z.z2 { animation-delay: 1.2s; } .cat-z.z3 { animation-delay: 2.4s; }
.camp-empty .sleepy-cat { margin-bottom: -4px; }
.camp-quiet { padding: 12px 20px; margin-bottom: 16px; background: linear-gradient(100deg, #FBFAFF, #F4F1FF); border-color: #E4DEFF; }
.camp-quiet .sleepy-cat { width: 120px; height: 80px; }
.camp-quiet > div { flex: 1 1 auto; }
.camp-quiet .btn { flex: none; }
@media (max-width: 520px) { .camp-quiet .btn { width: 100%; } }
@keyframes cat-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.04); } }
@keyframes cat-tail { 0%, 70%, 100% { transform: rotate(0deg); } 80% { transform: rotate(-7deg); } 90% { transform: rotate(3deg); } }
@keyframes cat-z { 0% { opacity: 0; transform: translate(0, 6px); } 25% { opacity: 1; } 80% { opacity: 0; transform: translate(6px, -8px); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cat-breathe, .cat-tail { animation: none; }
  .cat-z { animation: none; opacity: .85; }
}

/* M10.14: Demos schedule */
.demo-strip { margin-top: 16px; }
.demo-strip .ss.rose b { color: #B42318; } .demo-strip .ss.mint b { color: #0B6E4C; }
@media (max-width: 700px) { .demo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-strip .ss:nth-child(3) { border-left: 0; } }
.demo-days { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.demo-day.late { border-color: #F6C9C4; background: linear-gradient(180deg, #FFF5F4, #fff 60px); }
.demo-day.today { border-color: #BFE9D6; background: linear-gradient(180deg, #F2FBF7, #fff 60px); }
.demo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.demo-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 170px 120px 64px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.demo-list .chip { justify-self: start; }
.demo-list time b { display: block; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.demo-list time small { font-size: 11px; color: var(--muted); }
.dl-main { display: flex; flex-direction: column; min-width: 0; }
.dl-main b a { color: var(--navy); text-decoration: none; } .dl-main b a:hover { text-decoration: underline; }
.dl-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 700px) {
  .demo-list li { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .demo-list .dl-who { grid-column: 2; } .demo-list .btn { grid-column: 3; grid-row: 1; }
}
.demo-empty { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.demo-empty > div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 62ch; }
.demo-empty b { color: var(--navy); font-size: 16px; }

/* Overview: demos card */
.ov-tasks .od-next { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #F2FBF7, #EAF6FF); }
.ov-tasks .od-next time { font-size: 22px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.ov-tasks .od-next .od-tx { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; font-size: 13px; color: var(--muted); }
.ov-tasks .od-next b { color: var(--navy); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-tasks .od-next .chip { margin-left: auto; flex: none; }
.ov-tasks .od-next .tk-ic { flex: none; text-decoration: none; }
.od-counts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.od-counts b { color: var(--navy); }
.od-counts .late b { color: #B42318; }
.od-cap { font-size: 12px; font-weight: 800; color: var(--muted); }
.od-after { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.od-after li { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--line-2, #EEF0F6); font-size: 13.5px; }
.od-after time { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.od-after b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-after small { color: var(--muted); }

/* M10.14: sign-in, split in two — the story on the left, the form on the right */
.auth.auth-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: stretch; justify-content: stretch; padding: 0; min-height: 100vh; background: #F4F3FB; }
.auth.auth-split .auth-side { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, #22397F 0%, var(--navy) 52%, #0A1840 100%); color: #fff; display: flex; align-items: center; justify-content: center; padding: 32px clamp(28px, 5vw, 72px); }
.auth.auth-split .auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 71, 224, .45), transparent 65%); pointer-events: none; }
.auth.auth-split .auth-brand { position: relative; z-index: 1; max-width: 500px; width: 100%; gap: 14px; }
.auth.auth-split .auth-logo strong { font-size: 24px; }
.auth.auth-split .auth-punch { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 14px 0 0; }
.auth.auth-split .auth-sub { font-size: 15.5px; max-width: 44ch; }
.auth-foot { margin: 6px 0 0; font-size: 13px; color: #8E9AC4; }
.auth.auth-split .auth-main { display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth.auth-split .auth-box { max-width: 420px; gap: 12px; }
.auth.auth-split .auth-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(13, 31, 78, .35); padding: 24px 26px 20px; gap: 14px; }
.auth.auth-split .auth-card .btn { min-height: 46px; }
.auth.auth-split .auth-note { margin-top: 0; padding-top: 10px; font-size: 11.5px; line-height: 1.45; }
.auth.auth-split .auth-demo { margin-top: 0; padding: 10px 12px 10px 16px; gap: 12px; }
.auth.auth-split .auth-demo > div { gap: 1px; font-size: 12.5px; line-height: 1.35; }
.auth.auth-split .auth-demo b { font-size: 13.5px; }
.auth-hello h1 { margin-bottom: 2px; }
.auth-hello p { font-size: 14px; color: var(--muted); margin: 0; }

/* the story: a message, the tap, the call, the win */
.story { position: relative; margin-top: 10px; height: 290px; }
.story-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.story-orbit .sun { animation: sun-pulse 5s ease-in-out infinite; transform-origin: 300px 150px; }
.story-orbit .comet { animation: comet 12s linear infinite; filter: drop-shadow(0 0 4px rgba(61, 213, 152, .9)); }
@keyframes sun-pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes comet { to { stroke-dashoffset: -1000; } }
/* the stars behind the whole left side */
.auth-stars { position: absolute; inset: 0; pointer-events: none; }
.auth-stars circle { fill: #fff; opacity: .55; }
.auth-stars .tw { animation: twinkle 3.6s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }
.auth-stars .tw2 { animation-delay: 1.2s; animation-duration: 4.4s; }
.auth-stars .tw3 { animation-delay: 2.3s; animation-duration: 3s; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }
.auth-stars .tw { transform-box: fill-box; transform-origin: center; }
.st-card { position: absolute; border-radius: 16px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55); opacity: 0; animation: st-in .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.st-wa { left: 0; top: 0; width: min(238px, 50%); background: #fff; color: #1B1F4B; padding: 10px 12px 8px; border-top-left-radius: 4px; animation-delay: .2s; z-index: 1; }
.st-wa p { font-size: 13px; line-height: 1.4; margin: 5px 0 8px; color: #2A2F55; }
.st-from { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #0B6E4C; }
.st-wa-ic { width: 20px; height: 20px; border-radius: 50%; background: #3DD598; color: #0D1F4E; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.st-btns { display: flex; flex-direction: column; border-top: 1px solid #EEF0F6; margin: 0 -12px -8px; }
.st-btns span { padding: 6px 0; text-align: center; font-size: 12.5px; font-weight: 700; color: #2EA8F5; border-bottom: 1px solid #EEF0F6; }
.st-btns span:last-child { border-bottom: 0; }
.st-btns .tap { position: relative; animation: st-tap .9s ease 1.3s 1 both; }
.st-btns .tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(46, 168, 245, .35); opacity: 0; animation: st-ripple .9s ease-out 1.3s 1; }
.st-call { right: 0; top: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #E2F7EC; color: #0D1F4E; animation-delay: 2s; }
.st-call i, .st-next i { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; flex: none; }
.st-call i { background: #3DD598; color: #0D1F4E; box-shadow: 0 0 0 0 rgba(61, 213, 152, .6); animation: st-ring 1.6s ease-out 2.6s 3; }
.st-call span, .st-next span { display: flex; flex-direction: column; }
.st-call b, .st-next b { font-size: 14px; }
.st-call small { font-size: 12px; color: #2C6B54; }
.st-next { right: 8%; top: 222px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #EFEBFF; color: #0D1F4E; animation-delay: 3.4s; }
.st-next i { background: var(--violet); color: #fff; }
.st-next small { font-size: 12px; color: #4936C2; }
@keyframes st-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes st-tap { 0%, 100% { background: transparent; } 40% { background: #E3F2FD; } }
@keyframes st-ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(14); } }
@keyframes st-ring { 0% { box-shadow: 0 0 0 0 rgba(61, 213, 152, .6); } 100% { box-shadow: 0 0 0 14px rgba(61, 213, 152, 0); } }
@media (prefers-reduced-motion: reduce) {
  .st-card { animation: none; opacity: 1; }
  .st-btns .tap { animation: none; background: #E3F2FD; }
  .st-btns .tap::after, .orbit-dot, .story-orbit .comet { display: none; }
  .story-orbit .sun, .auth-stars .tw { animation: none; }
  .st-call i { animation: none; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .auth.auth-split .auth-punch { font-size: clamp(28px, 2.9vw, 38px); margin-top: 10px; }
  .auth.auth-split .auth-sub { font-size: 14.5px; }
  .story { height: 248px; }
  .st-call { top: 14px; }
  .st-next { top: 188px; }
  .auth.auth-split .auth-card { padding: 20px 24px 16px; gap: 12px; }
  .auth.auth-split .auth-card h1 { font-size: 22px; }
}
@media (max-width: 900px) {
  .auth.auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth.auth-split .auth-side { padding: 28px 20px 22px; }
  .auth.auth-split .auth-punch { font-size: 26px; margin-top: 10px; }
  .auth.auth-split .auth-sub { font-size: 14px; }
  .story, .auth-foot { display: none; }
  .auth.auth-split .auth-main { padding: 20px 16px 32px; align-items: flex-start; }
}

/* ---- M10.15: tasks (a demo, a call back, a quotation, a brochure…) ---- */
.ti.rose { background: var(--p-rose); color: var(--p-rose-ink); }
.ti.ink { background: #EEF0F6; color: #4A5170; }
.tt-lilac { --tt-bg: var(--p-lilac); --tt-ink: var(--p-lilac-ink); --tt-line: var(--p-lilac-line); }
.tt-sky { --tt-bg: var(--p-sky); --tt-ink: var(--p-sky-ink); --tt-line: var(--p-sky-line); }
.tt-rose { --tt-bg: var(--p-rose); --tt-ink: var(--p-rose-ink); --tt-line: var(--p-rose-line); }
.tt-lemon { --tt-bg: var(--p-lemon); --tt-ink: var(--p-lemon-ink); --tt-line: var(--p-lemon-line); }
.tt-mint { --tt-bg: var(--p-mint); --tt-ink: var(--p-mint-ink); --tt-line: var(--p-mint-line); }
.tt-peach { --tt-bg: var(--p-peach); --tt-ink: var(--p-peach-ink); --tt-line: var(--p-peach-line); }
.tt-ink { --tt-bg: #F1F2F7; --tt-ink: #3E4566; --tt-line: #DCDFEA; }

.task-box { display: flex; flex-direction: column; gap: 10px; }
.tk-flash { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--p-mint); color: var(--p-mint-ink); font-size: 13px; font-weight: 700; }
.tk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--paper); }
.tk-item.late { background: #FFF3F2; }
.tk-ic.ti { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tk-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.tk-main b { font-size: 13.5px; color: var(--navy); }
.tk-main small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item .chip, .tk-item .btn { flex: none; }
.tk-item .btn svg, .tk-acts .btn svg { margin-right: 2px; }
.tk-none { margin: 0; }
.tk-add > summary { list-style: none; width: fit-content; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tk-add > summary::-webkit-details-marker { display: none; }
.tk-add[open] > summary { display: none; }
.tk-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: #FBFAFF; border: 1px solid #E4DEFF; }
.tk-types { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tk-types legend { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 8px; padding: 0; }
.tt { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--tt-line, var(--field)); background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; position: relative; }
.tt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tt .tt-ic { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--tt-bg); color: var(--tt-ink); }
.tt:hover { background: var(--tt-bg); }
.tt:has(input:checked) { background: var(--tt-bg); border-color: var(--tt-ink); color: var(--tt-ink); box-shadow: 0 0 0 2px var(--tt-line); }
.tt:has(input:checked) .tt-ic { background: var(--tt-ink); color: #fff; }
.tt:has(input:focus-visible), .tt:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.tt-call { border-style: dashed; }
.tk-note { margin: -4px 0 0; color: var(--muted); }
.tk-note b { color: var(--navy); }
.tk-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.tk-row > .field { flex: 1 1 200px; min-width: 0; }
.tk-when { flex: 2 1 260px !important; }
.tk-when .hint.need { color: var(--violet); font-weight: 700; }
.tk-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tk-quick .chip-btn { min-height: 28px; font-size: 12px; padding: 0 10px; }
.tk-actions { display: flex; gap: 8px; }
.ld-tasks .assign-one { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.call-tasks .card-head { align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.call-tasks .tk-form { padding: 12px; }
.call-tasks .tk-row > .field { flex-basis: 100%; }

/* the chat's Task dialog */
.task-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 60px -20px rgba(13, 31, 78, .45); }
.task-dialog::backdrop { background: rgba(13, 31, 78, .35); }
.td-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.td-head h3 { margin: 0; font-size: 17px; }
.td-body { padding: 8px 18px 18px; overflow: auto; }

/* the Tasks page */
.tk-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tk-filter a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--tt-line, var(--field)); background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.tk-filter a:first-child { padding-left: 14px; }
.tk-filter a > span:last-child { font-weight: 600; color: var(--muted); }
.tk-filter .tt-ic { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--tt-bg); color: var(--tt-ink); }
.tk-filter a[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.tk-filter a[aria-current="page"] > span:last-child { color: #DCD6FF; }
.tk-rows li { grid-template-columns: 70px minmax(0, 1fr) 150px 110px auto; }
.tk-rows li.hl { box-shadow: 0 0 0 2px var(--violet) inset; }
.tk-type { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-bottom: 2px; padding: 1px 8px 1px 2px; border-radius: 999px; background: var(--tt-bg); color: var(--tt-ink); font-size: 11.5px; font-weight: 800; }
.tk-type .tt-ic { width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.tk-acts { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.tk-gone { display: flex !important; align-items: center; gap: 8px; color: var(--p-mint-ink); background: var(--p-mint) !important; font-size: 13px; font-weight: 700; }
.tk-empty { margin-top: 16px; }
@media (max-width: 700px) {
  .tk-rows li { grid-template-columns: 56px minmax(0, 1fr); row-gap: 8px; }
  .tk-rows li > time { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .tk-rows .dl-main { grid-column: 2; grid-row: 1; }
  .tk-rows .dl-who { grid-column: 2; grid-row: 2; }
  .tk-rows li > .chip, .tk-rows li > span:empty { display: none; }
  .tk-rows .tk-acts { grid-column: 1 / span 2; grid-row: 3; justify-self: stretch; justify-content: flex-end; flex-wrap: wrap;
    padding-top: 8px; border-top: 1px dashed var(--line); }
  .tk-bar .tk-show { margin-left: 0; }
}
.ov-tasks .od-next .tk-ic { width: 34px; height: 34px; }

/* ---- M10.16: the lead panel, decluttered ---- */
.lead-drawer .drawer-body { padding-top: 14px; }
.lead-drawer .ld-hero { align-items: flex-start; padding: 0; gap: 12px; }
.lead-drawer .ld-who { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.ld-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ld-name h2 { margin: 0; }
.ld-edit { flex: none; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--p-lilac-ink); background: var(--p-lilac); }
.ld-edit:hover { background: var(--violet); color: #fff; }
.lead-drawer .ld-who p { margin-top: 0; }
.ld-top { flex: none; display: flex; align-items: center; gap: 4px; margin: -2px -4px 0 0; }
.ld-top .drawer-back { margin-right: 4px; }
.ld-nameform { display: flex; gap: 6px; max-width: 340px; margin-top: 2px; }
.ld-nameform input { flex: 1; min-width: 0; min-height: 36px; font-size: 14px; border-color: var(--p-peach-line); background: #FFFBF7; }
.ld-nameform input::placeholder { color: var(--p-peach-ink); opacity: .8; }
.ld-nameform .btn { min-height: 36px; }
.ld-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 2px !important; }
.ld-inbound { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--p-mint); color: var(--p-mint-ink); border: 1px solid var(--p-mint-line); font-size: 12px; font-weight: 800; }
.lp-top .lp-owner { margin-left: auto; }
.lp-top b + .lp-remove { margin-left: auto; }
.lp-remove { margin: 0; }
.lp-remove .linkish { font-size: 12px; color: var(--muted); font-weight: 700; }
.lp-remove .linkish:hover { color: #B42318; }
.lp-cust:not(.is-cust) { display: flex; }
.lp-cust input[hidden] { display: none; }

/* the chat's emoji picker */
.cmp-field { position: relative; flex: 1; display: flex; min-width: 0; }
.cmp-field textarea { flex: 1; padding-right: 46px; }
.emo-btn { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; filter: grayscale(.2); }
.emo-btn:hover, .emo-btn[aria-expanded="true"] { background: var(--p-lilac); filter: none; }
.emo-pop { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; display: grid; grid-template-columns: repeat(8, 38px); gap: 2px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(13, 31, 78, .35); }
.emo-pop[hidden] { display: none; }
.emo-pop button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; font-size: 21px; line-height: 1; cursor: pointer; }
.emo-pop button:hover, .emo-pop button:focus-visible { background: var(--p-lilac); outline: none; }
@media (max-width: 420px) { .emo-pop { grid-template-columns: repeat(6, 38px); } }

/* the call screen: who called whom */
.dir-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: #EEF0F7; gap: 2px; }
.dir-toggle a { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.dir-toggle a[aria-current="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13, 31, 78, .12); }
.dir-toggle a.in[aria-current="true"] { color: var(--p-mint-ink); }
.ld-top .drawer-back { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 10px; font-size: 16px; }
.ld-top .drawer-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- M10.17: lead panel labels, customer status by the actions ---- */
.drawer details > summary.btn { color: #fff; }
.drawer details > summary.btn.ghost { color: var(--navy); }
.ld-phone { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.ld-actions { align-items: center; }
.ld-cust { margin-left: auto; }
.cust-pick { margin: 0; display: inline-flex; }
.cust-pick select { width: auto; min-height: 36px; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 0 30px 0 12px; }
.cust-pick select.cs-active { background-color: var(--p-mint); color: var(--p-mint-ink); border-color: var(--p-mint-line); }
.cust-pick select.cs-inactive { background-color: var(--p-peach); color: var(--p-peach-ink); border-color: var(--p-peach-line); }
.lp-top { flex-wrap: wrap; row-gap: 6px; }
.lp-top b + .lp-cust-pick { margin-left: auto; }
.lp-cust-pick .cust-pick select { min-height: 30px; font-size: 12.5px; }
.lp-row { align-items: flex-start; gap: 10px 14px; }
.lp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-lab { font-size: 12px; font-weight: 700; color: var(--muted); }
.lp-lab .hint { font-weight: 500; }
.lp-ref { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.lp-ref-in { display: flex; gap: 6px; }
.lp-ref-in input { flex: 1; min-width: 0; min-height: 34px; font-size: 13px; }
.lp-ref-in .btn { min-height: 34px; }
.ld-addprod { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ld-addprod .ap-row { display: flex; gap: 6px; align-items: center; }
.ld-addprod .ap-row select { flex: 0 1 220px; }
.ld-addprod .btn { min-height: 34px; }
/* the lead form: phone numbers and customer status */
.phone-list, .cust-list { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 14px; margin: 0; gap: 10px; }
.phone-list legend, .cust-list legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--navy); }
.pl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-row .phone-in { flex: 1 1 360px; max-width: 520px; }
.pl-row.locked input[readonly] { background: #F6F7FB; color: var(--muted); }
.pl-main { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; }
.pl-lock { font-size: 12px; color: var(--muted); }
.pl-new { padding-top: 10px; border-top: 1px dashed var(--line); }
.cl-row { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 220px) minmax(0, 260px); gap: 10px; align-items: center; }
.cl-row b { color: var(--navy); font-size: 14px; }
.cl-row input[hidden] { display: none; }
@media (max-width: 600px) { .cl-row { grid-template-columns: 1fr 1fr; } .cl-row b { grid-column: span 2; } }

/* ---- M10.18 ---- */
.ld-addr { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--ink); }
.ld-addr svg { flex: none; margin-top: 2px; color: var(--muted); }
.ld-age { padding: 1px 8px; border-radius: 999px; background: var(--p-sky); color: var(--p-sky-ink); font-size: 12px; font-weight: 700; }
/* audio that plays in place (voice notes, recordings) */
.vn.vn-box { min-width: 0; width: 100%; padding: 6px 8px; gap: 8px; border-radius: 12px; background: var(--paper); }
.vn-box .vn-play { width: 32px; height: 32px; }
.vn-stop { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vn-stop:hover { background: var(--p-lilac); color: var(--p-lilac-ink); border-color: var(--p-lilac-line); }
.vn-box .vn-track { height: 24px; min-width: 60px; }
.files li.f-audio { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.f-audio .f-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.f-audio .f-name b { font-size: 13.5px; color: var(--navy); overflow-wrap: anywhere; }
.f-audio .f-name small { font-size: 11.5px; color: var(--muted); }
.vn-note { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.vn-note small { color: var(--muted); font-size: 11.5px; }
/* the Tasks page: title row with whose tasks, Open / Done */
.tasks-head { flex-direction: column; align-items: stretch; }
.tasks-head .th-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tasks-head .th-person { margin: 0; }
.tasks-head .th-person select { width: auto; min-width: 190px; }
.tk-show { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #E9EBF4; margin-top: 4px; }
.tk-show a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.tk-show a span { font-weight: 600; }
.tk-show a small { font-size: 11.5px; font-weight: 600; color: #8A90AE; }
.tk-show a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(13, 31, 78, .12); }
.tk-done-rows li { opacity: .92; }
.doc-tools .doc-product { width: auto; min-height: 42px; font-weight: 700; }
/* a button that's working: a spinner, and a note under it */
.btn[aria-busy="true"] { opacity: .85; cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; flex: none; }
.btn.ghost[aria-busy="true"]::before { border-color: #D6D0FA; border-top-color: var(--violet); }
.busy-note { display: none; color: var(--violet-ink, #4936C2); font-weight: 700; }
form[data-sent] .busy-note { display: block; }
/* "+ Add a task" sits on the "Tasks and calls" title row */
.ld-tasks { position: relative; }
.ld-tasks .tk-add > summary { position: absolute; top: 8px; right: 12px; min-height: 34px; }
.ld-tasks .tk-none { margin-top: -2px; }
/* spam */
.ld-spam { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--p-rose); color: var(--p-rose-ink); border: 1px solid var(--p-rose-line); font-size: 13px; }
.ld-spam > span { flex: 1 1 240px; }
.ld-spam form { margin: 0; }
.ld-spam-mark { margin: 0; }
.ld-spam-mark .linkish { font-size: 13px; color: var(--muted); font-weight: 700; }
.ld-spam-mark .linkish:hover { color: #B42318; }
.tk-show { align-self: flex-start; width: fit-content; }

/* ---- M10.19: task rows: badges, meeting links, one bar for filters and Open / Done ---- */
.tk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; }
.tk-bar .tk-filter { margin-top: 0; }
.tk-bar .tk-show { margin: 0 0 0 auto; }
.tk-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 1px; }
.bdg { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: #EEF0F7; color: #3E4566; font-size: 11.5px; font-weight: 700; }
.bdg.by { background: var(--p-peach); color: var(--p-peach-ink); }
.tk-meet { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.meet-join { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--p-mint); color: var(--p-mint-ink); font-size: 12.5px; font-weight: 800; text-decoration: none; border: 1px solid var(--p-mint-line); }
.meet-join:hover { background: #D2F2E3; }
.meet-copy { width: 28px; height: 28px; }
.meet-send { font-size: 12.5px; font-weight: 700; color: var(--violet); }
.tk-link-edit { margin-top: 4px; }
.tk-link-edit summary { font-size: 12.5px; font-weight: 700; color: var(--violet); cursor: pointer; list-style: none; width: fit-content; }
.tk-link-edit summary::-webkit-details-marker { display: none; }
.tk-link-edit form { display: flex; gap: 6px; margin-top: 6px; max-width: 460px; }
.tk-link-edit input { flex: 1; min-width: 0; min-height: 34px; font-size: 13px; }
.tk-link-edit .btn { min-height: 34px; }
.tk-gone.warn { color: #B42318 !important; background: var(--p-rose) !important; }
.tk-acts .iconbtn { width: 34px; height: 34px; }
.tk-rows .dl-main small { white-space: normal; }
/* the menu's dividing lines */
.nav-sep { display: block; height: 1px; margin: 8px 12px; background: rgba(255, 255, 255, .12); }
/* the reminder across the top */
.task-ribbon { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(100deg, #FFF7D6, #FFF0E5); border: 1px solid var(--p-lemon-line); color: var(--navy); box-shadow: 0 10px 24px -18px rgba(13, 31, 78, .35); }
.task-ribbon[hidden] { display: none; }
.task-ribbon.late { background: linear-gradient(100deg, #FFECEF, #FFF3F2); border-color: var(--p-rose-line); }
.task-ribbon .tr-ic { font-size: 20px; }
.task-ribbon .tr-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.task-ribbon .tr-text b { font-size: 14px; }
.task-ribbon .tr-text small { font-size: 12.5px; color: var(--muted); }
.task-ribbon.late .tr-text small { color: #B42318; font-weight: 700; }
.task-ribbon > .btn, .task-ribbon > .iconbtn { flex: none; }
@media (max-width: 560px) {
  .task-ribbon { gap: 8px; padding: 9px 10px; }
  .task-ribbon .tr-ic { display: none; }
  .task-ribbon .tr-text b { font-size: 13.5px; }
  .task-ribbon > .iconbtn { width: 32px; height: 32px; }
}
/* the inbox's way back */
.ib-back { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ib-back[hidden] { display: none; }
.ib-back:hover { background: var(--violet-bg, #EFEBFF); }
/* the Cities page */
.city-strip { margin-top: 4px; }
.city-match, .city-table { margin-top: 16px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-list li { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 6px 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.cm-name { display: flex; flex-direction: column; }
.cm-name b { color: var(--navy); }
.cm-name small { color: var(--muted); font-size: 12px; }
.cm-form { display: flex; gap: 6px; margin: 0; }
.cm-form select { flex: 1; min-width: 0; min-height: 36px; }
.cm-new { grid-column: 2; }
.cm-new summary { font-size: 12.5px; font-weight: 700; color: var(--violet); cursor: pointer; width: fit-content; }
.cm-new form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cm-new input, .cm-new select { flex: 1 1 160px; min-height: 36px; }
.city-table .card-head { flex-wrap: wrap; gap: 8px; }
.city-find { width: 220px; max-width: 100%; min-height: 36px; }
.city-name { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); }
.city-name small { color: var(--muted); font-size: 11.5px; }
.city-table td a { color: var(--navy); }
.city-table .won { color: var(--green); }
.city-who { display: inline-flex; align-items: center; gap: 2px; }
.city-who small { margin-left: 4px; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .cm-list li { grid-template-columns: minmax(0, 1fr); } .cm-new { grid-column: 1; } }
.side .nav .nav-sep { display: block; height: 1px; min-height: 0; padding: 0; margin: 8px 14px; border-radius: 0; background: rgba(255, 255, 255, .14); pointer-events: none; }
.city-table .card-head .city-find { width: 240px; flex: 0 1 240px; }
/* Yes | No as a toggle, and a product's own fields under its name */
.yn-field { justify-content: flex-start; }
.yn { display: inline-flex; width: fit-content; border: 1px solid var(--field); border-radius: 10px; overflow: hidden; background: #fff; }
.yn label { position: relative; cursor: pointer; }
.yn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yn span { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 38px; padding: 0 14px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.yn label + label span { border-left: 1px solid var(--field); }
.yn input:checked + span { background: var(--p-mint); color: var(--p-mint-ink); }
.yn input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: -2px; }
.prod-fields { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 14px; margin: 0; }
.prod-fields legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--navy); }

/* M10.20: Add a WhatsApp template — pick one the provider already approved */
.tpl-pick { border-color: var(--p-lemon-line, #F4E3A1); background: linear-gradient(180deg, #FFFDF3, #fff 70%); }
.tpl-pick .card-head { flex-wrap: wrap; gap: 4px 12px; }
.tpl-pick .tp-wait { display: flex; align-items: center; gap: 8px; margin: 0; }
.tpl-pick .tp-count { margin: 0 0 8px; }
.tpl-pick .tp-bad { color: #B42318; margin: 0; }
.tpl-pick .tp-find { width: 100%; max-width: 320px; min-height: 38px; margin-bottom: 8px; }
.tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tp-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.tp-list li:first-child { border-top: 0; }
.tp-list li[hidden] { display: none; }
.tp-list .tp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tp-list .tp-main b { font-size: 13.5px; overflow-wrap: anywhere; }
.tp-list .tp-main small { color: var(--muted); font-size: 12px; }
.tp-list .tp-body { font-size: 12.5px; color: var(--ink); opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-list .btn { flex: none; }
.tpl-group .tg-why { margin: 0 0 14px; max-width: 62ch; }
.tpl-group .tg-in { align-self: end; margin: 0 0 12px; color: var(--ink); }
.tpl-group [data-new-group][hidden], .tpl-group [data-old-group][hidden] { display: none; }
.phone-note .pn-weak { color: var(--orange); }
.phone-note .pn-weak.bad { color: #B42318; font-weight: 600; }

/* M10.20: a number's name and products in its Settings */
.nc-prods-edit { border: 0; padding: 0; margin: 0; min-width: 0; }
.nc-prods-edit legend { font-weight: 700; font-size: 13.5px; padding: 0; margin-bottom: 2px; }
.nc-prods-edit .np-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.nc-prods-edit .np-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.nc-prods-edit .np-row .inline { flex: 1 1 auto; margin: 0; font-weight: 600; }
.nc-prods-edit .np-main { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* M10.20: campaign steps say how each step reaches the lead (icon and colour) and when */
.steps-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 14px; font-size: 12.5px; color: var(--muted); }
.steps-key .sk { display: inline-flex; align-items: center; gap: 6px; }
.steps-key .sk i { width: 18px; height: 18px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.steps-key .sk i svg { width: 11px; height: 11px; }
.steps-key .sk.wa i { background: #1FA45B; }
.steps-key .sk.call i { background: var(--rust); }
.steps-key .sk.off i { background: #C9CFDD; }
.step-box .st-name { display: flex; flex-direction: column; min-width: 0; }
.step-box .st-name small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.step-box .when { justify-self: end; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #E9F7EF; color: #12703F; white-space: nowrap; }
.step-box .when.call { background: var(--orange-bg); color: var(--orange); }
#callonly .step-box .when { background: var(--orange-bg); color: var(--orange); }
.step-box .sub .inline-input { margin-left: 0; margin-top: 4px; }
.step-box .st-offnote { display: none; font-weight: 700; color: var(--ink); }
.step-box.off .badge { background: #C9CFDD; }
.step-box.off .when { background: #EEF0F5; color: var(--muted); }
.step-box.off .st-offnote { display: inline; }
.step-box .st-switch { justify-self: end; }
@media (max-width: 560px) {
  .step-box { grid-template-columns: 34px 1fr; }
  .step-box .when, .step-box .st-switch { grid-column: 2; justify-self: start; }
  .step-box .sub { grid-column: 1 / -1; }
}
.grid.g-wide-first { grid-template-columns: 2fr 1fr 1fr; }
.grid.g-narrow-first { grid-template-columns: 200px 1fr; }
@media (max-width: 720px) { .grid.g-wide-first, .grid.g-narrow-first { grid-template-columns: minmax(0, 1fr); } }

/* Phones: the slots table stacks, one slot per block */
@media (max-width: 720px) {
  .slot-table, .slot-table tbody { display: block; width: 100%; }
  .slot-table tr:first-child { display: none; }
  .slot-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
  .slot-table td { display: block; padding: 0; border: 0; }
  .slot-table td:last-child { grid-column: 1 / -1; }
  .slot-table select, .slot-table td:last-child input { min-width: 0; width: 100%; }
}

/* M10.20: Knowledge — saved banner, and call scripts written in parts */
.kb-saved a { color: inherit; text-decoration: underline; font-weight: 700; }
.kb-card.just-saved { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.kb-form .kb-after { margin: -6px 0 0; }
.se { display: flex; flex-direction: column; gap: 12px; }
.se[hidden] { display: none; }
.se-help { margin: 0; max-width: 64ch; }
.se-parts { display: flex; flex-direction: column; gap: 12px; }
.se-part { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-radius: 14px; border: 1px solid var(--line); background: #FBFCFE; border-left: 4px solid var(--violet); }
.se-part.se-ask { border-left-color: #2F80ED; }
.se-part.se-if { border-left-color: var(--orange, #D9822B); }
.se-head { display: flex; align-items: center; gap: 8px; }
.se-ic { font-size: 16px; width: 22px; text-align: center; flex: none; }
.se-head .se-title { flex: 1 1 auto; min-width: 0; min-height: 38px; font-weight: 700; font-size: 15px; border-color: transparent; background: transparent; padding-left: 6px; }
.se-head .se-title:hover, .se-head .se-title:focus { border-color: var(--field); background: #fff; }
.se-tools { display: inline-flex; gap: 4px; flex: none; }
.se-tools .iconbtn { width: 32px; height: 32px; font-size: 14px; }
.se-part textarea { width: 100%; font-size: 15px; line-height: 1.55; }
.se-rows { display: flex; flex-direction: column; gap: 8px; }
.se-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 32px; gap: 8px; align-items: start; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.se-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.se-row input, .se-row textarea { font-size: 14px; color: var(--ink); }
.se-row .se-x { width: 32px; height: 32px; margin-top: 20px; }
.se-more { align-self: flex-start; font-weight: 700; }
.se-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 2px; }
.kb-form .slots { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kb-form .slots[hidden] { display: none; }
@media (max-width: 640px) {
  .se-part { padding: 10px 10px 12px; }
  .se-ic { display: none; }
  .se-head { gap: 4px; }
  .se-head .se-title { font-size: 14px; padding-left: 4px; }
  .se-tools { gap: 2px; }
  .se-tools .iconbtn { width: 28px; height: 28px; font-size: 13px; }
  .se-row { grid-template-columns: minmax(0, 1fr) 32px; }
  .se-row .se-a { grid-column: 1; }
  .se-row .se-x { grid-row: 1; grid-column: 2; }
}

/* The script on the call screen and the campaign review, part by part */
.sp { display: flex; flex-direction: column; gap: 14px; }
.sp-part h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.sp-part h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.sp-ask h4::before { background: #2F80ED; }
.sp-if h4::before { background: var(--orange, #D9822B); }
.sp-say p { margin: 0; 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: 10px 14px; }
.sp-ask ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sp-ask li { padding: 8px 12px; border-radius: 12px; background: #F3F7FF; }
.sp-ask li label { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sp-ask li label input { margin-top: 4px; flex: none; }
.sp-ask li label:has(input:checked) b { text-decoration: line-through; color: var(--muted); }
.sp-ask li span { display: block; margin: 2px 0 0 24px; font-size: 13.5px; color: var(--muted); white-space: pre-wrap; }
.sp-if .objections { margin: 0; }
.sp-if .obj-item p { white-space: pre-wrap; }
.script-card .script-body.sp-wrap { white-space: normal; background: none; border: 0; border-radius: 0; padding: 0; max-height: none; overflow: visible; }

/* M10.21: calls explained — how calls work, and a call kept for you */
.how-calls { margin: 12px 0 0; font-size: 13px; }
.how-calls summary { cursor: pointer; font-weight: 700; color: var(--violet); width: fit-content; }
.how-calls ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); line-height: 1.5; max-width: 62ch; }
.how-calls b { color: var(--navy); }
.kept-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; background: #E8FBF2; border: 1px solid #9DE5C4; font-size: 13.5px; font-weight: 600; color: #0B5F42; }
.kept-bar form { margin: 0; }
/* M10.21: Assign calls — who has them now, and give / take back / remove */
details.assign-menu .menu.am-menu { width: 380px; max-width: calc(100vw - 32px); }
.am-menu .am-title { margin: 0; }
.am-now { min-height: 22px; }
.am-now-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.am-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #EEF0FF; color: var(--navy); font-size: 12px; }
.am-chip.none { background: #F1F3F7; color: var(--muted); }
.am-chip.live { background: #E8FBF2; color: #0B5F42; }
.am-opts { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.am-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.am-opt:has(input:checked) { border-color: var(--violet); background: #F6F4FF; }
.am-opt input { margin-top: 3px; }
.am-opt span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.am-opt small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.am-opt select { min-height: 36px; font-size: 13px; }
.call-chip { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #EEF4FF; color: #1D4FA8; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.call-chip.now { background: #E8FBF2; color: #0B5F42; }
@media (max-width: 640px) { details.assign-menu .menu.am-menu { position: fixed; left: 16px; right: 16px; top: 80px; width: auto; max-height: calc(100vh - 100px); overflow: auto; } }
.am-menu .am-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; font-size: 13px; }
.am-menu .am-title { padding-right: 34px; }
/* M10.22: send again to people who already got this message */
.resend-ok { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #FFF8E6; border: 1px solid var(--p-lemon-line, #F2E1A1); font-size: 13.5px; font-weight: 600; }
.resend-ok input { margin-top: 3px; }
.resend-ok span { display: flex; flex-direction: column; gap: 2px; }
.resend-ok small { font-weight: 500; color: var(--muted); font-size: 12px; }

/* M10.23: why a message didn't go, on the live page */
.feed li.orange .ft { color: #B45309; }
.feed .f-why { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.trouble-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; margin: 14px 0; border-radius: 16px; background: #FFF6E9; border: 1px solid #F4C98B; }
.trouble-card .tc-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #F59E0B; color: #fff; font-weight: 900; }
.trouble-card .tc-tx { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.trouble-card b#trouble-h { font-size: 15px; color: #7C3A06; }
.trouble-card p { margin: 0; }
.trouble-card .tc-said { color: var(--ink); overflow-wrap: anywhere; }
.trouble-card.held { background: #F3F1FF; border-color: #CFC8FB; }
.trouble-card.held .tc-ic { background: var(--violet); font-size: 14px; }
.trouble-card.held b#held-h { color: var(--navy); }

/* M10.25: rename a campaign any time; Edit menu always there */
.live-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-name h1 { margin: 0; }
.rename { position: relative; }
.rename > summary { list-style: none; cursor: pointer; width: 32px; height: 32px; }
.rename > summary::-webkit-details-marker { display: none; }
.rename-form { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: min(420px, calc(100vw - 32px)); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.rename-form input[type=text] { flex: 1 1 220px; min-height: 40px; }
.rename-form small { flex-basis: 100%; font-size: 12px; }
.edit-menu .menu-pop { min-width: 260px; gap: 2px; }
.edit-menu .em-note { margin: 4px 8px 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; max-width: 34ch; }
.edit-menu .menu-pop form { margin: 0 8px 8px; }
.edit-menu .em-off { padding: 8px 10px; border-radius: 8px; color: var(--muted); opacity: .6; cursor: not-allowed; font-size: 14px; }
.hero-side .hs .hs-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.legend small { color: var(--muted); font-weight: 600; }

/* M10.27: the Live box scrolls instead of growing; "In plain words" is a help note like the others */
.feed-card .feed { max-height: 460px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; margin-right: -6px; scrollbar-width: thin; }
.sticky.plain-note { margin-top: 18px; max-width: 720px; }
aside > .sticky.plain-note { margin-top: 0; }
aside .plain-next { margin-top: 14px; }
aside .plain-next .btn { width: 100%; min-height: 48px; }

/* M10.28: Live box filters, a chat link per event, and the message it opens */
.feed-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.fpill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fpill b { font-weight: 700; color: var(--muted); }
.fpill.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.fpill.on b { color: #E4E0FF; }
.fpill.f-held:not(.on) { border-color: #CFC8FB; }
.fpill.f-failed:not(.on) { border-color: #F7C2B8; }
.feed.with-chat li { grid-template-columns: 30px minmax(0, 1fr) auto 32px; }
.feed .f-chat { width: 30px; height: 30px; color: var(--violet); }
.msg.jumped .mb { box-shadow: 0 0 0 3px #FFD66B; animation: jump-glow 2.4s ease 1; }
@keyframes jump-glow { 0%, 60% { box-shadow: 0 0 0 4px #FFD66B; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .msg.jumped .mb { animation: none; } }

/* M10.29: the campaign's message journey — in the campaign → tried → delivered → read → responded → said yes */
.journey { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px 0; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.jr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 24px; flex-wrap: wrap; }
.jr-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; color: var(--navy); }
.jr-sub { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.jr-sub b { color: var(--navy); }
.jr-head .pace { margin: 2px 0 0; max-width: 52ch; font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.jr-head .pace .dot { flex: none; transform: translateY(-1px); }
.jr-flow { margin-top: 20px; }
.jr-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.jr-st { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 12px; border-left: 1px dashed var(--line); min-width: 0; }
.jr-st:first-child { border-left: 0; padding-left: 2px; }
.jr-st > b { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--navy); font-variant-numeric: tabular-nums; }
.jr-st > span { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.jr-st > span small { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--violet-bg); color: var(--violet-ink); font-size: 11.5px; font-weight: 800; }
.jr-st.jr-yes > b { color: #0E8A5F; }
.jr-st.jr-yes > span small { background: var(--p-mint); color: var(--p-mint-ink); }
.jr-band { display: block; width: 100%; height: 104px; filter: drop-shadow(0 10px 18px rgba(91, 71, 224, .18)); }
.jr-drops { list-style: none; margin: 0; padding: 10px 0 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.jr-drops > li { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0 14px; border-left: 1px dashed var(--line); min-width: 0; }
.jr-drops > li:first-child { border-left: 0; padding-left: 2px; }
.jr-chip { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.35; background: #F1F3F7; color: var(--muted); }
.jr-chip b { font-weight: 800; }
.jr-chip.t-wait { background: #F1F3F7; color: #4A5368; }
.jr-chip.t-grey { background: #EEF0F5; color: #5B6377; }
.jr-chip.t-lilac { background: var(--p-lilac); color: var(--p-lilac-ink); }
.jr-chip.t-rose { background: var(--p-rose); color: var(--p-rose-ink); }
.jr-chip.t-peach { background: var(--p-peach); color: var(--p-peach-ink); }
.jr-chip.t-sky { background: var(--p-sky); color: var(--p-sky-ink); }
.jr-why { display: block; padding-left: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.jr-empty { padding: 18px 0 20px; margin: 0; }
.jr-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 -24px; padding: 14px 24px 16px; background: #F7F8FC; border-top: 1px solid var(--line-2); }
.jf { display: flex; flex-direction: column; gap: 3px; min-width: 150px; font-size: 13px; color: var(--ink); }
.jf .jf-l { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.jf .jf-v b { font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; margin-right: 2px; }
.jf small { font-size: 11.5px; color: var(--muted); line-height: 1.35; max-width: 30ch; }
.jf-bar { display: block; width: 150px; height: 5px; border-radius: 9px; background: #E5E8F1; overflow: hidden; margin: 2px 0 1px; }
.jf-bar > i { display: block; height: 100%; border-radius: 9px; background: var(--violet); }
.jf-bar.out > i { background: var(--red); }
.m-only { display: none; }
@media (max-width: 760px) {
  .journey { padding: 18px 16px 0; border-radius: 18px; }
  .jr-head .pace { max-width: none; }
  .d-only { display: none; }
  .m-only { display: flex; }
  .jr-stages { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
  .jr-st { border-left: 0; padding: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .jr-st > b { font-size: 26px; grid-column: 1; grid-row: 1 / span 2; }
  .jr-st > span { grid-column: 2; grid-row: 1; align-self: end; }
  .jr-st::after { content: ""; grid-column: 2; grid-row: 2; display: block; height: 8px; width: var(--w); min-width: 6px; margin-top: 4px; border-radius: 9px; background: linear-gradient(90deg, #5B47E0, #22B98F); }
  .jr-out { grid-column: 2; grid-row: 3; list-style: none; margin: 6px 0 0; padding: 0; flex-wrap: wrap; gap: 5px; }
  .pilot-banner { flex-wrap: wrap; }
  .pilot-banner > form { flex-basis: 100%; }
  .pilot-banner > form .btn { width: 100%; }
  .jr-foot { margin: 0 -16px; padding: 12px 16px 14px; gap: 10px 20px; }
}

/* Lead Miner (M10.30): IndiaMART, TradeIndia, Facebook & Instagram, website forms */
.mn-mark { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.mn-mark svg { width: 22px; height: 22px; }
.mn-mark.sm { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; }
.mn-mark.sm svg { width: 17px; height: 17px; }
.mn-mark.lg { flex-basis: 56px; width: 56px; height: 56px; border-radius: 16px; }
.mn-mark.lg svg { width: 30px; height: 30px; }
.mn-mark.k-indiamart { background: #FFEBDD; color: #B24A0B; }
.mn-mark.k-tradeindia { background: #E3ECFF; color: #2449A8; }
.mn-mark.k-meta { background: var(--violet-bg); color: var(--violet-ink); }
.mn-mark.k-webhook { background: var(--green-bg); color: var(--green); }
.mn-mark.k-google { background: #FFF3D1; color: #8A5A00; }
.chip.ig { background: #FCE7F1; color: #A3195B; }
.chip.fb { background: #E7EEFD; color: #1F4AA8; }
.mn-head-t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mn-head-t > div { min-width: 0; }
.mn-head .actions form { margin: 0; }

.mn-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.mn-today > div { padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; border-left: 1px solid var(--navy-line); }
.mn-today > div:first-child { border-left: none; }
.mn-today b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; }
.mn-today span { font-size: 13px; color: var(--quiet); font-weight: 600; }
.mn-today .mn-t-all b { color: var(--mint); }
.mn-today .mn-t-warn b { color: #F7B267; }

.mn-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.mn-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.mn-card.is-bad { border-color: #F6C9C4; box-shadow: inset 4px 0 0 #E5484D; }
.mn-card.is-paused { background: #FBFBFD; }
.mn-card.is-paused .mn-nums dd { color: var(--muted); }
.mn-card header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mn-title { min-width: 0; }
.mn-title h2 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-title h2 a { color: var(--navy); text-decoration: none; }
.mn-title h2 a:hover { text-decoration: underline; }
.mn-title small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mn-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mn-nums.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mn-nums div { background: var(--paper); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.mn-nums dt { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.mn-nums dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.mn-beat { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 0; }
.mn-beat.bad { color: var(--red); font-weight: 600; align-items: flex-start; }
.mn-beat.bad .dot { margin-top: 5px; }
.mn-beat.paused { color: var(--orange); font-weight: 600; }
.mn-ring { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 999px; background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--violet-bg) 0); position: relative; }
.mn-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 999px; background: #fff; }
.mn-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }
.mn-rule { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mn-add { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 16px; border: 1.5px dashed var(--field); text-decoration: none; color: var(--ink); min-width: 0; }
.mn-add:hover { border-color: var(--violet); border-style: solid; background: #fff; color: var(--ink); }
.mn-add b { display: block; color: var(--navy); font-size: 15px; }
.mn-add small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

.mn-pills { display: flex; gap: 6px; flex-wrap: wrap; }
a.fpill { text-decoration: none; }
#rules > input[type=hidden]:first-child + * { margin-top: 0; }
.fpill.f-new:not(.on) { border-color: #B9E3CF; }
.fpill.f-skipped:not(.on) { border-color: #F3D2B8; }
.mn-feed { list-style: none; margin: 10px 0 0; padding: 0; }
.mn-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.mn-feed.no-mark li { grid-template-columns: minmax(0, 1fr) auto; }
.mn-feed li:first-child { border-top: none; }
.mn-who { min-width: 0; }
.mn-who p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; }
.mn-who b a { color: var(--ink); text-decoration: none; }
.mn-who b a:hover { color: var(--violet-ink); text-decoration: underline; }
.mn-who q { margin-top: 3px; color: var(--ink); font-size: 13.5px; quotes: "“" "”"; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mn-why { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.mn-src { font-size: 12px; color: var(--muted); font-weight: 600; }
.mn-src::before { content: "· "; }
.mn-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mn-end time { font-size: 11.5px; color: #8b93a6; white-space: nowrap; }
.mn-end form { margin: 0; }
.mn-retry { color: var(--violet-ink); padding: 0; font-size: 12px; }
.mn-retry:hover { color: var(--violet); background: none; text-decoration: underline; }
.mn-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 10px; color: var(--muted); text-align: center; font-size: 14px; }
.mn-empty svg { color: var(--quiet); }

.mn-calls, .mn-first { border: none; padding: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; min-width: 0; }
.mn-calls legend, .mn-first legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.mn-calls legend .hint, .mn-first legend .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.mn-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mn-modes .type-card { padding: 12px 14px; }
.mn-modes .type-card:has(input:checked) { padding: 11.5px 13.5px; }
.mn-modes .type-card .t { font-size: 14px; }
.mn-person { margin-top: 10px; max-width: 360px; }
.mn-tick { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.mn-tick input { margin-top: 2px; flex: 0 0 18px; }
.mn-tick b { display: block; font-size: 14px; }
.mn-tick small { color: var(--muted); font-size: 12.5px; }
.mn-segs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #ECEEF5; max-width: 100%; }
.mn-seg { position: relative; }
.mn-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mn-seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.mn-seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,31,78,.1); }
.mn-seg input:focus-visible + span { outline: 3px solid #9DB4F0; }

.mn-perms summary, .mn-keys summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 13.5px; }
.mn-perms ul { margin: 8px 0; padding-left: 20px; }
.mn-keys form { margin-top: 10px; }
.mn-pages { display: flex; flex-direction: column; gap: 8px; }
.mn-page { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.mn-page input { position: absolute; opacity: 0; pointer-events: none; }
.mn-page .radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--field); flex: 0 0 20px; }
.mn-page:has(input:checked) { border: 2px solid var(--navy); background: #F3F5FB; padding: 11.5px 13.5px; }
.mn-page:has(input:checked) .radio { border-color: var(--navy); background: radial-gradient(var(--navy) 0 4.5px, #fff 5.5px); }
.mn-page:has(input:focus-visible) { outline: 3px solid #9DB4F0; }
.mn-page.is-on { cursor: default; background: #FAFBFD; }
.mn-page-t { flex: 1; min-width: 0; }
.mn-page-t b { display: block; overflow-wrap: anywhere; }
.mn-page-t small { color: var(--muted); font-size: 12.5px; }
.mn-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mn-steps.small { font-size: 13px; gap: 6px; }
.mn-steps .hook-url { margin-top: 6px; }
.mn-setup p { font-size: 14px; }
.mn-status { display: flex; flex-direction: column; gap: 12px; }
.mn-status > * + * { margin-top: 0; }
.mn-status.is-bad { border-color: #F6C9C4; }
.mn-rules-line { color: var(--muted); }
.mn-rules-line b { color: var(--ink); }
.mn-rules-line a { margin-left: 6px; font-weight: 700; }
.mn-address h3, #keys h3 { margin-bottom: 2px; }
.linkbtn.mn-danger-link { color: var(--red); padding: 0; font-size: 12.5px; }
.linkbtn.mn-danger-link:hover { background: none; color: #932015; text-decoration: underline; }
@media (max-width: 640px) {
  .mn-modes { grid-template-columns: minmax(0, 1fr); }
  .mn-nums.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-today b { font-size: 24px; }
  .mn-today > div { padding: 12px 14px; border-left: none; border-top: 1px solid var(--navy-line); }
  .mn-today > div:first-child { border-top: none; }
  .mn-feed li { grid-template-columns: auto minmax(0, 1fr); }
  .mn-feed.no-mark li { grid-template-columns: minmax(0, 1fr); }
  .mn-feed li .mn-end { grid-column: -2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; }
  .mn-head-t .mn-mark.lg { flex-basis: 44px; width: 44px; height: 44px; border-radius: 13px; }
  .mn-head-t .mn-mark.lg svg { width: 24px; height: 24px; }
}

/* Templates page (M10.33): every template in a message, and a missing header link */
.tpl-versions { list-style: none; margin: 0; padding: 0 16px; display: flex; flex-direction: column; gap: 6px; }
.tpl-versions li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 10px; border-radius: 10px; background: var(--paper); }
.tpl-versions a { display: flex; flex-direction: column; min-width: 0; flex: 1 1 140px; text-decoration: none; color: var(--ink); }
.tpl-versions a .mono { overflow-wrap: anywhere; }
.tpl-versions a:hover .mono { text-decoration: underline; }
.tpl-warn { margin: 0 16px; padding: 7px 10px; border-radius: 10px; background: var(--orange-bg); color: var(--orange); font-weight: 700; }

.tpl:target, .tpl-versions li:target { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 12px; }
.pill.tpl-count { background: var(--violet-bg); color: var(--violet-ink); }

/* Calls (M10.35): who's waiting, "Call later", why a campaign's calls wait */
a.wchip { text-decoration: none; }
a.wchip:hover { box-shadow: inset 0 0 0 1px var(--field); color: var(--navy); }
a.wchip.on { box-shadow: inset 0 0 0 2px var(--violet); }
.wc-list { align-self: center; font-size: 12.5px; font-weight: 700; margin-left: 4px; }
.wait-card { margin-top: 20px; }
.wait-card .card-head { align-items: flex-start; gap: 10px 14px; flex-wrap: wrap; }
.wait-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: w; }
.wait-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px 12px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--paper); counter-increment: w; }
.wait-list li::before { content: counter(w); font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.wait-list form { margin: 0; }
.wl-who { min-width: 0; }
.wl-who b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.wl-who small { color: var(--muted); font-size: 12px; }
.wait-list .chip { margin: 0; white-space: nowrap; }
.plist li.moved a { background: var(--violet-bg); }
.plist li.moved time b { color: var(--violet-ink); }
.kb-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.later-picks { display: grid; gap: 8px; margin: 14px 0 6px; }
.later-picks .btn { justify-content: center; }
.cw-why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); }
.cw-why .chip { margin: 0; }
.nr-form { display: grid; gap: 8px; margin: 12px 0 8px; padding: 12px; border-radius: 12px; background: var(--paper); }
.nr-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--navy); }
.nr-t input { width: 62px; min-height: 36px; }
.nr-row { display: flex; gap: 8px; }
.nr-row select { flex: 1; min-width: 0; }
.nr-form small { font-size: 12px; line-height: 1.4; }
.nr-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.nr-pick select { max-width: 100%; }
@media (max-width: 640px) {
  .wait-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .wait-list li::before { display: none; }
  .wait-list li .chip { grid-column: 1; justify-self: start; grid-row: 2; }
  .wait-list li form { grid-column: 2; grid-row: 1 / span 2; }
}

/* Message journey (M10.35): sending speed, one bar per hour */
.jf-pace { min-width: 200px; }
.pace-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 3px; height: 34px; margin: 4px 0 2px; max-width: 220px; }
.pace-bars i { display: block; height: var(--h); min-height: 2px; border-radius: 3px 3px 1px 1px; background: #9AA8E8; }
.pace-bars i.zero { background: var(--line); }
.pace-bars i.now { background: var(--violet); }
.pace-bars i.now.zero { background: #CFC8F8; }

/* Message step (M10.35): the header's file from the Library, or a checked link */
.hdr-lib { margin: 8px 0 2px; font-size: 12.5px; font-weight: 800; color: var(--navy); display: flex; flex-direction: column; gap: 5px; }
.hdr-lib select { width: 100%; font-weight: 600; }
.hdr-state { margin-top: 8px; padding: 7px 10px; border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hdr-state.ok { color: var(--green); background: var(--green-bg); }
.hdr-state.bad { color: var(--red); background: var(--red-bg); font-weight: 700; }
.hdr-box.bad { border-color: #F6C9C4; }

/* Templates page (M10.35): one card per template, newest first, with filters */
.tpl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 8px; }
.tpl-bar .tabs a { gap: 6px; }
.tb-n { font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(13,31,78,.07); color: var(--navy); }
.tpl-number { min-width: 0; max-width: 100%; }
.tpl-number select { min-height: 40px; max-width: min(360px, 100%); text-overflow: ellipsis; }
.tpl-intro { margin-bottom: 14px; max-width: 80ch; }
.tpl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tpl-meta .chip { margin: 0; }
.tpl-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--blue-bg); color: var(--navy); font-size: 11.5px; font-weight: 700; }
.tpl-tag.k-video { background: var(--violet-bg); color: var(--violet-ink); }
.tpl-tag.k-image { background: #E9F6FB; color: #0E5A78; }
.tpl-tag.k-document { background: var(--orange-bg); color: var(--orange); }
.tpl .top .mono { overflow-wrap: anywhere; }
.tpl-video { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2A2161, #5B47E0); border-radius: 8px; }
.tpl-video span { width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--violet-ink); display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px; }
.tpl-docbar { padding: 10px; border-radius: 8px; background: #F3F4F8; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tpl-sib { margin: 0; padding: 9px 16px 0; color: var(--muted); }
.tpl-sib a { font-weight: 700; }
.tpl.has-warn { border-color: #F3C8A8; }
.tpl .bottom { justify-content: space-between; }
.tpl-none { padding: 30px 0; }

/* Number card test (M10.35): the file on top of a template */
.nc-media { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--p-peach, #FFF4EA); border: 1px solid var(--p-peach-line, #F6D9BF); }
.ncm-t { color: var(--navy); font-size: 14px; }
.ncm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ncm-row .field { margin: 0; }
@media (max-width: 860px) { .ncm-row { grid-template-columns: minmax(0, 1fr); } }

/* Template form (M10.35): the header's file from the Library, or uploaded into it */
.hdr-file { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 12px; padding: 12px; border-radius: 12px; background: var(--p-peach, #FFF4EA); border: 1px solid var(--p-peach-line, #F6D9BF); }
.hdr-file .field { margin: 0; }
.hdr-file .hdr-state { grid-column: 1 / -1; margin: 0; }
.hdr-up input[type=file] { padding: 8px; background: #fff; border: 1px dashed var(--field); border-radius: 10px; font-size: 13px; }
.hdr-busy { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.hdr-file.htmx-request .hdr-busy { display: inline-flex; }
@media (max-width: 760px) { .hdr-file { grid-template-columns: minmax(0, 1fr); } }
#tplform input[data-hdr-value]:disabled { opacity: .5; background: var(--paper); text-decoration: line-through; text-decoration-color: rgba(84,93,112,.5); }

/* Message step (M10.35): the template's own file is fine, so changing it is optional */
.hdr-box.hdr-quiet { background: var(--green-bg); border-color: #BFE3CF; align-items: center; }
.hdr-quiet .hdr-tx b { color: var(--green); }
.hdr-thumb.sm { width: 48px; height: 48px; font-size: 20px; border-radius: 10px; }
.hdr-tx .hdr-other summary { cursor: pointer; font-weight: 700; font-size: 12.5px; color: var(--navy); margin-top: 4px; }
.hdr-other[open] { padding-top: 4px; }
.tpl-pick-note { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Inbox (M10.35): which WhatsApp number and campaign a chat is from, and a number filter */
.ib-from { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 4px; min-width: 0; }
.ib-from span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ibf-num { background: var(--blue-bg); color: var(--navy); }
.ibf-camp { background: var(--violet-bg); color: var(--violet-ink); }
.ib-sort { flex-wrap: wrap; align-items: center; }
.ib-number { margin-left: auto; }
.ib-number select { min-height: 30px; padding: 2px 26px 2px 8px; font-size: 12.5px; font-weight: 700; border-radius: 999px; max-width: 190px; }
.th-num, .th-camp { white-space: nowrap; }
.th-camp a { color: var(--violet-ink); font-weight: 700; }

/* Team calls (M10.35): filter by why (or, for calls made, how it went) */
.why-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; }
.why-chips .wc-l { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.why-chips .fpill { text-decoration: none; }
.called-table .cl-note { font-style: italic; max-width: 42ch; }

/* ===== Inbox, cleaned up (M10.35.5): one ribbon, no outer padding, every row earns its height ===== */
.main.tight { padding: 0; }
.main.tight .page { max-width: none; gap: 0; height: 100vh; display: flex; flex-direction: column; }
.main.tight .page > .alarm-bar, .main.tight .page > .demo-bar, .main.tight .page > .error,
.main.tight .page > .task-ribbon:not([hidden]), .main.tight .page > .install-card:not([hidden]) { margin: 8px 12px 0; }
.main.tight .page > .page-back { display: none; }
.main.tight .inbox { flex: 1; min-height: 0; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.inbox { grid-template-columns: 330px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.ib-list, .ib-thread { grid-row: 2; }
.ib-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.ib-bar h1 { font-size: 19px; line-height: 1; white-space: nowrap; }
.ib-bar .ib-back { margin-right: 0; }
.ib-count { padding: 3px 10px; border-radius: 999px; background: var(--orange-bg); color: var(--orange); font-size: 12px; font-weight: 800; white-space: nowrap; text-decoration: none; }
.ib-count.late { background: var(--red-bg); color: var(--red); }
.ib-bar .ib-search { flex: 1 1 180px; min-width: 140px; max-width: 420px; margin-left: 6px; }
.ib-bar .ib-search input { min-height: 36px; border-radius: 10px; background: var(--paper); border-color: transparent; }
.ib-bar .ib-search input:focus { background: #fff; border-color: var(--field); }
.ib-filters { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; }
.ibf { min-width: 0; }
.ibf select { min-height: 34px; max-width: 260px; text-overflow: ellipsis; padding: 0 28px 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.ibf.on select { border-color: #C9C2F7; background-color: var(--violet-bg); color: var(--violet-ink); }
.ibf-clear { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ib-tabs { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line-2); }
.ib-tabs .ib-views { flex: 1; }
.ib-closing { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-size: 15px; }
.ib-closing span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ib-closing:hover { background: var(--paper); }
.ib-closing.on { background: var(--violet-bg); color: var(--violet-ink); }
.ib-items { padding: 4px; }
.ib-item { gap: 10px; padding: 9px 10px 9px 12px; border-radius: 12px; }
.ib-item .av { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
.ib-meta { flex-wrap: nowrap; overflow: hidden; gap: 5px; margin-top: 2px; }
.ib-meta > * { flex: none; }
.ib-meta .im-who::before { content: "· "; }
.ib-meta .im-ctx { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 7px; border-radius: 999px; background: var(--blue-bg); color: var(--navy); font-weight: 700; }
.ib-meta .im-ctx.camp { background: var(--violet-bg); color: var(--violet-ink); }
/* the chat: a slim header, a one-line "waiting" note, and the rest for reading */
.th-head { min-height: 56px; padding: 8px 14px; gap: 10px; }
.th-head .th-who { flex: 1 1 150px; min-width: 120px; }
.tb.take svg { flex: none; }
@container (max-width: 620px) {
  .th-actions .tb.take .lbl, .th-actions .tb.call .lbl { display: none; }
  .th-actions .tb.take, .th-actions .tb.call { padding: 0 10px; }
}
.th-actions .tb:not(.call):not(.take) { padding: 0 4px; }  /* icons with a tooltip: the name gets the room */
.th-actions .tb:not(.call):not(.take) .lbl { display: none; }
.th-head .av.lg { width: 38px; height: 38px; flex-basis: 38px; font-size: 13px; }
.th-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.th-name b { display: inline; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.th-name .chip { flex: none; margin: 0; padding: 1px 8px; font-size: 11px; }
.th-who small.th-line { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.th-line > span { display: inline; }
.th-line > span + span::before { content: "  ·  "; white-space: pre; color: #A9B0C2; font-weight: 800; }
.th-line > .chip { padding: 0 7px; font-size: 11px; margin: 0 2px 0 0; vertical-align: 1px; }
.th-line > .chip + span::before { content: ""; }
.th-line a { color: var(--violet-ink); font-weight: 700; }
.th-q { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 12.5px; }
.th-q .q-ic { width: 20px; height: 20px; flex: none; border-radius: 6px; font-size: 12px; }
.tq-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-tx q { margin-left: 8px; font-style: italic; color: var(--ink); }
.th-msgs { padding: 14px 4% 16px; }
.th:has(.th-rail) .th-msgs { padding-right: calc(4% + 34px); }
.th-compose { padding: 8px 12px 10px; gap: 6px; }
.th-compose .win { font-size: 12px; }
.composer { gap: 8px; }
.composer textarea { min-height: 42px; padding: 10px 16px; }
.composer .send, .composer .mic, .composer .clip { flex-basis: 42px; width: 42px; height: 42px; }
.cmp-field textarea { padding-right: 96px; }
.cmp-free { position: absolute; right: 44px; bottom: 11px; padding: 2px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 11.5px; font-weight: 800; pointer-events: none; }
.emo-btn { bottom: 4px; }
.tpl-fold > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13px; color: var(--orange); }
.tpl-fold > summary::-webkit-details-marker { display: none; }
.tf-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-go { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 12.5px; font-weight: 800; }
.tpl-fold[open] .tf-go { background: var(--violet-bg); color: var(--violet-ink); }
.tpl-fold[open] > form, .tpl-fold[open] > p { margin-top: 8px; }
@media (max-width: 860px) {
  .main.tight .page { height: auto; }
  .main.tight .inbox { flex: none; height: calc(100dvh - 84px); min-height: 480px; grid-template-columns: minmax(0, 1fr); }
  .ib-bar { flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
  .ib-bar .ib-search { order: 5; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .ib-filters { order: 6; flex: 1 1 100%; margin-left: 0; }
  .ibf { flex: 1 1 0; }
  .ibf select { width: 100%; max-width: none; }
  .inbox.has-thread { grid-template-rows: minmax(0, 1fr); }
  .inbox.has-thread .ib-bar { display: none; }
  .inbox.has-thread .ib-thread { grid-row: 1; }
  .th-head { flex-wrap: wrap; }
  .th-who { flex: 1 1 0; }
  .th-actions { width: 100%; justify-content: flex-end; gap: 4px; }
  .th-actions .tb { min-height: 34px; }
  .th-actions .tb .ti { width: 26px; height: 26px; }
  .th-actions .tb.call { padding: 0 10px; }
  .th-actions .tb.call .lbl { display: none; }
  .th-actions .tb:not(.call):not(.take) { padding: 0 4px; }
  .th-actions .tb:not(.call):not(.take) .lbl { display: none; }
}

/* Calls (M10.35.6): back, title, tabs and your status (or the campaign) on one row */
.calls-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.calls-bar h1 { font-size: 26px; line-height: 1; }
.calls-bar .cb-back { align-self: center; }
.calls-bar .calls-tabs { margin: 0; padding: 4px; border-radius: 14px; }
.calls-bar .calls-tabs a { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.cb-end { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cb-end .status-switch { gap: 6px; }
.cb-end .status-switch > small { font-size: 11.5px; white-space: nowrap; }
.cb-end select { min-height: 38px; max-width: 280px; border-radius: 999px; font-weight: 700; font-size: 13px; padding: 0 30px 0 14px; }
.cb-end select.on { border-color: #C9C2F7; background-color: var(--violet-bg); color: var(--violet-ink); }
@media (max-width: 760px) {
  .calls-bar h1 { font-size: 22px; }
  .calls-bar .calls-tabs { order: 3; flex: 1 1 100%; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .calls-bar .calls-tabs a { flex: 1 0 auto; justify-content: center; }
  .cb-end { order: 4; flex: 1 1 100%; margin-left: 0; }
  .cb-end .status-switch, .cb-end .status-seg, .cb-end select { flex: 1; width: 100%; max-width: none; }
  .cb-end .status-seg label { flex: 1; justify-content: center; }
  .cb-end .status-switch > small { display: none; }
}

/* Summary tiles (M10.35.7): each its own light colour, the same on Team, Tasks and Cities */
.stat-strip { gap: 10px; background: none; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.stat-strip .ss, .stat-strip .ss + .ss { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat-strip .ss-ic { background: #fff; box-shadow: 0 1px 2px rgba(13,31,78,.06); }
.stat-strip .ss-tx small { color: #5B6478; }
.stat-strip .ss.sky { background: var(--p-sky); border-color: var(--p-sky-line); }
.stat-strip .ss.sky .ss-ic, .stat-strip .ss.sky .ss-tx b { color: var(--p-sky-ink); }
.stat-strip .ss.lilac { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.stat-strip .ss.lilac .ss-ic, .stat-strip .ss.lilac .ss-tx b { color: var(--p-lilac-ink); }
.stat-strip .ss.rose { background: var(--p-rose); border-color: var(--p-rose-line); }
.stat-strip .ss.rose .ss-ic, .stat-strip .ss.rose .ss-tx b { color: var(--p-rose-ink); }
.stat-strip .ss.mint { background: var(--p-mint); border-color: var(--p-mint-line); }
.stat-strip .ss.mint .ss-ic, .stat-strip .ss.mint .ss-tx b { color: var(--p-mint-ink); }
.stat-strip .ss.peach { background: var(--p-peach); border-color: var(--p-peach-line); }
.stat-strip .ss.peach .ss-ic, .stat-strip .ss.peach .ss-tx b { color: var(--p-peach-ink); }
.stat-strip .ss.zero .ss-tx b { opacity: .5; }
.stat-strip .ss.zero .ss-ic { opacity: .7; }
.demo-strip { margin-top: 0; }
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip .ss:nth-child(n) { border-left: 1px solid; border-top: 1px solid; border-color: inherit; }
  .stat-strip .ss.sky { border-color: var(--p-sky-line); } .stat-strip .ss.lilac { border-color: var(--p-lilac-line); }
  .stat-strip .ss.rose { border-color: var(--p-rose-line); } .stat-strip .ss.mint { border-color: var(--p-mint-line); }
  .stat-strip .ss.peach { border-color: var(--p-peach-line); }
}
/* the bar's own control on the right: a status switch or one select */
.cb-form { display: flex; margin: 0; }
.cb-end .cb-form select { min-height: 38px; max-width: 280px; border-radius: 999px; font-weight: 700; font-size: 13px; padding: 0 30px 0 14px; }
.cb-end .cb-form select.on { border-color: #C9C2F7; background-color: var(--violet-bg); color: var(--violet-ink); }
.tk-bar { margin-top: 0; }
@media (max-width: 760px) { .cb-end .cb-form, .cb-end .cb-form select { flex: 1; width: 100%; max-width: none; } }
/* My calls: today's numbers in the same light colours as the other tabs' tiles */
.day-stats div { box-shadow: none; border: 1px solid var(--line); }
.day-stats div:nth-child(1) { background: var(--p-sky); border-color: var(--p-sky-line); }
.day-stats div:nth-child(1) b { color: var(--p-sky-ink); }
.day-stats div:nth-child(2) { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.day-stats div:nth-child(2) b { color: var(--p-lilac-ink); }
.day-stats div:nth-child(3) { background: var(--p-mint); border-color: var(--p-mint-line); }
.day-stats div:nth-child(3) b { color: var(--p-mint-ink); }

/* ===== Inbox v3 (M10.37): read at a glance, filter by what they said, star, snooze, tick ===== */
.on-narrow { display: none; }
.ibx .ib-bar { gap: 8px; padding: 8px 12px; }
.ibx-gap { flex: 1 1 0; min-width: 0; }
.ibx-fwrap { position: relative; flex: none; }
.ibx-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ibx-fbtn:hover { border-color: #C9C2F7; }
.ibx-fbtn.on, .ibx-fbtn[aria-expanded="true"] { border-color: #C9C2F7; background: var(--violet-bg); color: var(--violet-ink); }
.ibx-fn { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ibx-fpop { position: absolute; top: 44px; left: 0; z-index: 60; width: 400px; max-height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 48px rgba(13,31,78,.2); overflow: hidden; }
.ibx-fpop[hidden] { display: none; }
.ibx-loading { display: flex; align-items: center; gap: 8px; padding: 18px 16px; color: var(--muted); font-size: 13px; }
.ibx-filters { display: flex; flex-direction: column; min-height: 0; flex: 1; margin: 0; }
.ibx-fhead { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 8px; }
.ibx-fhead b { font-size: 15px; color: var(--navy); }
.ibx-fhead span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ibx-fhead .ibx-clear { margin-left: auto; }
.ibx-fbody { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.ibx-fbody fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ibx-fbody legend { padding: 0; margin-bottom: 7px; font-size: 12.5px; font-weight: 800; color: #545D70; }
.ibx-fbody fieldset > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ibx-fbody fieldset > small { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.ibx-fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid #DADDE7; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; user-select: none; }
.ibx-fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ibx-fchip .ck { display: none; }
.ibx-fchip small { font-size: 11.5px; font-weight: 700; color: #8A91A3; }
.ibx-fchip.zero { color: #9AA1B2; }
.ibx-fchip:hover { border-color: #C9C2F7; }
.ibx-fchip:has(input:checked) { background: var(--violet-bg); border-color: var(--violet); color: var(--violet-ink); }
.ibx-fchip:has(input:checked) .ck { display: block; }
.ibx-fchip:has(input:checked) small { color: var(--violet-ink); }
.ibx-fchip:focus-within { outline: 2px solid var(--violet); outline-offset: 1px; }
.ibx-ffoot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-2); background: #FAFAFD; }
.ibx-chips { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.ibx-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px 0 11px; border: 1px solid #DCD6FF; border-radius: 999px; background: var(--violet-bg); color: var(--violet-ink); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ibx-chip:hover { border-color: var(--violet); color: var(--violet-ink); }
.ibx-clear { flex: none; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ib-count.on { box-shadow: inset 0 0 0 1px var(--red); }
.ibx-ib { position: relative; flex: none; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; list-style: none; }
.ibx-ib::-webkit-details-marker { display: none; }
.ibx-ib:hover { background: var(--paper); color: var(--navy); }
.ibx-ib.on { background: var(--violet-bg); color: var(--violet-ink); }
.ibx-ib small { position: absolute; top: 1px; right: 1px; font-size: 10px; font-weight: 800; color: inherit; }
.ibx-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 999px; background: #22B573; }
.ibx-menu { position: relative; flex: none; }
.ibx-menu > summary { list-style: none; }
.ibx-menu > summary::-webkit-details-marker { display: none; }
.ibx-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 55; min-width: 250px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(13,31,78,.18); }
.ibx-pop.right { left: auto; right: 0; }
.ibx-pop-h { padding: 6px 10px 4px; font-size: 12px; font-weight: 800; color: #545D70; }
.ibx-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ibx-opt:hover, .ibx-opt:focus-visible { background: #F4F2FF; color: var(--ink); }
.ibx-opt small, .ibx-opt kbd { font: inherit; font-size: 12px; font-weight: 600; color: #6B7386; }
.ibx-at { display: flex; gap: 6px; padding: 4px 6px; margin: 0; }
.ibx-at input { flex: 1; min-height: 34px; font-size: 13px; padding: 0 8px; }
.ibx-pop-note { padding: 4px 10px 6px; font-size: 11.5px; line-height: 1.4; color: var(--muted); white-space: normal; }
.ibx-switch { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ibx-switch input { width: 18px; height: 18px; accent-color: var(--violet); }
.ibx-alerts .desk-toggle { margin: 2px 6px 4px; }
.ibx-keys { padding: 6px 10px; font-size: 12.5px; text-align: left; }
.ibx-keys kbd, .ibx-keylist kbd { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border: 1px solid #DADDE7; border-bottom-width: 2px; border-radius: 6px; background: #FAFAFD; font: inherit; font-size: 12px; font-weight: 800; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }

/* the list column */
.ibx .ib-list { background: #fff; }
.ibx .ib-tabs { gap: 2px; padding: 6px 8px; }
.ibx .ib-views a span { background: var(--violet); }
.ibx-bulk { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--violet-bg); border-bottom: 1px solid #DCD6FF; margin: 0; }
.ibx-bulk[hidden] { display: none; }
.ibx-bulk b { font-size: 13.5px; font-weight: 800; color: var(--violet-ink); white-space: nowrap; }
.ibx-bulk select { min-height: 32px; max-width: 150px; padding: 0 26px 0 10px; border: 1px solid #CFC7FF; border-radius: 9px; font-size: 13px; font-weight: 700; }
.ibx-bulk .ibx-ib { background: #fff; border: 1px solid #CFC7FF; color: var(--navy); width: 32px; height: 32px; }
.ibx-bulk .ibx-ib.ok { color: var(--green); }
.ibx-bulk [data-pick-clear] { background: transparent; border: 0; color: var(--violet-ink); }
.ibx .ib-items { padding: 0; }
.ibx-day { position: sticky; top: 0; z-index: 2; margin: 0; padding: 8px 14px 4px; background: rgba(255,255,255,.96); font-size: 11.5px; font-weight: 800; color: #6B7386; }
.ibx .ib-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 12px; border-radius: 0; border-bottom: 1px solid #F1F2F6; }
.ibx .ib-item.needs::before { display: none; }
.ibx .ib-item:hover { background: #F7F8FC; }
.ibx .ib-item.on { background: #F1EEFF; }
.ibx .ib-item.kb { box-shadow: inset 3px 0 0 var(--violet); background: #F7F5FF; }
.ibx .ib-item.picked { background: #F4F2FF; }
.ibx-av { position: relative; width: 40px; height: 40px; cursor: pointer; }
.ibx-av input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ibx-av .av { width: 40px; height: 40px; flex-basis: 40px; font-size: 13px; transition: box-shadow .12s; }
.ibx-av:hover .av, .ibx-av:focus-within .av { box-shadow: 0 0 0 2px var(--violet); }
.ibx-tick { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; border-radius: 999px; background: var(--violet); color: #fff; }
.ib-item.picked .ibx-tick { display: flex; }
.inbox.picking .ib-item:not(.picked) .ibx-av .av { box-shadow: 0 0 0 2px #CFC7FF; }
.ibx-row { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); text-decoration: none; }
.ibx-row:hover { color: var(--ink); }
.ibx-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ibx-l1 b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-l1 time { flex: none; font-size: 11.5px; color: #8A91A3; white-space: nowrap; }
.ibx-l1 time.late { color: var(--red); font-weight: 800; }
.ib-item.unread .ibx-l1 b { font-weight: 800; }
.ib-item.unread .ibx-l1 time:not(.late) { color: var(--violet); font-weight: 800; }
.ibx-l2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ibx-prev { flex: 1; min-width: 0; font-size: 13px; color: #6B7386; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-prev i { font-style: normal; color: #8A91A3; }
.ib-item.unread .ibx-prev { color: var(--ink); font-weight: 600; }
.ibx-n { flex: none; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ibx-l3 { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 2px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.ibx-l3:empty { display: none; }
.ibx-l3 > * { flex: none; }
.ibx-tag { padding: 0 7px; border-radius: 999px; background: #F1F2F7; color: #2E3650; font-weight: 700; }
.ibx-tag.auto { color: #6B7386; }
.ibx-tag.ended { background: #FFF4E5; color: #93370D; }
.ibx-tag.snz { background: var(--violet-bg); color: var(--violet-ink); }
.ibx-soon { padding: 0 7px; border-radius: 999px; background: #FEF0C7; color: #93370D; font-weight: 700; }
.ibx-who { color: #545D70; font-weight: 700; }
.ibx-ctx { flex: 0 1 auto !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #8A91A3; }

/* the open chat and its details column */
.ibx .th { flex-direction: row; }
.th-main { flex: 1; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.th-info { display: none; flex: 0 0 300px; min-height: 0; flex-direction: column; background: #fff; border-left: 1px solid var(--line); }
.inbox.info-on .th-info { display: flex; }
.ibx .th-actions { gap: 6px; flex-wrap: nowrap; }
.ibx-hb { flex: none; width: 36px; height: 36px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.ibx-hb::-webkit-details-marker { display: none; }
.ibx-hb:hover { border-color: #C9C2F7; background: #FBFAFF; }
.ibx-hb.ok { color: var(--green); }
.ibx-hb.on, .ibx-hb[aria-pressed="true"], details[open] > .ibx-hb { background: var(--violet-bg); border-color: #CFC7FF; color: var(--violet-ink); }
.ibx-snoozed { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--violet-bg); color: var(--violet-ink); font-size: 12.5px; border-bottom: 1px solid #DCD6FF; }
.ibx-snoozed .linkish { margin-left: auto; font-weight: 800; }
.msg-row { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.msg.out .msg-row { flex-direction: row-reverse; }
.msg-row .mb { min-width: 84px; }
.msg-star { flex: none; opacity: 0; width: 30px; height: 30px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #8A91A3; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 3px rgba(13,31,78,.12); transition: opacity .12s; }
.msg:hover .msg-star, .msg-star:focus-visible, .msg-star.on { opacity: 1; }
.msg-star.on { color: #E8A33D; }
@media (hover: none) { .msg-star { opacity: .55; } }
.msg-starred { color: #E8A33D; margin-right: 2px; }
.msg-label.auto { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 700; color: #6B7386; }
.msg-label.auto .linkish { font-size: 11.5px; font-weight: 800; }
.msg.their-auto .mb { background: #F2F3F6; box-shadow: none; border: 1px dashed #CDD2E0; }
.msg.jumped .mb { box-shadow: 0 0 0 3px #CFC7FF; }
.cmp-tools { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; }
.cmp-tools .cmp-free, .cmp-tools .emo-btn { position: static; }
.cmp-field textarea { padding-right: 112px; }
.cmp-field:has(.cmp-suggest) textarea { padding-right: 200px; }
.cmp-suggest { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid #CFC7FF; border-radius: 9px; background: #F4F2FF; color: var(--violet-ink); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cmp-suggest:hover { background: var(--violet-bg); }
.ibx-suggest-slot:empty { display: none; }
.ibx-suggest-slot.htmx-request::before { content: "Writing a suggestion…"; display: block; padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: var(--violet-ink); }
.ibx-sug { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid #CFC7FF; border-radius: 12px; background: #fff; }
.ibx-sug-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--violet-ink); }
.ibx-sug-h small { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ibx-sug p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.ibx-sug-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ibx-sug-acts .iconbtn { margin-left: auto; }
.ibx-sug.err { flex-direction: row; align-items: center; justify-content: space-between; background: var(--red-bg); border-color: #F5C2BE; color: var(--red); font-size: 13px; font-weight: 700; }
.ibx-slash { max-height: 280px; overflow-y: auto; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(13,31,78,.14); }
.ibx-slash[hidden] { display: none; }
.ibx-slash-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: #fff; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ibx-slash-item b { color: var(--violet-ink); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-slash-item span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-slash-item.on, .ibx-slash-item:hover { background: #F4F2FF; }
.ibx-slash-hint, .ibx-slash-none { display: block; margin: 0; padding: 6px 10px; font-size: 11.5px; color: var(--muted); }
.ibx-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; margin: 8px 10px 4px; padding: 3px; border-radius: 10px; background: #F1F2F7; }
.ibx-seg button { height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ibx-seg button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(13,31,78,.12); }
.ibx-tabpane { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ibx-tabpane[hidden] { display: none; }
.ibx-who { display: flex; align-items: center; gap: 12px; }
.av.xl { width: 52px; height: 52px; flex-basis: 52px; font-size: 17px; }
.ibx-who-tx { display: flex; flex-direction: column; min-width: 0; }
.ibx-who-tx b { font-size: 16px; font-weight: 800; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-who-tx small { font-size: 12px; color: var(--muted); }
.ibx-usename { margin: 0; }
.ibx-facts { margin: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 7px 10px; align-items: center; font-size: 13px; }
.ibx-facts dt { color: #6B7386; font-weight: 600; }
.ibx-facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ibx-facts form { margin: 0; }
.ibx-facts select { min-height: 30px; padding: 0 26px 0 8px; border-radius: 8px; font-size: 13px; font-weight: 700; max-width: 100%; }
.ibx-tags span { display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px; border-radius: 999px; background: #F1F2F7; font-size: 12px; font-weight: 700; }
.ibx-sofar { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.ibx-sofar h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--navy); }
.ibx-sofar p { margin: 0; font-size: 12.5px; }
.ibx-note { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ibx-note label { font-size: 13px; font-weight: 800; color: var(--navy); }
.ibx-note textarea { min-height: 58px; font-size: 13px; }
.ibx-note .btn { align-self: flex-start; }
.ibx-full { font-size: 13px; font-weight: 700; }
.ibx-kbq { min-height: 34px; font-size: 13px; border-radius: 10px; }
.th-info .kb-results { padding: 0; }

/* starred messages, in place of the list */
.ibx-starhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.ibx-starhead b { font-size: 15px; font-weight: 800; color: var(--navy); }
.ibx-starhead span { font-size: 12px; color: var(--muted); }
.ibx-starhead .ibx-ib { margin-left: auto; }
.ibx-starq { margin: 0 10px 8px; }
.ibx-starq input { width: 100%; min-height: 34px; border-radius: 10px; background: var(--paper); border-color: transparent; font-size: 13px; }
.ibx-star-item { display: flex; flex-direction: column; gap: 5px; margin: 0 10px 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); text-decoration: none; }
.ibx-star-item:hover { border-color: #CFC7FF; color: var(--ink); }
.ibx-bub { align-self: flex-start; max-width: 95%; padding: 6px 9px; border-radius: 10px; background: #F1F2F7; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ibx-bub.out { align-self: flex-end; background: var(--wa-out, #DCF5D3); }
.ibx-star-item small { font-size: 11.5px; color: var(--muted); }
.ibx-keys-dialog { width: min(440px, 92vw); border: 0; border-radius: 16px; padding: 16px 18px; box-shadow: 0 24px 60px rgba(13,31,78,.25); }
.ibx-keys-dialog::backdrop { background: rgba(13,31,78,.35); }
.ibx-keylist { margin: 10px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 12px; align-items: center; font-size: 13px; }
.ibx-keylist dd { margin: 0; }
.ibx .ib-empty .small { margin-top: 4px; }

@media (max-width: 1100px) {
  .inbox.info-on .th-info, .th-info { display: none; }
  .ibx-hb.info { display: none; }
  .on-narrow { display: flex; }
}
@media (max-width: 860px) {
  .ibx .ib-bar { flex-wrap: wrap; }
  .ibx .ib-bar .ib-search { order: 5; flex: 1 1 calc(100% - 110px); }
  .ibx-fwrap { order: 6; }
  .ibx-chips { order: 7; flex: 1 1 100%; overflow-x: auto; }
  .ibx .ib-filters { order: 8; }
  .ibx-gap { display: none; }
  .ibx-fpop { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 80px); }
  .ibx .th-actions { width: auto; flex-wrap: wrap; justify-content: flex-end; }
  .cmp-suggest span { display: none; }
  .cmp-suggest { width: 34px; padding: 0; justify-content: center; }
  .cmp-tools .cmp-free, .cmp-tools .emo-btn { display: none; }  /* the phone's keyboard has emojis */
  .cmp-field textarea, .cmp-field:has(.cmp-suggest) textarea { padding-right: 14px; }
  .cmp-field:has(.cmp-suggest) textarea { padding-right: 48px; }
  .composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* "Calling for" (M10.38): which campaigns Call the next lead takes from */
.cf-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 10px; }
.cf-pick { position: relative; }
.cf-pick > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; cursor: pointer; list-style: none; }
.cf-pick > summary::-webkit-details-marker { display: none; }
.cf-pick > summary:hover { border-color: #C9C2F7; }
.cf-pick.on > summary, .cf-pick[open] > summary { background: var(--violet-bg); border-color: #C9C2F7; color: var(--violet-ink); }
.cf-l { font-weight: 600; color: var(--muted); }
.cf-pick.on .cf-l { color: var(--violet-ink); }
.cf-pick > summary b { font-weight: 800; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.cf-pick.on > summary b { color: var(--violet-ink); }
.cf-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 2px; padding: 10px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(13,31,78,.18); }
.cf-h { margin: 0 4px 6px; font-size: 12.5px; font-weight: 800; color: #545D70; }
.cf-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.cf-row:hover { background: #F7F5FF; }
.cf-row input { width: 18px; height: 18px; accent-color: var(--violet); }
.cf-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-row small { font-weight: 600; color: var(--muted); }
.cf-row b { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: #F1F2F7; font-size: 12px; text-align: center; color: var(--navy); }
.cf-note { margin: 6px 4px 2px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.cf-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.cf-else { font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.day-next { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.day-next .cf-wrap { align-items: flex-end; margin-top: 8px; }
.day-next .cf-pop { left: auto; right: 0; }
.pb-for { color: var(--violet-ink) !important; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-main .pb-span { color: #23704a !important; font-weight: 600; white-space: normal; overflow: visible; line-height: 1.35; }
.pb-span .t { white-space: nowrap; }
.pb-span .t { font-weight: 800; }
.pb-span.none { color: var(--muted) !important; font-weight: 500; }
@media (max-width: 760px) {
  .day-next { width: 100%; align-items: stretch; }
  .day-next .cf-wrap { align-items: stretch; }
  .cf-pick > summary { width: 100%; justify-content: space-between; box-sizing: border-box; }
  .day-next .cf-pop, .cf-pop { left: 0; right: auto; }
}
/* the picker's list must not be cut off by the call card's rounded corners */
.call-hero { overflow: visible; }
.call-hero > .ch-day { border-radius: 0 22px 22px 0; }
@media (max-width: 1000px) { .call-hero > .ch-day { border-radius: 0 0 22px 22px; } }

/* Inbox on a phone (M10.38.1): three slim rows on top — title, search with filter, then number,
   campaign and the filters that are on, side by side and scrolling sideways — then the chats */
@media (max-width: 860px) {
  .ibx .ib-bar { gap: 8px; padding: 8px 10px; align-items: center; }
  .ibx .ib-back { order: 1; padding: 6px 10px; }
  .ibx .ib-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ibx .ib-bar h1 { order: 2; font-size: 20px; }
  .ibx .ib-count { order: 3; }
  .ibx-alerts { order: 4; margin-left: auto; }
  .ibx .ib-bar .ib-search { order: 5; flex: 1 1 calc(100% - 56px); min-width: 0; max-width: none; margin-left: 0; }
  .ibx-fwrap { order: 6; }
  .ibx-fbtn { width: 40px; height: 36px; padding: 0; justify-content: center; position: relative; font-size: 0; gap: 0; }
  .ibx-fbtn svg { width: 17px; height: 17px; }
  .ibx-fbtn .ibx-fn { position: absolute; top: -6px; right: -6px; font-size: 10.5px; }
  .ibx .ib-filters { order: 7; flex: 1 1 100%; display: flex; gap: 6px; margin: 0; overflow-x: auto; }
  .ibx .ibf { flex: 1 1 0; min-width: 0; }
  .ibx .ibf select { width: 100%; max-width: none; min-height: 34px; font-size: 12.5px; padding: 0 26px 0 10px; }
  .ibx-chips { order: 8; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ibx-chips::-webkit-scrollbar { display: none; }
  .ibx .ib-tabs { padding: 6px; }
  .ibx .ib-views a { padding: 7px 2px; font-size: 13px; }
  .ibx .ibx-ib { width: 32px; height: 32px; }
  .ibx .ib-item { padding: 10px 10px 10px 12px; }
}

/* ---- My calls: booked rows and waiting list with badges (M10.39) ---- */
.bk-list { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bk-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); transition: background .12s; }
.bk-list a:hover { background: var(--blue-bg); }
.bk-list time b { display: block; font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }
.bk-list time small { font-size: 11px; color: var(--muted); }
.bk.late a { background: var(--red-bg); }
.bk.late time b { color: var(--red); }
.bk.moved a { background: var(--violet-bg); }
.bk.moved time b { color: var(--violet-ink); }
.bk-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-main > b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-note { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-end { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bk-late { color: var(--red); font-weight: 700; }
.bk-tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.kb { display: inline-block; max-width: 100%; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.bk.late .kb, .bk.moved .kb { background: rgba(255,255,255,.75); }
.kb.camp { background: var(--p-sky); color: var(--p-sky-ink); box-shadow: none; max-width: 190px; }
.kb.none { font-weight: 600; background: transparent; box-shadow: none; border: 1px dashed var(--field); line-height: 16px; }
.kb.mine { background: var(--p-lilac); color: var(--p-lilac-ink); box-shadow: none; }
.kb.k-callback, .kb.k-call_me { background: var(--p-peach); color: var(--p-peach-ink); box-shadow: none; }
.kb.k-demo { background: var(--p-mint); color: var(--p-mint-ink); box-shadow: none; }
.kb.k-senior, .kb.k-enquiry { background: var(--p-rose); color: var(--p-rose-ink); box-shadow: none; }
.kb.k-follow_up, .kb.k-warm { background: var(--p-lemon); color: var(--p-lemon-ink); box-shadow: none; }
.wl-head { flex-wrap: wrap; gap: 8px; }
.wl-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.wl-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.wl-camp { margin: 0; }
.wl-camp select { width: auto; min-height: 34px; height: 34px; padding: 0 28px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; max-width: 300px; }
.wl-camp select.on { box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet-ink); background-color: var(--violet-bg); }
.wl-sub { margin: 0 0 8px; }
.wait-list li { grid-template-columns: 28px minmax(0, 1fr) auto auto; }
.wl-who { display: flex; flex-direction: column; gap: 3px; }
.wl-who > b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.wl-wait { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) {
  .bk-list a { grid-template-columns: 44px minmax(0, 1fr); }
  .bk-end { grid-column: 2; justify-self: start; }
  .bk-end:empty { display: none; }
  .wait-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .wait-list li { gap: 4px 10px; padding: 8px 10px; }
  .wait-list li .wl-who { grid-column: 1; grid-row: 1 / span 2; }
  .wait-list li form { grid-column: 2; grid-row: 1; }
  .wait-list li .wl-wait { grid-column: 2; grid-row: 2; justify-self: center; font-size: 11px; }
  .wl-filters { margin-left: 0; width: 100%; }
  .wl-camp { flex: 1 1 100%; }
  .wl-camp select { width: 100%; max-width: none; }
  .kb.camp { max-width: 150px; }
}
.lo-toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); max-width: min(440px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(13,31,78,.28); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.lo-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- My calls: Waiting / Called tabs (M10.40) ---- */
.mc-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mc-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper); }
.mc-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 800; color: var(--muted); text-decoration: none; white-space: nowrap; }
.mc-tab:hover { color: var(--navy); }
.mc-tab.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(13,31,78,.12); }
.mc-tab .pill { font-size: 11.5px; }
.mc-tab.on .pill { background: var(--violet-bg); color: var(--violet-ink); }
.cl-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.cl-filters select { width: auto; min-height: 36px; height: 36px; padding: 0 28px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; max-width: 230px; }
.kb.next.late { background: var(--p-rose); color: var(--p-rose-ink); }
.cl-filters select.on { box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet-ink); background-color: var(--violet-bg); }
.cl-search { position: relative; display: inline-flex; align-items: center; flex: 1 1 180px; max-width: 280px; }
.cl-search svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.cl-search input { width: 100%; min-height: 36px; height: 36px; padding: 0 12px 0 32px; border-radius: 999px; font-size: 13px; }
.cl-clear { font-size: 13px; font-weight: 700; color: var(--violet-ink); }
.cl-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.cl-sum b { color: var(--navy); font-size: 14px; }
.cl-sum b.g { color: var(--green); }
.cl-sum span { margin: 0 4px; color: var(--quiet); }
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cl { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 9px 12px; border-radius: 12px; background: var(--paper); border-left: 3px solid transparent; }
.cl.t-green { border-left-color: #46B784; }
.cl.t-blue { border-left-color: #6E8FE0; }
.cl.t-red { border-left-color: #E07A6E; }
.cl.t-ink { border-left-color: var(--field); }
.cl time b { display: block; font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }
.cl time small { font-size: 11px; color: var(--muted); }
.cl-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-again { align-self: center; }
.kb.o-green { background: var(--p-mint); color: var(--p-mint-ink); box-shadow: none; }
.kb.o-blue { background: var(--p-sky); color: var(--p-sky-ink); box-shadow: none; }
.kb.o-red { background: var(--p-rose); color: var(--p-rose-ink); box-shadow: none; }
.kb.o-ink { background: #E9ECF4; color: var(--ink); box-shadow: none; }
.kb.next { background: var(--p-peach); color: var(--p-peach-ink); box-shadow: none; }
.cl .kb.camp { background: var(--card); box-shadow: inset 0 0 0 1px var(--p-sky-line); }
.cl-note { min-width: 0; }
.cl-note > summary { list-style: none; display: flex; align-items: center; gap: 6px; min-width: 0; cursor: pointer; font-size: 12.5px; color: var(--ink); }
.cl-note > summary::-webkit-details-marker { display: none; }
.cl-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-pen { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--violet-ink); background: var(--violet-bg); }
.cl-add { font-weight: 700; color: var(--violet-ink); }
.cl-ok { flex: none; font-size: 12px; font-weight: 700; color: var(--green); }
.cl-note[open] > summary .cl-text { white-space: normal; }
.cl-note form { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; }
.cl-note textarea { width: 100%; min-height: 70px; padding: 8px 10px; border-radius: 10px; font: inherit; font-size: 13px; resize: vertical; }
.cl-note-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-empty { padding: 8px 0; }
@media (max-width: 640px) {
  .mc-tabs { width: 100%; }
  .mc-tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 14px; gap: 6px; }
  .cl-filters select { flex: 1 1 0; min-width: 0; max-width: none; }
  .cl-search { flex: 1 1 100%; max-width: none; }
  .cl { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 8px 10px; gap: 5px 8px; }
  .cl > time { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 4px; }
  .cl > time b { font-size: 14px; }
  .cl-main { display: contents; }
  .cl-name { grid-column: 2; grid-row: 1; }
  .cl .bk-tags { grid-column: 1 / -1; grid-row: 2; }
  .cl-note { grid-column: 1 / -1; grid-row: 3; }
  .cl-again { grid-column: 3; grid-row: 1; align-self: center; }
  .cl-again .btn { min-height: 34px; padding: 0 10px; }
  .cl-again .btn span { display: none; }
  .kb.camp { max-width: 220px; }
}
.kb-time { align-self: center; margin-left: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wait-list li { grid-template-columns: 28px minmax(0, 1fr) auto; }
@media (max-width: 640px) {
  .mc-long { display: none; }
  .wait-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; }
  .wait-list li .wl-who { display: contents; }
  .wait-list li .wl-who > b { grid-column: 1; grid-row: 1; }
  .wait-list li .bk-tags { grid-column: 1 / -1; grid-row: 2; }
  .wait-list li form { grid-column: 2; grid-row: 1; }
  .wait-list li form .btn { min-height: 34px; }
}

/* ---- Calling for: the campaign switch above Call the next lead (M10.40) ---- */
.cf-switch { margin: 0 0 12px; }
.cf-box { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 40px 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; margin: 0; }
.cf-box:hover { border-color: #C9C2F7; }
.cf-switch.on .cf-box { border-color: #C9C2F7; background: var(--violet-bg); }
.cf-l { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cf-switch.on .cf-l { color: var(--violet-ink); }
.cf-box select { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 15px; font-weight: 800; color: var(--navy); appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; }
.cf-box select:focus-visible { outline: none; }
.cf-box:focus-within { outline: 3px solid #9DB4F0; outline-offset: 1px; }
.cf-switch.on .cf-box select { color: var(--violet-ink); }
.cf-chev { position: absolute; right: 14px; color: var(--muted); pointer-events: none; }
.call-hero .cf-else { margin: 8px 0 0; }
.day-next .cf-switch { margin: 8px 0 0; min-width: 300px; }
.cf-closed { list-style: none; margin: -4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-closed li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--p-lemon); color: var(--p-lemon-ink); font-size: 12.5px; }
.cf-closed li b { color: var(--navy); }
.cf-closed form { margin: 0; flex: none; }
.cf-closed .btn { min-height: 32px; background: #fff; white-space: nowrap; }
@media (max-width: 640px) { .cf-closed li { flex-direction: column; align-items: flex-start; } }
/* the weekday under date-time fields (app.js) and the call timer's states (call screen) */
.dt-day { display: block; flex-basis: 100%; order: 9; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--violet-ink); }
/* the call button's three looks: green Call, orange On the call (live), white Call ended */
.dial-btn { position: relative; transition: background .2s, color .2s, box-shadow .2s; }
.dial-btn .db-ic { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; }
.dial-btn .db-ic svg { grid-area: 1 / 1; }
.dial-btn .i-done, .dial-btn .db-pulse { display: none; }
.dial-btn .db-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.dial-btn .db-text small { font-size: 11.5px; font-weight: 700; opacity: .9; }
.dial-btn[data-state=live] { background: #D9480F; box-shadow: 0 10px 22px rgba(217,72,15,.32); }
.dial-btn[data-state=live]:hover { background: #BF3D0A; }
.dial-btn[data-state=live] .i-phone { display: none; }
.dial-btn[data-state=live] .db-pulse { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: dbPulse 1.4s ease-out infinite; }
@keyframes dbPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .dial-btn[data-state=live] .db-pulse { animation: none; } }
.dial-btn[data-state=done] { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px #A7E3C9; cursor: default; }
.dial-btn[data-state=done]:hover { background: #fff; color: var(--green); }
.dial-btn[data-state=done] .i-phone { display: none; }
.dial-btn[data-state=done] .i-done { display: block; }
.dial-btn[data-state=done] .timer { background: var(--green-bg); color: var(--green); }
.dial-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.dial-state .linkish { color: var(--violet-ink); font-size: 12.5px; }
.dial-btn .db-text { min-width: 0; }
.dial-btn .db-text b, .dial-btn .db-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dial-btn .db-ic, .dial-btn .timer { flex: none; }
.dial-btn { min-width: 220px; max-width: 100%; justify-content: center; }
@media (max-width: 860px) { .call-card > .cc-dial { flex: 1 1 100%; min-width: 0; } .cc-dial .dial-btn { width: 100%; min-width: 0; padding: 0 18px; gap: 10px; } }

/* ---- Inbox: what they tapped, in colour; the call mark; the Calls tab (M10.45) ---- */
.ibx-tag.said.good { background: var(--green-bg); color: var(--green); }
.ibx-tag.said.bad { background: var(--red-bg); color: var(--red); }
.ibx-call, .th-calls { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; }
.ibx-call.spoke, .th-calls.spoke { background: var(--green-bg); color: var(--green); }
.ibx-call.tried, .th-calls.tried { background: #EEF0F5; color: #6B7386; }
.th-calls { flex: none; height: 20px; padding: 0 7px; cursor: default; }
.th-calls[data-open-calls] { cursor: pointer; }
.th-calls[data-open-calls]:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ibx-seg-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; padding: 0 4px; border-radius: 999px; background: #E3E6EF; color: var(--muted); font-size: 10.5px; }
.ibx-seg-n.spoke { background: var(--green-bg); color: var(--green); }
.icl-wrap { padding: 4px 12px 14px; }
.icl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 8px; }
.icl-sum { margin: 0; font-size: 12.5px; color: var(--muted); }
.icl-sum b { color: var(--navy); }
.icl-sum b.g { color: var(--green); }
.icl-sum b.m { color: #6B7386; }
.icl-head .btn { min-height: 30px; padding: 0 10px; font-size: 12.5px; white-space: nowrap; }
.icl-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--p-peach); font-size: 12.5px; font-weight: 600; color: var(--p-peach-ink); }
.icl-next.late { background: var(--red-bg); color: var(--red); }
.icl-next .kb { background: #fff; }
.icl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.icl { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: var(--paper); border-left: 3px solid var(--field); }
.icl.t-green { border-left-color: #46B784; }
.icl.t-blue { border-left-color: #6E8FE0; }
.icl.t-red { border-left-color: #E07A6E; }
.icl-top { display: flex; flex-wrap: wrap; gap: 4px; }
.icl-by { font-size: 11.5px; color: var(--muted); }
.icl-note { margin: 2px 0 0; font-size: 12.5px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.icl-empty { margin: 4px 0; }
/* Save contact (a .vcf the phone offers to add) on the call screen */
.cc-save { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--violet-ink); text-decoration: none; }
.cc-save:hover { text-decoration: underline; }
/* the campaign page: why the leads not tried yet are waiting */
.pace-why { list-style: none; margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--p-lemon); color: var(--p-lemon-ink); font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.pace-why b { color: var(--navy); }
.pace-why a { color: var(--violet-ink); font-weight: 700; }
.pace-box { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 520px; }
.jr-head .pace-box .pace { max-width: none; }
@media (max-width: 760px) { .pace-box { align-items: stretch; max-width: none; } }

/* ---- a running campaign's setup, read-only (M10.48) ---- */
.ro-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--p-sky); color: var(--p-sky-ink); border: 1px solid var(--p-sky-line); }
.ro-banner .ro-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; flex: none; }
.ro-banner > div { flex: 1 1 280px; min-width: 0; }
.ro-banner b { color: var(--navy); }
.ro-banner p { margin: 2px 0 0; font-size: 13px; }
.ro-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ro-acts form { margin: 0; }
.ro-form button[type=submit], .ro-form .foot-actions .btn, .ro-form .btn.danger-link { display: none; }
.ro-form input:is([type=text], [type=number], [type=date], [type=time], [type=datetime-local], [type=search], [type=url], [type=email], [type=tel]):disabled,
.ro-form select:disabled, .ro-form textarea:disabled { opacity: 1; color: var(--ink); background-color: #FAFBFD; cursor: default; }
.ro-form .chip-check:has(input:disabled) { cursor: default; }
.em-view { font-size: 11px; font-weight: 700; color: var(--muted); }

/* ---- the campaign's people (M10.48) ---- */
.jr-st { position: relative; }
.jr-go { position: absolute; inset: 0; z-index: 0; border-radius: 10px; }
.jr-go:hover { background: rgba(91,71,224,.05); }
.jr-st .jr-out { position: relative; z-index: 1; }
.jr-st:hover > b { color: var(--violet); }
a.jr-chip { text-decoration: none; }
a.jr-chip:hover, .jr-chip a:hover { box-shadow: inset 0 0 0 1px currentColor; }
.jr-chip a { color: inherit; text-decoration: none; }
.pp-head { align-items: center; }
.pp-head h1 { display: flex; align-items: center; gap: 10px; }
.pp-card { padding: 16px 18px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: #F1F3F7; color: #4A5368; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.pp-chip b { color: var(--navy); font-variant-numeric: tabular-nums; }
.pp-chip:hover { box-shadow: inset 0 0 0 1px var(--field); }
.pp-chip.on { background: var(--violet); color: #fff; }
.pp-chip.on b { color: #fff; }
.pp-chip.t-yes:not(.on), .pp-chip.t-read:not(.on) { background: var(--p-mint); color: var(--p-mint-ink); }
.pp-chip.t-no:not(.on), .pp-chip.t-not_sent:not(.on), .pp-chip.t-not_on_whatsapp:not(.on) { background: var(--p-rose); color: var(--p-rose-ink); }
.pp-chip.t-held:not(.on) { background: var(--p-lilac); color: var(--p-lilac-ink); }
.pp-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 420px; margin-bottom: 12px; }
.pp-search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.pp-search input { min-height: 38px; height: 38px; padding-left: 34px; border-radius: 999px; font-size: 13.5px; }
.pp-clear { font-size: 13px; font-weight: 700; color: var(--violet-ink); white-space: nowrap; }
.pp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pp { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line-2); }
.pp:first-child { border-top: 0; }
.pp .av.sm { width: 34px; height: 34px; font-size: 12px; }
.pp-who { min-width: 0; display: flex; flex-direction: column; }
.pp-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pp-state small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.kb.pp-t-good { background: var(--p-mint); color: var(--p-mint-ink); box-shadow: none; }
.kb.pp-t-bad { background: var(--p-rose); color: var(--p-rose-ink); box-shadow: none; }
.kb.pp-t-info, .kb.pp-t-sky { background: var(--p-sky); color: var(--p-sky-ink); box-shadow: none; }
.kb.pp-t-read { background: #E3F0FF; color: #1F5FA8; box-shadow: none; }
.kb.pp-t-lilac { background: var(--p-lilac); color: var(--p-lilac-ink); box-shadow: none; }
.kb.pp-t-peach { background: var(--p-peach); color: var(--p-peach-ink); box-shadow: none; }
.kb.pp-t-wait, .kb.pp-t-grey { background: #EEF0F5; color: #4A5368; box-shadow: none; }
.pp-state .kb { max-width: 260px; }
.pp-pages { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0 2px; }
.pp-empty { padding: 14px 4px; }
@media (max-width: 640px) {
  .pp { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pp .av.sm { display: none; }
  .pp-state { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
  .pp-state .kb { max-width: 220px; }
}
.live-people { display: inline-flex; align-items: center; gap: 5px; }
/* "Add new matches" when new leads match: a blinking light and how many */
.nm-wrap .btn { gap: 8px; }
.nm-wrap.has .btn { border-color: #F2B26B; background: #FFF7EC; color: #8A4B08; }
.nm-led { width: 9px; height: 9px; border-radius: 50%; background: #F08C1A; box-shadow: 0 0 0 0 rgba(240,140,26,.6); animation: nmBlink 1.6s ease-out infinite; flex: none; }
@keyframes nmBlink { 0% { box-shadow: 0 0 0 0 rgba(240,140,26,.65); opacity: 1; } 60% { box-shadow: 0 0 0 9px rgba(240,140,26,0); opacity: .55; } 100% { box-shadow: 0 0 0 0 rgba(240,140,26,0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nm-led { animation: none; } }
.nm-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #F08C1A; color: #fff; font-size: 11.5px; }
/* Team: counts on the tabs, the picked caller as a chip, and lists that say why they're empty */
.tabs .tm-n { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(13,31,78,.07); font-size: 11px; font-weight: 800; color: inherit; }
.tm-h { display: flex; align-items: center; gap: 8px; }
.tm-person { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border-radius: 999px; background: var(--violet-bg); color: var(--violet-ink); font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid #DCD6FF; }
.tm-person:hover { border-color: var(--violet); }
.tm-empty { padding: 28px 0; line-height: 1.5; }
.tm-empty b { color: var(--navy); }

/* ---- WhatsApp a lead from the call screen and the lead panel (M10.50) ---- */
.cc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.cc-tools .cc-save { margin-top: 0; }
.cc-wa { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #E3F7EC; color: #0B7A44; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cc-wa:hover { background: #CDEFDC; }
.ti.wa { background: #E3F7EC; color: #0B7A44; }
.wa-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(13,31,78,.3); }
.wa-dialog::backdrop { background: rgba(13,31,78,.35); }
.wd { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.wd-head { display: flex; align-items: center; gap: 10px; }
.wd-head > div { flex: 1; min-width: 0; }
.wd-head h2 { margin: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-head small { color: var(--muted); font-size: 12.5px; }
.wd-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #E3F7EC; color: #0B7A44; flex: none; }
.wd-num { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.wd-num select { width: auto; min-height: 34px; height: 34px; border-radius: 999px; font-size: 13px; }
.wd-note { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF6E8; color: #8A4B08; font-size: 13px; }
.wd-note.ok { background: #E3F7EC; color: #0B6E3E; }
.wd-text { display: flex; flex-direction: column; gap: 8px; }
.wd-text textarea { min-height: 80px; border-radius: 12px; }
.wd-or { margin: 2px 0 0; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; }
.wd-tpls { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.wd-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; padding: 2px; }
.wd-tpl { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 10px 38px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.wd-tpl input { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; min-height: 0; accent-color: var(--violet); }
.wd-tpl:has(input:checked) { border-color: var(--violet); background: var(--violet-bg); }
.wd-tpl.off { opacity: .6; cursor: not-allowed; }
.wd-tpl-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wd-tpl-h b { font-size: 13.5px; color: var(--navy); }
.wd-tpl-b { font-size: 12.5px; color: var(--ink); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wd-tpl:has(input:checked) .wd-tpl-b { -webkit-line-clamp: unset; }
.wd-why { font-size: 12px; font-weight: 700; color: var(--red); }
.kb.mk { background: var(--p-peach); color: var(--p-peach-ink); box-shadow: none; }
.kb.ut { background: var(--p-sky); color: var(--p-sky-ink); box-shadow: none; }
.wd-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.wd-problem { margin: 0; padding: 10px 12px; border-radius: 10px; background: #F1F3F7; font-size: 13px; color: var(--ink); }
.wd-sent { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #E3F7EC; color: #0B6E3E; font-size: 13.5px; }
.wd-sent-acts { display: flex; justify-content: flex-end; gap: 8px; }
.wd-app { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.wd-app a { font-weight: 700; color: var(--violet-ink); }
@media (max-width: 640px) {
  .pp { grid-template-columns: minmax(0, 1fr) auto; }
  .pp-who { grid-column: 1; grid-row: 1; }
  .pp-state { grid-column: 1; grid-row: 2; }
  .pp .row-acts { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; }
}
/* People: a WhatsApp line and a calls line for each person */
.pp-state { gap: 4px; }
.pp-line { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.pp-i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; flex: none; }
.pp-i.wa { background: #E3F7EC; color: #0B7A44; }
.pp-i.call { background: var(--p-sky); color: var(--p-sky-ink); }
.kb.pp-oncall { background: var(--p-sky); color: var(--p-sky-ink); box-shadow: none; }
.kb.pp-wait { background: #FFF6E8; color: #8A4B08; box-shadow: none; }
@media (max-width: 640px) { .pp-line { justify-content: flex-start; } }
@media (max-width: 640px) { .pp-state { flex-direction: column; align-items: flex-start; gap: 4px; } }
/* Team: how the picked campaign's calls are shared out, as badges by the Callers title */
.tm-callers-head { flex-wrap: wrap; gap: 8px 12px; }
.tm-callers-head > .muted { margin-left: auto; }
.tm-how { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tm-how .kb { font-size: 12px; line-height: 20px; }
.kb.tm-mode { box-shadow: none; font-weight: 800; }
.kb.tm-mode.m-shared { background: var(--p-sky); color: var(--p-sky-ink); }
.kb.tm-mode.m-round_robin { background: var(--p-lilac); color: var(--p-lilac-ink); }
.kb.tm-mode.m-assigned { background: var(--p-peach); color: var(--p-peach-ink); }
.tm-how-link { font-size: 12px; font-weight: 700; color: var(--violet-ink); }

/* ---- lead rows: a few words on who it is, and call / WhatsApp right there (M10.54) ---- */
.lb { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-top: 2px; font-size: 11.5px; color: var(--muted); line-height: 18px; }
.lb-x + .lb-x::before { content: "·"; margin-right: 6px; color: var(--quiet); }
.lb-biz { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-st { padding: 0 7px; border-radius: 999px; font-weight: 700; background: var(--p-sky); color: var(--p-sky-ink); }
.lb-st.t-green { background: var(--p-mint); color: var(--p-mint-ink); }
.lb-st.t-red { background: var(--p-rose); color: var(--p-rose-ink); }
.lb-tp { font-weight: 700; }
.lb-tp.hot { color: #C2410C; }
.lb-tp.warm { color: #A16207; }
.lb-tp.cold { color: #1D6FB8; }
.lb-tag { padding: 0 7px; border-radius: 999px; background: #F1F2F7; color: #4A5368; font-weight: 600; }
.row-acts { display: inline-flex; gap: 6px; }
.ra { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none; }
.ra-call { background: var(--green); color: #fff; }
.ra-call:hover { background: #0b6647; color: #fff; }
.ra-wa { background: #E3F7EC; color: #0B7A44; }
.ra-wa:hover { background: #CDEFDC; }
a.lc-go { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
a.lc-go:hover { text-decoration: underline; }
.pp-else { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-style: italic; }
/* M10.54 Team call lists on a phone: one card per lead, the lead and its buttons first */
@media (max-width: 720px) {
  .tm-table thead { display: none; }
  .tm-table, .tm-table tbody { display: block; width: 100%; }
  .tm-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .tm-table td { display: block; padding: 0; border: 0; font-size: 13px; }
  .tm-table td.tm-pick { order: 0; align-self: flex-start; padding-top: 2px; }
  .tm-table td.tm-lead { order: 1; flex: 1 1 calc(100% - 132px); min-width: 0; }
  .tm-table td.tm-acts { order: 2; align-self: flex-start; margin-left: auto; }
  .tm-table td:not(.tm-lead):not(.tm-acts):not(.tm-pick) { order: 3; }
  .tm-table td .sub { display: inline; margin-left: 4px; }
  .tm-table td.tm-lead .sub { display: block; margin-left: 0; }
  .tm-table td[colspan] { flex: 1 1 100%; }
}
@media (max-width: 720px) {
  .tm-table tr.late { background: #FFF6F4; margin: 0 -8px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
  .tm-table tr.late td { background: none; }
}
@media (max-width: 720px) { .tm-table td.tm-tries::after { content: " " attr(data-label); color: var(--muted); } }

/* M10.55 Overview tasks you can act on: the task, the lead (opens in place), call, chat, join */
.od-tx { display: flex; flex-direction: column; min-width: 0; }
.od-tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-tx b a { color: inherit; }
.od-tx a.od-what { text-decoration: none; }
.od-tx a.od-what:hover { color: var(--violet-ink); text-decoration: underline; }
.od-acts { flex: none; }
.od-after .od-acts .ra { width: 28px; height: 28px; border-radius: 9px; }
.ra-meet { background: var(--violet-bg); color: var(--violet-ink); }
.ra-meet:hover { background: #E2DCFD; }
a.od-counts { text-decoration: none; border-radius: 8px; }
a.od-counts:hover span { color: var(--violet-ink); }
@media (max-width: 560px) {
  .ov-tasks .od-next { flex-wrap: wrap; }
  .ov-tasks .od-next .od-tx { flex-basis: calc(100% - 120px); }
  .ov-tasks .od-next .chip { margin-left: 0; }
  .ov-tasks .od-next .od-acts { margin-left: auto; }
  .od-after li { grid-template-columns: 64px minmax(0, 1fr) auto; }
}
.oh-scope { margin-top: 2px; font-size: 12.5px; color: var(--muted); max-width: 52ch; }
.od-cap-late { color: #B42318; }
.od-cap a { color: inherit; }
.od-late time { color: #B42318; }
.od-late { margin-bottom: 8px; }
.ov-tasks .od-next { flex-wrap: wrap; row-gap: 8px; }
.ov-tasks .od-next .od-tx { flex: 1 1 150px; }
.ov-tasks .od-next .od-foot { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding-left: 44px; }
.ov-tasks .od-next .od-foot .chip { margin-left: 0; }
.ov-tasks .od-next .od-foot .od-acts { margin-left: auto; }
.od-tx small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .od-after li { grid-template-columns: 74px minmax(0, 1fr) auto; } .od-after time { white-space: nowrap; font-size: 12.5px; } }
/* M10.56 Overview: small period pickers, Day by day (one row per measure, each its own scale), Team */
.ov-pick { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: #F1F2F8; border-radius: 10px; width: max-content; max-width: 100%; }
.ov-pick a { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ov-pick a:hover { color: var(--navy); background: #fff; }
.ov-pick a[aria-current] { background: #fff; color: var(--violet-ink); box-shadow: 0 1px 2px rgba(13,31,78,.08); }
.ov-team .ov-pick { margin: -4px 0 12px; }
.who-on .who-now { font-weight: 700; color: var(--muted); }
.team-table tfoot td { border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); padding-top: 9px; }
.ov-trend { --sent: #1F8FD6; --responses: #5B47E0; --calls: #D98A0B; }
.ov-trend .card-head { flex-wrap: wrap; gap: 8px 14px; }
.ov-trend h2 small { font-size: 13px; font-weight: 600; margin-left: 4px; }
.k-sent { --c: var(--sent); } .k-responses { --c: var(--responses); } .k-calls { --c: var(--calls); }
.tr-plot { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 2px; }
.tr-col { display: flex; flex-direction: column; border-radius: 8px; cursor: default; outline: none; }
.tr-col:hover, .tr-col:focus-visible { background: #F4F3FB; }
.tr-col:focus-visible { box-shadow: 0 0 0 2px var(--violet); }
.tr-col small { text-align: center; font-size: 10.5px; color: var(--muted); padding-top: 4px; min-height: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-col.today small { font-weight: 800; color: var(--navy); }
.tr-tip { position: absolute; top: -8px; transform: translateY(-100%); z-index: 5; display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(13,31,78,.14); font-size: 12.5px; color: var(--muted); pointer-events: none; }
.tr-tip b { color: var(--navy); font-size: 13px; margin-bottom: 2px; }
.tr-tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tr-tip span i { width: 12px; height: 2px; border-radius: 1px; background: var(--c); }
.tr-tip strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.tr-note { margin: 8px 0 0; }
@media (max-width: 640px) {
  .tr-col small { font-size: 9.5px; }
}
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ov-team .ov-pick { margin: 0 0 12px; }
.tr-tip { top: 6px; transform: none; }
@media (max-width: 640px) { .tr-col:not(.k5) small { visibility: hidden; } }
/* M10.57 Add people who are in another running campaign: the offer under the note, and the sheet */
.ovl-offer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 12px 0 4px; border-radius: 14px; background: #FFF7E8; border: 1px solid #F6DDB0; }
.ovl-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #B86E00; }
.ovl-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); }
.ovl-text b { color: var(--navy); font-size: 14.5px; }
.ovl-text a { color: var(--navy); font-weight: 600; }
.ovl-text small { font-weight: 800; color: #8A4B08; }
.ovl-offer .btn { flex: none; }
.confirm-ic.amber { background: #FFF1D6; color: #B86E00; }
.ovl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ovl-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #F6F7FB; }
.ovl-list li span { display: flex; flex-direction: column; min-width: 0; }
.ovl-list li span b { color: var(--navy); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovl-list li span small { color: var(--muted); font-size: 12px; }
.ovl-list li > b { font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.ovl-remember { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink); }
.ovl-remember input { margin-top: 3px; }
@media (max-width: 640px) { .ovl-offer { flex-wrap: wrap; } .ovl-offer .btn { width: 100%; justify-content: center; } }
/* M10.58 Day by day: WhatsApp (sent + replies stacked) and calls side by side on one scale, and what people sent */
.tc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; margin-top: 6px; align-items: start; }
.tc-legend { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.tc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tc-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.tc-legend b { color: var(--navy); font-size: 15px; font-variant-numeric: tabular-nums; }
.tc-legend small { font-size: 12px; }
.tc { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px; }
.tc-y { position: relative; height: 200px; }
.tc-y span { position: absolute; right: 0; transform: translateY(50%); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-plot { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 2px; }
.tc-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); pointer-events: none; }
.tc-plot .tr-col { position: relative; z-index: 1; }
.tc-bars { height: 200px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.tc-wa, .tc-call { height: 100%; width: min(18px, 40%); display: flex; flex-direction: column; justify-content: flex-end; }
.tc-wa i, .tc-call i { display: block; width: 100%; background: var(--c); min-height: 2px; }
.tc-wa i + i { margin-top: 2px; }
.tc-wa i:first-child, .tc-call i:first-child { border-radius: 4px 4px 0 0; }
.tc-said h3 { font-size: 14px; color: var(--navy); margin: 2px 0 10px; }
.said-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.said-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "label n pct" "track track track"; gap: 3px 8px; align-items: baseline; font-size: 13px; }
.sb-label { grid-area: label; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.said-bars b { grid-area: n; color: var(--navy); font-variant-numeric: tabular-nums; }
.said-bars small { grid-area: pct; color: var(--muted); font-size: 11.5px; min-width: 32px; text-align: right; }
.sb-track { grid-area: track; height: 8px; border-radius: 4px; background: #EFECFF; overflow: hidden; }
.sb-track i { display: block; height: 100%; border-radius: 4px; background: var(--responses); }
@media (max-width: 1100px) { .tc-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .tc { grid-template-columns: 30px minmax(0, 1fr); gap: 4px; }
  .tc-y, .tc-bars { height: 160px; }
  .tc-wa, .tc-call { width: 44%; }
  .tc-bars { gap: 1px; }
}
.tc-grids { position: absolute; left: 0; right: 0; top: 0; height: 200px; pointer-events: none; }
@media (max-width: 640px) { .tc-grids { height: 160px; } }
/* M10.59 Not a question */
.q-close { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.q-close form { margin: 0; }
.q-notq { color: #B42318; }
.aq-x { display: inline; margin: 0 0 0 4px; vertical-align: middle; }
.aq-x .iconbtn { width: 24px; height: 24px; color: var(--muted); }
.aq-x .iconbtn:hover { color: #B42318; }
.q-card.invalid { opacity: .85; }
/* M10.60 "?" help that opens on click or tap (inline: it can sit inside a sentence) */
.hpop { display: inline-block; position: relative; vertical-align: middle; line-height: 1; }
.hpop > .tip-dot { display: inline-grid; place-items: center; }
.hpop.open > .tip-dot { background: var(--violet-bg); color: var(--violet-ink); border-color: #D6CEFB; }
.hpop-card { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(340px, calc(100vw - 32px)); padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(13,31,78,.18); font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--ink); text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; }
.hpop.open > .hpop-card { display: block; }
.hpop-card .hp-h { display: block; color: var(--navy); font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.hpop-card .hp-p { display: block; margin: 0 0 6px; color: var(--muted); }
.hpop-card .hp-p:last-child { margin-bottom: 0; }
.hp-left .hpop-card { left: auto; right: -8px; transform: none; }
.jf-meta small b.jf-next { color: var(--navy); font-weight: 800; }
.jf .jf-l .hpop .tip-dot { width: 16px; height: 16px; font-size: 10px; margin-left: 2px; }
.jr-foot .hpop-card { top: auto; bottom: calc(100% + 8px); left: -10px; transform: none; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .hpop-card, .jr-foot .hpop-card, .hp-left .hpop-card { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; transform: none; max-height: 70vh; overflow: auto; }
}
/* M11 the LeadOrbit Android app */
.in-app [data-install-card] { display: none !important; }
.ph-from { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #EEF6FF; color: var(--ink); font-size: 13.5px; }
.autodial { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #FFF4E5; border: 1px solid #F6D7A8; font-size: 14px; color: var(--navy); }
.autodial b#autodial_n { font-size: 18px; font-variant-numeric: tabular-nums; }
.ad-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.ad-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.ad-toggle small { color: var(--muted); }
.ph-unsaved { border-color: #CFE3FB; }
.phu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.phu { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
.phu:last-child { border-bottom: 0; }
.phu-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #EAF3FF; color: #1F6FD0; font-weight: 800; }
.phu.missed .phu-ic, .phu.rejected .phu-ic { background: var(--red-bg); color: var(--red); }
.phu-who { display: flex; flex-direction: column; min-width: 0; }
.phu-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phu-who small { color: var(--muted); font-size: 12.5px; }
.phu-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.phu-acts form { margin: 0; }
@media (max-width: 640px) { .phu { grid-template-columns: 30px minmax(0, 1fr); } .phu-acts { grid-column: 2; justify-content: flex-start; } }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.app-get .btn small { font-weight: 600; opacity: .85; }
.app-ok { color: var(--green); font-weight: 700; }
.app-perms { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.app-perms li { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.app-perms li.on { background: var(--green-bg, #E3F6EE); color: var(--green); }
.app-perms li.off { background: #FDEFD9; color: #8A5300; }
.app-steps { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.app-steps li b, .app-what li b { display: block; color: var(--navy); }
.app-steps li span, .app-what li span { color: var(--muted); font-size: 13.5px; }
.app-what { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.app-phones { list-style: none; margin: 0; padding: 0; }
.app-phones li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.app-phones li span { display: flex; flex-direction: column; }
.app-phones li small { color: var(--muted); }
.app-phones form { margin: 0; }
.cl-rec { margin: 6px 0 2px; max-width: 420px; }
.tm-rec { margin-top: 6px; min-width: 200px; max-width: 320px; }
/* Settings → Phones: the second line under a cell; one card per phone on a phone screen */
.ph-table small.sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
@media (max-width: 640px) {
  .ph-table thead { display: none; }
  .ph-table, .ph-table tbody, .ph-table tr, .ph-table td { display: block; width: 100%; }
  .ph-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .ph-table td { border: 0; padding: 0; text-align: left; }
  .ph-table td:nth-child(1) { grid-column: 1; }
  .ph-table td:nth-child(5) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .ph-table td:nth-child(2), .ph-table td:nth-child(3) { grid-column: 1; }
  .ph-table td:nth-child(4) { grid-column: 1; color: var(--muted); font-size: 13px; }
  .ph-table td:nth-child(4)::after { content: " " attr(data-label); }
  .ph-table td:nth-child(3)::before { content: attr(data-label) " "; color: var(--muted); }
}

/* M11.1 — phones (Samsung S24 is 384px wide): nothing wider than the screen */
.ds, .ds-who, .ds-banner, .ds-list, .ds-item, .ds-form { min-width: 0; max-width: 100%; }
.ds-via { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-tx { min-width: 0; }
.ds-tx b, .ds-tx small { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  body { overflow-x: clip; }  /* a long name never makes the whole page slide sideways */
}
/* The inbox's Snooze and ⋯ menus: a sheet at the bottom on a phone (they ran off the left edge) */
@media (max-width: 640px) {
  .ibx-pop, .ibx-pop.right { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    min-width: 0; max-height: 72vh; overflow-y: auto; z-index: 91; padding: 10px; border-radius: 18px; box-shadow: 0 -12px 50px rgba(13,31,78,.28); }
  .ibx-menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(13,31,78,.32); }
  .ibx-opt { min-height: 46px; font-size: 15px; }
  .ibx-pop-h { font-size: 13px; padding: 4px 10px 8px; }
}
/* Send from my WhatsApp (the Android app) */
.ds-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds-btns .btn, .ds-btns .ds-phone { flex: 1 1 160px; }
.ds-phone { min-height: 44px; padding: 0 16px; border: 1.5px solid #9FDDB8; border-radius: 12px; background: #E7F8EE; color: #0B6B3A;
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }  /* WhatsApp's green, like the WhatsApp pill */
.ds-phone:hover { background: #D6F3E2; }
.ds-phone:disabled { opacity: .6; cursor: wait; }
.ds-phone:focus-visible { outline: 3px solid #9FDDB8; outline-offset: 2px; }
.ds-phone svg { flex: none; }
.ds-phone-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.ds-phone, .ds-phone-note { display: none; }
body.app-wa .ds-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
body.app-wa .ds-phone-note { display: block; }
.ds-phone-note.bad { color: #B42318; font-weight: 600; }
.ds-phone-note.ok { color: #0B6B3A; font-weight: 600; }
.ph-wa { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; margin-top: 16px; border-radius: 14px; background: #F3FBF6; border: 1px solid #CBEBD7; }
.ph-wa b { color: var(--navy); }
.ph-wa p { margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 60ch; }
.ph-wa form { margin: 0; }

/* M11.2 — a call's recording, or why there isn't one */
.rec-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; }
.rec-line .rec-tag { flex: none; font-size: 14px; }
.rec-line > :last-child { flex: 1; min-width: 0; }
.rec-state { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.rec-state.rs-waiting { color: #1F6FB2; }
.rec-state.rs-missing, .rec-state.rs-no_access { color: #8A5300; }
.ph-rec.r-ok { color: var(--green); }
.ph-rec.r-none_found, .ph-rec.r-no_access { color: #8A5300; }

/* M11.2 — My calls: each section says what it is (icon, title, count, one line) */
.sec-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.sec-ic.s-save { background: #E7F8EE; }
.sec-ic.s-booked { background: #FFF1DE; }
.sec-ic.s-later { background: #EAF2FF; }
.sec-ic.s-lists { background: #EFEBFF; }
.sec-ic.s-help { background: #F0F1F6; color: #545D70; }
.mc-sec > .card-head { justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: nowrap; }
.sec-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sec-t h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-hint { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.fold-head, .mc-help, .ch-today, .list-chips { display: none; }
.phu-more { grid-column: 2 / -1; margin-top: 2px; }
.phu-more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--violet-ink); list-style: none; }
.phu-more summary::-webkit-details-marker { display: none; }
.phu-more summary::after { content: " ▾"; }
.phu-more[open] summary::after { content: " ▴"; }
.phu-more ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.phu-more li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.phu-more li > span { flex: 1; min-width: 0; }
.phu-more form { margin: 0; }
.mc-how { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.mc-how b { color: var(--navy); }
.mc-help .they-called { margin-top: 12px; }

/* Bottom bar (phones) */
.bnav { display: none; }

@media (max-width: 760px) {
  .fold-head { display: flex; }
  .wait-card:not([data-folded]) > .fold-head { margin-bottom: 10px; }
  .mc-help { display: block; }
  .hero-help, .hero-chips { display: none !important; }
  .list-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
  .call-hero .ch-day { display: none; }
  .call-hero .ch-next { padding: 18px 16px 16px; gap: 12px; }
  .ch-today { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); text-decoration: none; background: #FAFBFD; border-radius: 0 0 22px 22px; }
  .ch-today > span { font-weight: 800; color: var(--navy); margin-right: 4px; }
  .ch-today b { color: var(--navy); }
  .ch-today em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--violet-ink); }
  .mc-sec { padding: 14px 16px; }

  /* folding cards: tap the heading */
  [data-fold] > .card-head { cursor: pointer; position: relative; padding-right: 26px; margin-bottom: 0; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
  [data-fold] > .card-head::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2.4px solid #8A93A8; border-bottom: 2.4px solid #8A93A8; transform: translateY(-75%) rotate(45deg); transition: transform .18s ease; }
  [data-fold][data-folded] > .card-head::after { transform: translateY(-40%) rotate(-45deg); }
  [data-fold]:not([data-folded]) > .card-head { margin-bottom: 12px; }
  [data-fold][data-folded] > :not(.card-head) { display: none !important; }
  [data-fold] > .card-head:focus-visible { outline: 3px solid var(--violet-bg); outline-offset: 4px; border-radius: 8px; }

  /* the call screen: the call, why, how it went — then the rest, folded */
  .call-layout { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .call-main, .call-side { display: contents; }
  .call-layout > .call-main > *, .call-layout > .call-side > * { min-width: 0; max-width: 100%; }
  .call-layout .call-card { order: 1; }
  .call-layout .why-card { order: 2; }
  .call-layout .outcome-card { order: 3; }
  .call-layout .q-card { order: 4; }
  .call-layout .wa-card { order: 5; }
  .call-layout .script-card { order: 6; }
  .call-layout .history-card { order: 7; }
  .call-layout .call-tasks { order: 8; }
  .call-layout .docs-card { order: 9; }
  .call-layout .files-card { order: 10; }
  .call-layout .about-card { order: 11; }
  .call-layout > .call-main > .card, .call-layout > .call-side > .card { padding: 14px 16px; }

  /* bottom bar */
  body.has-bnav .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 22px rgba(13,31,78,.07); }
  body.has-bnav .page { padding-bottom: 90px; }
  body.has-bnav.typing .bnav { display: none; }
  body.has-bnav .nav-burger { display: none; }
  body.has-bnav .side[data-open] .nav-burger { display: inline-flex; }
  .bnav a, .bnav button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 700; color: #646C80; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bnav [aria-current="page"] { color: var(--violet-ink); }
  .bn-ic { position: relative; width: 52px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
  .bnav [aria-current="page"] .bn-ic { background: var(--violet-bg); color: var(--violet); }
  .bn-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; border: 2px solid #fff; }
  .bn-n[hidden] { display: none; }

  /* sheets instead of boxes */
  dialog.confirm { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 90vh; }
  dialog.confirm form { padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
}

.oc-more { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 760px) {
  .oc-more { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FAFBFD; gap: 12px; }
  .oc-more > .card-head { margin: 0; }
  .oc-more > .card-head b { color: var(--navy); font-size: 14.5px; }
}
.dial-rec { display: block; margin-top: 4px; font-size: 12.5px; }
.dial-rec.ok { color: #1F6FB2; }
.dial-rec.warn { color: #8A5300; }
@media (max-width: 760px) {
  .outcome-actions .btn.ghost { white-space: nowrap; padding-left: 8px; padding-right: 8px; font-size: 14px; }
}
/* Leads on a phone: the search, then the filters behind one button */
[data-fb-toggle] { display: none !important; }
@media (max-width: 760px) {
  .filterbar [data-fb-toggle] { display: inline-flex !important; align-items: center; gap: 6px; order: -1; }
  .filterbar:not(.fb-open) > select, .filterbar:not(.fb-open) > .columns { display: none; }
  .filterbar.fb-open > select { flex: 1 1 calc(50% - 10px); min-width: 0; }
}
/* A call recording's bin (admins) */
.rec-del { margin: 0; flex: none; display: inline-flex; }
.rec-bin { width: 32px; height: 32px; border-radius: 10px; color: #8E1C13; background: transparent; }
.rec-bin:hover, .rec-bin:focus-visible { background: var(--red-bg); color: #B42318; }
.files li.f-audio { flex-wrap: wrap; }
.files li.f-audio .rec-del { margin-left: auto; }
.rec-state.rs-deleted { color: var(--muted); font-style: italic; }

/* M11.4 — sheets and drawers sit above the bottom bar (it hides while one is open) */
.ibx-fhead .ibx-fx { width: 32px; height: 32px; margin: -6px -6px 0 4px; align-self: center; border-radius: 10px; color: #545D70; }
.ibx-fhead .ibx-fx:hover { background: #F0F1F6; }
@media (max-width: 760px) {
  body:has(.overlay:not([hidden])) .bnav,
  body:has(dialog[open]) .bnav,
  body:has(.ibx-fpop:not([hidden])) .bnav,
  body:has(details.ibx-menu[open]) .bnav { display: none !important; }
  .ibx-fpop { z-index: 95; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 86dvh; border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: 0 -16px 50px rgba(13,31,78,.3); }
  body:has(.ibx-fpop:not([hidden]))::after { content: ""; position: fixed; inset: 0; z-index: 94; background: rgba(13,31,78,.34); }
  .ibx-fhead { padding: 16px 16px 10px; align-items: center; }
  .ibx-fhead b { font-size: 17px; }
  .ibx-ffoot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .ibx-ffoot .btn { flex: 1; min-height: 46px; font-size: 15px; }
}

/* M12 — dealers and regions */
.dl-lic-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dl-lic-row > div:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--navy); }
.dl-lic-row > div:first-child b { font-size: 20px; }
.dl-lic-row small { color: var(--muted); font-size: 12.5px; }
.dl-meter { flex: 1 1 160px; height: 10px; border-radius: 999px; background: #EEF0F6; overflow: hidden; min-width: 120px; }
.dl-meter i { display: block; height: 100%; background: linear-gradient(90deg, #5B47E0, #8C7BFF); border-radius: 999px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
@media (max-width: 960px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.rg-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rg details { border: 1px solid var(--line); border-radius: 12px; background: #FAFBFD; }
.rg summary { cursor: pointer; list-style: none; padding: 10px 12px; display: flex; flex-direction: column; }
.rg summary::-webkit-details-marker { display: none; }
.rg summary b { color: var(--navy); }
.rg summary small { color: var(--muted); font-size: 12.5px; }
.rg-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.rg-mgrs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rg-mgrs li { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.rg-mgrs form { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form input[type=text], .inline-form select { flex: 1 1 160px; min-width: 0; }
.dl-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.dl-filter input { flex: 1 1 200px; }
.dl-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.dl a:hover { background: #FAFAFE; }
.dl.paused { opacity: .6; }
.dl-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: hsl(var(--h, 250) 45% 32%); background: hsl(var(--h, 250) 70% 92%); }
.dl-main { display: flex; flex-direction: column; min-width: 0; }
.dl-main b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-nums { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.dl-nums b { color: var(--navy); }
.dl-nums small { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .dl a { grid-template-columns: 36px minmax(0, 1fr) auto; } .dl a .dl-nums:last-of-type { display: none; } }
.dl-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 18px; align-items: start; }
@media (max-width: 960px) { .dl-form-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-form { display: flex; flex-direction: column; gap: 14px; }
.dl-fs { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dl-fs legend { padding: 0 6px; font-weight: 800; color: var(--navy); font-size: 14px; }
.dl-side { display: flex; flex-direction: column; gap: 14px; }
.dl-people { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; }
.dl-people li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.dl-people li span { display: flex; flex-direction: column; min-width: 0; }
.dl-people li small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.dl-people li.off { opacity: .55; }
.dl-people form { margin: 0; }
.dl-add form, .dl-staff-add { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.dl-login { border: 2px solid #9FDDB8; background: #F3FBF6; }
.dl-login h2 { color: #0B6B3A; font-size: 18px; }
.dl-pass { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.pl-list { display: flex; flex-direction: column; gap: 12px; }
.pl-co-head { display: flex; flex-direction: column; margin-bottom: 10px; }
.pl-co-head b { color: var(--navy); font-size: 16px; }
.pl-co-head small { color: var(--muted); }
.pl-co-row { display: grid; grid-template-columns: 140px 140px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .pl-co-row { grid-template-columns: 1fr 1fr; } }
.pl-feats { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 6px; }

/* M12 — a dealer's Today */
.td-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.td-head h1 { margin: 0; }
.td-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.td-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: min(420px, 100%); }
.td-stats a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.td-stats a:nth-child(1) { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.td-stats a:nth-child(2) { background: var(--p-sky); border-color: var(--p-sky-line); }
.td-stats a:nth-child(3) { background: var(--p-mint); border-color: var(--p-mint-line); }
.td-stats a.hot { background: var(--p-peach); border-color: var(--p-peach-line); }
.td-stats b { font-size: 24px; line-height: 1.1; color: var(--navy); }
.td-stats small { font-size: 12px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.td-list, .tdc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.td-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.td-list li:last-child, .tdc-list li:last-child { border-bottom: 0; }
.td-list li.late .td-who small { color: var(--orange); }
.td-who { display: flex; flex-direction: column; min-width: 0; }
.td-who b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-who b a { color: inherit; text-decoration: none; }
.td-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-acts { display: flex; gap: 6px; flex: none; }
.td-empty { margin: 4px 0 2px; }
.tdc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.tdc-who { display: flex; flex-direction: column; min-width: 0; }
.tdc-who b { color: var(--navy); font-size: 15.5px; letter-spacing: .01em; }
.tdc-who small { color: var(--muted); font-size: 12.5px; }
.tdc-src { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tdc-src .chip-btn { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--p-lilac-line); background: var(--p-lilac); color: var(--p-lilac-ink); cursor: pointer; }
.tdc-src .chip-btn:hover { background: #E3DDFF; }
.tdc-no { grid-row: 1; grid-column: 2; }
.tdc.busy { opacity: .55; pointer-events: none; }
.tdc.saved .tdc-who b::after { content: " ✓"; color: var(--green); }
.td-callers { border: 2px solid var(--p-lilac-line); }
.td-week { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 720px) { .td-week { grid-template-columns: minmax(0, 1fr); } .td-stats { min-width: 100%; } }
.td-week h3 { font-size: 13.5px; margin: 0 0 8px; color: var(--navy); }
.td-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.td-bars li { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 32px; gap: 8px; align-items: center; font-size: 13px; }
.td-bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-bars li i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), #8E7DFF); width: var(--w); min-width: 4px; }
.td-bars li b { text-align: right; color: var(--navy); }
.td-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.td-stages li { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--blue-bg); min-width: 84px; }
.td-stages li b { font-size: 18px; color: var(--navy); }
.td-stages li span { font-size: 12px; color: var(--muted); }
.td-stages li.c-won { background: var(--p-mint); }
.td-stages li.c-lost { background: var(--p-rose); }
.dl-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 180px; padding: 1px 8px; margin-left: 4px; border-radius: 999px; background: var(--p-lemon); border: 1px solid var(--p-lemon-line); color: var(--p-lemon-ink); font-size: 11.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* M12 — posters */
.pst-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pst-head p { margin: 2px 0 0; max-width: 64ch; }
.pst-as { display: flex; align-items: center; gap: 8px; }
.pst-as select { min-height: 36px; max-width: 240px; }
.pst-add { margin-bottom: 16px; }
.pst-add > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.pst-add > summary::-webkit-details-marker { display: none; }
.pst-add-t { font-weight: 800; color: var(--violet-ink); font-size: 15px; }
.pst-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pst-colors { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pst-colors legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink); width: 100%; }
.pst-sw { position: relative; display: inline-flex; cursor: pointer; }
.pst-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pst-sw i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #fff; }
.pst-sw input:checked + i { border-color: var(--violet); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--violet-bg); }
.pst-sw input:focus-visible + i { outline: 2px solid var(--violet); outline-offset: 2px; }
.pst-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pst { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pst-pic { position: relative; background: repeating-linear-gradient(45deg, var(--paper) 0 10px, #fff 10px 20px); }
.pst-pic canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .25s; }
.pst.ready .pst-pic canvas { opacity: 1; }
.pst-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.pst-t { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pst-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.pst-acts .btn { flex: 1; justify-content: center; }
.pst-acts .btn svg { margin-right: 5px; }
.pst-edit form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pst-empty { text-align: center; padding: 28px; }
@media (max-width: 520px) { .pst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pst-acts .btn { padding: 0 8px; font-size: 12.5px; } .pst-body { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .pst-pic canvas { transition: none; } }

/* M12 — dealer report */
.dr-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
@media (max-width: 900px) { .dr-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dr-sum .dr-k:first-child { grid-column: 1 / -1; } }
.dr-k { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.dr-k b { font-size: 26px; line-height: 1.1; color: var(--navy); }
.dr-k b small { font-size: 15px; margin-left: 1px; }
.dr-k span { font-size: 12.5px; color: var(--muted); }
.dr-k.k-lilac { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.dr-k.k-mint { background: var(--p-mint); border-color: var(--p-mint-line); }
.dr-k.k-sky { background: var(--p-sky); border-color: var(--p-sky-line); }
.dr-k.k-peach { background: var(--p-peach); border-color: var(--p-peach-line); }
.dr-k.k-lemon { background: var(--p-lemon); border-color: var(--p-lemon-line); }
.dr-regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dr-regions li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.dr-regions li b { color: var(--navy); }
.dr-regions li span { font-size: 12.5px; color: var(--muted); }
.dr-regions li i { font-style: normal; font-weight: 800; color: var(--ink); }
.dr-wrap { overflow-x: auto; }
.dr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dr-table th, .dr-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; white-space: nowrap; }
.dr-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; white-space: normal; vertical-align: bottom; }
.dr-table tbody th, .dr-table tfoot th { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.dr-table td.dr-src { white-space: normal; min-width: 150px; }
.dr-table td small { display: block; }
.dr-table .n { text-align: right; }
.dr-table tbody th { font-weight: 400; position: sticky; left: 0; background: var(--card); max-width: 220px; }
.dr-table .dr-name { display: block; font-weight: 800; color: var(--navy); overflow: hidden; text-overflow: ellipsis; }
.dr-table .dr-name a { color: inherit; text-decoration: none; }
.dr-table tbody th small { color: var(--muted); font-size: 12px; }
.dr-table tr.ho th, .dr-table tr.ho td { background: var(--paper); }
.dr-table tr.paused { opacity: .6; }
.dr-table tfoot th, .dr-table tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--line); }
.dr-src span { display: inline-flex; gap: 4px; margin-right: 8px; color: var(--ink); }
.dr-src b { color: var(--muted); font-weight: 700; }
.dr-pct { display: inline-block; min-width: 44px; padding: 2px 8px; border-radius: 999px; font-weight: 800; text-align: center; background: var(--paper); }
.dr-pct.good { background: var(--p-mint); color: var(--p-mint-ink); }
.dr-pct.bad { background: var(--p-rose); color: var(--p-rose-ink); }
.dr-warn { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--p-peach); color: var(--p-peach-ink); font-weight: 800; text-align: center; }

/* M13 — My day, compact: the next call first, then one card with today's numbers */
.day-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-areas: "hero next"; gap: 16px; align-items: start; margin-bottom: 18px; }
.day-top.solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero"; }
.next-card { grid-area: next; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, var(--p-lilac), #F8F6FF); border: 1px solid var(--p-lilac-line); }
.next-card form { margin: 0; }
.next-card .btn.big-next { width: 100%; min-height: 54px; justify-content: center; gap: 10px; font-size: 16.5px; }
.next-card .cf-switch { margin: 0; }
.next-card .cf-box { min-height: 42px; border-color: var(--p-lilac-line); background: #fff; }
.next-card .cf-switch.on .cf-box { border-color: #C9C2F7; background: #fff; }
.next-card .cf-l, .next-card .cf-switch.on .cf-l { color: var(--violet-ink); }
.next-card .cf-box select { color: var(--navy); font-size: 14px; min-height: 40px; }
.next-card .cf-box select option { color: var(--ink); }
.next-card .cf-chev { color: var(--violet-ink); }
.next-card .cf-closed { margin: 0; }
.day-top .day-hero { grid-area: hero; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-areas: "count stats" "time time"; gap: 14px 22px; padding: 18px 20px; margin: 0; }
.dh-count { grid-area: count; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dh-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dh-num b { font-size: 42px; line-height: 1; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dh-num span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.dh-goal { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.dh-goal i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), #8C7BFF); }
.dh-goal.met i { background: linear-gradient(90deg, var(--green), var(--mint)); }
.dh-goal-t { font-size: 12px; font-weight: 700; color: var(--muted); }
.day-top .dh-stats div { padding: 9px 11px; }
.day-top .dh-stats b { font-size: 22px; }
.tl-signed { margin-left: auto; }
@media (max-width: 960px) {
  .day-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "next" "hero"; gap: 12px; }
}
@media (max-width: 720px) {
  .day-head h1 { font-size: 26px; }
  .day-head p { font-size: 13.5px; }
  .next-card { padding: 12px; border-radius: 18px; gap: 8px; }
  .next-card .btn.big-next { min-height: 52px; }
  .day-top .day-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "count" "stats" "time"; justify-items: stretch; padding: 14px; gap: 12px; }
  .dh-num b { font-size: 34px; }
  .day-top .dh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .day-top .dh-stats div { padding: 8px 6px; align-items: center; text-align: center; border-radius: 12px; }
  .day-top .dh-stats b { font-size: 19px; }
  .day-top .dh-stats span { font-size: 11px; line-height: 1.2; }
  .day-top .dh-stats small { font-size: 10.5px; }
  .day-time .tlegend { font-size: 11.5px; gap: 2px 10px; }
  .tl-signed { margin-left: 0; }
}

/* M13 — who can see a document or poster */
.aud { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aud legend { padding: 0 6px; font-weight: 800; color: var(--navy); font-size: 14px; }
.aud-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aud.compact .aud-opts { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .aud-opts { grid-template-columns: minmax(0, 1fr); } }
.aud-opt { position: relative; display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.aud-opt input { margin-top: 3px; accent-color: var(--violet); }
.aud-opt span { display: flex; flex-direction: column; min-width: 0; }
.aud-opt b { font-size: 13.5px; color: var(--navy); }
.aud-opt small { font-size: 12px; color: var(--muted); }
.aud-opt:has(input:checked) { border-color: var(--violet); background: var(--violet-bg); }
.aud-pick { display: none; flex-direction: column; gap: 6px; }
.aud:has(input[value="some"]:checked) .aud-pick { display: flex; }
.aud-h { margin: 4px 0 0; font-size: 12.5px; font-weight: 800; color: var(--navy); }
.aud-h small { font-weight: 600; color: var(--muted); }
.aud-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aud-chip { position: relative; cursor: pointer; }
.aud-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.aud-chip span { display: inline-flex; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 13px; font-weight: 700; color: var(--navy); }
.aud-chip input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.aud-chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.doc-flag.who { left: 10px; right: auto; top: auto; bottom: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(13, 31, 78, .85); color: #fff; }
.who-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--p-sky); color: var(--p-sky-ink); font-size: 12px; font-weight: 700; }
.who-chip.office { background: var(--p-peach); color: var(--p-peach-ink); }

/* M13 — Google profiles */
.gg-g { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; background: conic-gradient(#4285F4 0 25%, #34A853 0 50%, #FBBC05 0 75%, #EA4335 0); }
.gg-g.lg { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.gg-conn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gg-conn-row form { margin: 0; }
.gg-who { flex: 1; display: flex; flex-direction: column; min-width: 220px; }
.gg-who b { color: var(--navy); }
.gg-who small { color: var(--muted); font-size: 12.5px; }
.gg-err { color: var(--orange) !important; }
.gg-intro { display: flex; gap: 18px; align-items: flex-start; }
.gg-intro h2 { margin: 0 0 6px; font-size: 18px; }
.gg-intro p { max-width: 70ch; }
.gg-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.gg-actions form { margin: 0; }
.gg-keys { padding: 8px 12px; border-radius: 10px; background: var(--p-lemon); color: var(--p-lemon-ink); }
.gg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gg-loc { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 240px); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.gg-loc:last-child { border-bottom: 0; }
.gg-loc.unmatched .gg-main b { color: var(--muted); }
.gg-score { --s: 0; width: 48px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--c) calc(var(--s) * 1%), var(--line-2) 0); position: relative; }
.gg-score::before { content: ""; position: absolute; inset: 5px; border-radius: 999px; background: #fff; }
.gg-score b { position: relative; font-size: 14px; color: var(--navy); }
.gg-score.good { --c: var(--green); } .gg-score.ok { --c: #E3A008; } .gg-score.bad { --c: #E5484D; }
.gg-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gg-main b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-stars { color: #B7791F; font-weight: 800; }
.gg-fix { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.gg-todo { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--p-rose); color: var(--p-rose-ink); }
.gg-match { margin: 0; }
.gg-match select { width: 100%; min-height: 38px; }
@media (max-width: 720px) { .gg-loc { grid-template-columns: 48px minmax(0, 1fr); } .gg-match { grid-column: 1 / -1; } .gg-intro { flex-direction: column; } }

/* M13 — reviews */
.rv-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 0; }
.rv-big { font-size: 28px; font-weight: 800; color: #B7791F; }
.rv-tabs { margin-bottom: 14px; }
.rv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.rv { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rv.low { border-left: 4px solid #E5484D; }
.rv.open { box-shadow: 0 0 0 3px var(--violet-bg), var(--shadow); }
.rv-top { display: flex; gap: 10px; align-items: center; }
.rv-who { display: flex; flex-direction: column; min-width: 0; }
.rv-who b { color: var(--navy); }
.rv-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-stars { color: #E3A008; letter-spacing: 1px; font-size: 13px; }
.rv-stars i { font-style: normal; color: #D5D9E3; }
.rv-stars.s1, .rv-stars.s2 { color: #E5484D; }
.rv-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.rv-reply { padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 13.5px; }
.rv-reply b { color: var(--navy); font-size: 12.5px; }
.rv-reply p { margin: 4px 0 0; }
.rv-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rv-sugg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.rv-sugg .chip-btn { flex: none; font-weight: 600; }
.rv-form textarea { width: 100%; min-height: 64px; }
.rv-acts { display: flex; gap: 10px; align-items: center; }
.rv-empty { text-align: center; padding: 26px; max-width: 820px; }

/* M13 — Google posts */
.gp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 16px; align-items: start; }
@media (max-width: 960px) { .gp-grid { grid-template-columns: minmax(0, 1fr); } }
.gp-form { display: flex; flex-direction: column; gap: 14px; }
.gp-kinds { border: 0; padding: 0; margin: 0; display: inline-flex; gap: 4px; background: var(--paper); border-radius: 12px; padding: 4px; align-self: flex-start; }
.gp-kind { position: relative; cursor: pointer; }
.gp-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.gp-kind span { display: inline-flex; padding: 8px 14px; border-radius: 9px; font-weight: 800; font-size: 13.5px; color: var(--muted); }
.gp-kind input:checked + span { background: #fff; color: var(--violet-ink); box-shadow: 0 1px 3px rgba(13, 31, 78, .12); }
.gp-kind input:focus-visible + span { outline: 2px solid var(--violet); }
.gp-dated { display: none; }
.gp-form:has(input[name=kind][value=offer]:checked) .gp-dated, .gp-form:has(input[name=kind][value=event]:checked) .gp-dated { display: grid; }
.gp-form:has(input[name=kind][value=event]:checked) .gp-coupon { display: none; }
.gp-posters, .gp-where { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-posters legend, .gp-where legend { font-weight: 800; color: var(--navy); font-size: 13.5px; margin-bottom: 6px; width: 100%; }
.gp-pick { position: relative; cursor: pointer; width: 76px; height: 95px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; background: var(--paper); }
.gp-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gp-pick img { width: 100%; height: 100%; object-fit: cover; }
.gp-pick.none span { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px; }
.gp-pick:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-bg); }
.gp-quick { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.gp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gp-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.gp-list li:last-child { border-bottom: 0; }
.gp-k { flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--p-sky); color: var(--p-sky-ink); }
.gp-k.k-offer { background: var(--p-peach); color: var(--p-peach-ink); }
.gp-k.k-event { background: var(--p-lilac); color: var(--p-lilac-ink); }
.gp-t { display: flex; flex-direction: column; min-width: 0; }
.gp-t b { color: var(--navy); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-t small { color: var(--muted); font-size: 12px; }

/* M13 — the dealer's habit strip and Google card on Today */
.td-habit { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.th-k { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.th-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.th-k > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.th-k b { font-size: 20px; line-height: 1.1; color: var(--navy); }
.th-k b i { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.th-k small { font-size: 11.5px; color: var(--muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.th-fire .th-ic { background: linear-gradient(160deg, #FFE7C2, #FFC98A); }
.th-fire.cold .th-ic { background: var(--paper); filter: grayscale(1); }
.th-rank .th-ic { background: var(--p-lilac); }
.th-g .th-ic { background: var(--p-lemon); color: #B7791F; font-weight: 800; }
@media (max-width: 520px) { .td-habit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .th-k { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px; } .th-ic { width: 28px; height: 28px; font-size: 15px; } .th-k b { font-size: 18px; } }
.td-google .sec-ic { font-weight: 800; color: #fff; background: conic-gradient(#4285F4 0 25%, #34A853 0 50%, #FBBC05 0 75%, #EA4335 0); }
.tg-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tg-nums div { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 12px; background: var(--paper); min-width: 0; }
.tg-nums b { font-size: 20px; color: var(--navy); line-height: 1.1; }
.tg-nums span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.tg-nums small { font-size: 11px; font-weight: 800; }
.tg-nums small.up { color: var(--green); } .tg-nums small.down { color: var(--red); }
@media (max-width: 520px) { .tg-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tg-fix { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--p-lemon); color: var(--p-lemon-ink); font-size: 13px; }

/* M13 — the brand's Network dashboard */
.nw-band { position: relative; overflow: hidden; border-radius: 24px; padding: 22px 24px 20px; margin-bottom: 18px; color: var(--navy); border: 1px solid var(--line);
  background: radial-gradient(90% 140% at 100% 0%, rgba(140, 123, 255, .16) 0%, rgba(140, 123, 255, 0) 55%), radial-gradient(70% 120% at 0% 100%, rgba(61, 213, 152, .14) 0%, rgba(61, 213, 152, 0) 55%), #fff; }
.nw-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.nw-kicker { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.nw-band h1 { margin: 0; color: var(--navy); font-size: 30px; letter-spacing: -.02em; }
.nw-live { width: 8px; height: 8px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 0 rgba(61, 213, 152, .7); animation: nwlive 2s infinite; display: inline-block; flex: none; }
@keyframes nwlive { 0% { box-shadow: 0 0 0 0 rgba(61, 213, 152, .6); } 70% { box-shadow: 0 0 0 8px rgba(61, 213, 152, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 213, 152, 0); } }
@media (prefers-reduced-motion: reduce) { .nw-live { animation: none; } }
.nw-periods { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); gap: 2px; }
.nw-periods a { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-weight: 800; font-size: 13px; text-decoration: none; }
.nw-periods a[aria-current] { background: var(--violet); color: #fff; }
.nw-pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.nw-k { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); min-width: 0; color: var(--navy); }
.nw-k.k-enquiries { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.nw-k.k-fast { background: var(--p-mint); border-color: var(--p-mint-line); }
.nw-k.k-google { background: var(--p-sky); border-color: var(--p-sky-line); }
.nw-k.k-rating { background: var(--p-lemon); border-color: var(--p-lemon-line); }
.nw-k.k-won { background: var(--p-peach); border-color: var(--p-peach-line); }
.nw-k.k-happy { background: var(--p-rose); border-color: var(--p-rose-line); position: relative; }
.nw-k .nw-k-go { position: absolute; inset: 0; border-radius: inherit; }
.nw-k .nw-k-go:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.nw-k b { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nw-k b small { font-size: 18px; margin-left: 1px; }
.nw-k.k-rating b { color: #B7791F; }
.nw-k span { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.nw-k em { font-style: normal; font-size: 12px; font-weight: 800; margin-top: 2px; }
.nw-k em i { font-style: normal; font-weight: 600; color: var(--muted); }
.nw-k em.up { color: var(--green); } .nw-k em.down { color: var(--red); } .nw-k em.flat { color: var(--muted); }
.nw-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.nw-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1050px) { .nw-grid, .nw-grid.two { grid-template-columns: minmax(0, 1fr); } }
.nw-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nw-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nw-rows li { display: grid; grid-template-columns: 30px 38px minmax(0, 1fr) minmax(90px, 150px); gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line-2); border-radius: 12px; }
.nw-rows li:last-child { border-bottom: 0; }
.nw-rows li.top { background: linear-gradient(90deg, rgba(91, 71, 224, .06), rgba(91, 71, 224, 0) 60%); }
.nw-rows li.paused { opacity: .55; }
.nw-rank { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--muted); background: var(--paper); }
.nw-rank.r1 { background: linear-gradient(160deg, #FFE69A, #F6C445); color: #6B4E00; }
.nw-rank.r2 { background: linear-gradient(160deg, #EEF1F6, #C9D0DC); color: #44506A; }
.nw-rank.r3 { background: linear-gradient(160deg, #F7D8BF, #E3A67A); color: #6A3A13; }
.nw-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nw-who b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-who b a { color: inherit; text-decoration: none; }
.nw-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); font-weight: 700; }
.nw-chips .won { color: var(--green); }
.nw-chips .happy { color: var(--p-mint-ink); } .nw-chips .happy.low { color: var(--red); }
.nw-score { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nw-score b { font-size: 18px; color: var(--navy); line-height: 1; }
.nw-score i { display: block; width: 100%; height: 8px; border-radius: 999px; background: var(--line-2); position: relative; overflow: hidden; }
.nw-score i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, #8C7BFF, var(--violet)); }
@media (max-width: 560px) { .nw-rows li { grid-template-columns: 26px minmax(0, 1fr) 64px; } .nw-rows .av { display: none; } .nw-band h1 { font-size: 24px; } .nw-k b { font-size: 26px; } .nw-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nw-list li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: var(--paper); }
.nw-list li > i { flex: none; width: 8px; height: 8px; border-radius: 999px; background: #E3A008; }
.nw-list li.t-red > i { background: #E5484D; }
.nw-list li > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nw-list b { color: var(--navy); font-size: 13.5px; }
.nw-list small { color: var(--muted); font-size: 12.5px; }
.nw-list .go { text-decoration: none; font-weight: 800; color: var(--violet); }
.nw-ok { margin: 0; color: var(--green); font-weight: 700; }
.nw-feed h2 { display: flex; align-items: center; gap: 8px; }
.nw-ev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 430px; overflow-y: auto; }
.nw-ev li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.nw-ev li:last-child { border-bottom: 0; }
.ev-ic { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: var(--paper); }
.ev-ic.t-lilac { background: var(--p-lilac); } .ev-ic.t-lemon { background: var(--p-lemon); color: #B7791F; } .ev-ic.t-red { background: var(--p-rose); color: var(--p-rose-ink); }
.ev-ic.t-mint { background: var(--p-mint); color: var(--p-mint-ink); } .ev-ic.t-sky { background: var(--p-sky); }
.nw-ev a { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.nw-ev a b { color: var(--navy); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-ev a small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-ev time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.fu { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fu li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 56px 40px; gap: 10px; align-items: center; font-size: 13px; }
.fu-l { color: var(--ink); font-weight: 600; }
.fu-bar { height: 22px; border-radius: 8px; background: var(--paper); overflow: hidden; }
.fu-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, #7C6BFF, var(--violet)); }
.fu li:nth-child(n+3) .fu-bar i { background: linear-gradient(90deg, #4FD6A0, var(--green)); }
.fu b { text-align: right; color: var(--navy); }
.fu small { text-align: right; color: var(--muted); font-weight: 700; }
@media (max-width: 560px) { .fu li { grid-template-columns: minmax(0, 1fr) 50px 36px; } .fu-bar { grid-column: 1 / -1; grid-row: 2; } }
.nwc { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding-top: 6px; }
.nwc-d { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.nwc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.nwc-bars i { display: block; width: 42%; max-width: 14px; min-height: 2px; border-radius: 4px 4px 0 0; }
.nwc-bars i.enq, .nw-chart .legend i.enq { background: var(--violet); }
.nwc-bars i.goo, .nw-chart .legend i.goo { background: #34A853; }
.nwc-d small { font-size: 10.5px; color: var(--muted); }
.nw-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.nw-reg { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; }
.nw-reg b { color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.nw-reg span { font-size: 12.5px; color: var(--muted); }
.nw-reg i { font-style: normal; font-weight: 800; color: var(--ink); }
.nw-foot { text-align: center; }
.nw-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nwc-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.nwc-l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.nwc-l b { color: var(--navy); }
.nwc-l i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.nwc-l i.enq { background: var(--violet); } .nwc-l i.goo { background: #34A853; }
.nwc-row .nwc { height: 70px; padding-top: 0; }
.nwc-days { display: flex; gap: 4px; }
.nwc-days small { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); min-width: 0; }
.nwc-row .nwc-bars i { width: 70%; max-width: 22px; }
.gp-posters legend .hint, .gp-where legend .pill { margin-left: 6px; font-weight: 600; color: var(--muted); }
.doc-flag.who.own { background: rgba(14, 122, 85, .9); }
.who-chip.own { background: var(--p-mint); color: var(--p-mint-ink); }
p.who-chip.own { display: inline-flex; margin: 0; padding: 6px 12px; font-size: 13px; }
.next-card > a.btn { justify-content: center; min-height: 42px; background: #fff; }

/* ---------- M14: dealer dashboard top, notice board, tickets (pastel) ---------- */
.kicker { margin: 0 0 2px; font-size: 13px; font-weight: 700; }
.kicker a { color: var(--violet-ink); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.td-hello { min-width: 0; flex: 1 1 260px; }
.td-hello h1 { overflow-wrap: anywhere; }
.td-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.td-head .td-stats { flex-basis: 100%; }

.td-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 14px; }
.tb-note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, var(--p-lilac), #FBFAFF 70%); border: 1px solid var(--p-lilac-line); }
.tb-note.urgent { background: linear-gradient(135deg, var(--p-rose), #FFF8F9 70%); border-color: var(--p-rose-line); }
.tb-main { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.tb-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #fff; font-size: 16px; }
.tb-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.tb-t small { font-size: 11.5px; font-weight: 700; color: var(--p-lilac-ink); }
.urgent .tb-t small { color: var(--p-rose-ink); }
.tb-t b { font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-t span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tb-note form { flex: none; margin: 0; }

.td-pulse { margin: 0 0 14px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.tp-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 2px 10px; }
.tp-head h2 { margin: 0; font-size: 15px; color: var(--navy); }
.tp-head small { color: var(--muted); font-size: 12px; }
.tp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tp { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; min-width: 0; border: 1px solid transparent; }
.tp b { font-size: 24px; line-height: 1.1; color: var(--navy); }
.tp span { font-size: 12px; color: var(--muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tp small { font-size: 11.5px; font-weight: 800; }
.tp small.up { color: var(--p-mint-ink); }
.tp small.down { color: var(--p-rose-ink); }
.tp small.flat { color: var(--muted); font-weight: 600; }
.tp.k-enquiries { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.tp.k-fast { background: var(--p-mint); border-color: var(--p-mint-line); }
.tp.k-calls { background: var(--p-sky); border-color: var(--p-sky-line); }
.tp.k-won { background: var(--p-lemon); border-color: var(--p-lemon-line); }
@media (max-width: 560px) {
  .tp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-note { flex-wrap: wrap; padding: 11px 12px; }
  .tb-note form, .tb-note > .btn { margin-left: 44px; }
  .td-quick { width: 100%; }
  .td-quick .btn { flex: 1; justify-content: center; }
}

/* notice board */
.nb-list, .nb-feed, .tk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.nb-row, .nb-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.nb-row.urgent, .nb-item.urgent { border-color: var(--p-rose-line); background: linear-gradient(135deg, #FFF6F8, #fff 60%); }
.nb-main { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.nb-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--p-lilac); font-size: 16px; }
.urgent .nb-ic { background: var(--p-rose); }
.nb-t { display: flex; flex-direction: column; min-width: 0; }
.nb-t b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-snip { font-size: 13px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nb-item.unread .nb-t b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-right: 6px; vertical-align: 2px; }
.nb-prog { flex: none; width: 150px; display: flex; flex-direction: column; gap: 4px; }
.nb-bar { height: 8px; border-radius: 99px; background: var(--p-lilac); overflow: hidden; }
.nb-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #8FD9B6, #3FB984); }
.nb-prog small { font-size: 12px; color: var(--muted); }
.nb-prog small b { color: var(--navy); }
.nb-new { flex: none; font-size: 11.5px; font-weight: 800; color: var(--violet-ink); background: var(--violet-bg); padding: 3px 9px; border-radius: 99px; }
.nb-done { flex: none; font-size: 12.5px; font-weight: 800; color: var(--p-mint-ink); }
.nb-empty { text-align: center; padding: 28px 18px; }
.nb-empty .btn { margin-top: 8px; }
.nb-form { display: grid; gap: 14px; max-width: 860px; }
.nb-aud .aud-chip i { font-style: normal; color: var(--muted); font-size: 11.5px; margin-left: 3px; }
.nb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nb-tog { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.nb-tog:has(input:checked) { background: var(--violet-bg); border-color: var(--p-lilac-line); }
.nb-tog input { margin-top: 3px; accent-color: var(--violet); }
.nb-tog span { display: flex; flex-direction: column; min-width: 0; }
.nb-tog small { color: var(--muted); font-size: 12px; }
.nb-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.nb-body { position: relative; }
.nb-body.urgent { border-color: var(--p-rose-line); }
.nb-flag { display: inline-block; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; color: var(--p-rose-ink); background: var(--p-rose); padding: 3px 10px; border-radius: 99px; }
.nb-text { white-space: pre-line; font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.nb-doc { display: inline-flex; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: var(--p-sky); color: var(--p-sky-ink); font-weight: 700; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-read { max-width: 760px; }
.nb-ack { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nb-ack form { margin: 0; }
.nb-tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.nb-tally > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; }
.nb-tally b { font-size: 22px; color: var(--navy); line-height: 1.1; }
.nb-tally b i { font-style: normal; font-size: 13px; color: var(--muted); }
.nb-tally span { font-size: 12px; color: var(--muted); }
.nb-tally .k-read { background: var(--p-sky); }
.nb-tally .k-ack { background: var(--p-mint); }
.nb-tally .k-wait { background: var(--p-peach); }
.nb-dealers { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 520px; overflow: auto; }
.nb-dealers li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.nb-dealers li:last-child { border-bottom: 0; }
.nb-d { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nb-d b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-d small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-st { flex: none; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--p-peach); color: var(--p-peach-ink); }
.nb-dealers li.seen .nb-st { background: var(--p-sky); color: var(--p-sky-ink); }
.nb-dealers li.done .nb-st { background: var(--p-mint); color: var(--p-mint-ink); }
@media (max-width: 860px) { .nb-detail { grid-template-columns: minmax(0, 1fr); } .nb-opts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .nb-row { flex-wrap: wrap; } .nb-prog { width: 100%; padding-left: 44px; } }

/* tickets */
.tk-row a { display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.tk-row { padding: 0; display: block; }
.tk-row.late { border-color: var(--p-rose-line); }
.tk-cat { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; font-weight: 800; background: var(--p-lilac); color: var(--p-lilac-ink); }
.tk-cat.c-stock { background: var(--p-sky); color: var(--p-sky-ink); }
.tk-cat.c-warranty { background: var(--p-peach); color: var(--p-peach-ink); }
.tk-cat.c-payments { background: var(--p-mint); color: var(--p-mint-ink); }
.tk-cat.c-marketing { background: var(--p-lemon); color: var(--p-lemon-ink); }
.tk-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tk-t b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-side { flex: none; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tk-st, .tk-late, .tk-high { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tk-st { background: var(--p-lilac); color: var(--p-lilac-ink); }
.tk-st.st-working { background: var(--p-sky); color: var(--p-sky-ink); }
.tk-st.st-waiting { background: var(--p-lemon); color: var(--p-lemon-ink); }
.tk-st.st-resolved, .tk-st.st-closed { background: var(--p-mint); color: var(--p-mint-ink); }
.tk-late { background: var(--p-rose); color: var(--p-rose-ink); }
.tk-high { background: var(--p-peach); color: var(--p-peach-ink); }
.tk-form { display: grid; gap: 14px; max-width: 760px; }
.tk-cats { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tk-cats legend { font-weight: 700; margin-bottom: 8px; }
.tk-catpick { cursor: pointer; }
.tk-catpick input { position: absolute; opacity: 0; pointer-events: none; }
.tk-catpick span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; min-height: 46px; }
.tk-catpick span i { font-style: normal; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--p-lilac); }
.tk-catpick input:checked + span { background: var(--violet-bg); border-color: var(--violet); color: var(--violet-ink); }
.tk-catpick input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.tk-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0 0; font-size: 13px; }
.tk-head h1 { overflow-wrap: anywhere; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.tk-thread { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tk-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.tk-msg.mine { align-self: flex-end; background: var(--violet-bg); border-color: var(--p-lilac-line); border-bottom-right-radius: 6px; }
.tk-msg.theirs { align-self: flex-start; border-bottom-left-radius: 6px; }
.tk-msg header { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.tk-msg header small { color: var(--muted); font-size: 11.5px; }
.tk-body { white-space: pre-line; line-height: 1.5; overflow-wrap: anywhere; }
.tk-img img { display: block; margin-top: 8px; max-width: 100%; max-height: 260px; border-radius: 12px; }
.tk-file { display: inline-block; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: var(--p-sky); color: var(--p-sky-ink); font-weight: 700; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-ev { align-self: center; margin: 0; font-size: 12px; color: var(--muted); background: #F4F5FA; padding: 3px 10px; border-radius: 99px; }
.tk-reply { display: grid; gap: 8px; }
.tk-reply textarea { width: 100%; }
.tk-reply-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tk-reply-row .btn { margin-left: auto; }
.tk-attach { position: relative; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--violet-ink); }
.tk-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tk-next { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.tk-next select { max-width: 250px; font-size: 14px; }
.tk-rate { display: grid; gap: 8px; background: linear-gradient(135deg, var(--p-lemon), #FFFDF4 70%); border-color: var(--p-lemon-line); }
.tk-rate p { margin: 0; }
.tk-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.tk-stars input { position: absolute; opacity: 0; pointer-events: none; }
.tk-stars label { font-size: 30px; line-height: 1; color: #D9DCE8; cursor: pointer; }
.tk-stars input:checked ~ label, .tk-stars label:hover, .tk-stars label:hover ~ label { color: #F5B301; }
.tk-stars input:focus-visible + label { outline: 2px solid var(--violet); border-radius: 6px; }
.tk-rated { align-self: center; margin: 0; font-size: 13px; color: var(--muted); }
.tk-rated b { color: #E0A100; }
.tk-aside h2 { margin: 0 0 10px; font-size: 15px; }
.tk-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; margin: 0 0 12px; font-size: 13.5px; align-items: center; }
.tk-dl dt { color: var(--muted); }
.tk-dl dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tk-assign { margin: 0; }
.tk-assign select { width: 100%; font-size: 14px; padding-right: 28px; }
@media (max-width: 860px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } .tk-aside { order: -1; } }
@media (max-width: 560px) {
  .tk-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-row a { flex-wrap: wrap; }
  .tk-side { width: 100%; justify-content: flex-start; padding-left: 48px; }
  .tk-msg { max-width: 94%; }
}

/* ---------- M14.2: platform console ---------- */
.plc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.plc-head h1 { margin: 0; }
.plc-head p { margin: 4px 0 0; }
.plc-kicker { margin: 0 0 2px !important; font-size: 13px; font-weight: 700; color: var(--violet-ink); }
.plc-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.plc-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.plc-t { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1px solid transparent; text-decoration: none; color: var(--ink); min-width: 0; }
.plc-t b { font-size: 26px; line-height: 1.1; color: var(--navy); }
.plc-t span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.plc-t small { font-size: 11.5px; color: var(--muted); font-weight: 600; min-height: 1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-t.k-co { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.plc-t.k-people { background: var(--p-sky); border-color: var(--p-sky-line); }
.plc-t.k-leads { background: var(--p-mint); border-color: var(--p-mint-line); }
.plc-t.k-sent { background: var(--p-lemon); border-color: var(--p-lemon-line); }
.plc-t.k-support, .plc-t.k-alarm { background: #fff; border-color: var(--line); }
.plc-t.hot { background: var(--p-rose); border-color: var(--p-rose-line); }
.plc-t.hot b { color: var(--p-rose-ink); }
.plc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.plc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.plc-co { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.plc-co:last-child { border-bottom: 0; }
.plc-co.paused { opacity: .6; }
.plc-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.plc-who b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-who small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-st { color: var(--p-peach-ink); font-weight: 700; }
.plc-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--ink); }
.plc-nums i { font-style: normal; color: var(--muted); }
.plc-lic { color: var(--violet-ink); font-weight: 700; }
.plc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.plc-seen { font-size: 12px; font-weight: 700; color: var(--p-mint-ink); background: var(--p-mint); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.plc-seen.quiet { color: var(--p-peach-ink); background: var(--p-peach); }
.plc-req { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.plc-req a { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 12px; background: var(--p-rose); text-decoration: none; color: var(--ink); min-width: 0; }
.plc-req b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-req small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-clear { margin: 0; padding: 14px; border-radius: 12px; background: var(--p-mint); color: var(--p-mint-ink); font-weight: 700; }
@media (max-width: 1180px) { .plc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .plc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .plc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plc-co { flex-wrap: wrap; }
  .plc-side { flex-direction: row; width: 100%; justify-content: space-between; padding-left: 48px; align-items: center; }
  .plc-quick { width: 100%; } .plc-quick .btn { flex: 1; justify-content: center; }
}

/* ---------- M14.3: new company ---------- */
.nc-form { display: grid; gap: 14px; max-width: 900px; }
.nc-sec { display: grid; gap: 12px; }
.nc-sec h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--navy); }
.nc-sec h2 .hint { font-weight: 600; font-size: 12.5px; }
.nc-n { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--p-lilac); color: var(--p-lilac-ink); font-size: 13px; font-weight: 800; }
.nc-invite.off { opacity: .7; cursor: default; }
.nc-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nc-feats .nb-tog:has(input:disabled) { opacity: .55; cursor: default; }
.nc-made { max-width: 760px; display: grid; gap: 12px; }
.nc-made h2 { margin: 0; font-size: 16px; }
.nc-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; align-items: center; }
.nc-kv dt { color: var(--muted); font-size: 13.5px; }
.nc-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nc-pass { font-size: 17px; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: var(--p-lemon); color: var(--p-lemon-ink); }
.nc-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--p-sky); color: var(--p-sky-ink); font-size: 13.5px; }
.nc-note.ok { background: var(--p-mint); color: var(--p-mint-ink); }
@media (max-width: 700px) { .nc-feats { grid-template-columns: minmax(0, 1fr); } .nc-kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .nc-kv dd { margin-bottom: 8px; } }

/* ---------- M14.4: notice attachments ---------- */
.nb-files { display: grid; gap: 8px; }
.nb-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--p-lilac-line); background: linear-gradient(135deg, #FBFAFF, var(--p-lilac)); cursor: pointer; }
.nb-drop:hover, .nb-drop:focus-within { border-color: var(--violet); }
.nb-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nb-drop-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 19px; }
.nb-drop span:last-child { display: flex; flex-direction: column; min-width: 0; }
.nb-drop b { color: var(--violet-ink); }
.nb-drop small { color: var(--muted); font-size: 12.5px; }
.nb-picked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.nb-picked li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 0; font-size: 13px; }
.nb-picked li.bad { border-color: var(--p-rose-line); background: var(--p-rose); }
.nb-picked li.warn { grid-column: 1 / -1; border-color: var(--p-rose-line); background: var(--p-rose); color: var(--p-rose-ink); font-weight: 700; }
.nb-fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nb-picked small { flex: none; color: var(--muted); }
.nf { display: grid; gap: 10px; margin-top: 14px; }
.nf-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.nf-pic { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #F4F5FA; aspect-ratio: 4 / 3; }
.nf-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-video { margin: 0; display: grid; gap: 4px; }
.nf-video video { width: 100%; max-height: 420px; border-radius: 12px; background: #000; }
.nf-video figcaption { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.nf-file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--p-sky); border: 1px solid var(--p-sky-line); min-width: 0; }
.nf-file.k-pdf { background: var(--p-rose); border-color: var(--p-rose-line); }
.nf-file.k-ppt { background: var(--p-peach); border-color: var(--p-peach-line); }
.nf-file.k-sheet { background: var(--p-mint); border-color: var(--p-mint-line); }
.nf-file.k-audio { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.nf-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 16px; }
.nf-t { display: flex; flex-direction: column; min-width: 0; }
.nf-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-t small { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .nf-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nf-files, .nb-picked { grid-template-columns: minmax(0, 1fr); } }

/* ===== M15: web pages (office and dealer screens) ===== */
.chk-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.chk-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--violet); flex: none; }
.chk-row span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.chk-row small { font-size: 12.5px; font-weight: 500; }
.dl-slug, .wp-slug-in { display: flex; align-items: stretch; border: 1px solid var(--field); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.dl-slug span, .wp-slug-in span { display: grid; place-items: center; padding: 0 10px; background: var(--line-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.dl-slug input, .wp-slug-in input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; box-shadow: none !important; }
.wp-home { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-top: 16px; background: linear-gradient(120deg, #EFECFF 0%, #FFFFFF 60%, #E6F3EC 100%); }
.wp-home-main { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 380px; min-width: 0; }
.wp-home-ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--violet); display: grid; place-items: center; flex: none; box-shadow: 0 1px 2px rgba(13,31,78,.08); }
.wp-home-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wp-home-text h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wp-home-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-home-acts form { display: contents; }
.wp-url { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wp-url a { font-weight: 700; }
.wp-tabs { margin: 18px 0 12px; }
.wp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wp-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.wp-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, var(--wp-c, #5B47E0), #0D1F4E); color: #fff; font-weight: 800; font-size: 26px; text-decoration: none; }
.wp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wp-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wp-row-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wp-title { font-weight: 800; font-size: 16px; color: var(--navy); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wp-title:hover { text-decoration: underline; }
.wp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.wp-meta.bad { color: var(--red); }
.wp-slug { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wp-nums { font-size: 13px; color: var(--ink); }
.wp-nums b { font-variant-numeric: tabular-nums; }
.wp-row-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wp-empty { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 36px 24px; }
.wp-empty p { max-width: 560px; }
.wp-empty-s { padding: 16px 20px; font-size: 14px; }
.wp-mode { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.wp-mode-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wp-mode-form .aud-opts { flex: 1 1 520px; }
.wp-domain { margin-top: 10px; }
.wp-h2 { margin: 22px 0 10px; }
@media (max-width: 720px) {
  .wp-row { grid-template-columns: 56px minmax(0, 1fr); padding: 12px; gap: 12px; }
  .wp-thumb { width: 56px; height: 56px; font-size: 20px; }
  .wp-row-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .wp-mode-form .aud-opts { grid-template-columns: 1fr; }
}

/* new page */
.wp-new { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.wp-starters { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wp-starters legend { margin-bottom: 8px; }
.wp-starter { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.wp-starter:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-bg); }
.wp-starter input { position: absolute; opacity: 0; }
.wp-starter b { font-size: 14px; color: var(--navy); }
.wp-starter small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.wp-starter-pic { display: flex; flex-direction: column; gap: 4px; height: 70px; padding: 8px; border-radius: 10px; background: var(--violet-bg); }
.wp-starter-pic i { display: block; border-radius: 4px; background: #fff; }
.wp-starter-pic i:nth-child(1) { flex: 2; background: linear-gradient(120deg, #5B47E0, #8C7BF0); }
.wp-starter-pic i:nth-child(2) { flex: 1; }
.wp-starter-pic i:nth-child(3) { flex: 1; width: 60%; background: #3DD598; }
.wp-st-launch i:nth-child(1) { background: linear-gradient(120deg, #0D1F4E, #1E3577); }
.wp-st-event i:nth-child(1) { background: linear-gradient(120deg, #C2410C, #F08A4B); }
.wp-st-blank i:nth-child(1) { background: #D8D2FA; }
.wp-st-blank i:nth-child(2) { opacity: .5; }
@media (max-width: 720px) { .wp-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the editor */
.wp-ed-head { align-items: flex-start; }
.wp-ed-title { min-width: 0; flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.wp-ed-title h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.wp-ed-acts form { display: contents; }
.wp-more { position: relative; }
.wp-more summary { list-style: none; }
.wp-more summary::-webkit-details-marker { display: none; }
.wp-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; display: flex; flex-direction: column; }
.wp-more-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.wp-more-menu button:hover { background: var(--line-2); }
.wp-more-menu .danger-link { color: var(--red); }
.wp-note { margin: 12px 0; padding: 11px 16px; border-radius: 12px; background: var(--violet-bg); color: var(--violet-ink); font-weight: 600; font-size: 14px; }
.wp-note.bad { background: #FFF4E5; color: #8A4B0B; }
.wp-review { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; border-color: #F5C38F; background: #FFF9F1; }
.wp-review-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-review-back { display: flex; gap: 8px; flex: 1 1 320px; }
.wp-review-back input { flex: 1; min-width: 0; }
.wp-ed { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; margin-top: 14px; }
.wp-ed-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wp-ed-side { position: sticky; top: 16px; }
.wp-phone { background: #0D1F4E; border-radius: 30px; padding: 10px; box-shadow: 0 24px 60px -20px rgba(13,31,78,.45); }
.wp-phone-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 10px; color: #fff; font-size: 13px; }
.wp-phone-bar select { max-width: 220px; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.wp-phone iframe { width: 100%; height: min(760px, calc(100vh - 120px)); border: 0; border-radius: 22px; background: #fff; display: block; }
@media (max-width: 1180px) { .wp-ed { grid-template-columns: minmax(0, 1fr); } .wp-ed-side { display: none; } }
.wp-sec { padding: 0; }
.wp-sec > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px; }
.wp-sec > summary::-webkit-details-marker { display: none; }
.wp-sec > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; display: inline-block; }
.wp-sec[open] > summary::before { transform: rotate(90deg); }
.wp-sec-sum { font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-sec > form, .wp-sec > .wp-files { padding: 0 20px 18px; }
.wp-form { display: flex; flex-direction: column; gap: 12px; }
.wp-fs { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.wp-fs legend { font-weight: 800; font-size: 13px; color: var(--navy); padding: 0 6px; }
.wp-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-up { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wp-up input[type=file] { flex: 1 1 240px; min-width: 0; }
.wp-files { list-style: none; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.wp-files li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); }
.wp-files img { width: 100%; height: 100%; object-fit: cover; }
.wp-files i, .wp-pick-o i { position: absolute; left: 5px; top: 5px; min-width: 20px; height: 20px; border-radius: 999px; background: rgba(13,31,78,.85); color: #fff; font: 700 11px/20px var(--font); text-align: center; font-style: normal; padding: 0 5px; }
.wp-files form { position: absolute; right: 4px; top: 4px; }
.wp-files button { width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--red); font-weight: 800; cursor: pointer; }
.wp-blocks-head { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.wp-blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wp-block { position: relative; padding: 0; }
.wp-block > details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 120px 13px 16px; min-width: 0; }
.wp-block > details > summary::-webkit-details-marker { display: none; }
.wp-block > details[open] > summary { border-bottom: 1px solid var(--line-2); }
.wp-b-n { width: 24px; height: 24px; border-radius: 8px; background: var(--violet-bg); color: var(--violet-ink); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.wp-b-sum { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wp-block form.wp-form { padding: 14px 16px 16px; }
.wp-b-tools { position: absolute; right: 10px; top: 9px; display: flex; gap: 4px; }
.wp-b-tools button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; }
.wp-b-tools button:hover { background: var(--violet-bg); border-color: #D6CEFB; }
.wp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 4px; }
.wp-pick-o { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; background: var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 0; }
.wp-pick-o img { width: 100%; height: 100%; object-fit: cover; }
.wp-pick-o input { position: absolute; opacity: 0; }
.wp-pick-o:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-bg); }
.wp-pick-o:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.wp-pick-none span { padding: 6px; }
.wp-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wp-item { border: 1px dashed var(--field); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wp-item legend { font-size: 12px; font-weight: 800; color: var(--muted); padding: 0 4px; }
.wp-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 16px; border-style: dashed; }
.wp-add .field { flex: 1 1 240px; }

/* sharing */
.wp-share { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.wp-share-main { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.wp-share-link { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; }
.wp-big-url { font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.wp-ch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wp-ch-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; }
.wp-ch-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; }
.wp-ch-wa { background: #1FAF55; } .wp-ch-fb { background: #1877F2; } .wp-ch-ig { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); } .wp-ch-gg { background: #fff; color: #4285F4; border: 1px solid var(--line); } .wp-ch-qr { background: var(--navy); }
.wp-ch-site { background: #E8F7EE; color: #17804A; font-size: 13px; } .wp-ch-zip { background: #FFF1DE; color: #A35A00; font-size: 13px; } .wp-ch-frame { background: #ECEAFF; color: #4B3BC4; font-size: 13px; }
.wp-site { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.wp-site > * { margin-top: 0; }
.wp-site .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wp-frame-code { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; background: #F7F6FF; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-ch-text { display: flex; flex-direction: column; min-width: 0; }
.wp-ch-text small { font-size: 12.5px; }
.wp-ch-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .wp-ch-row { grid-template-columns: 40px minmax(0, 1fr); } .wp-ch-acts { grid-column: 2; justify-content: flex-start; } }
.wp-copies { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.wp-copies .card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.wp-filter { max-width: 260px; }
.wp-copy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wp-copy { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); }
.wp-copy-who { display: flex; flex-direction: column; min-width: 0; }
.wp-copy-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-copy-url { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wp-copy-acts { display: flex; gap: 6px; }
@media (max-width: 720px) { .wp-copy { grid-template-columns: minmax(0, 1fr) auto; } .wp-copy-url { grid-column: 1 / -1; grid-row: 2; } }

/* the report */
.wp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.wp-tile { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); }
.wp-tile b { font-size: 30px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.wp-tile span { font-weight: 700; font-size: 13px; color: var(--navy); }
.wp-tile small { font-size: 12px; color: var(--muted); }
.wp-tile.t-views { background: #EEF1F8; } .wp-tile.t-taps { background: #FFF4E5; } .wp-tile.t-enq { background: #EFECFF; } .wp-tile.t-won { background: #E6F3EC; }
@media (max-width: 720px) { .wp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wp-chart { display: flex; flex-direction: column; gap: 10px; }
.wp-chart .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wp-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.wp-key.k-v { background: #C9D1EA; } .wp-key.k-e { background: var(--violet); }
.wp-bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.wp-bar { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.wp-bar i { position: absolute; bottom: 0; width: 100%; border-radius: 3px 3px 0 0; }
.wp-bar i.v { background: #C9D1EA; }
.wp-bar i.e { background: var(--violet); width: 55%; }
.wp-bars-x { display: flex; justify-content: space-between; }
.wp-rep-grid { margin-top: 12px; gap: 12px; align-items: start; }
.wp-rep-grid .card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wp-table-wrap { overflow-x: auto; }
.wp-td-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .wp-rep-grid { grid-template-columns: minmax(0, 1fr); } }
.wp-block > details > summary b { white-space: nowrap; }
@media (max-width: 720px) { .wp-b-sum { display: none; } .wp-block > details > summary { padding-right: 112px; } .wp-ed-acts { width: 100%; } }
.wp-b-tools { top: 10px; align-items: center; }
.wp-b-tools form { display: flex; margin: 0; }
.wp-b-tools button { display: grid; place-items: center; padding: 0; line-height: 1; }
/* these cards space their children with gap, not the card's own margins */
.wp-row > *, .wp-home > *, .wp-sec > *, .wp-block > *, .wp-add > *, .wp-review > *, .wp-share > *, .wp-copies > *,
.wp-mode > *, .wp-empty > *, .wp-chart > *, .wp-rep-grid .card > *, .wp-new > * { margin-top: 0; }
/* M15.1: campaign links (UTM) */
.wp-utm { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.wp-utm > * { margin-top: 0; }
.wp-utm-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px dashed var(--field); border-radius: 12px; background: #FBFBFE; }
.wp-utm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
@media (max-width: 860px) { .wp-utm-grid { grid-template-columns: minmax(0, 1fr); } }
.wp-utm-out { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wp-utm-out code { font-family: var(--mono); font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; color: var(--navy); }
.wp-utm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wp-utm-row { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.wp-utm-row .wp-copy-acts form { display: contents; }
.wp-utm-who { display: flex; flex-direction: column; min-width: 0; }
.wp-utm-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-utm-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-utm-tag { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--violet-bg); color: var(--violet-ink); font-weight: 700; }
@media (max-width: 720px) { .wp-utm-row { grid-template-columns: minmax(0, 1fr); } .wp-copy-acts { flex-wrap: wrap; } }
.wp-an { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.wp-an > * { margin-top: 0; }
.wp-an-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
@media (max-width: 720px) { .wp-an-form { grid-template-columns: minmax(0, 1fr); } }
.wp-camp td small { display: block; color: var(--muted); font-size: 11.5px; }

/* ===== M16: social posts ===== */
.smx-mark { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex: none; line-height: 1; font-family: var(--font); }
.smx-facebook { background: #1877F2; } .smx-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); } .smx-linkedin { background: #0A66C2; } .smx-x { background: #111; }
.smx-n { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 12px; }
.smx-empty { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 32px 24px; margin-top: 16px; }
.smx-empty > * { margin-top: 0; }
.smx-posts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.smx-post { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.smx-post > * { margin-top: 0; }
.smx-post-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.smx-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--line-2); display: grid; place-items: center; font-size: 26px; }
.smx-post-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; grid-column: 2; }
.smx-post-top > .smx-post-main:first-child { grid-column: 1 / 3; }
.smx-text { white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 14px; }
.smx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); align-items: center; }
.smx-post-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.smx-post-acts form { display: contents; }
.smx-targets { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.smx-target { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.smx-target-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.smx-target a { white-space: nowrap; font-weight: 700; font-size: 12.5px; }
.smx-err { color: var(--red); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.smx-target.st-posted .smx-mark { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mint); }
@media (max-width: 720px) { .smx-post-top { grid-template-columns: auto minmax(0, 1fr); } .smx-post-acts { grid-column: 1 / -1; justify-content: flex-start; } }
.smx-new { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; margin-top: 14px; }
.smx-new-main, .smx-new-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.smx-sec { display: flex; flex-direction: column; gap: 10px; }
.smx-sec > * { margin-top: 0; }
.smx-sec h2 { font-size: 16px; }
.smx-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smx-new-side .smx-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smx-limits { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.smx-limits span { display: inline-flex; align-items: center; gap: 4px; opacity: .55; }
.smx-limits span.on { opacity: 1; }
.smx-limits span.over { color: var(--red); opacity: 1; font-weight: 800; }
.smx-posters { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.smx-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.smx-accs { display: flex; flex-direction: column; gap: 4px; }
.smx-acc { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; min-width: 0; font-size: 13.5px; font-weight: 600; }
.smx-acc:has(input:checked) { border-color: var(--violet); background: var(--violet-bg); }
.smx-acc input { accent-color: var(--violet); width: 16px; height: 16px; flex: none; }
.smx-acc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.smx-acc small { color: var(--muted); font-weight: 500; }
.smx-acc.off { opacity: .6; cursor: not-allowed; }
.smx-new-side [data-smx-go] { width: 100%; justify-content: center; }
@media (max-width: 980px) { .smx-new { grid-template-columns: minmax(0, 1fr); } .smx-opts { grid-template-columns: minmax(0, 1fr); } }
.smx-connect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.smx-con { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.smx-con > * { margin-top: 0; }
.smx-con-head { display: flex; align-items: center; gap: 6px; }
.smx-con-head b { margin-left: 4px; font-size: 15px; color: var(--navy); }
.smx-wait { color: #8A4B0B; }
@media (max-width: 860px) { .smx-connect { grid-template-columns: minmax(0, 1fr); } }
.smx-sample { margin: 10px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.smx-list, .smx-pick { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.smx-list > *, .smx-pick > * { margin-top: 0; }
.smx-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.smx-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.smx-row form { display: flex; }
.smx-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.smx-row-main b, .smx-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smx-row.bad .smx-row-main b { color: var(--red); }
.smx-assign select { max-width: 220px; font-size: 13px; }
.smx-pick .smx-acc { flex: 1 1 240px; }
.smx-help { margin-top: 14px; }
.smx-help ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.smx-help code { font-size: 12px; overflow-wrap: anywhere; }
.smx-target.st-failed { grid-column: 1 / -1; }
.smx-target.st-failed .smx-err { white-space: normal; }

/* ===== M17: deleted leads, notes, data requests ===== */
.del-menu .am-menu { min-width: 300px; }
.ld-note-edit { margin-top: 4px; }
.ld-note-edit summary { list-style: none; cursor: pointer; display: inline; }
.ld-note-edit summary::-webkit-details-marker { display: none; }
.dr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; align-items: start; }
.dr-grid .card { display: flex; flex-direction: column; gap: 10px; }
.dr-grid .card > * { margin-top: 0; }
@media (max-width: 900px) { .dr-grid { grid-template-columns: minmax(0, 1fr); } }
.dr-tabs { margin: 18px 0 10px; }
.dr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dr-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; }
.dr-item > * { margin-top: 0; }
.dr-item.late { border-color: #F5B5AE; }
.dr-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.dr-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dr-notes { white-space: pre-line; color: var(--muted); }
.dr-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.dr-close { display: flex; gap: 6px; flex: 1 1 360px; flex-wrap: wrap; }
.dr-close input { flex: 1 1 180px; min-width: 0; }
.dr-erase summary { list-style: none; }
.dr-erase summary::-webkit-details-marker { display: none; }
.dr-erase-form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #F5B5AE; border-radius: 12px; background: #FFF8F7; max-width: 420px; }

/* M17: deleted leads */
.gone-list { list-style: none; margin: 0; padding: 6px 20px; }
.gone-list > li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto auto; align-items: center; gap: 8px 16px; padding: 14px 0; margin: 0; }
.gone-list > li + li { border-top: 1px solid var(--line, #e6e8f0); }
.gone-who { display: flex; flex-direction: column; min-width: 0; }
.gone-who b, .gone-when { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .gone-list { padding: 4px 16px; }
  .gone-list > li { grid-template-columns: minmax(0, 1fr) auto; }
  .gone-when { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .gone-list > li > form { grid-column: 2; grid-row: 1; }
  .gone-list > li > .chip { grid-column: 1; grid-row: 3; justify-self: start; }
}

/* M18: Feedback — questions after a sale, a test ride or a lost lead, and what people answered */
.fbk-periods { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line-2); }
.fbk-periods a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.fbk-periods a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.fbk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.fbk-tile { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; min-width: 0; color: var(--navy); }
.fbk-tile b { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fbk-tile b small { font-size: 17px; margin-left: 1px; }
.fbk-tile span { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.fbk-tile em { font-style: normal; color: var(--red); font-weight: 800; }
.fbk-tile.k-happy { background: var(--p-mint); border-color: var(--p-mint-line); } .fbk-tile.k-happy b { color: var(--p-mint-ink); }
.fbk-tile.k-answered { background: var(--p-lilac); border-color: var(--p-lilac-line); }
.fbk-tile.k-asked { background: var(--p-sky); border-color: var(--p-sky-line); }
.fbk-tile.k-mixed { background: var(--p-lemon); border-color: var(--p-lemon-line); }
.fbk-tile.k-unhappy { background: var(--p-rose); border-color: var(--p-rose-line); } .fbk-tile.k-unhappy b { color: var(--p-rose-ink); }
.fbk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fbk-item { padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; }
.fbk-item.st-draft, .fbk-item.st-paused { background: #FCFCFE; }
.fbk-item-main { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.fbk-item-main:hover .fbk-name { color: var(--violet); }
.fbk-item-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fbk-name { font-size: 16px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbk-when { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbk-when b { color: var(--ink); }
.fbk-nums { display: flex; gap: 18px; margin: 0; }
.fbk-nums div { display: flex; flex-direction: column; align-items: flex-end; }
.fbk-nums dt { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fbk-nums dd { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fbk-nums dd small { font-size: 12px; color: var(--muted); font-weight: 700; }
.fbk-nums .good, .fbk-dealers .good { color: var(--green); } .fbk-nums .bad, .fbk-dealers .bad, .fbk-question .bad { color: var(--red); }
.fbk-foot { grid-column: 1 / -1; margin: 0; }
.fbk-empty { padding: 24px; display: grid; gap: 12px; justify-items: start; }
.fbk-empty p { margin: 0; max-width: 62ch; }
.fbk-howto { display: grid; gap: 8px; max-width: 520px; }
.fbk-bubble { position: relative; max-width: 420px; padding: 10px 12px 8px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(16, 24, 40, .05); }
.fbk-bubble p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.fbk-bubble.out { background: #E8F8EE; border-color: #CDEFD9; border-radius: 14px 4px 14px 14px; margin-left: auto; }
.fbk-bubble.out p { margin: 0; }
.fbk-btns { display: grid; gap: 4px; border-top: 1px solid var(--line-2); padding-top: 6px; }
.fbk-btns i { font-style: normal; text-align: center; color: #0A7CBF; font-weight: 700; font-size: 14px; padding: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbk-form { display: grid; gap: 14px; padding: 20px; max-width: 860px; }
.fbk-qbox { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #EFEAE2; }
.fbk-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--p-peach); border: 1px solid var(--p-peach-line); color: var(--p-peach-ink); font-size: 13px; font-weight: 600; }
.fbk-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fbk-kind legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.fbk-map { display: grid; gap: 8px; }
.fbk-map-row { display: grid; grid-template-columns: minmax(0, 260px) 220px; justify-content: start; gap: 12px; align-items: center; }
.fbk-btn-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbk-note { padding: 10px 14px; border-radius: 12px; background: var(--p-lemon); border: 1px solid var(--p-lemon-line); color: var(--p-lemon-ink); font-weight: 600; font-size: 14px; }
.fbk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 8px; }
.fbk-main, .fbk-side { display: grid; gap: 16px; min-width: 0; }
.fbk-main > *, .fbk-side > * { min-width: 0; }
.fbk-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.fbk-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.fbk-pick select { width: auto; min-width: 0; max-width: 220px; }
.fbk-filters + .fbk-tiles { margin-top: 0; }
.fbk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fbk-bars li { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) 44px 40px; gap: 10px; align-items: center; font-size: 14px; }
.fbk-bar-l { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbk-bar { height: 12px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.fbk-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--violet); }
.fbk-bars .s-good .fbk-bar i { background: #3DBB7E; } .fbk-bars .s-ok .fbk-bar i { background: #E9B949; } .fbk-bars .s-bad .fbk-bar i { background: #E5677D; }
.fbk-bars b { text-align: right; font-variant-numeric: tabular-nums; } .fbk-bars small { color: var(--muted); font-weight: 700; text-align: right; }
.fbk-wk { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; }
.fbk-wk-col { display: grid; grid-template-rows: 18px 1fr 18px; height: 100%; text-align: center; gap: 4px; min-width: 0; }
.fbk-wk-col small { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; }
.fbk-wk-bar { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.fbk-wk-bar .all { position: relative; display: flex; align-items: flex-end; width: min(36px, 80%); min-height: 2px; border-radius: 8px 8px 0 0; background: #F2C6CF; overflow: hidden; }
.fbk-wk-bar .good { display: block; width: 100%; background: #3DBB7E; }
.fbk-legend { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.fbk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; } .fbk-legend i.good { background: #3DBB7E; } .fbk-legend i.all { background: #F2C6CF; margin-left: 8px; }
.fbk-dealers td.num, .fbk-dealers th.num { text-align: right; white-space: nowrap; }
.fbk-show { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line-2); }
.fbk-show a { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.fbk-show a[aria-current="page"] { background: #fff; color: var(--navy); }
.fbk-plist { list-style: none; margin: 0; padding: 0; }
.fbk-plist li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.fbk-plist li:first-child { border-top: 0; }
.fbk-face { font-size: 22px; line-height: 1.2; }
.fbk-pmain { min-width: 0; display: grid; gap: 4px; }
.fbk-pmain p { margin: 0; }
.fbk-pwho { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fbk-pwho a { font-weight: 700; }
.fbk-comment { font-size: 14px; color: var(--ink); background: var(--paper); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; }
.fbk-plist .s-bad .fbk-comment { background: var(--p-rose); }
.fbk-todo { color: var(--red); font-weight: 700; }
.chip.amber { background: var(--p-lemon); color: var(--p-lemon-ink); }
.fbk-question { display: grid; gap: 10px; }
.fbk-question .fbk-bubble { max-width: none; }
.fbk-h3 { margin: 6px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fbk-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.fbk-archive { justify-self: start; }
@media (max-width: 900px) {
  .fbk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .fbk-item { grid-template-columns: minmax(0, 1fr); }
  .fbk-nums { justify-content: space-between; gap: 8px; }
  .fbk-nums div { align-items: flex-start; }
  .fbk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbk-tile b { font-size: 26px; }
  .fbk-bars li { grid-template-columns: minmax(0, 1fr) 40px 36px; }
  .fbk-bars .fbk-bar { grid-column: 1 / -1; grid-row: 2; }
  .fbk-map-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fbk-wk { height: 140px; gap: 4px; }
  .fbk-mon, .fbk-dealers .reg, .fbk-dealers .ask, .fbk-dealers .rate { display: none; }
  .fbk-filters { align-items: stretch; }
  .fbk-pick, .fbk-pick select { width: 100%; max-width: none; }
  .page-head .actions { flex-wrap: wrap; }
}

/* ===== M19 AutoChat Flow: chatbot flows (the canvas has its own flow.css) ===== */
.nav .nav-note { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--quiet); letter-spacing: .02em; }
html.nav-mini .nav .nav-note { display: none; }
.fl-h-sub { font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 6px; display: inline-block; white-space: nowrap; }
.fl-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.fl-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-left: 6px solid #D7DBE8; min-width: 0; container-type: inline-size; }
.fl-card.st-live { border-left-color: #8ED3B4; }
.fl-card.st-paused { border-left-color: #F2C196; }
.fl-card.st-draft { border-left-color: #BCAEF6; }
.fl-card-main { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.fl-card-main:hover .fl-card-name { text-decoration: underline; }
.fl-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fl-card-name { font-size: 16px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fl-card-top .chip { flex: none; margin-left: auto; }
.fl-card-meta, .fl-card-starts { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-card-starts b { color: var(--ink); font-weight: 700; }
.fl-wa { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25D366; margin-right: 6px; vertical-align: 1px; }
.fl-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
@container (min-width: 460px) { .fl-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fl-nums div { display: block; } .fl-nums dd { margin-top: 2px; } }
.fl-nums.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fl-nums div { border-radius: 12px; padding: 8px 12px; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fl-nums dt { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.fl-nums dd { margin: 0; font-size: 20px; font-weight: 800; color: var(--navy); }
.fl-nums.wide div { display: block; } .fl-nums.wide dd { margin-top: 2px; }
.fl-nums .k-start { background: #E7F0FF; } .fl-nums .k-done { background: #E3F6EE; }
.fl-nums .k-team { background: #FFF0E3; } .fl-nums .k-now { background: #EFEAFF; }
.fl-nums.wide { max-width: 720px; }
.fl-card-foot { margin: 0; }
.fl-empty { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; }
.fl-empty-art { background: #EFE7DD; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.fl-empty-art .b { background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; max-width: 90%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.fl-empty-art .b1 { align-self: flex-end; background: #D9FDD3; }
.fl-empty-art .b2 { color: #027EB5; font-weight: 700; }
.fl-empty-points { margin: 10px 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.fl-none { padding: 22px; color: var(--muted); }
.fl-new { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.fl-starters { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.fl-starters legend { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; padding: 0; }
.fl-starter { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.fl-starter:has(input:checked) { border-color: #9FD8B2; background: #E6F7EC; }
.fl-starter input { margin-top: 4px; width: 18px; height: 18px; min-height: 0; flex: none; }
.fl-starter-ic { font-size: 20px; line-height: 1; }
.fl-starter b { display: block; color: var(--navy); }
.fl-starter small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.fl-new-preview { background: #EFE7DD; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.fl-wa-bubble { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; }
.fl-wa-btns { display: flex; flex-direction: column; gap: 4px; }
.fl-wa-btns span { background: #fff; border-radius: 10px; padding: 7px; text-align: center; color: #027EB5; font-weight: 700; font-size: 14px; }
.fl-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.leadtable.fl-runs { overflow-x: auto; }
.fl-runs td:first-child { white-space: nowrap; }
/* M19.8: People — a name opens the side panel; phone, email and chips under it; the chat at the end */
.fl-runs-flow { display: block; font-size: 14px; font-weight: 700; color: var(--violet-ink); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60ch; }
.fl-runs td.fl-person { white-space: normal; min-width: 200px; }
.fl-person .name { font-weight: 800; }
.fl-person-bits { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--muted); }
.fl-person-bits .chip { font-size: 11.5px; }
.fl-email { max-width: 24ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-chat-col { width: 44px; text-align: right; }
.fl-lead-note { margin-top: 10px; }
.fl-visitor-av { background: #ECEAFF; color: #4B3BC4; font-size: 22px; }
.fl-visitor-why { background: #FFF7D6; border: 1px solid #F1DFA0; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fl-visitor-why b { color: #6B5000; }
.fl-visitor-why p { font-size: 13.5px; color: #5A4A0A; line-height: 1.45; }
.fl-visitor-answers h3, .fl-visitor-chat h3 { font-size: 14px; margin: 0; color: var(--navy); }
.fl-visitor-answers dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fl-visitor-answers dl > div { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.fl-visitor-answers dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fl-visitor-answers dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.fl-visitor-answers dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.fl-visitor-chat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fl-transcript-sm { padding: 10px; border-radius: 12px; max-width: none; }
@media (max-width: 760px) {  /* People on a phone: name, status and the chat button fit the screen */
  .fl-runs table { width: 100%; table-layout: fixed; }
  .fl-runs td.fl-person { min-width: 0; }
  .fl-runs .fl-person .name { overflow-wrap: anywhere; }
  .fl-runs th:nth-child(5) { width: 38%; }
  .fl-runs .fl-chat-col { width: 48px; }
  .fl-runs-flow { max-width: 100%; }
}
.fl-runs .fl-where { max-width: 34ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-reason { display: block; font-size: 12px; margin-top: 2px; }
.fl-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.fl-help .card { padding: 16px 18px; border-radius: 16px; min-width: 0; }
.fl-help h2 { font-size: 16px; margin: 0 0 8px; }
.fl-help ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.fl-help-yes { background: #eafaf1; border-color: #c4ecd5; }
.fl-help-first { background: #eef3ff; border-color: #cfdcfb; }
.fl-help-no { background: #fff6e2; border-color: #f6e1ad; }
.fl-help-end { background: #f4f0ff; border-color: #ddd3fb; }
.fl-help-why { background: #fdf0f6; border-color: #f5cfe1; }
/* M19.6: putting a micro site on the company's own website */
.ws-pick { margin-bottom: 14px; padding: 16px 18px; border-radius: 16px; background: #F4F2FF; border-color: #DCD3FF; }
.ws-pick h2 { font-size: 16px; margin: 0 0 8px; }
.ws-pick ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.ws-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.ws-help .card { padding: 16px 18px; border-radius: 16px; min-width: 0; }
.ws-help .card > * { margin-top: 0; }
.ws-help h2 { font-size: 16px; margin: 0 0 6px; }
.ws-help .card > h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.ws-limits, .ws-frame { grid-column: 1 / -1; }
@media (min-width: 900px) { .ws-help .ws-limits ul { display: block; columns: 2; column-gap: 32px; } .ws-help .ws-limits li { break-inside: avoid; margin-bottom: 6px; } }
.ws-help ul, .ws-help ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.ws-own { background: #EAFAF1; border-color: #C4ECD5; }
.ws-zip { background: #EEF3FF; border-color: #CFDCFB; }
.ws-limits { background: #FFF6E2; border-color: #F6E1AD; }
.ws-frame { background: #FDF0F6; border-color: #F5CFE1; }
.ws-done { background: #fff; border-radius: 10px; padding: 6px 10px; font-weight: 700; color: #17804A; font-size: 14px; overflow-wrap: anywhere; }
.ws-dns { display: block; margin: 6px 0; font-family: var(--mono); font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--navy); overflow-wrap: anywhere; }
.fl-help-link { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 700; }
.cr-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 18px 14px; }
.cr-legend > div { display: flex; gap: 6px; align-items: baseline; min-width: 0; max-width: 100%; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; background: #f4f2fd; }
.cr-legend dt { font-weight: 800; white-space: nowrap; }
.cr-legend dd { margin: 0; color: #4a4868; }
.cr-legend .t-on { background: #eaf4ff; } .cr-legend .t-first { background: #eafaf1; } .cr-legend .t-last { background: #fff4e2; }
.cr-legend .t-off { background: #fdeef4; } .cr-legend .t-time { background: #f3efff; } .cr-legend .t-days { background: #f2f4f7; }
.report-table td.t-on { color: #1f5f9e; } .report-table td.t-first { color: #23704a; } .report-table td.t-last { color: #9a5b00; }
.report-table td.t-off small { display: block; }
.fl-heard { margin: 6px 0 0; color: #23704a; font-weight: 600; }
.fl-heard.quiet { color: #8a5a00; }
.views a.fl-warn-tab:not([aria-current]) { color: #9a5b00; }
.views a.fl-warn-tab .tb-n { background: #ffe7b8; color: #8a5200; }
.views a.fl-warn-tab[aria-current] .tb-n { background: #fff; color: #4b3ad1; }
.fl-un-intro { margin: 4px 0 10px; }
.fl-un { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fl-un li { background: #fff; border: 1px solid #ece8fb; border-left: 4px solid #f4c46a; border-radius: 14px; padding: 11px 14px; min-width: 0; }
.fl-un li.fl-un-failed { border-left-color: #f08a8a; background: #fff8f8; }
.fl-un li.fl-un-not_taken { border-left-color: #a99cf0; background: #faf8ff; }
.fl-un-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.fl-un-top .name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-un-top time { flex: none; }
.fl-un-said { margin: 4px 0 0; color: var(--ink, #1d1b3a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-un-why { margin: 5px 0 0; font-size: 13px; color: #6b4a00; }
.fl-un-failed .fl-un-why { color: #a12b2b; }
.fl-un-not_taken .fl-un-why { color: #4a3aa8; }
@media (max-width: 860px) {
  .fl-cards { grid-template-columns: minmax(0, 1fr); }
  .fl-h-sub { margin-left: 0; }
  .fl-empty { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .fl-hide-phone { display: none; }
  .fl-nums dd { font-size: 17px; }
  .fl-nums.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-nums.wide div { display: flex; }
  .fl-runs .fl-where { max-width: 13ch; }
  .fl-runs .chip { white-space: nowrap; }
}

/* Campaign page: a variant's message in a dialog (M19) */
.vlink { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--violet-bg); color: var(--violet-ink); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.vlink:hover { border-color: #BCAEF6; background: #E5DFFF; }
.vlink-eye { font-size: 12px; }
.vhint { margin: -4px 0 6px; }
dialog.vprev-dialog { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.vprev-body { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.vp-head { display: flex; align-items: center; gap: 10px; }
.vp-head h2 { font-size: 19px; }
.vp-x { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 800; cursor: pointer; }
.vp-x:hover { background: var(--red-bg); color: var(--red); }
.vp-who { align-self: flex-start; }
.vp-phone .phone { margin: 0 auto; max-width: 320px; box-shadow: 0 16px 34px -18px rgba(13,31,78,.45); }
.vp-phone .phone-screen { min-height: 0; padding-bottom: 10px; }
.vp-phone .phone-note { text-align: center; }
.vp-replies { display: flex; flex-direction: column; gap: 8px; }
.vp-replies h3 { font-size: 14px; }
.vp-reply { border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.vp-reply p { white-space: pre-wrap; word-break: break-word; }
.vp-reply.mint { background: #E3F6EE; } .vp-reply.peach { background: #FFF0E3; } .vp-reply.rose { background: #FDE8F0; } .vp-reply.sky { background: #E7F0FF; }
.vp-docs { font-size: 12.5px; color: var(--muted); }
.vp-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.vtable td:first-child { white-space: nowrap; }

/* M19.2: website chats (transcript) and the page editor's chatbot */
.fl-transcript { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #F6F7FB; max-width: 680px; }
.fl-t-row { display: flex; }
.fl-t-row.me { justify-content: flex-end; }
.fl-t-bubble { max-width: 80%; padding: 9px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.fl-t-row.me .fl-t-bubble { background: #EFEAFF; border-color: #DCD3FF; }
.fl-t-bubble small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.fl-t-choices { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fl-t-choices i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--violet-ink); background: var(--violet-bg); border-radius: 999px; padding: 2px 8px; }
.fl-t-note { align-self: center; font-size: 12.5px; color: var(--muted); background: #FFF6D8; border-radius: 10px; padding: 4px 10px; }
.fl-t-link { display: inline-block; font-weight: 700; background: #fff; border: 1.5px solid var(--violet); border-radius: 12px; padding: 7px 12px; text-decoration: none; }
.wp-chat { background: #F4F2FF; border-color: #DCD3FF; }
.wp-chat-warn { background: #FFF7D6; color: #6B5000; border-radius: 10px; padding: 6px 10px; }

.nav-label { min-width: 0; }
.nav-sub { font-size: .76em; font-weight: 600; opacity: .75; white-space: nowrap; }
html.nav-mini .nav-label { display: none; }
/* M19.5: history items and calls open to show everything about them */
.tl-more { min-width: 0; }
.tl-more > summary { list-style: none; cursor: pointer; display: block; position: relative; padding-right: 22px; border-radius: 8px; font-weight: inherit; }
.tl-more > summary p { font-weight: 400; }
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary::after { content: "▾"; position: absolute; right: 4px; top: 0; color: var(--muted); font-size: 12px; transition: transform .15s; }
.tl-more[open] > summary::after { transform: rotate(180deg); }
.tl-more > summary:hover strong, .tl-more > summary:hover b { text-decoration: underline; text-decoration-color: rgba(91, 71, 224, .35); }
.tl-more > summary > small, .tl-more > summary > .muted { display: block; }
.tl-dl { margin: 8px 0 2px; padding: 10px 12px; background: #f6f4ff; border: 1px solid #e6e1fb; border-radius: 12px; display: grid; gap: 5px; font-size: 12.5px; }
.tl-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.tl-dl dt { color: var(--muted); font-weight: 600; }
.tl-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
/* M19.5: change a task in place */
.tk-rows li.editing { box-shadow: 0 0 0 2px var(--violet) inset; }
.tk-rows li > .tk-edit { grid-column: 1 / -1; }
.tk-item.editing { display: block; background: #f6f4ff; }
.tk-edit { display: grid; gap: 10px; padding: 12px 14px; margin-top: 4px; background: #fbfaff; border: 1px solid #e6e1fb; border-radius: 14px; min-width: 0; }
.tk-item.editing .tk-edit { margin: 0; background: transparent; border: none; padding: 4px 2px; }
.tk-edit-h { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.tk-edit-h small { color: var(--muted); }
.tk-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.tk-edit .field { min-width: 0; }
.tk-edit input, .tk-edit select { width: 100%; max-width: 100%; }
.tk-edit-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-edit-btn { flex: none; }
.tk-range { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
/* M19.5: the team calendar */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0 4px; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.cal-nav .iconbtn { font-size: 20px; line-height: 1; font-weight: 700; text-decoration: none; }
.cal-title { font-size: 20px; margin: 0 4px; white-space: nowrap; }
.cal-count { color: var(--muted); }
.cal-count .red { color: var(--red); }
.cal-views { display: inline-flex; gap: 4px; padding: 4px; background: #eef0f8; border-radius: 14px; flex-wrap: wrap; }
.cal-views a { padding: 7px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.cal-views a[aria-current="page"] { background: #fff; box-shadow: 0 2px 6px rgba(20, 30, 70, .08); color: var(--violet); }
.cal-hint { margin: 0 0 10px; }
.cal-card { padding: 0; overflow: hidden; }
.cal-grid-wrap { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(118px, 1fr)); grid-template-rows: auto calc(var(--hours) * var(--px)); min-width: calc(58px + var(--cols) * 118px); }
.cal-grid.cal-people { grid-template-columns: 58px repeat(var(--cols), minmax(170px, 1fr)); min-width: calc(58px + var(--cols) * 170px); }
.cal-corner { border-bottom: 1px solid var(--line); position: sticky; left: 0; background: #fff; z-index: 3; }
.cal-dh { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-2); background: #fbfbfe; min-width: 0; }
.cal-dh a { display: flex; align-items: baseline; gap: 5px; text-decoration: none; color: var(--ink); }
.cal-dh small { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 11px; }
.cal-dh b { font-size: 18px; }
.cal-dh.today { background: #efeaff; }
.cal-dh.today b { color: var(--violet); }
.cal-dh.person { justify-content: flex-start; padding: 10px 10px; }
.cal-dh.person b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-n { font-size: 11px; font-weight: 800; color: var(--violet); background: #fff; border: 1px solid #ddd5fb; border-radius: 999px; padding: 0 7px; margin-left: auto; }
.cal-times { position: sticky; left: 0; z-index: 2; background: #fff; display: grid; grid-auto-rows: var(--px); border-right: 1px solid var(--line-2); }
.cal-times span { font-size: 11px; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-7px); white-space: nowrap; }
.cal-times span:first-child { transform: none; padding-top: 2px; }
.cal-col { position: relative; border-left: 1px solid var(--line-2); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--px) - 1px), #eef0f6 calc(var(--px) - 1px), #eef0f6 var(--px)); }
.cal-col.today { background-color: #faf8ff; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: #ef5a5a; z-index: 2; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ef5a5a; }
.cal-ev { position: absolute; min-height: 44px; padding: 4px 7px; border-radius: 9px; background: var(--tt-bg, #f1f2f7); color: var(--tt-ink, #3e4566); border: 1px solid var(--tt-line, #dcdfea); border-left: 4px solid var(--tt-ink, #3e4566); font-size: 12px; line-height: 1.3; overflow: hidden; z-index: 1; box-shadow: 0 2px 6px rgba(20, 30, 70, .06); }
.cal-ev:hover { z-index: 4; box-shadow: 0 6px 16px rgba(20, 30, 70, .16); }
.cal-ev.late { border-color: #f4b4b4; border-left-color: #e04848; background: #fff1f1; color: #9b2c2c; }
.cal-ev.done { opacity: .55; }
.cal-ev.done .ce-who a { text-decoration: line-through; }
.ce-top { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.ce-type { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ce-top .av.xs { margin-left: auto; flex: none; }
.ce-who { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ce-who a { color: inherit; text-decoration: none; }
.ce-who a:hover { text-decoration: underline; }
.av.xs { width: 18px; height: 18px; flex: 0 0 18px; font-size: 8.5px; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cm-dh { padding: 8px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); background: #fbfbfe; text-align: center; }
.cm-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cm-day:nth-child(7n) { border-right: none; }
.cm-day.out { background: #fafafd; }
.cm-day.out .cm-num { color: #b4b8c8; }
.cm-day.today { background: #f6f2ff; }
.cm-num { font-weight: 800; font-size: 13px; color: var(--ink); text-decoration: none; width: max-content; padding: 1px 6px; border-radius: 999px; }
.cm-day.today .cm-num { background: var(--violet); color: #fff; }
.cm-ev { display: block; font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: var(--tt-bg, #f1f2f7); color: var(--tt-ink, #3e4566); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-ev a { color: inherit; text-decoration: none; }
.cm-ev.late { background: #fff1f1; color: #9b2c2c; }
.cm-ev.done { opacity: .55; text-decoration: line-through; }
.cm-more { font-size: 11.5px; font-weight: 700; }
.cal-agenda { display: none; padding: 6px 16px 14px; margin-top: 14px; }
.cal-agenda.always { display: block; }
.ca-day h3 { font-size: 15px; margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.ca-day.today h3 { color: var(--violet); }
.cal-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); min-width: 0; }
.cal-row.late { background: #fff3f2; }
.cal-row.done { opacity: .6; }
.cal-row time b { display: block; font-size: 14px; }
.cal-row time small { color: var(--muted); font-size: 11.5px; }
.cr-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cr-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-state { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .cal-grid-wrap:not(.keep), .cal-card:has(.cal-month) { display: none; }
  .cal-agenda { display: block; }
  .cal-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .cal-row .dl-who { grid-column: 2; }
  .cal-title { font-size: 17px; }
}

/* ============ M19.8.1 — the menu, redrawn (asked by SG 14 Nov 2026: "make it look nice") ============
   A deep navy with a soft glow, each item's icon on its own pastel tile, a white pill for the page
   you're on, and slim labelled lines between the groups (Build, Follow up, More). */
.side {
  --c: #C3CCE8;
  background:
    radial-gradient(130% 45% at 0% 0%, rgba(124, 92, 255, .30), transparent 62%),
    radial-gradient(110% 40% at 100% 100%, rgba(61, 213, 152, .16), transparent 62%),
    linear-gradient(180deg, #11265E 0%, #0C1C4A 52%, #0A173F 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
  gap: 18px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.side .nav { gap: 1px; }
.side .nav > a, .side .ng-label, .side .ng-head > a {
  min-height: 40px; padding: 0 10px 0 6px; gap: 11px; border-radius: 13px;
  color: #CBD3EC; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.side .nav > a > svg:first-child, .side .ng-label > svg:first-child {
  box-sizing: content-box; width: 18px; height: 18px; flex: 0 0 auto; padding: 5px; border-radius: 10px;
  color: var(--c); background: rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--c) 17%, transparent);
  transition: background .15s ease, color .15s ease;
}
.side .nav > a:hover, .side .ng-label:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side .nav > a:hover > svg:first-child, .side .ng-label:hover > svg:first-child { background: color-mix(in srgb, var(--c) 28%, transparent); }
.side .nav > a[aria-current="page"] {
  background: #fff; color: var(--navy); font-weight: 800;
  box-shadow: 0 8px 22px rgba(3, 8, 32, .38), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.side .nav > a[aria-current="page"] > svg:first-child, .side .ng-items a[aria-current="page"] > svg:first-child { background: var(--c); color: var(--navy); }
.side .nav > a[aria-current="page"] .nav-sub { opacity: .6; }
.side .nav-group.in > .ng-head > .ng-label { color: #fff; }
.side .ng-chev { color: #7F8BB8; }
/* a group's own items hang off a thin line */
.side .ng-items { margin: 2px 0 6px 19px; padding-left: 12px; gap: 1px; border-left: 1.5px solid rgba(255, 255, 255, .12); }
.side .ng-items a { min-height: 34px; padding: 0 10px; border-radius: 11px; color: #AFBADD; font-size: 13.5px; transition: background .15s ease, color .15s ease; }
.side .ng-items a > svg:first-child { color: var(--c); opacity: 1; }
.side .ng-items a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side .ng-items a[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 800; box-shadow: 0 6px 16px rgba(3, 8, 32, .32); }
.side .ng-items a[aria-current="page"] > svg:first-child { box-sizing: content-box; padding: 3px; border-radius: 7px; margin-left: -3px; }
/* the lines between groups, with the group's name */
.side .nav .nav-sep {
  display: flex; align-items: center; gap: 9px; height: auto; min-height: 0; margin: 16px 8px 6px; padding: 0;
  background: none; border-radius: 0; pointer-events: none;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8391C0;
}
.side .nav .nav-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); }
.side .nav .nav-sep:empty { margin: 12px 8px; }
.side .nav-badge { box-shadow: 0 0 0 2px rgba(10, 23, 63, .55); }
.side .nav > a[aria-current="page"] .nav-badge { box-shadow: none; }
/* each place has its own colour */
.side a[href="/day"], .side a[href="/today"], .side a[href="/feedback"] { --c: #FFD966; }
.side a[href="/network"], .side a[href="/my-dealership"], .side a[href^="/reports"], .side [aria-controls="ng-rep"] { --c: #67E8F9; }
.side a[href="/board"] { --c: #FFB86B; }
.side a[href="/tickets"], .side a[href^="/platform/support"], .side a[href="/help/support"] { --c: #FF9AAE; }
.side a[href="/"], .side a[href="/platform"] { --c: #8EC5FF; }
.side a[href="/leads"], .side a[href="/import"], .side a[href="/lead-miner"], .side [aria-controls="ng-leads"] { --c: #B9A4FF; }
.side a[href="/templates"], .side a[href="/help/whatsapp-api"] { --c: #4ADE9B; }
.side a[href="/flows"] { --c: #D9A8FF; }
.side a[href="/pages"] { --c: #7DD3FC; }
.side a[href="/social"], .side a[href="/posters"] { --c: #F9A8D4; }
.side a[href="/campaigns"], .side [aria-controls="ng-camps"] { --c: #FFA07F; }
.side a[href="/inbox"] { --c: #5EEAB0; }
.side a[href="/calls"], .side a[href="/app"] { --c: #B6F07E; }
.side a[href="/tasks"] { --c: #93B8FF; }
.side a[href="/knowledge"], .side a[href="/documents"], .side [aria-controls="ng-lib"] { --c: #C9B3FF; }
.side a[href="/cities"] { --c: #FFC08A; }
.side a[href="/help"], .side a[href="/settings/system"], .side [aria-controls="ng-help"] { --c: #9DD7FF; }
.side a[href="/reviews"], .side a[href="/google/posts"], .side [aria-controls="ng-google"] { --c: #FFD36B; }
.side a[href^="/platform/companies"] { --c: #B9A4FF; }
/* product picker, numbers and you: soft glass cards */
.side .switcher label { font-size: 10.5px; letter-spacing: .14em; color: #8391C0; padding: 0 6px; }
.side .switcher select, .side .switcher.one span { background-color: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 13px; }
.side .switcher select:hover { background-color: rgba(255, 255, 255, .11); }
.side .switcher select option { color: var(--ink); background: #fff; }
.side-numbers { padding: 12px 14px; margin: 0 2px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.side-numbers h4 { font-size: 10.5px; letter-spacing: .14em; color: #8391C0; }
.side .me { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; }
.side .me .avatar { background: linear-gradient(135deg, #5EEAB0, #7DD3FC); color: var(--navy); box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.side .me form { border-top-color: rgba(255, 255, 255, .1); }
/* the narrow menu: tiles only */
html.nav-mini .side .nav > a, html.nav-mini .side .ng-items a { min-height: 44px; padding: 0; border-radius: 14px; }
html.nav-mini .side .ng-items a > svg:first-child { box-sizing: content-box; width: 18px; height: 18px; padding: 5px; border-radius: 10px; margin: 0; background: color-mix(in srgb, var(--c) 17%, transparent); }
html.nav-mini .side .ng-items a[aria-current="page"] { box-shadow: 0 6px 16px rgba(3, 8, 32, .32); }
html.nav-mini .side .ng-items a[aria-current="page"] > svg:first-child { background: var(--c); }
html.nav-mini .side .nav .nav-sep { font-size: 0; gap: 0; margin: 10px 6px; }
@media (max-width: 860px) {
  /* phones: the open menu is a grid of tiles, sorted into the same groups */
  .side .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .side .nav > a, .side .ng-items a {
    position: relative; flex-direction: column; justify-content: center; gap: 7px; min-height: 86px; padding: 12px 6px 10px;
    border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
    color: #DCE2F4; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; margin: 0;
  }
  .side .nav > a > svg:first-child, .side .ng-items a > svg:first-child {
    box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 13px; margin: 0;
    color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent);
  }
  .side .nav > a[aria-current="page"], .side .ng-items a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--navy); }
  .side .ng-items a[aria-current="page"] > svg:first-child { padding: 8px; margin: 0; }
  .side .nav-sub { display: none; }
  .side .nav-badge { position: absolute; top: 7px; right: 7px; margin: 0; }
  .side .st-dot { position: absolute; top: 10px; left: 10px; margin: 0; }
  .side .nav .nav-sep, .side .nav .nav-sep:empty { grid-column: 1 / -1; margin: 12px 4px 2px; }
  .side .nav > .nav-sep:first-child { margin-top: 0; }
  /* a group's name (Leads, Campaigns, Library…) over its tiles */
  .side .ng-head { display: block; grid-column: 1 / -1; }
  .side .ng-label { display: flex; min-height: 0; padding: 4px 4px 0; gap: 7px; background: none; pointer-events: none; color: #AFBADD; font-size: 12.5px; font-weight: 700; }
  .side .ng-label > svg:first-child { width: 14px; height: 14px; padding: 4px; border-radius: 8px; }
  .side .ng-chev { display: none; }
  .side .nav-group + a { grid-column-start: 1; }  /* items after a group start their own row */
}
@media (max-width: 380px) { .side .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* M19.8.3 — the sign-in side says what LeadOrbit is: a sales CRM, with its main parts as small tags */
.auth-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.auth-tags span { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #E6EAF7;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); white-space: nowrap; }
.auth-tags span:first-child { background: rgba(61, 213, 152, .18); border-color: rgba(61, 213, 152, .45); color: #B8F5DA; }

/* M19.8.4 — the journey box says why it's paused */
.jr-head .pace-paused { display: block; padding: 8px 12px; border-radius: 12px; background: var(--p-peach); border: 1px solid var(--p-peach-line); color: var(--p-peach-ink); font-weight: 600; line-height: 1.45; }
.jr-head .pace-paused b { color: #7A3A0A; font-weight: 800; }
