/* App console design (customer dashboard and admin): sidebar shell, quiet neutrals, pill buttons.
   Loaded after theme.css and only overrides it, so the public pages keep their own look. */
:root {
  --bg: #f7f7f9; --surface: #ffffff; --surface-2: #f1f1f4; --hover: #f4f4f7;
  --ink: #17171c; --ink-2: #3d3d47; --mute: #75757f; --line: #e7e7ec; --line-strong: #d9d9e0;
  --accent: #5b4bff; --accent-ink: #ffffff; --link: #4f3fe0; --accent-soft: rgba(91, 75, 255, .1);
  --pill-bg: #17171c; --pill-ink: #ffffff;
  --ok: #138a52; --ok-soft: rgba(19, 138, 82, .1); --warn: #a8650a; --warn-soft: rgba(196, 122, 10, .12);
  --err: #c0303a; --err-soft: rgba(192, 48, 58, .1); --info: #2f6fd6; --info-soft: rgba(47, 111, 214, .1);
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 1px 1px rgba(20, 20, 30, .03);
  --shadow-lg: 0 24px 64px rgba(20, 20, 30, .18);
  --font: Figtree, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0c15; --surface: #11131d; --surface-2: #191c2a; --hover: #161926;
    --ink: #eceef4; --ink-2: #b6bacb; --mute: #858a9e; --line: #1f2232; --line-strong: #2a2e42;
    --accent: #8f84ff; --accent-ink: #0b0c15; --link: #b49bff; --accent-soft: rgba(143, 132, 255, .14);
    --pill-bg: #eceef4; --pill-ink: #0b0c15;
    --ok: #3fc58a; --ok-soft: rgba(63, 197, 138, .12); --warn: #e3a54a; --warn-soft: rgba(227, 165, 74, .12);
    --err: #f06470; --err-soft: rgba(240, 100, 112, .12); --info: #6ea2ff; --info-soft: rgba(110, 162, 255, .12);
    --shadow: none; --shadow-lg: 0 24px 64px rgba(0, 0, 0, .5);
  }
}
:root[data-theme='dark'] {
  --bg: #0b0c15; --surface: #11131d; --surface-2: #191c2a; --hover: #161926;
  --ink: #eceef4; --ink-2: #b6bacb; --mute: #858a9e; --line: #1f2232; --line-strong: #2a2e42;
  --accent: #8f84ff; --accent-ink: #0b0c15; --link: #b49bff; --accent-soft: rgba(143, 132, 255, .14);
  --pill-bg: #eceef4; --pill-ink: #0b0c15;
  --ok: #3fc58a; --ok-soft: rgba(63, 197, 138, .12); --warn: #e3a54a; --warn-soft: rgba(227, 165, 74, .12);
  --err: #f06470; --err-soft: rgba(240, 100, 112, .12); --info: #6ea2ff; --info-soft: rgba(110, 162, 255, .12);
  --shadow: none; --shadow-lg: 0 24px 64px rgba(0, 0, 0, .5);
}

body { font: 14px/1.5 var(--font); background: var(--bg); }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: 14px; font-weight: 600; }
[hidden] { display: none !important; }

/* Shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
.side .brand img { width: 28px; height: 28px; border-radius: 7px; }
.side select { margin: 0 0 12px; padding: 7px 10px; font-size: 13px; border-radius: 9px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.on { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.nav svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); padding: 14px 10px 4px; }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.side-foot .who { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who small { display: block; color: var(--mute); font-weight: 400; font-size: 12px; }
.side-foot .acts { display: flex; gap: 6px; align-items: center; }
.main { min-width: 0; max-width: 1180px; width: 100%; margin: 0; padding: 28px 36px 64px; }
.mobilebar { display: none; }

/* Page header */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ph p { margin: 4px 0 0; color: var(--mute); max-width: 680px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cols > .card { margin-bottom: 0; }
.cols + .card, .card + .cols { margin-top: 16px; }

/* Cards: the first heading becomes the card's header bar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.card > h2:first-child { margin: -18px -20px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.card h2:not(:first-child) { font-size: 13px; margin: 22px 0 8px; }
.card > p.muted:first-of-type { margin-top: 0; }

/* Tiles */
.tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.tile b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.tile span { font-size: 12.5px; }

/* Tables */
table { font-size: 13.5px; }
th { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--mute); padding: 10px 14px 10px 0; }
td { padding: 11px 14px 11px 0; }
tbody tr:hover td { background: var(--hover); }
td.empty { text-align: center; padding: 26px 0; }
.pill { background: var(--surface-2); color: var(--ink-2); font-weight: 500; padding: 1px 10px; }

/* Buttons and fields */
button, .btnlike, .button { border-radius: 999px; font-size: 13px; font-weight: 500; padding: 7px 15px; border-color: var(--line-strong); box-shadow: var(--shadow); }
button:hover, .btnlike:hover, .button:hover { background: var(--hover); }
button.primary, .button.primary { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-ink); }
button.primary:hover, .button.primary:hover { background: var(--pill-bg); opacity: .88; }
.icon-btn { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; box-shadow: none; }
.linkish { box-shadow: none; border-radius: 0; padding: 0; font-weight: 500; text-decoration: none; color: var(--ink); }
.linkish:hover { text-decoration: underline; }
input, select, textarea { border-radius: 9px; border-color: var(--line-strong); padding: 8px 11px; font-size: 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 5px; }

/* Messages */
#status:not(:empty) { position: sticky; top: 12px; z-index: 5; background: var(--ok-soft); color: var(--ink); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; box-shadow: var(--shadow); }
#status.warn:not(:empty) { background: var(--warn-soft); }
p.warn:not(:empty) { background: var(--warn-soft); color: var(--ink); border-radius: 10px; }
.msg { border-radius: 14px; font-size: 13.5px; }

/* Checklist */
.check li.done::before { background: var(--ok); border-color: var(--ok); }

/* Lead drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); margin: 0; border-radius: 0; border-width: 0 0 0 1px; overflow-y: auto; z-index: 40; box-shadow: var(--shadow-lg); animation: slide .16s ease-out; }
.drawer > h2:first-child { position: sticky; top: -18px; background: var(--surface); z-index: 1; font-size: 16px; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* Sign-in screens */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.gate::before { content: ''; position: absolute; width: 900px; height: 600px; left: 50%; top: -280px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, .22), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(37, 99, 235, .16), transparent 70%); pointer-events: none; }
.gate > .card, .gate > form, .gate > section { position: relative; width: min(460px, 100%); margin: 0; padding: 30px 30px 24px; border-radius: 18px; }
.gate .onboard { width: min(600px, 100%); }
.gate .gate-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 17px; margin-bottom: 18px; }
.gate .gate-brand img { width: 34px; height: 34px; border-radius: 8px; }
.gate .gate-theme { position: absolute; top: 16px; right: 16px; }
.gate .card > h2, .gate form > h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 21px; letter-spacing: -0.015em; }

@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 50; transform: translateX(-100%); transition: transform .18s; box-shadow: var(--shadow-lg); }
  .shell.nav-open .side { transform: none; }
  .mobilebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; font-weight: 600; }
  .mobilebar img { width: 26px; height: 26px; border-radius: 6px; }
  .main { padding: 18px 14px 48px; }
  .card { padding: 14px 16px; }
  .card > h2:first-child { margin: -14px -16px 14px; padding: 12px 16px; }
}

/* Lead status badges */
.pill.s-qualified, .pill.s-delivered, .pill.s-booked, .pill.s-won { background: var(--ok-soft); color: var(--ok); }
.pill.s-handoff, .pill.s-responded, .pill.s-qualifying { background: var(--info-soft); color: var(--info); }
.pill.s-rejected, .pill.s-disqualified, .pill.s-lost, .pill.s-opted_out { background: var(--err-soft); color: var(--err); }

/* Admin console, which keeps a top bar instead of a sidebar */
.topbar { background: var(--surface); backdrop-filter: none; padding: 12px 28px; }
.topbar .brand h1 { font-size: 16px; font-weight: 600; }
.topbar + main { max-width: 1240px; padding: 28px; }
.cols + .cols { margin-top: 16px; }
.side-foot select { font-size: 12.5px; padding: 6px 9px; }

/* ---------- Customer dashboard: colour, icons and charts, so pages read at a glance (scoped to .dash). */
.dash { --t-accent: var(--accent); --t-ok: var(--ok); --t-info: var(--info); --t-warn: var(--warn); --t-pink: #d6409f; --t-teal: #0f9488; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .dash { --t-pink: #f07ac4; --t-teal: #3cc7b6; } }
:root[data-theme='dark'] .dash { --t-pink: #f07ac4; --t-teal: #3cc7b6; }
.dash .main { position: relative; }
.dash .main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 260px; background: radial-gradient(600px 220px at 18% -40px, var(--accent-soft), transparent 70%); pointer-events: none; z-index: 0; }
.dash .main > * { position: relative; }

/* Menu: the open page is tinted, with its icon in the accent colour. */
.dash .nav a { position: relative; transition: background .12s, color .12s; }
.dash .nav a.on { background: var(--accent-soft); color: var(--ink); }
.dash .nav a.on svg { stroke: var(--accent); opacity: 1; }
.dash .nav a.on::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }

/* Page headers get the page's icon in a tinted square. */
.dash .ph > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.dash .ph-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 6px 18px var(--accent-soft); }
.dash .ph-icon svg { width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dash .ph h1 { font-size: 24px; margin: 0; }
.dash .ph p { margin-top: 2px; }

/* Cards lift slightly; their header bar gets a soft wash. */
.dash .card { border-radius: 16px; }
.dash .card > h2:first-child { background: linear-gradient(180deg, var(--surface-2), transparent); border-radius: 16px 16px 0 0; }

/* Greeting banner on Overview. */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 16px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #4a3af0, #6d5cff 55%, #8b7dff); box-shadow: 0 12px 32px rgba(91, 75, 255, .22); overflow: hidden; position: relative; }
.hello::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hello h2 { margin: 0 0 4px; font-size: 21px; font-weight: 650; letter-spacing: -.015em; color: #fff; }
.hello p { margin: 0; color: rgba(255, 255, 255, .86); }
.hello .acts { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hello .acts a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; text-decoration: none; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.hello .acts a:first-child { background: #fff; color: #3b2ce0; border-color: #fff; }
.hello .acts a:hover { filter: brightness(1.05); }
.hello .acts svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Stat tiles with a coloured icon. */
.tile.v2 { flex-direction: column; justify-content: flex-start; gap: 0; padding: 16px 18px 15px; transition: transform .12s, box-shadow .12s; }
.tile.v2:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20, 20, 30, .07); }
.tile.v2 .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; background: color-mix(in srgb, var(--tone) 13%, transparent); }
.tile.v2 .ti svg { width: 18px; height: 18px; stroke: var(--tone); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile.v2 b { font-size: 26px; line-height: 1.1; }
.tile.v2 span { color: var(--mute); margin-top: 3px; }

/* Bar lists: the funnel and lead sources. */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 10px; align-items: center; }
.bar-row .bi { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone, var(--accent)) 13%, transparent); }
.bar-row .bi svg { width: 16px; height: 16px; stroke: var(--tone, var(--accent)); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bar-row .bl { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bn { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bar-row .bn small { font-weight: 400; color: var(--mute); margin-left: 6px; }
.bar-row .bt { grid-column: 2 / 4; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-row .bt span { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: var(--tone, var(--accent)); transition: width .5s ease; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.chips span { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.chips b { font-weight: 650; margin-left: 4px; }
.bars-empty { text-align: center; color: var(--mute); padding: 18px 0 8px; }

/* People: initials in a coloured circle beside the name. */
.who-cell { display: inline-flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--tone); background: color-mix(in srgb, var(--tone) 15%, transparent); }
.src-cell { display: inline-flex; align-items: center; gap: 7px; }
.src-cell svg { width: 15px; height: 15px; stroke: var(--tone, var(--mute)); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Empty tables show an icon, not just a line of grey text. */
.dash td.empty { padding: 30px 0 26px; }
.dash td.empty::before { content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: rgba(91, 75, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a6dff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 3h5L16 13h5'/%3E%3Cpath d='M5.5 6h13L21 13v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5z'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Getting started: a progress bar above the steps. */
.prog { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.prog .gf-bar { flex: 1; margin: 0; }
.prog b { font-size: 13px; white-space: nowrap; }
.dash .check li.done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: none; }
@media (max-width: 560px) { .hello { padding: 18px; } .hello h2 { font-size: 18px; } .dash .ph-icon { width: 38px; height: 38px; } }

.dash .tiles { grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); }

/* Get found: where a setup request by our team stands. */
.gf-help.gf-track { display: grid; gap: 14px; }
.gf-track p { margin: 2px 0 0; color: var(--ink-2); }
.gf-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.gf-stages li { display: grid; align-content: start; justify-items: center; gap: 4px; text-align: center; font-size: 12.5px; color: var(--mute); position: relative; }
.gf-stages li::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); z-index: 0; }
.gf-stages li:first-child::before { display: none; }
.gf-stages li.past::before, .gf-stages li.now::before { background: var(--accent); }
.gf-stage-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface); border: 2px solid var(--line-strong); color: var(--mute); position: relative; z-index: 1; }
.gf-stages li.past .gf-stage-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gf-stages li.now .gf-stage-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gf-stages li.now, .gf-stages li.past { color: var(--ink); font-weight: 600; }
.gf-stages small { font-weight: 400; color: var(--mute); font-size: 11.5px; }

/* Install the dashboard as an app. */
.side-foot #install-app { width: 100%; margin-top: 2px; }

/* Tasks: what is pending, on whom, and when. */
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-h h2 { margin: 0; }
.tasks { display: flex; flex-direction: column; }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); }
.tasks .task:first-child { border-top: 0; }
.task input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); margin: 0; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.task.done .task-title { text-decoration: line-through; color: var(--mute); font-weight: 500; }
.task-due { white-space: nowrap; color: var(--ink-2); min-width: 88px; text-align: right; }
.task-due.warn { color: var(--err); font-weight: 600; }
.pill.task-you { background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.pill.task-team { background: var(--accent-soft); color: var(--link); white-space: nowrap; }
.task-bar { margin: 0 0 14px; }
.seg-btns { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-btns button { border: 0; background: transparent; color: var(--ink-2); padding: 6px 16px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer; }
.seg-btns button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.task-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.task-form .field { margin: 0; }
.task-form .grow { flex: 1 1 260px; }
@media (max-width: 640px) {
  .task { flex-wrap: wrap; }
  .task-main { flex-basis: calc(100% - 40px); }
  .task .pill { margin-left: 30px; }
  .task-due { min-width: 0; text-align: left; }
}

/* The status line takes no space until it has something to say. */
#status:empty { margin: 0; }

/* Where a task's Take action button lands: a short glow so the eye finds it. */
@keyframes spot { 0%, 60% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px var(--accent-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
.spot { animation: spot 2.4s ease-out; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .spot { animation: none; outline: 3px solid var(--accent); outline-offset: 4px; } }

/* The Overview's tasks tile opens Tasks. */
.tile-link { text-decoration: none; color: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.tile-link:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.tile-link small { display: block; margin-top: 4px; font-size: 12px; }
/* AI call-back: the four steps from enquiry to hand-over, as a row of connected cards (a column on phones). */
.flow { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: flow; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line, var(--surface-2)); border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.flow li b { font-size: 14px; }
.flow li > span:last-child { color: var(--ink-2); line-height: 1.35; }
.flow .ti { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft, var(--surface)); color: var(--accent, currentColor); }
.flow .ti svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: -9px; top: 50%; width: 8px; height: 2px; background: var(--ink-2); opacity: .35; }
@media (max-width: 720px) { .flow { grid-template-columns: 1fr; } .flow li:not(:last-child)::after { display: none; } }
/* Choosing how new leads are contacted: three cards, one per choice. */
.modes { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modes legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.mode { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 13px; }
.mode input { margin: 0 0 4px; accent-color: var(--accent); }
.mode span { color: var(--ink-2); line-height: 1.35; }
.mode:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }
.mode.current { border-color: var(--accent); background: var(--accent-soft); }
.mode button { margin-top: 8px; align-self: flex-start; }
.agent { border-top: 1px solid var(--line); padding: 10px 0; }
.agent:first-child { border-top: 0; }
.agent p { margin: 4px 0 0; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 8px 0; }
/* Business knowledge and the try-it chat for AI employees */
#kb-text { width: 100%; font-family: inherit; line-height: 1.5; }
.try-log { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 12px; min-height: 160px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.try-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.try-msg p { margin: 0; white-space: pre-wrap; }
.try-msg p + p { margin-top: 4px; }
.try-msg.customer { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.try-input input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .try-msg { max-width: 92%; } }

/* ---------- Dashboard shell, 2026 refresh: a bar above every page, grouped menu, AI team card, phone tab bar. */
.dash { --saffron: #e8912a; --saffron-ink: #2b1800; --saffron-soft: rgba(232, 145, 42, .13); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .dash { --saffron: #f2a94e; --saffron-soft: rgba(242, 169, 78, .14); } }
:root[data-theme='dark'] .dash { --saffron: #f2a94e; --saffron-soft: rgba(242, 169, 78, .14); }
.dash svg { stroke-linecap: round; stroke-linejoin: round; }
.dash .side { padding-bottom: 12px; }
.nav .count.soft { background: var(--surface-2); color: var(--ink-2); }
.nav-group { margin: 0; }
.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: var(--ink); }
.nav-group > summary svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .15s; }
.nav-group:not([open]) > summary svg { transform: rotate(-90deg); }
.nav-group > a { margin-top: 1px; }
.side-team { margin-top: auto; display: grid; gap: 6px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface-2); border: 1px solid var(--line); }
.side-team:hover { border-color: var(--line-strong); }
.side-team .st-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.side-team .st-live { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.side-team .st-live.on { color: var(--ok); }
.side-team .st-live.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 5px; box-shadow: 0 0 0 3px var(--ok-soft); }
.side-team .st-faces { display: flex; min-height: 0; }
.side-team .st-faces:empty { display: none; }
.side-team .st-faces span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--tone); border: 2px solid var(--surface-2); margin-right: -7px; }
.side-team .st-sub { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 36px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.appbar #menu { display: none; }
.jump { position: relative; flex: 1; max-width: 440px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.jump:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.jump > svg { width: 16px; height: 16px; stroke: var(--mute); fill: none; stroke-width: 2; flex: none; }
.jump input { border: 0; box-shadow: none !important; background: transparent; padding: 8px 0; font-size: 13.5px; min-width: 0; flex: 1; }
.jump kbd { font: 11px var(--font); color: var(--mute); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; }
.jump-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 1px; z-index: 40; }
.jump-list p { margin: 8px 10px; }
.jl { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; box-shadow: none; border-radius: 8px; padding: 8px 10px; background: transparent; font-weight: 500; }
.jl small { color: var(--mute); font-weight: 400; }
.jl.on, .jl:hover { background: var(--accent-soft); }
.ab-state { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
.ab-state.on { color: var(--ok); background: var(--ok-soft); }
.ab-state.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.ab-state.wait { color: var(--warn); background: var(--warn-soft); }
.ab-wallet { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 5px 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap; }
.ab-wallet:hover { border-color: var(--line-strong); }
.ab-wallet svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 1.9; }
.ab-wallet #ab-minutes { color: var(--mute); font-size: 12px; }
.ab-wallet .ab-plus { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: var(--saffron-ink); font-weight: 700; }
.ab-state + .ab-wallet[hidden] + .icon-btn { margin-left: auto; }
.ab-me { position: relative; }
.ab-me > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 3px 6px 3px 3px; border-radius: 99px; }
.ab-me > summary::-webkit-details-marker { display: none; }
.ab-me > summary:hover { background: var(--hover); }
.ab-me .avatar { width: 32px; height: 32px; }
.ab-who { display: grid; line-height: 1.15; font-size: 12.5px; max-width: 160px; }
.ab-who b, .ab-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-who small { color: var(--mute); }
.ab-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; display: grid; gap: 8px; z-index: 40; }
.ab-menu .who { font-weight: 600; font-size: 13.5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ab-menu .who small { display: block; color: var(--mute); font-weight: 400; font-size: 12px; }
.ab-menu label { margin: 0; }
.ab-menu a { color: var(--ink); text-decoration: none; font-size: 13.5px; padding: 4px 0; }
.ab-menu a:hover { color: var(--link); }
.ab-menu #out { justify-self: start; }
.dash .main { max-width: 1240px; }
.tabbar { display: none; }

/* Home: the hiring box. A light card with a saffron-to-indigo edge, job choices as tiles, and a how-it-works rail. */
.home-ph h1 { font-size: 26px; }
.hire { display: grid; grid-template-columns: minmax(0, 1fr) 280px; margin-bottom: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hire::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--saffron), var(--accent)); }
.hire-main { padding: 22px 24px 18px 28px; display: grid; gap: 14px; }
.hire-kicker { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hire-kicker span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--saffron-ink); background: var(--saffron); border-radius: 6px; padding: 2px 7px; }
.hire h2 { margin: -6px 0 0; font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.hire-jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.job { position: relative; display: grid; gap: 2px; align-content: start; margin: 0; padding: 12px 12px 11px; border: 1px solid var(--line-strong); border-radius: 13px; cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s; }
.job:hover { border-color: var(--ink-2); }
.job input { position: absolute; opacity: 0; pointer-events: none; }
.job:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.job:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.job:has(input:checked)::after { content: ''; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.job-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 6px; }
.job-ic svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 2; }
.job:has(input:checked) .job-ic { background: var(--accent); }
.job:has(input:checked) .job-ic svg { stroke: var(--accent-ink); }
.job b { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.job small { font-size: 12px; color: var(--mute); line-height: 1.35; }
.hire-brief { display: grid; gap: 8px; }
.hire-brief label { margin: 0; }
.hire-brief textarea { font: inherit; font-size: 14.5px; line-height: 1.55; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-color: transparent; resize: vertical; }
.hire-brief textarea:focus { background: var(--surface); }
.hire-langs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hl-label { font-size: 12px; color: var(--mute); margin-right: 2px; }
.hire-langs button { box-shadow: none; padding: 4px 11px; font-size: 13px; border-color: var(--line); }
.hire-langs button[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.hire-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); }
.hire-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.hire-foot .primary { padding: 9px 20px; font-size: 14px; font-weight: 600; }
.hire-foot .primary::after { content: ' →'; }
.hire-how { background: var(--surface-2); border-left: 1px solid var(--line); padding: 22px 20px; }
.hire-how-h { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.hire-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hire-how li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; position: relative; padding-bottom: 18px; }
.hire-how li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.hs-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.hs-ic svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; }
.hire-how li b { display: block; font-size: 13.5px; line-height: 1.3; margin-top: 2px; }
.hire-how li small { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.4; margin-top: 2px; }

/* Home: setup as one strip with a progress ring; the full list folds out. */
.setup-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 14px; padding: 12px 16px; margin-bottom: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.setup-strip .ring { --p: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--saffron) calc(var(--p) * 1%), var(--surface-2) 0); }
.setup-strip .ring span { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.setup-text { display: grid; min-width: 0; }
.setup-text b { font-size: 14px; }
.setup-text small { color: var(--mute); font-size: 12.5px; }
.setup-all { grid-column: 1 / -1; }
.setup-all > summary { font-size: 12.5px; color: var(--link); cursor: pointer; width: max-content; }
.setup-all[open] > summary { margin-bottom: 12px; }

/* Home: quick actions and the AI team, side by side. */
.home-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.hb-h { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 10px; }
.hb-h h2 { margin: 0; font-size: 15px; }
.hb-h a { font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .12s, transform .12s; }
.qa:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.qa-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 13%, transparent); }
.qa-ic svg { width: 18px; height: 18px; stroke: var(--tone); fill: none; stroke-width: 2; }
.qa b { display: block; font-size: 13.5px; font-weight: 600; }
.qa small { display: block; font-size: 12px; color: var(--mute); }
.team-list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.tmate { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.tmate + .tmate { border-top: 1px solid var(--line); border-radius: 0; }
.tmate:hover { background: var(--hover); }
.tm-t { display: grid; min-width: 0; }
.tm-t b { font-size: 13.5px; }
.tm-t small, .tm-n small { font-size: 12px; color: var(--mute); }
.tm-n { text-align: right; display: grid; line-height: 1.15; }
.tm-n b { font-size: 17px; }
.tm-add { grid-template-columns: 36px 1fr; color: var(--link); font-weight: 600; font-size: 13px; }
.an-plus { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line-strong); font-size: 18px; font-weight: 500; color: var(--ink-2); }
.ac-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--tone); flex: none; }
.ac-state { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.ac-state.ok { color: var(--ok); background: var(--ok-soft); }
.ac-state.live { color: var(--saffron-ink); background: var(--saffron); }
.ac-state.new { color: var(--link); background: var(--accent-soft); }

/* AI employees: tabs, then one card per employee. */
.ag-tabs { margin-bottom: 16px; flex-wrap: wrap; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.agent-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; font: inherit; color: inherit; }
.ac-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ac-top .ac-av { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.ac-top b { display: block; font-size: 15px; }
.ac-top small { color: var(--mute); font-size: 12.5px; }
.ac-brief { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-nums { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.ac-nums span { display: grid; padding: 8px 12px; line-height: 1.2; }
.ac-nums span + span { border-left: 1px solid var(--line); }
.ac-nums b { font-size: 17px; }
.ac-nums small { font-size: 11.5px; color: var(--mute); }
.ac-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ac-acts button { padding: 6px 12px; font-size: 12.5px; }
.agent-new { align-items: center; justify-content: center; text-align: center; border-style: dashed; border-width: 1.5px; box-shadow: none; cursor: pointer; min-height: 200px; background: transparent; gap: 6px; border-radius: 16px; }
.agent-new:hover { border-color: var(--accent); background: var(--accent-soft); }
.agent-new .an-plus { width: 44px; height: 44px; font-size: 22px; margin-bottom: 4px; }
.agent-new b { font-size: 14.5px; }
.agent-new small { color: var(--mute); font-size: 12.5px; font-weight: 400; }
#agent-form > div { margin-bottom: 12px; }
#agent-form input, #agent-form textarea, #agent-form select { width: 100%; }
.danger-link { margin-left: auto; color: var(--err); border-color: transparent; box-shadow: none; }

@media (max-width: 1080px) { .hire { grid-template-columns: 1fr; } .hire-how { border-left: 0; border-top: 1px solid var(--line); } .hire-how ol { grid-template-columns: repeat(3, 1fr); gap: 12px; } .hire-how li { padding-bottom: 0; } .hire-how li::before { display: none; } .hire-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .appbar { padding: 8px 12px; gap: 6px; }
  .appbar #menu { display: inline-grid; }
  .jump kbd, .ab-who, .ab-state, #ab-minutes, .appbar [data-theme-toggle] { display: none; }
  .tabbar, .dash .main > .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--mute); text-decoration: none; padding: 2px 0; }
  .tabbar a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .tabbar a.on { color: var(--accent); font-weight: 600; }
  .tabbar .tab-hire svg { width: 44px; height: 44px; padding: 11px; margin-top: -20px; border-radius: 50%; background: var(--saffron); stroke: var(--saffron-ink); stroke-width: 2.4; box-shadow: 0 6px 16px rgba(232, 145, 42, .35); }
  .main { padding-bottom: 96px; }
  .hire-main { padding: 18px 16px 16px 20px; }
  .hire-how ol { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .drawer { z-index: 45; }
}
@media (max-width: 560px) { .hire-jobs { grid-template-columns: 1fr 1fr; } .job { padding: 10px; } .job small { display: none; } .quick { grid-template-columns: 1fr; } .setup-strip { grid-template-columns: auto 1fr; } .setup-strip .button { grid-column: 1 / -1; text-align: center; } .ac-acts button { flex: 1; } }
.hire-langs .hl-more { border-style: dashed; color: var(--link); }
/* What calling still needs: a number, money in the wallet. */
.call-ready { display: grid; gap: 1px; margin-bottom: 16px; border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--saffron) 45%, var(--line)); background: color-mix(in srgb, var(--saffron) 45%, var(--line)); }
.cr-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; background: color-mix(in srgb, var(--saffron-soft) 60%, var(--surface)); }
.cr-row b { font-size: 14px; }
.cr-row p { margin: 2px 0 0; }
.cr-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); }
.cr-ic svg { width: 18px; height: 18px; stroke: var(--saffron); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .cr-row { grid-template-columns: 36px 1fr; } .cr-row .button { grid-column: 1 / -1; text-align: center; } }
/* Phones: every table row becomes a small card, with the column name beside each value, so nothing runs off the screen. */
@media (max-width: 700px) {
  .dash table { display: block; width: 100%; }
  .dash table thead { display: none; }
  .dash table tbody { display: grid; gap: 10px; }
  .dash table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .dash table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  .dash table td.num { text-align: left; }
  .dash table td::before { content: attr(data-label); font-size: 12px; color: var(--mute); padding-top: 1px; }
  .dash table td:not([data-label])::before, .dash table td[data-label='']::before { display: none; }
  .dash table td:not([data-label]), .dash table td[data-label=''] { grid-template-columns: minmax(0, 1fr); }
  .dash table td:first-child { grid-template-columns: minmax(0, 1fr); font-weight: 600; }
  .dash table td:first-child::before { display: none; }
  .dash table tbody tr:hover td { background: transparent; }
  .dash table td.empty { display: block; }
  .dash table td.empty::before { content: ''; }
  .dash table td .row { flex-wrap: wrap; }
  .dash .ph { min-width: 0; }
  .dash .ph > div:first-child { min-width: 0; }
  .dash .ph h1, .dash .ph p { overflow-wrap: anywhere; }
  .dash .card, .dash .main > section { min-width: 0; }
}
@media (max-width: 700px) { .dash table td > .pill, .dash table td > button, .dash table td > .who-cell { justify-self: start; } }
.import-help { margin: 10px 0 14px; }
.import-help > summary { cursor: pointer; font-size: 13px; color: var(--link); width: max-content; }
.import-help[open] > summary { margin-bottom: 8px; }
