/* Layout: fixed left rail + scrolling work area; dense tables, one review card at a time. */
/* Awaken Creative brand: black and white only. Black ground, white accent, Bebas Neue display + Montserrat text, square corners.
   Layout: fixed left rail + scrolling work area; dense tables, one review card at a time. */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --ink: #e0e0e0;
  --muted: #9a9a9a;
  --line: #2b2b2b;
  --accent: #ffffff;
  --accent-ink: #000000;
  --accent-soft: rgba(255, 255, 255, .09);
  --good: #ffffff;
  --good-soft: transparent;
  --bad: #ffffff;
  --bad-soft: rgba(255, 255, 255, .06);
  --warn: #bdbdbd;
  --warn-soft: rgba(255, 255, 255, .04);
  /* chart shades: bad leads stand out in white, good leads sit back in grey */
  --c-good: #6b6b6b;
  --c-bad: #f2f2f2;
  --c-warn: #a8a8a8;
  --c-muted: #3a3a3a;
  --mute-soft: #232323;
  --focus: #ffffff;
  --shadow: 0 10px 40px rgba(0, 0, 0, .6);
  --r: 3px;
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Montserrat', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13.5px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: 40px; font-weight: 400; letter-spacing: .02em; line-height: 1; color: #fff; }
h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: .03em; line-height: 1.05; color: #fff; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; background: linear-gradient(90deg, #000 0 235px, var(--line) 235px 236px, var(--bg) 236px); }
.rail { background: #000; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand-mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.brand-mark img { width: 44px; height: 44px; object-fit: contain; }
.brand-mark span { font-family: var(--font-display); font-size: 18px; color: #fff; }
.brand-name { font-family: var(--font-display); font-size: 24px; letter-spacing: .05em; line-height: 1; color: #fff; }
.brand-name small { display: block; color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; border-left: 2px solid transparent; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--surface-2); color: #fff; border-left-color: var(--accent); }
.count { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0; min-width: 22px; padding: 1px 7px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); text-align: center; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 0 6px; }
.main { min-width: 0; padding-block: 24px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagehead p { margin-top: 4px; color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line); background: var(--warn-soft); color: var(--ink); padding: 10px 14px; border-radius: var(--r); }
.banner.error { background: var(--bad-soft); }
.banner.info { background: var(--accent-soft); }

/* ---------- controls ---------- */
button, .btn { font: inherit; font-family: var(--font-display); font-size: 17px; letter-spacing: .06em; font-weight: 400; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 13px; border-radius: var(--r); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1.3; }
button:hover, .btn:hover { border-color: var(--muted); }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.1); border-color: var(--accent); }
button.danger { color: var(--bad); }
button.ghost { background: transparent; border-color: transparent; }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 13px; }
label .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-select { width: auto; }
kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r); padding: 0 5px; color: var(--muted); }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stat { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: .02em; color: #fff; margin-top: 6px; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.stat.attention { box-shadow: inset 0 3px 0 var(--accent); }
.stat.attention .value { color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -18px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; border-top: 0; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.cell-main { font-weight: 500; }
.cell-sub { color: var(--muted); font-size: 12.5px; }
.empty { padding: 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ---------- grade pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font-weight: 600; letter-spacing: .02em; border-radius: var(--r); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-good { background: var(--good-soft); color: var(--good); }
.tone-bad { background: var(--bad-soft); color: var(--bad); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-muted, .tone-none { background: var(--mute-soft); color: var(--muted); }
.status { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.status.s-pending_review { color: var(--accent); font-weight: 500; }
.status.s-error { color: var(--bad); }
.demo-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); margin-left: 6px; vertical-align: 1px; }

/* ---------- charts ---------- */
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { fill: var(--muted); font: 11px var(--font-mono); }
.chart .grid { stroke: var(--line); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: var(--r); margin-right: 6px; vertical-align: -1px; background: var(--c); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { height: 10px; background: var(--mute-soft); border-radius: var(--r); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r); }

/* ---------- review ---------- */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 20px; align-items: start; }
.transcript { font-size: 14px; line-height: 1.65; white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; max-height: 460px; overflow: auto; }
.transcript mark { background: var(--accent-soft); color: #fff; border-bottom: 2px solid var(--accent); padding: 0 1px; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 500; }
.ai-call { border-left: 2px solid var(--accent); padding: 4px 0 4px 12px; display: flex; flex-direction: column; gap: 6px; }
.confidence { height: 6px; border-radius: var(--r); background: var(--mute-soft); overflow: hidden; }
.confidence i { display: block; height: 100%; background: var(--accent); }
.grade-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.grade-picker button { justify-content: flex-start; font-size: 13px; padding: 6px 9px; min-width: 0; }
.grade-picker .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.grade-picker .glabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grade-picker button.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.grade-picker kbd { margin-left: auto; }
.actions-col { display: flex; flex-direction: column; gap: 8px; }
.actions-col button { justify-content: center; }
.google-note { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: var(--r); padding: 8px 10px; }
.google-note code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); }

/* ---------- clients + settings ---------- */
.client-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.client-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.client-card .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.client-card .nums div { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.client-card .nums b { display: block; font-family: var(--font-display); font-size: 26px; color: #fff; font-weight: 400; text-transform: none; letter-spacing: 0; }
.sync-line { font-size: 12.5px; color: var(--muted); }
.sync-line.err { color: var(--bad); }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 500 13px var(--font-mono); color: var(--muted); }
.step.done .step-num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step-num { font-family: var(--font-display) !important; font-size: 17px !important; }
.step-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.copy-field { display: flex; gap: 6px; }
.copy-field code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 12.5px var(--font-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; }
.check.yes { color: var(--good); }
.check.no { color: var(--muted); }
.account-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); max-height: 320px; overflow: auto; }
.account-list label { flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-weight: 400; }
.account-list label:first-child { border-top: 0; }
.account-list input { width: auto; }

/* ---------- auth ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding-block: 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.auth-card { width: min(420px, 100%); background: #000; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.err-text { color: var(--bad); font-size: 13px; }

/* ---------- dialog + toast ---------- */
dialog { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); padding: 0; width: min(640px, calc(100% - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 80vh; overflow: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
#toast { font-weight: 600; position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); max-width: min(420px, calc(100% - 40px)); z-index: 50; font-size: 13.5px; }
#toast { background: #fff !important; color: #000 !important; }
#toast.error { background: var(--bad) !important; color: #fff !important; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-2, .review { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .rail-foot { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bar-row { grid-template-columns: 90px minmax(0, 1fr) 30px; }
}

/* Brand texture: faint vignette behind the work area, like the site's photo hero */
.main { background: radial-gradient(1200px 500px at 70% -10%, rgba(255, 255, 255, .04), transparent 60%); }
.auth { background: radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, .07), transparent 60%), var(--bg); }
.pagehead p { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

/* Grade pills in black and white: state is carried by shape, not color. */
.pill { border: 1px solid transparent; }
.pill.tone-bad { background: #fff; color: #000; }
.pill.tone-bad::before { background: #000; }
.pill.tone-good { background: transparent; color: #fff; border-color: #fff; }
.pill.tone-warn { background: transparent; color: #cfcfcf; border: 1px dashed #8a8a8a; }
.pill.tone-muted, .pill.tone-none { background: #1f1f1f; color: var(--muted); }
.demo-tag { background: transparent !important; color: var(--muted) !important; border: 1px solid #444; }
.banner { background: var(--surface-2) !important; border-color: #3a3a3a; }
.banner.error { border-color: #fff; }
#toast.error { background: #000 !important; color: #fff !important; border: 1px solid #fff; }
.err-text, .sync-line.err, .status.s-error { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 3px; }
.status.s-pending_review { color: #fff; }
button.danger { color: #fff; border-color: #555; }
button.primary:hover, .btn.primary:hover { filter: none; background: #d9d9d9; border-color: #d9d9d9; }
.count { background: #fff; color: #000; }
.step.done .step-num { background: #fff; border-color: #fff; color: #000; }

/* ---------- polish pass ---------- */
.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.panel { padding: 22px 24px; background: linear-gradient(180deg, #161616, #121212); border-color: #262626; }
.table-wrap { margin: 0 -24px; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td { padding-top: 11px; padding-bottom: 11px; }
tr.clickable:hover td { background: #1c1c1c; }
.pagehead h1 { font-size: 52px; }

/* nav icons */
.nav-l { display: inline-flex; align-items: center; gap: 12px; }
.ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; flex: none; }
.nav a.active .ico, .nav a:hover .ico { opacity: 1; }

/* overview hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 28px 28px 24px; border: 1px solid #262626; border-radius: var(--r);
  background: radial-gradient(600px 220px at 85% 0%, rgba(255,255,255,.07), transparent 70%), #0f0f0f; }
.hero-num { font-family: var(--font-display); font-size: clamp(64px, 9vw, 112px); line-height: .9; color: #fff; letter-spacing: .01em; margin-top: 10px; }
.hero-sub { color: var(--muted); margin-top: 8px; font-size: 13px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.spark { width: 260px; max-width: 100%; height: auto; }
.stats { border-color: #262626; background: #111; }
.stat .value { font-size: 40px; }

/* avatars */
.who-cell { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: #000; font-family: var(--font-display); font-size: 16px; letter-spacing: .04em; }
.avatar.anon { background: #222; color: var(--muted); }

/* conversations as chat */
.conv { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #222; }
.conv:last-of-type { border-bottom: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; padding-right: 4px; }
.bubble { max-width: 78%; align-self: flex-start; background: #1f1f1f; border: 1px solid #2a2a2a; padding: 10px 14px; border-radius: 14px 14px 14px 3px; line-height: 1.55; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: #fff; color: #000; border-color: #fff; border-radius: 14px 14px 3px 14px; }
.bubble .who { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin-bottom: 3px; }
.bubble mark { background: transparent; color: inherit; border-bottom: 2px solid currentColor; font-weight: 600; }
.bubble.me mark { color: #000; }
audio { filter: grayscale(1); }

/* sign in */
.auth { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; max-width: 1040px; margin: 0 auto; place-items: center stretch; }
.auth-hero { display: flex; flex-direction: column; gap: 18px; }
.auth-big { font-family: var(--font-display); font-size: clamp(64px, 10vw, 128px); line-height: .88; color: #fff; }
.auth-hero p { color: var(--muted); max-width: 40ch; }
.auth-card { box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* motion */
#toast:not([hidden]) { animation: toast-in .22s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #toast:not([hidden]) { animation: none; } }

@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-side { align-items: flex-start; }
  .pagehead h1 { font-size: 40px; }
  .bubble { max-width: 92%; }
}
.auth { min-height: 100vh; align-items: center; }
.grade-picker button { padding: 6px 8px; }
.grade-picker .glabel { font-size: 15px; letter-spacing: .04em; }
.grade-picker kbd { flex: none; }

.parker-intro { display: flex; gap: 14px; align-items: center; }
.parker-intro img { border-radius: 50%; border: 1px solid #333; flex: none; }
.setup-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.setup-steps b { color: #fff; font-weight: 600; }
#slack-manifest { max-height: 140px; overflow: auto; white-space: pre; }

.money-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #262626; border: 1px solid #262626; border-radius: var(--r); overflow: hidden; }
.money { background: #0f0f0f; padding: 24px 26px; }
.money.net { background: radial-gradient(500px 200px at 80% 0%, rgba(255,255,255,.08), transparent 70%), #121212; }
.money-num { font-family: var(--font-display); font-size: clamp(44px, 6vw, 76px); line-height: .95; color: #fff; margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) { .money-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reports ---------- */
.rp-stats { margin-top: 4px; }
.rp-hero .hero-side .eyebrow { text-align: right; line-height: 1.8; }
.rp-h { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.rp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.rp-nums div { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rp-nums b { display: block; font-family: var(--font-display); font-size: 30px; color: #fff; font-weight: 400; letter-spacing: 0; text-transform: none; }
.chg { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chg.up { color: #fff; }
.chg.down { color: #8a8a8a; }

/* ---------- business profile ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: 10px 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.tab.active { color: #fff; border-bottom-color: #fff; }
.tab .count { background: #fff; color: #000; border-radius: 99px; font-size: 11px; padding: 0 7px; }
.rv-list { display: flex; flex-direction: column; gap: 12px; }
.rv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rv-head { display: flex; gap: 10px; align-items: center; }
.rv-text { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-reply { border-left: 2px solid #fff; padding: 4px 0 4px 14px; display: flex; flex-direction: column; gap: 6px; }
.rv-reply p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-form { display: flex; flex-direction: column; gap: 8px; }
.rv-form textarea { width: 100%; }
.stars { color: #fff; letter-spacing: 1px; }
.stars-off { color: #3a3a3a; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.seg label { margin: 0; cursor: pointer; position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; color: #000; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.gbp-posts { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.gbp-posts input[type=file] { max-width: 100%; }
.gbp-posts .panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.post-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r); }
.post-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
@media (max-width: 900px) { .gbp-posts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .rp-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rp-hero .hero-side .eyebrow { text-align: left; } }
dialog.wide-dialog { width: min(780px, calc(100% - 32px)); }
#em-body { font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; min-height: 320px; }
.dialog-foot { flex-wrap: wrap; }
@media (max-width: 520px) { dialog.wide-dialog .dialog-foot > button { flex: 1 1 calc(50% - 8px); } }

/* client email preview: shown on white, the way the client will see it */
.em-preview { display: flex; flex-direction: column; gap: 12px; }
.em-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.em-meta span { display: inline-block; min-width: 86px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.em-meta i { color: #fff; font-style: normal; }
.em-sheet { background: #fff; color: #111; border-radius: var(--r); padding: 24px 28px; max-width: 720px; overflow-wrap: anywhere; }
.em-sheet a { color: #1a56c4; }
@media (max-width: 520px) { .em-sheet { padding: 18px 16px; } }

/* ---------- teach parker ---------- */
.teach-head { display: flex; gap: 16px; align-items: center; }
.teach-head img { border-radius: 50%; background: #fff; flex: none; }
.teach-grid { align-items: start; }
.teach-grid .panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.teach-grid textarea { width: 100%; }
.mem-add { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.mem-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mem-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.mem-list .row { gap: 4px; }
.mem-list .row button { padding: 2px 8px; font-size: 12px; }
.mem-text { color: #fff; overflow-wrap: anywhere; }
.chat-panel { position: sticky; top: 16px; }
.tchat { display: flex; flex-direction: column; gap: 10px; min-height: 280px; max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.tchat .msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; line-height: 1.55; overflow-wrap: anywhere; font-size: 13.5px; }
.tchat .msg.me { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 4px; }
.tchat .msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tchat .msg.bot a { color: #fff; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 900px) { .chat-panel { position: static; } .mem-add { grid-template-columns: minmax(0, 1fr); } }

/* synced call playback */
.chat.synced .seg { cursor: pointer; border-radius: 3px; transition: background .15s, color .15s; }
.chat.synced .seg:hover { text-decoration: underline; text-underline-offset: 3px; }
.chat.synced .seg.on { background: #fff; color: #000; box-shadow: 0 0 0 2px #fff; }
.chat.synced .seg:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* lead page: missed call + booked job */
.missed-box, .booked-box { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.missed-box { border-color: #fff; }
.small-seg { margin-bottom: 0; }
.small-seg span { padding: 6px 12px; font-size: 12.5px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #fff; color: #fff; border-radius: 99px; padding: 0 7px; vertical-align: 1px; }
.tag.solid { background: #fff; color: #000; }

/* ---------- today ---------- */
.today-grid { align-items: start; }
.today-grid .stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.today-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.today-list li:first-child { border-top: 0; padding-top: 4px; }
.today-list li > div { min-width: 0; }
.today-list a.cell-main { color: #fff; text-decoration: none; }
.today-list a.cell-main:hover { text-decoration: underline; }
.today-list .who-cell { min-width: 0; }
.today-list button, .today-list .btn { flex: none; }
.rv-mini { align-items: flex-start !important; }
.rv-snip { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.today-stats .stat.attention .value { color: #fff; }
.empty img { margin: 0 auto 8px; display: block; }
.rate { display: grid; grid-template-columns: minmax(60px, 1fr) 44px; gap: 8px; align-items: center; min-width: 120px; }
.rate .mono { text-align: right; }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px 24px; }
.trend { min-width: 0; }
.trend-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.trend-head .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.trend-head b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: #fff; }
.trend svg { width: 100%; height: auto; display: block; }
.trend .axis { fill: var(--muted); font: 10px var(--font-body); }
.tb { fill: #4a4a4a; cursor: pointer; }
.tb:hover { fill: #8a8a8a; }
.tb.partial { fill: #333; }
.tb.cur { fill: #fff; }
.booked-line { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }

/* ---------- phone: bottom tab bar ---------- */
.tabbar { display: none; }
dialog.sheet .more-list { display: flex; flex-direction: column; }
dialog.sheet .more-list a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
dialog.sheet .more-list a.active { color: #fff; }
dialog.sheet .more-list .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .rail { position: sticky; top: 0; z-index: 15; flex-wrap: nowrap; padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; background: #000; }
  .rail .nav { display: none; }
  .main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #000; border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: var(--r);
    background: none; color: var(--muted); text-decoration: none; font: 600 10px/1.1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
  .tabbar .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .active { color: #fff; }
  .tabbar .active::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 2px; background: #fff; }
  .tabbar .count { position: absolute; top: 2px; left: 55%; background: #fff; color: #000; border-radius: 99px; font-size: 10px; padding: 0 5px; line-height: 16px; letter-spacing: 0; }
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.pagehead p.sync-note { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
