/* The customer order page on the vue+ design system (vue+ by Compact, version 1790930592-7f77,
   2 Oct 2026): its tokens by their own names, its glass, header, hero, flow rail, step cards, detail
   and pay panels, side cards, document list and phone action bar, as its bundle.css draws them.
   What differs, and why: every font size is in rem (the reader's own size holds), so the system's px
   sizes are written as their rem at 16px; icons are its own line set, drawn as a mask in the text's
   colour (.ic-<name>, a file beside this one: the page carries no inline SVG); the colour scheme follows
   the device (prefers-color-scheme), and in Telegram's Mini App Telegram's own theme (data-theme on <html>, set
   by theme.js), never a switch on the page; and two text tones are darker than the
   system's, so every one is at least 4.5:1 on what it sits on in both schemes: green and red pill text
   (green-ink, red-ink; the system's own notes flag theirs as below AA), and the focus ring is orange-ink
   (its notes suggest it for an audit). No web font: the system uses the platform face. */

:root {
  color-scheme: light dark;
  --page: #f5f4f1;
  --bg: var(--page);
  --ink: #1d1d1f;
  --ink-2: #5f5f64;
  --ink-3: #6b6b70;
  --hair: rgba(29, 29, 31, .09);
  --well: rgba(29, 29, 31, .045);
  --glass-a: rgba(255, 255, 255, .5);
  --glass-b: rgba(255, 255, 255, .18);
  --glass-fill: rgba(255, 255, 255, .34);
  --glass-edge: rgba(255, 255, 255, .78);
  --glass-hi: rgba(255, 255, 255, .85);
  --glass-glow: rgba(255, 255, 255, .5);
  --glass-shadow: 0 30px 70px -40px rgba(60, 40, 20, .22), 0 1px 3px rgba(60, 40, 20, .04);
  --orange: #fe5c11;
  --orange-ink: #c2410c;
  --orange-soft: rgba(254, 92, 17, .12);
  --orange-light: #ff8a4c;
  --green: #1a9d57;
  --green-ink: #12703e;
  --green-soft: rgba(26, 157, 87, .12);
  --red: #e0383e;
  --red-ink: #b42328;
  --red-soft: rgba(224, 56, 62, .1);
  --red-light: #ff7a7e;
  --steel: #7d93c4;
  --btn: #1d1d1f;
  --btn-ink: #ffffff;
  --on-accent: #ffffff;
  --toast: rgba(29, 29, 31, .9);
  --blob-orange: rgba(254, 92, 17, .5);
  --blob-steel: rgba(125, 147, 196, .55);
  --blob-peach: rgba(255, 196, 150, .55);
  --r-xl: 30px;
  --r-card: 26px;
  --r-panel: 24px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-tile: 14px;
  --r-control: 12px;
  --r-pill: 999px;
  --shadow-step: 0 22px 44px -30px rgba(60, 40, 20, .28);
  --shadow-btn: 0 10px 24px -12px rgba(0, 0, 0, .55);
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* In Telegram's Mini App the page follows Telegram's theme, not the device's (theme.js sets data-theme on <html>;
   a browser never has it): each dark block below reads it, so a light Telegram on a dark phone is light. */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b0b0c;
    --ink: #f5f5f7;
    --ink-2: #a8a8ad;
    --ink-3: #8c8c92;
    --hair: rgba(255, 255, 255, .1);
    --well: rgba(255, 255, 255, .06);
    --glass-a: rgba(60, 60, 66, .4);
    --glass-b: rgba(30, 30, 34, .16);
    --glass-fill: rgba(255, 255, 255, .05);
    --glass-edge: rgba(255, 255, 255, .16);
    --glass-hi: rgba(255, 255, 255, .2);
    --glass-glow: rgba(255, 255, 255, .06);
    --glass-shadow: 0 30px 70px -36px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .3);
    --orange: #ff6a24;
    --orange-ink: #ff8a50;
    --orange-soft: rgba(255, 106, 36, .16);
    --green: #34c77b;
    --green-ink: #5fd896;
    --green-soft: rgba(52, 199, 123, .14);
    --red: #ff5a5f;
    --red-ink: #ff8a8e;
    --red-soft: rgba(255, 90, 95, .14);
    --btn: #f5f5f7;
    --btn-ink: #111111;
  }
}

/* The same where the Mini App's theme says dark (theme.js), whatever the device says. */
:root[data-theme="dark"] {
  --page: #0b0b0c;
  --ink: #f5f5f7;
  --ink-2: #a8a8ad;
  --ink-3: #8c8c92;
  --hair: rgba(255, 255, 255, .1);
  --well: rgba(255, 255, 255, .06);
  --glass-a: rgba(60, 60, 66, .4);
  --glass-b: rgba(30, 30, 34, .16);
  --glass-fill: rgba(255, 255, 255, .05);
  --glass-edge: rgba(255, 255, 255, .16);
  --glass-hi: rgba(255, 255, 255, .2);
  --glass-glow: rgba(255, 255, 255, .06);
  --glass-shadow: 0 30px 70px -36px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .3);
  --orange: #ff6a24;
  --orange-ink: #ff8a50;
  --orange-soft: rgba(255, 106, 36, .16);
  --green: #34c77b;
  --green-ink: #5fd896;
  --green-soft: rgba(52, 199, 123, .14);
  --red: #ff5a5f;
  --red-ink: #ff8a8e;
  --red-soft: rgba(255, 90, 95, .14);
  --btn: #f5f5f7;
  --btn-ink: #111111;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 40rem;
  min-height: 100vh;
  /* 100vh is the tallest the screen gets, so on a phone it runs under the browser's bars and the Mini App's. */
  min-height: 100dvh;
  padding: 1rem 16px 7.5rem;
  font: 1.125rem/1.45 var(--font-text);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fields take their font from the one field look below (never under 16px); a button its text's. */
button {
  font: inherit;
  color: inherit;
}

input[type=checkbox], input[type=radio] {
  font: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p, dl, dd, ol, ul {
  margin: 0;
}

p {
  overflow-wrap: anywhere;
}

ol, ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: 2px;
  border-radius: 10px;
}

b,
strong {
  font-weight: 600;
}

.muted {
  color: var(--ink-2);
  font-size: .8125rem;
}

.eyebrow {
  font-size: .71875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fine {
  font-size: .78125rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ------------------------------------------------------------- icons */
/* The design system's line set (custweb_static/icons/, 24px, 1.6 stroke), each file a mask over the
   text's colour, so an icon takes the colour of whatever it sits in, as the system's inline SVG does. */
.ic {
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ic-deposit { -webkit-mask-image: url(icons/deposit.svg); mask-image: url(icons/deposit.svg); }
.ic-survey { -webkit-mask-image: url(icons/survey.svg); mask-image: url(icons/survey.svg); }
.ic-install { -webkit-mask-image: url(icons/install.svg); mask-image: url(icons/install.svg); }
.ic-balance { -webkit-mask-image: url(icons/balance.svg); mask-image: url(icons/balance.svg); }
.ic-done { -webkit-mask-image: url(icons/done.svg); mask-image: url(icons/done.svg); }
.ic-check { -webkit-mask-image: url(icons/check.svg); mask-image: url(icons/check.svg); }
.ic-chevron { -webkit-mask-image: url(icons/chevron.svg); mask-image: url(icons/chevron.svg); }
.ic-left { -webkit-mask-image: url(icons/left.svg); mask-image: url(icons/left.svg); }
.ic-right { -webkit-mask-image: url(icons/right.svg); mask-image: url(icons/right.svg); }
.ic-arrow { -webkit-mask-image: url(icons/arrow.svg); mask-image: url(icons/arrow.svg); }
.ic-out { -webkit-mask-image: url(icons/out.svg); mask-image: url(icons/out.svg); }
.ic-calendar { -webkit-mask-image: url(icons/calendar.svg); mask-image: url(icons/calendar.svg); }
.ic-clock { -webkit-mask-image: url(icons/clock.svg); mask-image: url(icons/clock.svg); }
.ic-pin { -webkit-mask-image: url(icons/pin.svg); mask-image: url(icons/pin.svg); }
.ic-doc { -webkit-mask-image: url(icons/doc.svg); mask-image: url(icons/doc.svg); }
.ic-shield { -webkit-mask-image: url(icons/shield.svg); mask-image: url(icons/shield.svg); }
.ic-lock { -webkit-mask-image: url(icons/lock.svg); mask-image: url(icons/lock.svg); }
.ic-send { -webkit-mask-image: url(icons/send.svg); mask-image: url(icons/send.svg); }
.ic-permit { -webkit-mask-image: url(icons/permit.svg); mask-image: url(icons/permit.svg); }
.ic-alert { -webkit-mask-image: url(icons/alert.svg); mask-image: url(icons/alert.svg); }
.ic-download { -webkit-mask-image: url(icons/download.svg); mask-image: url(icons/download.svg); }
.ic-home { -webkit-mask-image: url(icons/home.svg); mask-image: url(icons/home.svg); }
.ic-group { -webkit-mask-image: url(icons/group.svg); mask-image: url(icons/group.svg); }
.ic-party { -webkit-mask-image: url(icons/party.svg); mask-image: url(icons/party.svg); }
.ic-close { -webkit-mask-image: url(icons/close.svg); mask-image: url(icons/close.svg); }
/* PayNow's own logo (13 Oct 2026), in its colours: an image, not a mask over the text's colour. */
.ic-paynow { background: url(paynow.svg) center / contain no-repeat; }

/* ------------------------------------------------------------ backdrop */
/* Soft colour behind the glass, so the blur has something to bend: three blobs, drawn by the script on
   the order page. On a page with no script (a 404, HitPay's return) the same three colours are drawn
   behind the body instead.
   The blobs hold still on every screen (Shane, 28 Oct 2026). While they drifted, every glass panel above them was
   blurred again at every frame (on a laptop at 1440 x 900, some 3.6 million pixels 60 to 120 times a second), so a
   computer's graphics never rested with nobody touching the page. Phones and narrow windows held them still already. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .75;
}

.b1 {
  width: 46vmax;
  height: 46vmax;
  left: -12vmax;
  top: -16vmax;
  background: radial-gradient(circle, var(--blob-orange), transparent 65%);
}

.b2 {
  width: 40vmax;
  height: 40vmax;
  right: -14vmax;
  top: 18vh;
  background: radial-gradient(circle, var(--blob-steel), transparent 65%);
}

.b3 {
  width: 36vmax;
  height: 36vmax;
  left: 20vw;
  bottom: -18vmax;
  background: radial-gradient(circle, var(--blob-peach), transparent 65%);
}

body:not(:has(> .backdrop))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .75;
  background:
    radial-gradient(46vmax 46vmax at 11vmax 7vmax, var(--blob-orange), transparent 65%),
    radial-gradient(40vmax 40vmax at calc(100% - 6vmax) calc(18vh + 20vmax), var(--blob-steel), transparent 65%),
    radial-gradient(36vmax 36vmax at calc(20vw + 18vmax) 100%, var(--blob-peach), transparent 65%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .blob, :root:not([data-theme="light"]) body:not(:has(> .backdrop))::before {
    opacity: .4;
  }
}

/* The same where the Mini App's theme says dark (theme.js), whatever the device says. */
:root[data-theme="dark"] .blob, :root[data-theme="dark"] body:not(:has(> .backdrop))::before {
  opacity: .4;
}

/* --------------------------------------------------------------- glass */
/* The page's own cards bend the colour behind them but no longer blur it (Shane, 3 Nov 2026). Behind them there is
   only the blobs' colour, blurred at 90px already, so blurring it again showed nothing (screenshots with and without
   it differ by under 1 in 255 on average, light and dark), while the graphics blurred every card again at every frame
   of a scroll, a tap or a turn of the wheel: 72% of a laptop's screen, 92% of a phone's, and the step cards, glass on
   glass, twice. Only glass with the page moving under it still blurs: the phone's bar, the toast and a Sheet's
   backdrop. */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: saturate(190%) brightness(1.04);
  backdrop-filter: saturate(190%) brightness(1.04);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}

/* The sheen: a specular edge that catches the top-left light and brightens again at the far corner. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(135deg, var(--glass-hi), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 68%, var(--glass-glow));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Light pooling just inside the top-left, under the content. */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 70% at 12% 0%, var(--glass-glow), transparent 55%);
}

.card {
  border-radius: var(--r-xl);
  padding: 22px;
}

/* ------------------------------------------------- the page's title */
/* The app's title, under the vue+ lockup, while the page signs in, takes an order or only says something
   (a page with no script draws the lockup here). Once an order shows, or one is being placed, the header's
   lockup says it, and the title stays for a screen reader only. */
body > h1 {
  font: 600 1.375rem/1.2 var(--display);
  letter-spacing: -.02em;
  padding: .5rem .25rem 1rem;
}

body > h1::before {
  content: "";
  display: block;
  height: 48px;
  margin-bottom: 1rem;
  background: url(vue-plus-logo.png) left center / contain no-repeat;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body > h1::before {
    background-image: url(vue-plus-logo-white.png);
  }
}

/* The same where the Mini App's theme says dark (theme.js), whatever the device says. */
:root[data-theme="dark"] body > h1::before {
  background-image: url(vue-plus-logo-white.png);
}

body:has(main.layout) > h1, body:has(main.order-flow) > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The order page's one status for a screen reader (signin.js announce): read out, never drawn. A rule of its
   own: a browser without :has() drops a whole selector list that holds one. */
body > .announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A page that only says something: its lines in one glass card. The order page's own <main> is that card
   too, until it holds the order (.layout) or an order being placed (.order-flow). */
body > main:not(.layout):not(.order-flow) {
  display: grid;
  gap: .75rem;
  padding: 22px;
  border-radius: var(--r-xl);
  font-size: .9375rem;
  background: linear-gradient(145deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: saturate(190%) brightness(1.04);
  backdrop-filter: saturate(190%) brightness(1.04);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}

/* -------------------------------------------------------------- layout */
/* One column on a phone (hero, journey, side cards, documents); two from a wide screen, the side sticky. */
.layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero" "process" "side" "more";
}

.hero {
  grid-area: hero;
  padding: 6px 4px 6px;
}

.process {
  grid-area: process;
  min-width: 0;
}

.side {
  grid-area: side;
  display: grid;
  gap: 16px;
  align-content: start;
}

.more {
  grid-area: more;
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

/* -------------------------------------------------------------- header */
/* The official lockup (vue+ by Compact), the product line after a hair rule, and Open chat. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  height: 56px;
  width: auto;
}

/* The lockup is the link to the website (22 Oct 2026), sized by its logo. It looks as it did before it was one (the
   user, 22 Oct 2026: "just keep the aesthetics the same"): no change under a pointer or a tap. A keyboard user, who
   cannot otherwise tell where they are, gets a thin grey line in place of the page's orange ring (the user's
   decision of 22 Oct, after #713): :focus-visible, so a pointer or a tap never shows it. */
.brand-home {
  display: flex;
  flex: none;
}

.brand-home:focus-visible {
  outline: 1px solid var(--ink-3);
  outline-offset: 4px;
  border-radius: 6px;
}

.logo-white {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-ink {
    display: none;
  }

  :root:not([data-theme="light"]) .logo-white {
    display: block;
  }
}

/* The same where the Mini App's theme says dark (theme.js), whatever the device says. */
:root[data-theme="dark"] .logo-ink {
  display: none;
}

:root[data-theme="dark"] .logo-white {
  display: block;
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--hair);
  min-width: 0;
}

.brand-kicker {
  font: 600 .875rem/1.1 var(--display);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.btn.chat-top {
  min-height: 40px;
  padding: 0 16px 0 14px;
  font-size: .875rem;
  gap: 7px;
}

.btn.chat-top .ic {
  width: 17px;
  height: 17px;
}

/* ---------------------------------------------------------------- hero */
.hello-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 6px;
}

.hello {
  font-size: .9375rem;
  color: var(--ink-2);
}

button.chip {
  cursor: copy;
}

button.chip:hover {
  color: var(--ink);
}

.chip {
  border: 1px solid var(--hair);
  background: var(--glass-b);
  border-radius: var(--r-pill);
  padding: 8px 13px;
  font: 500 .78125rem/1 var(--mono);
  letter-spacing: .01em;
  color: var(--ink-2);
  white-space: nowrap;
}

.headline {
  font: 600 clamp(1.625rem, 6.4vw, 2rem)/1.08 var(--display);
  letter-spacing: -.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.headline b {
  color: var(--orange-ink);
  font-weight: 600;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 16px;
}

/* ------------------------------------------------------------- buttons */
/* Pills: .btn-primary is the one next thing to do (near-black in light, near-white in dark), .btn-quiet
   the rest. Orange marks where the order is, never what to press. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 0;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
}

.btn .ic {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .6);
}

.btn-primary:active:not(:disabled) {
  transform: scale(.98);
}

.btn-quiet {
  background: var(--well);
  color: var(--ink);
  border: 1px solid var(--hair);
}

.btn-quiet:hover {
  background: var(--glass-a);
}

.btn.sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: .8125rem;
}

/* The width of its column, under the field it acts on (Verify OTP, defect 418). */
.btn.wide {
  width: 100%;
}

/* A button that reads as a link: the quiet second choices under a field ("Send again", "Change email", defect 418),
   where a row of pills was too many things at one weight. Underlined in the line's own ink; 44px under a finger. */
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (pointer: coarse) {
  .link-btn {
    min-height: 44px;
  }
}

/* Small to look at, not to tap: under a finger every button is 44px tall, the ops app's own rule. "Pick a day and
   time" in the hero, "Add to calendar" and "Replace my link" were 34px (defect 382, the iOS Simulator, 20 Oct
   2026). A mouse keeps 34. */
@media (pointer: coarse) {
  .btn.sm {
    min-height: 44px;
  }
}

.btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------- pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: .78125rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--well);
  color: var(--ink-2);
}

.pill .ic {
  width: 13px;
  height: 13px;
}

.pill.tone-green {
  background: var(--green-soft);
  color: var(--green-ink);
}

.pill.tone-orange {
  background: var(--orange-soft);
  color: var(--orange-ink);
}

.pill.tone-red {
  background: var(--red-soft);
  color: var(--red-ink);
}

/* --------------------------------------------------------------- notes */
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--well);
  border-radius: var(--r-tile);
  padding: 12px 14px;
  font-size: .84375rem;
  color: var(--ink-2);
}

.note .ic {
  color: var(--steel);
  margin-top: 1px;
}

.note.tone-red {
  background: var(--red-soft);
  color: var(--red-ink);
}

.note.tone-red .ic {
  color: var(--red);
}

.hero > .note {
  margin-top: 16px;
}

/* A booked visit's Change this date, a quiet line under the hero's date (defect 426), not a card of its own. */
.hero > .change-line {
  margin: 14px 0 0;
  color: var(--ink-2);
}

/* The wait for HitPay's line: in every hero, filled while the page waits (a screen reader hears it through
   signin.js's announce); empty, it takes no room. */
.hero > .wait-note:empty {
  margin-top: 0;
  padding: 0;
}

/* ----------------------------------------------------- the order journey */
.process {
  padding: 22px 0 8px;
  overflow: hidden;
}

.process-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
}

.process-head h2 {
  font: 600 1.125rem/1.2 var(--display);
  letter-spacing: -.02em;
}

/* The wheel's two arrows (P3): only for a pointer that can hover; a touch screen swipes, and every step has its
   dot on the rail. */
.wheel-nav {
  display: none;
  gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .wheel-nav {
    display: flex;
  }
}

/* The flow rail: green is done, the orange dot where the order is now, red something that needs a look. */
.rail {
  display: flex;
  align-items: flex-start;
  margin: 18px 22px 6px;
}

.rail-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: none;
  width: 20px;
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* A rail dot is 20px across, under a finger's 44: each node takes a tap 12px round its dot, a box that draws
   nothing (defect 382). Five steps leave the dots some 60px apart on a 375px phone, so no two reach each other.
   It lies above the flowing segment beside it (which is placed, for its dashes, and took the tap at the first
   dot's right), and the rail leaves 12px under itself, not 6, so the box stops where the wheel's cards begin. */
@media (pointer: coarse) {
  .rail {
    margin-bottom: 12px;
  }

  .rail-node::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 1;
  }
}

.rail-node:focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: 4px;
  border-radius: 8px;
}

.rail-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .71875rem;
  font-weight: 600;
  background: var(--well);
  color: var(--ink-3);
  border: 1px solid var(--hair);
}

.rail-dot .ic {
  width: 12px;
  height: 12px;
}

.rail-label {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .71875rem;
  white-space: nowrap;
  color: var(--ink-3);
  display: none;
}

.rail-node:first-child .rail-label {
  left: 0;
  transform: none;
}

.rail-node:last-child .rail-label {
  left: auto;
  right: 0;
  transform: none;
}

.rail-node.phase-done .rail-dot {
  background: var(--green);
  border-color: transparent;
  color: var(--on-accent);
}

.rail-node.phase-current .rail-dot {
  background: var(--orange);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 0 0 5px var(--orange-soft);
}

.rail-node.phase-current.tone-red .rail-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
}

.rail-node.phase-current.tone-green .rail-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.rail-seg {
  flex: 1;
  height: 2px;
  margin-top: 9px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--hair) 0 6px, transparent 6px 10px);
}

.rail-seg.seg-done {
  background: var(--green);
}

.rail-seg.seg-flow, .link.seg-flow {
  background: linear-gradient(90deg, var(--green), var(--orange)) 0 0 / 100% 100%, var(--orange);
  overflow: hidden;
}

/* The rail's segment holds its moving dashes itself. Not the wheel's link, already placed absolutely: made
   relative here too, it fell back into the line as an empty span, and the link into the current step vanished. */
.rail-seg.seg-flow {
  position: relative;
}

.rail-seg.seg-flow::after, .link.seg-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, .85) 8px 12px);
  animation: flow 1.1s linear infinite;
}

.rail-seg.seg-alert, .link.seg-alert {
  background: linear-gradient(90deg, var(--green), var(--red));
}

@keyframes flow {
  from {
    transform: translateX(-12px);
  }

  to {
    transform: translateX(0);
  }
}

/* The wheel: a card per step, scrolled sideways, the current one in the middle, joined by short links. */
.wheel {
  perspective: 1100px;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  --card-w: min(68vw, 250px);
  --gap: 26px;
  padding: 26px calc(50% - var(--card-w) / 2) 30px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.wheel::-webkit-scrollbar {
  display: none;
}

.slot {
  position: relative;
  flex: none;
  width: calc(var(--card-w) + var(--gap));
  padding: 0 calc(var(--gap) / 2);
  scroll-snap-align: center;
}

/* A link runs from its card's edge to the next card's. Here, the gap between flat cards; the wheel's script
   moves it to where the bowed cards' edges are drawn (signin.js, wheel), so it meets both. */
.link {
  position: absolute;
  left: calc(100% - var(--gap) / 2);
  width: var(--gap);
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  z-index: 0;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px);
  opacity: .5;
}

.link.seg-done {
  background: var(--green);
  opacity: 1;
}

.link.seg-flow, .link.seg-alert {
  opacity: 1;
}

.step-card {
  position: relative;
  z-index: 1;
  width: 100%;
  /* The cards' own height with one line under the pill (Details went, 18 Oct 2026): it keeps them all one
     height should a step have no line or no pill. */
  min-height: 167px;
  text-align: left;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 18px 14px;
  border-radius: var(--r-card);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(160deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: saturate(190%);
  backdrop-filter: saturate(190%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-step);
  /* The wheel's bow (P3): scripts set --rot, --sc and --lift by how far a card is from the middle. */
  transform: translateY(var(--lift, 0)) rotateY(var(--rot, 0)) scale(var(--sc, 1));
  /* No layer asked for (will-change): each card held one of its own for good, five surfaces kept for nothing at
     the page's scale and multiplied at a pinch-zoom's (defect 384). The bow's transition still runs. */
  transition: transform .35s var(--ease), opacity .4s, filter .4s, box-shadow .3s;
}

.card-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-tile);
  display: grid;
  place-items: center;
  background: var(--well);
  color: var(--ink-2);
}

.card-icon .ic {
  width: 22px;
  height: 22px;
}

.card-no {
  font: 600 .78125rem/1 var(--mono);
  color: var(--ink-3);
}

.card-title {
  font: 600 1.125rem/1.15 var(--display);
  letter-spacing: -.02em;
}

.card-meta {
  font-size: .78125rem;
  color: var(--ink-2);
  min-height: 18px;
}

.card-title, .card-meta {
  display: block;
}

.step-card.is-selected:not(.phase-current) {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--ink-3), 0 18px 40px -26px rgba(60, 40, 20, .35);
}

.step-card.phase-done.is-selected {
  opacity: .9;
}

.rail-node.is-selected .rail-dot {
  transform: scale(1.18);
}

.now-tag {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: .71875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--on-accent);
  box-shadow: 0 6px 16px -6px var(--orange);
}

.tone-red .now-tag {
  background: var(--red);
  box-shadow: 0 6px 16px -6px var(--red);
}

/* Done fades to 70% monotone; upcoming is held back; current is full colour with the Compact orange ring. */
.step-card.phase-done {
  filter: grayscale(1);
  opacity: .7;
}

.step-card.phase-done .card-icon {
  background: var(--ink);
  color: var(--page);
}

.step-card.phase-upcoming {
  opacity: .55;
}

.step-card.phase-upcoming .card-icon {
  background: rgba(125, 147, 196, .16);
  color: var(--steel);
}

.step-card.phase-current {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--orange), 0 0 0 7px var(--orange-soft), 0 26px 50px -24px rgba(254, 92, 17, .55);
}

.step-card.phase-current .card-icon {
  background: linear-gradient(145deg, var(--orange-light), var(--orange));
  color: var(--on-accent);
  box-shadow: 0 8px 18px -8px var(--orange);
}

.step-card.phase-current .card-title {
  font-weight: 600;
}

.step-card.phase-current.tone-red {
  box-shadow: 0 0 0 2px var(--red), 0 0 0 7px var(--red-soft), 0 26px 50px -24px rgba(224, 56, 62, .5);
}

.step-card.phase-current.tone-red .card-icon {
  background: linear-gradient(145deg, var(--red-light), var(--red));
  box-shadow: 0 8px 18px -8px var(--red);
}

/* The last step, current: the order is done. Green ring; the tile's orange runs into the mark's steel. */
.step-card.phase-current.tone-green {
  box-shadow: 0 0 0 2px var(--green), 0 0 0 7px var(--green-soft), 0 26px 50px -24px rgba(26, 157, 87, .5);
}

.step-card.phase-current.tone-green .card-icon {
  background: linear-gradient(145deg, var(--orange-light), var(--orange) 45%, var(--steel));
}

/* ------------------------------------------------------------ the step's panel */
.detail {
  margin: 0 12px 12px;
}

.detail-inner {
  border-radius: var(--r-panel);
  padding: 20px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  animation: rise .45s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.detail-head > div {
  flex: 1;
  min-width: 0;
}

/* A phone's card is 300px wide: the step's title keeps its line, and its status pill drops under it, aligned with the
   title, instead of squeezing "Place order" onto two. */
@media (max-width: 559px) {
  .detail-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .detail-head > div {
    flex: 1 1 calc(100% - 58px);
  }

  .detail-head > .pill {
    margin-left: 58px;
  }
}

.detail-head h3 {
  font: 600 1.25rem/1.2 var(--display);
  letter-spacing: -.02em;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--well);
  color: var(--ink-2);
}

.detail-icon .ic {
  width: 22px;
  height: 22px;
}

.detail-icon.tone-orange {
  background: linear-gradient(145deg, var(--orange-light), var(--orange));
  color: var(--on-accent);
}

.detail-icon.tone-green {
  background: var(--green-soft);
  color: var(--green-ink);
}

.detail-icon.tone-red {
  background: var(--red-soft);
  color: var(--red-ink);
}

.lines {
  display: grid;
  gap: 8px;
  font-size: .9375rem;
}

/* The step's timeline: what has happened, what is now, what is next. A hair line joins the dots, half-green
   below a step that is done; the open one holds the step's lines and its button. */
.subs {
  position: relative;
}

.sub {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}

.sub:last-child {
  padding-bottom: 2px;
}

/* Brought to the top of the screen when Back leaves the step it opens above it: clear of the status bar, with room
   above its name (defect 380; Lane F's review, 31 Oct 2026). */
.sub.has-open {
  scroll-margin-top: calc(16px + env(safe-area-inset-top, 0px));
}

.sub::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: var(--hair);
  border-radius: 2px;
}

.sub:last-child::before {
  display: none;
}

.sub-done::before {
  background: var(--green);
  opacity: .5;
}

.sub-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: .78125rem;
  font-weight: 600;
  background: var(--well);
  color: var(--ink-3);
  border: 1px solid var(--hair);
}

.sub-dot .ic {
  width: 15px;
  height: 15px;
}

.sub-done .sub-dot {
  background: var(--green);
  color: var(--on-accent);
  border-color: transparent;
}

.sub-current .sub-dot {
  background: var(--orange);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 0 0 5px var(--orange-soft);
}

.sub-alert .sub-dot {
  background: var(--red);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 0 0 5px var(--red-soft);
}

.sub-body {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
}

.sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.sub-head h4 {
  font-size: .9375rem;
  font-weight: 600;
}

.sub-todo h4 {
  color: var(--ink-3);
  font-weight: 500;
}

.sub-done h4 {
  color: var(--ink-2);
  font-weight: 500;
}

/* A sub-step's detail ("Window only", "Deposit S$275.00 paid") on its own muted line under its label, aligned
   with the label's text: inline beside it, it wrapped mid-phrase on a phone. */
.sub-meta {
  flex-basis: 100%;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.sub-open {
  margin-top: 12px;
}

/* A step's lead line over its timeline ("Coming up. This is what will happen."): below the step's heading and
   above its sub-steps in weight, with the same gap to the first sub-step as the heading has to it. It sat flush
   on the first dot. */
.detail-inner > p.lines {
  font-size: .8125rem;
  color: var(--ink-2);
}

.detail-inner > p.lines + .subs {
  margin-top: 18px;
}

/* On a phone the open sub-step takes the full width under its dot: 42px is a lot of a 343px card. */
@media (max-width: 559px) {
  .sub-open {
    margin-left: -42px;
  }

  .sub.has-open::before {
    display: none;
  }
}

/* The pay panel: what is due, how it is paid, and the one button. */
.pay {
  margin-top: 16px;
  border-radius: var(--r-md);
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  padding: 16px;
}

.pay-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.pay-amount span {
  color: var(--ink-2);
  font-size: .8125rem;
}

.pay-amount b {
  font: 600 1.625rem/1 var(--display);
  letter-spacing: -.03em;
}

.pay .btn {
  margin-top: 12px;
}

.paylogos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.paylogos > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .71875rem;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--hair);
  padding: 3px 8px;
  border-radius: 6px;
}

/* A way to pay's mark beside its name (13 Oct 2026), at the chip's own size. */
.paylogos .ic {
  width: 1.4em;
  height: 1.4em;
}

/* -------------------------------------------------------------- side cards */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h3, .help-card h3 {
  font: 600 1.0625rem/1.2 var(--display);
  letter-spacing: -.02em;
}

.specs {
  display: grid;
  gap: 6px;
}

.specs div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 8px;
  font-size: .8125rem;
}

.specs dt {
  color: var(--ink-3);
}

/* Your window: the product render on a well tile beside its specs. */
.win-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

.win-img {
  border-radius: 20px;
  background: var(--well);
  padding: 10px;
}

.win-img img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  margin: 0 auto;
}

.win-body h3 {
  font: 600 1.0625rem/1.2 var(--display);
  margin: 3px 0 10px;
}

/* What the customer is getting, under the window's name, above its specs (the owner, 3 Nov 2026). */
.win-body p {
  margin: -4px 0 12px;
  line-height: 1.45;
  text-wrap: pretty;  /* without it "212" falls to a line alone at some widths */
}

/* Payments: the share paid as an orange arc over a well track, the amount paid in its middle. */
.ring-wrap {
  position: relative;
  width: 150px;
  margin: 0 auto 14px;
}

.ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--share, 0) * 1turn), var(--well) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
}

.ring-mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-mid b {
  font: 600 1.5rem/1.1 var(--display);
  letter-spacing: -.03em;
}

.ring-mid span {
  font-size: .78125rem;
  color: var(--ink-3);
}

/* A member's group buy: the estate, how many have joined, and a bar that fills orange, then green. */
.gb-meter {
  display: grid;
  gap: 8px;
}

.gb-say {
  font-size: .875rem;
}

.gb-bar {
  position: relative;
  display: flex;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--well);
  overflow: hidden;
}

.gb-bar span {
  display: block;
  flex: none;
  height: 100%;
  width: calc(var(--share, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-light), var(--orange));
  transition: width .8s var(--ease);
}

.gb-bar.is-reached span {
  background: var(--green);
}

/* Places held but not yet paid for, after the paid ones: the same colour, paler, square where it meets them. */
.gb-bar span.gb-held {
  opacity: .35;
  border-radius: 0;
}

.ledger li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--hair);
  font-size: .9375rem;
}

.ledger .amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ledger .amt b {
  font-variant-numeric: tabular-nums;
}

/* Important documents: each a row with its document tile, its name, and a download mark. */
.docs {
  display: grid;
  gap: 4px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border-radius: var(--r-tile);
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  transition: background .15s;
}

.doc:hover:not(:disabled) {
  background: var(--well);
}

.doc-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--orange-soft);
  color: var(--orange-ink);
}

.doc-ic .ic {
  width: 18px;
  height: 18px;
}

.doc-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.doc-text b {
  font-size: .875rem;
  font-weight: 600;
}

.doc-text span {
  font-size: .78125rem;
  color: var(--ink-3);
}

.doc-go {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
}

.docs > .note {
  margin-top: 6px;
}

/* A document not issued yet: locked, everything in ink-3, not a button. */
.doc.is-off .doc-ic {
  background: var(--well);
  color: var(--ink-3);
}

.doc.is-off b {
  color: var(--ink-3);
}

/* An alert beside the flow (the group-buy choice): its icon, then what it says and its buttons. */
.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--r-lg);
  padding: 16px 18px;
}

.alert > .ic {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--red);
}

.alert.tone-orange > .ic {
  color: var(--orange);
}

.alert-body {
  display: grid;
  gap: 10px;
  flex: 1;
  min-width: 0;
  font-size: .84375rem;
}

/* A booked visit: its date as a calendar tile beside what and when. */
.booked {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.booked b {
  font-size: .9375rem;
}

.booked p {
  font-size: .84375rem;
  color: var(--ink-2);
}

.date-tile {
  flex: none;
  width: 70px;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  background: var(--glass-a);
  border: 1px solid var(--hair);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
}

.date-tile span {
  background: var(--orange);
  color: var(--on-accent);
  font-size: .71875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 0;
}

.date-tile b {
  font: 600 1.625rem/1.1 var(--display);
  padding-top: 4px;
}

.date-tile em {
  font-style: normal;
  font-size: .71875rem;
  color: var(--ink-3);
  padding-bottom: 6px;
}

/* Add to calendar, under a booked visit's tile (P4): its quiet button, and the line if the file could not be made. */
.visit-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin: -2px 0 12px;
}

/* The Completed step (P4): the congratulations, the warranty's end date in its green box, the care tip in a well,
   and the closing line. */
.celebrate {
  display: grid;
  gap: 10px;
}

.celebrate h4 {
  font: 600 1.375rem/1.2 var(--display);
  letter-spacing: -.01em;
}

.celebrate > p {
  font-size: .9375rem;
}

.warranty {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-soft);
  border-radius: var(--r-tile);
  padding: 12px 14px;
}

.warranty .ic {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--green);
}

.warranty b {
  font-size: .9375rem;
  color: var(--green-ink);
}

.warranty p,
.care p {
  font-size: .84375rem;
  color: var(--ink-2);
}

.care {
  display: grid;
  gap: 2px;
  background: var(--well);
  border-radius: var(--r-tile);
  padding: 12px 14px;
}

.care b {
  font-size: .71875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* A short confirmation dropped in from the top (the reference copied). */
.toast {
  position: fixed;
  left: 50%;
  top: calc(16px + env(safe-area-inset-top, 0px));
  z-index: 40;
  max-width: min(92vw, 440px);
  transform: translate(-50%, -160%);
  padding: 12px 18px;
  border-radius: 18px;
  font-size: .875rem;
  font-weight: 500;
  background: var(--toast);
  color: var(--on-accent);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: transform .5s var(--ease);
}

.toast.is-on {
  transform: translate(-50%, 0);
}

.help-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.link-panel > .btn {
  justify-self: start;
}

/* ---------------------------------------------------- placing an order */
/* Ordering (phase G): "Your flat", then "Your quote and terms". One column, the page's own glass and
   buttons; inputs at the reader's size (1rem or more, so a phone does not zoom in on focus). */
.order-flow {
  display: grid;
  gap: 16px;
  max-width: 40rem;
  margin: 0 auto;
}

/* The block picker and the group-buy offer wait empty until an estate is chosen: no gap for them till then. */
.sheet-body > div:empty, .placing-body > div:empty {
  display: none;
}

/* The open sub-step of a new customer's first step (P2): the flat form, the scope choice, or the quotation, in
   the timeline where the order's own lines go. */
.placing-body {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* A field put away (an estate not ours, in Your flat): .field's own display would show it still. */
.placing-body > [hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: .9375rem;
  font-weight: 600;
}

/* The plain pages (the recovery form): the page's own field, label and .btn, with a gap between them. */
.plain-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.plain-form label {
  display: grid;
  gap: 6px;
}

.plain-form label > input {
  font-weight: 400;
}

.plain-form .btn {
  justify-self: start;
}

.field-hint {
  font-size: .8125rem;
  color: var(--ink-3);
}

/* The one field rule: every text input and select on the page (both are .input) the same height, radius, padding
   and fill. appearance: none, or Safari draws a select its own thinner, square way beside the inputs (the user's
   screenshot, 13 Oct 2026); a select then has its chevron drawn here, in the field's own ink, both schemes.
   Every other text field, select and textarea takes the same look ("make sure the mac drop down box issue doesn't
   reoccur elsewhere", the same day): the recovery page's fields have no class. 1rem, never less: iOS Safari zooms
   the page in on a field under 16px. :where() keeps those at no specificity, so a field's own class still wins;
   the abuse gate's .trap is left out. */
:where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.trap), select, textarea), .input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hair);
  background-color: var(--glass-b);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

:where(select), select.input {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

:where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea):focus-visible, .input:focus-visible {
  border-color: var(--orange);
}

/* The email's code (13 Oct 2026): six digits, spaced for reading, and the line under it, "Didn't get it?" and its
   two quiet buttons, a dot between them drawn as a shape (the page's stylesheet says no words), never read aloud. */
.code-input {
  letter-spacing: .3em;
  font-variant-numeric: tabular-nums;
}

.code-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  font-size: .875rem;
  color: var(--ink-2);
}

/* The dot before Change email: a shape, not a word (the stylesheet says none), and part of Change email's own group,
   so a wrap takes it to the next line with it. On a narrow phone, where the line wraps, it is not drawn. */
.code-change::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

@media (max-width: 359px) {
  .code-change::before {
    display: none;
  }
}

/* Back and Next step set apart from the email's buttons above them (defect 418). */
.flat-actions {
  margin-top: 24px;
}

/* "Didn't get it?" with Send again: kept together on one line when the row wraps (defect 386). */
.code-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Your flat's email, verified by its own buttons (the user, 20 Oct 2026): under the field, Verify email with the
   hint at its right, then the code's field and its line; drawn close under the field, as its hint was. */
.email-steps {
  display: grid;
  gap: 16px;
  margin-top: -6px;
}

.code-line .field-hint {
  flex: 1 1 14rem;
}

/* "verified" and its tick beside the email's label, in the green the page writes words in. */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--green-ink);
  vertical-align: middle;
}

.verified .ic {
  width: 16px;
  height: 16px;
}

/* Accept and pay's first thing: the mobile we will call, large, its question under it (the owner's mock-up). */
.phone-check {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--orange-soft);
  font-size: .9375rem;
}

.phone-big {
  font: 600 1.5rem/1.2 var(--display);
  letter-spacing: .01em;
  color: var(--ink);
}

.phone-check p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.two-way {
  display: grid;
  gap: 8px;
}

.two-way-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* A two-way answer, chosen: the system's selected choice (orange edge on its soft tint). */
.btn.choice {
  border-width: 1.5px;
  background: var(--glass-b);
}

.btn.choice[aria-pressed="true"] {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-ink);
}

/* The group-buy offer under the estate (P5): an orange-soft tile, its group icon on an orange square beside what it
   is and its price (since 3 Nov 2026, in place of the chat's price line), then its buttons. Its eyebrow is larger
   and bolder than the page's others (the owner, 13 Oct 2026: a good deal should stand out), sized to the screen
   between a phone's 15px and a desktop's 19px; the sheet it opens heads itself with the same. */
.gb-offer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--orange-soft);
  font-size: .9375rem;
}

.gb-offer-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--orange-light), var(--orange));
}

.gb-offer-text {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.gb-offer-text .eyebrow, .sheet-head .gb-eyebrow {
  display: block;
  font: 600 clamp(.9375rem, .8125rem + .5vw, 1.125rem)/1.25 var(--display);
  letter-spacing: .08em;
  overflow-wrap: anywhere;
  color: var(--orange-ink);
}

/* The tile's top row (the owner, 3 Nov 2026: the pricing should be more obvious, and no empty strips): the icon and
   the eyebrow, and at the right the group price as a scope card's (.choice-price), the normal price struck over it
   (first in the script, after the group price, for a screen reader), the three centred on one another so neither
   side leaves a gap. What follows runs under the row at the tile's full width, the tile's own 14px below it. */
.gb-offer-head {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 6px;
}

/* The eyebrow and, until they join, the owner's caption under it (3 Nov 2026), in the room between the icon and the
   price. */
.gb-offer-title {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.gb-offer-caption {
  color: var(--ink-2);
}

.gb-offer-head .choice-price .struck {
  order: -1;
}

/* On a phone, too narrow for the three on one line without cutting an estate's long word, the price takes a line of
   its own under the icon and eyebrow, from the tile's left: the group price large, the struck one beside it, then
   per window and GST included. */
@media (max-width: 559px) {
  .gb-offer-head {
    flex-wrap: wrap;
  }

  .gb-offer-head .choice-price {
    flex-basis: 100%;
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
    align-items: baseline;
    column-gap: 10px;
    text-align: left;
  }

  .gb-offer-head .choice-price .struck {
    order: 0;
  }

  .gb-offer-head .choice-price span {
    grid-column: 1 / -1;
  }
}

/* Joined (the owner, 13 Oct 2026): "You're joining..." behind a green tick, the check the page's done steps carry,
   so the choice reads as made at a glance. The tick stays beside the first line when a phone wraps the estate's
   name onto three. */
.gb-joined {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5rem;
}

.gb-joined-ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--green);
  color: var(--on-accent);
}

.gb-joined-ic .ic {
  width: .9375rem;
  height: .9375rem;
}

/* Its sheet: the group price large, the normal price struck beside it; the counts over the meter; the two date
   ranges as tiles side by side (stacked on a phone). */
.gb-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 6px;
}

.gb-price b {
  font: 600 1.625rem/1.1 var(--display);
  letter-spacing: -.03em;
}

.gb-price span {
  font-size: .8125rem;
  color: var(--ink-3);
}

/* A group buy's closing date (the owner, 26 Oct 2026: "almost as important as the price"): under the price sentence,
   in the offer's orange on its soft tint, the date nearly the price's 26px, sized to the screen between a phone's
   18px and a desktop's 22px, both on the Compact scale, as the eyebrows are. Its own width, in a sheet's grid or the
   group buy page's. */
.gb-closing {
  justify-self: start;
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 7px 13px;
  border-radius: var(--r-control);
  background: var(--orange-soft);
  color: var(--orange-ink);
}

.gb-closing span {
  font-size: .9375rem;
  font-weight: 600;
}

.gb-closing b {
  font: 600 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1.15 var(--display);
  letter-spacing: -.01em;
}

/* The estate's group buys by month (the owner's version B, 26 Oct 2026), under the survey and installation dates:
   every box one size on every screen and at every text size (rem, the owner: "same weight and size throughout all
   devices and resolution"), the one shown taking the selected look, orange edge on its soft tint, and nothing else.
   Two fit side by side in a 360px phone's sheet (284px inside it), each label whole: "SEP – Group buy 12", the
   widest a year will give, is under 125px at this size, and a box holds 126. A month said with its year ("NOV 2027 –
   Group buy 1", where an estate has group buys closing in that month of two years) takes two lines of the same box,
   balanced, never cut short (review of #751). */
.gb-months {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.gb-month {
  flex: none;
  box-sizing: border-box;
  width: 8.5625rem;
  height: 2.5rem;
  padding: 0 .25rem;
  border-radius: var(--r-control);
  border: 1.5px solid var(--hair);
  background: var(--glass-b);
  color: var(--ink);
  font: 600 .8125rem/1.15 var(--font-text);
  text-align: center;
  text-wrap: balance;
  overflow: hidden;
  cursor: pointer;
}

.gb-month[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-ink);
}

/* Not on a greyed box (.is-out): this rule outranks its grey, and lit it like one that can take people (review of
   #751). */
.gb-month:hover:not([aria-pressed="true"]):not(.is-out) {
  background: var(--glass-a);
}

/* A group buy that cannot take people, full, held, closed or called off (the owner, 26 Oct 2026: "greyed out and
   purposely made to look obscure"): faint grey, a dashed edge, the same size as the rest, and still pressable, so its
   sheet says why. Pressed, its edge darkens only. */
.gb-month.is-out {
  border-style: dashed;
  background: var(--well);
  color: var(--ink-3);
  opacity: .55;
}

.gb-month.is-out[aria-pressed="true"] {
  border-color: var(--ink-3);
  opacity: .8;
}

/* Focused, at full strength: its opacity faded the focus ring with it (review of #751). */
.gb-month.is-out:focus-visible {
  opacity: 1;
}

/* Its sheet: why, plainly, in the page's red alert: right under the month boxes, so it is in view with the box pressed
   (on a short screen, above the boxes, it scrolled away as the box took focus: review of #751), or under the price
   sentence where there is only the one; and everything else greyed out, the survey and installation dates among
   them; the boxes keep their own look, so another can be picked. */
.gb-reason {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-tile);
  background: var(--red-soft);
  color: var(--red-ink);
  font-size: .9375rem;
  font-weight: 600;
}

.gb-reason .ic {
  flex: none;
  margin-top: 2px;
}

.gb-reason div {
  display: grid;
  gap: 4px;
}

.sheet-body.is-out .gb-price,
.sheet-body.is-out > p,
.sheet-body.is-out .gb-closing,
.sheet-body.is-out .gb-meter,
.sheet-body.is-out .gb-dates,
.sheet-body.is-out > h3,
.sheet-body.is-out .terms-box {
  opacity: .45;
  filter: grayscale(1);
}

/* The tile's name for the group buy joined, under "You're joining" (26 Oct 2026). */
.gb-pick {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-control);
  border: 1.5px solid var(--orange);
  color: var(--orange-ink);
  font-size: .8125rem;
  font-weight: 600;
}

.struck {
  color: var(--ink-3);
  font-size: .875rem;
}

.gb-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  font-size: .8125rem;
  color: var(--ink-2);
}

.gb-counts b {
  font-size: .9375rem;
  color: var(--ink);
}

/* The offer's bar runs to the cap (the owner, 13 Oct 2026): the minimum is a mark across the bar, "min." centred
   under it and "max." under the end. The min label stays clear of the bar's start and of max.'s place at the end
   however close the minimum is to either; both sized to the screen like the eyebrow above. */
.gb-min {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--at, 1) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--ink-2);
}

.gb-scale {
  position: relative;
  height: 1.4em;
  margin-top: -2px;
  font-size: clamp(.78125rem, .7rem + .2vw, .8125rem);
  color: var(--ink-2);
}

.gb-scale span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.gb-scale-min {
  left: clamp(2.25em, calc(var(--at, 1) * 100%), calc(100% - 6.5em));
  transform: translateX(-50%);
}

.gb-scale-max {
  right: 0;
}

.gb-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gb-date {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-tile);
  background: var(--well);
}

.gb-date .ic {
  color: var(--orange);
  margin-top: 1px;
}

.gb-date div {
  display: grid;
  gap: 2px;
}

.gb-date span {
  font-size: .78125rem;
  color: var(--ink-3);
}

.gb-date b {
  font-size: .875rem;
}

.sheet-body h3 {
  font: 600 1rem/1.2 var(--display);
}

@media (max-width: 559px) {
  .gb-dates {
    grid-template-columns: 1fr;
  }
}

/* A member's card (P5): the window card's specs, with room for the longer names of its rows. */
.gb-card .specs {
  margin-top: 14px;
}

.gb-card .specs div {
  grid-template-columns: 6.5rem 1fr;
}

/* Share the group buy (the owner, 21 Oct 2026): under a joined tile's buttons and on a member's card, a hair rule,
   then the owner's caption in the offer's orange ink and Copy link at its right; on a screen too narrow for both,
   the button goes under the caption. The caption is sized to the screen between a phone's 14px and a desktop's 16px,
   as the eyebrow above it is. The link itself shows only where the browser would not copy it: selectable as one
   piece, broken anywhere so it never runs off a phone. */
.gb-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}

.gb-card .gb-share {
  margin-top: 14px;
}

.gb-share-line {
  flex: 1 1 12rem;
  font: 600 clamp(.875rem, .8rem + .25vw, 1rem)/1.35 var(--display);
  color: var(--orange-ink);
}

.gb-share-link {
  flex-basis: 100%;
  font-size: .8125rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

/* The group buy's own page (21 Oct 2026): the page that only says something, one glass card, holding what the sheet
   holds: the sheet's head, the shouting eyebrow and the price, then its facts. Which flats it is for, a little
   stronger than the fine lines; Join, the page's one way in, and Notify me, across the card. */
body > main.gb-page:not(.layout):not(.order-flow) {
  gap: 16px;
}

.gb-blocks {
  font-size: .875rem;
  font-weight: 600;
}

.gb-page-actions {
  display: grid;
  margin-top: 4px;
}

.gb-page > a.btn {
  justify-self: stretch;
}

/* Your flat from the group buy's page: its estate written in the field's own shape, not a choice. */
.input.fixed {
  display: flex;
  align-items: center;
  background-color: var(--well);
}

/* The scope choice: a large radio card per scope, its name and total on one line, what it is under them;
   the chosen one has the orange edge and dot on its soft tint. */
.choices {
  display: grid;
  gap: 10px;
}

.choices > .choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hair);
  background: var(--glass-b);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}

.choices > .choice:hover {
  transform: translateY(-1px);
}

.choices > .choice.is-on {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  flex: none;
  position: relative;
}

.choice.is-on .radio {
  border-color: var(--orange);
}

.choice.is-on .radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.choice-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.choice-text > span:last-child {
  font-size: .78125rem;
  color: var(--ink-2);
}

.choice-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: .9375rem;
}

/* A scope's list price, at the card's right, "GST included" under it (the user, 20 Oct 2026: "our prices are not
   obvious enough"). 18px on a phone to 22px on a computer. */
.choice-price {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}

.choice-price b {
  font: 600 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1 var(--display);
  letter-spacing: -.01em;
  color: var(--ink);
}

.choice-price span {
  font-size: .78125rem;
  color: var(--ink-3);
}

/* The quotation: a line per item ruled in hair, the total bold, then the deposit and the balance as tiles. */
.quote {
  border-radius: var(--r-md);
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  padding: 7px 16px 4px;
}

.qline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
  font-size: .875rem;
}

.qline:first-child {
  border-top: 0;
}

.qline span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The flat on Accept and pay (13 Oct 2026): the quotation's lines, a long name or estate wrapping to the right. */
.flat-summary .card-head {
  align-items: center;
  margin-bottom: 8px;
}

.flat-summary .qline span:last-child {
  white-space: normal;
  text-align: right;
  overflow-wrap: anywhere;
}

.qline.total {
  font-weight: 600;
  font-size: 1rem;
}

.qline em {
  font-style: normal;
  font-weight: 400;
  font-size: .78125rem;
  color: var(--ink-3);
  margin-left: 6px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 12px;
}

.split div {
  background: var(--well);
  border-radius: var(--r-tile);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
}

.split span {
  font-size: .71875rem;
  color: var(--ink-2);
}

.split b {
  font: 600 1.125rem/1.3 var(--display);
}

.plain-list {
  padding-left: 1.25rem;
  display: grid;
  gap: 4px;
  list-style: disc;
  font-size: .9375rem;
}

/* The terms to agree to: the system's terms panel (orange-soft). */
.terms-box {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-tile);
  background: var(--orange-soft);
  font-size: .84375rem;
}

/* A group buy's "read more", in its one line (the owner, 5 Nov 2026): no taller than the line, its target
   made taller for a finger by an overlay, since a button's own padding stretched the line. */
.terms-box .link-btn {
  position: relative;
  display: inline;
  min-height: 0;
}

.terms-box .link-btn::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

/* The first screen: the design system's Sheet, a modal dialog of glass laid on the page colour so the form
   stays readable, its button pinned to the bottom however long it runs, over a scrim. On a phone it docks
   12px from the bottom edge. Its height is the screen's visible height (dvh), less the status bar (the safe area), never the large viewport
   (vh): on iPhone Safari 100vh is the height with the toolbar hidden, so a sheet sized in vh was taller than the
   screen while the toolbar showed, its top (the heading, the first rows) above the screen's edge, out of reach of
   its own scrolling (17 Oct 2026). Each vh line stays first, for a browser without dvh. */
.sheet {
  width: min(560px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  max-height: min(88dvh, calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 900px);
  padding: 0;
  margin: auto;
  border-radius: var(--r-xl);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior-y: contain;
}

/* Fixed, as the browser's own dialog:modal is: .glass's position: relative outranked it, and a dialog in the top
   layer that is not fixed is placed as absolute, against the top of the page, not of the screen. Opened scrolled
   down (the sticky bar's "Pick a day and time"), a Sheet sat above the screen, its top at -736 at scrollY 953: the
   backdrop's blur and nothing to pick (defect 374, 20 Oct 2026). On .sheet.glass, which outranks .glass by its two
   classes, wherever either rule sits in this file. */
/* Its light is in its own background, the first layer (the glass's ::after's, below), not a box over it. */
.sheet.glass {
  position: fixed;
  background: radial-gradient(120% 70% at 12% 0%, var(--glass-glow), transparent 55%),
    linear-gradient(145deg, var(--glass-a), var(--glass-b)), var(--page);
}

/* No rim or light drawn over the Sheet: .glass draws them as boxes placed absolutely, inset 0, which on a Sheet
   that scrolls its own content are its window's height and scroll with the content, so the rim's rounded bottom
   crossed the rows below it, a faint edge partway down a grown Sheet (defect 375, the iOS Simulator, 20 Oct 2026).
   Its edge is the glass's border, and its light the background above, which stays at its top. */
.sheet.glass::before,
.sheet.glass::after {
  display: none;
}

/* It fades in, and never moves while it does: a transform on the Sheet while it opened (the page's "rise") left it
   placed for its first height when its content grew under that animation, so a day tapped in the picker's first
   moments drew the times, the Sheet grew, and its top stayed above the screen's edge, out of reach (17 Oct 2026,
   reproduced in Chromium at 375px while checking the dvh fix above, which alone did not cure it). */
@keyframes sheet-in {
  from {
    opacity: 0;
  }
}

.sheet[open] {
  animation: sheet-in .45s var(--ease);
}

.sheet::backdrop {
  background: rgba(12, 10, 8, .36);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

html:has(.sheet[open]) {
  overflow: hidden;
}

.sheet-body {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.sheet-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sheet-head > div {
  flex: 1;
  min-width: 0;
}

.sheet-head .eyebrow {
  color: var(--orange-ink);
}

.sheet-head h2 {
  font: 600 1.375rem/1.2 var(--display);
  letter-spacing: -.02em;
  margin-top: 9px;
}

.sheet-ic {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--orange-light), var(--orange));
  box-shadow: 0 8px 18px -8px var(--orange);
}

.sheet-ic .ic {
  width: 22px;
  height: 22px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--glass-b);
  color: var(--ink);
  transition: transform .2s var(--ease), background .2s;
}

.icon-btn:hover {
  background: var(--glass-a);
  transform: translateY(-1px);
}

.icon-btn.sm {
  width: 32px;
  height: 32px;
}

.icon-btn.sm .ic {
  width: 16px;
  height: 16px;
}

/* The choice stays in reach however long the form runs: pinned to the bottom, on the sheet's own glass. */
.sheet-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px -22px -22px;
  padding: 14px 22px 18px;
  background: linear-gradient(var(--glass-b), var(--glass-b)), var(--page);
  border-top: 1px solid var(--hair);
}

@media (max-width: 559px) {
  .sheet {
    margin: auto auto 12px;
    max-height: 90vh;
    max-height: min(90dvh, calc(100dvh - 24px - env(safe-area-inset-top, 0px)));
  }

  .sheet-body {
    padding: 20px 16px;
  }

  .sheet-actions {
    margin: 4px -16px -20px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

/* The survey picker (7 Oct 2026): where it is offered (the alert's orange, as the group-buy choice), then its
   Sheet: a month grid of the open days, Monday first, and the chosen day's times by part of the day. A day with
   no time open is dimmed and cannot be pressed; the one chosen has the system's selected look (orange edge on
   its soft tint), as a two-way answer and a time chip do. Sizes in rem: the reader's own size holds. */
.pick-card {
  margin-top: 16px;
}

.cal {
  display: grid;
  gap: 8px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cal-nav .icon-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.cal-month {
  font: 600 1rem/1.2 var(--display);
  letter-spacing: -.01em;
  text-align: center;
}

.cal-week, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-week > span {
  text-align: center;
  font-size: .78125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.cal-day {
  min-height: 2.75rem;
  padding: 0;
  border-radius: var(--r-control);
  border: 1.5px solid var(--hair);
  background: var(--glass-b);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}

.cal-day:hover:not(:disabled) {
  transform: translateY(-1px);
}

.cal-day[aria-pressed="true"] {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-ink);
}

.cal-day:disabled {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
  font-weight: 400;
  opacity: .5;
  cursor: default;
}

/* The booked survey's day, when the picker changes it (part 12): marked whether or not it has another time. */
.cal-day.is-booked,
.cal-day.is-booked:disabled {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--green);
  opacity: 1;
}

.times {
  display: grid;
  gap: 12px;
  /* Scrolled into view by a day tap, clear of the pinned Ask bar below it. */
  scroll-margin-bottom: 6rem;
}

.times:empty {
  display: none;
}

.times-day {
  font: 600 1rem/1.2 var(--display);
  letter-spacing: -.01em;
}

.time-part {
  display: grid;
  gap: 8px;
}

.time-part h4 {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn.time-chip {
  min-width: 5.5rem;
}

/* The abuse gate's field: never seen, never reached by Tab, read by no screen reader (aria-hidden). */
.trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.save-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  font-size: .9375rem;
}

.choice-card {
  margin-top: 16px;
}

.save-card h2 {
  font: 600 1.125rem/1.25 var(--display);
}

/* -------------------------------------------------------------- footer */
/* Under every screen (P1): the copyright line and the privacy policy's link, small and quiet, in the page's own
   gutter. The phone's action bar sits over the body's bottom padding, never over this. */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 28px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--hair);
  font-size: .78125rem;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}

.foot a {
  color: inherit;
  text-underline-offset: 2px;
}

.foot a:hover {
  color: var(--ink);
}

/* -------------------------------------------------------- action bar */
/* The phone's bar at the bottom: what is next, and its one button. In the page's own gutter. */
:root {
  --bar-h: 76px;      /* the bar's height until it is measured (signin.js's watchBar), its tallest one-row height */
}

.action-bar {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  box-sizing: border-box;
  padding: 10px 10px 10px 18px;
  border-radius: var(--r-card);
}

/* The bar's glass, read over white cards as over the photo (defect 427): the system's glass, its fill a touch
   denser, the hairline that outlines a card and the step's shadow under it. Over white, its white edge and wide
   faint shadow alone left a flat white slab. Only the page's own tokens: no colour of its own. It keeps the blur the
   page's cards gave up (3 Nov 2026): the page's words scroll under it. */
.action-bar.glass {
  background: linear-gradient(145deg, var(--glass-a), var(--glass-fill));
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--hair), var(--shadow-step), var(--glass-shadow);
}

/* With no button (a time waiting for our team, a visit booked), a slim strip of one line: "NEXT  We confirm your
   time" (defect 427). It kept the 76px a button needs, a tall pale panel with a little text in it. */
.action-bar:not(:has(> .btn:not([hidden]))) {
  padding: 10px 18px;
}

.action-bar:not(:has(> .btn:not([hidden]))) .bar-text {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
}

/* What is next keeps 7rem beside the button; with less, the button takes a row of its own under it. */
.bar-text {
  display: flex;
  flex: 1 1 7rem;
  flex-direction: column;
  min-width: 0;
}

.action-bar > .btn {
  margin-left: auto;
}

.bar-text span {
  font-size: .71875rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* Never cut short: "Pick a survey time" read "Pick a survey ti…" beside its button at 402pt (defect 419), and two
   lines then cut "Pick an installation time" beside Pick your installation day and time. It wraps in full. */
.bar-text b {
  font-size: .9375rem;
  line-height: 1.25;
}

/* The bar's Book this time until a time is marked on the hero's card (installCard): .btn's display would show it. The
   same in the step's panel, where the one primary action sits on a wide screen (signin.js's placePrimary). */
.action-bar .btn[hidden],
.primary-slot .btn[hidden] {
  display: none;
}

/* The one primary action's place in the current step's panel, under the sub-step's title: empty on a phone, where the
   bar holds it, and taking no room then. */
.primary-slot {
  margin-bottom: 12px;              /* the sub-step's own gap (.sub-open), so the button is not on the line below */
}

.primary-slot:empty {
  display: none;
}

/* A card's status and its quiet link beside it (defect 419): the waiting pill and Change my pick, or Pick another. */
.pick-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

/* Nothing hides behind the bar (defect 419): the page's foot clears the bar's height (--bar-h, the bar's own as
   drawn: watchBar), its gap from the screen's edge and the phone's home bar. Only where the bar shows: from 47.5rem
   it is hidden, and the page keeps its own foot. */
@media (max-width: 47.49rem) {
  body:has(.action-bar) {
    padding-bottom: calc(var(--bar-h) + 28px + env(safe-area-inset-bottom, 0px));
  }
}

/* ------------------------------------------------------- breakpoints */
@media (max-width: 559px) {
  .detail {
    margin: 0 8px 8px;
  }

  .detail-inner {
    padding: 16px 14px;
    border-radius: 22px;
  }

  .wheel {
    --card-w: 56vw;
    --gap: 20px;
  }
}

@media (min-width: 560px) {
  .rail {
    margin-bottom: 26px;
  }

  .rail-label {
    display: block;
  }

  .rail-node.phase-current .rail-label {
    color: var(--ink);
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .brand-title {
    padding-left: 10px;
  }

  .brand {
    gap: 10px;
  }

  .logo {
    height: 48px;
  }

  .brand-kicker {
    font-size: .78125rem;
    white-space: normal;
    text-wrap: balance;
  }

  .btn.chat-top {
    min-height: 36px;
    padding: 0 12px 0 11px;
    font-size: .8125rem;
    gap: 6px;
  }

  .btn.chat-top .ic {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 420px) {
  .card {
    padding: 18px;
  }
}

@media (min-width: 47.5rem) {
  body {
    max-width: 82.5rem;
    padding: 1.5rem 28px 3.75rem;
  }

  body > h1::before {
    height: 64px;
  }

  .logo {
    height: 64px;
  }

  .brand-kicker {
    font-size: 1rem;
  }

  .layout {
    gap: 20px;
  }

  .side {
    grid-template-columns: 1fr 1fr;
  }

  .docs {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    column-gap: 10px;
  }

  .wheel {
    --card-w: 240px;
  }

  /* No bar on a wide screen: it sat over the side column, the window and payments cards (the user, 23 Oct 2026).
     The page's one primary action is the current step's there (signin.js's placePrimary), and the foot keeps its
     own padding (the bar's is below 47.5rem only). */
  .action-bar {
    display: none;
  }

  .detail {
    margin: 0 18px 18px;
  }

  .detail-inner {
    padding: 24px 26px;
  }

  /* The title, a page that only says something, and the order screens share one centred 40rem column. */
  body > main:not(.layout):not(.order-flow), body > h1 {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 68.75rem) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 372px;
    grid-template-areas: "hero hero" "process side" "more side";
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }

  .side {
    grid-template-columns: 1fr;
    position: sticky;
    top: 16px;
  }

  .win-img {
    padding: 14px 26px;
  }

  .win-img img {
    max-height: 160px;
  }

  .hero {
    padding-top: 10px;
  }
}

/* Landscape phones: short and wide, so the wheel sits tighter. */
@media (max-height: 500px) and (orientation: landscape) {
  .wheel {
    --card-w: 220px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .action-bar {
    left: auto;
    width: min(420px, 60vw);
  }
}

/* Zoomed in (a pinch, read from the visual viewport by signin.js's watchZoom), nothing blurs, filters, masks or
   moves: in iPhone Safari a pinch-zoom of the order's page held every backdrop blur, the blobs' blur, the wheel's
   and the glass sheen's masks and their animation at the zoom's scale, more than the tab may hold, and it crashed
   ("A problem repeatedly occurred", defect 384, 20 Oct 2026). The wheel does not snap either, so a pan across it
   leaves it where it was (defect 383). At the page's own scale none of this applies: the look is unchanged. */
:root[data-zoomed] *,
:root[data-zoomed] *::before,
:root[data-zoomed] *::after,
:root[data-zoomed] ::backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  animation-play-state: paused !important;
}

:root[data-zoomed] .wheel {
  -webkit-mask: none;
  mask: none;
  scroll-snap-type: none;
}

/* The sheen is drawn by its mask: unmasked it would wash the whole section, so it goes while zoomed. */
:root[data-zoomed] .glass::before {
  display: none;
}

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

  .step-card {
    transform: none;
  }
}

/* --------------------------------------------------------------- the deposit's share prompt (the user, 21 Oct 2026) */
/* Once, at the deposit's Payment received: a tinted box, how many more neighbours, and the group buy's Copy link. */
.share-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--r-tile);
  background: var(--orange-soft);
}
