/* Nova Ops, in Nova's own look: coral gradient, lavender-white ground, soft cards, pill controls, Inter. */
:root {
  color-scheme: light;
  --bg: #f4f5f9; --surface: #fff; --surface-2: #f8f9fc; --line: #e8e9f0; --line-2: #d8dae4; --hover: #f6f7fb;
  --text: #15161c; --text-2: #4f5260; --text-3: #6c6f7d;
  --brand: #e5686c; --brand-ink: #c8454b; --brand-soft: #fdf0ef; --ink: #14151f;
  --info: #3f4fb5; --info-soft: #eceffc; --radius: 16px;
  --grad: linear-gradient(180deg, #ee8a5c, #eb7062 46%, #ec5f5b); --grad-btn: linear-gradient(180deg, #f17857, #e9504d);
  --good: #15803d; --good-soft: #e7f6ed; --warn: #b45309; --warn-soft: #fdf1dc; --crit: #be123c; --crit-soft: #fde7ec; --off: #6b7280; --off-soft: #eff0f4;
  --series-1: #e5686c; --series-2: #3f4fb5; --add: #e7f6ed; --del: #fde7ec;
  --lane-call: #eceffb; --lane-tools: #f1edf9; --lane-plane: #e9f5f0; --lane-evals: #fdf0e8;
  --shadow: 0 1px 2px rgba(20, 22, 32, .04), 0 4px 18px rgba(20, 22, 32, .045);
  --shadow-pop: 0 24px 60px rgba(14, 15, 24, .22), 0 2px 8px rgba(14, 15, 24, .08);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f15; --surface: #16171f; --surface-2: #1c1e28; --line: #262835; --line-2: #343747; --hover: #1b1d27;
  --text: #f3f4f8; --text-2: #c3c5d1; --text-3: #9a9cac;
  --brand: #f08a7e; --brand-ink: #f5a196; --brand-soft: #35211f; --ink: #0a0b10;
  --info: #8d9bef; --info-soft: #1d2140;
  --good: #4ade80; --good-soft: #15301f; --warn: #fbbf24; --warn-soft: #36290f; --crit: #fb7185; --crit-soft: #3d1a23; --off: #a0a0ad; --off-soft: #2a2a35;
  --series-1: #f08a7e; --series-2: #8d9bef; --add: #15301f; --del: #3d1a23;
  --lane-call: #1c1f2e; --lane-tools: #211d2e; --lane-plane: #182622; --lane-evals: #2a2019;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.022em; margin: 0; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
h2.section { margin: 28px 0 12px; }
p { margin: 0; }
small { font-size: 12px; }
em { font-style: normal; color: var(--brand); }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
code.wrap { word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--text-3); } .nowrap { white-space: nowrap; } .block { display: block; } .strong { color: var(--text); font-weight: 500; }
.sub { color: var(--text-2); margin-top: 4px; }
.note { margin: 0 0 14px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

/* logo */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.logo img { display: block; height: 30px; width: auto; }
.logo-sub { font-size: 13px; font-weight: 600; letter-spacing: .015em; color: var(--text-2); padding-left: 3px; white-space: nowrap; }

/* shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side-nav { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; }
.brand { padding: 0 8px; } .brand:hover { text-decoration: none; }
.side-nav nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; }
.side-nav nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-nav nav a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.nav-menu { display: contents; }  /* what Menu opens in the top bar; the sidebar shows it all */
.nav-shade { display: none; }
.side-foot { display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 600; display: grid; place-items: center; flex: none; }
.who-text { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.who-text strong { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { color: var(--text-3); }
a.who-text { color: inherit; text-decoration: none; }
a.who-text:hover strong { text-decoration: underline; }
.content { min-width: 0; }
main { max-width: 1440px; margin: 0 auto; padding: 28px 32px 64px; }
main.wide { max-width: none; }  /* Now: the board takes the window, so on a big screen the flow in the middle gets its wide map */
.sample { background: var(--brand-soft); color: var(--brand-ink); text-align: center; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-weight: 500; margin-bottom: 12px; }
.back .i { width: 15px; height: 15px; }
.with-sev { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* buttons, forms */
button { font: inherit; font-weight: 600; padding: 9px 20px; border-radius: 999px; border: 0; background: var(--grad-btn); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(233, 80, 77, .25); transition: filter .15s, transform .15s; }
button:hover { filter: brightness(1.05); }
button:active { transform: translateY(1px); }
button.wide { width: 100%; padding: 12px; }
button.small { padding: 5px 14px; font-size: 13px; }
button.quiet, button.ghost { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
button.ghost { color: var(--text-2); box-shadow: none; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; font-weight: 500; }
button.ghost:hover { background: var(--surface-2); }
.icon-btn { background: none; box-shadow: none; color: var(--text-3); padding: 6px; border-radius: 8px; display: grid; }
.icon-btn:hover { background: var(--surface-2); color: var(--brand-ink); }
.pill-link { display: inline-block; padding: 9px 20px; border-radius: 999px; background: var(--grad-btn); color: #fff; font-weight: 600; }
input, select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); max-width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; }
input.short { width: 130px; padding: 6px 10px; } input.num { width: 72px; padding: 6px 10px; }
td select { padding: 6px 10px; }
input.code { font-size: 22px; letter-spacing: .3em; text-align: center; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.stack > button { justify-self: start; }
form.inline { display: flex; gap: 8px; align-items: center; }
.form-end { margin-top: 16px; }
.actions { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; }
.actions form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.flash { display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 500; }
.flash.bad { background: var(--crit-soft); color: var(--crit); } .flash.ok { background: var(--good-soft); color: var(--good); } .flash.warn { background: var(--warn-soft); color: var(--warn); }
.flash a { color: inherit; text-decoration: underline; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 0; }
main > .card + .card { margin-top: 20px; }
.card.pad { padding: 18px 20px; }
.card-head { padding: 16px 20px 12px; }
.card-head.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.more { font-size: 13px; font-weight: 500; }
.columns th, .columns td { padding-left: 14px; padding-right: 14px; }
.columns .tag { white-space: normal; }
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.stack-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 20px 32px; text-align: center; color: var(--text-3); }
.empty strong { color: var(--text); font-weight: 600; }
.bubble { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 6px; }
.error-card { max-width: 460px; margin: 10vh auto; padding-bottom: 28px; text-align: center; }

/* tables */
.scroll { overflow-x: auto; }
.bare-scroll { border-top: 1px solid var(--line); }
.card > .bare-scroll:first-child { border-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
th { font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
tr.out { display: none; }
.sev { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; }
.sev.P1 { background: var(--crit); color: #fff; } .sev.P2 { background: var(--warn-soft); color: var(--warn); } .sev.P3 { background: var(--off-soft); color: var(--text-2); }
:root[data-theme="dark"] .sev.P1 { color: #1b1b25; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 999px; background: var(--off-soft); color: var(--text-2); margin-right: 3px; white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.info { background: var(--brand-soft); color: var(--brand-ink); }

/* lists */
.rows, .feed, .checks, .timeline { list-style: none; margin: 0; padding: 0; }
.rows { border-top: 1px solid var(--line); }
.rows li { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows-end { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.rows.stacked li { flex-direction: column; align-items: flex-start; gap: 2px; }
.feed { padding: 4px 20px 16px; }
.feed li { position: relative; padding: 8px 0 8px 20px; display: flex; flex-direction: column; }
.feed li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 1.5px solid var(--line-2); }
.feed li:first-child::before { top: 16px; } .feed li:last-child::before { bottom: calc(100% - 16px); }
.feed-dot { position: absolute; left: 0; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.timeline { padding: 4px 20px 16px; }
.timeline li { position: relative; padding: 8px 0 8px 22px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 1.5px solid var(--line-2); }
.timeline li:first-child::before { top: 18px; } .timeline li:last-child::before { bottom: calc(100% - 18px); }
.tl-dot { position: absolute; left: 0; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.tl-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.checks { padding: 0 20px 14px; }
.checks li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.check-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-icon .i { width: 14px; height: 14px; stroke-width: 2.5; }
.pass .check-icon { background: var(--good-soft); color: var(--good); } .fail .check-icon { background: var(--crit-soft); color: var(--crit); }
.checks strong { font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.facts dt { color: var(--text-3); } .facts dd { margin: 0; overflow-wrap: anywhere; }
/* Change: a diff read the way a code review shows one, numbered before and after */
.change-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.change-grid .facts { gap: 9px 22px; }
.change-grid .card-head .hint { align-self: flex-start; }
.followed { list-style: none; margin: 0; padding: 0; }
.followed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: baseline; gap: 4px 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.followed li > a { color: var(--text); font-weight: 500; line-height: 1.4; }
.followed li > a:hover { color: var(--brand-ink); }
.followed .tag { justify-self: end; }
@media (max-width: 560px) {  /* the title gets the width; when and how it ended go on the line under it */
  .followed li { grid-template-columns: auto minmax(0, 1fr) auto; padding: 11px 16px; }
  .followed li > a { grid-column: 2 / -1; }
  .followed li > .muted { grid-column: 2; }
}
.diff-stat { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff-stat .plus { color: var(--good); } .diff-stat .minus { color: var(--crit); }
.diff-stat .boxes { display: inline-flex; gap: 2px; }
.diff-stat .boxes i { width: 8px; height: 8px; border-radius: 2px; }
.diff-stat .boxes .g { background: var(--good); } .diff-stat .boxes .r { background: var(--crit); }
.diff-table { width: 100%; border-collapse: collapse; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff-table td { padding: 0 12px; border: 0; vertical-align: top; }
.diff-table .ln { width: 1%; min-width: 34px; text-align: right; color: var(--text-3); user-select: none; font-variant-numeric: tabular-nums; padding: 0 8px; }
.diff-table .ln + .ln { border-right: 1px solid var(--line); }
.diff-table .code { white-space: pre; width: 100%; }
.diff-table .sign { display: inline-block; width: 2.2ch; user-select: none; color: var(--text-3); }
.diff-table tr.add td { background: var(--add); } .diff-table tr.add .sign { color: var(--good); }
.diff-table tr.del td { background: var(--del); } .diff-table tr.del .sign { color: var(--crit); }
.diff-table tr.add .ln { background: color-mix(in srgb, var(--good) 14%, var(--add)); }
.diff-table tr.del .ln { background: color-mix(in srgb, var(--crit) 12%, var(--del)); }
.diff-table tr.file td { padding: 9px 16px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diff-table tr.file:first-child td { border-top: 0; }
.diff-table tr.hunk td { color: var(--series-2); background: color-mix(in srgb, var(--series-2) 7%, transparent); padding-top: 4px; padding-bottom: 4px; }
.diff-table tr.note .code { color: var(--text-3); font-style: italic; }
.diff-table tr:last-child td { padding-bottom: 6px; }
.pill-link.quiet { background: transparent; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); padding: 8px 18px; font-size: 14px; }
.pill-link.quiet:hover { background: var(--brand-soft); }
@media (max-width: 900px) { .change-grid { grid-template-columns: minmax(0, 1fr); } }

/* segmented pills */
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; }
.segmented a { padding: 6px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a[aria-current] { background: var(--grad-btn); color: #fff; font-weight: 600; }
.section-tabs { margin: 0 0 18px; }
.segmented.filters { margin-bottom: 16px; }

/* Now: the headline */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 20px; }
.hero::after { content: ""; position: absolute; right: -80px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 95, 91, .35), transparent); pointer-events: none; }
.hero h1 { font-size: 30px; }
.hero h1 em { color: #f2918a; }
.hero .sub { color: #c6c6d2; }
.hero .eyebrow { color: #f2b3a6; }
.hero.ok h1 em, .hero.partial h1 em { color: #6ee7a0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 179, 166, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(242, 179, 166, 0); } }
.hero-stats { display: flex; gap: 12px; margin: 0; position: relative; z-index: 1; flex-wrap: wrap; }
.hero-stats div { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 16px; min-width: 124px; }
.hero-stats dt { font-size: 12px; color: #c6c6d2; }
.hero-stats dd { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; }
.hero-stats small { font-size: 14px; color: #c6c6d2; font-weight: 400; }

/* Now: the system map */
.map-card { padding: 14px 16px 16px; container: map / inline-size; }  /* the map is laid out by its own width: on a wide screen it's the middle column */
.map-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding: 2px 4px 12px; }
.legend { list-style: none; display: flex; flex-basis: 100%; gap: 6px 16px; flex-wrap: wrap; margin: 0; padding: 0; font-size: 12.5px; color: var(--text-2); }
.legend li { display: inline-flex; gap: 6px; align-items: center; }
.legend i, .status i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--tone, var(--off)); }
.ok { --tone: var(--good); --tone-soft: var(--good-soft); }
.degraded { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.failing { --tone: var(--crit); --tone-soft: var(--crit-soft); }
.quiet { --tone: var(--off); --tone-soft: var(--surface); }
.off { --tone: var(--off); --tone-soft: var(--off-soft); }
.legend .quiet i { background: transparent; box-shadow: inset 0 0 0 2px var(--off); }
.legend .off i, .status-off i { background: var(--off); }
.legend .plain i { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.switch { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.switch input:checked + .track { background: var(--grad-btn); }
.switch input:checked + .track::after { left: 19px; }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.traffic-note { background: var(--brand-soft); color: var(--brand-ink); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 500; margin: 0 4px 12px; }
.map { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 26px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.wires marker path { fill: var(--text-3); }
.wire { fill: none; stroke: var(--text-3); stroke-width: 1.5; }
.wire.dashed { stroke-dasharray: 4 4; }
.wire.moving { stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 7 7; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.wires text { font: 500 11px Inter, system-ui, sans-serif; fill: var(--text-2); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.lane { border-radius: 14px; padding: 12px 14px 16px; }
.lane h2 { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px;
  position: relative; z-index: 3; width: fit-content; background: inherit; }  /* over the wires, on its lane's colour: a wire that drops past a lane's name goes behind it */
.lane.call { background: var(--lane-call); } .lane.tools { background: var(--lane-tools); } .lane.plane { background: var(--lane-plane); } .lane.evals { background: var(--lane-evals); }
.lane-row { display: grid; gap: 26px; align-items: stretch; }
.r-call { grid-template-columns: minmax(0, .8fr) repeat(3, minmax(0, 1fr)) minmax(0, 2.2fr); }
.r-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.25fr) minmax(0, 1.25fr); gap: 26px; }
.r-plane { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 2.6fr); }
.r-evals { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.box { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 2px; background: color-mix(in srgb, var(--tone-soft, var(--surface)) 55%, var(--surface)); color: var(--text); border: 1.5px solid var(--tone, var(--line-2)); border-radius: 12px; padding: 9px 11px; min-width: 0; transition: border-color .3s, background .3s; }
a.box:hover { text-decoration: none; box-shadow: var(--shadow); }
.box.plain { background: var(--surface); border-color: var(--line-2); }
.box.quiet { border-style: dashed; }
.box.off { border-color: var(--line-2); background: var(--off-soft); }
.box strong { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.box-top { display: flex; align-items: center; justify-content: space-between; gap: 2px 6px; flex-wrap: wrap; }
.box-id { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-ink); }  /* the role; the layer code stays in the data */
.box-desc { font-size: 12px; line-height: 1.35; color: var(--text-2); }
.box-why { font-size: 11.5px; color: var(--text-3); font-style: italic; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--tone-ink, var(--tone, var(--text-2))); white-space: nowrap; }
.box.quiet .status i, .chips .quiet .status i { background: transparent; box-shadow: inset 0 0 0 2px var(--off); }
.box.group .box-top strong { flex: 1; min-width: 0; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.chips > span { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; font-size: 11.5px; line-height: 1.3; color: var(--text-2); min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chips .status { white-space: normal; font-size: 11px; }
.chips b { color: var(--text); font-weight: 600; font-size: 12.5px; }
.chips.ops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips .planned { background: transparent; border-style: dashed; color: var(--text-3); }
.chips .planned b { color: var(--text-2); }
.chips .ok, .chips .failing, .chips .quiet { border-color: var(--tone); }
.count { display: inline-block; position: absolute; top: -9px; right: 10px; background: var(--grad-btn); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 600; box-shadow: 0 2px 6px rgba(233, 80, 77, .3); }
.count[hidden] { display: none; }
/* Narrower than the call path's five boxes in a row (Now's middle column, a tablet): the call path runs down the left and
   the tools the agent uses down the right, each level with the box that calls it, and the ops and eval lanes go across
   under them. flow.js draws the wires from where the boxes land, so they turn the corners with them. */
@container map (520px <= width < 1000px) {
  .map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(48px, 11cqi, 88px); padding-right: 0; }  /* room for a wire's name between the columns */
  .lane.call, .lane.tools { grid-row: 1 / span 9; display: grid; grid-template-rows: subgrid; }
  .lane.tools { grid-column: 2; }
  .lane.call h2, .lane.tools h2 { margin: 0; }
  .lane.call .lane-row, .lane.tools .lane-row { display: contents; }
  #n-guest { grid-row: 2; } #n-phone { grid-row: 3; } #n-telephony, #n-handoff { grid-row: 4; } #n-bridge { grid-row: 5; }
  #n-agent { grid-row: 6 / span 2; } #n-menu { grid-row: 6; } #n-tools { grid-row: 7; } #n-ordering { grid-row: 8; } #n-payments { grid-row: 9; }
  .lane.plane, .lane.evals { grid-column: 1 / -1; }
  .r-plane { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-plane .box.group { grid-column: 1 / -1; }
  .r-evals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips, .chips.ops { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
}
@container map (width < 1000px) {  /* a box with parts names itself on a line of its own, under its role and state */
  .box.group .box-top strong { order: 1; flex-basis: 100%; }
}
@container map (width < 520px) {  /* a phone: one box under another, no wires */
  .wires { display: none; }
  .map { padding-right: 0; }
  .lane-row, .r-tools, .r-evals { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chips, .chips.ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Metrics */
.funnel dd { font-size: 28px; }
.funnel dd small { margin-top: 1px; color: var(--text-3); font-weight: 400; letter-spacing: 0; line-height: 1.35; white-space: normal; }
.funnel-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); margin: 6px 0 6px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: var(--grad-btn); border-radius: 4px; }
.funnel > div[data-none] dd { font-size: 16px; color: var(--text-3); line-height: 1.7; }
.funnel > div[data-none] { background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--line) 45%, transparent) 7px 8px); }
.keys { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.key { display: inline-flex; gap: 7px; align-items: center; color: var(--text-2); font-size: 12.5px; }
.k-change { width: 0; height: 14px; border-left: 2px dashed var(--text-3); }
.k-lane { width: 14px; height: 4px; border-radius: 2px; } .k-lane.P1 { background: var(--crit); } .k-lane.P2 { background: var(--warn); margin-left: -4px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 12px; min-width: 0; box-shadow: var(--shadow); }
.chart h2 { margin: 0 0 2px; }
.chart .chart-note { color: var(--text-3); font-size: 12px; margin-bottom: 6px; }
.plot { position: relative; margin-top: 8px; }
.chart details { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.chart summary { cursor: pointer; }
.chart details table { margin-top: 6px; }
.chart details th, .chart details td { padding: 5px 10px; }
.chart .empty { padding: 56px 12px; }
.uplot { font-family: inherit; }
.u-legend { font-size: 12px; text-align: left; color: var(--text-2); margin-top: 6px; }
.u-legend th, .u-legend td { background: none; border: 0; padding: 2px 6px; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--text-2); }  /* a key, not a table header */
.u-legend th:first-child { padding-left: 0; }
.u-legend .u-marker { width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.u-legend .u-value { color: var(--text); font-variant-numeric: tabular-nums; }
.u-over { cursor: crosshair; }
.tip { position: absolute; z-index: 9; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.tip[hidden] { display: none; }
.tip b { font-weight: 600; }
.mark { position: absolute; top: 0; bottom: 0; width: 13px; margin-left: -6px; display: block; z-index: 5; }
.mark::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; border-left: 2px dashed var(--text-3); opacity: .55; }
.mark::after { content: ""; position: absolute; left: 2px; top: 0; border: 4px solid transparent; border-top: 7px solid var(--text-3); }
.mark:hover::before { opacity: 1; border-left-style: solid; border-left-color: var(--brand); }
.mark:hover::after { border-top-color: var(--brand); }
.shade { position: absolute; top: 0; bottom: 0; z-index: 3; background: var(--crit); opacity: .04; pointer-events: none; }
.band { position: absolute; height: 4px; display: block; z-index: 6; border-radius: 2px; opacity: .85; }
.band::before { content: ""; position: absolute; inset: -3px 0; }  /* a taller target than the line it draws */
.band.P1 { background: var(--crit); } .band.P2 { background: var(--warn); } .band.P3 { background: var(--off); }
.band:hover { opacity: 1; box-shadow: 0 0 0 2px var(--surface); }
.chart-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chart-head-n { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.chart-head-n b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chart-head-n span { font-size: 12px; color: var(--text-3); }
.chart.wide { grid-column: 1 / -1; }
.chart-quiet { grid-column: 1 / -1; padding: 14px 18px; color: var(--text-2); font-size: 13px; box-shadow: none; background: transparent; border-style: dashed; }
.chart-quiet strong { color: var(--text); font-weight: 600; }

/* Credentials */
/* A row of numbers: one card, cells split by hairlines, so a page's headline figures read as one band. */
.tiles { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tiles > div { padding: 14px 18px 15px; min-width: 0; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.tiles > div.failing { background: color-mix(in srgb, var(--crit-soft) 55%, transparent); } .tiles > div.degraded { background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
.tiles dt { font-size: 12.5px; color: var(--text-3); font-weight: 500; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex: none; }
.tiles dd { margin: 3px 0 0; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tiles dd a { color: inherit; } .tiles dd a:hover { color: var(--brand-ink); text-decoration: none; }
.tiles .tile-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles.c3 { --cols: 3; } .tiles.c5 { --cols: 5; } .tiles.c6 { --cols: 6; }
.cred-group { margin-bottom: 16px; }
.cred-group .card-head { padding-bottom: 12px; }
.cred-group .card-head .sub { margin-top: 0; font-size: 13px; }
.creds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.creds li + li { border-top: 1px solid var(--line); }
.creds summary { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .9fr) 14px; gap: 14px; align-items: center; padding: 10px 20px; cursor: pointer; list-style: none; }
.creds summary::-webkit-details-marker { display: none; }
.creds summary::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3); transform: rotate(-45deg); transition: transform .15s; }
.creds details[open] summary::after { transform: rotate(45deg); }
.creds summary:hover { background: var(--surface-2); }
.cred-name { min-width: 0; display: flex; flex-direction: column; }
.cred-name code { overflow-wrap: anywhere; }
.creds .status { white-space: normal; font-size: 13px; font-weight: 500; color: var(--text-2); }
.creds .status.failing, .creds .status.degraded { color: var(--tone); font-weight: 600; }
.cred-more { display: flex; gap: 16px 40px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; padding: 4px 20px 16px; background: var(--surface-2); border-top: 1px solid var(--line); }
.cred-more .facts { padding-top: 10px; flex: 1 1 340px; }
.cred-more form.inline { align-items: flex-end; }
.add-entry { margin-top: 20px; }
.add-entry summary { cursor: pointer; font-weight: 600; }
.add-entry form { margin-top: 14px; }

/* sign-in */
body.bare { min-height: 100vh; }
.bare-main { padding-top: 12vh; }
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-story { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-story::after { content: ""; position: absolute; right: -180px; bottom: -180px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 95, 91, .45), transparent); }
.auth-story .logo img { height: 40px; }
.auth-story .logo-sub { color: #e3e3ea; font-size: 16px; }
.auth-story h2 { font-size: 42px; line-height: 1.15; font-weight: 500; letter-spacing: -.015em; max-width: 520px; }
.auth-story h2 em { color: #f2918a; }
.auth-story p { color: #c6c6d2; font-size: 16px; margin-top: 14px; max-width: 460px; }
.auth-story ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #e3e3ea; position: relative; z-index: 1; }
.auth-story li { display: flex; gap: 12px; align-items: center; }
.auth-story .i { color: #f2918a; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 30px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.auth-card .flash { margin: 12px 0 0; }
.auth-logo { display: none; margin-bottom: 28px; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; width: max-content; margin: 16px auto 8px; }
.qr img { display: block; image-rendering: pixelated; }
.manual { font-size: 13px; color: var(--text-2); text-align: center; }
.manual summary { cursor: pointer; font-weight: 500; }
.manual p { margin: 8px 0; }

@media (max-width: 1240px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .tiles, .tiles.c3, .tiles.c5, .tiles.c6, .calls-tiles { --cols: 2; }
  .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --bar: 56px; }
  .shell { display: block; }
  /* The sidebar is a top bar of one row: the logo, Jump to and Menu. Menu opens the rest under the bar, as the sidebar
     has it, over the page. With no script there's no Menu: the rest stays open under the logo and the bar scrolls away. */
  .side-nav { position: static; z-index: 20; height: auto; min-height: var(--bar); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 2px; padding: 0 8px 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .js .side-nav { position: sticky; }
  .brand { display: flex; align-items: center; min-height: calc(var(--bar) - 1px); margin-right: auto; padding: 0; }
  .logo { flex-direction: row; align-items: center; gap: 10px; }
  .logo img { height: 24px; }
  .logo-sub { padding: 0 0 0 10px; border-left: 1px solid var(--line-2); }
  .nav-menu { flex: 0 0 100%; display: flex; flex-direction: column; gap: 16px; padding: 0 8px 16px 0; }
  .js .bar-jump, .js .nav-toggle { display: grid; }
  .js .nav-menu { position: absolute; top: calc(100% + 1px); right: 0; width: 340px; max-height: calc(100vh - var(--bar)); max-height: calc(100dvh - var(--bar)); overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 16px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0 0 0 16px; box-shadow: var(--shadow-pop); }
  .js .side-nav:not(.open) .nav-menu, .js .nav-menu .palette-btn { display: none; }  /* Jump to has its own button in the bar */
  .js .side-nav.open .nav-shade { display: block; position: fixed; inset: var(--bar) 0 0; background: rgba(10, 11, 16, .45); -webkit-tap-highlight-color: transparent; }  /* a tap on it closes Menu */
  .side-nav nav { flex: none; }
  .nav-menu .view-switch { margin: 0; }
  main { padding: 18px 16px 48px; }
  h1, .hero h1 { font-size: 24px; }
  .hero { padding: 18px; }
  .hero-stats { width: 100%; }
  .hero-stats div { flex: 1; min-width: 96px; padding: 8px 12px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-story { display: none; }
  .auth-logo { display: block; }
}
@media (max-width: 560px) {
  th, td { padding: 10px 14px; }
  .js .nav-menu { width: 100%; border-left: 0; border-radius: 0; }
  .creds summary { grid-template-columns: minmax(0, 1fr) 14px; }
  .cred-owner { display: none; }
  .creds .status { grid-column: 1; grid-row: 2; }
  .creds summary::after { grid-column: 2; grid-row: 1 / 3; }
  .card-head { padding: 14px 16px 10px; }
  .card-head.row { flex-wrap: wrap; row-gap: 4px; }  /* a note that won't fit beside the title goes under it */
}
@media (prefers-reduced-motion: reduce) {
  .wire.moving { animation: none; stroke-dasharray: none; }
  .pulse { animation: none; }
}

/* customer switcher, Customers tab, Costs */
.view-switch { margin: 0 0 14px; font-size: 12.5px; }
.view-switch label { display: flex; flex-direction: column; gap: 4px; color: var(--text-3); }
.view-switch select { width: 100%; min-width: 0; }
.customer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; }
.pad-in { padding: 4px 20px 18px; }
.sub-head { font-size: 13px; font-weight: 600; margin: 18px 0 6px; }
.cost-bars { display: block; width: 100%; height: auto; padding: 0 20px; box-sizing: border-box; }
.cost-bars .bar { fill: var(--brand); }
.cost-bars .hit { fill: transparent; }
.cost-bars g:hover .bar { fill: var(--brand-ink); }
.cost-bars .base { stroke: var(--line); stroke-width: 1; }
.axis-ends { display: flex; justify-content: space-between; margin: 4px 20px 12px; font-size: 12px; }
.by-day { padding: 0 20px 14px; font-size: 13px; }
.by-day summary { cursor: pointer; color: var(--brand-ink); }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tiles div:not([class]) dt::before { display: none; }  /* a tile with no status has no status dot */
.sign-in-tabs { margin-top: 20px; } .sign-in-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.sign-in-tabs .segmented { display: flex; } .sign-in-tabs .segmented label { display: block; flex: 1; margin: 0; padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; text-align: center; cursor: pointer; }
#as-customer:checked ~ .segmented label[for="as-customer"], #as-employee:checked ~ .segmented label[for="as-employee"] { background: var(--grad-btn); color: #fff; font-weight: 600; }
#as-customer:focus-visible ~ .segmented label[for="as-customer"], #as-employee:focus-visible ~ .segmented label[for="as-employee"] { outline: 2px solid var(--brand); outline-offset: 2px; }
.tab-customer, .tab-employee { display: none; margin-top: 20px; } #as-customer:checked ~ .tab-customer, #as-employee:checked ~ .tab-employee { display: block; }
.sso-link { display: block; margin-top: 14px; padding: 12px; text-align: center; } .sso-link:hover { text-decoration: none; }
.tab-customer form { margin-top: 0; }
.finding-head { margin: 0; padding: 0 20px 14px; }
.finding-more { padding: 10px 20px 14px; border-top: 1px solid var(--line); }
.finding-more summary { cursor: pointer; font-weight: 500; }
.finding-more table, .finding-more .rows { margin-top: 8px; }
.tag.bad { background: var(--crit-soft); color: var(--crit); }
.finding-next { margin: 0; padding: 0 20px 12px; color: var(--text-2); }
.agent-job { margin: 0 0 12px; }
.agent-rules { margin-bottom: 12px; }
.agent-num { display: inline-flex; align-items: center; gap: 6px; }
.agent-check { display: flex; gap: 10px; align-items: flex-start; }
.case-status { display: flex; gap: 14px 24px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; padding: 16px 20px; border-radius: 16px; background: var(--off-soft); border: 1px solid var(--line); }
.case-status.bad { background: var(--crit-soft); } .case-status.good { background: var(--good-soft); }
.case-verdict { font-size: 18px; font-weight: 600; white-space: nowrap; }
.case-status.bad .case-verdict { color: var(--crit); } .case-status.good .case-verdict { color: var(--good); }
.case-status ul { margin: 0; padding: 0 0 0 18px; flex: 1 1 320px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0 20px 8px; }
.steps > li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.steps > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; border-left: 1.5px solid var(--line-2); }
.steps > li:last-child::before { display: none; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--off-soft); color: var(--text-2); }
.steps > li.bad .step-n { background: var(--crit-soft); color: var(--crit); } .steps > li.warn .step-n { background: var(--warn-soft); color: var(--warn); } .steps > li.good .step-n { background: var(--good-soft); color: var(--good); }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { margin: 3px 0 6px; font-size: 15px; font-weight: 600; }
.step-body h3 .muted { font-size: 12.5px; font-weight: 400; margin-left: 6px; }
.step-body h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.step-body > p { margin: 0 0 6px; }
.step-more { margin-top: 10px; font-size: 13px; } .step-more summary { cursor: pointer; font-weight: 500; }
.case-chart { margin-top: 14px; min-width: 0; }
.case-chart h3 { margin: 0; font-size: 13px; } .case-chart .chart-note { margin: 0; color: var(--text-3); font-size: 12px; }
.case-chart details { margin-top: 6px; font-size: 12.5px; color: var(--text-3); } .case-chart summary { cursor: pointer; }
.case-chart table { margin-top: 6px; } .case-chart th, .case-chart td { padding: 5px 10px; }
.case-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 10px; }
.case-sides > div, .case-gap { min-width: 0; } .case-gap { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; } .case-gap h4 { grid-column: 1 / -1; }
.case-point { margin: 0 0 10px; }
.case-path { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.actions-side { display: flex; flex-direction: column; gap: 14px; } .actions-side h2 { margin: 0; }
.actions-side form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .actions-side label, .actions-side input { width: 100%; }
@media (max-width: 720px) { .case-sides, .case-gap { grid-template-columns: minmax(0, 1fr); } }
/* Agents: each has a face and a colour, the same wherever it shows */
.agent-face { --hue: var(--off); width: 28px; height: 28px; flex: none; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--hue); background: color-mix(in srgb, var(--hue) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 24%, transparent); }
.agent-face.lg { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.agent-face .i { width: 15px; height: 15px; }
.agent-face.person { --hue: var(--text-2); }
.a-watcher { --hue: #d4504c; } .a-triage { --hue: #4757d1; } .a-directory { --hue: #0d877a; } .a-telephony { --hue: #7744d4; }
.a-abuse { --hue: #c03576; } .a-scorer { --hue: #2273b8; } .a-cost { --hue: #8f6a12; } .a-fixer, .a-reporter { --hue: #737a8c; }
:root[data-theme="dark"] .a-watcher { --hue: #f2918a; } :root[data-theme="dark"] .a-triage { --hue: #9aa6f5; } :root[data-theme="dark"] .a-directory { --hue: #4fd1bf; }
:root[data-theme="dark"] .a-telephony { --hue: #b597f5; } :root[data-theme="dark"] .a-abuse { --hue: #f08cbb; } :root[data-theme="dark"] .a-scorer { --hue: #7cb9f0; }
:root[data-theme="dark"] .a-cost { --hue: #e0bd62; } :root[data-theme="dark"] .a-fixer, :root[data-theme="dark"] .a-reporter { --hue: #a3a8b8; }
.agents-flow { padding: 16px 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.agents-flow > p { max-width: 100ch; font-size: 13px; }
.flow-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px; }
.flow-line li { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.flow-line li b { color: var(--text); font-weight: 600; }
.flow-line li .agent-face { border-radius: 50%; }
.flow-line li + li::before { content: "→"; position: absolute; left: -26px; color: var(--text-3); font-size: 15px; }
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.agent-card { min-width: 0; padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 12px; }
.agent-card.planned { background: transparent; border-style: dashed; box-shadow: none; }
.agent-top { display: flex; align-items: center; gap: 12px; }
.agent-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.agent-name h2 { font-size: 16px; }
.agent-name .muted { font-size: 13px; }
.agent-facts { margin: 0; display: grid; gap: 6px; font-size: 13px; }
.agent-facts > div { display: flex; gap: 10px; align-items: baseline; }
.agent-facts dt { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); flex: none; width: 112px; }
.agent-facts dt .i { width: 14px; height: 14px; align-self: center; }
.agent-facts dd { margin: 0; color: var(--text-2); min-width: 0; }
.agent-facts dd .tag { margin: 2px 0 0; }
.agent-never { border-radius: 12px; background: var(--surface-2); padding: 10px 12px; font-size: 13px; }
.agent-never h3, .agent-more summary { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.agent-never h3 { margin-bottom: 6px; }
.agent-never h3 .i { width: 14px; height: 14px; }
.agent-never ul, .agent-more ul { margin: 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 4px; }
.agent-more { font-size: 13px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.agent-more summary { cursor: pointer; list-style: none; }
.agent-more summary::-webkit-details-marker { display: none; }
.agent-more summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3); transform: rotate(45deg); transition: transform .15s; }
.agent-more[open] summary::after { transform: rotate(-135deg); }
.agent-more summary:hover { color: var(--text); }
.agent-more .n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--off-soft); color: var(--text-2); text-align: center; letter-spacing: 0; }
.agent-more[open] ul { margin-top: 8px; }
.handoffs { margin-top: 20px; }
.handoff-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.handoff-list li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.handoff-list li:last-child { border-bottom: 0; }
.handoff-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.handoff-top { display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.handoff-top b { font-weight: 600; }
.handoff-text { color: var(--text-2); }

/* Admin: Warden's sync line, and escalation tiers that pick Microsoft groups */
.sync-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sync-bar form { margin: 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tier { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tier legend { font-weight: 600; margin-bottom: 6px; }
.tier .agent-check { flex-direction: row; align-items: flex-start; font-weight: 500; }
.tier .agent-check input { margin-top: 3px; flex: none; }

/* An agent's watch over a page: Relay on Telephony, Penny on Costs */
.balance-line { display: block; width: 100%; height: auto; padding: 0 20px; box-sizing: border-box; }
.balance-line polyline { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.balance-line circle { fill: transparent; }
.balance-line circle:hover { fill: var(--brand-ink); }
.tiles.inset { --cols: 3; margin: 0 20px 14px; box-shadow: none; }
.tiles small { display: block; font-size: 12px; }
.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.grid.two .card { margin: 0; }
.grid.two td { padding-left: 20px; }
.findings ul.plain { list-style: none; margin: 0; padding: 0 20px 14px; display: grid; gap: 6px; }
@media (max-width: 760px) { .grid.two { grid-template-columns: 1fr; } .tiles.inset { --cols: 1; } }
.card > .note { padding: 0 20px 14px; margin: 0; }
.grid.two { margin-top: 20px; }
td.webhook { word-break: break-all; min-width: 160px; }
.case-route { margin: 0 0 12px; }
.case-route ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 6px; }
.case-route h4 { margin: 0; }

/* Timeline */
.timeline-card { padding: 16px 8px 8px 16px; }
.tl-root { position: relative; min-height: 120px; }
.tl-frame { position: relative; }
.tl-frame svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.tl-label { font: 600 12.5px Inter, system-ui; fill: var(--text); }
.tl-sub { font: 11px Inter, system-ui; fill: var(--text-3); }
.tl-tick { font: 11px Inter, system-ui; fill: var(--text-3); }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-rule { stroke: var(--line-2); stroke-width: 1; }
.tl-calls { fill: var(--series-2); opacity: .55; }
.tl-errors { fill: var(--crit); }
.tl-hit { fill: transparent; }
.tl-busy { fill: var(--text-3); opacity: .35; }
.tl-mark { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.tl-count { font: 600 10.5px Inter, system-ui; fill: #fff; pointer-events: none; }
.tl-bar { stroke: var(--surface); stroke-width: 2; }
.tl-bar.P1 { fill: var(--crit); } .tl-bar.P2 { fill: var(--warn); } .tl-bar.P3 { fill: var(--off); }
.tl-bar.open { stroke: var(--text); stroke-dasharray: 3 2; stroke-width: 1; }
.tl-link { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .7; pointer-events: none; }
.tl-frame a { cursor: pointer; transition: opacity .12s; }
.tl-frame a:focus-visible { outline: 2px solid var(--brand); }
svg.dim a, svg.dim .tl-link { opacity: .18; }
svg.dim a.lit, svg.dim .tl-link.lit { opacity: 1; }
svg.dim .tl-link.lit { stroke: var(--brand); stroke-dasharray: none; }
.k-diamond { width: 9px; height: 9px; background: var(--brand); transform: rotate(45deg); border-radius: 1.5px; }
.k-bar { width: 12px; height: 9px; border-radius: 2px; margin-right: -4px; }
.k-bar.P1 { background: var(--crit); } .k-bar.P2 { background: var(--warn); } .k-bar.P3 { background: var(--off); margin-right: 0; }
.k-link { width: 18px; border-top: 1.5px dashed var(--text-3); }
.k-busy { width: 12px; height: 6px; background: var(--text-3); opacity: .35; border-radius: 1px; }
.back-now { font-size: 13px; color: var(--brand-ink); align-self: center; }

/* Calls */
.calls-tiles { --cols: 8; } .calls-tiles.c7 { --cols: 7; }
.small-dd { font-size: 20px !important; }
tr.current td { background: var(--surface-2); }
.call-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.call-grid > div { display: grid; gap: 16px; }
.player { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 16px; }
.player audio { flex: 1; min-width: 220px; }
.talk { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.talk li { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.talk li.agent { background: var(--brand-soft); border-color: transparent; }
.talk li.guest { justify-self: end; }
.talk .speaker { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.talk p { margin: 0 0 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (max-width: 900px) { .call-grid { grid-template-columns: minmax(0, 1fr); } .talk li { max-width: 100%; } }
/* the Calls chart */
.calls-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cc-call { stroke: var(--surface); stroke-width: 1; }
.cc-call.order, .k-swatch.order { fill: var(--good); background: var(--good); }
.cc-call.store, .k-swatch.store { fill: var(--series-2); background: var(--series-2); }
.cc-call.none, .k-swatch.none { fill: var(--off); background: var(--off); }
.cc-call.failed, .k-swatch.failed { fill: var(--crit); background: var(--crit); }
.cc-orders { fill: var(--good); }
.cc-p50 { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; }
.cc-p95 { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-dasharray: 4 3; stroke-linejoin: round; }
.cc-p50-dot { fill: var(--series-2); } .cc-p95-dot { fill: var(--series-1); }
.cc-heat { fill: var(--series-2); }
.cc-heat.err { stroke: var(--crit); stroke-width: 1.5; }
.cc-sel { fill: var(--brand); fill-opacity: .1; stroke: var(--brand); stroke-width: 1; pointer-events: none; }
svg.brushable { cursor: crosshair; touch-action: pan-y; user-select: none; } svg.brushable a { cursor: pointer; }
.k-swatch { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }
.k-heat { width: 22px; height: 8px; border-radius: 3px; display: inline-block; background: linear-gradient(90deg, color-mix(in srgb, var(--series-2) 20%, transparent), var(--series-2)); }
tr.lit td { background: var(--brand-soft); }
#changes-list tr[hidden] { display: none; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
/* a call's waterfall */
.wf-guest { fill: var(--off); fill-opacity: .55; }
.wf-wait { fill: var(--series-2); }
.wf-wait.slow { fill: var(--warn); }
.wf-tool { fill: var(--series-1); }
.wf-tool.err { fill: var(--crit); }
.wf-cursor { stroke: var(--text); stroke-width: 1.5; pointer-events: none; }
.tl-hit.seek { cursor: pointer; }
.talk li.now { outline: 2px solid var(--brand); }

/* ? Help, guided tours (tour.js) and ⓘ hints */
.help-menu { position: relative; }
.help-menu summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; cursor: pointer; }
.help-menu summary::-webkit-details-marker { display: none; }
.help-menu summary:hover, .help-menu[open] summary { background: var(--surface-2); }
.help-pop { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.help-pop a, .help-pop button.link { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 13.5px; }
.help-pop a:hover, .help-pop button.link:hover { background: var(--surface-2); text-decoration: none; }
.help-pop form { margin: 0; }
button.link { background: none; box-shadow: none; padding: 0; border-radius: 0; color: var(--brand-ink); font-weight: 500; }
button.link:hover { filter: none; text-decoration: underline; }
.tour-shade { position: fixed; inset: 0; z-index: 90; }
.tour-spot { position: fixed; z-index: 91; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(12, 12, 18, .55), 0 0 0 2px var(--brand); pointer-events: none; transition: all .25s ease; }
.tour-card { position: fixed; z-index: 92; width: min(360px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(12, 12, 18, .3); padding: 16px 18px 14px; }
.tour-card.docked { left: 12px; right: 12px; bottom: 12px; width: auto; }
.tour-card h2 { font-size: 16px; margin: 2px 0 6px; }
.tour-card p, .tour-card ul { color: var(--text-2); margin: 0 0 8px; }
.tour-card ul { padding-left: 18px; } .tour-card li + li { margin-top: 4px; }
.tour-head { display: flex; justify-content: space-between; align-items: center; }
.tour-count { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--brand-ink); }
button.tour-x { background: none; box-shadow: none; color: var(--text-3); padding: 0 4px; font-size: 20px; line-height: 1; border-radius: 6px; }
.tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.tour-nav { display: flex; gap: 8px; }
.hint { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; border: 1px solid currentColor; font: italic 600 10px/1 Georgia, serif; opacity: .75; cursor: help; vertical-align: 1px; }
.hint:hover, .hint:focus-visible { opacity: 1; }
.hint-tip { position: fixed; z-index: 95; max-width: 260px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; box-shadow: 0 6px 20px rgba(12, 12, 18, .3); pointer-events: none; }
:root[data-theme="dark"] .hint-tip { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* Marker's findings on a call */
.findings { margin: 8px 0 0; padding-left: 22px; }
.findings li { margin-bottom: 12px; }
.findings li p { margin: 4px 0; }
.facts.small { font-size: 13px; margin-top: 4px; }
.facts.small dd { white-space: normal; overflow-wrap: anywhere; }
.talk li:target { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Scores on Calls: a number, red only when it's under the pass mark; the problems in low calls as chips that filter */
.score { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
a.score.low { color: var(--crit); text-decoration: none; }
a.score.low:hover { text-decoration: underline; }
.score-note { margin-left: 6px; font-size: 12px; color: var(--text-3); }
.calls-filter { flex-wrap: wrap; gap: 10px 16px; }
.issue-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.chip:hover { border-color: var(--crit); color: var(--text-1, inherit); }
.chip[aria-current="true"] { border-color: var(--crit); background: var(--crit-soft); color: var(--crit); }
.chip-n { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--crit-soft); color: var(--crit); font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.store-edit { border-top: 1px solid var(--line); padding: 8px 0; }
.store-edit summary { cursor: pointer; font-weight: 500; }
.store-edit summary .muted { font-weight: 400; margin-left: 6px; }
.store-edit[open] summary .muted { display: none; }
.store-edit form { margin-top: 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.forwarding { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.forwarding p { margin: 6px 0; }
/* Backend services: one row a service on Home, the full record on Trends */
.services-card { margin-bottom: 18px; }
.services { list-style: none; margin: 0; padding: 0 20px 8px; container: services / inline-size; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) 26% 52px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 2px; }
.svc-name { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text); text-decoration: none; font-size: 13px; white-space: nowrap; }
.svc-name:hover strong { text-decoration: underline; }
.svc-name > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.svc.quiet .svc-name > i { background: transparent; box-shadow: inset 0 0 0 2px var(--off); }
.svc-name strong { flex: none; max-width: calc(100% - 15px); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }  /* the name keeps its width; the words after it give way */
.svc-why { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--text-2); }
.svc.degraded .svc-why, .svc.failing .svc-why { color: var(--tone-ink, var(--tone)); font-weight: 600; }
.svc-pct { font-size: 12px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc-strip { display: flex; gap: 1px; height: 12px; }
.svc-strip i { flex: 1; min-width: 1px; border-radius: 2px; background: var(--tone); }
.svc-strip i.quiet { background: var(--line); }
.svc-strip.wide { height: 22px; flex: 1; min-width: 0; }
.backend { margin-top: 18px; }
.backend h3 { margin: 16px 20px 6px; font-size: 14px; }
.backend .muted { padding: 0 20px 14px; }
.backend-row { display: flex; gap: 16px; align-items: center; padding: 6px 20px; }
.backend-name { width: 230px; flex: none; display: flex; flex-direction: column; font-size: 13px; }
.backend-name .muted { padding: 0; font-size: 12px; }
.backend, .backend-row { scroll-margin-top: 16px; }  /* where Home's History and service links land */
.tone-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tone); background: var(--tone-soft); }
@container services (max-width: 439px) {  /* no room for the bar beside the words (a phone, or Now's right column): it goes under them */
  .svc { grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
  .svc-strip { grid-column: 1 / -1; grid-row: 2; margin-left: 15px; }
  .svc-pct { grid-column: 2; grid-row: 1; }
}
@container services (max-width: 299px) {  /* Now's right column: what's up or wrong gets a line of its own */
  .svc { align-items: start; }
  .svc-name { flex-wrap: wrap; row-gap: 1px; }
  .svc-why { flex-basis: 100%; padding-left: 15px; }
}
@media (max-width: 560px) { .services { padding: 0 16px 8px; } }
@media (max-width: 860px) {
  .backend, .backend-row { scroll-margin-top: calc(var(--bar) + 16px); }  /* below the top bar */
  .backend-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .backend-name { width: auto; }
}

/* ---------- Lists: toolbars, sorting, paging ---------- */
.segmented.sm { padding: 2px; }
.segmented.sm a { padding: 4px 12px; font-size: 13px; }
.seg-n { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--off-soft); color: var(--text-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.segmented a[aria-current] .seg-n { background: rgba(255, 255, 255, .22); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1 1 0; min-width: 0; }
.toolbar .tally { font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.toolbar .clear { font-size: 13px; font-weight: 500; white-space: nowrap; }
.toolbar select { padding: 5px 30px 5px 12px; font-size: 13px; border-radius: 999px; }
.toolbar form.pick { display: contents; }
.search { position: relative; display: flex; align-items: center; flex: 0 1 280px; min-width: 180px; margin: 0; }
.search .i { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; padding: 6px 30px 6px 33px; border-radius: 999px; font-size: 13px; background: var(--surface-2); }
.search input:focus { background: var(--surface); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd, .palette-btn kbd, .palette-foot kbd { font: 600 11px/1 Inter, system-ui, sans-serif; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text-3); background: var(--surface); }
.search kbd { position: absolute; right: 9px; pointer-events: none; }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
.chipset { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chipset button, .chipset a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; box-shadow: none; line-height: 1.35; }
.chipset button:hover, .chipset a:hover { border-color: var(--text-3); color: var(--text); text-decoration: none; filter: none; }
.chipset [aria-pressed="true"], .chipset [aria-current="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.chipset .n { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .7; }
.chipset .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--off)); }
.chipset .sev-chip.P1 { --tone: var(--crit); } .chipset .sev-chip.P2 { --tone: var(--warn); } .chipset .sev-chip.P3 { --tone: var(--off); }
th.sortable { padding-top: 0; padding-bottom: 0; }
th.sortable a, th .th-sort { display: inline-flex; align-items: center; gap: 5px; padding: 10px 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; box-shadow: none; border-radius: 0; cursor: pointer; white-space: nowrap; }
th.sortable a:hover, th .th-sort:hover { color: var(--text); text-decoration: none; filter: none; }
th .th-sort:active { transform: none; }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--text); }
.sort-ind { display: inline-flex; flex-direction: column; gap: 2px; }
.sort-ind::before, .sort-ind::after { content: ""; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; opacity: .3; }
.sort-ind::before { border-bottom: 4px solid currentColor; }
.sort-ind::after { border-top: 4px solid currentColor; }
th[aria-sort="ascending"] .sort-ind::before, th[aria-sort="descending"] .sort-ind::after { opacity: 1; }
th.num.sortable a, th.num .th-sort { flex-direction: row-reverse; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px 10px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.pager-count { font-variant-numeric: tabular-nums; }
.pager-links { display: inline-flex; gap: 2px; }
.pager-links a, .pager-links span { min-width: 32px; height: 32px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.pager-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.pager-links a[aria-current] { background: var(--text); color: var(--surface); font-weight: 600; }
.pager-links .off { opacity: .35; } .pager-links .gap { min-width: 18px; padding: 0; }
.cell-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.cell-title { color: var(--text); font-weight: 600; }
a.cell-title:hover { color: var(--brand-ink); text-decoration: none; }
.dot-sep::before { content: "·"; margin: 0 6px; color: var(--line-2); }
.tag.test { background: var(--info-soft); color: var(--info); }
.tag.vendor { background: var(--off-soft); color: var(--text-2); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-line { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding: 8px 16px 8px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.filter-line .clear { font-weight: 500; }
.list-card { overflow: hidden; }
.list-card .scroll { border-top: 0; }
/* Incidents: open tickets carry their severity down the left edge; closed ones step back */
.incidents-table td { padding-top: 12px; padding-bottom: 12px; }
.incidents-table .col-sev { width: 1%; }
.incidents-table .col-title { min-width: 300px; }
td.col-layer { color: var(--text-2); white-space: nowrap; }
.incidents-table td.col-state { min-width: 150px; }
.incidents-table td.col-state .tag { margin-bottom: 2px; }
.incidents-table tr.is-open td:first-child { box-shadow: inset 3px 0 0 var(--line-2); }
.incidents-table tr.is-open.sev-P1 td:first-child { box-shadow: inset 3px 0 0 var(--crit); }
.incidents-table tr.is-open.sev-P2 td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.incidents-table tr.is-done .cell-title { color: var(--text-2); font-weight: 500; }
.incidents-table tr.is-done .sev { opacity: .7; }
.only-narrow { display: none; }
@media (max-width: 1000px) {
  .col-layer { display: none; }
  .only-narrow { display: inline; }
}
@media (max-width: 560px) {  /* a phone: each ticket is a card, and the headers become a row of sort links */
  .incidents-table, .incidents-table thead, .incidents-table tbody { display: block; }
  .incidents-table thead tr { display: flex; gap: 2px; padding: 4px 10px; overflow-x: auto; scrollbar-width: none; background: var(--surface-2); border-bottom: 1px solid var(--line); }
  .incidents-table th, .incidents-table th:first-child, .incidents-table th:last-child { display: block; flex: none; width: auto; padding: 6px 8px; border: 0; background: none; }
  .incidents-table th.col-layer, .incidents-table td.col-layer { display: none; }
  .incidents-table tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .incidents-table td, .incidents-table td:first-child, .incidents-table td:last-child { display: block; padding: 0; border: 0; min-width: 0; }
  .incidents-table td.col-sev { grid-row: 1 / span 2; padding-top: 1px; }
  .incidents-table td.col-title { grid-column: 2 / -1; min-width: 0; }
  .incidents-table td:nth-child(4) { grid-column: 2; align-self: center; font-size: 12.5px; color: var(--text-2); }  /* opened */
  .incidents-table td:nth-child(4) .cell-sub { display: none; }
  .incidents-table td:nth-child(5) { display: none; }  /* lasted: the state says whether it is still open */
  .incidents-table td.col-state { grid-column: 3; min-width: 0; text-align: right; }
  .incidents-table td.col-state .block { display: none; }
  .incidents-table tr.is-open td:first-child, .incidents-table tr.is-open.sev-P1 td:first-child, .incidents-table tr.is-open.sev-P2 td:first-child { box-shadow: none; }
  .incidents-table tbody tr.is-open { box-shadow: inset 3px 0 0 var(--line-2); }
  .incidents-table tbody tr.is-open.sev-P1 { box-shadow: inset 3px 0 0 var(--crit); }
  .incidents-table tbody tr.is-open.sev-P2 { box-shadow: inset 3px 0 0 var(--warn); }
}

/* ---------- Sidebar: jump to, the count of open incidents, and the top bar's buttons (860 px and narrower) ---------- */
.palette-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3); font-weight: 500; font-size: 13.5px; box-shadow: none; margin-top: -10px; }
.palette-btn:hover { color: var(--text); border-color: var(--line-2); filter: none; }
.palette-btn .i { width: 16px; height: 16px; }
.palette-btn kbd { margin-left: auto; }
.nav-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--off-soft); color: var(--text-2); }
.nav-badge.P1 { background: var(--crit); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit) 22%, transparent); }
.nav-badge.P2 { background: var(--warn-soft); color: var(--warn); }
:root[data-theme="dark"] .nav-badge.P1 { color: #1b1b25; }
.bar-jump, .nav-toggle { display: none; width: 40px; height: 40px; place-items: center; border-radius: 10px; color: var(--text-2); }
.nav-toggle { position: relative; }
.nav-toggle .i + .i, .nav-toggle[aria-expanded="true"] .i:first-child, .nav-toggle[aria-expanded="true"] .nav-badge { display: none; }  /* open, Menu is a cross */
.nav-toggle[aria-expanded="true"] .i + .i { display: block; }
.nav-toggle[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.nav-toggle .nav-badge { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; }

/* ---------- Jump to (⌘K) ---------- */
.palette { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(10, 11, 16, .5); backdrop-filter: blur(3px); }
.palette[hidden] { display: none; }
.palette-box { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden; }
.palette-input { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.palette-input .i { position: absolute; left: 18px; color: var(--text-3); }
.palette-input input { width: 100%; border: 0; border-radius: 0; padding: 17px 18px 17px 48px; font-size: 16px; background: transparent; box-shadow: none; }
.palette-input input:focus { box-shadow: none; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 460px); overflow-y: auto; }
.palette-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.palette-list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.palette-list a:hover { text-decoration: none; }
.palette-list [aria-selected="true"] a { background: var(--brand-soft); color: var(--brand-ink); }
.palette-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-where { font-size: 12px; color: var(--text-3); }
.palette-none { padding: 18px 12px; color: var(--text-3); text-align: center; }
.palette-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); background: var(--surface-2); }
.palette-foot kbd { margin-right: 4px; }

/* ---------- Callers ---------- */
svg.bar { width: 64px; height: 4px; flex: none; border-radius: 2px; overflow: hidden; }
.bar-bg { fill: var(--line); } .bar-fg { fill: var(--brand); }
svg.bar.info .bar-fg { fill: var(--series-2); } svg.bar.good .bar-fg { fill: var(--good); }
.num-bar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.num-bar > span { min-width: 3ch; text-align: right; }
.warn-num { color: var(--warn); font-weight: 600; }
.callers-table tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tnum { font-variant-numeric: tabular-nums; }
.foot-note { margin: 14px 4px 0; font-size: 12.5px; }
@media (max-width: 1000px) { .col-line { display: none; } svg.bar { width: 40px; } }

/* ---------- Now: the board. Backend services, open incidents and the traffic flow, stacked in that order ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.board > .card { margin: 0; }
.now-right { display: contents; }  /* narrow: its cards join the stack, the services first, the changes and expiries last */
.now-right > .card { margin: 0; }
.now-right > .changes-card, .now-right > .expiries-card { order: 1; }
@media (min-width: 1440px) {
  /* The flow in the middle, incidents at its left and the services at its right. The side cards stay in view while the
     flow scrolls by and are never taller than the screen: more than fits scrolls inside the card, not down the page. */
  .board { grid-template-columns: clamp(290px, 25%, 360px) minmax(0, 1fr) clamp(250px, 21%, 310px); grid-template-areas: "inc map up"; }
  .board > .now-side { grid-area: inc; } .board > .map-card { grid-area: map; } .board > .now-right { grid-area: up; display: grid; gap: 20px; min-width: 0; }
  .now-right > .card { margin: 0; }
  .now-right > .services-card { display: flex; flex-direction: column; max-height: 70vh; }
  .now-side .inc-card { display: flex; flex-direction: column; max-height: 70vh; }
  .board .inc-list, .board .services {  /* a soft edge where rows go on out of sight, gone at either end */
    flex: 0 1 auto; min-height: 0; overflow-y: auto;
    background: linear-gradient(var(--surface) 40%, transparent) top / 100% 16px no-repeat local, linear-gradient(transparent, var(--surface) 60%) bottom / 100% 16px no-repeat local,
      radial-gradient(farthest-side at 50% 0, var(--line-2), transparent) top / 100% 6px no-repeat, radial-gradient(farthest-side at 50% 100%, var(--line-2), transparent) bottom / 100% 6px no-repeat;
  }
}
.inc-card { container: inc / inline-size; }
.hero-stats dd a { color: inherit; } .hero-stats dd a:hover { text-decoration: none; opacity: .85; }

/* Now's left column: today's calls and how callers felt, over the open incidents */
.now-side { display: grid; gap: 20px; min-width: 0; }
.now-side > .card { margin: 0; }
.tiles.now-tiles { --cols: 2; margin: 0 16px 12px; }
.now-tiles > div { padding: 10px 14px 11px; }
.now-tiles dd { font-size: 22px; }
.hours { display: block; width: calc(100% - 32px); height: 44px; margin: 0 16px; }
.hours rect { fill: var(--info); } .hours rect.none { fill: var(--line); } .hours rect.later { fill: var(--line); opacity: .45; }
.hours-axis { display: flex; justify-content: space-between; margin: 4px 16px 14px; font-size: 11px; color: var(--text-3); }
.hours-axis span { flex: 1; } .hours-axis span:last-child { flex: 0; }
.mood-card { --pos: var(--good); --neu: var(--off); --neg: var(--crit); }
.mood-today { padding: 0 16px; }
.mood-bar { display: block; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); }
.mood-card .positive { background: var(--pos); fill: var(--pos); } .mood-card .neutral { background: var(--neu); fill: var(--neu); } .mood-card .negative { background: var(--neg); fill: var(--neg); }
.mood-key { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mood-key a { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; padding: 6px 8px; border-radius: 8px; color: var(--text-2); font-size: 12.5px; }
.mood-key a:hover { background: var(--hover); text-decoration: none; }
.mood-key b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; } .mood-key small { color: var(--text-3); }
.mood-card .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; align-self: center; }
.mood-of { font-size: 12px; margin: 6px 0 0; }
.mood-days { display: flex; gap: 8px; padding: 14px 16px 14px; }
.mood-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mood-col { display: block; width: 100%; max-width: 26px; height: 48px; border-radius: 4px; overflow: hidden; background: var(--line); }
.mood-day small { font-size: 11px; color: var(--text-3); }
.mood-unhappy { border-top: 1px solid var(--line); }
.mood-unhappy li { display: flex; align-items: center; gap: 8px; }
.mood-unhappy .i { width: 14px; height: 14px; vertical-align: -2px; }
.head-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; margin-left: 8px; border-radius: 999px; background: var(--off-soft); color: var(--text-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: 2px; }
.head-tools { display: inline-flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; justify-content: flex-end; }
.head-tools .more { margin-left: 6px; }
.sev-count { font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--off-soft); color: var(--text-2); font-variant-numeric: tabular-nums; }
.sev-count:hover { text-decoration: none; filter: brightness(.97); }
.sev-count.P1 { background: var(--crit-soft); color: var(--crit); } .sev-count.P2 { background: var(--warn-soft); color: var(--warn); }
.inc-card .card-head.row { align-items: center; }
.inc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.inc { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--line-2); transition: background .12s; }
.inc:last-child { border-bottom: 0; }
.inc.sev-P1 { box-shadow: inset 3px 0 0 var(--crit); } .inc.sev-P2 { box-shadow: inset 3px 0 0 var(--warn); }
.inc:hover { background: var(--hover); }
.inc-main { min-width: 0; display: flex; flex-direction: column; }
.inc-main .cell-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-state { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.inc-state .tag { margin: 0; }
.inc.older .cell-title { color: var(--text-2); font-weight: 500; }
.inc-more { display: flex; align-items: center; gap: 6px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.inc-more .i { width: 14px; height: 14px; }
.notices { border-top: 1px solid var(--line); padding: 10px 20px 12px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.notices summary { cursor: pointer; color: var(--text-3); font-weight: 500; }
.notices summary:hover { color: var(--text); }
.notices ul { margin: 10px 0 2px; padding: 0; list-style: none; display: grid; gap: 8px; }
.columns.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1240px) { .columns.even { grid-template-columns: minmax(0, 1fr); } }
@container inc (max-width: 520px) {  /* a phone, or Now's left column: severity and state on a line above the title, which wraps */
  .inc-card .card-head { padding-left: 16px; padding-right: 16px; }
  .inc-card .card-head.row { flex-wrap: wrap; row-gap: 4px; }
  .inc { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "sev state" "main main"; gap: 6px; padding: 12px 16px; }
  .inc > .sev { grid-area: sev; }
  .inc-main { grid-area: main; }
  .inc-state { grid-area: state; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .inc-main .cell-title { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- Calls: one band of numbers, a list that scrolls under its own header ---------- */
.mood-filter .dot, .mood-cell .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 0; }
.mood-filter .positive, .mood-cell .positive { background: var(--good); } .mood-filter .neutral, .mood-cell .neutral { background: var(--off); }
.mood-filter .negative, .mood-cell .negative { background: var(--crit); }
@media (max-width: 1360px) { .calls-tiles, .calls-tiles.c7 { --cols: 4; } }
@media (max-width: 1000px) { .calls-tiles, .calls-tiles.c7 { --cols: 2; } }
.scroll.tall { max-height: min(74vh, 780px); overflow: auto; overscroll-behavior: contain; }
.scroll.tall thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--line); border-bottom: 0; }
.chart-keys { margin: 0; padding: 0 6px 10px; }
.chipset .dot.k-order { background: var(--good); } .chipset .dot.k-store { background: var(--series-2); }
.chipset .dot.k-none { background: var(--off); } .chipset .dot.k-failed { background: var(--crit); }
.calls-table td, .day-table td { padding-top: 9px; padding-bottom: 9px; }
.calls-table th, .calls-table td, .day-table th, .day-table td { padding-left: 11px; padding-right: 11px; }
.calls-table th:first-child, .calls-table td:first-child, .day-table th:first-child, .day-table td:first-child { padding-left: 20px; }
.calls-table th:last-child, .calls-table td:last-child, .day-table th:last-child, .day-table td:last-child { padding-right: 20px; }
.day-table svg.bar { width: 44px; }
.calls-table td.outcome { min-width: 150px; }
.calls-table .cell-title { font-weight: 500; font-variant-numeric: tabular-nums; }
.calls-filter { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.day-card { margin-top: 20px; }
.day-card .card-head { border-bottom: 1px solid var(--line); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--good); vertical-align: 1px; animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- Changes ---------- */
.changes-table .col-title { min-width: 280px; }
.changes-table .cell-sub { overflow-wrap: anywhere; }
.tag.kind { background: var(--info-soft); color: var(--info); }
.segmented.kinds { flex-wrap: nowrap; }
.list-note { padding: 10px 20px 12px; margin: 0; border-top: 1px solid var(--line); }

/* Ordering: each store as a card with a two-way switch for where its new calls go */
.card-head .grow { flex: 1 1 0; }
h2.section .head-n { vertical-align: 1px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 16px; margin-bottom: 20px; }
.store-card { margin: 0; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 3px 0 var(--tone), var(--shadow); }
.store-top { display: flex; align-items: center; gap: 12px; }
.store-top h3 { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.store-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); flex: none; }
.store-light { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.store-light span { color: var(--text-2); font-size: 13.5px; }
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.route-opt { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--text-3); font-weight: 500; font-size: 14px; }
.route-opt .i { width: 17px; height: 17px; }
.route-opt.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.route-opt.on .i:last-child { color: var(--good); }
.route-opt.next { outline: 1.5px dashed var(--warn); outline-offset: -2px; color: var(--warn); }
.route-note { margin: 0; line-height: 1.6; }
.store-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.store-form label { flex: 1 1 220px; }
.store-form button { display: inline-flex; align-items: center; gap: 8px; }
.store-form button .i { width: 16px; height: 16px; }
/* Ordering: what Voice AI tells a store's callers for now, under the store's switch */
.caller-notices { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.caller-notices h4 { margin: 0; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--text-2); }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.notice.paused { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice-icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.notice.paused .notice-icon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice-icon .i { width: 16px; height: 16px; }
.notice-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notice form { flex: none; }
.notice-none { margin: 0; }
.caller-notices .small { font-size: 12.5px; }
.notice-post summary { cursor: pointer; width: max-content; color: var(--brand-ink); font-weight: 600; font-size: 13.5px; }
.notice-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; align-items: end; }
.notice-form p, .notice-form button { grid-column: 1 / -1; }
.notice-form p { margin: 0; }
.notice-form button { justify-self: start; }
.route-to { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.route-to .i { width: 15px; height: 15px; color: var(--text-3); }
.waiting-card tr.late td:first-child { box-shadow: inset 3px 0 0 var(--crit); }
.row-actions.end { justify-content: flex-end; margin: 0; }
.pushes-card .card-head .tag { margin-left: 8px; }
.phone-only { display: none; }
@media (max-width: 560px) {  /* a phone: End now goes under its notice; a push or an ended notice gets the width, with the rest under it */
  .phone-only { display: inline; }
  .notice { flex-wrap: wrap; }
  .notice form { flex-basis: 100%; padding-left: 42px; }
  .pushes-card table, .pushes-card tbody, .ended-card table, .ended-card tbody { display: block; }
  .pushes-card thead, .pushes-card td:nth-child(2), .ended-card thead { display: none; }  /* the store: every push names it */
  .pushes-card tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .ended-card tbody tr { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .pushes-card td, .pushes-card td:first-child, .pushes-card td:last-child, .ended-card td, .ended-card td:first-child, .ended-card td:last-child { display: block; padding: 0; border: 0; min-width: 0; font-size: 12.5px; color: var(--text-2); }
  .pushes-card td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; font-size: inherit; color: inherit; }
  .pushes-card td:first-child .cell-sub { display: none; }
  .ended-card td { white-space: normal; }
  .ended-card td.cell-title { font-size: inherit; color: var(--text); }
  .ended-card td .cell-sub { display: inline; }
}

/* Reviews */
.star-sm { font-size: 18px; color: var(--warn); margin-left: 3px; vertical-align: 3px; }
.stars { letter-spacing: 1px; color: var(--line-2); font-size: 14px; }
.stars b { color: var(--warn); font-weight: 400; }
.stars.low b { color: var(--crit); }
.reviews-table tr.needs-look td:first-child { box-shadow: inset 3px 0 0 var(--crit); }
.reviews-table td.said { color: var(--text); max-width: 420px; }
.seen-form { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.seen-form input { padding: 5px 10px; font-size: 13px; min-width: 180px; }
.seen { display: inline-flex; gap: 6px; align-items: flex-start; color: var(--text-2); font-size: 13px; white-space: normal; max-width: 260px; }
.seen > .i { width: 15px; height: 15px; color: var(--good); margin-top: 2px; }
.upload-card { margin-top: 20px; }
.upload-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 0 20px 16px; align-items: start; }
.upload-steps { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; font-size: 13.5px; }
.upload-form { display: flex; flex-direction: column; gap: 12px; }
.upload-form button { align-self: flex-start; }
.upload-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12.5px; }
.upload-note .i { width: 15px; height: 15px; }
@media (max-width: 860px) { .upload-body { grid-template-columns: 1fr; } }
input[type="file"] { padding: 6px; }
input[type="file"]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; margin-right: 10px; padding: 5px 14px; border-radius: 999px; border: 0; background: var(--brand-soft); color: var(--brand-ink); cursor: pointer; }

/* An agent's watch over a page: Relay on Telephony, Penny on Costs */
.agent-watch { margin-bottom: 16px; }
.agent-watch.warn { box-shadow: inset 3px 0 0 var(--warn), var(--shadow); }
.watch-top { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px 12px; }
.watch-top .agent-face { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
.watch-main { flex: 1; min-width: 0; }
.watch-main h2 { margin: 0 0 4px; }
.watch-line { margin: 0; font-size: 13px; }
.watch-when { font-size: 12.5px; padding-top: 2px; }
.agent-watch .finding-next { padding-left: 70px; }
.agent-watch ul.plain { list-style: none; margin: 0; padding: 0 20px 14px 70px; display: grid; gap: 6px; }
.agent-watch .finding-head { padding-left: 70px; font-weight: 500; }
.card > p.pad { margin: 0; padding: 0 20px 16px; }
.card-foot { margin: 0; padding: 0 20px 16px; font-size: 12.5px; }
.grid.two > .wide { grid-column: 1 / -1; }

/* Credentials: a filter bar over the groups */
[data-row].out { display: none; }
.toolbar-card { margin-bottom: 16px; }
.toolbar-card .toolbar { border-bottom: 0; }
[data-group][hidden] { display: none; }

/* Costs */
.costs-table tr.test-row td { background: var(--surface-2); }
.foot-note.with-icon { display: flex; gap: 8px; align-items: flex-start; }
.foot-note.with-icon .i { width: 15px; height: 15px; margin-top: 2px; }

/* Admin: accounts */
.users-table td { padding-left: 10px; padding-right: 10px; vertical-align: middle; }
.users-table td:first-child { padding-left: 20px; min-width: 220px; }
.users-table select { max-width: 170px; padding: 6px 28px 6px 10px; font-size: 13.5px; }
.users-table input.short { width: 120px; font-size: 13.5px; }
.users-table tr.inactive .cell-title { color: var(--text-3); text-decoration: line-through; }
.new-account { margin-top: 20px; }

/* Admin: audit log */
.toolbar .chain { display: inline-flex; align-items: center; gap: 5px; }
.toolbar .chain .i { width: 13px; height: 13px; }
.audit-table td.target { overflow-wrap: anywhere; min-width: 140px; }
.audit-table td.detail { min-width: 220px; }
.kv { display: inline-block; margin: 1px 10px 1px 0; font-size: 12.5px; color: var(--text-2); }
.kv b { font-weight: 600; color: var(--text-3); text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; margin-right: 3px; }
.list-card > .card-foot { padding-top: 12px; border-top: 1px solid var(--line); }

/* Incident: a repeated reminder page is one line with a count, and the actions stay in view */
.step-body .again { display: inline-block; max-width: 100%; margin-left: 4px; padding: 0 8px; border-radius: 10px; background: var(--off-soft); color: var(--text-2); font-size: 12px; font-weight: 500; }
@media (min-width: 1001px) { .side-sticky { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }

/* Call: the waterfall sits clear of its caption, and the cards under it keep their distance */
#waterfall { margin-top: 14px; }
main > .call-grid { margin-top: 20px; }

/* Profile: who you are on one side, your clock on the other */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.who-top { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.who-top h2 { margin: 0; font-size: 19px; } .who-top p { margin: 2px 0 0; }
.avatar.big { width: 56px; height: 56px; font-size: 22px; box-shadow: 0 6px 18px rgba(233, 80, 77, .25); }
.who-card .facts { gap: 12px 22px; }
.who-card .foot-note, .profile-grid .foot-note { margin: 18px 0 0; }
.tz-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.tz-form label { flex: 1 1 260px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }

/* Call assessments */
.assessed { padding: 16px 20px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.toolbar + .assessed { border-top: 0; }
.assessed:target { background: var(--brand-soft); }
.assessed > header { display: flex; align-items: flex-start; gap: 14px; }
.assessed > header .score { font-size: 20px; line-height: 1.3; min-width: 34px; }
.assessed-head { flex: 1 1 0; min-width: 0; }
.assessed-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.assessed-head .muted { font-size: 12.5px; }
.gap-list { list-style: none; margin: 10px 0 0; padding: 0 0 0 48px; display: grid; gap: 6px; }
.gap-list li { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: baseline; }
.gap-list .tag { justify-self: start; }
.gap-list .fixed span:last-child { color: var(--text-3); }
.assessed details { margin: 10px 0 0 48px; }
.assessed summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--brand-ink); width: fit-content; }
.assessed-facts { margin: 12px 0; }
.more-gaps { border-top: 1px solid var(--line); }
.more-gaps summary { cursor: pointer; padding: 12px 20px; font-size: 13px; font-weight: 500; color: var(--brand-ink); }
.gap-table td { vertical-align: top; }
.gap-table td:nth-child(2) { min-width: 200px; }
.gap-table td:nth-child(3) { min-width: 260px; }
.upload-form .check { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .gap-table, .gap-table tbody, .gap-table td { display: block; }
  .gap-table thead { display: none; }
  .gap-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .gap-table td { padding: 0; border: 0; }
  .gap-table td:nth-child(2), .gap-table td:nth-child(3) { grid-column: 1 / -1; min-width: 0; }
  .gap-table td:nth-child(4) { grid-row: 1; grid-column: 2; }
  .gap-table td:nth-child(4)::before { content: "Calls "; color: var(--text-3); }
  .assessed-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) { .gap-list { padding-left: 0; } .assessed details { margin-left: 0; } .assessed > header { flex-wrap: wrap; } }

/* ---------- Insights: a store over a week or a month ---------- */
.grid.two.insights { align-items: start; }
.insight-tiles dd small.of { display: inline; font-size: 15px; font-weight: 500; color: var(--text-3); }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; } .delta.good { color: var(--good); } .delta.bad { color: var(--crit); } .delta.flat { color: var(--text-3); }
.insights .card-head .muted { font-size: 13px; }
.day-bars { display: block; width: calc(100% - 40px); height: 140px; margin: 4px 20px 0; }
.day-bars .calls, .k-dot.calls { fill: var(--info); background: var(--info); } .day-bars .orders, .k-dot.orders { fill: var(--good); background: var(--good); }
.day-axis { display: flex; margin: 4px 20px 0; font-size: 11.5px; color: var(--text-3); }
.day-axis span { flex: 1; text-align: center; min-width: 0; white-space: nowrap; overflow: visible; }
.day-axis.month span { text-align: left; }
.pad-keys { padding: 8px 20px 16px; margin: 0; }
.k-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.heat { border-collapse: separate; border-spacing: 2px; margin: 0 16px 16px; width: calc(100% - 32px); table-layout: fixed; }
.heat th { font-size: 11px; font-weight: 500; color: var(--text-3); padding: 0 0 4px; text-align: left; white-space: nowrap; }
.heat tbody th { width: 40px; padding: 0 6px 0 0; }
.heat td { height: 20px; padding: 0; border-radius: 3px; background: var(--line); }
.heat td.lvl1 { background: color-mix(in srgb, var(--info) 22%, var(--surface)); } .heat td.lvl2 { background: color-mix(in srgb, var(--info) 45%, var(--surface)); }
.heat td.lvl3 { background: color-mix(in srgb, var(--info) 70%, var(--surface)); } .heat td.lvl4 { background: var(--info); }
.reason-rows li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 40px 64px; gap: 12px; padding: 9px 20px; }
.reason-rows .num-bar { display: flex; align-items: center; gap: 8px; } .reason-rows .num-bar .bar { flex: 1; height: 6px; }
.reason-rows b { font-variant-numeric: tabular-nums; min-width: 24px; text-align: right; }
.reason-pct, .reason-was { font-size: 12.5px; text-align: right; color: var(--text-3); }
.insights .mood-key > li > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; padding: 6px 8px; color: var(--text-2); font-size: 12.5px; }
.insights .mood-today { padding-bottom: 4px; }
.mood-days.month { gap: 3px; }
.svc-ups .rows-end.warn { color: var(--warn); font-weight: 600; }
@media (max-width: 760px) { .insights .wide { grid-column: auto; } .reason-rows li { grid-template-columns: minmax(0, 1fr) 90px 36px; } .reason-was { display: none; } .heat { margin: 0 8px 12px; } }
.users-table .row-actions { flex-wrap: nowrap; margin: 0; } .users-table .row-actions button { white-space: nowrap; }

/* Email reports: links that look like the buttons beside them, and the pick-lists of sections and people */
a.button, a.quiet.small { display: inline-block; font-weight: 600; border-radius: 999px; text-decoration: none; white-space: nowrap; }
a.button { padding: 9px 20px; background: var(--grad-btn); color: #fff; box-shadow: 0 2px 8px rgba(233, 80, 77, .25); }
a.quiet.small { padding: 5px 14px; font-size: 13px; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.report-fields { display: flex; flex-direction: column; gap: 18px; }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 14px; margin: 0; min-width: 0; }
.pick legend { font-weight: 600; padding: 0 6px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; }
label.tick { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; font-weight: 500; color: var(--text); }
label.tick input { margin-top: 3px; flex: none; }
.pick .extra { margin-top: 12px; }
.form-actions { display: flex; gap: 14px; align-items: center; }
.reports-table td { vertical-align: top; }
.reports-table .tag { margin-bottom: 3px; }
.reports-table tr.inactive .cell-title { color: var(--text-3); }

/* The module the navigation belongs to, under the Steward logo */
.nav-module { margin: 14px 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 860px) { .nav-module { margin: 6px 12px 4px; } }
