:root {
  --board: #EDEDEB; --tile: #FFFFFF; --ink: #111111; --mut: #6A6A6F; --mut-board: #5F5F64;
  --line: #EFEFED; --soft: #F5F5F3; --soft2: #F1F1EF; --green: #2FD45A; --green-ink: #052E12;
  --tint: #E3F9E8; --tint-ink: #0B6625; --dark-mut: #A6A6A6; --dark-line: #2A2A2A;
  /* named so the dark theme can change them: text on an ink-coloured thing, a raised surface, the emphasised
     ("dark") tiles and what sits inside them, borders, neutral fills, body text, hovers, hairlines, errors */
  --on-ink: #FFFFFF; --raised: #FFFFFF; --panel: #111111; --panel-soft: #232323; --panel-edge: #4A4A4A;
  --edge: #D8D8D4; --edge-strong: #BDBDB8; --fill: #E2E2DF; --body: #4A4A4F;
  --hover: rgba(17, 17, 17, .05); --hair: rgba(17, 17, 17, .08); --bar: rgba(255, 255, 255, .94);
  --bad: #B4173F; --bad-bg: #FDECEF;
}
/* Dark: near-black board, charcoal tiles, off-white ink. Buttons turn light with dark text; the emphasised
   tiles become the lighter surface instead of the darker one. Green stays the only colour. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --board: #0B0B0C; --tile: #161618; --ink: #F3F3F1; --mut: #9A9AA1; --mut-board: #A2A2A9;
  --line: #27272B; --soft: #1F1F22; --soft2: #26262A;
  --tint: rgba(47, 212, 90, .16); --tint-ink: #7BE598; --dark-mut: #B0B0B6; --dark-line: #3A3A40;
  --on-ink: #111113; --raised: #34343A; --panel: #232327; --panel-soft: #33333A; --panel-edge: #5C5C65;
  --edge: #3A3A40; --edge-strong: #575760; --fill: #2E2E33; --body: #C7C7CC;
  --hover: rgba(255, 255, 255, .07); --hair: rgba(255, 255, 255, .09); --bar: rgba(20, 20, 22, .92);
  --bad: #FF8FA6; --bad-bg: rgba(255, 90, 120, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--board); color: var(--ink); }
body { font-family: Geist, -apple-system, "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.4; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible { outline-color: #fff; }
h1, h2, h3, p { margin: 0; }
.page { min-height: 100vh; padding: 28px clamp(16px, 3vw, 56px) 48px; display: flex; flex-direction: column; gap: 16px; }

/* top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.mark { width: 30px; height: 30px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; background: var(--tile); border-radius: 99px; padding: 4px; }
.nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 99px; color: var(--body); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a[aria-current] { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.me { display: flex; align-items: center; gap: 10px; }
.pillnote { font-size: 13px; font-weight: 600; background: var(--tile); border-radius: 99px; padding: 10px 14px; font-variant-numeric: tabular-nums; }
.avatar { border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
button.avatar { border: 0; background: var(--ink); color: var(--on-ink); }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 4px 12px; }
.hero .date { font-size: 13px; font-weight: 500; color: var(--mut-board); margin-bottom: 10px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.hero .sub { margin-top: 14px; font-size: 18px; color: var(--mut-board); }
.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { background: var(--tile); border-radius: 22px; padding: 14px 18px; min-width: 104px; }
.stat b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--mut); }

/* layout */
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row.start { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.f1 { flex: 1 1 280px; min-width: 0; } .f2 { flex: 2 1 520px; min-width: 0; } .f3 { flex: 3 1 640px; min-width: 0; }
.tile { background: var(--tile); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tile.dark { background: var(--panel); color: #fff; }
.tile.grow { flex: 1 1 auto; }
.label { font-size: 13px; font-weight: 500; color: var(--mut); }
.dark .label, .dark .muted { color: var(--dark-mut); }
.muted { color: var(--mut); font-size: 13.5px; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.big { font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.huge { font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.line-top { border-top: 1px solid var(--line); padding-top: 16px; }
.push { margin-top: auto; }

/* controls */
.btn { height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.btn.tall { height: 48px; }
.btn.green { background: var(--green); color: var(--green-ink); }
.btn.tint { background: var(--tint); color: var(--tint-ink); }
.btn.soft { background: var(--soft2); color: var(--ink); }
.btn.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge); }
.btn.white { background: #FFFFFF; color: #111111; }
.dark .btn.line { color: #fff; box-shadow: inset 0 0 0 1.5px var(--panel-edge); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.round { width: 44px; height: 44px; flex: none; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--raised); font-size: 20px; line-height: 1; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; background: var(--soft2); border-radius: 99px; padding: 4px; }
.seg button { height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: var(--body); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg button span { font-weight: 500; opacity: .7; margin-left: 4px; }
.seg.onboard { background: var(--tile); }
.seg.onboard button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--soft2); color: var(--body); white-space: nowrap; }
.chip.Hot, .chip.green { background: var(--green); color: var(--green-ink); }
.chip.Warm, .chip.tint { background: var(--tint); color: var(--tint-ink); }
.chip.Cold { background: var(--fill); color: var(--body); }
.chip.black { background: var(--ink); color: var(--on-ink); }
.pick { min-height: 44px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--soft2); color: var(--body); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.pick[aria-pressed="true"] { background: var(--green); color: var(--green-ink); }
.dark .pick { background: var(--panel-soft); color: #fff; }
.dark .pick[aria-pressed="true"] { background: #FFFFFF; color: #111111; }
.switch { flex: none; width: 56px; height: 44px; padding: 8px 4px; border: 0; background: none; margin-left: auto; }
.switch i { display: block; position: relative; width: 48px; height: 28px; border-radius: 99px; background: var(--edge); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.switch[aria-pressed="true"] i { background: var(--green); }
.switch[aria-pressed="true"] i::after { transform: translateX(20px); }
.setting { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.setting b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.setting span { font-size: 12.5px; color: var(--mut); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; min-width: 0; }
.fields > .field { flex: 1 1 200px; }
.field label { font-size: 13px; font-weight: 500; color: var(--mut); }
.input, textarea.input, select.input { width: 100%; min-height: 48px; border: 0; border-radius: 16px; background: var(--soft); padding: 12px 16px; font-size: 16px; }
textarea.input { resize: vertical; line-height: 1.45; }
.fields { display: flex; flex-wrap: wrap; gap: 12px; }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 99px; padding: 6px 6px 6px 22px; }
.searchbar input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: none; font-size: 16px; }
.err { color: var(--bad); font-size: 14px; font-weight: 500; min-height: 20px; }

/* lists */
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.item .who { flex: 1 1 200px; min-width: 0; }
.item .who b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.item .who span { font-size: 13.5px; color: var(--mut); }
.card { width: 100%; text-align: left; border: 0; background: var(--soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; transition: background .2s, box-shadow .2s; }
button.card[aria-pressed="true"] { background: var(--raised); box-shadow: inset 0 0 0 2px var(--ink); }
.card b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card small { font-size: 13px; color: var(--body); }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--dark-line); font-size: 14px; }
.fact span { color: var(--dark-mut); } .fact b { font-weight: 600; text-align: right; }
.empty { background: var(--soft); border-radius: 18px; padding: 16px; font-size: 14px; color: var(--body); }
.dark .empty { background: var(--panel-soft); color: var(--dark-mut); }

/* live call */
.livepill { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; background: var(--panel-soft); border-radius: 99px; padding: 9px 14px; font-variant-numeric: tabular-nums; }
.livepill i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A4D; animation: pulse 1.4s ease-in-out infinite; }
.heard { font-size: 14px; color: var(--dark-mut); }
.said { font-size: 24px; line-height: 1.28; font-weight: 500; letter-spacing: -.02em; }
.wave { height: 40px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.wave i { flex: 1 1 0; min-width: 2px; max-width: 4px; border-radius: 2px; background: var(--green); animation: wv 1.1s ease-in-out infinite; }
.wave.idle i { background: var(--panel-edge); animation-play-state: paused; }
.check { display: flex; align-items: center; gap: 12px; min-height: 46px; border-top: 1px solid var(--line); font-size: 14px; }
.check .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--edge); display: grid; place-items: center; flex: none; transition: background .25s, border-color .25s; }
.check.done .dot { background: var(--green); border-color: var(--green); }
.check .dot svg { opacity: 0; transition: opacity .25s; } .check.done .dot svg { opacity: 1; }
.check span { color: var(--mut); } .check b { margin-left: auto; font-weight: 600; text-align: right; }
.ring { transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 7; } .ring .bg { stroke: var(--board); }
.ring .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }

/* calendar */
.week { display: flex; gap: 2px; }
.week button { flex: 1 1 0; min-width: 0; padding: 4px 0 6px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--mut); font-size: 12px; font-weight: 500; }
.week button b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.week button[aria-pressed="true"] b { background: var(--ink); color: var(--on-ink); }
.week button i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: 0; } .week button.has i { opacity: 1; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month.head { font-size: 12px; font-weight: 500; color: var(--mut); padding: 0 10px; }
.month button { min-height: 76px; min-width: 0; border: 0; border-radius: 16px; background: var(--soft); padding: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
.month button.today { box-shadow: inset 0 0 0 2px var(--green); }
.month button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.month .dots { display: flex; gap: 4px; min-height: 8px; } .month .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.slot { background: var(--soft); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.bars i { width: 8px; border-radius: 3px; background: var(--fill); min-height: 3px; } .bars i:last-child { background: var(--green); }

/* transcript */
.turns { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.turn { font-size: 14px; line-height: 1.4; } .turn b { color: var(--dark-mut); font-weight: 500; margin-right: 6px; }

/* sign-in */
.auth { max-width: 440px; width: 100%; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 16px; }
.auth h1 { font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.04em; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes wv { 0%, 100% { transform: scaleY(.28) } 50% { transform: scaleY(1) } }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* pipeline */
.cardtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cardtop b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stagecol .cards { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 300px); overflow-y: auto; scrollbar-width: thin; }
.leadcard { position: sticky; top: 16px; align-self: flex-start; }
.lastcall { display: flex; flex-direction: column; gap: 2px; background: var(--panel-soft); border-radius: 18px; padding: 14px 16px; }
.lastcall b { font-size: 16px; font-weight: 600; }

/* phones */
@media (max-width: 760px) {
  .page { padding-top: 16px; }
  .top .nav { order: 3; width: 100%; }
  .nav, .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .nav::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
  .nav a, .seg button { flex: none; }
  .top .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 26px; overflow: visible; }
  .nav a { justify-content: center; padding: 0 6px; height: 40px; }
  .hero { padding-top: 12px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .stat { min-width: 0; padding: 12px 14px; }
  .stat b { font-size: 24px; }
  .tile { padding: 20px; border-radius: 24px; }
  .said { font-size: 21px; }
  .stagecol .cards { max-height: none; overflow: visible; }
  .leadcard { position: static; align-self: stretch; }
  .month button { min-height: 58px; padding: 7px; border-radius: 12px; font-size: 14px; }
  .month .dots i { width: 6px; height: 6px; }
}

/* ---------- motion: alive, but calm. Small movements, almost no overshoot. ---------- */
:root { --spring: cubic-bezier(.3, 1.18, .5, 1); --ease: cubic-bezier(.2, .8, .2, 1); }

/* everything you can press gives slightly under your finger */
.btn, .pick, .round, .seg button, .nav a, button.card, .month button, button.avatar, .week button b {
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .25s;
}
.btn:hover, .pick:hover, .round:hover { transform: translateY(-1px); }
.btn:active, .pick:active, .round:active, .seg button:active, .nav a:active, button.avatar:active { transform: scale(.97); transition-duration: .08s; }
button.card:hover, .month button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
button.card[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 2px var(--ink), 0 4px 12px rgba(0, 0, 0, .06); }
button.card:active, .month button:active { transform: scale(.985); transition-duration: .08s; }
.week button:hover b { transform: scale(1.06); }
.week button:active b { transform: scale(.95); transition-duration: .08s; }

/* switches: the knob glides across with a hint of spring */
.switch i::after { transition: transform .3s var(--spring), width .18s var(--ease); }
.switch:active i::after { width: 25px; }
.switch[aria-pressed="true"]:active i::after { transform: translateX(17px); }

/* the thing you just clicked gives a small nudge, even when the screen was redrawn underneath it */
.pop { animation: pop .26s var(--ease); }
@keyframes pop { 0% { transform: scale(.97); } 100% { transform: scale(1); } }

/* arriving on a screen: a short fade up, tiles a beat apart */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.enter .top { animation: drop .35s var(--ease) both; }
.enter .hero { animation: rise .4s var(--ease) both; }
.enter .tile, .enter .auth > *, .enter .stat { animation: rise .45s var(--ease) both; }
.enter .stat:nth-child(2) { animation-delay: .04s; } .enter .stat:nth-child(3) { animation-delay: .08s; }

/* lists on Today fade in when they change (new lead, another tab, another day) */
#leads .item, #week .card, #answer > * { animation: rise .3s var(--ease) both; }
#leads .item:nth-child(2) { animation-delay: .03s; } #leads .item:nth-child(3) { animation-delay: .06s; }
#leads .item:nth-child(4) { animation-delay: .09s; } #leads .item:nth-child(5) { animation-delay: .12s; }
.turn { animation: rise .3s var(--ease) both; }

/* small signs of life */
.mark i { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.wave.idle i { background: var(--panel-edge); animation-play-state: running; animation-duration: 3.6s; opacity: .8; }
#toast { transition: opacity .25s, transform .3s var(--ease); }
.bars i { transition: height .5s var(--ease); }

/* the lead form: two short fields per row so it is not a long scroll */
form.leadcard .fields > .field { flex: 1 1 140px; }
form.leadcard .input { min-height: 44px; padding: 10px 14px; font-size: 15px; }

/* ---------- fields: a soft rounded glow when you click in, never a square outline ---------- */
.input, .searchbar { transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.input:focus-visible { outline: none; background: var(--raised); box-shadow: 0 0 0 2px var(--ink); }
.dark .input:focus-visible { box-shadow: 0 0 0 2px #fff; }
.searchbar input { caret-color: var(--tint-ink); }
.searchbar input:focus, .searchbar input:focus-visible { outline: none; }
.searchbar:focus-within { background: var(--raised); box-shadow: 0 0 0 2px var(--ink), 0 6px 18px rgba(0, 0, 0, .06); }
.searchbar input::placeholder, .input::placeholder { color: var(--mut); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.searchbar:focus-within input::placeholder, .input:focus::placeholder { opacity: .45; transform: translateX(3px); }

/* the answer is typed out word by word, and the wait shows three soft dots */
.typed span { display: inline-block; opacity: 0; animation: word .32s var(--ease) forwards; }
@keyframes word { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.thinking .dots { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.thinking .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.1s ease-in-out infinite; }
.thinking .dots i:nth-child(2) { animation-delay: .15s; } .thinking .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- polish: same look, finer details ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--green); color: var(--green-ink); }
h1, h2, h3 { text-wrap: balance; }
.hero .sub, .muted { text-wrap: pretty; }

/* a little depth: tiles sit just above the board instead of lying flat on it */
.tile, .stat, .nav, .pillnote { box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 28px rgba(17, 17, 17, .045); }
.tile.dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 28px rgba(17, 17, 17, .12); }
.stat.inset { background: var(--soft); box-shadow: none; }
form.tile, .tile .tile { box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 28px rgba(17, 17, 17, .045); }

/* type: one scale, tighter headings, numbers that line up */
.hero h1 { letter-spacing: -.045em; }
.hero .sub { max-width: 46ch; }
h2 { font-size: 21px; letter-spacing: -.025em; }
.label { letter-spacing: .005em; }
.big, .huge, .stat b { font-feature-settings: "tnum"; }
.stat { min-width: 124px; padding: 16px 18px 14px; }
.stat span { font-size: 12.5px; }
.item .who b, .card b { letter-spacing: -.012em; }

/* buttons: black is for the one main action; everything secondary is quieter */
.btn.soft:hover { background: var(--fill); }
.btn.line:hover { background: var(--hover); }
.dark .btn.line:hover { background: rgba(255, 255, 255, .08); }
.btn.small { height: 40px; padding: 0 16px; font-size: 13px; }
.round:hover { border-color: var(--edge-strong); }
.chip { letter-spacing: .005em; }

/* rows breathe a little more, and the last one has no stray line above the next block */
.item { padding: 15px 0; }
.item:first-child { border-top: 0; }
.fact:first-of-type { border-top-color: transparent; }
.setting + .setting { border-top: 1px solid var(--line); }
.dark .setting + .setting { border-top-color: var(--dark-line); }

/* the black "nobody on the line" tile: last call sits just above the wave */
.lastcall { margin-top: auto; }
.wave.push { margin-top: 0; }

/* credits: a real seven-day chart instead of a row of dashes */
.usage { display: flex; align-items: flex-end; gap: 8px; flex: 1 1 auto; min-height: 104px; margin-top: 6px; }
.usage > div { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.usage i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--fill); transition: height .5s var(--ease); }
.usage .now i { background: var(--green); }
.usage span { font-size: 11.5px; font-weight: 500; color: var(--mut); }

/* calendar and lists */
.month button { border-radius: 14px; }
.month button:not([aria-pressed="true"]):hover { background: var(--fill); }
.week button:not([aria-pressed="true"]):hover b { background: var(--soft2); }
.turns { scrollbar-width: thin; padding-right: 6px; }
.stagecol .cards { padding: 2px; margin: -2px; }

/* fields */
.field label { letter-spacing: .005em; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:disabled { opacity: .5; }

@media (max-width: 760px) {
  .stat { min-width: 0; padding: 12px 14px; }
  .usage { min-height: 84px; }
}

/* second pass */
.hero .sub { max-width: 62ch; }
.usage { flex: none; height: 104px; min-height: 0; }
.fact.light { border-top: 1px solid var(--line); padding: 10px 0; }
.fact.light span { color: var(--mut); font-variant-numeric: tabular-nums; }
.fact.light:first-of-type { border-top: 0; }

/* ---------- clinic: schedule, patients, messages ---------- */
.when { flex: none; min-width: 74px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.msg { background: var(--soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg b { font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
.msg p { font-size: 14px; line-height: 1.45; color: var(--body); }
.slotbtn { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 8px 0 14px; border: 1.5px dashed var(--edge); border-radius: 16px; background: none; text-align: left; transition: background .2s, border-color .2s; }
.slotbtn b { flex: none; min-width: 74px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slotbtn span { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slotbtn em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--soft2); color: var(--ink); transition: background .2s, color .2s; }
.slotbtn:hover { background: var(--soft); border-color: var(--edge-strong); }
.slotbtn:hover em { background: var(--ink); color: var(--on-ink); }
.table { display: flex; flex-direction: column; }
.thead, .trow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.5fr) 64px; gap: 14px; align-items: center; padding: 0 12px; }
.thead { height: 36px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
.thead span:last-child, .trow > span:last-child { text-align: right; }
.trow { width: 100%; min-height: 60px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; transition: background .2s; }
.trow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); }
.trow:hover { background: var(--soft); }
.trow[aria-pressed="true"] { background: var(--soft2); border-radius: 14px; border-top-color: transparent; }
.trow[aria-pressed="true"] + .trow { border-top-color: transparent; }
.cellname { display: flex; align-items: center; gap: 12px; }
.cellname b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.cellname .avatar { flex: none; font-size: 12px; }
.sorthead { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.sorthead[aria-sort]:not([aria-sort="none"]) { color: var(--ink); }
@media (max-width: 760px) {
  .thead { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 10px 4px; }
  .trow > span:nth-child(2) { display: none; }
  .trow > span:nth-child(3) { grid-column: 1; padding-left: 48px; font-size: 13px; color: var(--mut); }
  .trow > span:last-child { grid-row: 1; grid-column: 2; }
}

/* ---------- CRM: lead table, stage steps, follow-up, history ---------- */
.leadtable .thead, .leadtable .trow { grid-template-columns: minmax(0, 2.1fr) minmax(0, .8fr) 84px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .8fr); }
.leadtable .thead > :last-child, .leadtable .trow > span:last-child { text-align: right; justify-content: flex-end; }
.thead .sorthead:last-child { justify-content: flex-end; }
.sorthead:hover { color: var(--ink); }
.sorthead span { font-size: 11px; min-width: 9px; }
.cellname .two { display: flex; flex-direction: column; min-width: 0; }
.cellname .two b, .cellname .two small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cellname .two small { font-size: 12.5px; color: var(--mut); }
.trow .chip { display: inline-block; }
.steps { display: flex; gap: 4px; }
.steps button { flex: 1 1 0; min-width: 0; height: 44px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--mut); text-align: left; }
.steps button::before { content: ''; height: 5px; border-radius: 99px; background: var(--soft2); transition: background .25s var(--ease); }
.steps button.on::before { background: var(--green); }
.steps button.on { color: var(--ink); }
.steps button:hover::before { background: var(--edge-strong); } .steps button.on:hover::before { background: var(--green); }
.dark .input { background: var(--panel-soft); color: #fff; color-scheme: dark; }
.dark .input:focus-visible { background: var(--panel-soft); }
.timeline { display: flex; flex-direction: column; }
.event { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.event:last-child { padding-bottom: 0; }
.event i { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--edge-strong); position: relative; z-index: 1; }
.event:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: -6px; width: 1px; background: var(--line); }
.event p { font-size: 14px; line-height: 1.4; }
.event span { font-size: 12.5px; color: var(--mut); }
.event.note i { background: var(--green); }
.event.note p { background: var(--soft); border-radius: 14px; padding: 10px 12px; white-space: pre-wrap; }
.event.note span { display: block; margin-top: 4px; }
.turns.light .turn b { color: var(--mut); }
@media (max-width: 760px) {
  .leadtable .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .leadtable .trow > span { display: none; }
  .leadtable .trow > span:nth-child(1), .leadtable .trow > span:nth-child(3) { display: flex; }
  .leadtable .trow > span:nth-child(3) { grid-column: 2; grid-row: 1; padding: 0; }
  .toolbar .seg { flex: 1 1 100%; }
}

.sorthead { white-space: nowrap; }

/* ---------- hotel: reservations table ---------- */
.restable .thead, .restable .trow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 62px 76px 118px; }
.restable .thead > :last-child, .restable .trow > span:last-child { text-align: right; }
div.slotbtn { cursor: default; }
@media (max-width: 760px) {
  .restable .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .restable .trow > span { display: none; }
  .restable .trow > span:nth-child(1), .restable .trow > span:last-child { display: flex; }
  .restable .trow > span:last-child { grid-column: 2; grid-row: 1; padding: 0; }
}

/* forms that sit inside a soft panel: white fields, so they read as fields */
.slot .input { background: var(--raised); }
.slot .input:focus-visible { background: var(--raised); }

/* ---------- fixes from the deep test ---------- */
.muted a, .empty a, .label a { color: inherit; font-weight: 600; text-underline-offset: 2px; }
.muted a:hover, .empty a:hover { color: var(--ink); }
.auth .brand { min-height: 44px; }

/* ---------- sign in and create account ---------- */
.auth2 { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; min-height: calc(100vh - 76px); }
.auth-main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 12px clamp(4px, 5vw, 80px) 12px clamp(4px, 3vw, 48px); }
.auth-main > * { width: 100%; max-width: 480px; }
.auth-main .brand { align-self: flex-start; width: auto; min-height: 44px; text-decoration: none; color: inherit; }
.auth-head h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.auth-sub { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--mut-board); text-wrap: pretty; }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-fields .field { gap: 7px; }
.auth-fields .field label, .auth-fields .field > .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.auth-two { display: flex; flex-wrap: wrap; gap: 12px; }
.auth-two .field { flex: 1 1 190px; }
/* fields sit straight on the board: white, with a hairline that turns black when you are in them */
.auth-fields .input { min-height: 54px; padding: 0 18px; border-radius: 16px; background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--edge); font-size: 16px; }
.auth-fields .input:hover { box-shadow: inset 0 0 0 1.5px var(--edge-strong); }
.auth-fields .input:focus-visible { background: var(--tile); box-shadow: inset 0 0 0 2px var(--ink); }
.auth-pass { position: relative; }
.auth-pass .input { padding-right: 76px; }
.auth-show { position: absolute; right: 7px; bottom: 7px; height: 40px; padding: 0 14px; border: 0; border-radius: 11px; background: none; color: var(--ink); font-size: 13.5px; font-weight: 600; transition: background .2s; }
.auth-show:hover { background: var(--soft); }
.auth-hint { margin-top: -8px; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mut-board); transition: color .25s; }
.auth-hint::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--edge-strong); transition: background .25s; }
.auth-hint.ok { color: var(--tint-ink); } .auth-hint.ok::before { background: var(--green); }
.auth-fields .err { min-height: 0; } .auth-fields .err:empty { display: none; }
.auth-fields .err:not(:empty) { background: var(--bad-bg); border-radius: 14px; padding: 12px 16px; }
.auth-fields .btn.tall { height: 58px; font-size: 16px; margin-top: 4px; }
.auth-fields .btn:disabled { opacity: .6; cursor: default; }
.auth-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.auth-kind { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px 10px 10px; border: 0; border-radius: 18px; background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--edge); text-align: left; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.auth-kind:hover { box-shadow: inset 0 0 0 1.5px var(--edge-strong); }
.auth-kind:active { transform: scale(.985); }
.auth-kind .ico { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--soft); color: var(--body); display: grid; place-items: center; transition: background .25s var(--ease), color .25s var(--ease); }
.auth-kind .txt { display: flex; flex-direction: column; min-width: 0; }
.auth-kind b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.auth-kind small { font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-kind[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.auth-kind[aria-pressed="true"] .ico { background: var(--green); color: var(--green-ink); }
.auth-switch { font-size: 15px; color: var(--mut-board); }
.auth-switch button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* the preview: Jessica answering this business's phone */
.auth-side { flex: 1.15 1 440px; min-width: 0; background: var(--panel); color: #fff; border-radius: 36px; padding: clamp(26px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 28px rgba(17, 17, 17, .12); }
.auth-call { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.auth-face { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-size: 19px; font-weight: 700; }
.auth-who { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.auth-who b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.auth-who span { font-size: 14px; color: var(--dark-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-speech { display: flex; flex-direction: column; gap: 26px; }
.auth-said { font-size: clamp(26px, 3vw, 44px); line-height: 1.14; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; min-height: 3.4em; overflow-wrap: anywhere; }
.auth-side .wave { height: 52px; }
.auth-does { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--dark-line); padding-top: 22px; }
.auth-does h3 { font-size: 14px; font-weight: 500; color: var(--dark-mut); margin-bottom: 6px; }
.auth-point { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 16px; line-height: 1.4; }
.auth-point i { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 960px) {
  .auth2 { min-height: 0; }
  .auth-main { padding: 4px; justify-content: flex-start; gap: 22px; }
  .auth-side { border-radius: 28px; gap: 22px; }
  .auth-said { min-height: 0; }
}
@media (max-width: 420px) { .auth-kinds { grid-template-columns: 1fr; } }

/* ---------- several businesses under one login ---------- */
.wswrap { position: relative; min-width: 0; }
.wsbtn { max-width: 100%; min-height: 44px; padding: 0 10px 0 0; border: 0; border-radius: 14px; background: none; color: var(--ink); font-size: inherit; cursor: pointer; transition: background .2s; }
.wsbtn:hover, .wsbtn[aria-expanded="true"] { background: var(--hover); }
.wsname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsbtn svg { flex: none; color: var(--mut); transition: transform .25s var(--ease); }
.wsbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.wsmenu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px;
  background: var(--tile); box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 18px 44px rgba(17, 17, 17, .16); animation: rise .2s var(--ease) both; }
.wsmenu[hidden] { display: none; }
.wsitem { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 14px; background: none; color: var(--ink); text-align: left; transition: background .2s; }
.wsitem:hover { background: var(--soft); }
.wsitem[aria-current="true"] { background: var(--soft2); }
.wstxt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wstxt b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wstxt small { font-size: 12.5px; color: var(--mut); }
.wsitem.add { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; margin-top: 4px; }
.wsplus { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--soft2); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.wskinds { display: flex; flex-wrap: wrap; gap: 6px; }
.wskinds .pick { min-height: 44px; padding: 0 14px; }
.wskinds .pick[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.kindico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; }

/* follow-ups (clinic) */
.fu-cols { display: flex; flex-wrap: wrap; gap: 20px 44px; }
.fu-col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; }
.fu-col h3 { margin-bottom: 6px; }
.fu-col .empty { margin-top: 6px; }
.item.fu .who { flex: 1 1 190px; }
.fu-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
select.input.fu-pick { width: auto; min-height: 40px; height: 40px; padding: 0 34px 0 16px; border-radius: 99px; font-size: 13px; font-weight: 600; background-color: var(--ink); color: var(--on-ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--on-ink) 50%), linear-gradient(135deg, var(--on-ink) 50%, transparent 50%); cursor: pointer; }
select.input.fu-pick:focus-visible { background-color: var(--ink); box-shadow: 0 0 0 2px var(--board), 0 0 0 4px var(--ink); }
select.input.fu-pick option { background: var(--raised); color: var(--ink); font-weight: 500; }
.tile.dark select.input.fu-pick { background-color: #FFFFFF; color: #111111; align-self: flex-start;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%); }
.input.daypick { width: auto; min-height: 44px; height: 44px; padding: 0 16px; border-radius: 99px; background: var(--tile); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .fu-acts { width: 100%; }
  .input.daypick { flex: 1 1 100%; }
}

/* ---------- phones: a compact top bar, and the sections as a tab bar at the bottom, like an app ---------- */
.nav a svg { display: none; }
@media (max-width: 760px) {
  /* The top bar must not slide in on a phone: while it moves, the tab bar inside it is carried along
     and jumps to the top of the screen until the animation is over. The bars stay still; the page moves. */
  .enter .top { animation: none; }
  .page { padding: 12px 14px calc(104px + env(safe-area-inset-bottom)); }
  .top { flex-wrap: nowrap; gap: 8px; }
  .top .wswrap { flex: 1 1 auto; min-width: 0; }
  .top .wsbtn { max-width: 100%; }
  .me { flex: none; gap: 8px; }
  .pillnote { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; white-space: nowrap; }
  .top .nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; order: 0; width: auto; max-width: none; display: grid; grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-radius: 0; overflow: visible;
    background: var(--bar); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
    box-shadow: 0 -1px 0 var(--hair), 0 -10px 28px rgba(17, 17, 17, .06); }
  .top .nav a { flex-direction: column; justify-content: center; gap: 2px; min-width: 0; height: 54px; padding: 0 2px; border-radius: 14px; background: none;
    color: var(--mut); font-size: 10.5px; font-weight: 600; letter-spacing: 0; }
  .top .nav a svg { display: block; flex: none; box-sizing: content-box; padding: 4px 14px; border-radius: 99px; transition: background .2s, color .2s; }
  .top .nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top .nav a[aria-current] { background: none; color: var(--ink); }
  .top .nav a[aria-current] svg { background: var(--ink); color: var(--on-ink); }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); text-align: center; }
  .wsmenu { max-height: calc(100vh - 190px); overflow-y: auto; }

  /* a field under 16px makes an iPhone zoom the whole page in when it is tapped */
  .input, input, select, textarea, select.input.fu-pick, .input.daypick { font-size: 16px !important; }
  select.input.fu-pick { height: 44px; min-height: 44px; }

  /* long buttons wrap instead of running off a small screen */
  section[aria-label="Ask"] .btn.line { height: auto; min-height: 44px; max-width: 100%; padding: 10px 18px; white-space: normal; text-align: left; line-height: 1.3; }
  .hero { gap: 16px; padding-top: 14px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 40px); }
  .hero .sub { font-size: 16.5px; margin-top: 10px; }

  /* opening hours: the day and its switch on one line, the two times on the next */
  .setting.hoursrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "day day sw" "open to close"; align-items: center; gap: 8px 10px; padding: 12px 0; }
  .hoursrow > b { grid-area: day; width: auto !important; }
  .hoursrow > .switch { grid-area: sw; justify-self: end; }
  .hoursrow > input { width: 100% !important; min-width: 0; }
  .hoursrow > input:first-of-type { grid-area: open; }
  .hoursrow > input:last-of-type { grid-area: close; }
  .hoursrow > span { grid-area: to; }
}
@media (max-width: 350px) {
  .page { padding-left: 10px; padding-right: 10px; }
  .tile { padding: 16px; }
  .top .nav a { font-size: 10px; }
  .top .nav a svg { padding: 4px 10px; }
  .pillnote { padding: 0 11px; font-size: 12.5px; }
}

/* ---------- create account, in two steps ---------- */
.auth-step { display: flex; flex-direction: column; gap: 16px; }
.auth-step[hidden] { display: none; }
.auth-steps { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0 0 2px; padding: 0; }
.auth-steps li { display: flex; align-items: center; gap: 10px; }
.auth-steps li + li::before { content: ''; width: clamp(16px, 4vw, 44px); height: 2px; border-radius: 2px; background: var(--edge); transition: background .3s var(--ease); }
.auth-steps li.done + li::before { background: var(--ink); }
.auth-steps button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 14.5px; font-weight: 600; color: var(--mut); white-space: nowrap; }
.auth-steps i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; background: var(--fill); color: var(--body);
  transition: background .3s var(--ease), color .3s var(--ease); }
.auth-steps li[aria-current] button { color: var(--ink); }
.auth-steps li[aria-current] i { background: var(--ink); color: var(--on-ink); }
.auth-steps li.done i { background: var(--green); color: var(--green-ink); }
.auth-sum { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--edge); }
.auth-sum .ico { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; }
.auth-sum .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.auth-sum b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-sum small { font-size: 12.5px; color: var(--mut); }
.auth-strength { margin-top: -6px; display: flex; align-items: center; gap: 10px; }
.auth-strength .auth-hint { margin: 0; }
.auth-strength .auth-hint::before { display: none; }
.auth-meter { display: flex; gap: 4px; }
.auth-meter i { width: 26px; height: 5px; border-radius: 3px; background: var(--edge); transition: background .25s var(--ease); }
.auth-meter[data-score="1"] i:nth-child(-n+1), .auth-meter[data-score="2"] i:nth-child(-n+2), .auth-meter[data-score="3"] i { background: var(--green); }
.auth-note { margin-top: -4px; font-size: 13.5px; color: var(--mut-board); text-align: center; }
.auth-note:empty { display: none; }
.auth-mini { display: none; }

/* the call beside the form */
.auth-speech.talk { gap: 16px; }
.auth-speech.talk .auth-said { font-size: clamp(23px, 2.3vw, 32px); line-height: 1.16; min-height: 3.5em; }
.auth-line, .auth-result { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.auth-line.on, .auth-result.on { opacity: 1; transform: none; }
.auth-line.caller { font-size: 15.5px; color: var(--dark-mut); }
.auth-line.her { min-height: 2.7em; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.32; font-weight: 500; letter-spacing: -.015em; text-wrap: pretty; }
.auth-result { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 22px; background: var(--green); color: var(--green-ink); }
.auth-result .tick { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--green-ink); color: var(--green); display: grid; place-items: center; }
.auth-result .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.auth-result b { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.auth-result .txt span { font-size: 14px; }
.auth-result small { flex: none; font-size: 12.5px; font-weight: 600; opacity: .75; }
.auth-next { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--dark-line); padding-top: 22px; }
.auth-next h3 { font-size: 14px; font-weight: 500; color: var(--dark-mut); margin-bottom: 8px; }
.auth-next ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.auth-next li { counter-increment: step; display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.4; }
.auth-next li::before { content: counter(step); flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--panel-soft); color: #fff; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 960px) {
  /* on a phone the call sits below the form, so the greeting also shows right under the business name */
  .auth-mini { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--panel); color: #fff; }
  .auth-mini .auth-face { width: 36px; height: 36px; font-size: 14px; }
  .auth-mini small { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--dark-mut); }
  .auth-mini p { font-size: 15.5px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
  .auth-speech.talk .auth-said { min-height: 0; }
  .auth-result small { display: none; }
}
@media (max-width: 420px) {
  /* four kinds in two rows instead of four: the first step fits on one screen */
  .auth-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-kind { gap: 10px; min-height: 58px; padding: 8px 10px 8px 8px; }
  .auth-kind .ico { width: 38px; height: 38px; border-radius: 12px; }
  .auth-kind small { display: none; }
  .auth-kind b { font-size: 14.5px; line-height: 1.2; }
  .auth-steps button { font-size: 13.5px; gap: 7px; }
}

/* ---------- the logo: a speech bubble with her voice in it ----------
   It is still at rest. Under a pointer one ripple passes through the bars, once. While she is really
   talking (class "speaking": a live call on the dashboard, the recording on the home page, a tap)
   the bars rise and fall slowly, like a level meter. The bubble itself never moves. */
.mark { position: relative; flex: none; width: 32px; height: 26px; margin-bottom: 4px; border-radius: 9px; background: var(--green); display: flex; align-items: center; justify-content: center; gap: 2.5px; }
.mark::after { content: ''; position: absolute; left: 7px; bottom: -5px; width: 9px; height: 8px; background: var(--green); clip-path: polygon(0 0, 100% 0, 0 100%); }
.mark i { flex: none; width: 3px; height: 7px; border-radius: 2px; background: var(--green-ink); animation: none; }
.mark i:nth-child(2) { height: 14px; }
.mark i:nth-child(3) { height: 10px; }
.mark i:nth-child(4) { height: 5px; }
.brand:hover .mark i, .brand:focus-visible .mark i { animation: mark-ripple .7s cubic-bezier(.4, 0, .2, 1) 1; }
.brand:hover .mark i:nth-child(2), .brand:focus-visible .mark i:nth-child(2) { animation-delay: .07s; }
.brand:hover .mark i:nth-child(3), .brand:focus-visible .mark i:nth-child(3) { animation-delay: .14s; }
.brand:hover .mark i:nth-child(4), .brand:focus-visible .mark i:nth-child(4) { animation-delay: .21s; }
.mark.speaking i, .brand:hover .mark.speaking i { animation: mark-level 1.5s cubic-bezier(.45, 0, .55, 1) infinite; }
.mark.speaking i:nth-child(2), .brand:hover .mark.speaking i:nth-child(2) { animation-delay: -.4s; }
.mark.speaking i:nth-child(3), .brand:hover .mark.speaking i:nth-child(3) { animation-delay: -.8s; }
.mark.speaking i:nth-child(4), .brand:hover .mark.speaking i:nth-child(4) { animation-delay: -1.15s; }
@keyframes mark-ripple { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.5); } }
@keyframes mark-level { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .mark i { animation: none !important; } }

/* ---------- dark theme: the few things variables alone cannot express ---------- */
[data-theme="dark"] .tile, [data-theme="dark"] .stat, [data-theme="dark"] .pillnote, [data-theme="dark"] .seg.onboard { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
[data-theme="dark"] .nav { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
[data-theme="dark"] .tile.dark, [data-theme="dark"] .auth-side { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
[data-theme="dark"] .wsmenu { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 44px rgba(0, 0, 0, .6); }
[data-theme="dark"] .seg button[aria-pressed="true"] { box-shadow: none; }
[data-theme="dark"] #toast { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* choosing the theme: a button in the top bar on wide screens, and a row in the business menu everywhere */
.themebtn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--ink); border-color: transparent; background: var(--tile); box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 28px rgba(17, 17, 17, .045); }
[data-theme="dark"] .themebtn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.wstheme { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 12px 12px 6px; border-top: 1px solid var(--line); }
.wstheme .seg button { height: 36px; padding: 0 13px; font-size: 13px; }
@media (max-width: 760px) { .themebtn { display: none; } }

/* ---------- dropdowns: our own button and list in place of the browser's ---------- */
.sel-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.sel { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; color: var(--ink); font-weight: 500; }
.sel .sel-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel svg { flex: none; color: var(--mut); transition: transform .2s var(--ease); }
.sel[aria-expanded="true"] svg { transform: rotate(180deg); }
.sel.placeholder .sel-text { color: var(--mut); }
.sel:disabled { opacity: .55; cursor: default; }
.dark .sel { color: #fff; } .dark .sel svg { color: var(--dark-mut); }
.sel.fu-pick { width: auto; min-height: 40px; height: 40px; padding: 0 12px 0 16px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; }
.sel.fu-pick svg, .sel.fu-pick.placeholder .sel-text { color: inherit; }
.sel.fu-pick:focus-visible { background: var(--ink); box-shadow: 0 0 0 2px var(--board), 0 0 0 4px var(--ink); }
.tile.dark .sel.fu-pick { align-self: flex-start; background: #FFFFFF; color: #111111; }
.selmenu { position: fixed; z-index: 80; max-width: calc(100vw - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 16px; background: var(--tile); color: var(--ink);
  box-shadow: 0 0 0 1px var(--hair), 0 16px 40px rgba(17, 17, 17, .16); animation: sel-in .14s var(--ease) both; }
.selmenu[data-up="1"] { animation-name: sel-in-up; }
.selopt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.selopt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.selopt svg { flex: none; }
.selopt.on { background: var(--soft2); }
.selopt[aria-selected="true"] { font-weight: 600; }
.selopt.muted { color: var(--mut); }
.selopt[aria-disabled="true"] { opacity: .45; cursor: default; }
[data-theme="dark"] .selmenu { background: #1C1C1F; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 44px rgba(0, 0, 0, .6); }
[data-theme="dark"] .selopt.on { background: #2C2C31; }
@keyframes sel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes sel-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .selopt { min-height: 46px; font-size: 16px; }
  .sel.fu-pick { height: 44px; min-height: 44px; }
}

/* ---------- hot offers and price lists ---------- */
.offer { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--soft); }
.offer b { font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; }
.offer p { font-size: 14px; line-height: 1.45; color: var(--body); }
.price { flex: none; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.price span { font-size: 12.5px; color: var(--mut); }
.svc-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; padding: 10px 14px; border-radius: 14px; background: var(--tint); color: var(--tint-ink); font-size: 13.5px; }
.svc-line[hidden] { display: none; }
.svc-line b { font-size: 15px; font-weight: 600; }
.selopt em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 500; color: var(--mut); }

/* ---------- an offer, drawn as a ticket ---------- */
.offer { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border-radius: 20px; background: var(--panel); color: #fff; }
.offer-stub { display: grid; place-items: center; background: var(--green); color: var(--green-ink); border-right: 2px dashed var(--panel); }
.offer-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px 14px; }
.offer b { font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.offer p { font-size: 14px; line-height: 1.45; color: var(--dark-mut); white-space: pre-wrap; }
.offer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; }
.offer-when { padding: 5px 11px; border-radius: 99px; background: rgba(47, 212, 90, .17); color: #7BE598; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.offer-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer.off .offer-stub { background: #3B3B41; color: #A0A0A6; }
.offer.off .offer-when { background: rgba(255, 255, 255, .09); color: var(--dark-mut); }
.offer.off b { color: var(--dark-mut); }
.offer.ghost b { color: #8C8C92; }
.offer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.offer-new { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; padding: 20px; }
.offer-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.offer-lengths { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-lengths .pick { min-height: 40px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--raised); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--edge); }
.offer-lengths .pick[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.offer-preview { display: flex; flex-direction: column; gap: 10px; min-width: 0; align-self: start; position: sticky; top: 16px; }
.offer-says { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hair); }
.offer-says p { font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .offer-new { grid-template-columns: minmax(0, 1fr); }
  .offer-preview { position: static; }
}

/* ---------- hotel: who calls, and the answers for each ---------- */
.whobars { display: flex; flex-direction: column; gap: 12px; }
.whobar { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.whobar b { font-weight: 600; font-variant-numeric: tabular-nums; }
.whobar > i { display: block; height: 6px; border-radius: 3px; background: var(--soft2); overflow: hidden; }
.whobar > i > i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.bigstay { font-weight: 700; color: var(--tint-ink) !important; }
.playbook { display: flex; flex-direction: column; gap: 16px; }
.playbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.play { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--soft); }
.play b { font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; }
.play .input { background: var(--raised); font-size: 14.5px; line-height: 1.45; }

/* ---------- common questions ---------- */
.faq-tips { display: flex; flex-direction: column; gap: 8px; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-chips .btn { height: auto; min-height: 38px; padding: 8px 14px; white-space: normal; text-align: left; line-height: 1.25; font-weight: 500; }

/* ---------- breaks ---------- */
.breakline { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 14px; border-radius: 14px; background: var(--soft2); color: var(--mut); font-size: 13.5px; }
.breakline b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--body); }

/* ---------- date and time boxes: our own button, list and calendar ---------- */
.sel.pick-time .sel-text, .sel.pick-date .sel-text { font-variant-numeric: tabular-nums; }
.sel.pick-time[aria-expanded="true"] svg, .sel.pick-date[aria-expanded="true"] svg { transform: none; color: var(--ink); }
.sel.daypick { width: auto; min-height: 44px; height: 44px; padding: 0 14px 0 16px; border-radius: 99px; background: var(--tile); font-size: 14px; font-weight: 600; }
.calmenu { width: 304px; max-width: calc(100vw - 16px); padding: 12px; overflow: visible; }
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.calhead b { font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
.calnav { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); transition: background .2s; }
.calnav:hover:not(:disabled) { background: var(--soft2); }
.calnav:disabled { opacity: .3; cursor: default; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calgrid i { height: 28px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--mut); }
.calday { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.calday:hover:not(:disabled), .calday.on { background: var(--soft2); }
.calday.today { box-shadow: inset 0 0 0 1.5px var(--edge-strong); }
.calday.chosen, .calday.chosen:hover { background: var(--ink); color: var(--on-ink); font-weight: 600; box-shadow: none; }
.calday.on:not(.chosen) { box-shadow: inset 0 0 0 2px var(--ink); }
.calday:disabled { color: var(--mut); opacity: .4; cursor: default; }
.calfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
[data-theme="dark"] .calday:hover:not(:disabled), [data-theme="dark"] .calday.on, [data-theme="dark"] .calnav:hover:not(:disabled) { background: #2C2C31; }
[data-theme="dark"] .calday.chosen, [data-theme="dark"] .calday.chosen:hover { background: var(--ink); color: var(--on-ink); }
@media (max-width: 760px) {
  /* opening hours on a phone: the two buttons take the places the two boxes had */
  .hoursrow > input:first-of-type + .sel { grid-area: open; }
  .hoursrow > input:last-of-type + .sel { grid-area: close; }
  .hoursrow > .sel { width: 100% !important; min-width: 0; }
  .sel.daypick { flex: 1 1 100%; }
}

/* the hidden boxes never take room, whatever a layout rule says about inputs */
input.sel-native, select.sel-native, .hoursrow > input.sel-native { position: absolute !important; width: 1px !important; max-width: 1px !important; height: 1px !important; min-width: 0 !important; flex: none !important; overflow: hidden; clip-path: inset(50%); }

/* a setting row styles every span small and grey; the text inside one of our buttons is not that kind of span */
.setting .sel .sel-text { font-size: inherit; }
.setting .sel:not(.placeholder) .sel-text { color: inherit; }

/* ---------- an offer with a number: the number is the ticket's stub ---------- */
.offer.has-deal { grid-template-columns: 104px minmax(0, 1fr); }
.offer-stub.num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 6px; text-align: center; line-height: 1; }
.offer-stub.num strong { font-size: 27px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.offer-stub.num.long strong { font-size: 18px; letter-spacing: -.03em; }
.offer-stub.num small { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.offer-stub.num s { font-size: 12.5px; font-weight: 600; opacity: .7; }
.fields > .field[hidden] { display: none; }

/* ---------- hotel: each room type with its calendars ---------- */
.roomtypes { display: flex; flex-direction: column; gap: 12px; }
.roomtype { border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 4px 18px 16px; }
.roomtype > .item { border-top: 0; }
.roomcal { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--soft); }
.calrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--raised); }
.calrow .who { flex: 1 1 220px; min-width: 0; }
.calrow .who b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.calrow .who span { font-size: 12.5px; color: var(--mut); overflow-wrap: anywhere; }
.calrow.out { background: none; padding: 6px 2px 0; }
.caldot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.caldot.bad { background: #FF5A4D; }
.roomcal .slot { background: var(--raised); }
.roomcal .slot .input { background: var(--soft); }
@media (max-width: 760px) { .roomtype { padding: 2px 12px 12px; } }

/* ---------- questions she could not answer ---------- */
.gapbar { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 22px; background: var(--panel); color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px rgba(17, 17, 17, .1); }
.gapbar-n { flex: none; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 99px; display: grid; place-items: center; background: var(--green); color: var(--green-ink); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gapbar-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gapbar-t b { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.gapbar-t span { font-size: 13.5px; color: var(--dark-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gapbar .btn { flex: none; background: #FFFFFF; color: #111111; }
.gaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.gap { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--soft); }
.gap .input { background: var(--raised); }
.gap input.input { font-weight: 600; }
.gap-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.navdot { min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--green); color: var(--green-ink); font-style: normal; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .gapbar { flex-wrap: wrap; }
  .gapbar-t span { white-space: normal; }
  .gapbar .btn { width: 100%; }
  .top .nav a { position: relative; }
  .top .nav .navdot { position: absolute; top: 2px; left: calc(50% + 8px); margin: 0; min-width: 16px; height: 16px; font-size: 10px; }
}

/* ---------- the notification bell ---------- */
.bellwrap { position: relative; flex: none; }
.bellbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--ink); border-color: transparent; background: var(--tile); box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 28px rgba(17, 17, 17, .045); }
[data-theme="dark"] .bellbtn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.bellcount { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--green); color: var(--green-ink);
  font-style: normal; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--board); }
.bellbtn.live .bellcount { background: #FF5A4D; color: #fff; }
.bellbtn.live::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 2px #FF5A4D; opacity: .55; }
.bellmenu { position: absolute; z-index: 45; top: calc(100% + 8px); right: 0; width: min(400px, calc(100vw - 28px)); max-height: min(560px, calc(100vh - 110px)); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px; background: var(--tile); color: var(--ink);
  box-shadow: 0 0 0 1px var(--hair), 0 18px 44px rgba(17, 17, 17, .16); animation: rise .2s var(--ease) both; }
.bellmenu[hidden] { display: none; }
[data-theme="dark"] .bellmenu { background: #1C1C1F; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 44px rgba(0, 0, 0, .6); }
.bellitem { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s; }
.bellitem:hover { background: var(--soft2); }
[data-theme="dark"] .bellitem:hover { background: #2C2C31; }
.bellico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--soft2); color: var(--body); }
.bellico.booked, .bellico.lead { background: var(--tint); color: var(--tint-ink); }
.bellico.call { background: #FF5A4D; color: #fff; }
.bellitem.urgent .bellico.message, .bellico.credit { background: var(--ink); color: var(--on-ink); }
.belltxt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.belltxt b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.bellitem:not(.new) .belltxt b { font-weight: 500; }
.belltxt span { font-size: 13px; line-height: 1.35; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.belltxt small { font-size: 12px; color: var(--mut); margin-top: 2px; }
.belldot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--green); }
.bellfoot { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px 10px 6px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.35; color: var(--body); }
.bellfoot span { flex: 1 1 auto; min-width: 0; }
.bellfoot .btn { flex: none; }
@media (max-width: 760px) {
  .bellwrap { position: static; }
  .top { position: relative; }
  .bellmenu { left: 0; right: 0; width: auto; top: calc(100% + 8px); max-height: calc(100vh - 190px); }
}

/* ---------- an account the platform has paused ---------- */
.pausebar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; border-radius: 18px; background: var(--ink); color: var(--on-ink); font-size: 14px; }
.pausebar b { font-weight: 600; } .pausebar span { opacity: .75; }
