/* InspectionBooking console — shared styles.
   Palette, type and spacing follow docs/design/_tokens.txt and the approved
   .dc.html designs. Light only, deliberately: the designs express one theme. */

:root {
  /* Palette 3a: Mantine v7 gray + blue, shades used verbatim (docs/design/_tokens.txt).
     Blue means "yours" (controls, links, what this office set); "From ISN" is neutral gray. */
  --ground: #f8f9fa;        /* gray.0 */
  --surface: #FFFFFF;
  --sunk: #f1f3f5;          /* gray.1 */
  --line: #dee2e6;          /* gray.3 */
  --line-strong: #ced4da;   /* gray.4 */

  --ink: #212529;           /* gray.9 */
  --ink-soft: #495057;      /* gray.7 */
  --muted: #495057;         /* gray.7 — gray.6 fails 4.5:1 on white */

  --accent: #1971c2;        /* blue.8 */
  --accent-soft: #e7f5ff;   /* blue.0 */
  --accent-line: #d0ebff;   /* blue.1 */
  --accent-ink: #1864ab;    /* blue.9 */

  --isn: #495057;           /* gray.7 */
  --isn-soft: #f1f3f5;      /* gray.1 */
  --isn-line: #dee2e6;      /* gray.3 */

  --warn: #9A6614;
  --warn-soft: #FBF0DC;
  --warn-line: #E8D3A8;

  --critical: #A33A2A;
  --critical-soft: #F6E7E3;

  --sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad: 28px;
}

* { box-sizing: border-box; }

/* Flex and grid display beats the UA's [hidden] rule, so say it explicitly. */
[hidden] { display: none !important; }

html { background: var(--ground); }

body {
  margin: 0;
  /* The call detail's two panes have to reach the bottom of the window, so the
     page is a column flexbox and <main> takes the slack. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
main > .page { flex: 1 1 auto; }

a { color: var(--accent); }
a:hover { color: var(--accent-ink); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top .12s ease;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
  min-height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wordmark {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--critical);
  padding: 1px 6px;
  border-radius: 99px;
}

.company-name { font-size: 12.5px; color: var(--muted); }

.ck-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--isn);
  background: var(--isn-soft);
  padding: 3px 8px;
  border-radius: 5px;
}

.linkish {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  font-family: inherit;
}
.linkish:hover { color: var(--accent-ink); text-decoration: underline; }
.linkish.isn { color: var(--isn); }

/* ---------- page scaffolding ---------- */

.page { padding: 24px var(--pad) 28px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head.top { align-items: flex-start; }

h1.title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.subtitle { font-size: 14px; color: var(--ink-soft); max-width: 76ch; margin: 6px 0 0; }
.subtitle.quiet { font-size: 13.5px; color: var(--muted); }

h2.section {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  margin: 0;
}
h2.section.sm { font-size: 16px; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack { display: flex; flex-direction: column; }
.stack-6 { gap: 6px; }
.stack-9 { gap: 9px; }
.stack-14 { gap: 14px; }
.stack-16 { gap: 16px; }
.stack-18 { gap: 18px; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.card-pad { padding: 19px 21px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: var(--sunk);
  border-bottom: 1px solid var(--line);
}
.card-head.plain { background: var(--surface); padding: 13px 19px; }
.card-note { font-size: 12px; color: var(--muted); }

.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.card-row:last-child { border-bottom: 0; }
.card-row.top { align-items: flex-start; }
.card-row.warn { background: var(--warn-soft); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--sunk); color: var(--ink); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #FFFFFF; }
.btn-lg { font-size: 14px; padding: 12px 18px; border-radius: 9px; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
}
.btn-toggle {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
}
.btn-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

/* ---------- pills and chips ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--sunk);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill.ok { background: var(--accent-soft); color: var(--accent-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.critical { background: var(--critical-soft); color: var(--critical); }

.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.tag.voice { background: var(--accent-soft); color: var(--accent-ink); }
.tag.isn { background: var(--isn-soft); color: var(--isn); }
.tag.isn-on-clay { background: var(--surface); color: var(--isn); }

/* ---------- transcript ---------- */

.transcript { display: flex; flex-direction: column; gap: 13px; }

.turn { display: flex; gap: 12px; }
.turn-at {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  flex: none;
  width: 34px;
  padding-top: 3px;
}
.turn-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.turn-role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.turn-text { font-size: 14px; margin: 0; }
.turn-text.caller { color: var(--ink-soft); }

.toolchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--isn-soft);
  border: 1px solid var(--isn-line);
  max-width: 100%;
}
.toolchip .label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--isn);
  overflow-wrap: anywhere;
}
.toolchip.done { background: var(--accent-soft); border-color: var(--accent-line); }
.toolchip.done .label { color: var(--accent-ink); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
}
.notice svg { flex: none; margin-top: 1px; }
.notice-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.notice-detail { font-size: 13px; color: var(--ink-soft); }
.notice.info { background: var(--sunk); border-color: var(--line); }
.notice.clay { background: var(--isn-soft); border-color: var(--isn-line); }
.notice.critical { background: var(--critical-soft); border-color: #E7C9C2; }

/* ---------- key/value rows ---------- */

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.kv dt, .kv .k { font-size: 13px; color: var(--muted); }
.kv dd, .kv .v { font-size: 13px; font-weight: 500; text-align: right; margin: 0; }
.kv.total { padding-top: 9px; border-top: 1px solid var(--line); }
.kv.total .k { font-weight: 600; color: var(--ink); }
.kv.total .v { font-family: var(--mono); font-size: 14px; font-weight: 600; }

.checkline { display: flex; align-items: flex-start; gap: 9px; }
.checkline span { font-size: 13px; color: var(--ink-soft); }
.checkline svg { flex: none; margin-top: 2px; }

/* ---------- forms ---------- */

label { display: block; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

input[type="text"], input[type="password"], input[type="number"], textarea, select {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  width: 100%;
  line-height: 1.45;
}
textarea { resize: vertical; min-height: 76px; }
input.mono, select.mono { font-family: var(--mono); }
input[type="number"] { width: 66px; text-align: right; font-family: var(--mono); }
input:disabled, textarea:disabled, select:disabled {
  background: var(--sunk);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.prefixed {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.prefixed:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.prefixed .prefix {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0 10px 12px;
  white-space: nowrap;
}
.prefixed input {
  border: 0;
  border-radius: 0;
  padding: 10px 12px 10px 2px;
  font-family: var(--mono);
  font-size: 13px;
}
.prefixed input:focus-visible { outline: none; }

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  flex: none;
  cursor: pointer;
}
.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #FFFFFF;
  transition: left .12s ease;
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] .knob { left: 21px; }
.switch:disabled { cursor: not-allowed; opacity: .6; }

.switch-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.switch-state { font-size: 13.5px; color: var(--ink-soft); }

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row.from-isn { background: var(--sunk); }
.setting-row.top { align-items: start; }
.setting-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.setting-name > span:first-child { font-size: 14.5px; font-weight: 600; }
.setting-desc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.setting-control { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.setting-unit { font-size: 13px; color: var(--muted); width: 60px; text-align: left; }

.hourchip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
}
.hourchip.off { border-style: dashed; background: var(--sunk); color: var(--muted); }

.service-toggle-list { display: flex; flex-direction: column; gap: 14px; }
.service-toggle-group { display: flex; flex-direction: column; gap: 2px; }
.service-toggle-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.service-toggle-row {
  /* Same split as .setting-row's own grid, so every switch on the page — this one
     included — lines up in the same right-hand column. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.service-toggle-group > .service-toggle-row:last-child { border-bottom: 0; }
.service-toggle-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
/* ---------- settings (layout 1a: tabs, From ISN panel, save bar) ---------- */
.settings-page { padding-bottom: 110px; }
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.answering-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
}
.answering-card .setting-name > span:first-child { font-size: 15px; }
.answering-number { font-size: 12.5px; color: var(--ink-soft); }

.settings-tabs {
  display: flex;
  gap: 26px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.settings-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 0 11px;
  cursor: pointer;
}
.settings-tab:hover { color: var(--ink); }
.settings-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.settings-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.tab-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); }
.settings-panel { margin-top: -2px; }

.isn-panel {
  position: sticky;
  top: 16px;
  margin-top: 47px;
  display: flex;
  flex-direction: column;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.isn-panel-head { display: flex; flex-direction: column; gap: 6px; padding: 15px 17px 13px; }
.isn-panel-head .tag { align-self: flex-start; }
.isn-panel-rows { display: flex; flex-direction: column; background: var(--surface); border-top: 1px solid var(--line); }
.isn-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
}
.isn-panel-row:last-child { border-bottom: 0; }
.isn-panel-row.top { flex-direction: column; align-items: flex-start; gap: 8px; }
.isn-panel-label { font-size: 13px; color: var(--ink-soft); }
.isn-panel-value { font-size: 12.5px; color: var(--ink-soft); text-align: right; }
.isn-panel-value.strong { font-size: 13px; font-weight: 500; color: var(--ink); }
.isn-panel-link {
  padding: 11px 17px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.isn-panel-link:hover { color: var(--accent-ink); }

.save-bar {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  min-height: 50px;
  padding: 8px 8px 8px 18px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(33, 37, 41, .55);
  transition: transform .22s ease, opacity .22s ease;
}
.save-bar.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.save-bar-label { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.save-bar-actions { display: flex; gap: 6px; }
.save-bar-discard { color: #FFFFFF; background: transparent; border-color: var(--ink-soft); }
.save-bar-discard:hover { background: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: reduce) { .save-bar { transition: none; } }

@media (max-width: 1000px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .isn-panel { position: static; margin-top: 0; }
}
@media (max-width: 560px) {
  .answering-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .save-bar { left: 16px; right: 16px; transform: translateY(140%); justify-content: space-between; }
  .save-bar.open { transform: translateY(0); }
}

/* Main / Add-on on a service row: the same tag, as a button when it can be changed. */
.tag-button { border: 0; cursor: pointer; font-family: inherit; }
.tag-button:hover { filter: brightness(0.96); }
.tag-button:focus-visible, .star-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The one main service offered first. */
.star-button {
  border: 0;
  background: none;
  padding: 0 2px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.star-button.on { color: var(--warn); }
.star-button:disabled { cursor: default; }

/* ---------- states ---------- */

.state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.state-title { font-size: 14.5px; font-weight: 600; }
.state-detail { font-size: 13.5px; color: var(--ink-soft); max-width: 74ch; }
.state .btn { margin-top: 8px; }
.state.bare { background: none; border: 0; padding: 18px 0; }
.state.critical { border-left: 3px solid var(--critical); }

.inline-error {
  font-size: 13px;
  color: var(--critical);
  background: var(--critical-soft);
  padding: 9px 12px;
  border-radius: 8px;
}

/* ---------- utility ---------- */

.scroll-x { overflow-x: auto; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dotsep { color: var(--muted); }
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.meta.lg { font-size: 13px; gap: 14px; }

/* ---------- call detail ---------- */

.callhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px var(--pad) 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.callhead h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  flex: 1 1 auto;
  align-items: stretch;
}
.split > .main-col { padding: 22px var(--pad); border-right: 1px solid var(--line); min-width: 0; }
.split > .side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  min-width: 0;
}

.pane-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

/* ---------- dashboard ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat-value { font-family: var(--mono); font-size: 27px; font-weight: 500; }
.stat-value.critical { color: var(--critical); }
.stat-note { font-size: 12.5px; color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}

.bar {
  display: flex;
  height: 13px;
  border-radius: 99px;
  overflow: hidden;
  gap: 2px;
  background: var(--sunk);
}
.legend-row { display: flex; align-items: center; gap: 10px; }
.legend-swatch { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.legend-label { font-size: 13.5px; flex-grow: 1; }
.legend-value { font-family: var(--mono); font-size: 13px; font-weight: 500; }

.calls-table { width: 100%; border-collapse: collapse; }
.calls-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 19px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.calls-table td {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 12px 19px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.calls-table tr:last-child td { border-bottom: 0; }
.calls-table tr:hover td { background: var(--ground); }
.calls-table .name { font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.calls-table .num { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.calls-table .isn-num { color: var(--isn); text-align: right; }

/* ---------- needs review ---------- */

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
}
.review-card.critical { border-left-color: var(--critical); }
.review-card.warn { border-left-color: var(--warn); }
.review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.review-name { font-size: 15px; font-weight: 600; }
.review-summary { font-size: 13.5px; color: var(--ink-soft); max-width: 82ch; margin: 0; }
.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 20px;
  background: var(--sunk);
  border-top: 1px solid var(--line);
}
.review-foot p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- sign in ---------- */

.signin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
}
.signin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  width: 1000px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(33, 37, 41, .05), 0 20px 48px -28px rgba(33, 37, 41, .28);
}
.signin-form { display: flex; flex-direction: column; gap: 22px; padding: 38px 40px; }
.signin-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 32px;
  background: var(--sunk);
  border-left: 1px solid var(--line);
}
.step { display: flex; gap: 13px; }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--surface);
  border: 1px solid var(--accent-line);
  width: 24px; height: 24px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step-title { font-size: 13.5px; font-weight: 600; }
.step-detail { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr) 340px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .split, .two-col, .signin-card, .pane-split { grid-template-columns: minmax(0, 1fr); }
  .split > .main-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .signin-aside { border-left: 0; border-top: 1px solid var(--line); }
  .signin-form { padding: 28px 20px; }
  .signin-aside { padding: 28px 20px; }

  :root { --pad: 16px; }
  .setting-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .setting-control { justify-content: flex-start; }
  .service-toggle-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .service-toggle-row .switch-row { justify-content: flex-start; }
  .topbar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .topbar-left { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 620px) {
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .split > .side-col { padding: 20px 16px; }
  .review-top, .review-foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Settings › Greeting: the locked AI-and-recording opening, read-only above the office's words. */
.greeting-opening {
  display: flex; gap: 6px; align-items: baseline;
  margin: 0; font-size: 14px; color: var(--ink-soft);
}
.greeting-opening svg { flex: none; position: relative; top: 2px; color: var(--muted); }
