/* Pancham Intelligence. Brand: DM Sans, accent #00A882, navy #0F1629. DM Mono carries the small data labels.
   Charts draw in --mark, a sky blue (#37aecc, the user's sample of 2026-10-10; #2aa3c2 in dark), not the brand green: the
   green stays on the interface (tabs, links, buttons, status pills).
   Chart colours were checked with the dataviz validator (CVD separation, normal-vision floor, contrast):
     disposition groups  light #37aecc #2a78d6 #eda100 #e87ba4 #4a3aa7   dark #2aa3c2 #3366dd #c98500 #d55181 #9085e9
     opt-out types       light #2a78d6 #eb6834 #37aecc #eda100            dark #3366dd #d95926 #2aa3c2 #c98500
     appointments        mark beside c1 and c4 (light #37aecc #2a78d6 #eda100, dark #2aa3c2 #3366dd #c98500)
     aging (ordinal)     light #86b6ef #5598e7 #2a78d6 #1c5cab #0d366b   dark #184f95 #2a78d6 #5598e7 #86b6ef #b7d3f6
   The sky blue, yellow and magenta sit under 3:1 on the light surface: every chart has its numbers in a table under it. */
:root {
  color-scheme: light;
  --page: #f2f4f7; --surface: #ffffff; --surface-2: #f7f8fa; --line: #e3e6eb; --grid: #e9ecf0; --axis: #c9ced6;
  --ink-1: #0f1629; --ink-2: #4a5468; --ink-3: #6f7889;
  --navy: #0f1629; --navy-2: #1a2440;
  --accent: #00a882; --accent-ink: #00785d; --accent-wash: #e2f4ef; --mark: #37aecc;
  --good: #0ca30c; --good-ink: #006300; --warn: #fab219; --warn-ink: #7a5600; --warn-wash: #fdf3dc;
  --serious: #ec835a; --crit: #d03b3b; --crit-ink: #b02a2a; --crit-wash: #fbe9e7;
  --g-booked: #37aecc; --g-engaged: #2a78d6; --g-notfit: #eda100; --g-optout: #e87ba4; --g-baddata: #4a3aa7; --g-noanswer: #c9ced6; --g-none: #7c8597;
  --c1: #2a78d6; --c2: #eb6834; --c3: #37aecc; --c4: #eda100;
  --o1: #86b6ef; --o2: #5598e7; --o3: #2a78d6; --o4: #1c5cab; --o5: #0d366b;
  --heat: #2a78d6; --muted-mark: #c9ced6;
  --shadow: 0 1px 2px rgba(15, 22, 41, .05), 0 4px 16px rgba(15, 22, 41, .04);
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0a0f1c; --surface: #121a2c; --surface-2: #172036; --line: #232d44; --grid: #1e273b; --axis: #34405a;
    --ink-1: #eef1f7; --ink-2: #b4bccb; --ink-3: #8a93a8;
    --accent: #00a882; --accent-ink: #3fd3ae; --accent-wash: #0f2e2a; --mark: #2aa3c2;
    --good-ink: #3fcf6b; --warn-ink: #f2c14e; --warn-wash: #33290f; --crit-ink: #f08a8a; --crit-wash: #3a1d1f;
    --g-booked: #2aa3c2; --g-engaged: #3366dd; --g-notfit: #c98500; --g-optout: #d55181; --g-baddata: #9085e9; --g-noanswer: #3a4560; --g-none: #6b7590;
    --c1: #3366dd; --c2: #d95926; --c3: #2aa3c2; --c4: #c98500;
    --o1: #184f95; --o2: #2a78d6; --o3: #5598e7; --o4: #86b6ef; --o5: #b7d3f6;
    --heat: #3987e5; --muted-mark: #3a4560;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a0f1c; --surface: #121a2c; --surface-2: #172036; --line: #232d44; --grid: #1e273b; --axis: #34405a;
  --ink-1: #eef1f7; --ink-2: #b4bccb; --ink-3: #8a93a8;
  --accent: #00a882; --accent-ink: #3fd3ae; --accent-wash: #0f2e2a; --mark: #2aa3c2;
  --good-ink: #3fcf6b; --warn-ink: #f2c14e; --warn-wash: #33290f; --crit-ink: #f08a8a; --crit-wash: #3a1d1f;
  --g-booked: #2aa3c2; --g-engaged: #3366dd; --g-notfit: #c98500; --g-optout: #d55181; --g-baddata: #9085e9; --g-noanswer: #3a4560; --g-none: #6b7590;
  --c1: #3366dd; --c2: #d95926; --c3: #2aa3c2; --c4: #c98500;
  --o1: #184f95; --o2: #2a78d6; --o3: #5598e7; --o4: #86b6ef; --o5: #b7d3f6;
  --heat: #3987e5; --muted-mark: #3a4560;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink-1); font: 14px/1.45 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.spacer { flex: 1; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ── header ─────────────────────────────────────────────── */
.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px 24px; position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand .mark { height: 24px; width: auto; display: block; }
.brand .name { font-family: 'Barlow', 'DM Sans', sans-serif; font-weight: 400; font-size: 26px; line-height: 24px; text-transform: uppercase; letter-spacing: .015em;
               white-space: nowrap; color: #fff; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .22); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.ghost { background: transparent; border: 1px solid transparent; color: rgba(255, 255, 255, .78); border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.ghost:hover { border-color: rgba(255, 255, 255, .22); color: #fff; }
.ghost.icon { width: 32px; height: 30px; padding: 0; display: inline-grid; place-items: center; }
.ghost.icon svg { width: 16px; height: 16px; }
#sources-btn { font-family: var(--mono); font-size: 11.5px; }
.who { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .78); font-size: 13px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .14); }

/* ── sign-in ────────────────────────────────────────────── */
.signin { min-height: calc(100vh - 48px); display: grid; place-items: center; padding: 32px 16px; background:
  radial-gradient(1200px 500px at 15% -10%, rgba(0, 168, 130, .16), transparent 60%), var(--navy); }
.si-card { width: min(480px, 100%); background: var(--surface); color: var(--ink-1); border-radius: 14px; padding: 32px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.si-card h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 12px; font-weight: 700; }
.si-card p { color: var(--ink-2); margin: 0 0 22px; }
.si-card .dev { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; }
.si-card .dev .row { display: flex; gap: 8px; margin-top: 6px; }
.si-card .dev select { flex: 1; min-width: 0; }
.err { color: var(--crit-ink); font-size: 13px; margin-top: 12px; white-space: pre-wrap; }
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 7px; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn:hover { border-color: var(--ink-3); color: var(--ink-1); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.link { background: none; border: 0; color: var(--accent-ink); cursor: pointer; padding: 4px 2px; font-size: 13px; font-weight: 600; }
select, input[type="date"], input[list] { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 9px; font-size: 13px; color: var(--ink-1); }

/* ── filters ────────────────────────────────────────────── */
#app { max-width: 1440px; margin: 0 auto; padding: 0 24px 40px; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; position: sticky; top: 48px; z-index: 10; background: var(--page); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
/* Most / Fewest on a card that ranks locations */
.seg.rank { margin-left: auto; }
.seg.rank button { padding: 3px 9px; font-size: 12px; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--ink-1); color: var(--page); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .seg button[aria-pressed="true"] { background: var(--ink-1); color: var(--page); } }
.fld { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.fld.loc input { width: 240px; }
.custom { display: inline-flex; align-items: center; gap: 6px; }
/* the range picker: All time, Month to date, and a panel: quick ranges on the left, a custom range on the right */
.rangewrap { position: relative; }
.rangepop { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); width: min(500px, calc(100vw - 32px));
            background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 44px rgba(0, 0, 0, .18); overflow: hidden; }
.rangepop .rp-h { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 8px; }
.rangepop .quick { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--surface-2); border-right: 1px solid var(--line); }
.rangepop .quick .rp-h { padding: 0 8px; }
.rangepop .quick button { text-align: left; border: 0; background: none; border-radius: 7px; padding: 8px 10px; cursor: pointer; font-size: 13px; color: var(--ink-1); }
.rangepop .quick button:hover { background: var(--surface); }
.rangepop .quick button[aria-pressed="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .rangepop .quick button[aria-pressed="true"] { background: var(--ink-1); color: var(--page); }
.rangepop .dates { padding: 14px 16px; display: flex; flex-direction: column; }
.rangepop .dd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.rangepop .dd label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.rangepop .dd input { width: 100%; min-width: 0; }
.rangepop .dd .to { color: var(--ink-3); padding-bottom: 8px; }
.rangepop .rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12px; }
@media (max-width: 520px) { .rangepop { grid-template-columns: 1fr; } .rangepop .quick { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; } .rangepop .quick .rp-h { width: 100%; } }
/* the Package filter: tick one or more */
.fld.pk { position: relative; }
.pkbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 28px 6px 9px; font-size: 13px; color: var(--ink-1); cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.pkbtn::after { content: '▾'; position: absolute; right: 9px; color: var(--ink-3); }
.pkmenu { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: min(380px, calc(100vw - 32px)); max-height: 360px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .16); padding: 6px; }
.pkopt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--ink-1); cursor: pointer; }
.pkopt:hover { background: var(--surface-2); }
.pkfoot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--grid); margin-top: 4px; padding: 6px 8px 2px; }
/* the journey: the chosen location's package and status */
.jtags { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ptag { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--ink-2); background: var(--surface-2); }

/* ── the lead journey (signature) ───────────────────────── */
.journey { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 22px 20px; margin-bottom: 18px; transition: opacity .2s; }
.journey .jhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.journey .jhead h2 { font-size: 15px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.jsteps { display: grid; grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1fr) 116px minmax(0, 1fr) 116px minmax(0, 1fr) 116px minmax(0, 1fr); align-items: start; }
.jstep .lab { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.jstep .num { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 2px 0 8px; }
.jstep .pipe { height: 10px; border-radius: 0 5px 5px 0; background: var(--grid); overflow: hidden; }
.jstep .pipe i { display: block; height: 100%; background: var(--mark); border-radius: 0 5px 5px 0; }
.jstep .sub { font-size: 12px; color: var(--ink-3); margin-top: 6px; min-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jlink { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 22px 4px 0; gap: 1px; position: relative; }
.jlink .pct { font-size: 15px; font-weight: 700; }
.jlink .lost { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.jlink .arrow { width: 100%; height: 10px; color: var(--axis); }
.jlink.leak .pct { color: var(--crit-ink); }
.jlink.leak .arrow { color: var(--crit); }
.jlink .tag { position: absolute; top: 0; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--crit-ink); background: var(--crit-wash); border-radius: 4px; padding: 1px 6px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.jnote { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.jskel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px; padding: 6px 0 4px; }
.jskel i { display: block; height: 62px; border-radius: 8px; background: linear-gradient(90deg, var(--grid) 0%, var(--surface-2) 50%, var(--grid) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@media (max-width: 980px) { .jskel { grid-template-columns: 1fr; gap: 10px; } .jskel i { height: 34px; } }

/* ── tabs and layout ────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tabs button { flex: 1 1 auto; border: 0; background: none; padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button:hover { background: var(--surface-2); color: var(--ink-1); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--ink-1); color: var(--page); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .tabs button[aria-selected="true"] { background: var(--ink-1); color: var(--page); } }
@media (max-width: 760px) { .tabs button { flex: 1 1 30%; padding: 9px 6px; font-size: 13px; } }
.leadlink { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.leadlink:hover { text-decoration: underline; }
.link.back { font-weight: 600; }
.view { transition: opacity .2s; outline: none; }
.loading .view, .loading.journey, .journey.loading { opacity: .45; }
.section-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 26px 0 12px; }
.section-title:first-child { margin-top: 0; }
.section-title h2 { font-size: 18px; margin: 0; letter-spacing: -.015em; }
.section-title .meta { margin-left: auto; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c7 { grid-column: span 7; } .c6 { grid-column: span 6; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; }
@media (max-width: 1100px) { .c8, .c7, .c6, .c5, .c4 { grid-column: span 12; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.card > header { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding: 14px 16px 0; }
.card > header h3 { font-size: 14px; margin: 0; font-weight: 700; letter-spacing: -.005em; }
.card > header .desc { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); margin-top: -6px; }
.card > header .ctl { margin-left: auto; }
.card .body { padding: 12px 16px 16px; }

/* ⓘ: a click opens the explanation in a box (one for the page) */
.info { display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; margin: 0 0 0 2px; vertical-align: -3px; border-radius: 50%; border: 1px solid var(--axis);
        background: var(--surface); color: var(--ink-3); font: 600 11px/1 Georgia, 'Times New Roman', serif; font-style: italic; cursor: pointer; }
.info:hover, .info[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.journey .jhead .info { align-self: center; margin-left: -4px; }
.infobox { position: absolute; z-index: 45; width: min(360px, calc(100vw - 16px)); background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
           box-shadow: 0 14px 40px rgba(0, 0, 0, .18); padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.infobox h3 { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-1); }
.infobox p { margin: 0 0 8px; }
.infobox p:last-child { margin-bottom: 0; }
.infobox b { color: var(--ink-1); }
.infobox ul { margin: 0 0 8px; padding-left: 18px; }
.infobox li { margin: 0 0 4px; }
.infobox code { font-family: var(--mono); font-size: 11.5px; }
.defs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; margin: 4px 0 10px; }
.defs dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-1); padding-top: 2px; }
.defs dd { margin: 0; }
/* a location's booking rules from the FAQ: the questions are long, so they get a column of their own, stacked on a phone */
.defs.faq { grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 14px; }
.defs.faq dt { text-transform: none; letter-spacing: 0; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 560px) { .defs.faq { grid-template-columns: minmax(0, 1fr); gap: 2px; } .defs.faq dd { margin-bottom: 8px; } }

/* loading: a bar under the header, and a placeholder where nothing is drawn yet */
.busy { position: fixed; top: 48px; left: 0; right: 0; height: 3px; z-index: 30; overflow: hidden; background: var(--accent-wash); }
.busy i { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--accent); border-radius: 2px; animation: busy 1.1s ease-in-out infinite; }
@keyframes busy { from { left: -30%; } to { left: 100%; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.loadcard { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; box-shadow: var(--shadow); }
.loadcard .muted { font-size: 13px; margin-top: 2px; }
.spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--accent-wash); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading .view:has(.loadcard), .loading.journey:has(.jskel), .journey.loading:has(.jskel) { opacity: 1; }

/* one location: the leads themselves */
.scroll.list { max-height: 420px; overflow: auto; }
.scroll.list thead th { position: sticky; top: 0; background: var(--surface); }
.scroll.list td { white-space: nowrap; }
.scroll.list td:first-child { white-space: normal; min-width: 120px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.summ p { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.summ code, .steps code { font-family: var(--mono); font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; word-break: break-all; }
/* Summaries: one article per summary; the text folds after four lines */
.sumbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.sumbar input[type="search"] { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 10px; font-size: 13px; color: var(--ink-1); }
.sum { border-top: 1px solid var(--grid); padding: 14px 0 12px; }
.sum:first-child { border-top: 0; }
.sum header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sum header b { font-size: 14px; }
.sum header a { margin-left: auto; color: var(--accent-ink); font-weight: 600; font-size: 12.5px; text-decoration: none; }
.sum header a:hover { text-decoration: underline; }
.sum .chip { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: 1px 6px; border: 1px solid var(--line); color: var(--ink-2); }
.sum .chip.cancellation { color: var(--crit-ink); background: var(--crit-wash); border-color: transparent; }
.sum .appt { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.sum .txt { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-1); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sum.open .txt { display: block; -webkit-line-clamp: unset; }
.sum .more { padding: 2px 0; font-size: 12.5px; }
.sum .sx { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 8px 0 0; font-size: 12.5px; }
.sum .sx dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: 2px; }
.sum .sx dd { margin: 0; color: var(--ink-2); }
.sum .earlier { margin-top: 8px; }
.sum .earlier summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.sum .old { border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin: 10px 0 0 2px; }
.sum .old .meta { display: flex; gap: 8px; align-items: center; }
.sum .old { cursor: pointer; }
.sum .old.open p { display: block; -webkit-line-clamp: unset; }
.sum .old p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Summaries: themes (word matching), the active theme, the pager */
.themes { display: grid; gap: 2px; }
.theme { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr) 92px; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 5px 6px; border-radius: 6px; cursor: pointer; text-align: left; font-size: 13px; color: var(--ink-1); }
.theme:hover:not([disabled]) { background: var(--surface-2); }
.theme.on { background: var(--accent-wash); }
.theme[disabled] { cursor: default; color: var(--ink-3); }
.theme .t { height: 12px; background: var(--grid); border-radius: 0 4px 4px 0; position: relative; overflow: hidden; }
.theme .t i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--mark); border-radius: 0 4px 4px 0; }
.theme .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filterchip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; background: var(--accent-wash); color: var(--ink-1); border-radius: 999px; padding: 3px 6px 3px 12px; margin: 4px 0 2px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pager .btn[disabled] { opacity: .45; cursor: default; }
#s-list.dim { opacity: .5; transition: opacity .15s; }
.sumbar .fld { margin-left: auto; }
/* repeat misses: each appointment of a lead, coloured by what happened */
.scroll.list td:has(.visits) { white-space: normal; min-width: 280px; }
.visits { display: inline-flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.visit { font-size: 11.5px; border-radius: 4px; padding: 1px 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.visit b { font-weight: 600; }
.visit.good { background: var(--accent-wash); color: var(--accent-ink); }
.visit.crit { background: var(--crit-wash); color: var(--crit-ink); }
.visit.warn { background: var(--warn-wash); color: var(--warn-ink); }
@media (max-width: 760px) { .theme { grid-template-columns: minmax(90px, 42%) minmax(0, 1fr) 78px; } .sumbar .fld { margin-left: 0; } }
.hbhead { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 6px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
/* a location's name in an across-locations view opens that location */
.loclink { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 3px; }
.loclink:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.sb .l .loclink, table.heat .loclink { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.steps { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

/* KPI tiles */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi .lab { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-top: 4px; }
.kpi .val small { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
/* two values of the same weight in one tile (new leads | re-engaged) */
.kpi .val.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi .val.split > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.kpi .val.split span { display: block; font-size: 24px; }
.kpi .val.split > div { min-width: 0; }
.kpi .val.split small { display: block; margin: 2px 0 0; font-size: 11.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; line-height: 1.25; overflow-wrap: anywhere; }
.kpi .val.split small.note { margin-top: 3px; font-size: 11px; font-weight: 400; }
.kpi .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.delta { font-size: 12px; font-weight: 600; white-space: nowrap; }
.delta.up-good, .delta.down-good { color: var(--good-ink); }
.delta.up-bad, .delta.down-bad { color: var(--crit-ink); }
.delta.flat { color: var(--ink-3); }

/* status: never colour alone — an icon and a word ride along */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px 2px 7px; white-space: nowrap; }
.status svg { width: 12px; height: 12px; flex: none; }
.kpi .status { white-space: normal; align-items: flex-start; border-radius: 8px; line-height: 1.35; padding-top: 3px; padding-bottom: 3px; }
.kpi .status svg { margin-top: 2px; }
.status.crit { background: var(--crit-wash); color: var(--crit-ink); }
.status.warn { background: var(--warn-wash); color: var(--warn-ink); }
.status.good { background: var(--accent-wash); color: var(--accent-ink); }
.status.neutral { background: var(--surface-2); color: var(--ink-2); }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-3); }
.chart .shade { fill: var(--surface-2); }
.chart .xline { stroke: var(--ink-3); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .mark:hover, .chart .hot { filter: brightness(1.08) saturate(1.05); }
.chart .endlab { font-size: 11.5px; fill: var(--ink-2); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); margin: 2px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 2px; width: 14px; border-radius: 1px; }

/* horizontal bars (div based) */
.hb { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; font-size: 13px; }
.hb .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-1); }
.hb .l small { color: var(--ink-3); font-size: 11.5px; margin-left: 4px; }
.hb .t { height: 12px; position: relative; }
.hb .t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--mark); min-width: 2px; }
.hb .t i.mute { background: var(--muted-mark); }
.hb .v { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink-2); font-size: 12.5px; }
.hb .v b { color: var(--ink-1); font-weight: 600; }
.hb .chip { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 6px; }

/* 100% stacked bars */
.sb { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr) 54px; gap: 7px 10px; align-items: center; font-size: 13px; }
.sb .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb .bar { display: flex; gap: 2px; height: 14px; }
.sb .bar i { display: block; height: 100%; min-width: 0; }
.sb .bar i:first-child { border-radius: 3px 0 0 3px; } .sb .bar i:last-child { border-radius: 0 3px 3px 0; }
.sb .bar i:only-child { border-radius: 3px; }
.sb .n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; text-align: right; }
.sb.total .bar { height: 22px; }

/* heat tables */
.heat { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12.5px; }
.heat th { font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; text-align: right; white-space: nowrap; vertical-align: bottom; }
.heat th:first-child { text-align: left; }
.heat td { padding: 6px 7px; text-align: right; font-variant-numeric: tabular-nums; border-radius: 3px; white-space: nowrap; }
.heat td:first-child { text-align: left; max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: normal; }
.heat td.zero { color: var(--ink-3); opacity: .5; }
.scroll { overflow-x: auto; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 7px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
table.t a:hover { text-decoration: underline; }
details.numbers { margin-top: 10px; }
details.numbers summary { cursor: pointer; font-size: 12px; color: var(--ink-3); font-weight: 500; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.numbers summary::-webkit-details-marker { display: none; }
details.numbers summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details.numbers[open] summary::before { transform: rotate(45deg); }
details.numbers .scroll { margin-top: 8px; max-height: 360px; overflow: auto; }

/* stat lists (calling vs messaging) */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.stat .k { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.stat .s { font-size: 12px; color: var(--ink-3); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trio .eyebrow { margin-bottom: 6px; }
@media (max-width: 1100px) { .trio { grid-template-columns: 1fr; } }
.umap { display: grid; gap: 18px; }
.umap .uhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.umap .upipe { font-size: 12.5px; color: var(--ink-2); }
.umap .upipe b { color: var(--ink-1); font-weight: 600; }
.umap .uname { font-weight: 700; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.umap { max-height: 440px; overflow-y: auto; }
.umap .ulocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; }
.umap .ulocs div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--grid); font-size: 13px; min-width: 0; }
.umap .ulocs span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umap .ulocs .n { font-variant-numeric: tabular-nums; color: var(--ink-2); flex: none; }
.callout { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.callout b { color: var(--ink-1); }
.note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }
.setup { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; padding: 20px; }
.setup h3 { margin: 0 0 6px; font-size: 16px; }
.setup ol { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.setup code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
@media (max-width: 900px) { .setup { grid-template-columns: 1fr; } }

/* tooltip, popover */
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 280px; }
.tip .tt { font-family: var(--mono); font-size: 10.5px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.tip .row { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.tip .row i { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tip .row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tip .row span { opacity: .8; }
.pop { position: fixed; z-index: 40; top: 52px; right: 16px; width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, .2); padding: 14px 16px; font-size: 13px; }
.pop { max-height: calc(100vh - 68px); overflow-y: auto; overscroll-behavior: contain; }
.pop h3 { margin: 0 0 8px; font-size: 14px; }
.pop .feed { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--grid); }
.pop .feed:last-child { border-bottom: 0; }
.demo { background: var(--warn-wash); color: var(--warn-ink); border: 1px solid var(--warn); border-radius: 10px; padding: 9px 14px; margin-top: 14px; font-size: 13px; }
.foot { font-size: 12px; color: var(--ink-3); margin-top: 32px; text-align: center; }

/* phones: 16px gutter, the journey becomes a column */
@media (max-width: 760px) {
  .top { padding: 8px 16px; gap: 8px; }
  .top { gap: 4px; }
  .brand { gap: 7px; }
  .brand .mark { height: 15px; }
  .brand .name { font-size: 16px; line-height: 15px; padding-left: 7px; }
  .who { border-left: 0; padding-left: 0; }
  #sources-btn { display: none; }
  .who #who { display: none; }
  #app { padding: 0 16px 32px; }
  .filters { top: 44px; gap: 8px; }
  .busy { top: 44px; }
  .seg { overflow-x: auto; max-width: 100%; }
  .fld.loc input { width: 100%; }
  .fld, .fld.loc { flex: 1 1 100%; }
  .fld select, .fld input { flex: 1; }
  #range-label { display: none; }
  .seg { scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .hb { grid-template-columns: minmax(80px, 40%) minmax(0, 1fr) auto; }
  .sb { grid-template-columns: minmax(80px, 34%) minmax(0, 1fr) 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .val { font-size: 24px; }
  .kpi .val.split span { font-size: 20px; }
  .kpi .val.split { gap: 6px; }
  .kpi .val.split > div + div { padding-left: 6px; }
  .kpi .val.split small { font-size: 10.5px; }
}
@media (max-width: 980px) {
  .jsteps { grid-template-columns: 1fr; }
  /* each step one row: name and number on the left, the pipe on the right; the step-to-step rate between rows */
  .jstep { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; column-gap: 12px; }
  .jstep .lab { grid-column: 1; grid-row: 1; }
  .jstep .num { grid-column: 1; grid-row: 2; font-size: 24px; margin: 0; }
  .jstep .pipe { grid-column: 2; grid-row: 1 / span 2; }
  .jstep .sub { grid-column: 1 / -1; min-height: 0; margin-top: 2px; white-space: normal; }
  .jlink { flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; padding: 6px 0 8px; }
  .jlink .arrow { display: none; }
  .jlink .pct { font-size: 13px; }
  .jlink .pct::before { content: '↓ '; color: var(--ink-3); font-weight: 400; }
  .jlink .tag { position: static; order: 3; }
}
@media (max-width: 760px) { .journey { padding: 16px; } }
@media (max-width: 400px) { .brand .mark { height: 13px; } .brand .name { font-size: 14px; line-height: 13px; } .top-right { padding-left: 6px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .top, .filters, .tabs { position: static; } .tip, .pop { display: none !important; } }
/* Location names to fix: the other lists fold under the main table */
details.fix { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
details.fix summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 600; }
details.fix .scroll { max-height: 280px; margin-top: 6px; }
.card.flagged { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
/* the fix controls: Approve, the searchable pick, Use, Remove */
.btn-mini { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-1); cursor: pointer; white-space: nowrap; }
.btn-mini:hover { border-color: var(--ink-3); }
.btn-mini.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-mini:disabled { opacity: .5; cursor: default; }
.pick { display: inline-flex; gap: 6px; align-items: center; }
.pick input { font: inherit; font-size: 12.5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-1); width: 230px; max-width: 46vw; }
table.fixes td { vertical-align: middle; }
#fix-msg.err { color: var(--crit, #c0392b); }
/* Booking and show rates by who booked and which leads (2026-10-12) */
table.t.rates td .meta { font-family: inherit; font-size: 11.5px; margin-top: 2px; }
table.t.rates tr.sum td { border-top: 1px solid var(--line); background: var(--surface-2); }
table.t.rates tr.apart td { color: var(--ink-3); }
table.t.rates + .note, .scroll + .note { margin-top: 10px; }
table.t.rates tr.sub td { color: var(--ink-2); font-style: italic; }
table.t.rates thead tr:first-child th { border-bottom: 0; padding-bottom: 0; }
table.t.rates .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }
.rate-sums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 14px; }
@media (max-width: 760px) { .rate-sums { grid-template-columns: 1fr; } }
.rate-sum .rs-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.rate-sum .rs-head b { font-size: 22px; color: var(--ink-1); }
.rate-sum .rs-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--grid); margin: 6px 0; }
.rate-sum .rs-bar span { display: block; height: 100%; }
.rate-sum .rs-parts { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--ink-2); align-items: center; }
.rate-sum .rs-parts i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.rate-sum .rs-parts em { font-style: normal; color: var(--ink-3); }
table.t.rates td:first-child { min-width: 200px; }
table.t.rates th.grp { text-align: center; border-bottom: 1px solid var(--line); }
/* the bug icon on every card, and its dialog (2026-10-12) */
.bug { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 6px; padding: 0; vertical-align: middle;
  border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); opacity: .45; cursor: pointer; }
.bug:hover, .bug:focus-visible { opacity: 1; color: var(--accent-ink); background: var(--accent-wash); }
@media (min-width: 1101px) { .grid > .card.fill12 { grid-column: span 12; } }
.bugback { position: fixed; inset: 0; background: rgba(10, 15, 28, .45); z-index: 80; }
.bugbox { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink-1); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 18px; }
.bugbox h3 { margin: 0 0 12px; font-size: 15px; }
.bugbox .seg { margin-bottom: 10px; }
.bugbox textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink-1); resize: vertical; }
.bugbox .meta { margin: 8px 0 12px; font-size: 11.5px; }
.bugbtns { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.bugbtns .bugmsg { margin-right: auto; font-size: 12px; color: var(--ink-2); }
/* the chat bubble, bottom right: a fake AI assistant with no model (the user, 2026-10-13, replaces the ? help page) */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 82; width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.chat-fab:hover, .chat-fab:focus-visible { background: var(--accent); }
.chat-panel { position: fixed; z-index: 82; right: 20px; bottom: 82px; width: min(360px, calc(100vw - 32px)); height: min(480px, calc(100vh - 140px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink-1); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; flex: none; }
.chat-head .ghost.icon { color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cmsg { max-width: 90%; padding: 8px 11px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.cmsg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.cmsg.bot { align-self: flex-start; background: var(--surface-2); color: var(--ink-1); border-bottom-left-radius: 3px; width: 100%; max-width: 100%; box-sizing: border-box; }
.cmsg.bot h4 { margin: 0 0 4px; font-size: 13px; }
.cmsg.bot p { margin: 6px 0; }
.cmsg.bot ul { margin: 4px 0; padding-left: 18px; }
.cmsg.bot li { margin: 2px 0; }
.ctyping { display: inline-flex; gap: 3px; align-items: center; }
.ctyping i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: ctyping 1s infinite ease-in-out; }
.ctyping i:nth-child(2) { animation-delay: .15s; } .ctyping i:nth-child(3) { animation-delay: .3s; }
@keyframes ctyping { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.csuggest { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.csuggest button { text-align: left; font: inherit; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.csuggest button:hover { border-color: var(--accent); color: var(--accent-ink); }
/* the question just asked, kept across a tab move the bubble itself suggested (2026-10-14): one click, no retyping */
.csuggest button.pending { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.chat-row { flex: none; display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-row input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink-1); }
@media (max-width: 480px) { .chat-panel { right: 16px; left: 16px; width: auto; bottom: 78px; } .chat-fab { right: 16px; bottom: 16px; } }
.whygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
@media (max-width: 1100px) { .whygrid { grid-template-columns: 1fr; } }
.whygrid h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
a.adlink { color: var(--ink-1); text-decoration: none; }
a.adlink:hover { color: var(--accent-ink); text-decoration: underline; }
/* Pipeline stages: now over reached, in one card (2026-10-13) */
.slegend { display: flex; gap: 18px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; flex-wrap: wrap; }
.slegend i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.slegend i.now, .srow .sbar i.now { background: var(--mark); }
.slegend i.reach, .srow .sbar i.reach { background: color-mix(in srgb, var(--mark) 26%, transparent); }
.srows { display: grid; gap: 7px; }
.srow { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(220px, auto); align-items: center; gap: 12px; font-size: 13px; }
.srow .sbar { position: relative; height: 16px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.srow .sbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.srow .sn { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.srow .sn b { color: var(--ink-1); }
.srow.leak .sl { color: var(--crit-ink); font-weight: 600; }
.srow .crit { color: var(--crit-ink); font-weight: 600; }
.soff { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--grid); }
.soff .meta { margin-bottom: 7px; }
@media (max-width: 640px) { .srow { grid-template-columns: 90px minmax(0, 1fr); } .srow .sn { grid-column: 2; white-space: normal; } }
.srow .chip { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: 1px 6px; margin-left: 6px; color: var(--crit-ink); background: var(--crit-wash); }
.soff .srow .chip { color: var(--warn-ink); background: var(--warn-wash); }
#g-stages .note { margin-top: 12px; }
.pgbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.pgbar .btn { padding: 4px 10px; font-size: 12px; }
.pgbar .btn[disabled] { opacity: .4; cursor: default; }

/* Lead paths: plain words in a table, the full path in a panel at the side (the user, 2026-10-14) */
.ptext { color: var(--ink-2); font-size: 12.5px; }
.lead-open { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent-ink); cursor: pointer; text-align: left; }
.lead-open:hover { text-decoration: underline; }
.lpanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -8px 0 28px rgba(15, 22, 41, .18); z-index: 60; overflow-y: auto; padding: 18px 20px 28px; }
.lpanel[hidden] { display: none; }
.lp-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.lp-head h3 { margin: 0; font-size: 17px; }
.lp-x { border: 0; background: var(--surface-2); color: var(--ink-2); width: 30px; height: 30px; border-radius: 8px; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.lp-away { margin: 8px 0; font-size: 13px; color: var(--ink-2); }
.lp-ghl { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.lp-ghl:hover { text-decoration: underline; }
ol.tl { list-style: none; margin: 14px 0 10px; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
ol.tl li { position: relative; padding: 0 0 14px 14px; }
ol.tl li::before { content: ''; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--axis); }
ol.tl li.k-booked::before { border-color: var(--c1); }
ol.tl li.k-showed::before { border-color: var(--good); background: var(--good); }
ol.tl li.k-noshow::before, ol.tl li.k-optout::before { border-color: var(--crit); background: var(--crit); }
ol.tl li.k-cancelled::before { border-color: var(--warn); background: var(--warn); }
ol.tl li.mark::before { border-color: var(--navy); background: var(--navy); }
ol.tl li.k-stage .tl-what { color: var(--ink-2); font-style: italic; font-weight: 400; }
.tl-when { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tl-what { font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.tl-gap { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
ol.tl li.mark .tl-what { color: var(--navy); }
:root[data-theme="dark"] ol.tl li.mark .tl-what { color: var(--ink-1); }
:root[data-theme="dark"] ol.tl li.mark::before { border-color: var(--ink-1); background: var(--ink-1); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) ol.tl li.mark .tl-what { color: var(--ink-1); } :root:where(:not([data-theme="light"])) ol.tl li.mark::before { border-color: var(--ink-1); background: var(--ink-1); } }

/* Sortable headers: a small arrow, up or down */
table.t th.srt { padding: 0; }
.srtb { border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; padding: 7px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
table.t th.n .srtb { justify-content: flex-end; width: 100%; }
.srtb:hover { color: var(--ink-1); }
.srtb .arr { font-size: 8px; color: var(--ink-3); opacity: .55; }
.srtb .arr.on { opacity: 1; color: var(--ink-1); }
table.t tr.sub td:first-child { padding-left: 18px; }
table.t td.n .delta { font-size: 11px; font-weight: 600; }
a.ext { color: var(--ink-3); text-decoration: none; font-size: 12px; margin-left: 2px; }
a.ext:hover { color: var(--accent-ink); }
.lp-sum { margin: 6px 0; font-size: 13px; font-weight: 600; }
a.inlink { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
a.inlink:hover { text-decoration: underline; }
.cbrowse { margin-top: 10px; }
.cbrowse > button.link { font-size: 12.5px; }
.cgroup { margin-top: 10px; }
.cgroup h5 { margin: 0 0 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

/* access (the gear, managers only) */
#si-other { margin-top: 14px; }
.acc-p { font-size: 13px; color: var(--ink-2); margin: 4px 0 14px; }
.acc-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 18px 0 6px; }
.acc-add { display: flex; gap: 8px; }
.acc-add input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink-1); }
.acc-list { list-style: none; margin: 0; padding: 0; }
.acc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.acc-list li > div { min-width: 0; overflow-wrap: anywhere; }
.acc-list .meta { font-size: 12px; color: var(--ink-3); }
/* a location alert as one line; the locations open in a side panel */
.callout.alertbtn { width: 100%; border: 1px solid var(--line); font: inherit; font-size: 13px; text-align: left; cursor: pointer; align-items: center; }
.callout.alertbtn:hover { border-color: var(--ink-3); }
.alertgo { margin-left: auto; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.srtb.only { padding: 4px 2px; }

/* Location: chips for each location chosen, inside the box that types the next one */
.fld.loc { align-items: flex-start; }
.fld.loc > label { padding-top: 7px; }
.locbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 240px; max-width: 520px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 3px 5px; cursor: text; }
.locbox:focus-within { border-color: var(--ink-3); }
.locbox input { flex: 1 1 130px; width: auto !important; min-width: 110px; border: 0 !important; outline: 0; background: transparent; padding: 4px 4px; }
.locchips { display: contents; }
.locchip { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; background: var(--surface-2); color: var(--ink-1); border-radius: 6px; padding: 2px 3px 2px 8px; font-size: 12px; }
.locchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locchip button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 4px; }
.locchip button:hover { color: var(--ink-1); background: var(--line); }
@media (max-width: 760px) { .locbox { min-width: 0; max-width: none; width: 100%; } .fld.loc { flex: 1 1 100%; flex-wrap: wrap; } }
/* Who made the booking, compared between brands or locations */
.whocmp { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--grid); }
.whohead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.whocmp .meta { font-size: 11px; }

/* Trends: links worth a second look, each with its trust and its checks */
.tl-list { display: flex; flex-direction: column; gap: 8px; }
.tl { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tl > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; }
.tl > summary::-webkit-details-marker { display: none; }
.tl[open] > summary { border-bottom: 1px solid var(--grid); }
.tl-trust { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.tl-trust.strong, .tl-trust.moderate { background: var(--accent-wash); color: var(--accent-ink); }
.tl-trust span { letter-spacing: 1px; margin-right: 3px; }
.tl-main b { font-weight: 600; }
.tl-main small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.tl-gap { white-space: nowrap; font-size: 13px; text-align: right; }
.tl-for { font-size: 11px; color: var(--ink-3); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.tl-body { padding: 12px 14px 14px; }
.tl-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.tl-cols p { font-size: 13px; line-height: 1.5; margin: 4px 0 10px; color: var(--ink-2); }
.tl-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-checks li { display: flex; gap: 8px; font-size: 13px; line-height: 1.35; }
.tl-checks small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.tl-checks .tick { flex: none; width: 16px; height: 16px; border-radius: 50%; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.tl-checks .ok .tick { background: var(--accent-wash); color: var(--accent-ink); }
.tl-checks .no .tick { background: var(--warn-wash); color: var(--warn-ink); }
.tl-over { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.tl-try { margin-top: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) { .tl > summary { grid-template-columns: 1fr; gap: 6px; } .tl-gap { text-align: left; } .tl-cols { grid-template-columns: 1fr; } }
