/* NexGlow Admin — Apple's Operate grammar in NexGlow green.
   One family (the system face), a neutral sidebar layer, grouped panels on a
   soft ground, segmented controls and switches, Swift Charts-style data.
   Light by default (an office or shop floor in daylight), dark when the
   system asks for it or the user picks it in the sidebar. */

/* SF on Apple devices; everywhere else Inter (SIL OFL, admin/inter-OFL.txt),
   self-hosted from the admin origin, so Windows and Android get the same
   Apple-like face instead of Segoe UI or Roboto. */
@font-face {
  font-family: "Inter";
  src: url("/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  --tint: #00a859;          /* NexGlow green: actions, selection, data */
  --tint-press: #008f4c;
  --tint-ink: #006a38;      /* green text: 6.7:1 on white, ≥5:1 on the green-tinted fills */
  --tint-fill: rgba(0, 168, 89, .12);
  --tint-soft: rgba(0, 168, 89, .18);
  /* fills that carry white text: a deeper green so the text passes 4.5:1 */
  --btn: #00874a;
  --btn-press: #007a41;

  --bg: #f5f5f7;
  --side: #ececf0;
  --surface: #ffffff;
  --raised: #ffffff;
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .07);
  --line: rgba(60, 60, 67, .12);
  --line-soft: rgba(60, 60, 67, .08);
  --label: #1d1d1f;
  --label-2: #636366;       /* secondary text and placeholders, 5.6:1 on white */
  --label-3: #8e8e93;       /* only for non-essential marks, never body text */
  --grid: rgba(60, 60, 67, .1);

  /* capsule text is darkened until it passes 4.5:1 on its own tinted fill */
  --blue: #005bb8; --blue-fill: rgba(0, 113, 227, .12);
  --indigo: #5856d6; --indigo-fill: rgba(88, 86, 214, .12);
  --orange: #b25000; --orange-fill: rgba(255, 149, 0, .16);
  --green: #006a38; --green-fill: rgba(0, 168, 89, .14);
  --gray: #636366; --gray-fill: rgba(118, 118, 128, .14);
  --red: #d70015; --red-fill: rgba(255, 59, 48, .12);

  --shadow-pop: 0 10px 30px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);

  --side-w: 248px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --tint: #18b26b;
  --tint-press: #22c77a;
  --tint-ink: #4cd98d;
  --tint-fill: rgba(48, 209, 120, .16);
  --tint-soft: rgba(48, 209, 120, .22);
  --bg: #000000;
  --side: #121214;
  --surface: #1c1c1e;
  --raised: #2c2c2e;
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .14);
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .07);
  --label: #f5f5f7;
  --label-2: #a1a1a6;
  --label-3: #6e6e73;
  --grid: rgba(255, 255, 255, .08);
  --blue: #4da3ff; --blue-fill: rgba(10, 132, 255, .2);
  --indigo: #8e8cff; --indigo-fill: rgba(94, 92, 230, .24);
  --orange: #ffb340; --orange-fill: rgba(255, 159, 10, .2);
  --green: #4cd98d; --green-fill: rgba(48, 209, 120, .18);
  --gray: #a1a1a6; --gray-fill: rgba(142, 142, 147, .2);
  --red: #ff6961; --red-fill: rgba(255, 69, 58, .2);
  --shadow-pop: 0 12px 34px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .1);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tint: #18b26b; --tint-press: #22c77a; --tint-ink: #4cd98d;
    --tint-fill: rgba(48, 209, 120, .16); --tint-soft: rgba(48, 209, 120, .22);
    --bg: #000000; --side: #121214; --surface: #1c1c1e; --raised: #2c2c2e;
    --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .14);
    --line: rgba(255, 255, 255, .1); --line-soft: rgba(255, 255, 255, .07);
    --label: #f5f5f7; --label-2: #a1a1a6; --label-3: #6e6e73; --grid: rgba(255, 255, 255, .08);
    --blue: #4da3ff; --blue-fill: rgba(10, 132, 255, .2);
    --indigo: #8e8cff; --indigo-fill: rgba(94, 92, 230, .24);
    --orange: #ffb340; --orange-fill: rgba(255, 159, 10, .2);
    --green: #4cd98d; --green-fill: rgba(48, 209, 120, .18);
    --gray: #a1a1a6; --gray-fill: rgba(142, 142, 147, .2);
    --red: #ff6961; --red-fill: rgba(255, 69, 58, .2);
    --shadow-pop: 0 12px 34px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .1);
    color-scheme: dark;
  }
}

/* ── base ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font: 14.5px/1.45 var(--font); color: var(--label); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
[hidden] { display: none !important; }
::selection { background: var(--tint-soft); color: var(--label); }
input, textarea { caret-color: var(--tint); }
a { color: var(--tint-ink); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
small { font-size: max(.82em, 12px); color: var(--label-2); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--tint-ink); outline-offset: 2px; border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: var(--fill) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--fill); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

.i { display: inline-flex; width: 18px; height: 18px; flex: none; }
.i svg { width: 100%; height: 100%; display: block; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 14px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease), opacity 160ms var(--ease);
}
.btn .i { width: 16px; height: 16px; margin-left: -2px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--btn-press); }
.btn-secondary { background: var(--fill); color: var(--label); }
.btn-secondary:hover:not(:disabled) { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn-danger { background: var(--red-fill); color: var(--red); }
.btn-danger:hover:not(:disabled) { background: #d70015; color: #fff; }
.btn-block { width: 100%; height: 40px; font-size: 15px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--label-2); cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.icon-btn:hover { background: var(--fill); color: var(--label); }
.icon-btn:active { transform: scale(.94); }
.link { font-size: 13.5px; font-weight: 500; color: var(--tint-ink); text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── form controls ─────────────────────────────────────────────────────── */
input, select, textarea {
  font: inherit; color: var(--label); width: 100%;
  padding: 8px 11px; border-radius: 9px; border: 1px solid transparent;
  background: var(--fill-2);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
input, select { height: 36px; }
textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--label-2); opacity: 1; }
input:hover, select:hover, textarea:hover { background: var(--fill); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tint); box-shadow: 0 0 0 3px var(--tint-fill); background: var(--surface); }
input:disabled, select:disabled { opacity: .5; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; }
.select-wrap::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.6px solid var(--label-2); border-bottom: 1.6px solid var(--label-2); transform: rotate(45deg); pointer-events: none;
}
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label); }
.field > span:first-child { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.field small { font-weight: 400; font-size: 12px; }

/* the iOS switch */
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none;
  width: 42px; height: 26px; padding: 0; margin: 0; border: 0; border-radius: 999px;
  background: var(--fill); cursor: pointer; transition: background-color 200ms var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .04);
  transition: transform 220ms var(--ease-sheet);
}
.switch:checked { background: var(--tint); }
.switch:checked::after { transform: translateX(16px); }
.switch:hover { background: var(--fill); }
.switch:checked:hover { background: var(--tint-press); }
.switch:focus { box-shadow: 0 0 0 3px var(--tint-fill); border-color: transparent; }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }

/* segmented control */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 9px; background: var(--fill); flex: none; }
.seg button {
  border: 0; background: transparent; color: var(--label); cursor: pointer;
  font: 500 13px/1 var(--font); padding: 7px 13px; border-radius: 7px; white-space: nowrap;
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
}
.seg button:hover:not([aria-pressed="true"]) { color: var(--label); background: var(--fill-2); }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #636366; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: #636366; box-shadow: none; } }
.seg-sm button { padding: 5px 10px; font-size: 12.5px; }
.seg .i { width: 15px; height: 15px; }

/* ── sign in ───────────────────────────────────────────────────────────── */
.login { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px 16px; }
.login-card {
  width: min(380px, 100%); display: grid; gap: 14px; padding: 32px 28px 26px;
  background: var(--surface); border-radius: 14px; border: 1px solid var(--line-soft);
}
.login-logo { width: 132px; height: auto; margin: 0 auto 6px; }
.login-card h1 { font-size: 21px; font-weight: 700; letter-spacing: -.018em; text-align: center; }
.login-sub { margin: -6px 0 6px; text-align: center; color: var(--label-2); font-size: 13.5px; }
.code-input { letter-spacing: .4em; font-variant-numeric: tabular-nums; text-align: center; font-size: 17px; font-weight: 600; }
.code-input::placeholder { letter-spacing: .4em; }
.login-foot { margin: 0; color: var(--label-2); font-size: 12.5px; text-align: center; }
.error { margin: 0; min-height: 1.35em; color: var(--red); font-size: 13.5px; }

/* the logo: real artwork, white in dark mode (same as the website) */
.brand-logo { display: block; height: auto; }
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { filter: brightness(0) invert(1); } }

/* ── app shell ─────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100svh; }
.sidebar {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column;
  padding: 18px 12px 14px; background: var(--side); border-right: 1px solid var(--line-soft);
}
.brand { display: block; padding: 4px 10px 18px; }
.brand .brand-logo { width: 118px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px;
  color: var(--label); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.side-nav a .i { color: var(--label-2); transition: color 160ms var(--ease); }
.side-nav a:hover { background: var(--fill-2); }
.side-nav a.active { background: var(--tint-fill); color: var(--tint-ink); font-weight: 600; }
.side-nav a.active .i { color: var(--tint-ink); }
.badge-count {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--fill); color: var(--label-2);
}
.side-nav a.active .badge-count { background: var(--btn); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 12px; }
.appearance { justify-self: start; margin-left: 6px; }
.appearance button { padding: 5px 9px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.me-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.me-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { font-size: 12px; text-transform: capitalize; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff; background: var(--btn);
}

.main { min-width: 0; padding: 30px clamp(18px, 3vw, 40px) 56px; }
.view { max-width: 1240px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.large-title { font-size: 30px; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; }
.page-sub { margin: 6px 0 0; color: var(--label-2); font-size: 14px; max-width: 70ch; }
.topbar, .tabbar { display: none; }

/* ── panels ────────────────────────────────────────────────────────────── */
.panel { background: var(--surface); border-radius: 14px; border: 1px solid var(--line-soft); padding: 18px 20px 20px; min-width: 0; margin-bottom: 16px; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.012em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.panel-head h2 small { font-size: 12.5px; }
.panel-note { font-size: 12.5px; color: var(--label-2); }
.head-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 > .panel { margin-bottom: 0; }
.grid2 + .panel, .panel + .grid2, .grid2 + .grid2 { margin-top: 16px; }

.ov-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.ov-grid > .panel { margin: 0; }
.ov-calls { grid-column: span 5; }
.ov-trend { grid-column: span 7; }
.ov-funnel { grid-column: span 5; }
.ov-sources { grid-column: span 7; }
.ov-traffic { grid-column: span 5; }
.ov-seo { grid-column: span 7; }

/* a number with its change, at the head of a chart */
.stat-line { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin: -4px 0 12px; }
.stat-line .big { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-line .what { color: var(--label-2); font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line-soft); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.metrics > div { background: var(--surface); padding: 10px 12px 12px; display: grid; gap: 2px; }
.metrics b { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.metrics span { font-size: 12.5px; color: var(--label-2); }
.metrics .delta { justify-self: start; margin-top: 2px; }

.delta {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 5px; border-radius: 999px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--gray-fill); color: var(--gray);
}
.delta .i { width: 13px; height: 13px; }
.delta.up { background: var(--green-fill); color: var(--green); }
.delta.down { background: var(--red-fill); color: var(--red); }

/* ── charts ────────────────────────────────────────────────────────────── */
.chart { position: relative; min-height: 120px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis { fill: var(--label-2); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--tint); opacity: .88; transition: opacity 160ms var(--ease); }
.chart.scrubbing .bar { opacity: .35; }
.chart.scrubbing .bar.on { opacity: 1; }
.chart .bar.zero { fill: var(--fill); opacity: 1; }
.chart .avg { stroke: var(--label-3); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .avg-label { fill: var(--label-2); font: 600 11px var(--font); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .line { fill: none; stroke: var(--tint); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .rule { stroke: var(--label-3); stroke-width: 1; }
.chart .dot { fill: var(--surface); stroke: var(--tint); stroke-width: 2.5; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 10px));
  padding: 6px 10px 7px; border-radius: 10px; background: var(--raised); box-shadow: var(--shadow-pop);
  white-space: nowrap; font-size: 12px; color: var(--label-2); line-height: 1.3;
}
.tip b { display: block; font-size: 14px; color: var(--label); font-variant-numeric: tabular-nums; }

/* horizontal bars: funnel, lead sources, top pages */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.hbars .lbl { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .val { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hbars .val small { display: inline-block; min-width: 4.8em; margin-left: 6px; font-weight: 500; text-align: left; }
.hbars .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.hbars .track, .hbars .fill { display: block; }
.hbars .fill { width: 100%; height: 100%; border-radius: 4px; background: var(--tint); transform-origin: left center; transition: transform 420ms var(--ease-sheet); }
.funnel .fill { background: var(--tint); }
.funnel li:nth-child(2) .fill { opacity: .78; }
.funnel li:nth-child(3) .fill { opacity: .62; }
.funnel li:nth-child(4) .fill { background: var(--btn); } /* won: the stage that matters reads strongest */
.funnel-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; font-size: 13px; color: var(--label-2); }
.funnel-foot b { font-size: 15px; color: var(--label); font-variant-numeric: tabular-nums; }

/* the people waiting for a call */
.calls { list-style: none; margin: 0; padding: 0; }
.calls li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.calls li:first-child { border-top: 0; padding-top: 2px; }
.calls .who { min-width: 0; cursor: pointer; }
.calls .who b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calls .who span { display: block; font-size: 12.5px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calls .call {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tint-fill); color: var(--tint-ink); text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.calls .call:hover { background: var(--btn); color: #fff; }
.calls .call:active { transform: scale(.94); }
.calls .call .i { width: 16px; height: 16px; }
.calls-more { margin: 10px 0 0; font-size: 13px; }
.initials {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 12.5px; font-weight: 600; color: #fff;
}

/* empty and unconnected states */
.empty-state { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 12px 18px; color: var(--label-2); }
.empty-state .i { width: 30px; height: 30px; color: var(--label-3); margin-bottom: 4px; }
.empty-state b { color: var(--label); font-size: 15px; font-weight: 600; }
.empty-state p { margin: 0; max-width: 46ch; font-size: 13px; line-height: 1.5; }
.empty-state details { max-width: 52ch; font-size: 12.5px; }
.empty-state summary { cursor: pointer; color: var(--tint-ink); font-weight: 500; list-style: none; margin-top: 4px; }
.empty-state summary::-webkit-details-marker { display: none; }
.empty-state details p { margin-top: 6px; font-size: 12.5px; }
.skeleton { display: grid; gap: 10px; padding: 4px 0; }
.skeleton i { display: block; height: 12px; border-radius: 999px; background: var(--fill-2); animation: pulse 1.2s ease-in-out infinite alternate; }
.skeleton i:nth-child(2) { width: 80%; } .skeleton i:nth-child(3) { width: 60%; }
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }
.notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--orange-fill); color: var(--orange); font-size: 13px; line-height: 1.5; }
.notice.bad { background: var(--red-fill); color: var(--red); }
.muted { color: var(--label-2); margin: 0; }
.hint { margin: 12px 0 0; color: var(--label-2); font-size: 12.5px; line-height: 1.5; }

/* status capsules (Apple system colours) */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--gray-fill); color: var(--gray); }
.chip.s-new { background: var(--blue-fill); color: var(--blue); }
.chip.s-contacted { background: var(--indigo-fill); color: var(--indigo); }
.chip.s-quoted { background: var(--orange-fill); color: var(--orange); }
.chip.s-won, .chip.published, .chip.yes { background: var(--green-fill); color: var(--green); }
.chip.s-lost { background: var(--gray-fill); color: var(--gray); }
.chip.s-spam, .chip.no { background: var(--red-fill); color: var(--red); }
.chip.draft { background: var(--orange-fill); color: var(--orange); }
.chip.tag-ai { background: var(--blue-fill); color: var(--blue); }

/* ── inquiries ─────────────────────────────────────────────────────────── */
.status-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.status-bar button {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--label); cursor: pointer;
  font: 500 13px/1 var(--font); transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.status-bar button b { font-variant-numeric: tabular-nums; font-weight: 600; }
.status-bar button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); }
.status-bar button[data-s="new"] .dot { background: var(--blue); }
.status-bar button[data-s="contacted"] .dot { background: var(--indigo); }
.status-bar button[data-s="quoted"] .dot { background: var(--orange); }
.status-bar button[data-s="won"] .dot { background: var(--green); }
.status-bar button:hover { background: var(--fill-2); }
.status-bar button[aria-pressed="true"] { border-color: var(--tint); background: var(--tint-fill); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 320px; display: block; }
.search .i { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--label-2); pointer-events: none; }
.search input { padding-left: 34px; }
.filters .select-wrap { flex: 0 0 200px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--label-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 120ms var(--ease); }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--fill-2); }
.table tbody tr[aria-current="true"], .table tbody tr[aria-current="true"]:hover { background: var(--tint-fill); }
.table .t-name b { font-weight: 600; display: block; }
.table .t-sub { display: block; font-size: 12.5px; color: var(--label-2); }
.table .t-when { white-space: nowrap; color: var(--label-2); font-variant-numeric: tabular-nums; }
.table .t-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td.empty-cell { text-align: center; color: var(--label-2); padding: 34px 14px; }
.pager { display: flex; justify-content: center; gap: 10px; padding: 16px 0 0; }
.pager .i { width: 15px; height: 15px; }

.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini th { text-align: left; font-size: 12px; font-weight: 600; color: var(--label-2); padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.mini tbody tr:last-child td { border-bottom: 0; }
.mini .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini .path { overflow-wrap: anywhere; }
.mini tr.qrow { cursor: pointer; }
.mini tr.qrow:hover { background: var(--fill-2); }
.mini tr.off { opacity: .5; }
.mini h3 { font-size: 13px; }
.subhead { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.move { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.move .i { width: 13px; height: 13px; }
.move.up { color: var(--green); } .move.down { color: var(--red); } .move.flat, .move.new { color: var(--label-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.scores > div { padding: 10px 12px; border-radius: 12px; background: var(--fill-2); display: grid; gap: 2px; }
.scores b { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.scores span { font-size: 12.5px; color: var(--label-2); }
.good { color: var(--green); } .avg { color: var(--orange); } .poor { color: var(--red); }

/* ── projects ──────────────────────────────────────────────────────────── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.proj-card {
  display: grid; grid-template-rows: auto 1fr; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-soft); color: inherit; text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.proj-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.proj-card .cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; color: var(--label-3); } /* overflow: a tall photo must not stretch the card */
.proj-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card .cover .i { width: 34px; height: 34px; }
.proj-card .meta { padding: 12px 14px 14px; display: grid; gap: 4px; }
.proj-card .meta b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.proj-card .meta span { font-size: 12.5px; color: var(--label-2); overflow-wrap: anywhere; }
.proj-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }

/* ── reels: portrait stills in website order ───────────────────────────── */
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
@media (max-width: 760px) { .reel-grid { gap: 12px; } }
.reel-card { position: relative; display: grid; grid-template-rows: 1fr auto; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.reel-open { display: grid; align-content: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.reel-open:focus-visible { outline-offset: -2px; border-radius: 14px 14px 0 0; }
.reel-poster { position: relative; display: grid; place-items: center; aspect-ratio: 9 / 16; overflow: hidden; background: var(--fill-2); color: var(--label-3); }
.reel-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.reel-open:hover .reel-poster img { transform: scale(1.03); }
.reel-poster .i { width: 34px; height: 34px; }
/* not playing on the website: the still steps back */
.reel-card.is-off .reel-poster img { opacity: .5; filter: grayscale(.6); }
.reel-num {
  position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--btn); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.reel-meta { display: grid; gap: 2px; padding: 10px 12px 0; min-width: 0; }
.reel-meta b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.reel-meta span { min-height: 1.4em; font-size: 12.5px; color: var(--label-2); overflow-wrap: anywhere; }
.reel-foot { display: flex; align-items: center; padding: 8px 12px 12px; }
/* same box as the still, so the arrows sit on its bottom corners; clicks
   elsewhere fall through to the still (it opens the editor) */
.reel-acts {
  position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 9 / 16; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 8px;
  background: linear-gradient(transparent 80%, rgba(0, 0, 0, .4));
}
.reel-acts button {
  pointer-events: auto; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #1d1d1f; transition: transform 120ms var(--ease), opacity 160ms var(--ease);
}
.reel-acts button:active:not(:disabled) { transform: scale(.92); }
.reel-acts button:disabled { opacity: 0; pointer-events: none; }
.reel-acts .i { width: 16px; height: 16px; }
.reel-video { clear: both; margin-bottom: 12px; }
.reel-video:empty { display: none; }
.reel-video video { display: block; width: min(240px, 100%); aspect-ratio: 9 / 16; border-radius: 12px; background: #000; object-fit: contain; }
.reel-video-note { margin: 0; font-size: 13px; color: var(--label-2); }
.reel-start { clear: both; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-bottom: 12px; }
.reel-start .field { width: 150px; }
.reel-start-note { flex-basis: 100%; }
.drawer-sub .link { display: inline-flex; align-items: center; gap: 4px; }
.drawer-sub .link .i { width: 14px; height: 14px; }
.progress-note { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--tint-ink); }
.progress-note:empty { display: none; }

/* ── inspectors (drawers) ──────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(460px, 100vw);
  display: flex; flex-direction: column; background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(0, 0, 0, .12);
  transition: transform 340ms var(--ease-sheet), opacity 240ms var(--ease);
}
@starting-style { .drawer { transform: translateX(28px); opacity: 0; } }
.drawer.wide { width: min(680px, 100vw); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 22px; }
.drawer-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.018em; overflow-wrap: anywhere; }
/* focus lands on the inspector's title for screen readers and the Tab order;
   it is a heading, not a field, so it draws no ring */
#d-name:focus { outline: none; }
.drawer-sub { margin: 4px 0 0; font-size: 13px; color: var(--label-2); overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px 28px; overscroll-behavior: contain; }
.drawer h3 { margin: 20px 0 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.quick-actions { display: flex; gap: 8px; padding: 0 22px 14px; flex-wrap: wrap; }
.quick-actions a {
  flex: 1 1 0; min-width: 88px; display: grid; justify-items: center; gap: 4px; padding: 10px 8px;
  border-radius: 12px; background: var(--fill-2); color: var(--tint-ink); text-decoration: none; font-size: 12.5px; font-weight: 600;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.quick-actions a:hover { background: var(--tint-fill); }
.quick-actions a:active { transform: scale(.97); }
.quick-actions .i { width: 20px; height: 20px; }
.group { margin: 0; border-radius: 12px; background: var(--fill-2); }
.edit { display: grid; margin-bottom: 14px; }
.row-field { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; font-size: 14px; font-weight: 500; }
.row-field + .row-field { border-top: 1px solid var(--line-soft); }
.row-field select { background: var(--surface); }
.fields { display: grid; grid-template-columns: 110px 1fr; }
.fields dt, .fields dd { padding: 10px 14px; border-top: 1px solid var(--line-soft); margin: 0; font-size: 14px; }
.fields dt { color: var(--label-2); padding-right: 0; }
.fields dd { overflow-wrap: anywhere; }
.fields dt:first-of-type, .fields dt:first-of-type + dd { border-top: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.notes { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.notes li { padding: 10px 12px; border-radius: 12px; background: var(--fill-2); font-size: 14px; overflow-wrap: anywhere; }
.notes small { display: block; margin-bottom: 2px; font-size: 12px; }
.note-form { display: grid; gap: 8px; }
.note-form .btn { justify-self: end; }
.check-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.check-form .wide { grid-column: 1 / -1; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.history li { padding: 10px 12px; border-radius: 12px; background: var(--fill-2); font-size: 13.5px; overflow-wrap: anywhere; display: grid; gap: 3px; }
.history small { font-size: 12px; }
.inline-form { display: flex; gap: 8px; margin-bottom: 14px; }

.proj-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proj-form .wide { grid-column: 1 / -1; }
.proj-form fieldset { border: 0; border-radius: 12px; background: var(--fill-2); padding: 12px 14px 14px; margin: 0; min-width: 0; }
.proj-form legend { float: left; width: 100%; padding: 0 0 10px; font-size: 13px; font-weight: 600; }
.proj-form legend small { margin-left: 6px; }
.scope-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.scope-opt { position: relative; }
.scope-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scope-opt span {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.scope-opt input:checked + span { background: var(--tint-fill); border-color: var(--tint); color: var(--tint-ink); font-weight: 600; }
.scope-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--tint-fill); }
.photo-grid { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-grid:empty { display: none; }
.tile { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--fill); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cover-tag { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--btn); color: #fff; font-size: 12px; font-weight: 600; }
.tile .acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.tile .acts button {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #1d1d1f; transition: transform 120ms var(--ease), opacity 160ms var(--ease);
}
.tile .acts button:active { transform: scale(.92); }
.tile .acts button:disabled { opacity: .35; cursor: default; }
.tile .acts .i { width: 15px; height: 15px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:has(input:disabled) { opacity: .45; pointer-events: none; }
.actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* Save stays in reach on short screens */
.proj-form .actions { position: sticky; bottom: -28px; z-index: 1; margin: 0 -22px -28px; padding: 12px 22px 16px; background: var(--surface); border-top: 1px solid var(--line-soft); }

/* wide screens: the inquiry inspector makes room for itself instead of
   covering Status and Owner, the columns it edits */
.main { transition: margin-right 340ms var(--ease-sheet); }
@media (min-width: 1200px) {
  .app.inspecting .main { margin-right: 460px; }
  .app.inspecting .inq-table th:nth-child(3), .app.inspecting .inq-table td:nth-child(3),
  .app.inspecting .inq-table th:nth-child(4), .app.inspecting .inq-table td:nth-child(4) { display: none; }
  .app.inspecting #drawer { box-shadow: none; }
  /* keep the list's header on the same lines while the pane is open, so the
     table does not jump under the pointer */
  .app.inspecting .status-bar { gap: 6px; }
  .app.inspecting .status-bar button { padding: 0 10px 0 8px; gap: 6px; }
  .app.inspecting .search { flex-basis: 220px; }
  .app.inspecting .filters .select-wrap { flex-basis: 160px; }
}

/* ── phones and small tablets ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ov-calls, .ov-trend, .ov-funnel, .ov-sources { grid-column: span 12; }
}
@media (max-width: 900px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .ov-traffic, .ov-seo { grid-column: span 12; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px;
    padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 16px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-soft);
  }
  .topbar-brand .brand-logo { width: 78px; }
  .topbar-title { flex: 1; text-align: center; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity 200ms var(--ease); }
  .topbar.show-title .topbar-title { opacity: 1; }
  .icon-btn { width: 44px; height: 44px; }
  .calls .call { width: 44px; height: 44px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
    padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line-soft);
  }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 4px 2px; color: var(--label-2); text-decoration: none; font-size: 11px; font-weight: 500; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--tint-ink); }
  .main { padding: 18px 16px calc(env(safe-area-inset-bottom) + 92px); }
  .large-title { font-size: 28px; }
  .drawer { width: 100vw; border-left: 0; }
  .drawer.wide { width: 100vw; }
}
@media (max-width: 760px) {
  .page-head { align-items: stretch; }
  .page-head .seg { align-self: flex-start; }
  .filters .select-wrap { flex: 1 1 160px; }
  /* the inquiry table becomes a list of cells */
  .inq-table thead { display: none; }
  .inq-table, .inq-table tbody { display: block; }
  .inq-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
  .inq-table tbody tr:last-child { border-bottom: 0; }
  .inq-table td { display: block; padding: 0; border: 0; }
  .inq-table td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .inq-table td:nth-child(6) { grid-column: 2; grid-row: 1; justify-self: end; }
  .inq-table td:nth-child(5) { grid-column: 1; grid-row: 2; color: var(--label-2); font-size: 13px; }
  .inq-table td:nth-child(1) { grid-column: 2; grid-row: 2; justify-self: end; font-size: 12.5px; }
  .inq-table td:nth-child(3), .inq-table td:nth-child(4), .inq-table td:nth-child(7) { display: none; }
  .inq-table td.empty-cell { grid-column: 1 / -1; }
  .audit-table th:nth-child(4), .audit-table td:nth-child(4) { display: none; }
  .proj-form { grid-template-columns: minmax(0, 1fr); }
  .check-form { grid-template-columns: minmax(0, 1fr); }
  .scores { grid-template-columns: minmax(0, 1fr); }
  .inline-form { flex-direction: column; }
  .panel:not(.panel-flush) { padding: 16px 16px 18px; }
}

/* ── comfort settings ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .drawer { transition: opacity 160ms ease !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .tabbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(60, 60, 67, .4); --line-soft: rgba(60, 60, 67, .3); --label-2: #3a3a3c; }
  .panel, .proj-card, .reel-card, .login-card { border-color: var(--line); }
}
@media print {
  .sidebar, .topbar, .tabbar, .drawer, .btn, .seg { display: none !important; }
  .app { display: block; }
}

/* ── small pieces ──────────────────────────────────────────────────────── */
.chart .g0 { stop-color: var(--tint); stop-opacity: .26; }
.chart .g1 { stop-color: var(--tint); stop-opacity: 0; }
.panel-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--label-2); }
.calls .who[role="link"]:focus-visible { outline-offset: 4px; }
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 50;
  max-width: min(520px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 14px;
  background: var(--raised); color: var(--label); box-shadow: var(--shadow-pop);
  font-size: 14px; font-weight: 500; line-height: 1.4;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 200ms var(--ease), transform 260ms var(--ease-sheet);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:not(.ok) { color: var(--red); }
@media (max-width: 860px) { .toast { bottom: calc(env(safe-area-inset-bottom) + 84px); } }

/* ── reviews ─────────────────────────────────────────────────────────────── */
.rv-google {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 18px; padding: 14px 16px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft);
}
.rv-google-text { display: grid; gap: 2px; flex: 1 1 260px; font-size: 13px; color: var(--label-2); }
.rv-google-text b { font-size: 14px; color: var(--label); }
.rv-google .field { width: 130px; }
.rv-google .error { flex-basis: 100%; margin: 0; }
.rv-google .error:empty { display: none; }
.rv-list { display: grid; gap: 10px; }
.rv-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft);
}
.rv-open {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 0 14px 14px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0;
}
.rv-open:focus-visible { outline-offset: -2px; border-radius: 14px; }
.rv-num {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--tint-fill); color: var(--tint-ink); font-size: 14px; font-weight: 700;
}
.rv-row.is-off .rv-num { background: var(--fill); color: var(--label-3); }
.rv-body { display: grid; gap: 4px; min-width: 0; }
.rv-top { display: flex; align-items: baseline; gap: 10px; }
.rv-stars { color: #f5a400; letter-spacing: 1px; font-size: 13px; }
.rv-month { font-size: 12px; color: var(--label-2); }
.rv-quote { font-size: 14px; line-height: 1.45; color: var(--label); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-by { font-size: 13px; font-weight: 600; }
.rv-about { font-size: 12px; color: var(--label-2); }
.rv-row.is-off .rv-quote, .rv-row.is-off .rv-by { color: var(--label-2); }
.rv-side { display: flex; align-items: center; gap: 4px; padding-right: 12px; }
.rv-side .chip { margin-right: 6px; }
.rv-side button {
  width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--label-2); cursor: pointer; transition: background-color 150ms var(--ease), transform 120ms var(--ease);
}
.rv-side button:hover:not(:disabled) { background: var(--fill); color: var(--label); }
.rv-side button:active:not(:disabled) { transform: scale(.92); }
.rv-side button:disabled { opacity: .3; cursor: default; }
.rv-side .i { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .rv-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rv-side { padding: 0 12px 12px 60px; }
}
