/* Gravel app: client dashboard, admin and the website editor share this file.
   Same brand as gravel.site: Saddle brown on snow, Schibsted Grotesk + Geist + Geist Mono.
   Light only, on purpose (Theo, 6 Oct: "lighter and easier to look, clean, lean, simple").
   The one signature: the navigation sits on a real stone photo, and the selected item is a pane of glass on it
   (glass only ever sits on stone, as on the marketing site). Everything else is calm paper and hairlines. */

/* The three faces, served from here: no stylesheet to wait for from another address before the first paint. Latin
   subset, variable weight, from Google Fonts; SIL Open Font License 1.1. A new version of a font gets a new file name
   (the server lets browsers keep these for a year). The pages preload Geist and Schibsted Grotesk. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/geist-v5-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/geist-mono-v6-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(fonts/schibsted-grotesk-v7-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Going between the dashboard, the editor and sign-in is a new page each time: browsers that can (Safari 18.2+,
   Chrome 126+) keep the old page up until the new one has drawn, then cross-fade, instead of flashing white */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .22s; }
}
:root {
  --snow: #FAFAF8; --paper: #FFFFFF; --canvas: #F2EFEB;
  --stone-50: #F5F4F1; --stone-100: #EFEDE9; --stone-200: #E2DED8; --stone-300: #CFC9C1;
  --ink: #1C1612; --ink-2: #4A423C; --ink-3: #6E655D;
  --line: #E7E2DC; --line-2: #D8D1C9;
  --brown: #55331F; --brown-2: #6A4129; --brown-deep: #3E2516; --brown-900: #22150D;
  --brown-500: #8A5632; --brown-tint: #F3ECE6; --brown-tint-2: #EADCCF; --tan: #D7B08A;
  --good: #2F7A4F; --good-tint: #E6F1EA; --warn: #A65D0D; --warn-tint: #FCF1E1; --bad: #B3261E; --bad-tint: #FBEAE8;
  --info: #35597A; --info-tint: #E8EEF4; --star: #B98530;
  --display: "Schibsted Grotesk", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px; --r-sm: 10px; --r-xs: 8px;
  --sh-1: 0 1px 2px rgba(28, 22, 18, .05);
  --sh-2: 0 1px 2px rgba(28, 22, 18, .05), 0 12px 28px -18px rgba(28, 22, 18, .28);
  --sh-3: 0 2px 6px rgba(28, 22, 18, .08), 0 28px 60px -28px rgba(28, 22, 18, .45);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);       /* iOS's own curve for sheets and pushed screens */
  --rail: 236px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--snow); }
/* taps answer at once (no wait to see if it's a double-tap zoom); the pressed looks are under "touch" below */
a, button, input, select, textarea, label, summary, [role="button"] { touch-action: manipulation; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; display: block; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brown-500); outline-offset: 2px; border-radius: 6px; }

/* ---------- the stone rail (desktop) and tab bar (phone) ---------- */
.shell { min-height: 100vh; }
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 30; display: flex; flex-direction: column;
  padding: 18px 14px 16px; color: #F6EEE6; isolation: isolate; overflow: hidden;
  background: #2A1B12 url(img/rail-stone.webp) center / cover no-repeat;
}
.rail::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30, 18, 11, .62), rgba(30, 18, 11, .78) 45%, rgba(24, 14, 8, .9)); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: #FFF7EF; }
.brand svg { width: 30px; height: 30px; }
.brand b { font: 800 20px/1 var(--display); letter-spacing: -.03em; }
.brand small { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 240, 225, .62); margin-left: auto;
  border: 1px solid rgba(255, 240, 225, .25); padding: 4px 6px; border-radius: 6px; }
.nav { display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 12px;
  text-decoration: none; color: rgba(255, 244, 234, .80); font-weight: 500; font-size: 14.5px; transition: color .2s, background .2s; }
@media (hover: hover) { .nav a:hover { color: #FFF; background: rgba(255, 245, 235, .07); } }
.nav a .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font: 600 11.5px/1 var(--mono); background: var(--tan); color: var(--brown-900); }
/* the selected item: a pane of glass resting on the stone */
.nav a[aria-current="page"] { color: var(--brown-900); font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 252, 248, .90), rgba(250, 244, 237, .82));
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(60, 35, 20, .18), 0 1px 2px rgba(0, 0, 0, .25), 0 10px 22px -12px rgba(0, 0, 0, .7); }
.nav a[aria-current="page"] svg { color: var(--brown); }
.nav .sep { height: 1px; margin: 10px 8px; background: rgba(255, 240, 225, .14); }
.rail-foot { margin-top: auto; display: grid; gap: 10px; }
.biz { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 245, 235, .07);
  border: 1px solid rgba(255, 240, 225, .12); text-decoration: none; }
.biz .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 13px/1 var(--display);
  background: var(--tan); color: var(--brown-900); flex: none; }
.biz b { display: block; font-size: 13.5px; color: #FFF7EF; line-height: 1.25; }
.biz small { display: block; font-size: 12px; color: rgba(255, 240, 225, .66); }
.help { font-size: 12.5px; color: rgba(255, 240, 225, .7); padding: 0 8px; }
.help a { color: #FFF3E6; text-underline-offset: 3px; }
.signout { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: rgba(255, 240, 225, .72);
  font: 500 12.5px/1 var(--body); cursor: pointer; text-align: left; }
.signout svg { width: 16px; height: 16px; }
@media (hover: hover) { .signout:hover { background: rgba(255, 245, 235, .08); color: #FFF7EF; } }
/* an owner of more than one business switches here (on a phone: the menu in the top bar) */
.sites { display: grid; gap: 2px; }
.sites small { font-size: 11.5px; color: rgba(255, 240, 225, .55); padding: 0 8px 2px; }
.sites a { display: block; padding: 6px 8px; border-radius: 9px; font-size: 13px; color: rgba(255, 244, 234, .84); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .sites a:hover { background: rgba(255, 245, 235, .08); color: #FFF7EF; } }

.main { margin-left: var(--rail); min-height: 100vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px clamp(18px, 3vw, 40px) 64px; }
.proto { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 8px; height: 30px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brown-deep);
  background: var(--brown-tint); border-bottom: 1px solid var(--brown-tint-2); }
.proto a { text-underline-offset: 3px; }

.topbar { display: none; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .rail { display: none; }
  .main { margin-left: 0; padding-bottom: 84px; }
  /* on a phone the page scrolls inside the main column, never the document: Safari then has nothing to collapse its
     toolbar for, so the floating tab bar never moves (Safari carries fixed bars along with its toolbar and the
     home-indicator inset while the document scrolls) */
  html:has(body > .shell), body:has(> .shell) { height: 100%; overflow: hidden; }
  .shell .main { position: fixed; inset: 0; overflow-y: auto; overscroll-behavior-y: contain;
    padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wrap { padding-top: 18px; }
  .topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; position: sticky; top: 30px; z-index: 19;
    background: rgba(250, 250, 248, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .no-proto .topbar { top: 0; }
  .topbar .brand { padding: 0; color: var(--ink); }
  .topbar .brand b { font-size: 18px; }
  .topbar .brand svg { width: 26px; height: 26px; }
  .topbar .who { margin-left: auto; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
  .topbar .who .av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 12px/1 var(--display); background: var(--brown); color: #FFF5EC; }
  .topbar .site-pick { max-width: 52vw; height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--paper);
    color: var(--ink); font-size: 16px; text-overflow: ellipsis; }
  /* The floating tab bar: a stone capsule with the selected tab on a white bubble (tab-pill.js slides it from tab to
     tab). It is anchored by plain fixed positioning, nothing driven by script or by scrolling, and its gap to the bottom
     is max(10px, inset) rather than 10px + inset: 10px above Safari's toolbar, or just clear of the home indicator.
     When the inset switches on or off as Safari's toolbar collapses, the bar now moves 24px instead of jumping 34px
     (while the page itself scrolls, Safari still carries fixed bars along with its toolbar). The sides clear the notch
     in landscape, where the bar also stops growing and sits centred. */
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 30; height: 64px; padding: 6px;
    left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom));
    max-width: 520px; margin: 0 auto; border-radius: 32px; isolation: isolate;
    background: #2A1B12 url(img/band-stone.webp) center / cover; box-shadow: 0 18px 40px -18px rgba(20, 10, 4, .8);
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .tabbar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(30, 18, 11, .66); }
  /* touch: no grey flash, no long-press link preview or drag, no selection loupe, no double-tap zoom wait */
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 26px; text-decoration: none;
    color: rgba(255, 244, 234, .78); font: 500 10.5px/1 var(--body); position: relative;
    -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-drag: none; touch-action: manipulation; }
  .tabbar a svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
  .tabbar:not(.tp-drag) a:active svg { transform: scale(.88); transition-duration: .06s; }
  /* the selected tab: dark ink on the white bubble. tab-pill.js draws the bubble (.tp-pill) and inks the tab it's on or
     heading to (.tp-hot); until it runs, the selected tab draws the same bubble itself, so the hand-over is invisible */
  .tabbar:not(.tp-on) a[aria-current="page"], .tabbar a.tp-hot { color: var(--brown-900); font-weight: 550; }
  .tabbar a.tp-half { color: #A08A78; }      /* a label the bubble half covers mid-drag: reads on the white and on the stone */
  .tabbar:not(.tp-on) a[aria-current="page"], .tabbar > .tp-pill { background: #FFFDFA; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .8); }
  .tabbar a .dot { position: absolute; top: 7px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--tan); box-shadow: 0 0 0 2px #2A1B12; }
  /* the badge's cut-out ring takes the colour it sits on */
  .tabbar:not(.tp-on) a[aria-current="page"] .dot, .tabbar a.tp-hot .dot { box-shadow: 0 0 0 2px #FFFDFA; }
}
/* The phone tab bars' selection bubble (tab-pill.js; the editor's rail colours its own in editor.css): one plain pill
   behind the selected tab. It slides when the selection changes and follows a finger dragged along the bar; only its
   transform and opacity ever change. Up and down swipes stay the browser's, so a swipe on the bar can scroll the page. */
.tp-on { touch-action: pan-y; }
.tp-pill { position: absolute; left: 0; top: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.2, .8, .25, 1), opacity .15s ease-out; }
.tp-drag > .tp-pill { transition-duration: .1s, .15s; }       /* under a finger: a hair of smoothing, no lag */
.tp-pill.tp-still { transition: none; }                       /* appearing, or a new layout: no slide */
.tp-pill.tp-off { opacity: 0; }                               /* nothing selected (the editor, its sheet put away) */
@media (prefers-reduced-motion: reduce) { .tp-pill, .tp-drag > .tp-pill { transition: none; } }

/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 750; }
.ph p { color: var(--ink-2); margin-top: 6px; }
.ph .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.status .live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px;
  background: var(--good-tint); color: var(--good); font-weight: 600; font-size: 12.5px; }
.status .live svg { width: 14px; height: 14px; }
.status a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { --h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font-weight: 550; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .12s var(--ease); box-shadow: var(--sh-1); }
.btn.primary { background: var(--brown); border-color: var(--brown); color: #FFF7EF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(34, 21, 13, .3), 0 8px 18px -10px rgba(85, 51, 31, .7); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
@media (hover: hover) {
  .btn:hover { border-color: var(--stone-300); background: var(--stone-50); }
  .btn.primary:hover { background: var(--brown-2); border-color: var(--brown-2); }
  .btn.ghost:hover { background: var(--stone-100); }
}
.btn:active { transform: scale(.97); background: var(--stone-100); transition-duration: .06s; }
.btn.primary:active { background: var(--brown-deep); border-color: var(--brown-deep); }
.btn.danger { color: var(--bad); }
.btn.sm { --h: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { --h: 48px; padding: 0 20px; font-size: 15px; border-radius: 13px; }
.btn.icon { width: var(--h); padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
/* working on it: a spinner in place of the label, same width, so nothing around it moves (and no second tap) */
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy[disabled] { opacity: 1; }
.btn.busy > * { visibility: hidden; }
.btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(28, 22, 18, .18); border-top-color: var(--ink-2); animation: spin .7s linear infinite; }
.btn.primary.busy::after { border-color: rgba(255, 247, 239, .35); border-top-color: #FFF7EF; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 600 11.5px/1 var(--mono);
  background: rgba(255, 245, 235, .2); }
.linkish { background: none; border: 0; padding: 0; color: var(--brown-500); font-weight: 550; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards, tiles ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h2 { font-size: 16.5px; font-weight: 700; }
.card-h .more { margin-left: auto; font-size: 13px; color: var(--brown-500); font-weight: 550; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card-b { padding: 14px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.tile { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.tile .k { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.tile .k svg { width: 16px; height: 16px; color: var(--brown-500); }
.tile .v { font: 750 30px/1.05 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 6px; }
.tile .d { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.tile:has(.spark) .d { padding-right: 96px; }
@media (max-width: 560px) { .tile:has(.spark) .d { padding-right: 0; } }
.tile .d .up { color: var(--good); font-weight: 600; }
.tile .d .down { color: var(--bad); font-weight: 600; }
.tile .spark { position: absolute; right: 14px; bottom: 16px; width: 84px; height: 30px; }
@media (max-width: 560px) { .tile .spark { display: none; } }
.tile.locked { background: repeating-linear-gradient(135deg, var(--stone-50) 0 8px, #FFF 8px 16px); }
/* a tile's one-line meaning, behind its (i): a 44px target in the tile's corner, so the label keeps its width */
.tile.has-def .k { padding-right: 26px; }
.tile .tip { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; padding: 0; background: none; color: var(--ink-3); border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile .tip svg { width: 17px; height: 17px; color: currentColor; }
.tile .tip[aria-expanded="true"] { color: var(--brown-500); }
@media (hover: hover) { .tile .tip:hover { color: var(--brown-500); } }
.tile .tip:active { background: var(--stone-50); }
.tile .def { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.tile.has-def:has(.def:not([hidden])) .spark { display: none; }
.tile.locked .v { font-size: 15px; font-family: var(--body); font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
/* Home's tiles open into a chart (chart.js): the whole tile is the button and the chevron in its corner says so; the
   (i) stays above it. The open tile is edged in tan, and the chart opens under its row with a notch pointing at it */
.tile.has-chart { transition: border-color .15s, box-shadow .15s, transform .12s var(--ease); }
.tile.has-chart .d { padding-right: 22px; }
.tile .d .up, .tile .d .down { white-space: nowrap; }
.tile-go { position: absolute; inset: 0; z-index: 1; width: 100%; margin: 0; padding: 0; border: 0; background: none; border-radius: var(--r); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile-go:focus-visible { outline: 2px solid var(--brown-500); outline-offset: -2px; border-radius: var(--r); }
.tile-go > svg { position: absolute; right: 11px; bottom: 12px; width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease), color .15s; }
.tile.has-chart .tip { z-index: 2; }
.tile.has-chart:has(.tile-go:active) { transform: scale(.985); background: var(--stone-50); transition-duration: .06s; }
.tile.open { border-color: var(--tan); box-shadow: 0 0 0 1px var(--tan); }
.tile.open .tile-go > svg { transform: rotate(180deg); color: var(--brown-500); }
@media (hover: hover) { .tile.has-chart:hover { border-color: var(--line-2); box-shadow: var(--sh-2); } .tile.has-chart:hover .tile-go > svg { color: var(--brown-500); }
  .tile.open:hover { border-color: var(--tan); box-shadow: 0 0 0 1px var(--tan), var(--sh-2); } }
.tchart { grid-column: 1 / -1; position: relative; min-width: 0; padding: 12px 14px 8px 16px; scroll-margin: 12px 0 100px; }
@media (prefers-reduced-motion: no-preference) { .tchart { animation: tc-in .2s var(--ease); } }
@keyframes tc-in { from { opacity: 0; transform: translateY(-4px); } }
.tchart::before { content: ""; position: absolute; top: -7px; left: calc(var(--nx, 50%) - 6px); width: 12px; height: 12px; background: var(--paper);
  border: solid var(--tan); border-width: 1px 0 0 1px; border-top-left-radius: 3px; transform: rotate(45deg); }
.tc-h { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); }
.tc-h b { margin-left: 2px; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.tc-k { display: inline-block; width: 14px; height: 0; margin-right: 7px; vertical-align: middle; border-top: 2px solid var(--brown-500); border-radius: 1px; }
.tc-k.prev { border-top: 2px dotted #9A9189; }
.tc-plot { position: relative; height: 180px; touch-action: pan-y; border-radius: 8px; outline: 0; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tc-plot:focus-visible { box-shadow: 0 0 0 2px var(--brown-500); }
.tc-plot svg { display: block; overflow: visible; }
.tc-grid { stroke: var(--line); stroke-width: 1; }
.tc-y, .tc-x { font: 500 10.5px var(--mono); fill: var(--ink-3); }
.tc-cur { fill: none; stroke: var(--brown-500); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tc-prev { fill: none; stroke: #9A9189; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 5; }   /* grey, 3:1 on white */
.tc-end, .tc-dot { fill: var(--brown-500); stroke: var(--paper); stroke-width: 2; }
.tc-dot.prev { fill: #9A9189; }
.tc-hair { stroke: var(--line-2); stroke-width: 1; }
.tc-tip { position: absolute; top: 2px; left: 0; z-index: 3; display: grid; gap: 3px; padding: 6px 10px; pointer-events: none; white-space: nowrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-2); font-size: 12.5px; }
.tc-tip div { display: flex; align-items: center; color: var(--ink-2); }
.tc-tip b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.tc-tip small { margin: -2px 0 0 21px; font-size: 11.5px; color: var(--ink-3); }

/* attention list */
.attn { display: grid; grid-template-columns: minmax(0, 1fr); }   /* a long word (an email, an id) wraps instead of widening the list */
.attn > div { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); }
.attn > div:first-child { border-top: 0; }
.attn .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.attn .ic svg { width: 17px; height: 17px; }
.attn .warn .ic { background: var(--warn-tint); color: var(--warn); }
.attn .bad .ic { background: var(--bad-tint); color: var(--bad); }
.attn .info .ic { background: var(--info-tint); color: var(--info); }
.attn .good .ic { background: var(--good-tint); color: var(--good); }
.attn .tx { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.attn .tx b { display: block; font-weight: 600; font-size: 14.5px; }
.attn .tx span { display: block; font-size: 13px; color: var(--ink-3); }
.attn .btn { flex: none; }

/* pills & chips */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  white-space: nowrap; background: var(--stone-100); color: var(--ink-2); }
.pill svg { width: 13px; height: 13px; }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.info { background: var(--info-tint); color: var(--info); }
.pill.brown { background: var(--brown-tint); color: var(--brown); }
.pill.dark { background: var(--brown); color: #FFF5EC; }
.pill.ghost { background: transparent; border: 1px solid var(--line-2); }
.plan { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 7px; font: 600 11.5px/1 var(--body); }
.plan svg { width: 14px; height: 14px; }
.plan.pebble { background: var(--stone-100); color: var(--ink-2); }
.plan.gravel { background: linear-gradient(180deg, #4B2D1B, #2E1B10); color: #F3DEC8; }
/* Settings → Your plan: what Stripe charges ("$149/mo · next charge Nov 24") */
.plan-now { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.plan-amt { font: 750 22px/1 var(--display); white-space: nowrap; }
.plan-amt .muted { font: 500 13px var(--body); }
.plan-next { font-size: 13px; white-space: nowrap; }

/* lists */
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
.rows .row:first-child { border-top: 0; }
@media (hover: hover) { a.row:hover, button.row:hover { background: var(--stone-50); } }
button.row { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.row .av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; font: 700 13px/1 var(--display); background: var(--stone-100); color: var(--ink-2); }
.row .av svg { width: 18px; height: 18px; }
.row .av.missed { background: var(--warn-tint); color: var(--warn); }
.row .av.form { background: var(--info-tint); color: var(--info); }
.row .av.text { background: var(--brown-tint); color: var(--brown); }
.row .av.call { background: var(--good-tint); color: var(--good); }
.row .tx { min-width: 0; flex: 1; }
.row .tx b { display: block; font-weight: 600; font-size: 14.5px; }
/* unread: a call, voicemail or text on the line the owner hasn't opened (client.js leadRow) */
.row.unread .tx b { font-weight: 750; }
.row .ud { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: var(--brown); vertical-align: 2px; }
.row .tx > span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .row { align-items: flex-start; }
  .row .tx > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row .end { flex-direction: column; align-items: flex-end; gap: 6px; }
}
.row .when { font: 500 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.row .end { display: flex; align-items: center; gap: 8px; flex: none; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
@media (hover: hover) { .tbl tbody tr:hover td { background: var(--stone-50); } }
.tbl .biz-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.tbl .biz-cell .av { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 700 12px/1 var(--display); background: var(--stone-100); color: var(--ink-2); flex: none; }
.tbl .biz-cell b { display: block; font-weight: 600; }
.tbl .biz-cell small { display: block; color: var(--ink-3); font-size: 12.5px; }
.tbl .r { text-align: right; }
.tbl .list-p { display: block; font: 500 11px/1.2 var(--body); color: var(--ink-3); }
/* the Clients table fits a 1280 screen (Theo, 25 Oct 2026): tighter cells, the setup line wrapping under its count;
   narrower than that it scrolls inside its card, never the page */
.cl-tbl th, .cl-tbl td { padding-left: 8px; padding-right: 8px; }
.cl-tbl th { letter-spacing: .05em; white-space: normal; line-height: 1.3; }
.cl-tbl th:first-child, .cl-tbl td:first-child { padding-left: 14px; }
.cl-tbl th:last-child, .cl-tbl td:last-child { padding-right: 14px; }
.cl-tbl .biz-cell { min-width: 140px; }
.cl-tbl .su-cell small { white-space: normal; min-width: 100px; max-width: 140px; }
.cl-tbl td.num, .cl-tbl .plan { white-space: nowrap; }
.cl-tbl .plan.custom { white-space: normal; height: auto; min-height: 22px; padding-top: 4px; padding-bottom: 4px; line-height: 1.2; max-width: 120px; }
.cl-tbl .pill, .cl-tbl .ptag { white-space: normal; height: auto; min-height: 22px; padding-top: 3px; padding-bottom: 3px; line-height: 1.2; max-width: 120px; }
.cl-tbl .ptag-s { white-space: normal; }

/* forms */
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper);
  transition: border-color .15s, box-shadow .15s; font-size: 14.5px; }
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input:disabled { background: var(--stone-100); color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brown-500); box-shadow: 0 0 0 3px rgba(138, 86, 50, .16); }
/* iPhone Safari zooms in on any field under 16px the moment it's tapped, and stays zoomed after the keyboard closes */
@media (max-width: 860px) { .input, .select, .textarea { font-size: 16px; } }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--stone-100); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 12px; border-radius: 8px; border: 0; background: none; font-size: 13px; font-weight: 550; color: var(--ink-2); white-space: nowrap; flex: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.seg button svg { width: 16px; height: 16px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; inset: -10px; width: auto; height: auto; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--stone-300); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--brown); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--brown-500); outline-offset: 2px; }
.switch input:disabled + span { opacity: .5; }

/* toggle rows */
.tog { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); min-width: 0; }   /* a grid item: may shrink below its nowrap note */
.tog:first-of-type { border-top: 0; }
.tog .t { flex: 1; min-width: 0; }
.tog b { display: block; font-weight: 600; font-size: 14.5px; }
.tog small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tog .lockt { font-size: 12px; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; }
.tog .lockt svg { width: 13px; height: 13px; }

/* toast: a dark note at the bottom (above the phone tab bar, clear of the home indicator); on a phone with a sheet open
   it's at the top of the screen instead, so it never covers the sheet. It leaves the way it came; a swipe
   sideways or down sends it off early. An error says so with its own icon (app.js toast(…, { kind: "error" })). */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px;
  justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px 8px 14px; border-radius: 13px;
  background: var(--brown-900); color: #FFF5EC; font-size: 14px; box-shadow: var(--sh-3); max-width: min(560px, calc(100vw - 32px));
  animation: toast-in .4s var(--spring); transition: opacity .22s ease, transform .22s ease; touch-action: none; -webkit-user-select: none; user-select: none; }
.toast.out { opacity: 0; transform: translateY(10px) scale(.97); }
.toast svg { width: 17px; height: 17px; color: var(--tan); flex: none; }
.toast.error svg { color: #F2B8B5; }
.toast span { min-width: 0; }
.toast a, .toast button { color: #FFE9D4; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap; flex: none; margin: -10px -4px -10px auto; padding: 13px 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toast-down { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@media (max-width: 860px) {
  .toasts { bottom: calc(88px + env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); transform: none; }
  .toast { max-width: none; }
  body.ed .toasts { bottom: calc(74px + env(safe-area-inset-bottom)); }      /* the editor: above its tool rail */
  html.locked .toasts { bottom: calc(16px + max(env(safe-area-inset-bottom), var(--kb, 0px))); }   /* a lead open: its foot, above the keyboard */
  html.locked:has(.scrim.in > .modal) .toasts { top: calc(10px + env(safe-area-inset-top)); bottom: auto; }  /* a sheet open: the top */
  html.locked:has(.scrim.in > .modal) .toast { animation-name: toast-down; }
  html.locked:has(.scrim.in > .modal) .toast.out { transform: translateY(-10px) scale(.97); }
}

/* modal / sheet / drawer. They move by transform and opacity only, so they stay smooth on a phone: app.js adds .in
   once one is on the page and swaps it for .out to close (they're taken away when that has played), and a finger
   dragging one moves it directly. While one is open the page behind is held still (html.locked). */
@media (max-width: 860px), (pointer: coarse) {          /* (on a computer it would make the scrollbar jump) */
  html.locked, html.locked body, .main.held { overflow: hidden; }
}
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(28, 18, 12, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px 20px calc(20px + var(--kb, 0px)); opacity: 0; transition: opacity .22s ease; overscroll-behavior: contain; }
.scrim.in { opacity: 1; }
/* on its way out it's already gone for the finger: a tap right after closing reaches the page (as in iOS), and the
   closing sheet's buttons can't be pressed twice */
.scrim.out { transition-duration: .26s; pointer-events: none; }
/* (a centred one, as on a phone held sideways or an iPad, also keeps clear of the on-screen keyboard: --kb, app.js) */
.modal { width: min(620px, 100%); max-height: min(86vh, 900px); max-height: min(86vh, 900px, calc(100dvh - 40px - var(--kb, 0px))); display: flex; flex-direction: column; background: var(--paper); border-radius: 20px;
  box-shadow: var(--sh-3); overflow: hidden; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .25s ease, transform .3s var(--ease); }
.scrim.in .modal { opacity: 1; transform: none; }
.modal-h { padding: 20px 22px 8px; display: flex; align-items: flex-start; gap: 12px; }
.modal-h h2 { font-size: 21px; font-weight: 750; }
.modal-h p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.modal-h .x { margin-left: auto; }
.modal-b { padding: 8px 22px 16px; overflow: auto; overscroll-behavior: contain; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--snow); flex-wrap: wrap; }
.field .err { margin: 0; color: var(--bad); font-size: 13px; font-weight: 550; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.modal > .grab { display: none; }                          /* (the editor's panel has a .grab of its own) */
/* on a phone: a sheet from the bottom edge, with a handle to pull it down by. It rides above the keyboard (--kb, set by
   app.js from the visible viewport), its buttons are thumb-sized and clear of the home indicator. */
@media (max-width: 640px) {
  .scrim { place-items: end center; padding: 0 0 var(--kb, 0px); }
  .modal { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; max-height: calc(100dvh - var(--kb, 0px) - max(12px, env(safe-area-inset-top)));
    opacity: 1; transform: translateY(100%); transition: transform .5s var(--spring); }
  .scrim.out .modal { transition-duration: .32s; }
  .modal > .grab { display: block; position: absolute; left: 0; right: 0; top: 0; height: 22px; touch-action: none; }
  .modal > .grab::before { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--stone-300); }
  .modal { position: relative; }
  .modal-h { padding-top: 24px; touch-action: none; }
  .modal-h, .modal-b, .modal-f { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .modal-f { padding-bottom: calc(14px + env(safe-area-inset-bottom)); flex-wrap: nowrap; }
  html.kb .modal-f { padding-bottom: 14px; }                       /* the keyboard covers the home indicator */
  .modal-f .btn { flex: 1; --h: 48px; font-size: 15px; }
  /* Delete client (admin.js deleteClient): its button says the business's name, so on a phone each button takes its own
     row, Delete above Cancel, and a long name wraps instead of pushing Cancel off the screen */
  .del-modal .modal-f { flex-wrap: wrap-reverse; }
  .del-modal .modal-f .btn { flex: 1 1 100%; }
}
.del-modal .modal-f .btn.danger { white-space: normal; height: auto; min-height: var(--h); padding-top: 8px; padding-bottom: 8px; text-align: center; }
.drawer { position: fixed; top: 0; right: 0; bottom: var(--kb, 0px); width: min(460px, 100%); z-index: 81; background: var(--paper); box-shadow: var(--sh-3);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .42s var(--spring); }
.drawer.in { transform: none; }
.drawer.out { transition-duration: .3s; pointer-events: none; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { font-size: 18px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-h .btn { flex: none; width: 44px; height: 44px; margin-right: -8px; }
.drawer-b { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; flex: 1; display: grid; gap: 16px; align-content: start; }
.drawer-f { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.drawer:has(.drawer-f) .drawer-b, html.kb .drawer-b { padding-bottom: 16px; }
.drawer-h, .drawer-b, .drawer-f { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
/* a lead's Call / Text / Email: they share the row, and each takes a full row of its own once they don't fit */
.lead-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-acts .btn { flex: 1 1 auto; }
/* a choice inside a drawer (a lead's status) is a full-width segmented control: every option shows, even on an SE */
.drawer .seg { display: flex; }
.drawer .seg button { flex: 1 1 0; justify-content: center; padding: 0 6px; min-width: 0; }
/* on a phone the lead fills the screen like a pushed page, and the page it came from slides back a little, as on iOS */
@media (max-width: 860px) {
  .main { transition: transform .42s var(--spring); }
  html.pushed .main { transform: translateX(-22%); }
  html.popping .main { transition-duration: .3s; }
  html.snap .main { transition: none; }
}

/* timeline (lead conversation, history) */
.tl { display: grid; gap: 0; position: relative; }
.tl > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding-bottom: 16px; position: relative; }
.tl > div::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl > div:last-child::before { display: none; }
.tl .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--stone-100); color: var(--ink-2); }
.tl .dot svg { width: 14px; height: 14px; }
.tl .b { padding-top: 3px; }
.tl .b b { font-weight: 600; font-size: 14px; }
.tl .b .when { font: 500 11.5px/1 var(--mono); color: var(--ink-3); margin-left: 6px; }
.bubble { margin-top: 6px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--stone-100); font-size: 14px; line-height: 1.45; max-width: 46ch; }
.bubble.us { background: var(--brown-tint); border-radius: 14px 4px 14px 14px; }

/* empty states */
.empty { padding: 34px 20px; text-align: center; color: var(--ink-3); display: grid; justify-items: center; gap: 10px; }
.empty svg { width: 34px; height: 34px; color: var(--stone-300); }

/* filters bar */
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.bar .seg::-webkit-scrollbar { display: none; }
.bar .search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.only-m { display: none; }
@media (max-width: 760px) { .only-d { display: none !important; } .only-m { display: block; } }
.bar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.bar .search input { padding-left: 36px; height: 38px; }

/* charts */
.chart { width: 100%; height: 160px; display: block; }
.chart text { font: 500 10.5px var(--mono); fill: var(--ink-3); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--stone-100); aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb .tag { position: absolute; left: 10px; top: 10px; }

.upsell { position: relative; overflow: hidden; border-radius: var(--r); color: #FBEFE3; isolation: isolate; padding: 18px;
  background: #2A1B12 url(img/band-stone.webp) center / cover; }
.upsell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(34, 21, 13, .9), rgba(34, 21, 13, .62)); }
.upsell h3 { font-size: 18px; color: #FFF6EC; }
.upsell p { color: rgba(251, 239, 227, .82); font-size: 14px; margin-top: 6px; max-width: 46ch; }
.upsell ul { margin: 12px 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.upsell li { display: flex; gap: 8px; align-items: center; }
.upsell li svg { width: 16px; height: 16px; color: var(--tan); }
.upsell .btn { background: #FFF6EC; color: var(--brown-900); border-color: #FFF6EC; }

/* ---------------------------------------------------------------- a website on its way
   Before there's a site to show (an account we haven't set up yet, or a site we're still building): the hero card on
   Home sits on the stone, like the rail and the tab bar, with the steps to a live site under it and the way to reach
   us; then light pictures of what the dashboard will hold. Drawn with CSS alone: nothing to fetch but the stone. */
.otw { overflow: hidden; margin-bottom: 26px; }
.otw-top { position: relative; isolation: isolate; padding: 22px 22px 22px; color: #FFF6EC; background: #2A1B12 url(img/band-stone.webp) center / cover; }
.otw-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(34, 21, 13, .93), rgba(34, 21, 13, .66) 70%, rgba(34, 21, 13, .5)); }
.otw-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 8px; border-radius: 999px; font: 600 12px/1 var(--body);
  color: #F3DEC8; background: linear-gradient(180deg, rgba(255, 245, 235, .16), rgba(255, 245, 235, .08)); border: 1px solid rgba(255, 236, 216, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 240, 225, .18); }
.otw-chip svg { width: 15px; height: 15px; }
.otw-top h2 { margin-top: 14px; font-size: clamp(25px, 3.2vw, 32px); font-weight: 800; color: #FFF7EF; }
.otw-top p { margin-top: 8px; max-width: 52ch; font-size: 15px; color: rgba(251, 239, 227, .86); }
.otw-top .btn { margin-top: 14px; background: #FFF6EC; color: var(--brown-900); border-color: #FFF6EC; }
/* the steps: across on a computer, down on a phone. Done ones carry a tick, the one we're on gently pulses. */
.steps { list-style: none; margin: 0; padding: 20px 22px 4px; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.steps li::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.steps li.done::before { background: #BFD9C8; }
.steps li:last-child::before { display: none; }
.steps .dot { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line-2); color: var(--ink-3); }
.steps .dot svg { width: 15px; height: 15px; }
.steps .done .dot { background: var(--good-tint); border-color: transparent; color: var(--good); }
.steps .now .dot { background: var(--brown); border-color: var(--brown); box-shadow: 0 0 0 4px var(--brown-tint); }
.steps .now .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F3DEC8; }
.steps .now .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brown-500); opacity: 0; animation: otw-ring 2.4s var(--ease) infinite; }
@keyframes otw-ring { 0% { transform: scale(.8); opacity: .55; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.steps .tx { min-width: 0; padding-top: 3px; }
.steps b { display: block; font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.steps small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.steps .next b { color: var(--ink-2); font-weight: 600; }
.steps .now b { color: var(--brown); }
@media (min-width: 720px) {
  .steps:not(.mini) { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 24px 22px 8px; }
  .steps:not(.mini) li { grid-template-columns: none; grid-template-rows: 28px auto; gap: 10px; padding: 0 16px 18px 0; }
  .steps:not(.mini) li::before { left: 38px; right: 10px; top: 13px; bottom: auto; width: auto; height: 2px; }
}
.steps.mini { padding: 4px 0 0; }
.steps.mini li { padding-bottom: 12px; }
.steps.mini small { font-size: 12.5px; }
/* On a call with us: you're all set. A pane of glass on the stone, so it's on the first screen of a phone; not on a call
   yet: the number, and a button to text it, under the steps */
.otw-now { display: flex; align-items: center; gap: 12px; max-width: 560px; margin-top: 18px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 244, .17), rgba(255, 250, 244, .08)); border: 1px solid rgba(255, 236, 216, .24);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 225, .22), 0 14px 30px -20px rgba(8, 5, 3, .9); }
.otw-now .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tan); color: var(--brown-900); }
.otw-now .ic svg { width: 19px; height: 19px; }
.otw-now .tx { min-width: 0; }
.otw-now b { display: block; font-size: 15.5px; font-weight: 700; color: #FFF7EF; }
.otw-now .tx span { display: block; font-size: 14px; color: rgba(251, 239, 227, .88); }
.otw-not { display: flex; align-items: center; gap: 12px; margin: 4px 22px 22px; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--stone-50); font-size: 14px; color: var(--ink-2); }
.otw-not .tx { min-width: 0; flex: 1; }
.otw-not b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.otw-not .btn { flex: none; }
@media (max-width: 560px) { .otw-not { flex-wrap: wrap; padding: 14px 16px; } .otw-not .btn { width: 100%; } }
/* what the dashboard will do */
.soon-h { margin: 0 0 12px; }
.soon-h h2 { font-size: 18px; font-weight: 750; }
.soon-h p { margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.soon-t { display: grid; gap: 12px; padding: 14px; text-decoration: none; color: inherit; align-content: start; transition: transform .15s var(--ease), box-shadow .15s; }
@media (hover: hover) { .soon-t:hover { box-shadow: var(--sh-2); } }
.soon-t:active { transform: scale(.985); }
.soon-t .tx b { display: block; font-size: 15px; font-weight: 650; }
.soon-t .tx span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
/* on a phone the three sit side by side and swipe, like an iOS shelf, instead of three tall cards in a column */
@media (max-width: 640px) {
  .grid.soon { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: max(18px, env(safe-area-inset-left)); scrollbar-width: none;
    margin: 0 calc(-1 * max(18px, env(safe-area-inset-right))) 0 calc(-1 * max(18px, env(safe-area-inset-left)));
    padding: 2px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left)); }
  .grid.soon::-webkit-scrollbar { display: none; }
  .soon-t { scroll-snap-align: start; }
}
.mock, .mock i { display: block; font-style: normal; }
.mock { height: 104px; border-radius: 11px; background: var(--stone-50); border: 1px solid var(--line); padding: 12px; overflow: hidden; display: grid; align-content: center; gap: 10px; }
.mock .ln { height: 7px; border-radius: 4px; background: var(--stone-200); width: 78%; }
.mock .ln.s { width: 52%; }
.mock.m-site .ln { width: 56%; }
.mock.m-site .ln.s { width: 38%; }
.mock.m-leads .r { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; background: var(--paper); box-shadow: var(--sh-1); }
.mock.m-leads .av { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--info-tint); color: var(--info); flex: none; }
.mock.m-leads .r + .r .av { background: var(--warn-tint); color: var(--warn); }
.mock.m-leads .av svg { width: 13px; height: 13px; }
.mock.m-leads .l { flex: 1; display: grid; gap: 5px; }
.mock.m-leads .l i { height: 6px; border-radius: 3px; background: var(--stone-200); width: 70%; }
.mock.m-leads .l i + i { width: 46%; background: var(--stone-100); }
.mock.m-leads .pill { height: 18px; font-size: 10.5px; padding: 0 7px; }
.mock.m-site { padding: 0; gap: 8px; align-content: start; background: var(--paper); }
.mock.m-site .chrome { display: flex; gap: 4px; padding: 7px 9px; background: var(--stone-100); border-bottom: 1px solid var(--line); }
.mock.m-site .chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--stone-300); }
.mock.m-site .hd { position: relative; justify-self: start; margin: 2px 12px 0; padding: 2px 6px; border-radius: 5px; outline: 2px dashed var(--brown-500); outline-offset: 1px;
  font: 750 14px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.mock.m-site .caret { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 2px; background: var(--brown-500); animation: otw-caret 1.1s steps(1) infinite; }
@keyframes otw-caret { 50% { opacity: 0; } }
.mock.m-site .ln { margin: 0 12px; }
.mock.m-site .pic { position: absolute; right: 12px; bottom: 10px; width: 56px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, var(--tan), var(--brown-500)); opacity: .55; }
.mock.m-site { position: relative; }
.mock.m-reviews .st { font-size: 20px; letter-spacing: 3px; color: var(--star); line-height: 1; }
/* Website, while it's being built: a page drawing itself in, and what editing will be like */
.otw-site { overflow: hidden; }
.otw-site .frame, .otw-site .frame i { display: block; font-style: normal; }
.otw-site .frame { margin: 16px 16px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; aspect-ratio: 16 / 8.5; }
.otw-site .frame .chrome { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; background: var(--stone-100); border-bottom: 1px solid var(--line); }
.otw-site .frame .chrome > i:not(.url) { width: 8px; height: 8px; border-radius: 50%; background: var(--stone-300); }
.otw-site .frame .chrome .url { margin-left: 8px; font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otw-site .frame .hero { padding: 7% 8% 5%; display: grid; gap: 10px; background: linear-gradient(180deg, var(--brown-tint), var(--paper)); }
.otw-site .hero i, .otw-site .cols i { border-radius: 6px; background: var(--stone-200); animation: sk-pulse 1.8s ease-in-out infinite; }
.otw-site .hero .t { height: 16px; width: 62%; background: var(--brown-tint-2); }
.otw-site .hero .t.s { height: 10px; width: 44%; animation-delay: .2s; }
.otw-site .hero .b { height: 22px; width: 92px; border-radius: 999px; background: var(--brown); opacity: .55; animation-delay: .4s; }
.otw-site .frame .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 8% 8%; }
.otw-site .cols i { height: 44px; animation-delay: .6s; }
.otw-site h2 { font-size: 19px; font-weight: 750; }
.otw-site .card-b p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.otw-site .card-b p.muted { font-size: 13.5px; color: var(--ink-3); }
.otw-site .card-b .btn { margin-top: 6px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); }
.how li > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brown-tint); color: var(--brown); flex: none; }
.how b { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink); }

/* the admin's Set up sheet: the web address with its domain after it, and what the check found */
#suf, #su-new { grid-template-columns: minmax(0, 1fr); }           /* never wider than the sheet (a phone's) */
#suf .tog small { white-space: normal; }
.slug-in { position: relative; }
.slug-in .input { padding-right: 112px; }
.slug-in span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13.5px; color: var(--ink-3); pointer-events: none; white-space: nowrap; }
#su-sm { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-height: 19px; }
#su-sm.ok { color: var(--good); font-weight: 550; }
#su-sm.bad { color: var(--bad); font-weight: 550; }
#su-sm svg { width: 15px; height: 15px; }
#su-sm .linkish { font-size: 12.5px; }
code.push { display: block; max-width: 100%; margin-top: 4px; padding: 8px 10px; border-radius: 9px; background: var(--stone-100); color: var(--ink-2); font-size: 11.5px;
  text-align: left; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }

/* the admin's Payments (Stripe): a table on a computer, a card per subscription on a phone; each says who it belongs to */
.pay-tbl tbody tr { cursor: default; }
.pay-tbl td { vertical-align: top; }
.pay-tbl .biz-cell small { overflow-wrap: anywhere; }
.pay-who { display: grid; gap: 5px; min-width: 220px; font-size: 13.5px; }
.pay-who .why { color: var(--ink-3); font-size: 12.5px; }
.pay-who .why b { color: var(--good); font-weight: 650; }
.pay-who .why.warn b, .pay-who .lead { color: var(--warn); font-weight: 650; }
.pay-who .acts, .pay-sug .acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pay-sug { display: grid; gap: 5px; padding: 8px 10px; border-radius: 10px; background: var(--stone-50); border: 1px solid var(--line); }
.pay-sug small { color: var(--ink-3); }
.pay-list { display: grid; }
.pay-m { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); min-width: 0; }
.pay-m:first-child { border-top: 0; }
.pay-top { display: flex; align-items: flex-start; gap: 10px; }
.pay-top > div { min-width: 0; flex: 1; }
.pay-top b { display: block; font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.pay-top small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.pay-top .pill { flex: none; }
.pay-m .kv { font-size: 13.5px; }
.pay-m .pay-who { min-width: 0; }
.pay-checked { font-size: 12.5px; color: var(--ink-3); }
.pay-err { color: var(--bad); font-weight: 550; }

/* ---------------------------------------------------------------- Reviews (the review funnel, client.js vReviewsLive)
   The bell at the top right, then the form beside the funnel (stacked on a phone), then the feedback at full width.
   The funnel's rows are three columns (name | status | on/off) that keep to the screen at 320px: a long name shortens. */
.rv-ph { flex-wrap: nowrap; align-items: flex-start; }
.rv-ph > div { min-width: 0; }
.rv-bell { position: relative; flex: none; margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-bell svg { width: 21px; height: 21px; }
.rv-bell:active { transform: scale(.95); background: var(--stone-100); }
.rv-n { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font: 600 11.5px/1 var(--mono); background: var(--bad); color: #FFF; box-shadow: 0 0 0 2px var(--snow); }
.rv-waiting { margin-bottom: 16px; }
.rv-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; margin-bottom: 16px; }
@media (max-width: 1100px) { .rv-top { grid-template-columns: minmax(0, 1fr); } }
.rv-form { gap: 14px; }
.rv-two { gap: 14px; }
.rv-consent { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--warn-tint); border: 1px solid #F1DDBF; }
.rv-check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; }
.rv-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brown); cursor: pointer; }
.rv-say { font-size: 13.5px; color: var(--ink-2); padding-left: 34px; }
.rv-consent .err { padding-left: 34px; }
.rv-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--info-tint); color: var(--info); font-size: 13.5px; font-weight: 550; }
.rv-note svg { width: 16px; height: 16px; margin-top: 2px; }
.rv-note.bad { background: var(--bad-tint); color: var(--bad); }
.rv-msg { max-width: none; overflow-wrap: anywhere; }
.rv-tok { color: var(--ink-3); }
.rv-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
/* "Customize?": the five review texts in the owner's own words (client.js rvCustomize) */
.rv-cz { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.cz { display: grid; gap: 16px; }
.cz-all { margin: 0; font-size: 13px; }
.cz-f { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.cz-all + .cz-f, .cz > .cz-f:first-child { border-top: 0; padding-top: 2px; }
.cz-h { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.cz-h label { display: grid; gap: 2px; }
.cz-h label small { color: var(--ink-3); font-size: 12.5px; }
.cz-reset { font-size: 12.5px; }
.cz-t { min-height: 84px; }
.cz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cz-tag { min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font: 550 12.5px/1 var(--body); color: var(--ink-2); cursor: pointer; }
.cz-tag:active { background: var(--stone-100); }
@media (hover: hover) and (pointer: fine) { .cz-tag:hover { border-color: var(--brown-500); color: var(--ink); } }
.cz-link { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; min-width: 0; }
.cz-link span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 4px 10px; border-radius: 8px; background: var(--stone-100); color: var(--ink-3);
  font: 500 12.5px/1.3 var(--mono); overflow-wrap: anywhere; user-select: none; }
.cz-link svg { width: 13px; height: 13px; flex: none; }
.cz-link small { color: var(--ink-3); font-size: 12px; }
.cz-pl { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 2px 0 0; }
.cz-prev { max-width: none; margin-top: 0; overflow-wrap: anywhere; }
.cz-pl-link { color: var(--ink-3); }
.cz-meta { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin: 0; font-size: 12.5px; min-height: 18px; }
.cz-n { color: var(--ink-3); font-variant-numeric: tabular-nums; order: 2; white-space: nowrap; }
.cz-n.over { color: var(--bad); font-weight: 600; }
.cz-err { color: var(--bad); order: 1; }
.cz-f.bad .cz-t { border-color: var(--bad); }
.rv-form > .btn { justify-self: start; }
.rv-form .err { margin: 0; color: var(--bad); font-size: 13.5px; font-weight: 550; }
.rv-total { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.rv-head, .rv-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 56px; align-items: center; gap: 10px; padding: 0 18px; }
.rv-head { padding-top: 12px; padding-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.rv-head span:last-child { text-align: right; }
.rv-rows { padding-bottom: 6px; }
.rv-rows .sk-row { padding: 12px 18px; }
.rv-row { min-height: 60px; border-top: 1px solid var(--line); transition: background .6s; }
.rv-who { min-width: 0; }
.rv-who b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-who small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-row .pill { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rv-tog { display: flex; justify-content: flex-end; align-items: center; }
/* the switch: the usual 40 x 24 look on a 52 x 44 target (the whole label is tappable) */
.rv-tog .switch { width: 52px; height: 44px; }
.rv-tog .switch span { inset: auto; left: 6px; top: 10px; width: 40px; height: 24px; }
/* locked after STOP: the switch, off and dimmed, with a lock on its track */
.rv-lock { position: relative; display: inline-flex; color: var(--ink-2); }
.rv-lock svg { position: absolute; z-index: 2; right: 11px; top: 15px; width: 13px; height: 13px; pointer-events: none; }
.rv-more { padding: 6px 18px 16px; }
.rv-hi { background: var(--brown-tint); }
.rv-fb { margin-bottom: 16px; }
.rv-fbs { font-size: 13px; margin-left: auto; }
.rv-fbl { display: grid; padding: 6px 0 4px; }
.rv-fbi { padding: 14px 18px; border-top: 1px solid var(--line); transition: background .6s; }
.rv-fbi:first-child { border-top: 0; }
.rv-fbh { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.rv-fbh b { font-weight: 600; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.rv-fbh .when { margin-left: auto; }
.rv-fbi p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; font-size: 14px; }
.rv-stars i { font-style: normal; color: var(--stone-300); }
.rv-fair { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.rv-notes .row .av.good { background: var(--good-tint); color: var(--good); }
.rv-notes .row .av.warn { background: var(--warn-tint); color: var(--warn); }
.rv-notes .row .av.bad { background: var(--bad-tint); color: var(--bad); }
.rv-notes .row .av.info { background: var(--info-tint); color: var(--info); }
.rv-notes .row { min-height: 60px; }
.rv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); flex: none; }
@media (hover: hover) and (pointer: fine) { .rv-bell:hover { background: var(--stone-50); border-color: var(--stone-300); } }
@media (max-width: 860px) {
  .rv-bell { width: 48px; height: 48px; }
  .rv-form > .btn { justify-self: stretch; }
  .rv-head, .rv-row { padding-left: 16px; padding-right: 16px; gap: 8px; }
}
@media (max-width: 640px) { .rv-fbs { display: none; } }
/* a small phone: a long name takes two lines instead of being cut short, and the columns sit closer */
@media (max-width: 420px) {
  .rv-head, .rv-row { grid-template-columns: minmax(0, 1fr) 112px 52px; gap: 6px; padding-left: 14px; padding-right: 12px; }
  .rv-who b { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .rv-row { padding-top: 8px; padding-bottom: 8px; }
}
/* the phone tab bar's numbered badge (Reviews: the bell's count), in place of the dot */
@media (max-width: 860px) {
  .tabbar a .count { position: absolute; top: 3px; left: calc(50% + 3px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    display: grid; place-items: center; font: 600 10.5px/1 var(--mono); font-style: normal; background: var(--tan); color: var(--brown-900); box-shadow: 0 0 0 2px #2A1B12; }
  .tabbar:not(.tp-on) a[aria-current="page"] .count, .tabbar a.tp-hot .count { box-shadow: 0 0 0 2px #FFFDFA; }
}

/* ---------------------------------------------------------------- the chat with the team (chat.js)
   A round bubble at the bottom right with its tally; it opens the conversation: a panel docked above it on a computer,
   a full-height sheet on a phone (riding above the keyboard: --kb, app.js). On a phone the bubble sits 14px above the tab
   bar and clear of the home indicator and the rounded corners, never on the bar; it steps aside while the keyboard is up
   (.kb) and while a form's Send passes under it (.dodge). The page leaves room at its end so nothing stays under it. */
html.has-chat .wrap { padding-bottom: 104px; }
.chat-dock { position: fixed; z-index: 29; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 56px; height: 56px; pointer-events: none; }
.chat-fab { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto;
  background: var(--brown); color: #FFF7EF; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 4px rgba(34, 21, 13, .25), 0 14px 30px -12px rgba(34, 21, 13, .65);
  transition: transform .2s var(--ease), opacity .18s ease, background .15s, visibility 0s; }
.chat-fab svg { width: 26px; height: 26px; }
@media (hover: hover) { .chat-fab:hover { background: var(--brown-2); } }
.chat-fab:active { transform: scale(.92); transition-duration: .06s; }
.chat-dock.open .chat-fab { background: var(--brown-deep); }
.chat-n { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font: 600 11.5px/1 var(--mono); background: var(--bad); color: #FFF; box-shadow: 0 0 0 2px var(--snow); pointer-events: none; }
/* stepping aside: faded, a little smaller, out of reach (never while the panel is open or the bubble has the focus) */
.chat-dock.kb .chat-fab, .chat-dock.dodge:not(.open):not(:focus-within) .chat-fab { opacity: 0; transform: translateY(10px) scale(.86); pointer-events: none; visibility: hidden;
  transition: transform .2s var(--ease), opacity .18s ease, visibility 0s .2s; }
@media (max-width: 860px) {
  html.has-chat .shell .main { padding-bottom: calc(84px + 72px + env(safe-area-inset-bottom)); }
  html.has-chat .wrap { padding-bottom: 64px; }
  .chat-dock { width: 52px; height: 52px; right: max(14px, env(safe-area-inset-right)); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 64px + 14px); }
  .chat-fab svg { width: 24px; height: 24px; }
  .chat-dock.open .chat-fab { opacity: 0; pointer-events: none; }             /* the sheet covers the screen */
}

.chat-panel { position: fixed; z-index: 79; right: max(24px, env(safe-area-inset-right)); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 56px + 12px);
  width: min(392px, calc(100vw - 48px)); height: min(640px, calc(100vh - 116px)); height: min(640px, calc(100dvh - 116px)); display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-3); overflow: hidden; outline: 0;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: 100% 100%; transition: opacity .2s ease, transform .28s var(--ease); }
.chat-panel.in { opacity: 1; transform: none; }
.chat-h { display: flex; align-items: center; gap: 11px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); flex: none; }
.chat-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 13px/1 var(--display); background: var(--brown); color: var(--tan); }
.chat-av svg { width: 22px; height: 22px; }
.chat-av.big { width: 52px; height: 52px; }
.chat-av.big svg { width: 30px; height: 30px; }
.chat-ht { min-width: 0; flex: 1; }
.chat-ht h2 { font-size: 16.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-ht p { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-ht a { color: var(--brown-500); font-weight: 600; text-underline-offset: 3px; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; font-style: normal; }
/* whether the team is around (chat.js setTeam): the words say it, the dot repeats it. Green and red are over 4.5:1 on the
   white header; the yellow, too light for that, carries a dark edge that is. Each has a hairline edge, so it holds on a
   light or a dark ground; in forced-colours mode it takes the text's colour */
.chat-st .chat-dot { width: 9px; height: 9px; background: var(--stone-300); box-shadow: inset 0 0 0 1px rgba(28, 22, 18, .22); }
.chat-st:not([data-st]) .chat-dot { display: none; }
.chat-st[data-st="online"] .chat-dot { background: #23864B; }
.chat-st[data-st="idle"] .chat-dot { background: #D99A00; box-shadow: inset 0 0 0 1px #8A5D00; }
.chat-st[data-st="offline"] .chat-dot { background: #C9302C; }
.chat-st[data-st] span { color: var(--ink-2); font-weight: 550; }
@media (forced-colors: active) { .chat-st .chat-dot { forced-color-adjust: none; background: CanvasText; box-shadow: none; } }
.chat-h .btn.icon { flex: none; width: 44px; height: 44px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 10px; background: var(--snow); outline: 0; }
.chat-log:focus-visible { box-shadow: inset 0 0 0 2px var(--brown-500); }
.chat-older { text-align: center; padding: 8px 0 2px; }
.chat-day { display: flex; justify-content: center; margin: 14px 0 8px; }
.chat-day span { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--stone-100); padding: 5px 9px; border-radius: 999px; }
.chat-m { display: flex; flex-direction: column; align-items: flex-start; margin-top: 3px; }
.chat-m.me { align-items: flex-end; }
.chat-m.end { margin-bottom: 8px; }
.chat-b { max-width: min(82%, 520px); padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; box-shadow: var(--sh-1); }
.chat-m:not(.end) .chat-b { border-bottom-left-radius: 18px; }
.chat-m.end .chat-b { border-bottom-left-radius: 6px; }
.chat-m.me .chat-b { background: var(--brown); border-color: var(--brown); color: #FFF7EF; border-radius: 18px 18px 6px 18px; }
.chat-m.me:not(.end) .chat-b { border-bottom-right-radius: 18px; }
.chat-b a { color: var(--brown-500); font-weight: 550; text-underline-offset: 2px; }
.chat-m.me .chat-b a { color: #FFE9D4; }
.chat-m.pending .chat-b { opacity: .62; }
.chat-meta { margin: 4px 6px 0; font-size: 11.5px; color: var(--ink-3); }
.chat-seen { margin: 2px 6px 0; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.chat-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 18px; text-align: center; color: var(--ink-2); font-size: 14.5px; }
.chat-empty > svg { width: 34px; height: 34px; color: var(--stone-300); }
.chat-empty p { max-width: 30ch; }
.chat-wait { display: grid; gap: 10px; padding: 18px 0; }
.chat-wait .sk { height: 36px; width: 62%; border-radius: 16px; }
.chat-wait .sk.me { justify-self: end; width: 48%; }
.chat-ro { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--stone-50);
  font-size: 13.5px; color: var(--ink-2); flex: none; }
.chat-ro svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brown-500); }
/* the box: 16px words (no zoom on an iPhone), growing to 4 lines, then scrolling */
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); flex: none; }
.chat-ta { display: block; width: 100%; min-height: 44px; max-height: calc(4 * 22px + 20px + 2px); padding: 10px 14px; margin: 0; border-radius: 22px; border: 1px solid var(--line-2);
  background: var(--paper); font: 400 16px/22px var(--body); color: var(--ink); resize: none; overflow-y: auto; transition: border-color .15s, box-shadow .15s; }
.chat-ta:focus { outline: 0; border-color: var(--brown-500); box-shadow: 0 0 0 3px rgba(138, 86, 50, .16); }
.chat-ta::placeholder { color: var(--ink-3); }
.chat-send { --h: 44px; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.chat-send svg { width: 19px; height: 19px; }
.chat-foot { grid-column: 1 / -1; display: flex; gap: 10px; margin: 0; font-size: 12.5px; }
.chat-foot:has(> :not([hidden])) { margin-top: 2px; }
.chat-foot:not(:has(> :not([hidden]))) { display: none; }
.chat-err { color: var(--bad); font-weight: 550; }
.chat-count { margin-left: auto; color: var(--ink-3); font: 500 11.5px/1.4 var(--mono); }
.chat-count.full { color: var(--bad); }
/* the team's inbox: one row per client conversation */
.chat-inbox { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.chat-row .tx > span { color: var(--ink-3); }
.chat-row.unread .tx b { font-weight: 750; }
.chat-row.unread .tx > span { color: var(--ink); font-weight: 550; }
.chat-row .end { align-self: center; flex-direction: column; align-items: flex-end; gap: 6px; }
.chat-u { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: var(--bad); color: #FFF; }
.chat-seen-s { font-size: 11.5px; color: var(--ink-3); }
.chat-inbox .sk-row { padding: 12px 18px; }
/* the same conversation on a client's page in the console */
.chat-card .chat-embed { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--line); }
.chat-card .chat-log { min-height: 180px; max-height: 440px; }
.chat-card .chat-form { border-radius: 0 0 var(--r) var(--r); }
.chat-card .chat-ro { border-radius: 0 0 var(--r) var(--r); }
@media (max-width: 860px) {
  /* a phone: the whole screen, sliding up like an iOS sheet; the top clears the status bar, the box the home indicator */
  .chat-panel { inset: 0; bottom: var(--kb, 0px); width: auto; height: auto; z-index: 85; border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; transform: translateY(100%); transition: transform .42s var(--spring); }
  .chat-panel.in { transform: none; }
  .chat-h { padding: calc(8px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); }
  .chat-log { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .chat-form { padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  html.kb .chat-form, html.kb .chat-ro { padding-bottom: 8px; }               /* the keyboard covers the home indicator */
  .chat-b { max-width: 86%; }
}

/* ---------------------------------------------------------------- the Leads inbox (chat.js teamChat, 21 Nov 2026)
   The round bubble in the team's panel header is a switch: clients' conversations (as before) or leads' (the ones the
   booking assistant handed to Theo). In leads the panel grows up and to the left into a large view (a computer): the
   contacts on the left, about a fifth, the thread and the box on the right, like Messages on a Mac. A phone: the list,
   then the thread. Reduced motion: no growing, no fading (the rule further down turns every transition off). */
@media (min-width: 861px) {
  .chat-panel { transition: opacity .2s ease, transform .28s var(--ease), width .38s var(--ease), height .38s var(--ease); }
  .chat-panel.wide { width: min(1240px, calc(100vw - 48px)); height: min(860px, calc(100vh - 116px)); height: min(860px, calc(100dvh - 116px)); }
}
@media (prefers-reduced-motion: no-preference) { .chat-body.swap { animation: chat-swap .26s ease both; } }
@keyframes chat-swap { from { opacity: 0; } }
/* the switch: the brown bubble (clients) turns tan (leads); a small swap mark says it switches; the other kind's unread on it */
button.chat-switch { position: relative; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background .18s, color .18s, box-shadow .18s; }
button.chat-switch:focus-visible { outline: 2px solid var(--brown-500); outline-offset: 2px; border-radius: 50%; }
@media (hover: hover) { button.chat-switch:hover { box-shadow: 0 0 0 4px var(--brown-tint-2); } }
button.chat-switch:active { transform: scale(.94); }
button.chat-switch.on { background: var(--tan); color: var(--brown-900); }
.chat-sw { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  background: var(--paper); color: var(--brown); box-shadow: 0 0 0 1px var(--line-2); }
.chat-sw svg { width: 12px; height: 12px; }
.chat-sw-n { position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  font: 600 10.5px/1 var(--mono); background: var(--bad); color: #FFF; box-shadow: 0 0 0 2px var(--paper); }
/* the two panes */
.lx { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(240px, 20%) minmax(0, 1fr); }
.lx-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); background: var(--paper); }
.lx-rows { padding: 6px; gap: 2px; }
.lx-rows .sk-row { padding: 12px; }
.lx-row { align-items: flex-start; gap: 10px; padding: 10px 10px; border: 0; border-radius: 12px; }
.lx-row .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brown-tint); color: var(--brown); }
.lx-row .tx { display: grid; gap: 1px; }
.lx-row .tx > .lx-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: visible; color: inherit; font-size: inherit; }
.lx-top b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-row .tx > .lx-ph { display: block; white-space: nowrap; font: 500 11.5px/1.5 var(--mono); color: var(--ink-3); }
.lx-row .tx > .lx-last { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; color: var(--ink-3); line-height: 1.35; }
.lx-row.unread .tx > .lx-last { color: var(--ink); font-weight: 550; }
.lx-row .chat-u { align-self: center; flex: none; }
.lx-row[aria-current="true"] { background: var(--brown); color: #FFF7EF; }
.lx-row[aria-current="true"] .av { background: rgba(255, 247, 239, .16); color: #FFF7EF; }
.lx-row[aria-current="true"] .when, .lx-row[aria-current="true"] .tx > .lx-ph, .lx-row[aria-current="true"] .tx > .lx-last { color: rgba(255, 247, 239, .8); }
@media (hover: hover) { button.lx-row[aria-current="true"]:hover { background: var(--brown-2); } }
.lx-list .chat-empty p { max-width: 24ch; }
.lx-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--snow); }
.lx-pick { margin: auto; }
.lx-th { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); background: var(--paper); flex: none; min-height: 58px; }
.lx-id { min-width: 0; flex: 1; display: grid; }
.lx-id b { font-size: 15.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-id span { font: 500 12px/1.5 var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.lx-call svg { width: 15px; height: 15px; }
.lx-pane .chat-log { padding: 6px 22px 12px; }
.lx-older { text-align: center; font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
/* who sent it: the lead (left, white), the assistant (right, light), Theo (right, brown) */
.chat-m.lx-assistant .chat-b { background: var(--brown-tint); border-color: var(--brown-tint-2); color: var(--ink); }
.chat-m.lx-assistant .chat-b a { color: var(--brown-500); }
.chat-m.failed .chat-b { opacity: .72; }
.lx-st.bad { color: var(--bad); font-weight: 600; }
.lx-ev { display: flex; justify-content: center; margin: 12px auto 10px; max-width: 86%; text-align: center; font-size: 12px; }
.lx-ev span { color: var(--ink-2); font-weight: 600; background: var(--stone-100); border-radius: 14px; padding: 4px 11px; line-height: 1.45; }
.lx-ev time { font: 500 11px/1 var(--mono); color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.lx-foot { flex: none; }
.lx-mode { margin: 0; padding: 8px 16px; font-size: 12.5px; color: var(--warn); background: var(--warn-tint); border-top: 1px solid var(--line); }
.lx-stop { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--stone-50);
  font-size: 13.5px; color: var(--ink-2); }
.lx-stop svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--bad); }
.lx-stop[hidden], .lx-mode[hidden], .lx-foot .chat-form[hidden] { display: none; }
@media (max-width: 860px) {
  /* a phone: the list, or one lead's thread (the panel's header names them, with a back button) */
  .lx { grid-template-columns: minmax(0, 1fr); }
  .lx[data-view="list"] .lx-pane, .lx[data-view="thread"] .lx-list { display: none; }
  .lx-list { border-right: 0; }
  .lx-rows { padding: 4px max(6px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
  .lx-th { min-height: 0; padding: 8px 12px; }
  .lx-th .lx-id { display: none; }
  .lx-pills { justify-content: flex-start; }
  .lx-pane .chat-log { padding: 6px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); }
}

/* ---------------------------------------------------------------- loading
   The frame index.html paints before any script or data (the "boot" shell), and placeholders where something is on
   its way. They pulse gently rather than shimmer: opacity only. */
.sk { display: block; border-radius: 8px; background: var(--stone-100); animation: sk-pulse 1.4s ease-in-out infinite; }
@keyframes sk-pulse { 50% { opacity: .5; } }
.boot .nav a, .boot .tabbar a { pointer-events: none; }
.boot .rail-foot .sk { height: 56px; border-radius: 14px; background: rgba(255, 245, 235, .08); }
.boot .topbar .who .sk { width: 112px; height: 14px; }
.boot .topbar .who .av:empty { background: var(--stone-200); }
/* the page title's place (the size of .ph h1; its own classes, so nothing takes the frame for the page) */
.boot-h { margin-bottom: 22px; }
.boot-h .t { display: block; font: 750 clamp(26px, 3.2vw, 34px)/1.15 var(--display); letter-spacing: -.02em; }
.boot-h .t.sk { width: min(76%, 340px); height: 30px; }
.boot-h .s { width: min(58%, 280px); height: 22px; margin-top: 8px; }
.sk-card { height: 132px; margin-bottom: 16px; }
.sk-card.short { height: 96px; }
/* the frame takes the shape of the section in the address (index.html sets data-at): no Home tiles under "Leads" */
.boot .bk { display: none; }
.boot[data-at="home"] .bk-home, .boot[data-at="leads"] .bk-leads, .boot[data-at="reviews"] .bk-reviews, .boot[data-at="site"] .bk-reviews, .boot[data-at="settings"] .bk-settings { display: block; }
.bk-leads .sk-search { flex: 1; min-width: 200px; max-width: 420px; height: 38px; border-radius: 10px; }
.bk-leads .sk-hist { width: 104px; height: 38px; border-radius: 10px; margin-left: auto; }   /* the History button (Leads redesign) */
.bk-leads .card { padding: 0 18px; }
.bk-leads .sk-row + .sk-row { border-top: 1px solid var(--line); }
.sk-form { display: grid; gap: 8px; }
.sk-form .sk:not(.in) { width: 110px; height: 14px; margin-top: 8px; }
.sk-form .sk:first-child { margin-top: 0; }
@media (max-width: 860px) { .bk-leads .sk-search { height: 44px; min-width: 0; flex: 1 1 0; } .bk-leads .sk-hist { height: 44px; } }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.sk-row .sk:first-child { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.sk-row .sk + .sk { height: 14px; flex: 1; max-width: 220px; }
.field .sk.in, .sk-form .sk.in { height: 42px; border-radius: 10px; }
@media (min-width: 861px) { .boot-h .t.sk { height: 38px; } }
/* the dashboard couldn't load (a weak signal, a server hiccup): say so, with a way to try again */
.oops { display: grid; justify-items: center; gap: 10px; padding: 40px 22px; text-align: center; color: var(--ink-2); }
.oops > svg { width: 34px; height: 34px; color: var(--warn); }
.oops b { color: var(--ink); font-size: 16px; }
.oops .btn { margin-top: 6px; }
.stale { display: flex; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--warn-tint);
  color: var(--warn); font-size: 13.5px; font-weight: 550; }
.stale svg { width: 16px; height: 16px; flex: none; }
.stale span { flex: 1; min-width: 0; }
.stale .btn { flex: none; }
/* a field that just saved says so next to its label for a moment */
.field label .ok { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; color: var(--good); font-weight: 600; font-size: 12.5px;
  animation: toast-in .3s var(--spring); }
.field label .ok svg { width: 14px; height: 14px; }
.input[type="search"] { -webkit-appearance: none; appearance: none; }
.input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
/* below the leads: the spam forms and the spreadsheet, a row each */
.links { display: grid; margin-top: 8px; font-size: 13.5px; }
.links .linkish { justify-self: start; min-height: 40px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- touch
   A phone has no hover: hover looks are only for a mouse (on iOS they'd stick after a tap), and controls show they're
   pressed instead, the moment a finger lands (app.js listens for touchstart so iOS Safari applies :active at all).
   App chrome doesn't start a text selection or a link preview on a long press; call, text and email links keep theirs. */
button.row, a.row { transition: background-color .12s; }
button.row:active, a.row:active { background: var(--stone-100); transition-duration: 0s; }
.seg button { transition: background-color .15s, box-shadow .15s, transform .12s var(--ease); }
.seg button:active { transform: scale(.96); }
.seg button:not([aria-pressed="true"]):active { background: rgba(255, 255, 255, .6); }
.card-h .more, .linkish, .status a, .thumb { transition: opacity .12s, transform .15s var(--ease); }
.card-h .more:active, .linkish:active, .status a:active { opacity: .55; transition-duration: 0s; }
.thumb:active { transform: scale(.985); }
.switch input:active + span::after { width: 22px; }
.switch input:checked:active + span::after { transform: translateX(12px); }
/* small text links: a finger-sized target around them without moving anything */
.card-h .more, .linkish, .status a { position: relative; }
.card-h .more::after, .linkish::after { content: ""; position: absolute; inset: -13px -8px; }
.status a::after { content: ""; position: absolute; inset: -12px -4px; }
.rail, .topbar, .seg, .btn, .grab, .modal-h, .toast, .card-h .more, .tile .k, .label { -webkit-user-select: none; user-select: none; }
.rail a, .topbar a, .card-h .more, a.thumb, a.btn:not([href^="tel:"]):not([href^="sms:"]):not([href^="mailto:"]) { -webkit-touch-callout: none; }
@media (hover: none) { .pw .eye:hover { background: none; color: var(--ink-3); } }

/* ---------------------------------------------------------------- phones: sizes, edges, the top bar */
@media (max-width: 860px) {
  .btn, .btn.sm { --h: 44px; }                                     /* Apple's 44-point minimum, gloves just off */
  .seg { padding: 2px; }
  .seg button { height: 40px; padding: 0 14px; }
  .bar .search input { height: 44px; }
  /* the top bar: under the status bar when there's one to clear (installed to the Home Screen), clear of the camera
     housing and rounded corners sideways, and a long business name shortens instead of wrapping */
  .topbar { height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
    padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .topbar .brand { flex: none; }
  .topbar .who { min-width: 0; }
  .topbar .who .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .who .av { flex: none; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
}
@media (max-width: 640px) {
  .ph .acts { margin-left: 0; width: 100%; }
  .ph .acts .btn { flex: 1; }
  /* the Leads filters scroll sideways on a small phone: the far edge fades while there's more to see */
  .bar .seg.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
}

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

/* ---------------------------------------------------------------- sign-in pages: real stone on the left, a quiet form */
body.auth { min-height: 100vh; min-height: 100dvh; background: var(--snow); }
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 42%) 1fr; }
.auth-stone { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 34px 36px 40px;
  background: linear-gradient(180deg, rgba(20, 12, 7, .25), rgba(20, 12, 7, .05) 40%, rgba(20, 12, 7, .55)), #2A1B12 url(img/auth-stone.webp) center / cover no-repeat; }
.auth-mark { display: inline-flex; align-items: center; gap: 10px; color: #FFF7EF; }
.auth-mark svg { width: 34px; height: 34px; }
.auth-mark b { font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.auth-line { align-self: flex-start; margin: 0; max-width: 360px; padding: 16px 20px; border-radius: 20px; color: #FFF7EF; font: 650 22px/1.25 var(--display); letter-spacing: -.02em;
  background: linear-gradient(180deg, rgba(40, 25, 16, .62), rgba(20, 12, 8, .74)); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 228, 200, .3), inset 0 -1px 0 rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 236, 216, .1), 0 18px 40px -20px rgba(8, 5, 3, .8); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 28px; font-weight: 750; }
.auth-sub { margin: 8px 0 22px; color: var(--ink-2); font-size: 15px; }
.auth-note { margin: -8px 0 18px; padding: 10px 12px; border-radius: 10px; background: var(--brown-tint); color: var(--brown-deep); font-size: 13.5px; }
.auth-form { display: grid; gap: 14px; }
.lab-row { display: flex; align-items: baseline; justify-content: space-between; }
.lab-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lnk, .auth-alt a { color: var(--brown-500); font-weight: 550; font-size: 13px; text-underline-offset: 3px; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw .eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.pw .eye:hover { background: var(--stone-100); color: var(--ink); }
.pw .eye svg { width: 18px; height: 18px; }
.input[data-code] { font: 600 22px/1 var(--mono); letter-spacing: .3em; text-align: center; height: 52px; }
.btn.block { width: 100%; }
.auth-ts:empty { display: none; }
.auth-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-tint); color: var(--bad); font-size: 13.5px; font-weight: 500; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.google svg { width: 18px; height: 18px; }
.auth-alt { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.auth-foot { margin: 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.auth-foot a { color: var(--ink-2); text-underline-offset: 3px; }
.auth-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: var(--brown-tint); color: var(--brown); }
.auth-ic.good { background: var(--good-tint); color: var(--good); }
.auth-ic svg { width: 22px; height: 22px; }
.auth-steps { margin: 8px 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }
.auth-qr:empty { display: none; }
.auth-qr { display: grid; place-items: center; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.auth-key { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--stone-100); }
.auth-key code { flex: 1; font: 600 14px/1.4 var(--mono); letter-spacing: .06em; word-break: break-all; }
.auth-manual { margin: 0 0 16px; font-size: 14px; }
.auth-manual summary { cursor: pointer; color: var(--brown-500); font-weight: 550; font-size: 13.5px; }
.auth-codes { list-style: none; margin: 0 0 14px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; border-radius: 14px; background: var(--stone-100); }
.auth-codes code { font: 600 14px/1.3 var(--mono); letter-spacing: .04em; }
.auth-row { display: flex; gap: 8px; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-stone { min-height: 150px; padding: 22px 20px; background-image: linear-gradient(180deg, rgba(20, 12, 7, .2), rgba(20, 12, 7, .55)), url(img/auth-stone-band.webp); }
  .auth-line { display: none; }
  .auth-main { justify-content: flex-start; padding: 28px 18px 32px; }
  .auth-card h1 { font-size: 25px; }
}

/* ---------- the team's view of a client (view.js), and the switcher behind Gravel ADMIN (switcher.js) ---------- */
/* Gravel ADMIN, top left: a button that opens the switcher */
button.brand { border: 0; background: none; font: inherit; cursor: pointer; text-align: left; border-radius: 12px; transition: background .15s; }
.rail button.brand { width: 100%; padding: 8px; margin: -4px 0 14px; }
@media (hover: hover) { .rail button.brand:hover { background: rgba(255, 245, 235, .08); } }
.rail button.brand:active { background: rgba(255, 245, 235, .12); }
.brand .i { width: 15px; height: 15px; flex: none; color: rgba(255, 240, 225, .62); }
.rail button.brand small { margin-left: auto; }
.topbar button.brand { padding: 6px 8px; margin-left: -8px; }
.topbar button.brand:active { background: var(--stone-100); }
.topbar .brand small { margin-left: 2px; color: var(--ink-3); border-color: var(--line-2); }
.topbar .brand .i { color: var(--ink-3); }
/* the bar on every screen of a client view: whose dashboard this is, read-only, and the way back */
.viewbar { position: sticky; top: 0; z-index: 21; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 clamp(12px, 3vw, 40px);
  background: var(--brown-900); color: #FFF3E6; font-size: 13.5px; }
.viewbar .i { width: 16px; height: 16px; flex: none; }
.vb-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; height: 34px; padding: 0 10px; margin-left: -10px; border: 0; border-radius: 9px;
  background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.vb-who > .i:first-child { color: var(--tan); }
.vb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-name b { color: #FFF; font-weight: 650; }
.vb-ro { flex: none; color: var(--tan); font-weight: 600; }
.vb-who > .i:last-child { color: rgba(255, 240, 225, .6); }
@media (hover: hover) { .vb-who:hover { background: rgba(255, 245, 235, .08); } }
.vb-who:active { background: rgba(255, 245, 235, .12); }
.vb-back { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 12px 0 8px; border-radius: 9px; background: #FFF7EF;
  color: var(--brown-900); font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.vb-back:active { background: var(--tan); }
.viewing .topbar { top: 46px; }
.vb-t { display: flex; align-items: baseline; min-width: 0; }
@media (max-width: 600px) {                       /* a phone: the name gets the whole line, read-only goes under it */
  .viewbar { height: 52px; }
  .viewing .topbar { top: 52px; }
  .vb-t { display: grid; line-height: 1.25; }
  .vb-colon { display: none; }
  .vb-ro { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
}
/* what would act, in a client view: shown as the client sees it, dimmed; a tap says it's read-only */
[data-ro] { opacity: .5; cursor: not-allowed; }
.btn[data-ro][aria-disabled="true"] { pointer-events: auto; }   /* (a disabled .btn lets taps through; a sealed one takes them, to say why) */
[data-ro]:active { transform: none; }
.input[data-ro], .textarea[data-ro] { opacity: 1; background: var(--stone-50); color: var(--ink-2); }
.input[data-ro]:focus, .textarea[data-ro]:focus { box-shadow: none; border-color: var(--line-2); }
.ro-site .card-b { display: grid; gap: 10px; justify-items: start; }
.ro-site h2 { font-size: 18px; }
.ro-site p { margin: 0; }
.ro-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brown-tint); color: var(--brown); }
.ro-ic .i { width: 20px; height: 20px; }
/* the switcher: a popover under Gravel ADMIN on a computer (a sheet on a phone: app.js modal) */
.switcher { position: fixed; z-index: 90; width: 360px; max-height: min(600px, calc(100vh - 90px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); }
@media (prefers-reduced-motion: no-preference) { .switcher { animation: sw-in .16s var(--ease); } }
@keyframes sw-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.switcher .sw { display: flex; flex-direction: column; min-height: 0; padding: 8px; }
.switcher .sw-list { overflow: auto; overscroll-behavior: contain; min-height: 0; }
.sw-list { display: grid; gap: 2px; align-content: start; }
.sw-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.sw-item .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 700 12.5px/1 var(--display); background: var(--stone-100); color: var(--ink-2); }
.sw-admin .av { background: var(--brown); color: #FFF5EC; }
.sw-admin .av .i { width: 17px; height: 17px; }
.sw-item .tx { min-width: 0; flex: 1; }
.sw-item .tx b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-item .tx span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-item .pill { flex: none; }
.sw-item > .i { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.sw-item[aria-current] { background: var(--brown-tint); }
.sw-item[aria-current] > .i { color: var(--brown); }
@media (hover: hover) { .sw-item:hover { background: var(--stone-50); } .sw-item[aria-current]:hover { background: var(--brown-tint); } }
.sw-item:active { background: var(--stone-100); }
.sw-h { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; padding: 12px 10px 8px; margin: 6px 0 0; border-top: 1px solid var(--line); }
.sw-h span { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sw-h small { font-size: 12px; color: var(--ink-3); }
.sw-q { position: relative; display: block; margin: 0 2px 6px; }
.sw-q .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.sw-q input { padding-left: 36px; height: 40px; }
.sw-empty { padding: 14px 10px; color: var(--ink-3); font-size: 13.5px; margin: 0; }
.scrim .sw { margin: 0 -10px; }
.scrim .sw-q { position: sticky; top: -8px; z-index: 1; background: var(--paper); padding: 4px 0; margin: 0 2px 2px; }
@media (max-width: 860px) { .sw-q input { height: 44px; font-size: 16px; } .sw-item { padding: 11px 10px; } }

/* ---------------------------------------------------------------- custom domains: "Your web address" (domains.js) and
   the team's Domain panel (admin-domains.js). Values to copy wrap anywhere, so a long domain or code never pushes the
   page sideways at 320px */
.dm .card-h { flex-wrap: wrap; row-gap: 6px; }
.dm-pill { margin-left: auto; }
.dm-b { display: grid; gap: 14px; min-width: 0; }
.dm-b > * { min-width: 0; }
.dm-now { font-size: 14.5px; }
.dm-lede { font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.dm-small { font-size: 13px; }
.dm-act, .dm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dm-form { display: grid; gap: 14px; }
.dm-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dm-sub .input { max-width: 160px; }
.dm-sub span { color: var(--ink-3); font-size: 14px; }
.dm-status { font-size: 14px; color: var(--ink-2); }
.dm-status:empty { display: none; }
.dm-steps { display: grid; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.dm-live { display: grid; gap: 10px; }
.dm-recs { display: grid; gap: 8px; }
.dm-recs-h { font-weight: 650; color: var(--ink); font-size: 14.5px; }
.dm-rec { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); min-width: 0; }
.dm-type { flex: none; margin-top: 7px; font: 600 11.5px/1 var(--mono); letter-spacing: .04em; padding: 6px 8px; border-radius: 7px; background: var(--stone-100); color: var(--ink-2); }
.dm-rec dl { margin: 0; flex: 1; min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.dm-rec dt { color: var(--ink-3); font-size: 13px; }
.dm-rec dd { margin: 0; min-width: 0; }
.dm-list { margin: 0; padding: 0; list-style: none; counter-reset: dm; display: grid; gap: 12px; }
.dm-list > li { counter-increment: dm; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: 13px; background: var(--stone-50);
  display: grid; gap: 8px; overflow-wrap: anywhere; min-width: 0; }
.dm-list > li::before { content: counter(dm); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--brown); color: #FFF7EF;
  display: grid; place-items: center; font: 700 13px/1 var(--body); }
.dm-st { font-weight: 650; color: var(--ink); font-size: 15px; }
.dm-list p { margin: 0; line-height: 1.65; }
.dm-list b, .dm-notes b { color: var(--ink); font-weight: 600; }
.dm-v { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 100%; vertical-align: middle; margin: 2px 0; }
.dm-b code, .dm-v code, .adm-dom code { font: 500 13px/1.35 var(--mono); background: var(--brown-tint); color: var(--brown-deep); padding: 3px 7px; border-radius: 7px;
  overflow-wrap: anywhere; word-break: break-all; }
/* the nameservers: each chip whole on one line, the row wrapping between chips */
.adm-dom .ns-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.adm-dom .ns-chips code { white-space: nowrap; word-break: normal; overflow-wrap: normal; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dm-copy { height: 32px; min-width: 58px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--paper); font: 600 12.5px/1 var(--body);
  color: var(--ink); cursor: pointer; box-shadow: var(--sh-1); transition: background .15s, transform .12s var(--ease); }
.dm-copy.done { background: var(--good-tint); color: var(--good); border-color: #BFDCC9; }
.dm-copy:active { transform: scale(.96); }
.dm-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.dm-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--info-tint); color: var(--info); font-size: 14px; font-weight: 550; }
.dm-note.bad { background: var(--bad-tint); color: var(--bad); }
.dm-note svg, .dm-hints svg { margin-top: 2px; }
.dm-check, .dm-rows { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.dm-check li, .dm-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); min-width: 0; }
.dm-check li:first-child, .dm-rows li:first-child { border-top: 0; }
.dm-check .tk, .dm-rows .tk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--stone-300); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.dm-check .ok .tk, .dm-rows .ok .tk { background: var(--good); border-color: var(--good); color: #FFF; }
.dm-rows .warn .tk { background: var(--warn-tint); border-color: var(--warn-tint); color: var(--warn); }
.dm-check .tk svg, .dm-rows .tk svg { width: 14px; height: 14px; }
.dm-check .tx, .dm-rows .tx { flex: 1; min-width: 0; }
.dm-check b, .dm-rows b { display: block; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.dm-check .tx > span, .dm-rows .tx > span { display: block; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.dm-check .ok .tx > span { color: var(--good); font-weight: 550; }
.dm-hints { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-hints li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: var(--warn-tint); color: #7A4508; font-size: 14px; overflow-wrap: anywhere; }
.dm-when { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.dm-when svg { width: 14px; height: 14px; }
.dm-prob { display: grid; gap: 6px; justify-items: start; padding: 14px; border-radius: 13px; background: var(--warn-tint); border: 1px solid #F1DDBF; }
.dm-prob.bad { background: var(--bad-tint); border-color: #F2CFCB; }
.dm-prob b { font-size: 15px; }
.dm-prob p { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.dm-prob .btn { margin-top: 4px; }
.dm-mail { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.dm-help { font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }   /* (a row of its own per link when it wraps: their tap areas never overlap) */
.dm-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.linkish.danger, .btn.ghost.danger { color: var(--bad); }
.dm-share { display: grid; gap: 12px; }
.dm-share .input { font-size: 13px; }
.adm-dom { display: grid; gap: 14px; min-width: 0; }
.adm-dom .kv { font-size: 13.5px; }
.adm-dom details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.adm-dom summary { cursor: pointer; font-weight: 600; font-size: 13.5px; min-height: 28px; display: flex; align-items: center; }
.adm-dom pre { margin: 8px 0 0; font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); max-height: 360px; overflow: auto; }
/* the lean card's one status line (a dot in its colour, then anything wrong in bold), and its single Details fold */
.adm-st { position: relative; margin: 0; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.adm-st::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--stone-300); }
.adm-st.good::before { background: var(--good); }
.adm-st.info::before { background: var(--info); }
.adm-st.warn::before { background: var(--warn); }
.adm-st.bad::before { background: var(--bad); }
.adm-st b { font-weight: 600; }
.adm-st b::before { content: " · "; color: var(--ink-3); font-weight: 400; }
.adm-st b.bad { color: var(--bad); }
.adm-st b.warn { color: var(--warn); }
.adm-st b.info { color: var(--info); }
.adm-dom details.adm-more { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0 0; }
.adm-more > summary { list-style: none; gap: 6px; color: var(--ink-2); width: max-content; }
.adm-more > summary::-webkit-details-marker { display: none; }
.adm-more > summary svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.adm-more[open] > summary svg { transform: rotate(180deg); }
.adm-more-b { display: grid; gap: 14px; margin-top: 10px; min-width: 0; }
.adm-hosts { display: grid; gap: 8px; }
.adm-host { padding: 10px 12px; border-radius: 11px; background: var(--stone-50); border: 1px solid var(--line); font-size: 13px; display: grid; gap: 3px; overflow-wrap: anywhere; }
.adm-host b { font-size: 13.5px; }
.adm-ev { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; }
.adm-ev li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
.adm-ev time { color: var(--ink-3); font-family: var(--mono); }
/* v2: the verdict up front, the one tap with the manual steps under it, the address without www as a line, then a card */
.dm-verdict { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-verdict li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.dm-verdict li b { color: var(--ink); font-weight: 650; }
.dm-verdict .tk { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--stone-300); flex: none; display: grid; place-items: center; }
.dm-verdict .ok .tk { background: var(--good); border-color: var(--good); color: #FFF; }
.dm-verdict .tk svg { width: 12px; height: 12px; }
.dm-mail-ok { color: var(--ink-3); }
.dm-tap { display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 13px; background: var(--good-tint); border: 1px solid #CFE6D7; }
.dm-tap .dm-small { color: var(--ink-2); }
.dm-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; }
.dm-or::before, .dm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dm-part { display: grid; gap: 10px; }
.dm-bare-line { display: grid; gap: 10px; }
.dm-bare { display: grid; gap: 10px; }
.dm-bare-card { display: grid; gap: 12px; padding: 16px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--stone-50); min-width: 0; }
.dm-bare-card h3 { margin: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.dm-bare-card .dm-list > li { background: var(--paper); }
.dm-guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dm-guides .linkish { min-height: 44px; text-align: left; font-size: 15px; }
.dm-guide-act { margin-top: 12px; }
@media (max-width: 860px) {
  .dm-copy { height: 44px; min-width: 66px; font-size: 14px; border-radius: 11px; }
  .dm-tap-b { width: 100%; justify-content: center; }
  .dm-list > li { padding: 14px 12px 14px 46px; }
  .dm-list > li::before { left: 12px; }
  .dm-share .input { font-size: 16px; }
}
@media (hover: hover) and (pointer: fine) {
  .dm-copy:hover { background: var(--stone-50); border-color: var(--stone-300); }
  .dm-copy.done:hover { background: var(--good-tint); }
}
@media (prefers-reduced-motion: reduce) { .dm-check .tk, .dm-copy { transition: none; } }
/* ---------------------------------------------------------------- end custom domains */

/* ---------------------------------------------------------------- the plan tag follows Stripe (api/plans.js; admin.js, client.js)
   The console: the tag (Past due amber, Cancelled red, "locks <date>" / "offline since <date>" under it, "· cancels <date>"
   beside a paid plan), the Test chip, the bell top right (in each screen's header on a computer, the top bar on a phone),
   the read-only note in Details, Follow Stripe's confirmation list. The client: the banner that can't be closed, and the
   lock screen. */
.ptag-w { display: inline-flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; vertical-align: middle; }
.ptag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font: 650 11.5px/1 var(--body); white-space: nowrap; }
.ptag.warn { background: var(--warn-tint); color: var(--warn); box-shadow: inset 0 0 0 1px #F1DDBF; }
.ptag.bad { background: var(--bad-tint); color: var(--bad); box-shadow: inset 0 0 0 1px #F2CBC7; }
.ptag-s { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tbl .ptag-w { flex-direction: column; align-items: flex-start; gap: 3px; }
.test-chip { margin-left: 6px; height: 20px; padding: 0 7px; font-size: 11px; color: var(--ink-2); vertical-align: middle; }
.biz-cell .test-chip { margin: 0 0 0 6px; }
.ph .ad-bell { align-self: flex-start; }
.ph .acts + .ad-bell { margin-left: 0; }
.topbar .ad-bell { display: none; }
@media (max-width: 860px) {
  .ph .ad-bell { display: none; }
  .topbar .ad-bell { display: grid; margin-left: 10px; width: 42px; height: 42px; border-radius: 12px; box-shadow: none; }
  .topbar .ad-bell svg { width: 20px; height: 20px; }
}
.ad-notes .row { min-height: 64px; }
/* a day-5 bell (stuck on a row): its Text them under it */
.ad-stuck { border-top: 1px solid var(--line); min-width: 0; }
.rows .ad-stuck:first-child { border-top: 0; }
.ad-stuck .row { border-top: 0; width: 100%; }
.ad-stuck-x { margin: -4px 18px 12px 66px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* the Test site and Follow Stripe switches explain themselves in a sentence: it wraps (a .tog's line is one line, which
   would push the column wider than the screen) */
#testCard .tog small, #followCard .tog small { white-space: normal; overflow: visible; }
.fol-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--stone-100); color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.fol-note svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.fol-state { font-size: 13px; margin-top: 10px; }
.fol-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); max-height: 40vh; overflow: auto; }
.hi-flash { animation: hi-flash 2.4s ease-out 1; }
@keyframes hi-flash { 0%, 40% { background: var(--brown-tint); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .hi-flash { animation: none; background: var(--brown-tint); } }

/* the client: the banner during the 14 days (no close button: it goes when the payment does), on every screen */
.plan-banner-wrap { max-width: 1180px; margin: 0 auto; padding: 18px clamp(18px, 3vw, 40px) 0; }
.plan-banner { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--bad-tint);
  border: 1px solid #F2CBC7; color: #7A1A14; }
.plan-banner.ended { background: var(--warn-tint); border-color: #F1DDBF; color: #6E3E07; }
.plan-banner.ending { background: var(--paper); border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-1); }
.plan-banner.ending > svg { color: var(--ink-3); }
.plan.custom { background: var(--brown-tint); color: var(--brown); }
.plan-banner > svg { width: 20px; height: 20px; flex: none; align-self: flex-start; margin-top: 2px; }
.plan-banner p { flex: 1 1 260px; min-width: 0; font-size: 14.5px; line-height: 1.45; font-weight: 550; }
.plan-banner .btn { flex: none; }
.plan-banner + .wrap { padding-top: 18px; }
@media (max-width: 860px) {
  .plan-banner-wrap { padding: 12px 16px 0; }
  .plan-banner { padding: 12px 14px; }
  .plan-banner .btn { width: 100%; min-height: 46px; justify-content: center; }
}
/* the lock screen: every section of a locked client's dashboard */
.plan-lock { max-width: 520px; margin: clamp(24px, 8vh, 72px) auto 40px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.plan-lock > .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--stone-100); color: var(--ink-2); }
.plan-lock > .ic svg { width: 26px; height: 26px; }
.plan-lock h1 { font-size: clamp(26px, 4vw, 32px); font-weight: 750; }
.plan-lock p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.plan-lock .btn.lg { min-width: 220px; justify-content: center; margin-top: 6px; }
.plan-lock .small { font-size: 13.5px; color: var(--ink-3); }
.plan-lock .linkish { color: var(--ink-3); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; padding: 10px; min-height: 44px; }

/* ---------------------------------------------------------------- the Setup page (setup.js; Theo, 24 Oct 2026)
   The top of Home while setup is open: the page's name with the business beside it, the top line (the first thing to
   do as a big card), every row with its label in words, the footer; the normal Home under it. Phone first */
.su { margin-bottom: 26px; }
.su-ph { margin-bottom: 14px; align-items: baseline; }
.su-ph > div { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.su-biz { margin: 0 !important; font: 600 15px/1.3 var(--body); color: var(--ink-3) !important; }
.su-top { padding: 18px 18px 20px; margin-bottom: 12px; border-color: var(--brown-tint-2); }
.su-top.bad { border-color: #F2CBC7; }
.su-top-h h2 { font-size: clamp(22px, 2.6vw, 26px); font-weight: 750; }
.su-sub { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.su-card { display: grid; gap: 12px; }
.su-top .su-card { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.su-card h3 { font-size: 18px; font-weight: 700; }
.su-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.su-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.su-more { font-size: 14px; }
.su-link { font-size: 14px; }
.su-facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.su-facts > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: baseline; }
.su-facts > div:first-child { border-top: 0; }
.su-facts dt { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.su-facts dd { margin: 0; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.su-facts .pill { vertical-align: 1px; }
.su-fixed { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.su-facts span + .su-fixed { margin-top: 3px; }
.su-list { margin-bottom: 10px; }
.su-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.su-rows > li { border-top: 1px solid var(--line); }
.su-rows > li:first-child { border-top: 0; }
.su-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; width: 100%;
  border: 0; background: none; text-align: left; font: inherit; color: inherit; min-height: 56px; }
button.su-row { cursor: pointer; }
@media (hover: hover) { button.su-row:hover { background: var(--stone-50); } }
button.su-row:active { background: var(--stone-100); }
.su-lab { display: inline-flex; align-items: center; gap: 6px; justify-self: start; max-width: 100%; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: var(--stone-100); color: var(--ink-2); line-height: 1.25; }
.su-lab svg { width: 13px; height: 13px; flex: none; }
.su-lab.turn { background: var(--brown); color: #FFF5EC; }
.su-lab.on_it { background: var(--info-tint); color: var(--info); }
.su-lab.waiting { background: var(--warn-tint); color: var(--warn); }
.su-lab.done { background: var(--good-tint); color: var(--good); }
.su-lab.attention { background: var(--bad-tint); color: var(--bad); }
.su-tx { min-width: 0; }
.su-tx b { display: block; font-weight: 650; font-size: 14.5px; }
.su-tx > span { display: block; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.su-go svg { width: 16px; height: 16px; color: var(--ink-3); }
.su-foot { font-size: 13px; color: var(--ink-3); line-height: 1.55; padding: 0 4px; }
.home-ph h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; }
@media (max-width: 560px) {
  .su-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab go" "tx go"; gap: 6px 10px; padding: 12px 14px; }
  .su-lab { grid-area: lab; }
  .su-tx { grid-area: tx; }
  .su-go { grid-area: go; }
  .su-top { padding: 16px 14px 18px; }
  .su-acts .btn { flex: 1 1 100%; min-height: 46px; }
  .su-facts > div { grid-template-columns: 70px minmax(0, 1fr); }
}
/* the one-time card once every row is done, and the folded row on Home when they kept the list */
.su-exit { padding: 24px 22px; margin-bottom: 22px; display: grid; gap: 12px; border-color: #BFD9C8; }
.su-exit-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--good-tint); color: var(--good); }
.su-exit-ic svg { width: 22px; height: 22px; }
.su-exit h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 750; }
.su-exit h2 { font-size: 16px; font-weight: 700; margin-top: 4px; }
.su-how { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.su-kept { margin-bottom: 16px; }
.su-kept summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; min-height: 48px; font-size: 14.5px; }
.su-kept summary::-webkit-details-marker { display: none; }
.su-kept summary > svg:first-child { width: 18px; height: 18px; color: var(--good); }
.su-kept summary > svg:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.su-kept[open] summary > svg:last-child { transform: rotate(180deg); }
.su-kept[open] summary { border-bottom: 1px solid var(--line); }
/* "Save Gravel as a contact" (the Phone line row's card, the exit card), and the red card on Home after setup (setup.js) */
.su-contact { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--stone-50); }
.su-contact .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brown-tint-2); color: var(--brown); }
.su-contact .ic svg { width: 17px; height: 17px; }
.su-contact .tx b { display: block; font-size: 14px; font-weight: 650; }
.su-contact .tx span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.su-broke { margin-bottom: 16px; }
.su-broke .su-card { margin-top: 0; padding-top: 0; border-top: 0; }
.su-broke h3 { color: var(--bad); }
@media (max-width: 520px) {
  .su-contact { grid-template-columns: auto minmax(0, 1fr); }
  .su-contact .btn { grid-column: 1 / -1; min-height: 44px; }
}
/* Register for texting, in the Setup page's sheet */
.ts-sheet .card-b { padding: 4px 2px 8px; }
/* the team's Setup board on a client's page (admin-setup.js) and the client list's Setup column */
.sb .card-h .sb-sum { margin-left: auto; font-size: 13px; text-align: right; }
.sb-rows { display: grid; }
.sb-row { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sb-row:first-child { border-top: 0; padding-top: 2px; }
.sb-top { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.sb-top b { font-size: 15px; }
/* the Website row's flag on Gravel: the site's phone isn't the business line */
.sb-flag { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border: 1px solid #F1DDBF; background: var(--warn-tint); border-radius: 10px; font-size: 13.5px; color: var(--ink); }
.sb-flag svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--warn); }
.sb-kv { margin-top: 2px; font-size: 13.5px; }
.sb-link { word-break: break-all; }
.sb-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sb-small { font-size: 12.5px; }
.sb-unl { border: 1px solid #F1DDBF; background: var(--warn-tint); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; font-size: 13.5px; }
.sb-unl-row { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.sb-guess { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px; }
.sb-guess p { flex-basis: 100%; }
.sb-check { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; cursor: pointer; }
.sb-texts { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; display: grid; gap: 6px; }
.sb-texts ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.sb-texts small { display: block; color: var(--ink-3); font-size: 12.5px; }
.su-cell b { display: block; font-weight: 600; font-size: 13.5px; }
.su-cell small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; }

/* Settings' "Your business line" (27 Oct 2026): the number by the title; each sound a play button with its words beside
   it (under it on a phone); the texts a caller gets after pressing 1 as bubbles, under the words they answer */
.bl-num { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.bl-b { gap: 18px; }
.bl-ring { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.bl-grp { display: grid; gap: 10px; }
.bl-grp h3 { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.bl-row { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 6px 14px; align-items: start; }
.bl-play { width: 100%; justify-content: flex-start; gap: 7px; }
.bl-play .i { width: 16px; height: 16px; flex: none; }
.bl-play.on { color: var(--brown); }
.bl-w { font-size: 14px; line-height: 1.45; color: var(--ink-2); padding-top: 6px; overflow-wrap: anywhere; }
.bl-then { display: grid; gap: 6px; justify-items: start; margin-left: calc(11.5rem + 14px); }
.bl-then .label { margin: 0; }
.bl-text { max-width: 100%; font-size: 13.5px; overflow-wrap: anywhere; }
.bl-once { font-size: 12px; margin-top: -2px; }
.bl-note, .bl-pick { margin: 0; font-size: 13px; }
.bl-fix { margin: 0; display: flex; justify-content: flex-end; }
.bl-fix .linkish { font-size: 13px; color: var(--ink-3); }
.bl-row .sk { display: block; }
.vn { gap: 10px; }
.vn-now { margin: 0; font-size: 13.5px; }
@media (max-width: 560px) {
  .bl-row { grid-template-columns: minmax(0, 1fr); }
  .bl-play { width: auto; justify-self: start; }
  .bl-w { padding-top: 0; }
  .bl-then { margin-left: 0; }
}
@media (max-width: 860px), (pointer: coarse) { .bl-play, .bl-fix .linkish { min-height: 44px; } }   /* a full-size target on a phone */

.bl-num { margin-left: auto; }                      /* the number at the title row's right end */

/* Leads, the way the owner works them (Theo, 27 Oct 2026): search, then History at the toolbar's right end; Fresh and
   Categorized (calls, texts and forms pooled), each a card whose title folds it (on a phone too: a 44px+ target),
   10 rows and Load more; History is a drawer like a lead's, each row with Remove beside it */
.lbar .search { max-width: 420px; }
.lh-btn { margin-left: auto; gap: 7px; }
.lh-btn .i { width: 16px; height: 16px; }
.lh-n { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--stone-100); color: var(--ink-2); font: 600 11.5px/1.2 var(--mono); text-align: center; }
.lh-n:empty { display: none; }
#leadlist { display: grid; gap: 14px; }
.ls-t { margin: 0; font-size: inherit; font-weight: inherit; }
.ls-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 18px; background: none; border: 0; border-radius: var(--r);
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ls-h:focus-visible { outline: 2px solid var(--brown); outline-offset: -2px; }
.ls-tt { font-size: 16px; font-weight: 700; }
.ls-n { margin-left: auto; min-width: 26px; padding: 3px 8px; border-radius: 999px; background: var(--stone-100); color: var(--ink-2); font: 600 12px/1.2 var(--mono); text-align: center; }
.ls-c { display: grid; place-items: center; width: 20px; height: 20px; color: var(--ink-3); transition: transform .18s ease; transform: rotate(90deg); }
.ls-c .i { width: 16px; height: 16px; }
.ls[data-folded] .ls-c { transform: none; }
.ls[data-folded] .ls-b { display: none; }
.ls-b { border-top: 1px solid var(--line); }
.ls-b .empty { padding: 26px 20px; }
.ls-more { margin: 0; padding: 10px 18px 14px; text-align: center; border-top: 1px solid var(--line); }
.lh-sub { margin: 0; font-size: 13.5px; }
.lh-rows { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.lh-row { display: flex; align-items: center; border-top: 1px solid var(--line); min-width: 0; }
.lh-rows .lh-row:first-child { border-top: 0; }
.lh-row > .row { flex: 1; border-top: 0; padding-right: 8px; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.lh-rm { flex: none; margin-right: 12px; }
.lh-end { display: grid; justify-items: center; min-height: 1px; }
.lead-tagh { display: block; margin-top: 8px; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .ls-c { transition: none; } }
@media (max-width: 860px), (pointer: coarse) { .ls-h { min-height: 56px; } .lh-btn, .lh-rm, .ls-more .btn { min-height: 44px; } }
@media (max-width: 560px) {
  .lbar .search { min-width: 0; flex: 1 1 0; }
  .lh-row { align-items: stretch; }
  .lh-rm { align-self: center; margin-right: 10px; }
}

/* ── the Ads tab (admin-ads.js): Gravel's own ad funnel ─────────────────────────────────────────────────────────── */
.ads-setup { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 16px; }
.ads-setup .pill { border: 0; cursor: pointer; height: 28px; font: inherit; font-size: 12.5px; font-weight: 600; }
.ads-nums { margin-bottom: 16px; }
.ads-nums .card-b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ads-stat { display: grid; gap: 3px; padding: 4px 0 4px 14px; border-left: 2px solid var(--line); }
.ads-stat:first-child { border-left-color: var(--brown-500); }
.ads-stat b { font: 750 32px/1.05 var(--display); letter-spacing: -.02em; }
.ads-stat small { color: var(--ink-3); font-size: 12.5px; }
.ads-stat .ads-cost { color: var(--brown-500); font-weight: 600; min-height: 1.2em; }
.ads-foot { grid-column: 1 / -1; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.ads-foot b { color: var(--ink); }
.ads-rows { display: grid; gap: 0; padding-top: 6px; }
.ads-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ads-row:last-child { border-bottom: 0; }
.ads-who { display: grid; gap: 1px; min-width: 0; }
.ads-who b { font-weight: 650; }
.ads-who span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-right { text-align: right; font-size: 13.5px; }
.ads-when { font-weight: 650; font-variant-numeric: tabular-nums; }
.ads-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.ads-steps { display: grid; gap: 8px; }
.ads-step { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 48px 44px; gap: 12px; align-items: center; font-size: 13.5px; }
.ads-bar { height: 10px; border-radius: 99px; background: var(--stone-100); overflow: hidden; }
.ads-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brown-500), var(--brown)); }
.ads-step b { text-align: right; font-weight: 650; }
.ads-step small { text-align: right; font-size: 12px; }
.ads-adtbl tbody tr { cursor: default; }
.ads-status { flex-wrap: wrap; height: auto; }
.ads-set { display: grid; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ads-set:last-child { border-bottom: 0; }
.ads-week { display: grid; gap: 6px; }
.ads-day { display: grid; grid-template-columns: 72px 1fr auto 1fr; gap: 8px; align-items: center; font-size: 14px; }
.ads-day label { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.ads-day .input { height: 38px; font-size: 16px; }
.ads-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ads-spend { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.ads-spend .input { font-size: 16px; }
.ads-spent { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ads-spent span { display: grid; gap: 1px; padding: 6px 4px; border-radius: 8px; background: var(--stone-50); text-align: center; font-size: 12.5px; }
.ads-link { display: flex; gap: 8px; align-items: flex-start; }
.ads-link code { flex: 1; min-width: 0; font: 500 11.5px/1.5 var(--mono); padding: 8px 10px; border-radius: 8px; background: var(--stone-50); border: 1px solid var(--line); overflow-wrap: anywhere; }
.ads-texts { display: grid; gap: 8px; }
.ads-text { display: grid; gap: 4px; padding: 8px 10px; border-radius: 8px; background: var(--stone-50); border: 1px solid var(--line); font-size: 13px; }
.ads-text small { color: var(--ink-3); overflow-wrap: anywhere; line-height: 1.45; }
.ads-text .pill { font-size: 11.5px; }
/* the booking assistant's thread (admin-ads.js convoBox): theirs left, the assistant's right, Theo's alerts between */
.as-thread { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; padding: 8px; border-radius: 10px; background: var(--stone-50); border: 1px solid var(--line); }
.as-msg { display: grid; gap: 2px; max-width: 85%; padding: 7px 10px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.as-msg p { margin: 0; overflow-wrap: anywhere; }
.as-msg small { font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere; }
.as-msg.in { justify-self: start; background: #fff; border: 1px solid var(--line); }
.as-msg.out { justify-self: end; background: var(--brown-tint); }
.as-msg.team { justify-self: end; background: var(--brown); color: #FFF7EF; }
.as-msg.team small { color: rgba(255, 247, 239, .78); }
.as-msg.off { opacity: .55; text-decoration: line-through; }
.as-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--ink-3); padding: 2px 4px; }
.as-note svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
/* the Ads tab's per-ad view (admin-ads.js scorecard, bestCard, setsCard, openAd; 22 Nov 2026): Kevin's targets judged in
   the semantic colours (good / warn / bad, with the word beside them, never colour alone), the brand's brown only as a
   mark. The 3 ways to book: brown, blue, gold (checked for colour-blind separation; each carries its label and count) */
.ads-sync { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: -8px 0 16px; font-size: 13px; }
.ads-sync > .muted { display: inline-flex; align-items: center; gap: 6px; }
.ads-sync > .muted svg { width: 15px; height: 15px; color: var(--good); }
.ads-sync .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ads-camp { width: auto; max-width: 280px; height: 36px; padding-right: 30px; font-size: 13.5px; font-weight: 600; }
.ads-score { margin-bottom: 16px; }
.ads-score ~ .card { margin-bottom: 16px; }            /* the Ads tab's cards: a gap between each (they used to touch) */
.ads-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ads-tile { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--stone-50); border-left: 3px solid var(--line-2); }
.ads-tile b { font: 720 24px/1.1 var(--display); letter-spacing: -.02em; margin: 2px 0 1px; }
.ads-tile small { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.ads-tile .label { overflow-wrap: anywhere; }
.ads-gw { font-style: normal; font-weight: 650; }
.ads-tile.g-good { border-left-color: var(--good); background: var(--good-tint); } .ads-tile.g-good .ads-gw { color: var(--good); }
.ads-tile.g-close { border-left-color: var(--warn); background: var(--warn-tint); } .ads-tile.g-close .ads-gw { color: var(--warn); }
.ads-tile.g-bad { border-left-color: var(--bad); background: var(--bad-tint); } .ads-tile.g-bad .ads-gw { color: var(--bad); }
.ads-tile.g-early { border-left-color: var(--stone-300); } .ads-tile.g-early .ads-gw { color: var(--ink-2); }
.ads-ways { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ads-wbar { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--stone-100); }
.ads-wbar i { display: block; min-width: 6px; }
.ads-wl { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.ads-wl span { display: inline-flex; align-items: center; gap: 6px; }
.ads-wl i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.w-cal { background: #9A5A2C; } .w-theo { background: #2F6FA3; } .w-asst { background: #C9922A; }
.ads-ways > small { font-size: 12px; }
.ads-note { font-size: 12.5px; line-height: 1.45; margin-top: 10px; }
.ads-setcard .ads-note { margin: 0; padding: 10px 18px 14px; }
.ads-defs { margin-top: 12px; font-size: 13px; }
.ads-defs summary { cursor: pointer; color: var(--brown-500); font-weight: 550; width: max-content; max-width: 100%; }
.ads-defs dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
.ads-defs dt { font-weight: 600; } .ads-defs dd { margin: 0; color: var(--ink-2); }
.ads-best { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ads-best-t { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ads-best-t b { font: 720 22px/1.1 var(--display); letter-spacing: -.02em; margin: 2px 0; }
.ads-best-n { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-best-t small { font-size: 12px; line-height: 1.35; }
.ads-best-t.none { background: var(--stone-50); cursor: default; }
.ads-best-t.none .ads-best-n { color: var(--ink-3); font-weight: 550; white-space: normal; }
@media (hover: hover) { button.ads-best-t:hover { border-color: var(--brown-500); } }
button.ads-best-t:active { transform: scale(.985); }
.ads-sets td:first-child, .ads-sets th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); min-width: 200px; max-width: 280px; }
.ads-sets .ads-adrow td { background: var(--stone-50); }
.ads-sets td.r { white-space: nowrap; }
@media (hover: hover) { .ads-sets tbody tr:hover td { background: var(--stone-100); } }
.ads-rowbtn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 32px; }
.ads-rowbtn svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.ads-rowbtn[aria-expanded="true"] svg { transform: rotate(90deg); }
.ads-rowbtn span { display: grid; min-width: 0; }
.ads-rowbtn b { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-rowbtn small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-rowbtn.ad { padding-left: 24px; }
.ads-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ads-dot.good { background: var(--good); } .ads-dot.close { background: var(--warn); } .ads-dot.bad { background: var(--bad); }
.ads-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.ads-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ads-mini .ads-tile { padding: 8px 10px; }
.ads-mini .ads-tile b { font-size: 19px; }
.ads-dsec { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.ads-dsec > small { font-size: 12px; line-height: 1.4; }
.ads-path { display: grid; gap: 7px; }
.ads-pstep { display: grid; grid-template-columns: minmax(104px, 140px) minmax(0, 1fr) 54px 42px; gap: 10px; align-items: center; font-size: 13px; }
.ads-pstep b { text-align: right; font-weight: 650; } .ads-pstep small { text-align: right; font-size: 12px; }
.ads-kv { font-size: 13.5px; gap: 7px 14px; }
.ads-kv small { font-weight: 400; }
.ads-kv .pill { height: 20px; font-size: 11.5px; vertical-align: 1px; }
.ads-chart { margin: 0; display: grid; gap: 4px; }
.ads-chart figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ads-chart figcaption small { font-size: 12px; }
.ads-chart svg { display: block; width: 100%; height: 85px; overflow: visible; }
.ads-chart .spend { fill: var(--brown-500); }
.ads-chart .leads { fill: #2F6FA3; }
.ads-chart .hit { fill: transparent; }
.ads-chart g:hover .spend, .ads-chart g:hover .leads { opacity: .8; }
.ads-chart .base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ads-chart-x { display: flex; justify-content: space-between; font-size: 11.5px; }
.ads-dleads { display: grid; }
.ads-lrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ads-lrow:last-child { border-bottom: 0; }
.ads-lrow > span:first-child { display: grid; min-width: 0; }
.ads-lrow small { font-size: 12px; }
.ads-assets { display: grid; gap: 8px; }
.ads-asset { display: grid; gap: 4px; padding: 8px 10px; border-radius: 8px; background: var(--stone-50); border: 1px solid var(--line); }
.ads-asset.top { border-color: #BFDCC9; background: var(--good-tint); }
.ads-asset p { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ads-asset small { font-size: 12px; }
.ads-spent span.meta { background: var(--info-tint); position: relative; }
.ads-spent span.meta i { position: absolute; top: 2px; right: 4px; font: 600 9px/1 var(--mono); font-style: normal; color: var(--info); }
@media (max-width: 1100px) { .ads-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ads-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ads-tile b { font-size: 21px; }
  .ads-best { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ads-camp { max-width: none; flex: 1 1 100%; }
  .ads-range { display: flex; width: 100%; }
  .ads-range button { flex: 1 1 0; justify-content: center; padding: 0 6px; }
  .ads-setup .pill { white-space: normal; height: auto; min-height: 28px; padding: 5px 10px; text-align: left; line-height: 1.3; }
  .ads-sets td:first-child, .ads-sets th:first-child { min-width: 150px; max-width: 170px; }
  .ads-sets td, .ads-sets th { padding: 11px 10px; }
  .ads-sets .ads-rowbtn b { white-space: normal; overflow-wrap: anywhere; }
  .ads-score .card-h, .ads-bestcard .card-h, .ads-setcard .card-h { flex-wrap: wrap; row-gap: 2px; }
  .ads-score .card-h > span, .ads-bestcard .card-h > span, .ads-setcard .card-h > span { flex-basis: 100%; }
}
@media (max-width: 440px) {
  .ads-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads-pstep { grid-template-columns: minmax(0, 1fr) 50px 40px; gap: 4px 10px; }
  .ads-pstep .ads-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 860px) {
  .ads-nums .card-b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads-step { grid-template-columns: minmax(0, 1fr) 40px 40px; }
  .ads-step .ads-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Ads tab: folding sections (Theo, 22 Nov 2026) */
.card.foldable > .card-h { cursor: pointer; user-select: none; }
.card.foldable > .card-h > .fold-btn { margin-left: auto; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink-3); cursor: pointer; }
.card.foldable > .card-h > .fold-btn:hover { background: var(--line); color: var(--ink); }
.card.foldable > .card-h > .fold-btn:focus-visible { outline: 2px solid var(--brown-500); outline-offset: 2px; }
.card.foldable > .card-h > .fold-btn svg { transition: transform .18s var(--ease); }
.card.foldable.folded > .card-h > .fold-btn svg { transform: rotate(-90deg); }
.card.foldable.folded > :not(.card-h) { display: none !important; }
.card.foldable.folded > .card-h { padding-bottom: 16px; }
.card-h > .fold-n { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .card.foldable > .card-h > .fold-btn svg { transition: none; } }

/* Settings' "Your business line": Save as a contact (28 Nov 2026) */
.bl-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; }
.bl-save small { flex: 1 1 200px; }
.su-tx .su-save { display: inline-flex; align-items: center; min-height: 32px; margin-top: 2px; font-size: 13px; }
