/* Quarter booking web. Plain CSS that works in every in-app browser: no :has(), no container queries, dvh with a
   vh fallback.
   Colours are the app's default palette, Aurora light (mobile/src/ui/palettes.ts), as tokens: components never hold
   a colour. A business's own colour or background picture (later) only overrides tokens on <html>
   (e.g. html[data-palette=pine] { --primary: … } or --page-wash: url(…)). */
:root {
  --bg: #F8F7FA; --surface: #FFFFFF; --fill: #F0EFF3; --fill2: #E4E2E8;
  --line: #EBEAED; --line2: #DFDEE2; --line3: #C9C7CD;
  --ink: #16151A; --ink2: #66646D; --ink3: #706D77; --ink4: #9C99A3;
  --primary: #28262C; --primary-top: #3A383F; --on-primary: #FFFFFF;
  --hero: #1F1D23; --on-hero: #F8F8FA; --on-hero2: #B6B4BB;
  --accent-soft: #F3F1FC;
  --pos: #2E9A69; --pos-ink: #1E6E49; --pos-soft: #E2F3E9;
  --gold-soft: #FBEED8; --gold-ink: #8F5009;
  --sky-soft: #E0EEFA;
  --danger: #BA3535;
  --glass: rgba(255, 255, 255, .84);
  /* the assistant's light (the orb): never text or buttons */
  --dawn: #F7B68E; --rose: #F0A7BA; --sky: #93C8EC; --dusk: #B9AEF0; --pearl: #FFFAF4;
  /* the page's top wash: peach from the left, lilac from the right */
  --page-wash: radial-gradient(ellipse 90% 340px at 0 0, #FBE3D7, rgba(251, 227, 215, 0) 72%),
    radial-gradient(ellipse 80% 340px at 100% 0, #EFE2F6, rgba(239, 226, 246, 0) 72%);
  --shadow-flat: 0 0 0 1px rgba(30, 25, 40, .06), 0 1px 2px rgba(31, 26, 40, .04);
  --shadow-raised: 0 0 0 1px rgba(30, 25, 40, .04), 0 1px 2px rgba(31, 26, 40, .04), 0 8px 24px rgba(31, 26, 40, .06);
  --shadow-primary: 0 6px 16px rgba(20, 16, 28, .18);
  --shadow-float: 0 2px 6px rgba(31, 26, 40, .06), 0 18px 48px rgba(31, 26, 40, .13);
  --system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --sans: 'Hanken Grotesk', var(--system);
  --display: 'Instrument Sans', 'Hanken Grotesk', var(--system);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* a picked time, day or person: graphite with white text in light */
  --sel-bg: var(--primary); --sel-top: var(--primary-top); --sel-ink: var(--on-primary); --sel-ring: transparent;
  --sel-shadow: var(--shadow-primary); --sel-dot: rgba(255, 255, 255, .25);
  /* the team's colours, by place in the team (the app's staffTints) */
  --s0: #ECE6FB; --s1: #E0EEFA; --s2: #FCE7DA; --s3: #F9E2EE; --s4: #DFF2E8; --s5: #F3EBD9;
  --bar-shadow: 0 -1px 0 var(--line), 0 -10px 30px -12px rgba(30, 25, 40, .14);
  color-scheme: light;
}
/* Dark, when the phone or browser is (the app's Aurora dark: warm graphite, softer than black). A picked time is a
   raised graphite chip with a pearl ring, not a pearl block: calmer on a dark page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141316; --surface: #1F1E22; --fill: #2B2A2F; --fill2: #38363D;
    --line: #2C2B2F; --line2: #3A393E; --line3: #55535A;
    --ink: #F3F1F5; --ink2: #A9A6B0; --ink3: #8E8B95; --ink4: #7A7781;
    --primary: #F0EDF2; --primary-top: #FFFFFF; --on-primary: #18171B;
    --hero: #28262D; --on-hero: #F8F8FA; --on-hero2: #B6B4BB;
    --accent-soft: #2D2A36;
    --pos: #5BC08E; --pos-ink: #86D6AD; --pos-soft: #273531;
    --gold-soft: #3C322B; --gold-ink: #EFB062;
    --sky-soft: #1E2C39;
    --danger: #F07F77;
    --glass: rgba(36, 35, 40, .84);
    --page-wash: radial-gradient(ellipse 90% 340px at 0 0, #2C221F, rgba(44, 34, 31, 0) 72%),
      radial-gradient(ellipse 80% 340px at 100% 0, #261F2C, rgba(38, 31, 44, 0) 72%);
    --shadow-flat: 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, .03), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-primary: 0 8px 18px -10px rgba(0, 0, 0, .7);
    --shadow-float: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 48px rgba(0, 0, 0, .5);
    --sel-bg: #38363D; --sel-top: #423F47; --sel-ink: #F3F1F5; --sel-ring: rgba(243, 241, 245, .78);
    --sel-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7); --sel-dot: rgba(243, 241, 245, .3);
    --s0: #2E2943; --s1: #1E2C39; --s2: #372920; --s3: #372532; --s4: #1E3129; --s5: #312C20;
    --bar-shadow: 0 -1px 0 var(--line), 0 -10px 30px -12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
/* The client's own pick (the sun/moon button at the bottom; the server writes it on <html>): the same dark. Keep the
   two blocks the same. */
:root[data-theme="dark"] {
  --bg: #141316; --surface: #1F1E22; --fill: #2B2A2F; --fill2: #38363D;
  --line: #2C2B2F; --line2: #3A393E; --line3: #55535A;
  --ink: #F3F1F5; --ink2: #A9A6B0; --ink3: #8E8B95; --ink4: #7A7781;
  --primary: #F0EDF2; --primary-top: #FFFFFF; --on-primary: #18171B;
  --hero: #28262D; --on-hero: #F8F8FA; --on-hero2: #B6B4BB;
  --accent-soft: #2D2A36;
  --pos: #5BC08E; --pos-ink: #86D6AD; --pos-soft: #273531;
  --gold-soft: #3C322B; --gold-ink: #EFB062;
  --sky-soft: #1E2C39;
  --danger: #F07F77;
  --glass: rgba(36, 35, 40, .84);
  --page-wash: radial-gradient(ellipse 90% 340px at 0 0, #2C221F, rgba(44, 34, 31, 0) 72%),
    radial-gradient(ellipse 80% 340px at 100% 0, #261F2C, rgba(38, 31, 44, 0) 72%);
  --shadow-flat: 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, .03), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-primary: 0 8px 18px -10px rgba(0, 0, 0, .7);
  --shadow-float: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 48px rgba(0, 0, 0, .5);
  --sel-bg: #38363D; --sel-top: #423F47; --sel-ink: #F3F1F5; --sel-ring: rgba(243, 241, 245, .78);
  --sel-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7); --sel-dot: rgba(243, 241, 245, .3);
  --s0: #2E2943; --s1: #1E2C39; --s2: #372920; --s3: #372532; --s4: #1E3129; --s5: #312C20;
  --bar-shadow: 0 -1px 0 var(--line), 0 -10px 30px -12px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
/* Fonts per language, so a word is never drawn in two fonts: Instrument Sans has no "ə"; neither font has
   Cyrillic or Vietnamese (the phone's own font has every script). Same rule as the app (mobile/src/ui/fonts.ts). */
html[lang=az] { --display: 'Hanken Grotesk', var(--system); }
html[lang=ru], html[lang=vi] { --sans: var(--system); --display: var(--system); }
html[lang=vi] body { line-height: 1.55; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--bg); background-image: var(--page-wash); background-repeat: no-repeat;
  color: var(--ink); font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; min-height: 100dvh;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--ink); text-decoration-color: var(--line3); text-underline-offset: 3px; }
.page { max-width: 480px; margin: 0 auto; padding: 0 20px; min-height: 100vh; min-height: 100dvh; position: relative; }
.screen { padding: 24px 0 40px; animation: in .45s var(--ease) both; }
.screen[hidden] { display: none; }
@keyframes in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.screen.back-in { animation-name: back-in; }
@keyframes back-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .ring-arc, .ring-slice { animation: none !important; transition: none !important; } }

/* type */
h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.02em; }
h1 { font-size: 28px; line-height: 1.08; }
h2 { font-size: 30px; line-height: 1.06; }
.overline { font: 700 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.overline.strong { color: var(--ink); }
.muted { color: var(--ink2); }
.faint { color: var(--ink4); }
.num { font-variant-numeric: tabular-nums; }

/* the language switch: a <details>, so it works without the script */
.toprow { display: flex; justify-content: flex-end; min-height: 34px; }
.lang { position: relative; z-index: 15; }
.lang summary { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; list-style: none;
  cursor: pointer; background: var(--glass); box-shadow: var(--shadow-flat); font: 600 13px/1 var(--system); color: var(--ink2);
  -webkit-tap-highlight-color: transparent; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--ink); }
.lang-list { position: absolute; right: 0; top: 42px; width: 250px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-float); font-family: var(--system); animation: drop .25s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-h { padding: 8px 10px 6px; font: 700 10.5px/1 var(--system); letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); }
.lang-list a { display: flex; flex-direction: column; gap: 2px; padding: 9px 34px 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); position: relative; }
.lang-list a:active { background: var(--fill); }
.lang-list a.on { background: var(--fill); }
.lang-list a.on::after { content: ""; position: absolute; right: 13px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lang-list .n { font: 600 14.5px/1.25 var(--system); }
.lang-list .e { font: 400 12.5px/1.2 var(--system); color: var(--ink2); }

/* the business */
.hero { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.hero .who { flex: 1; min-width: 0; }
.hero .sub { margin: 5px 0 0; font-size: 14.5px; line-height: 1.3; color: var(--ink2); }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-family: var(--display); font-weight: 600;
  color: var(--ink); background: var(--fill); }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 4px var(--surface), var(--shadow-raised); }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); }
.avatar.md { width: 32px; height: 32px; font-size: 12.5px; }
/* the team's colours, by place in the team (the app's staffTints) */
.s0 { background: var(--s0); } .s1 { background: var(--s1); } .s2 { background: var(--s2); }
.s3 { background: var(--s3); } .s4 { background: var(--s4); } .s5 { background: var(--s5); }
.team-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: 500 13.5px/1.2 var(--sans); color: var(--ink2); }
.team-row .stack { display: flex; }
.team-row .stack .avatar + .avatar { margin-left: -6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 34px; padding: 7px 13px;
  border-radius: 999px; background: var(--pos-soft); color: var(--pos-ink); font: 600 13.5px/1.2 var(--sans); }
.pill.none { background: var(--fill); color: var(--ink2); }
.dot-live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); }
.pill.none .dot-live { background: var(--ink4); }
.note-card { margin-top: 14px; padding: 13px 15px; border-radius: 18px; background: var(--fill); display: flex; gap: 10px;
  align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.note-card svg { flex: none; margin-top: 1px; color: var(--ink2); }
.section-label { margin: 26px 4px 0; }
.list { margin-top: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-raised); overflow: hidden; }
.svc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 14px 15px 16px; border: 0; background: transparent;
  text-align: left; transition: background .2s ease; }
.svc + .svc { box-shadow: inset 0 1px 0 var(--line); }
.svc:active { background: var(--fill); }
.svc .body { flex: 1; min-width: 0; }
.svc .name { display: block; font: 600 16.5px/1.25 var(--sans); letter-spacing: -.005em; }
.svc .desc { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink2); }
.svc .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.svc .meta b { font: 500 13.5px/1.2 var(--sans); color: var(--ink2); font-variant-numeric: tabular-nums; }
.svc .who { font: 500 12.5px/1.2 var(--sans); color: var(--ink4); }
.chev { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--ink3); }
.loc { height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font: 600 11.5px/1 var(--sans);
  background: var(--fill); color: var(--ink2); }
.loc.online { background: var(--sky-soft); color: var(--ink); }
.loc.phone { background: var(--gold-soft); color: var(--gold-ink); }
/* A sandbox server (staging, local): one bar at the top of every page. */
.testbar { position: sticky; top: 0; z-index: 20; padding: 7px 16px; text-align: center; font: 600 12.5px/1.3 var(--sans);
  color: var(--gold-ink); background: var(--gold-soft); box-shadow: inset 0 -1px 0 rgba(143, 80, 9, .15); }
.foot { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 500 12.5px/1 var(--sans); color: var(--ink4); }
.foot .brand { display: flex; align-items: center; gap: 7px; }
.foot a { color: var(--ink4); }
/* Light or dark, the client's pick (bottom right of the page); without one the phone's setting decides. */
.theme-row { display: flex; justify-content: flex-end; margin: 18px 0 26px; }
.theme-btn { width: 40px; height: 40px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink2); box-shadow: var(--shadow-flat); transition: transform .15s ease, background-color .24s var(--ease); }
.theme-btn:active { transform: scale(.92); }
.theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: inline; } }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: inline; }
.empty { margin-top: 18px; padding: 26px 20px; border-radius: 20px; text-align: center; background: var(--fill); }
.list .empty { margin: 0; border-radius: 0; }
.empty .t { font: 600 18px/1.25 var(--display); letter-spacing: -.01em; }
.empty .s { margin-top: 6px; font-size: 14px; color: var(--ink2); }

/* top bar of a step */
.top { display: flex; align-items: center; gap: 10px; }
.icon-btn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-flat);
  display: grid; place-items: center; color: var(--ink); }
.crumb { flex: 1; min-width: 0; height: 42px; border-radius: 999px; background: var(--glass); box-shadow: var(--shadow-flat);
  display: flex; align-items: center; gap: 8px; padding: 0 16px; font: 600 14px/1 var(--sans); white-space: nowrap; overflow: hidden; }
.crumb span:first-child { overflow: hidden; text-overflow: ellipsis; }
.step-title { margin: 22px 4px 0; }
.where { margin: 10px 4px 0; display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink2); }
.where svg { flex: none; }

/* chips, days, times */
.scroller { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -20px; padding: 10px 20px 6px; }
.scroller::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--sans); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-flat);
  transition: background .2s ease, color .2s ease; }
.chip.person { padding-left: 5px; }
.chip.on, .slot.on { background: var(--sel-bg); color: var(--sel-ink); box-shadow: inset 0 0 0 1.5px var(--sel-ring), var(--sel-shadow); }
.chip.on .avatar { box-shadow: 0 0 0 2px var(--sel-bg); }
/* A day's colour cross-fades (a plain colour: gradients don't animate); the top light gives it the same depth. */
.day { flex: none; width: 56px; height: 76px; border: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; background-color: transparent; color: var(--ink);
  box-shadow: inset 0 1px 0 transparent, inset 0 0 0 1.5px transparent, 0 0 0 transparent;
  transition: background-color .24s var(--ease), color .24s var(--ease), box-shadow .24s var(--ease), transform .15s ease; }
.day:active { transform: scale(.95); }
.day.on { background-color: var(--sel-bg); color: var(--sel-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1.5px var(--sel-ring), var(--sel-shadow); }
.day.closed { color: var(--ink4); }
.day .wd { font: 700 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.day .n { font: 600 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.day .d { width: 16px; height: 3px; border-radius: 2px; background: var(--fill2); transition: background-color .24s var(--ease); }
.day .d.has { background: var(--pos); }
.day.on .d { background: var(--sel-dot); }
.day.on .d.has { background: #5BC08E; } /* the same green, lighter: the picked day is dark in both themes */
.day .off { height: 3px; font: 700 9px/3px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.group { padding-top: 20px; }
.group .h { display: flex; justify-content: space-between; padding: 0 4px; font: 600 12.5px/1 var(--sans); color: var(--ink2); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.slot { height: 48px; border: 0; border-radius: 14px; font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-flat);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease; }
.slot:active { transform: scale(.96); }
/* A day's times rise in from just below, group by group (a delay each); picking one only changes its colour. */
.appear { animation: appear .32s var(--ease) both; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .appear { animation: none; }
  .day, .day .d, .slot, .chip { transition: none; }
}
/* The time screen's "what you're booking": the service as an agenda line, then the time once picked. */
.agenda { margin-top: 16px; padding: 15px 16px 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-raised); }
.agenda .n { display: block; font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }
.agenda .m { display: block; margin-top: 5px; font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.agenda .w { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 11px; box-shadow: inset 0 1px 0 var(--line);
  font: 600 15px/1.25 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.agenda .w.dim { color: var(--ink3); font-weight: 500; }
.agenda .w svg { flex: none; color: var(--ink3); }
.loading { opacity: .5; pointer-events: none; transition: opacity .2s ease; }
.skeleton { height: 48px; border-radius: 14px; background: var(--fill); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--glass); box-shadow: var(--bar-shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: translateY(120%); transition: transform .5s var(--ease);
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
.bar.up { transform: none; }
.bar-in { max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar .txt { flex: 1; min-width: 0; }
.bar .when { font: 600 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.bar .sub { margin-top: 4px; font-size: 13px; color: var(--ink2); }
.spacer { height: 130px; }
.btn { height: 54px; width: 100%; border: 0; border-radius: 999px; background: linear-gradient(180deg, var(--primary-top), var(--primary));
  color: var(--on-primary); font: 600 16px/1 var(--sans); box-shadow: var(--shadow-primary); transition: opacity .3s ease, transform .15s ease; }
.btn:active { transform: scale(.98); }
.btn.auto { width: auto; flex: none; height: 52px; padding: 0 24px; }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-flat); }
.btn.quiet { background: transparent; color: var(--ink2); box-shadow: none; height: 44px; font-weight: 500; font-size: 14.5px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.busy { opacity: .7; pointer-events: none; }
a.btn { display: grid; place-items: center; text-decoration: none; }
.fine { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--ink4); }

/* details */
.summary { margin-top: 18px; padding: 16px 18px; border-radius: 20px; color: var(--on-hero); display: flex; justify-content: space-between;
  gap: 14px; align-items: flex-end; background-color: var(--hero);
  background-image: radial-gradient(ellipse 70% 120% at 0 0, rgba(247, 182, 142, .2), rgba(247, 182, 142, 0) 70%),
    radial-gradient(ellipse 70% 120% at 100% 0, rgba(185, 174, 240, .26), rgba(185, 174, 240, 0) 70%); }
.summary .a { min-width: 0; }
.summary .n { display: block; font: 600 19px/1.15 var(--display); letter-spacing: -.01em; }
.summary .s { display: block; margin-top: 6px; font-size: 13.5px; color: var(--on-hero2); }
.summary .b { flex: none; text-align: right; }
.summary .t { display: block; font: 600 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.form { margin-top: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-flat); }
.field { display: block; padding: 13px 16px 12px; }
.field + .field { box-shadow: inset 0 1px 0 var(--line); }
.field .l { display: block; font: 500 12.5px/1 var(--sans); color: var(--ink2); }
.field .l i { font-style: normal; color: var(--ink4); }
.field input, .field textarea { margin-top: 7px; width: 100%; border: 0; outline: 0; padding: 0; background: transparent;
  font: 500 17px/1.3 var(--sans); color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink4); font-weight: 400; }
.field .row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.field .row input { margin-top: 0; flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.field .cc { font: 500 17px/1.3 var(--sans); color: var(--ink4); }
.field.bad .l { color: var(--danger); }
.verify { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-flat); transition: box-shadow .35s ease; }
.verify.active { box-shadow: 0 0 0 2px var(--primary), var(--shadow-float); }
.verify .head { display: flex; gap: 10px; align-items: flex-start; }
.verify .head svg { flex: none; margin-top: 1px; color: var(--ink); }
.verify .title { display: block; font: 600 15px/1.3 var(--sans); }
.verify .sub { display: block; margin-top: 3px; font-size: 14px; color: var(--ink2); }
.code { position: relative; margin-top: 14px; }
.code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; color: transparent; caret-color: transparent;
  background: transparent; border: 0; letter-spacing: 2em; }
.boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; pointer-events: none; }
.box { height: 54px; border-radius: 14px; display: grid; place-items: center; font: 600 23px/1 var(--display); font-variant-numeric: tabular-nums;
  background: var(--fill); transition: background .25s ease, box-shadow .25s ease; }
.box.filled { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(149, 128, 227, .3); }
.box.cur { box-shadow: inset 0 0 0 2px var(--primary); }
.code.wrong .boxes { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 14px; }
.link { border: 0; background: none; padding: 6px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line3);
  text-underline-offset: 3px; font-size: 14px; }
.hint { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 13.5px; color: var(--ink2); }
.result { margin-top: 14px; padding: 14px; border-radius: 16px; display: flex; gap: 10px; align-items: flex-start; background: var(--pos-soft); color: var(--pos-ink); }
.result .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pos); }
.result.req { background: var(--gold-soft); color: var(--gold-ink); } .result.req .ic { background: var(--gold-ink); }
.result.join { background: var(--fill); color: var(--ink2); } .result.join .ic { background: var(--ink4); }
.result .t { display: block; font: 600 15px/1.3 var(--sans); }
.result .s { display: block; margin-top: 3px; font-size: 14px; }
.check { margin-top: 12px; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0;
  background: transparent; text-align: left; font-size: 14px; color: var(--ink2); }
.check .bx { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line3); }
.check.on .bx { background: var(--primary); box-shadow: none; }
.check:not(.on) .bx svg { opacity: 0; }
.cta { margin-top: 18px; }
.err { margin-top: 10px; font-size: 14px; color: var(--danger); text-align: center; }

/* done + manage */
.ring { display: flex; justify-content: center; margin-top: 16px; }
.ring-arc { stroke-dasharray: 301.6; stroke-dashoffset: 301.6; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1); }
.ring.go .ring-arc { stroke-dashoffset: 0; }
.ring-slice { transform-origin: 56px 56px; opacity: 0; transform: scale(.9); transition: opacity .6s ease .9s, transform .8s var(--ease) .9s; }
.ring.go .ring-slice { opacity: 1; transform: scale(1); }
.done-title { margin-top: 22px; text-align: center; font-size: 34px; line-height: 1.05; letter-spacing: -.025em; }
.done-sub { margin: 10px auto 0; max-width: 320px; text-align: center; font-size: 15.5px; line-height: 1.5; color: var(--ink2); }
.ticket { margin-top: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-raised); overflow: hidden; }
.ticket .top-part { padding: 18px 18px 16px; }
.ticket .status { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pos-ink); }
.ticket .status.pending { color: var(--gold-ink); } .ticket .status.off { color: var(--ink3); }
.ticket .svc-name { margin-top: 10px; font: 600 22px/1.15 var(--display); letter-spacing: -.015em; }
.ticket .when { margin-top: 6px; font: 500 15px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.ticket .cut { margin: 0 18px; border-top: 1.5px dashed var(--line2); }
.ticket .place { padding: 14px 18px 16px; display: flex; align-items: center; gap: 12px; }
.ticket .place .k { display: block; font: 600 14.5px/1.25 var(--sans); }
.ticket .place .v { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink2); }
.small-btn { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fill); font: 600 13.5px/1 var(--sans);
  color: var(--ink); display: inline-flex; align-items: center; text-decoration: none; }
.cal-label { margin: 20px 4px 10px; font: 500 12.5px/1 var(--sans); color: var(--ink2); }
.cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal a { height: 46px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-flat); display: grid; place-items: center;
  font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.steps { margin-top: 14px; padding: 6px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-flat); }
.steps .st { display: flex; align-items: center; gap: 12px; min-height: 50px; font: 500 14.5px/1.3 var(--sans); color: var(--ink2); }
.steps .st + .st { box-shadow: inset 0 1px 0 var(--line); }
.steps .st .o { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line3); }
.steps .st.done { color: var(--ink); } .steps .st.done .o { background: var(--pos); box-shadow: none; }
.steps .st:not(.done) .o svg { opacity: 0; }
.done-foot { margin: 18px 8px 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.confirm-row { display: flex; gap: 10px; }
.confirm-row .btn { flex: 1; }
.offer-times { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.offer-time { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px; border: 0; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-flat); text-align: left; font: 600 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.offer-time .w { display: block; margin-top: 4px; font: 400 13.5px/1 var(--sans); color: var(--ink2); }
.offer-time.on { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-primary); }
.offer-time.on .w { color: var(--on-hero2); }
.message { padding-top: 90px; text-align: center; }
.message p { color: var(--ink2); max-width: 320px; margin: 12px auto 0; }
.confirm-form { max-width: 320px; margin: 28px auto 0; }

/* the assistant (beta) */
.gap { margin-top: 14px; }
.ask-entry { margin-top: 22px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px 14px 14px; border: 0;
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-raised); text-align: left; transition: transform .15s ease; }
.ask-entry:active { transform: scale(.985); }
/* the orb: the assistant's light, as in the app */
.orb { flex: none; width: 40px; height: 40px; border-radius: 50%; background-color: var(--pearl);
  background-image: radial-gradient(circle at 34% 28%, rgba(255, 250, 244, .95), rgba(255, 250, 244, 0) 38%),
    radial-gradient(circle at 22% 70%, var(--dawn), rgba(247, 182, 142, 0) 55%),
    radial-gradient(circle at 78% 72%, var(--rose), rgba(240, 167, 186, 0) 55%),
    radial-gradient(circle at 80% 24%, var(--sky), rgba(147, 200, 236, 0) 55%),
    radial-gradient(circle at 50% 50%, var(--dusk), rgba(185, 174, 240, 0) 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 6px 14px -6px rgba(150, 130, 225, .6); }
.ask-entry .body { flex: 1; min-width: 0; }
.ask-entry .t { display: flex; align-items: center; gap: 8px; font: 600 15.5px/1.2 var(--sans); }
.ask-entry .s { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink2); }
.beta { height: 20px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 10px/1 var(--sans);
  letter-spacing: .1em; text-transform: uppercase; background: var(--accent-soft); color: var(--ink2); }
.crumb .beta { margin-left: auto; }
.thread { margin-top: 18px; min-height: 40vh; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; }
.msg.me { justify-content: flex-end; }
.msg .bubble { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.ai .bubble { background: var(--surface); box-shadow: var(--shadow-flat); border-bottom-left-radius: 6px; }
.msg.me .bubble { background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; }
.msg.me.failed .bubble { opacity: .55; }
.msg.note .bubble { background: var(--fill); color: var(--ink2); box-shadow: none; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 42px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink4); animation: pulse 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.tries { display: flex; flex-wrap: wrap; gap: 8px; }
.tries .chip { height: 38px; font-size: 13.5px; }
.ask-card { padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-raised); }
.ask-card .overline { margin-bottom: 8px; }
.ask-card .h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ask-card .h .d { font: 600 18px/1.15 var(--display); letter-spacing: -.01em; }
.ask-card .h .s { font-size: 13px; color: var(--ink2); text-align: right; }
.ask-card .at { margin-top: 8px; font: 600 14px/1.3 var(--sans); color: var(--gold-ink); }
.ask-card .at.free { color: var(--pos-ink); }
.ask-card .none { margin-top: 8px; font-size: 14px; color: var(--ink2); }
.ask-card .grid3 { margin-top: 10px; }
.ask-card .slot { height: 44px; font-size: 14.5px; touch-action: manipulation; background: var(--fill); box-shadow: none; }
.ask-card .slot.asked { box-shadow: inset 0 0 0 2px var(--pos); }
.composer { position: sticky; bottom: 0; margin: 16px -20px 0; padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--line);
  display: flex; align-items: center; gap: 8px; }
.ask-form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; }
.composer input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; outline: 0; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-flat); font: 500 16px/1 var(--sans); -webkit-appearance: none; appearance: none; }
.composer .mic, .composer .send { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill); color: var(--ink); -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.composer .send { background: var(--primary); color: var(--on-primary); }
.listening { flex: 1; display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.dot-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1s ease-in-out infinite; }

/* toast */
.toast { position: fixed; top: 16px; left: 50%; z-index: 40; pointer-events: none; transform: translate(-50%, -12px); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s ease; display: flex; align-items: center; gap: 8px; min-height: 40px; max-width: calc(100% - 32px);
  padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 500 14px/1.3 var(--sans);
  box-shadow: var(--shadow-float); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pos); display: grid; place-items: center; }
.toast.bad .ic { background: var(--danger); }
.noscript { margin: 20px 0; padding: 14px 16px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; }

/* ─── signed in, "Your requests" ─────────────────────────────────────────── */
.toprow { justify-content: space-between; align-items: center; gap: 10px; }
.me { position: relative; z-index: 15; }
.me summary { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 4px; border-radius: 999px; list-style: none;
  cursor: pointer; background: var(--glass); box-shadow: var(--shadow-flat); font: 600 13px/1 var(--sans); color: var(--ink);
  -webkit-tap-highlight-color: transparent; }
.me summary::-webkit-details-marker { display: none; }
.me summary .avatar { width: 26px; height: 26px; font-size: 11.5px; }
.me-menu { position: absolute; left: 0; top: 42px; min-width: 230px; padding: 14px 14px 8px; border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-float); animation: drop .25s var(--ease) both; }
.me-h { font: 600 15px/1.25 var(--sans); }
.me-e { margin-top: 3px; font-size: 13px; color: var(--ink2); word-break: break-all; }
.me-menu .btn { margin-top: 8px; }
.me-in { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--glass);
  box-shadow: var(--shadow-flat); font: 600 13px/1 var(--sans); color: var(--ink); text-decoration: none; }
.btn.small { height: 40px; font-size: 14.5px; }

#mine .mine { margin-top: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-raised); overflow: hidden; }
.mine-item + .mine-item { box-shadow: inset 0 1px 0 var(--line); }
.mine-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: transparent; text-align: left; }
.mine-head .a { flex: 1; min-width: 0; }
.mine-head .n { display: block; font: 600 16px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-head .w { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.mine-head .status { flex: none; padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--sans); background: var(--pos-soft); color: var(--pos-ink); }
.mine-head .status.pending { background: var(--gold-soft); color: var(--gold-ink); }
.mine-head .status.off { background: var(--fill); color: var(--ink2); }
.mine-item.open .btn { margin: 4px 16px 16px; width: calc(100% - 32px); }
/* the timeline: done (filled), now (a ring that breathes once), next/todo (an empty ring), off (struck through) */
.tl { list-style: none; margin: 0; padding: 0 16px 6px 16px; }
.tl li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line2); }
.tl li.done:not(:last-child)::before { background: var(--pos); }
.tl .o { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line3); }
.tl li.done .o { background: var(--pos); box-shadow: none; }
.tl li.now .o { box-shadow: inset 0 0 0 6px var(--gold-ink); }
.tl li.next .o { box-shadow: inset 0 0 0 1.5px var(--pos); }
.tl li.off .o { box-shadow: inset 0 0 0 1.5px var(--ink4); }
.tl .l { min-width: 0; padding-top: 2px; }
.tl .tt { display: block; font: 500 14.5px/1.3 var(--sans); color: var(--ink2); }
.tl li.done .tt, .tl li.now .tt, .tl li.next .tt { color: var(--ink); }
.tl li.now .tt { font-weight: 600; }
.tl li.off .tt { color: var(--ink3); }
.tl .ts { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }

/* signing in on the contact step: Google's own button look (white / dark), then "or book as a guest" */
.signin { margin-top: 14px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 999px;
  background: #FFFFFF; color: #1F1F1F; box-shadow: inset 0 0 0 1px #747775; font: 600 15px/1 'Roboto', var(--system); text-decoration: none; }
.gbtn .gt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gbtn { background: #131314; color: #E3E3E3; box-shadow: inset 0 0 0 1px #8E918F; } }
:root[data-theme="dark"] .gbtn { background: #131314; color: #E3E3E3; box-shadow: inset 0 0 0 1px #8E918F; }
.signin .why { margin: 8px 4px 0; text-align: center; font-size: 12.5px; color: var(--ink3); }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 4px 0; font: 500 12.5px/1 var(--sans); color: var(--ink3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.signin-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink);
  font: 500 13.5px/1.4 var(--sans); }
.signin-hint { margin: 14px 4px 0; font-size: 13px; color: var(--ink3); }
.signed { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--pos-soft);
  color: var(--pos-ink); font: 500 14px/1.3 var(--sans); }
.signed svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--pos); }
.signed .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.link { border: 0; background: transparent; padding: 4px 0; font: 600 13.5px/1 var(--sans); color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--line3); text-underline-offset: 3px; }
.field .sub-l { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink3); }

/* Big screens (a laptop or desktop): the same phone-first column, drawn larger so it doesn't look tiny in the middle
   of the screen. Phones and tablets are untouched. `zoom` scales every size at once (Chrome, Safari, Firefox 126+). */
@media (min-width: 1100px) and (min-height: 680px) {
  .page, .bar-in, .toast { zoom: 1.18; }
  .page { min-height: 0; }
}
@media (min-width: 1600px) and (min-height: 900px) {
  .page, .bar-in, .toast { zoom: 1.32; }
}
