/* SmartBarber - mobile-first light UI
   Layout and palette are the project's own (monochrome, geometric, pill controls).
   Borrowed from Apple: the SF Pro type stack, the headline treatment (weight 600 with
   tight negative tracking), and the motion - long, eased, settling rather than snapping. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ----- Ground and ink -----
     The page is a light grey so that a white card has something to be lifted
     off; white-on-white needs a border to exist at all, and a border around
     every card is a wireframe. Grey ground, white cards, one hairline. */
  --page:      #F5F6FA;   /* the page itself */
  --white:     #FFFFFF;   /* cards, panels, the bars */
  --black:     #171B2B;   /* the darkest ink; solid dark chips */

  --ink:       #171B2B;   /* 15.8:1 on the page - headings and body */
  /* The design sheet gives #747D93 for secondary text. Measured, it is 3.8:1
     on the page and 4.1:1 on a card - under the standard on both - so it is
     darkened by the smallest amount that clears 4.5:1 on the page, which is
     the harder of the two grounds. The hue is unchanged. */
  --ink-2:     #676F83;   /* 4.7:1 on the page, 5.0:1 on a card, 4.5:1 on a band */
  --ink-3:     #8E95A6;   /* 3.0:1 on a card - icons and rules, never text */

  --tile:      #F1F3F9;
  --tile-2:    #E8EBF2;
  --line:      #E8EBF2;
  --line-soft: #F0F2F7;

  /* ----- The accent -----
     One blue, used for anything you can act on. #1677FF is 3.6:1 on white,
     which is enough for a 44px button face carrying white text and short of
     the standard for small blue type - so text uses the deeper one. */
  /* The sheet's blue is #1677FF. White 15px semibold on it measures 4.1:1,
     under the standard for text that size, so the filled button uses this
     blue - the same hue, a hair deeper, at 4.5:1 - and #1677FF stays as the
     colour of rims, icons, indicators and the selected tab, where it is a
     shape rather than a background for words. */
  --accent:      #1570F1;   /* white on it: 4.5:1 */
  --accent-face: #1677FF;   /* the sheet's blue, for marks rather than labels */
  --accent-deep: #0E5FD8;   /* pressed, and the banner */
  --accent-soft: #E8F0FF;   /* the light blue: selected rows, soft badges */
  --accent-ink:  #1565D8;   /* 4.9:1 on white - blue text and links */

  /* The interaction layer was written in blue to begin with, so these simply
     point at the accent and every hover, ring and active state follows. */
  --blue:        var(--accent);
  --link:        var(--accent-ink);
  --blue-deep:   var(--accent-deep);
  --blue-tint:   var(--accent-soft);
  --blue-tint-2: #DCE8FF;
  --blue-ring:   rgba(22, 119, 255, .20);

  /* ----- The brand -----
     The mark keeps its orange. It is the logo and nothing else: no button,
     pill or indicator in the app is allowed to use it, which is what stops
     two accent colours from competing.

     The wordmark is set in the app's blue at the owner's instruction. It is
     still its own token rather than --accent: the logo and the controls happen
     to share a colour, and a later change to one should not silently repaint
     the other.

     It measures 4.5:1 on white and 4.2:1 on the page grey. The mark is large
     and bold everywhere it appears, so it clears the 3:1 that type of that
     size is held to, and clears 4.5:1 outright on a card. The barber pole
     beside it keeps its own colours - that is the artwork, and the stylesheet
     does not touch it. */
  --brand:     #1570F1;

  /* ----- Status -----
     Each is a face colour for a dot or a bar, and a darker ink for the word,
     because the face colours are chosen to read against white at 40px and not
     at 12px. */
  --green:    #117F4D;  --green-bg:  #E6F6EE;  --green-face: #16A765;
  --amber:    #976616;  --amber-bg:  #FDF3E0;  --amber-face: #F5A623;
  --red:      #C33D42;  --red-bg:    #FDECEC;  --red-face:   #E5484D;

  /* ----- Type -----
     Inter, which is what the design is drawn in. The system stack stays behind
     it so a phone with no webfont yet paints something of the right width. */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* ----- Space, on eights ----- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;

  /* ----- Radius -----
     Generous: 18px on anything that holds content, 14px on a thing inside it,
     10px on a thumbnail, and a full pill on every control. */
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 22px;

  /* ----- Lift -----
     Two layers, both tinted towards the blue-grey of the page rather than
     black: a pure black shadow on a light ground reads as dirt. */
  --shadow:    0 1px 2px rgba(23, 27, 43, .04), 0 6px 18px rgba(35, 58, 100, .07);
  --shadow-lg: 0 2px 6px rgba(23, 27, 43, .05), 0 18px 44px rgba(35, 58, 100, .12);
  --ring:      0 0 0 3px var(--blue-ring);

  /* ----- Motion -----
     Short and eased. Nothing in a light interface needs 400ms: the long settle
     belonged to the glass, where the material itself was the thing being
     looked at. */
  --ease:   cubic-bezier(.2, .8, .2, 1);
  --t:      240ms var(--ease);
  --t-fast: 160ms var(--ease);
  --t-slow: 420ms var(--ease);

  --shell: 640px;
  --tabbar: 92px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;                 /* Apple's body size, not 16 */
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.012em;
}

/* Inline SVGs carry no intrinsic size, so without this they stretch to fill their
   container. Components below override where they need a different size. */
svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Apple leans on weight 600 with tight tracking rather than heavy weights. */
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; }
h1 { font-size: 40px; letter-spacing: -0.028em; }
h2 { font-size: 24px; letter-spacing: -0.021em; line-height: 1.16; }
h3 { font-size: 19px; letter-spacing: -0.016em; line-height: 1.21; }
p { margin: 0 0 var(--s3); }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.bold { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Shell ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s6) var(--s4) calc(var(--tabbar) + var(--s6));
  min-height: 100vh;
}
.shell--plain { padding-bottom: var(--s8); }

.page-title { margin-bottom: var(--s5); }
.page-title h1 { margin-bottom: var(--s1); }
.page-title p { color: var(--ink-2); margin: 0; font-size: 15px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin: var(--s6) 0 var(--s3);
}
.section-head:first-child { margin-top: 0; }
.section-head h2 { font-size: 20px; }

/* ---------- Bottom tab bar ---------- */

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: 8px 10px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-width: calc(100vw - 28px);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  min-width: 68px;
  transition: color var(--t);
}
.tab svg { width: 22px; height: 22px; }
.tab--active { color: var(--ink); font-weight: 700; }
.tab--active .tab__icon { background: var(--tile); }
.tab__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 27px;
  border-radius: 999px;
  transition: background var(--t);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--tile);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  /* Apple's easing, so presses and hovers settle rather than snap. */
  transition: background var(--t-fast), color var(--t-fast),
              transform var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
}
.btn:hover { background: var(--tile-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: #1c1c1c; }

.btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { background: var(--tile); }

.btn--danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn--danger:hover { background: var(--red-bg); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* Square icon-only control, as on the Activity filter */
.icon-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--tile);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--tile-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Cards / tiles ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
  background: var(--white);
}
.card--flat { border: none; background: var(--tile); }

/* Activity hero card: media on top, detail beneath */
.feature {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s3);
  background: var(--white);
}
.feature__media {
  height: 168px;
  border-radius: var(--r);
  background: var(--tile);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: var(--s4);
  position: relative;
}
.feature__body { padding: 0 var(--s2) var(--s2); }
.feature__title { font-size: 20px; font-weight: 700; letter-spacing: -0.022em; }
.feature__meta { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.feature__price { font-size: 15px; margin-top: 2px; font-weight: 500; }
.feature__actions { margin-top: var(--s4); }

/* List row with a grey thumbnail, as on Uber's Activity list */
.row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row__thumb {
  width: 64px; height: 64px;
  border-radius: var(--r);
  background: var(--tile);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ink-2);
}
.row__thumb svg { width: 30px; height: 30px; }
.row__body { flex: 1; min-width: 0; }
.row__title { font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; }
.row__meta { color: var(--ink-2); font-size: 14px; margin-top: 1px; }
.row__action { flex-shrink: 0; }

/* Menu row: icon, label, optional subtitle, optional badge */
.menu-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.menu-row svg { width: 22px; height: 22px; flex-shrink: 0; }
/* The body and its two lines are spans, so they need to be told to stack. */
.menu-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-row__title { display: block; font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; }
.menu-row__sub { display: block; color: var(--ink-2); font-size: 14px; margin-top: 1px; }
.menu-row:hover .menu-row__title { text-decoration: underline; }

.badge-new {
  background: var(--blue);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Grid of square service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.tile {
  background: var(--tile);
  border: none;
  border-radius: var(--r);
  padding: var(--s4) var(--s2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 118px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t), transform var(--t);
}
.tile:hover { background: var(--tile-2); }
.tile:active { transform: scale(.98); }
.tile__art { font-size: 30px; line-height: 1; }
.tile__art svg { width: 34px; height: 34px; }
.tile__label { font-size: 14px; font-weight: 600; text-align: center; letter-spacing: -0.01em; }

/* 2x2 quick-action grid, as on Uber's Account screen */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.quad__item {
  background: var(--tile);
  border: none;
  border-radius: var(--r);
  padding: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t);
}
.quad__item:hover { background: var(--tile-2); }
.quad__item svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Promo / info panel with art on the right */
.promo {
  background: var(--tile);
  border-radius: var(--r);
  padding: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.promo__body { flex: 1; min-width: 0; }
.promo__title { font-size: 19px; font-weight: 700; letter-spacing: -0.022em; }
.promo__sub { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.promo__art { font-size: 40px; line-height: 1; flex-shrink: 0; }

/* ---------- Identity ---------- */

.identity { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.identity h1 { font-size: 34px; }
.avatar {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--tile-2);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-2);
  flex-shrink: 0;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 3px 9px;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: var(--s2);
}
.rating svg { width: 13px; height: 13px; }

/* ---------- Status pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--tile);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill--live { background: var(--green-bg); color: var(--green); }
.pill--queued, .pill--warn { background: var(--amber-bg); color: var(--amber); }
.pill--bad { background: var(--red-bg); color: var(--red); }
.pill--info { background: #E8F0FE; color: var(--blue); }
.pill--done, .pill--muted { background: var(--tile); color: var(--ink-2); }
.pill__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---------- Big ETA readout ---------- */

.eta {
  border-radius: var(--r-lg);
  background: var(--black);
  color: var(--white);
  padding: var(--s7) var(--s5);
  text-align: center;
}
.eta__value { font-size: clamp(44px, 14vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.eta__label { color: #BDBDBD; font-size: 15px; margin-top: var(--s3); }
.eta__label strong { color: var(--white); }

/* The live countdown reads as a timer, so it needs even digit widths or it jitters. */
.eta__value { font-variant-numeric: tabular-nums; transition: color var(--t); }
.eta--soon .eta__value { color: #FF9142; }
.eta--due { background: var(--green); }
.eta--due .eta__value { color: var(--white); }
.eta--due .eta__label { color: rgba(255, 255, 255, .85); }

.alarm { margin-top: var(--s4); }

/* ---------- Leave home at: the Uber trip, pickup dot to drop-off square ---------- */

.trip { display: flex; flex-direction: column; gap: var(--s3); }
.trip__route { display: flex; gap: var(--s4); }
/* Label is 18px tall and the time line 28px, so each marker is centred on its time:
   18 + 28/2 - 12/2 = 26px from the top of the first stop, 14 - 6 = 8px from the
   bottom of the second. The line takes up whatever height is left between them. */
.trip__rail {
  flex: none; width: 12px; margin-left: 4px; padding: 26px 0 8px;
  display: flex; flex-direction: column; align-items: center;
}
.trip__dot {
  flex: none; width: 12px; height: 12px;
  border: 3px solid var(--black); border-radius: 999px; background: var(--white);
}
.trip__dot--end { border-radius: 2px; background: var(--black); }
.trip__line { flex: 1; width: 1.5px; margin: 3px 0; background: var(--black); }
.trip__stops { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.trip__label { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.trip__time {
  font-size: 22px; line-height: 28px; font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.trip--go { background: var(--black); color: var(--white); border-color: var(--black); }
.trip--go .trip__label, .trip--go .trip__edit summary { color: #BDBDBD; }
.trip--go .trip__dot { border-color: var(--white); background: var(--black); }
.trip--go .trip__dot--end { background: var(--white); }
.trip--go .trip__line { background: var(--white); }
.trip__edit summary { cursor: pointer; list-style: none; }
.trip__edit summary::-webkit-details-marker { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips form { display: contents; }

.late summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.late summary::-webkit-details-marker { display: none; }
.late summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--ink-2); }
.late[open] summary::after { content: '\2212'; }

/* Real-visit accuracy, shown under the live stats. */
.accuracy {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 13px; color: var(--green); margin: 0;
}
.accuracy svg { width: 16px; height: 16px; flex: none; }

/* A customer who is running late keeps their number but is visibly not here yet. */
.row--away .row__title, .row--away .row__thumb { opacity: .5; }

/* A visual alarm as well as an audible one, for a noisy shop or a muted phone.
   Runs for the same ten seconds as the sound. */
.is-alarming { animation: alarm-flash 700ms steps(1, end) 14; }
@keyframes alarm-flash {
  0%, 100% { background: var(--white); }
  50%      { background: #E7F5EE; }
}

@media (prefers-reduced-motion: reduce) {
  .is-alarming { animation: none; }
}

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s3); }
.stat {
  background: var(--tile);
  border-radius: var(--r);
  padding: var(--s4);
}
/* These three are written as <span> in some views and <div> in others, so they are
   forced to stack rather than relying on the element they happen to be. */
.stat__label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.stat__label svg { width: 14px; height: 14px; }
.stat__value { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; line-height: 1.1; }
.stat__hint { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.stat--good .stat__value { color: var(--green); }
.stat--warn .stat__value { color: var(--amber); }
.stat--bad  .stat__value { color: var(--red); }

/* ---------- Forms ---------- */

.field { margin-bottom: var(--s4); }
.field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field__hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px var(--s4);
  background: var(--tile);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--black);
}
.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

/* Loading state for a submitted button.

   Apple's spinner is a thin ring that rotates at a steady rate - no easing, no
   pulsing. The label is hidden rather than removed so the button keeps its width and
   nothing around it shifts. */
.btn.is-loading {
  color: transparent !important;          /* belt and braces if the swap is skipped */
  pointer-events: none;
  position: relative;
}
/* app.js replaces the label with this ring, so the word can never show through it. */
.btn__spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: var(--ink);
  animation: sb-spin 700ms linear infinite;
  vertical-align: middle;
}
.btn--primary .btn__spin,
.btn--dark .btn__spin {
  border-color: rgba(255, 255, 255, .35);
  border-top-color: var(--white);
}
/* Announced to screen readers, invisible on screen. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn.is-loading svg { visibility: hidden; }

@keyframes sb-spin { to { transform: rotate(360deg); } }

/* Someone who turns motion down still needs to see that something is happening, so
   the ring stops turning and simply shows. */
@media (prefers-reduced-motion: reduce) {
  .btn__spin { animation: none; border-top-color: currentColor; }
}

/* Show-password toggle. A real checkbox so it works without JavaScript styling
   tricks and is reachable from the keyboard. */
.show-pass {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 14.5px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}
.show-pass input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
}
.show-pass span { color: var(--ink-2); }
.show-pass:hover span { color: var(--ink); }

/* Read-only email chip on the password step - shows what they typed without retyping */
.locked-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--tile);
  border-radius: var(--r);
  padding: 14px var(--s4);
  font-size: 15.5px;
  font-weight: 500;
  margin-bottom: var(--s4);
}
.locked-email a { font-size: 14px; font-weight: 600; text-decoration: underline; flex-shrink: 0; }

/* Segmented role chooser */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); background: var(--tile); padding: 5px; border-radius: var(--r); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px var(--s2);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  transition: background var(--t), box-shadow var(--t);
}
.segmented label .seg-sub { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.segmented input:checked + label { background: var(--white); box-shadow: var(--shadow); }
.segmented input:focus-visible + label { outline: 2px solid var(--black); outline-offset: 1px; }

/* ---------- Auth screens ---------- */

.auth {
  max-width: 460px;
  margin: 0 auto;
  padding: var(--s7) var(--s5) var(--s8);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth__brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s8); }
.auth__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--black);
  color: var(--white);
  display: grid; place-items: center;
}
.auth__mark svg { width: 21px; height: 21px; }
.auth__wordmark { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.auth h1 { font-size: 30px; margin-bottom: var(--s6); }
.auth__foot { margin-top: auto; padding-top: var(--s6); }

.divider {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: var(--ink-3);
  font-size: 13px;
  margin: var(--s5) 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: var(--s5);
}
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { text-decoration: underline; }

/* ---------- Alerts ---------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  font-size: 14.5px;
  margin-bottom: var(--s4);
  background: var(--tile);
}
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert--success { background: var(--green-bg); color: var(--green); }
.alert--error { background: var(--red-bg); color: var(--red); }
.alert--warn { background: var(--amber-bg); color: var(--amber); }
.alert--info { background: #E8F0FE; color: var(--blue); }

.empty { text-align: center; padding: var(--s8) var(--s4); color: var(--ink-2); }
.empty__art { font-size: 38px; margin-bottom: var(--s3); }
.empty p { margin-bottom: var(--s4); }

/* ---------- Progress ---------- */

.bar { height: 6px; background: var(--tile-2); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--black); border-radius: 999px; transition: width 300ms ease; }
.bar__fill--warn { background: var(--amber); }
.bar__fill--bad { background: var(--red); }

.bars { display: flex; flex-direction: column; gap: var(--s4); }
.bars__row { display: grid; grid-template-columns: 110px 1fr 54px; gap: var(--s3); align-items: center; font-size: 14px; }
.bars__row .mono, .bars__row .small { text-align: right; }

.hours { display: flex; align-items: stretch; gap: 3px; height: 150px; }
.hours__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; min-width: 0; }
.hours__bar { width: 100%; background: var(--tile-2); border-radius: 4px 4px 0 0; min-height: 3px; max-height: calc(100% - 18px); }
.hours__bar--peak { background: var(--black); }
.hours__label { font-size: 10px; color: var(--ink-2); white-space: nowrap; }

/* ---------- Tables (admin) ---------- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
.table th {
  text-align: left;
  padding: var(--s2) var(--s3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-2);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

.explain {
  background: var(--tile);
  border-radius: var(--r);
  padding: var(--s3) var(--s4);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.explain b { color: var(--ink); font-weight: 600; }

/* ---------- Motion ----------
   Apple's timing: things rise and settle over ~600ms rather than snapping in. */

html { scroll-behavior: smooth; }

/* The entry animation used to run 620ms with delays stacking to 330ms, from fully
   transparent. Switching tabs therefore left the screen blank for most of a second
   and read as the app going dark between pages. It now starts mostly visible and
   is over in a quarter of a second: enough to feel like the page settles, not
   enough to notice waiting for it. */
.reveal > * { animation: rise 240ms var(--ease) backwards; }
.reveal > *:nth-child(1) { animation-delay: 0ms; }
.reveal > *:nth-child(2) { animation-delay: 35ms; }
.reveal > *:nth-child(3) { animation-delay: 70ms; }
.reveal > *:nth-child(4) { animation-delay: 105ms; }
.reveal > *:nth-child(5) { animation-delay: 130ms; }
.reveal > *:nth-child(n+6) { animation-delay: 150ms; }

@keyframes rise {
  from { opacity: .45; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Applied by app.js as sections scroll into view. */
.on-scroll { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.on-scroll.is-in { opacity: 1; transform: none; }

/* ---------- Public landing (the uber.com-style web face) ---------- */

.topnav { background: var(--black); color: var(--white); padding: var(--s4) var(--s5); }
.topnav__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: var(--s3); }
.topnav__brand {
  font-size: 22px; font-weight: 700; letter-spacing: -0.04em;
  color: var(--white); text-decoration: none; margin-right: auto;
}
.topnav__link {
  color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 9px 12px; border-radius: 999px;
  transition: background var(--t-fast);
}
.topnav__link:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }
.topnav__cta {
  background: var(--white); color: var(--black); border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast);
}
.topnav__cta:hover { background: #E4E4E4; text-decoration: none; }

.landing { max-width: 1100px; margin: 0 auto; padding: var(--s7) var(--s5) var(--s8); }

.place { display: flex; align-items: center; gap: 7px; font-size: 15px; margin-bottom: var(--s4); }
.place svg { width: 17px; height: 17px; }
.place a { font-weight: 500; text-decoration: underline; }

.hero__title {
  font-size: clamp(38px, 7vw, 58px);
  /* Apple's headline treatment: weight 600 with tight negative tracking. */
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: var(--s6); max-width: 13ch;
}

.hero__grid { display: grid; gap: var(--s7); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
}

/* Two fields joined by a line, the way Uber pairs pickup with dropoff. */
.route { position: relative; display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.route__field { position: relative; }
.route__field .select, .route__field .input { padding-left: 46px; }
.route__marker {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border: 2.5px solid var(--black); border-radius: 999px;
  background: var(--white); pointer-events: none; z-index: 1;
}
.route__marker--end { border-radius: 2px; background: var(--black); }
.route__line {
  position: absolute; left: 22.5px; top: 34px; bottom: 34px;
  width: 1.5px; background: var(--black); pointer-events: none;
}

.hero__actions { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.hero__actions .btn { border-radius: var(--r-sm); min-width: 150px; }
.link-underline { font-weight: 500; text-decoration: underline; font-size: 15.5px; }

.hero__panel { background: var(--tile); border-radius: var(--r-lg); padding: var(--s6); }
.hero__panel h3 { font-size: 20px; margin-bottom: var(--s3); }

.explore { margin-top: var(--s8); }
.explore h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: var(--s5); }
.explore__grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.explore__card {
  background: var(--tile); border-radius: var(--r-lg); padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s2);
  text-decoration: none; color: inherit;
}
.explore__card:hover { background: var(--tile-2); text-decoration: none; }
.explore__card h3 { font-size: 19px; }
.explore__card p { color: var(--ink-2); font-size: 15px; margin: 0; flex: 1; }
.explore__card svg { width: 30px; height: 30px; margin-bottom: var(--s2); }
.explore__more { font-weight: 600; text-decoration: underline; font-size: 15px; }

.sitefoot { border-top: 1px solid var(--line); margin-top: var(--s8); padding: var(--s7) var(--s5); }
.sitefoot__inner { max-width: 1100px; margin: 0 auto; }
.sitefoot__cols { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sitefoot h4 { font-size: 15px; font-weight: 600; margin: 0 0 var(--s3); }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.sitefoot a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.sitefoot a:hover { color: var(--ink); text-decoration: underline; }
.sitefoot__legal { margin-top: var(--s6); color: var(--ink-2); font-size: 13.5px; }

/* ---------- Staff console ----------
   The admin screens carry more data than the customer app, so they get a wider
   shell and denser layout primitives, but the same monochrome language. */

.shell--admin { max-width: 1180px; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.topbar h1 { font-size: 30px; }
.topbar__sub { color: var(--ink-2); font-size: 15px; margin: var(--s1) 0 0; }
.topbar__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.card__title { display: flex; align-items: center; gap: var(--s2); font-size: 18px; }
.card__title svg { width: 18px; height: 18px; }

.grid { display: grid; gap: var(--s4); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .grid--main { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
}

.stat--live .stat__value { color: var(--green); }
.stat--info .stat__value { color: var(--blue); }

.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--tile); }
.btn--icon { min-width: 40px; padding: 8px; }

/* Queue board row */
.queue-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}
.queue-item--active { border-color: var(--ink); }
.queue-item--overrun { border-color: var(--red); background: var(--red-bg); }
.queue-item__pos {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: var(--tile);
  font-size: 19px;
  font-weight: 700;
}
.queue-item--active .queue-item__pos { background: var(--black); color: var(--white); }
.queue-item__pos svg { width: 22px; height: 22px; }
.queue-item__name { font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; }
.queue-item__meta { font-size: 13.5px; color: var(--ink-2); display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: 2px; }
.queue-item__wait { text-align: right; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.queue-item__eta { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.queue-item__actions { display: flex; gap: 6px; margin-top: var(--s2); justify-content: flex-end; flex-wrap: wrap; }

.stagger > * { animation: rise 240ms var(--ease) backwards; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 35ms; }
.stagger > *:nth-child(3) { animation-delay: 70ms; }
.stagger > *:nth-child(4) { animation-delay: 105ms; }
.stagger > *:nth-child(n+5) { animation-delay: 130ms; }

.field__error { font-size: 13px; color: var(--red); margin-top: 6px; }
.empty > svg { width: 34px; height: 34px; opacity: .3; }

@media (max-width: 768px) {
  .queue-item { grid-template-columns: 44px 1fr; }
  .queue-item__pos { width: 44px; height: 44px; font-size: 16px; }
  .queue-item__wait { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .queue-item__actions { justify-content: flex-start; }
  .bars__row { grid-template-columns: 88px 1fr 48px; }
}

@media (min-width: 720px) {
  .shell { padding-left: var(--s6); padding-right: var(--s6); }
  h1 { font-size: 38px; }
}

@media (max-width: 380px) {
  h1 { font-size: 29px; }
  .shell { padding-left: var(--s3); padding-right: var(--s3); }
  .tab { min-width: 60px; padding: 7px 10px; }
  .tiles { gap: var(--s2); }
}

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

/* ---------- Interaction colour ----------
   The palette is monochrome, so every hover was grey on grey and the interface
   read as dead: you could not tell what was pressable until you pressed it. Blue
   is used here only for the moment of contact - hover, keyboard focus, the field
   you are typing in - and never for the resting state, so the screens stay calm.
   Touch devices get none of this: :hover sticks on a phone after a tap, leaving a
   button looking permanently selected, so the hover rules sit behind a hover query. */

:root {
  --blue-deep: #1858C4;              /* pressed, and text on a pale blue ground */
  --blue-tint: #EDF3FE;              /* hover ground */
  --blue-tint-2: #DEE9FD;            /* pressed ground */
  --blue-ring: rgba(31, 111, 235, .32);
}

/* Keyboard focus: blue ring everywhere, replacing the black outline. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--blue-ring);
  border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
  /* Plain and outline buttons */
  .btn:hover {
    background: var(--blue-tint);
    color: var(--blue-deep);
    box-shadow: inset 0 0 0 1.5px var(--blue);
  }
  .btn:hover svg { stroke: var(--blue-deep); }
  .btn--outline:hover { background: var(--blue-tint); box-shadow: inset 0 0 0 1.5px var(--blue); }

  /* The black primary button keeps its weight but warms to blue */
  .btn--primary:hover { background: var(--blue); color: var(--white); box-shadow: none; }
  .btn--primary:hover svg { stroke: var(--white); }

  /* Destructive actions stay red: blue would soften a warning */
  .btn--danger:hover { background: var(--red-bg); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }

  .icon-btn:hover { background: var(--blue-tint); color: var(--blue-deep); }
  .icon-btn:hover svg { stroke: var(--blue-deep); }

  /* Cards, tiles and list rows that are really links */
  .tile:hover,
  .quad__item:hover,
  .explore__card:hover,
  .menu-row:hover {
    background: var(--blue-tint);
    box-shadow: inset 0 0 0 1.5px var(--blue);
  }
  .menu-row:hover .menu-row__title { color: var(--blue-deep); text-decoration: none; }
  .quad__item:hover svg, .tile:hover svg { stroke: var(--blue-deep); }

  /* Role chooser and other segmented options */
  .segmented label:hover { background: var(--blue-tint); color: var(--blue-deep); }

  /* Bottom tab bar */
  .tab:hover { color: var(--blue); }
  .tab:hover .tab__icon { background: var(--blue-tint); }

  .topnav__link:hover { background: rgba(31, 111, 235, .25); }
  .topnav__cta:hover { background: var(--blue-tint); color: var(--blue-deep); }

  .back-link:hover { color: var(--blue-deep); }
}

/* Pressed state, which does apply on touch */
.btn:active,
.tile:active,
.quad__item:active,
.menu-row:active { background: var(--blue-tint-2); }
.btn--primary:active { background: var(--blue-deep); }

/* The field being typed in */
.input:focus, .select:focus, .textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-ring);
}
.segmented input:checked + label { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--blue); color: var(--blue-deep); }
.segmented input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 1px; }

/* Anyone who has asked for less motion still gets the colour, just no movement. */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .tile:active, .quad__item:active { transform: none; }
}

/* ---------- Deposit receipt ----------
   Printed-slip look so it reads as a record of a transaction rather than another
   card in the interface. The stamp is deliberately loud: a simulated payment must
   never be mistaken for money the shop actually received. */
.receipt { font-variant-numeric: tabular-nums; }
.receipt__row {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) 0; border-bottom: 1px dashed var(--line);
  font-size: 15px; color: var(--ink-2);
}
.receipt__row strong { color: var(--ink); font-weight: 600; }
.receipt__row:last-of-type { border-bottom: none; }
.receipt__row--big { font-size: 17px; }
.receipt__row--big strong { font-size: 22px; letter-spacing: -0.02em; }
.receipt__stamp {
  margin-top: var(--s4); padding: var(--s2) var(--s3);
  border: 2px solid var(--amber); border-radius: var(--r-sm);
  color: var(--amber); background: var(--amber-bg);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-align: center;
}
.pay-flag { font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: .04em; }
.pill-paid, .pill-unpaid, .pill-kept {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill-paid   { background: var(--green-bg); color: var(--green); }
.pill-unpaid { background: var(--amber-bg); color: var(--amber); }
.pill-kept   { background: var(--red-bg);   color: var(--red); }

/* Waiting for the customer to approve the prompt on their handset. The pulse says
   something is happening off-screen, on a device this page cannot see. */
.pay-waiting { padding: var(--s6) var(--s4); }
.pay-waiting__pulse {
  display: inline-block; width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-tint); position: relative;
}
.pay-waiting__pulse::before,
.pay-waiting__pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--blue); animation: payPulse 2s var(--ease) infinite;
}
.pay-waiting__pulse::after { animation-delay: 1s; }
@keyframes payPulse {
  from { transform: scale(.6); opacity: .9; }
  to   { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-waiting__pulse::before, .pay-waiting__pulse::after { animation: none; opacity: .5; }
}

/* ---------- "The shop right now" ----------
   Shown to a customer who is not in the queue, where the screen used to be a
   greeting and a list of services. The colour comes from the wait a walk-in would
   actually get, so the panel changes through the day on its own. */
.shopnow {
  position: relative; overflow: hidden;
  padding: var(--s5); margin-bottom: var(--s6);
  border-radius: var(--r-lg); background: var(--tile);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.shopnow__head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.shopnow__status { font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.shopnow__live {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.shopnow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); position: relative; }
.shopnow__dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0; animation: shopPulse 2.4s var(--ease) infinite;
}
@keyframes shopPulse {
  0%   { transform: scale(.7); opacity: .55; }
  100% { transform: scale(1.5); opacity: 0; }
}
.shopnow__figure {
  font-size: 46px; font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.shopnow__unit { font-size: 19px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.shopnow__sub { margin: var(--s2) 0 0; color: var(--ink-2); font-size: 15px; }

/* Ten bars, one per four minutes of wait: a glanceable gauge, no chart library. */
.shopnow__bars { display: flex; gap: 4px; margin: var(--s4) 0 var(--s3); }
.shopnow__bar {
  flex: 1; height: 6px; border-radius: 3px; background: var(--tile-2);
  transition: background var(--t);
}
.shopnow__facts {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  font-size: 13.5px; color: var(--ink-2);
}
.shopnow__facts strong { color: var(--ink); font-weight: 600; }
.shopnow__tip {
  margin: var(--s4) 0 0; padding: var(--s3);
  background: var(--white); border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink-2);
  display: flex; align-items: flex-start; gap: var(--s2);
}
.shopnow__tip svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.shopnow__tip strong { color: var(--ink); }
.shopnow__actions { display: flex; gap: var(--s2); margin-top: var(--s4); }
.shopnow__actions .btn { flex: 1; }

/* The three moods, all in blue. Red and amber in an interface mean something is
   wrong, and a busy barbershop on a Saturday is not a fault: it is the shop doing
   well. Depth carries the meaning instead - the panel and the gauge deepen from a
   pale wash to full blue as the wait grows, so a glance still tells you, while the
   screen keeps one colour. */
.shopnow--quiet  { background: var(--blue-tint); box-shadow: inset 0 0 0 1.5px rgba(31, 111, 235, .16); }
.shopnow--quiet  .shopnow__dot, .shopnow--quiet .shopnow__bar.is-on { background: #5B93F2; }
.shopnow--quiet  .shopnow__status, .shopnow--quiet .shopnow__dot { color: #2B6FD6; }

.shopnow--steady { background: var(--blue-tint); box-shadow: inset 0 0 0 1.5px rgba(31, 111, 235, .26); }
.shopnow--steady .shopnow__dot, .shopnow--steady .shopnow__bar.is-on { background: var(--blue); }
.shopnow--steady .shopnow__status, .shopnow--steady .shopnow__dot { color: var(--blue); }

.shopnow--busy   { background: var(--blue-tint-2); box-shadow: inset 0 0 0 1.5px rgba(24, 88, 196, .38); }
.shopnow--busy   .shopnow__dot, .shopnow--busy .shopnow__bar.is-on { background: var(--blue-deep); }
.shopnow--busy   .shopnow__status, .shopnow--busy .shopnow__dot { color: var(--blue-deep); }
.shopnow--busy   .shopnow__figure { color: var(--blue-deep); }

.shopnow--shut   .shopnow__status, .shopnow--shut .shopnow__dot { color: var(--ink-3); }
.shopnow--shut   .shopnow__dot::after { animation: none; }

/* The tip sits on the panel, so it needs its own quiet ground in every mood. */
.shopnow__tip { box-shadow: inset 0 0 0 1px rgba(31, 111, 235, .12); }

@media (prefers-reduced-motion: reduce) {
  .shopnow__dot::after { animation: none; opacity: .4; }
}

/* ---------- Service illustrations ----------
   The artwork is dark and warmly lit, which would fight the light interface if
   it were laid flat on the page. Each image therefore sits inside its own rounded
   dark frame: the picture keeps its own world, the page keeps its own. */
.thumb-img, .tile__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.row__thumb--img {
  padding: 0; overflow: hidden; background: #0E0F12;
  border-radius: var(--r-sm);
}
.tile__art--img {
  padding: 0; overflow: hidden; background: #0E0F12;
  border-radius: var(--r); aspect-ratio: 1 / 1; width: 100%;
}

/* The grid of service tiles. The tile itself - photograph with the name and
   price on a pane of glass across its foot - is at the end of this file, with
   the caption component it shares with the ways-in tiles above it. */
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3);
  margin-bottom: var(--s6);
}
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
   WHITE, GREY AND BLUE

   This section replaces the charcoal-and-glass layer that used to sit here.
   Nothing is tinted, blurred or lit any more: the interface is white cards on
   a light grey page, one hairline border, one soft shadow, and a single blue
   for anything you can act on.

   The rule that decides everything else: a surface is either the page
   (#F5F6FA) or a card (#FFFFFF), and a card never sits on another card. Where
   the old layer asked for a pane inside a pane, the inner one becomes a
   tinted band - a background colour and nothing else - so the eye counts one
   surface rather than three.

   The orange survives in exactly one place, the mark, and is declared as
   --brand rather than --accent so no control can reach it by accident.
   ===================================================================== */

html { background: var(--page); }
/* Transparent on purpose: the corner shapes are painted by body::before and
   body::after at z-index -1, which sits above the root's background but below
   the body's own - so an opaque colour here would hide them completely. The
   page colour lives on <html>, where it still fills the canvas. */
body { background: transparent; color: var(--ink); }

/* The glass goes in one rule rather than per component. A blurred pane over a
   flat white page costs a compositor layer and shows nothing: there is nothing
   behind it to see. */
.card, .statcard, .stat, .fact, .working, .pick, .chosen, .feature, .promise,
.eta, .alarm, .promo, .again, .booking, .svc-list, .svc-card, .way, .capbar,
.banner, .bell__panel, .tabbar, .topbar-admin, .side, .queue-item, .shopnow {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- Surfaces ----------
   One recipe. A card is white, carries a hairline so its edge survives on a
   screen with the brightness down, and is lifted by a shadow soft enough to
   read as paper rather than as a drop shadow. */
.card, .feature, .promo, .working, .fact, .pick, .promise, .statcard,
.again, .booking, .svc-list, .shopnow, .eta, .alarm {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card--flat {
  background: var(--tile);
  border-color: transparent;
  box-shadow: none;
}
/* A group of rows inside a card: the shape the old layer drew as a pane
   inside a pane. */
.card .reveal, .card .stagger { background: none; box-shadow: none; padding: 0; }

/* ---------- Buttons ----------
   Three weights and no more. Blue filled for the one thing the screen is for,
   white with a border for everything else, and a bare text button for the way
   out. The pill shape stays: it is the one piece of the old interface that was
   already right for a thumb. */

.btn {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 15px;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn svg { stroke: currentColor; }
.btn:hover {
  background: var(--accent-soft);
  border-color: #CFE0FF;
  color: var(--accent-ink);
  box-shadow: none;
}
.btn:hover svg { stroke: currentColor; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(22, 119, 255, .18), 0 6px 16px rgba(22, 119, 255, .22);
}
.btn--primary svg { stroke: #FFFFFF; }
.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(22, 119, 255, .20), 0 10px 22px rgba(22, 119, 255, .26);
}
.btn--primary:hover svg { stroke: #FFFFFF; }
.btn--primary:active { background: #0B52BF; border-color: #0B52BF; }

.btn--outline {
  background: var(--white);
  border: 1.5px solid var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.btn--outline:hover { background: var(--accent-soft); }

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn--danger {
  background: var(--white);
  border: 1.5px solid #F3C3C5;
  color: var(--red);
  box-shadow: none;
}
.btn--danger:hover { background: var(--red-bg); border-color: var(--red-face); color: var(--red); }
.btn--danger:hover svg { stroke: var(--red); }

/* The quiet way out: no box at all until you reach for it. */
.btn.btn--quiet, .btn.btn--quiet:not(.btn--primary) {
  background: none;
  border-color: transparent;
  box-shadow: none;
  color: var(--ink-2);
  padding-inline: var(--s3);
}
.btn.btn--quiet:hover, .btn.btn--quiet:not(.btn--primary):hover {
  background: var(--red-bg);
  border-color: transparent;
  color: var(--red);
  box-shadow: none;
}
.btn--quiet:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.btn[disabled] { opacity: .45; }

.icon-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.icon-btn:hover { background: var(--accent-soft); border-color: #CFE0FF; color: var(--accent-ink); }

/* ---------- Forms ----------
   A field is a white box with a hairline, and the only thing that changes on
   focus is the border and a soft ring - no colour wash, no shadow. */
.input, .select, .textarea {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: #D6DBE6; }
.input:focus, .select:focus, .textarea:focus {
  background-color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--ring);
  outline: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23747D93' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
input[type="date"], input[type="time"] { color-scheme: light; }
.field__label { color: var(--ink); font-weight: 600; }
.field__hint { color: var(--ink-2); }
.field__error { color: var(--red); }
.locked-email { background: var(--tile); color: var(--ink-2); }

/* The segmented control: a tinted track with a white thumb, which is how a
   light interface says "one of these". */
.segmented {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.segmented label, .segmented .seg-sub { border-radius: 999px; }
.segmented input:checked + label,
.segmented label.is-on {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 27, 43, .06), 0 2px 8px rgba(35, 58, 100, .08);
}

:focus-visible { outline-color: var(--accent); }

/* ---------- Tables ----------
   The admin lists. A table on white needs its header quieter than its rows,
   not louder: the header is a small grey label, the rules are hairlines, and
   the row under the pointer lifts to the faintest grey. */
.table { font-size: 14px; }
.table th {
  background: #FAFBFD;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td, .table th { border-color: var(--line); }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: #FAFBFD; }
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-x: auto;
}
.table-wrap .table tr:last-child td { border-bottom: none; }

/* ---------- Pills, badges, alerts ----------
   A soft tinted ground with its own darker ink. Every one of these is
   measured against white rather than against the tint. */
.pill {
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .01em;
}
.pill--info   { background: var(--accent-soft); color: var(--accent-ink); }
.pill--live   { background: var(--green-bg);    color: var(--green); }
.pill--warn   { background: var(--amber-bg);    color: var(--amber); }
.pill--bad    { background: var(--red-bg);      color: var(--red); }
.pill--muted  { background: var(--tile);        color: var(--ink-2); }
.pill-paid    { background: var(--green-bg);    color: var(--green); }
.pill-unpaid  { background: var(--amber-bg);    color: var(--amber); }
.pill-kept    { background: var(--red-bg);      color: var(--red); }
.badge-new    { background: var(--accent);      color: #FFFFFF; }
.rating       { background: var(--amber-bg);    color: var(--amber); }

.alert {
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 14px;
}
.alert--ok, .alert--success { background: var(--green-bg);   border-color: #CFEBDC; color: var(--green); }
.alert--warn               { background: var(--amber-bg);    border-color: #F6E2BC; color: var(--amber); }
.alert--error              { background: var(--red-bg);      border-color: #F6CFD0; color: var(--red); }
.alert--info               { background: var(--accent-soft); border-color: #CFE0FF; color: var(--accent-ink); }

.bar { background: var(--tile-2); }
.bar__fill { background: var(--accent-face); }

.link-underline, a.link-underline { color: var(--accent-ink); }
.back-link { color: var(--ink-2); }
.back-link:hover { color: var(--accent-ink); }

/* The deposit receipt. Paper on paper: the only thing marking it out is its
   rules and the stamp. */
.receipt__row { border-bottom-color: var(--line); }
.receipt__stamp { border-color: var(--green-face); background: var(--green-bg); color: var(--green); }

/* Thumbnail frames: a grey well, so a photograph with a light edge still has
   an edge. */
.row__thumb--img, .tile__art--img, .again__art, .booking__art, .svc-row__art,
.pick__art, .chosen__art, .fact__art, .feature__media, .empty__art {
  background: var(--tile);
}
/* =====================================================================
   THE STAFF CONSOLE

   A barber at the chair holds a phone, so the bottom bar stays there. An owner
   reading the shop floor sits at a desk, so from 1000px up the navigation
   becomes a white rail down the left and the bottom bar steps aside.

   The rail is white on a grey page, like every other surface, and marks the
   current section the way the reference does: a light blue pill with the blue
   ink and nothing else. No dark sidebar - a dark rail beside white content is
   two interfaces in one window.
   ===================================================================== */

.side, .topbar-admin, .appbar { display: none; }

/* The shop's own photograph, behind the navigation. Declared once here so
   the bar and any later use share one source; the file is the same one
   c_home.php already loads for its greeting. */
:root { --shop-photo: url('../img/banners/shop-room.webp'); }

@media (min-width: 1000px) {
  .has-side .tabbar { display: none; }

  /* ------------------------------------------------------------------ the bar
     Three pieces floating on the page: the mark at the left, the links in a
     pill on the centre, the account at the right. Nothing is wrapped in a
     white container, so the colour behind shows between them.

     Three grid tracks rather than a flex row: the links hold the true centre
     of the page whatever the mark and the account chip are doing at the
     sides, and a row would push them off the moment one side grew - which it
     does for the owner, whose bar also carries a search field and a bell. */
  .appbar {
    display: block;
    position: sticky; top: 0; z-index: 50;
    transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  }
  .appbar__inner {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: var(--s4);
    max-width: 1500px; margin: 0 auto;
    padding: 14px var(--s6);
  }

  /* Once the page has moved under it the bar needs a surface of its own, or
     the cards scroll through the links. Set by app.js from a sentinel rather
     than a scroll handler. */
  .appbar.is-stuck {
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 6px 24px rgba(23, 27, 43, .08);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
  }

  .appbar__brand { justify-self: start; text-decoration: none; display: flex; align-items: center; }
  .brand--top { font-size: 19px; gap: .38em; }
  .brand--top .brand__pole { height: 1.75em; }
  .brand--top .brand__name { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

  /* the pill */
  .appbar__nav {
    justify-self: center;
    display: flex; align-items: center; gap: 2px;
    padding: 5px; border-radius: 999px;
    border: 1px solid rgba(23, 27, 43, .10);
    background: rgba(255, 255, 255, .70);
  }
  .appbar__link {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 17px; border-radius: 999px;
    color: var(--ink-2); text-decoration: none;
    font-size: 14px; font-weight: 500; letter-spacing: -0.006em;
    white-space: nowrap;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  }
  .appbar__link svg { width: 17px; height: 17px; flex: none; stroke: currentColor; }
  .appbar__link:hover { background: rgba(23, 27, 43, .06); color: var(--ink); }
  /* The current page is a filled pill, not a tint: against a drifting colour
     a pale wash of the accent is the first thing the background swallows. */
  .appbar__link.is-active {
    background: var(--ink); color: #FFFFFF; font-weight: 600;
  }
  .appbar__link.is-active svg { stroke: #FFFFFF; }

  .appbar__me {
    justify-self: end;
    display: flex; align-items: center; gap: 10px;
    padding: 5px 15px 5px 5px; border-radius: 999px;
    text-decoration: none; color: inherit;
    background: rgba(255, 255, 255, .70);
    border: 1px solid rgba(23, 27, 43, .10);
    transition: background var(--t-fast);
  }
  .appbar__me:hover { background: #FFFFFF; }
  .appbar__avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--accent); color: #FFFFFF;
    font-weight: 600; font-size: 13px;
  }
  .appbar__me-text { min-width: 0; display: block; }
  .appbar__me-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
  .appbar__me-role { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.25; }

  /* Six links plus a search field plus a bell is more than a 1100px window
     holds. Below that the pill takes its own line under the mark rather than
     squeezing the labels. */
  @media (max-width: 1040px) {
    .appbar__inner { grid-template-columns: auto 1fr; row-gap: 10px; }
    .appbar__nav { justify-self: end; grid-column: 2; }
    .appbar__me { grid-column: 2; }
  }

  /* The owner's search and bell moved inside .appbar__inner, so the separate
     white bar they used to sit in no longer exists. The element is kept out of
     the flow rather than deleted, because .topbar-admin is also what the
     markup wraps them in when the bar is not drawn at all. */
  .topbar-admin { display: contents; }
  /* Clearing the bar is every role's problem, so it is on .shell. The bar is
     fixed, so the page needs its height as padding or the first card starts
     underneath it.

     The reading width is unchanged: a customer's column stays the measure it
     was designed at and is simply centred now rather than pushed right,
     because a service grid stretched across a 27-inch window is not better,
     only wider. What the rail used to take is given back to the page, not
     spent widening the text. */
  .has-side .shell { margin-left: auto; padding-top: calc(62px + var(--s5)); }
  .has-side .shell--admin { max-width: 1500px; }

  .searchbox { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }
  .searchbox svg {
    position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-3);
    pointer-events: none;
  }
  .searchbox__input {
    width: 100%; min-height: 44px; padding: 10px 16px 10px 42px;
    border-radius: 999px; border: 1px solid var(--line);
    background: var(--tile); color: var(--ink); font: inherit; font-size: 14.5px;
    transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  }
  .searchbox__input::placeholder { color: var(--ink-3); }
  .searchbox__input:focus {
    outline: none; border-color: var(--accent);
    background: var(--white); box-shadow: var(--ring);
  }

  .topbar-admin__right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }

  /* Notifications */
  .bell { position: relative; }
  .bell__button {
    list-style: none; cursor: pointer;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; position: relative;
    background: var(--tile); color: var(--ink-2);
    transition: background var(--t-fast), color var(--t-fast);
  }
  .bell__button::-webkit-details-marker { display: none; }
  .bell__button:hover { background: var(--accent-soft); color: var(--accent-ink); }
  .bell__button svg { width: 19px; height: 19px; }
  .bell__dot {
    position: absolute; top: 9px; right: 10px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--red-face); box-shadow: 0 0 0 2.5px var(--white);
  }
  .bell__panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: 352px;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    overflow: hidden; z-index: 60;
  }
  .bell__head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: var(--s4); border-bottom: 1px solid var(--line);
    box-shadow: none;
  }
  .bell__empty { padding: var(--s5) var(--s4); color: var(--ink-2); font-size: 13.5px; margin: 0; }
  .bell__list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
  .bell__list a {
    display: flex; gap: var(--s3); align-items: flex-start;
    padding: var(--s3) var(--s4); text-decoration: none; color: inherit;
    transition: background var(--t-fast);
  }
  .bell__list a:hover { background: #FAFBFD; }
  .bell__icon { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; }
  .bell__icon svg { width: 15px; height: 15px; }
  .bell__icon--info { background: var(--accent-soft); color: var(--accent-ink); }
  .bell__icon--good { background: var(--green-bg);    color: var(--green); }
  .bell__icon--warn { background: var(--amber-bg);    color: var(--amber); }
  .bell__icon--bad  { background: var(--red-bg);      color: var(--red); }
  .bell__text { min-width: 0; }
  .bell__title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
  .bell__meta { display: block; font-size: 12px; color: var(--ink-2); margin-top: 1px; }

  /* Who is signed in. The initial sits in a blue disc, which is the only place
     the accent is used as a ground outside a button. */
  .who { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: inherit; }
  .who__avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--accent); color: #FFFFFF;
    font-weight: 600; font-size: 15px;
  }
  .who__name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
  .who__role { display: block; font-size: 11.5px; color: var(--ink-2); }
  .who:hover .who__name { color: var(--accent-ink); }
}

/* ---------- Stat cards ----------
   A coloured badge, the number, and an arrow into the screen behind it. The
   badge colours belong to sections rather than to states, so the eye learns
   where "queue" lives after two or three visits. */
.grid--stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 900px) { .grid--stats { grid-template-columns: repeat(4, 1fr); } }

.statcard {
  display: flex; flex-direction: column;
  /* The three lines of text are one block at the foot of the card, so four
     cards holding numbers of different lengths still line up along the
     baseline of the label rather than drifting apart. */
  justify-content: flex-start;
  min-height: 146px;
  padding: var(--s4) var(--s4) var(--s5);
  border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast);
}
.statcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.statcard__badge {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  transition: transform var(--t) var(--ease);
}
.statcard__badge svg { width: 18px; height: 18px; }
.statcard__badge--blue   { background: var(--accent-soft); color: var(--accent-ink); }
.statcard__badge--green  { background: var(--green-bg);    color: var(--green); }
.statcard__badge--violet { background: #EFEAFE;            color: #6D4AE0; }
.statcard__badge--rose   { background: var(--red-bg);      color: var(--red); }
/* The chevron is a hint, not a label: nearly invisible until the pointer is
   on the card, which keeps four of them from stippling the row. */
.statcard__go {
  color: var(--ink-3); display: grid; place-items: center;
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t) var(--ease), color var(--t-fast);
}
.statcard__go svg { width: 16px; height: 16px; }
/* The label leads, the number carries, the hint follows. Three sizes, three
   weights, three greys - the hierarchy is in the type, not in rules or tints. */
.statcard__label {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2); margin-top: var(--s4);
}
.statcard__value {
  font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--ink); margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.statcard__hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.35; }
/* A tile whose value is a mask rather than a figure: same slot, same
   baseline, smaller glyphs, because eight dots at 34px is a row of holes. */
.statcard__value--mask { font-size: 22px; letter-spacing: .14em; color: var(--ink-2); margin-top: 11px; }
/* And a tile with nothing to report. The dash keeps the slot so the four
   cards still line up, at a weight that reads as 'no figure' rather than as
   a figure that happens to be a line. */
.statcard__value--none { color: var(--ink-3); font-weight: 400; letter-spacing: 0; }

@media (hover: hover) and (pointer: fine) {
  .statcard:hover {
    border-color: #D6E3FA;
    box-shadow: 0 1px 2px rgba(23, 27, 43, .04), 0 10px 24px rgba(35, 58, 100, .09);
    transform: translateY(-1px);
  }
  .statcard:hover .statcard__go { opacity: 1; transform: translateX(0); color: var(--accent); }
  .statcard:hover .statcard__badge { transform: scale(1.06); }
}
.statcard:active { transform: translateY(0) scale(.994); }

/* =====================================================================
   THE DASHBOARD'S SHELF

   Two rows under the statistics. The first is the pair the owner actually
   works in - the queue, and what is booked for the rest of the day - with the
   queue given the wider column because it is the one that gets read. The
   second is the standing panels: things glanced at, not worked in.

   They are separate grids rather than one column of stacked cards, because a
   stack makes the row beside it stretch to match, and an empty queue would
   then leave a column of white as tall as three panels.
   ===================================================================== */

.grid--dash { grid-template-columns: 1fr; }
.grid--3up  { grid-template-columns: 1fr; margin-top: var(--s4); align-items: start; }

@media (min-width: 880px) {
  .grid--dash { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1180px) {
  .grid--3up { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}

/* An empty panel should be the size of its emptiness. The old padding was set
   for a full-page empty state and left a card three times taller than the one
   beside it the moment the shop went quiet. */
.card .empty { padding: var(--s6) var(--s4); }
.card .empty p { margin-bottom: var(--s3); font-size: 14px; }
.card .empty > svg { width: 28px; height: 28px; }

/* ---------- The public-page card ----------
   The one piece of photography on the staff side. It is a card like any other,
   with the picture filling its head: the only place in the console where an
   image is allowed to be the first thing in a panel. */
.promo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.promo-card__photo {
  display: block; width: 100%; height: 132px; flex: none;
  object-fit: cover; object-position: 50% 40%;
  border-bottom: 1px solid var(--line);
}
.promo-card__body { padding: var(--s4); display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; }
.promo-card__body .btn { margin-top: auto; }
.promo-card__tag {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink);
}
.promo-card__text { margin: 6px 0 var(--s4); font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- The dashboard banner ----------
   The greeting at the top of a staff or customer home screen.

   It used to be a field of saturated blue with the photograph dissolved into
   it. Two things were wrong with that: the picture - the part of this product
   that is actually its own - was reduced to a texture, and the one block of
   strong colour on an otherwise white page read as a template header rather
   than as part of the interface.

   It is now a light card built from the same parts as every other card: white,
   a hairline, the page's shadow. The words sit on white at the left. The
   photograph is a real picture at the right, at full strength, masked into the
   card along its left edge so the join is a transition rather than a seam. The
   blue triangle sits in that transition - behind the picture, showing through
   where the mask thins - which is where the reference puts it.
   ===================================================================== */

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 var(--s5);
  border-radius: var(--r-xl);
  background: linear-gradient(104deg, var(--white) 0%, #FAFCFF 44%, #E7F0FF 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-band__body {
  position: relative; z-index: 2;
  min-width: 0;
  padding: var(--s6);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
}

/* The greeting label. Small, uppercase, on its own tinted ground - the shape
   the reference uses to date a screen without spending a line of type on it. */
.hero-band__tag {
  display: inline-flex; align-items: center;
  margin: 0 0 var(--s3);
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
}

/* The customer and barber homes put the lockup here instead of a word. On a
   light ground it is simply the logo, at its own colours and with no pill
   behind it - the reversed white form existed only for the blue band. */
.hero-band__tag--brand {
  background: none; padding: 0; margin: 0 0 var(--s3);
  display: inline-block; letter-spacing: normal; text-transform: none;
}

.hero-band__title {
  margin: 0; color: var(--ink);
  font-size: 28px; font-weight: 600; letter-spacing: -0.032em; line-height: 1.1;
}
.hero-band__sub  { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 46ch; }
.hero-band__note { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.hero-band__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero-band .btn svg { width: 16px; height: 16px; }
/* The ground is light, so the buttons keep the ranks they have everywhere else
   in the app: blue filled for the one thing the screen is for, white with a
   hairline for the rest. The old reversed set existed only because the band
   was dark. */

/* ---- The picture, and the triangle behind it ---- */

/* Below the breakpoint the band is one column of words. A photograph squeezed
   into a 90px strip beside them is not a photograph. */
.hero-band__media { display: none; }

.hero-band__photo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 54% 28%;
  /* The transition. The picture does not stop at an edge; it thins out into
     the card over about a third of its width, which is what lets the triangle
     read through from underneath. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.22) 12%, rgba(0,0,0,.78) 34%, #000 56%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.22) 12%, rgba(0,0,0,.78) 34%, #000 56%);
}

/* Geometry, not ornament: one large triangle anchored to the photograph's left
   edge and showing through the mask, one small one cropped by the card's
   corner. Drawn with clip-path rather than fetched as an image - it is two
   shapes and a gradient, and it scales with the band. */
.hero-band__tri {
  position: absolute; z-index: 0;
  left: -19%; top: 4%;
  /* Sized from the picture's column rather than in pixels, so the same shape
     reads the same whether the band is a wide console or a phone-width card. */
  width: 92%; max-width: 208px; min-width: 120px;
  aspect-ratio: 208 / 184; height: auto;
  clip-path: polygon(50% 0%, 100% 100%, 0% 86%);
  background: linear-gradient(158deg, #9BC0FF 0%, #6D9EF5 100%);
  opacity: .40;
  transform: rotate(-9deg);
}
.hero-band__tri--sm {
  left: -7%; top: auto; bottom: -11%;
  width: 50%; max-width: 112px; min-width: 70px;
  aspect-ratio: 112 / 100; height: auto;
  background: linear-gradient(158deg, #CBDFFF 0%, #9CC0FF 100%);
  opacity: .55;
  transform: rotate(24deg);
}

/* A band with no photograph keeps the shape and loses the picture: the same
   light card, with the geometry doing the work on its own. */
.hero-band--plain {
  background: linear-gradient(104deg, var(--white) 0%, #F3F8FF 72%, #E9F1FF 100%);
}

@media (min-width: 760px) {
  .hero-band { grid-template-columns: minmax(0, 1fr) clamp(250px, 37%, 416px); }
  .hero-band__body { padding: var(--s7) var(--s7) var(--s7) var(--s6); }
  .hero-band__media { display: block; position: relative; }
  .hero-band__title { font-size: 32px; }
}
@media (min-width: 1100px) {
  .hero-band__body { padding: 38px var(--s7); }
  .hero-band__title { font-size: 34px; }
}
@media (max-width: 559px) {
  .hero-band { margin-bottom: var(--s4); }
  .hero-band__body { padding: var(--s5) var(--s4); }
  .hero-band__title { font-size: 24px; }
  .hero-band__sub { font-size: 14.5px; }
  .hero-band__actions { margin-top: var(--s4); }
}

/* The quote that used to sit at the right of the staff band lived where the
   photograph now is. It is no longer rendered; the rule stays so any view
   still passing one does not leak text into the layout. */
.hero-band__aside { display: none; }

/* =====================================================================
   THE MARK

   Unchanged. The pole is sized from the type rather than in pixels so the two
   stay in proportion wherever the lockup is used, and the wordmark keeps its
   orange: this is the logo, and the redesign does not get to repaint it. It is
   also the one thing in the app allowed to use --brand.
   ===================================================================== */

.brand { display: inline-flex; align-items: center; gap: .42em; white-space: nowrap; }
.brand__pole { height: 1.55em; width: auto; display: block; transform: translateY(.04em); flex: none; }
.brand__name { font-weight: 700; letter-spacing: -0.03em; color: var(--brand); }

.brand--hero .brand__pole { height: 1.15em; transform: translateY(.04em); }
.brand--hero { gap: .3em; }
.topnav__brand .brand__name { color: var(--brand); }
.brand--auth { font-size: 21px; }
.brand--auth .brand__name { color: var(--brand); }
.brand--auth .brand__pole { height: 1.85em; }
.brand--tag { font-size: 20px; }
.brand--tag .brand__pole { height: 1.8em; }
.brand--tag .brand__name { letter-spacing: -0.02em; }
@media (min-width: 560px) { .brand--tag { font-size: 23px; } }
.auth__brand--center { justify-content: center; margin-bottom: var(--s5); }
.auth__brand--center .brand--auth { font-size: 26px; }
.auth__brand--center .brand--auth .brand__pole { height: 2.05em; }
.brand--mark .brand__name { display: none; }
.brand--mark .brand__pole { height: 1.6em; }

/* =====================================================================
   THE PUBLIC PAGE

   The signed-out face of the shop. The old version filled the first screen
   with a photograph under a black scrim so white type could sit on it. On a
   white site the photograph becomes a picture again: it sits in a rounded
   frame beside the headline, and the headline is read off the page.
   ===================================================================== */

.topnav {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav__link { color: var(--ink-2); }
.topnav__link:hover { color: var(--accent-ink); }
.topnav__cta { background: var(--accent); color: #FFFFFF; }
.topnav__cta:hover { background: var(--accent-deep); }

/* The photograph, as a picture. Cropped to a band on a phone and to a tall
   panel beside the words from 900px up. */
.hero-photo {
  position: relative; inset: auto; z-index: 0;
  height: 240px; min-height: 0;
  margin: 0 0 var(--s6);
  border-radius: var(--r-xl);
  background: url('../img/banners/shop-room-wide.webp') center 16% / cover no-repeat;
  box-shadow: var(--shadow);
  pointer-events: none;
}
/* No scrim: nothing is read off the picture now. A hairline inside the edge
   keeps a light photograph from bleeding into a light page. */
.hero-photo::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(23, 27, 43, .06);
  background: none;
}
.landing--hero { position: relative; z-index: 1; }
.hero__title { color: var(--ink); }
.hero__brand { color: var(--brand); }
.hero__sub { margin: 0 0 var(--s6); color: var(--ink-2); font-size: 17px; max-width: 34ch; }

/* The shop, as a banner across the top of the page rather than behind it. The
   two columns underneath - the wait-time form and the live panel - were
   already a grid, so the picture sits above them instead of competing for a
   column. */
@media (min-width: 900px) {
  .hero-photo { height: 320px; margin-bottom: var(--s7); }
}
.hero__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.hero__panel h3 { color: var(--ink); }
.hero__title { letter-spacing: -0.03em; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: var(--s7) 0 var(--s6); }
.promise {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--s4) var(--s2); text-align: center;
  border-radius: var(--r); font-size: 13px; color: var(--ink-2);
}
.promise svg { width: 20px; height: 20px; color: var(--accent); }

.explore__card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.explore__card:hover { border-color: #CFE0FF; }
.sitefoot { background: var(--white); border-top: 1px solid var(--line); color: var(--ink-2); }
.sitefoot a { color: var(--ink-2); }
.sitefoot a:hover { color: var(--accent-ink); }
.sitefoot__legal { color: var(--ink-3); }

/* =====================================================================
   PICTURE TILES

   A service, or one of the three ways in, as a photograph with its caption
   under it. The caption used to be a pane of frosted glass laid across the
   foot of the picture. On a light interface it is a white bar instead: the
   type is black on white wherever the photograph is light or dark, which is
   the thing the glass could never guarantee.
   ===================================================================== */

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card, .way {
  position: relative; display: block; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t-fast);
}
.way { aspect-ratio: 16 / 10; }
@media (min-width: 560px) { .way { aspect-ratio: 3 / 4; } }

/* ---------- The service card ----------
   Picture, then body. The picture is held at one ratio for every card so a
   row of them lines up whatever shape the photograph underneath happens to
   be, and the body is a column whose foot is pushed to the bottom - that is
   what keeps the prices on one line across the row when one description runs
   longer than another. */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-grid { align-items: stretch; }

.svc-card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 3; overflow: hidden; flex: none;
  background: var(--tile);
  border-bottom: 1px solid var(--line);
}
.svc-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 34%;
  transition: transform 620ms var(--ease);
}
.way__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 34%;
  transition: transform 620ms var(--ease);
}
.svc-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.svc-card__fallback svg { width: 44px; height: 44px; }

.svc-card__body {
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-width: 0;
  padding: var(--s3) var(--s3) var(--s3);
}
.svc-card__name {
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.012em; line-height: 1.25;
}
.svc-card__desc {
  margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2);
  /* Two lines, then stop. A third line on one card in a row of four is what
     makes a grid look hand-assembled. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card__foot {
  margin-top: auto; padding-top: var(--s3);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2);
}
.svc-card__facts { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-card__time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--ink-3);
}
.svc-card__time svg { width: 12px; height: 12px; flex: none; }
.svc-card__price {
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
/* The booking affordance. A pill that looks like the button it stands in for,
   marked up as a span because the card around it is already the link. */
.svc-card__cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 600;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.svc-card__cta svg { width: 13px; height: 13px; transition: transform var(--t) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover .svc-card__cta { background: var(--accent); color: #FFFFFF; }
  .svc-card:hover .svc-card__cta svg { stroke: #FFFFFF; transform: translateX(2px); }
}
@media (max-width: 400px) {
  /* At the narrowest the pill and the price stop fitting on one line. */
  .svc-card__foot { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .svc-card__cta { justify-content: center; }
}

/* The sheen and the rim the glass layer drew in front of the picture are
   gone - there is no material to catch light any more. */
.svc-card::before, .svc-card::after, .way::before, .way::after { display: none; }
/* A short fade at the foot of the picture, under the caption, so a photograph
   that happens to be white at the bottom still ends somewhere. */
.way__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 27, 43, 0) 58%, rgba(23, 27, 43, .14) 100%);
}

/* ---- the caption ---- */
.capbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: var(--s3);
  padding: 10px var(--s3) 11px;
  background: var(--white);
  background-image: none;
  border-top: 1px solid var(--line);
  box-shadow: none;
  transition: background var(--t);
}
.capbar::before { display: none; }   /* the fade into the glass */
.capbar__text { flex: 1; min-width: 0; }
.capbar__title {
  display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.capbar__meta {
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px; font-size: 12px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.capbar__meta svg { width: 13px; height: 13px; flex: none; opacity: .8; }
.capbar__meta strong { color: var(--ink); font-weight: 600; }
.capbar__dot { opacity: .45; }
.capbar__go {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center; color: var(--accent);
  transition: transform 280ms var(--ease);
}
.capbar__go svg { width: 16px; height: 16px; }
/* On a narrow tile the ornament goes before the information does: the clock
   and the arrow are both decoration, and the price is never the thing that
   gets an ellipsis through it. */
/* The service card's caption-on-the-photograph rules lived here. The card
   carries its words under the picture now, so .capbar belongs to the three
   'ways' tiles alone. */

.capbar--lg { padding: var(--s3); }
.capbar--lg .capbar__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.capbar--lg .capbar__meta { font-size: 13px; }
.capbar--lg .capbar__go {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent-soft);
  background: var(--accent-soft); color: var(--accent-ink);
  transition: transform 280ms var(--ease), background var(--t-fast),
              color var(--t-fast), border-color var(--t-fast);
}

@media (hover: hover) and (pointer: fine) {
  .svc-card:hover, .way:hover {
    border-color: #CFE0FF;
    box-shadow: 0 2px 6px rgba(23, 27, 43, .05), 0 12px 28px rgba(35, 58, 100, .10);
    transform: translateY(-2px);
  }
  .svc-card:hover .svc-card__img, .way:hover .way__img { transform: scale(1.05); }
  .svc-card:hover .capbar__go, .way:hover .capbar__go { transform: translateX(3px); }
  .way:hover .capbar--lg .capbar__go { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
}
.svc-card:active, .way:active { transform: scale(.995); }

/* Arriving: the tiles rise in one after another, which is the difference
   between a screen that loads and a screen that opens. */
.svc-grid > *, .ways > * { animation: rise 420ms var(--ease) backwards; }
.svc-grid > *:nth-child(2), .ways > *:nth-child(2) { animation-delay: 55ms; }
.svc-grid > *:nth-child(3), .ways > *:nth-child(3) { animation-delay: 110ms; }
.svc-grid > *:nth-child(4) { animation-delay: 165ms; }
.svc-grid > *:nth-child(5) { animation-delay: 210ms; }
.svc-grid > *:nth-child(n+6) { animation-delay: 250ms; }

.ways { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
@media (min-width: 560px) { .ways { grid-template-columns: repeat(3, 1fr); } }

/* ---------- The last visit ---------- */
.feature { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); }
.feature__media {
  position: relative; flex: none; width: 104px; height: 104px; margin: 0;
  border-radius: var(--r); overflow: hidden;
}
.feature__img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.feature__body { padding: 0; min-width: 0; }
.feature__title { font-size: 18px; color: var(--ink); }
.feature__meta { color: var(--ink-2); }
.feature__price { color: var(--ink); font-weight: 600; }
.feature__actions { margin-top: var(--s3); }
.feature__media .pill { display: none; }
.feature__status { display: inline-block; margin-bottom: 6px; background: var(--green-bg); color: var(--green); }
@media (min-width: 560px) {
  .feature__media { width: 132px; height: 132px; }
  .feature__title { font-size: 20px; }
}
.feature--hero { padding: var(--s4); }
.feature--hero .feature__title { font-size: 24px; letter-spacing: -0.03em; }
.feature--hero .feature__meta, .feature--hero .feature__price { font-size: 15px; }
.feature--hero .feature__price { color: var(--accent-ink); font-weight: 600; }
@media (min-width: 560px) {
  .feature--hero .feature__media { width: 168px; height: 168px; }
  .feature--hero .feature__title { font-size: 27px; }
}
.section-head--tight { margin-bottom: var(--s2); }

/* =====================================================================
   THE HOME SCREEN

   .again is the last completed visit, as a panel rather than a list row: the
   cut, when it was, who gave it, and the action, in that reading order.

   .rail is the rest of the menu. It still bleeds to the screen edge and lets
   the next card sit half off it, which is how a rail says there is more
   without a label saying so.
   ===================================================================== */

.again {
  position: relative;
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3);
  border-radius: var(--r-lg);
}
.again__art { flex: none; width: 64px; height: 64px; border-radius: var(--r); overflow: hidden; }
.again__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.again__text { flex: 1; min-width: 0; }
.again__label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink);
}
.again__title {
  margin: 3px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.again__meta { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.again__dot { opacity: .45; margin: 0 3px; }
.again__go { flex: none; }
@media (max-width: 390px) {
  .again { flex-wrap: wrap; }
  .again__go { width: 100%; justify-content: center; }
}

.rail {
  display: flex; gap: var(--s3);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: var(--s4) calc(var(--gutter) * -1) 0;
  padding: 2px var(--gutter) var(--s3);
  scroll-padding-left: var(--gutter);
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
/* The "book again" rail on the customer home still uses the older shape: one
   square photograph with the caption floated across its foot, which is right
   for a compact horizontal scroller. The grid card above it became a column
   that takes its height from the row it sits in - applied here that left the
   rail cards 1px tall, because a rail gives them no row to stretch into. The
   rail keeps the square and the overlay. */
.svc-card--rail {
  flex: 0 0 auto; width: 168px; scroll-snap-align: start;
  display: block; height: auto; aspect-ratio: 1 / 1;
}
.svc-card--rail > .svc-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 34%;
}
@media (min-width: 560px) { .svc-card--rail { width: 196px; } }
@media (min-width: 1024px) {
  .rail { margin-inline: 0; padding-inline: 0; scroll-padding-left: 0; }
  .svc-card--rail { width: 208px; }
}

/* =====================================================================
   THE UPCOMING APPOINTMENT

   What, when, with whom, what state - in that order, down the card - and the
   destructive action under a hairline at the foot.
   ===================================================================== */

.booking { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.booking__main { display: flex; gap: var(--s4); padding: var(--s4); align-items: flex-start; }
.booking__art { flex: none; width: 72px; height: 72px; border-radius: var(--r); overflow: hidden; }
.booking__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.booking__text { min-width: 0; flex: 1; }
.booking__title {
  margin: 0; font-size: var(--t-card); font-weight: 600; letter-spacing: -0.012em;
  color: var(--ink); overflow-wrap: anywhere;
}
.booking__when { margin: 3px 0 0; font-size: var(--t-body); color: var(--ink); }
.booking__who  { margin: 1px 0 0; font-size: var(--t-meta); color: var(--ink-2); }
.booking__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.booking__foot {
  display: flex; justify-content: flex-end;
  padding: var(--s2) var(--s3) var(--s3);
  border-top: 1px solid var(--line);
  box-shadow: none;
}
.booking--empty {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); padding: var(--s4);
}
.booking__none { margin: 0; color: var(--ink-2); font-size: var(--t-body); }
.booking__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-ink); font-weight: 600; font-size: var(--t-body);
  text-decoration: none; white-space: nowrap;
}
.booking__link svg { width: 15px; height: 15px; }
.booking__link:hover { text-decoration: underline; }

/* =====================================================================
   THE SERVICE LIST

   Picture, name, duration, price, one action - and a detail panel that opens
   underneath. The panel is a <details> element: with no JavaScript it opens
   natively and the keyboard reaches it, and app.js only animates the height.
   ===================================================================== */

.svc-list { border-radius: var(--r-lg); overflow: hidden; }
.svc-row + .svc-row { border-top: 1px solid var(--line); box-shadow: none; }
.svc-row { transition: background var(--t-fast); }
.svc-row__main { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); }
.svc-row__art { flex: none; width: 54px; height: 54px; margin-top: 2px; border-radius: var(--r); overflow: hidden; }
.svc-row__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-row__text { flex: 1; min-width: 0; }
.svc-row__name {
  margin: 0; font-size: var(--t-card); font-weight: 600; letter-spacing: -0.012em;
  color: var(--ink); overflow-wrap: anywhere;
}
.svc-row__summary {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: 3px; cursor: pointer; list-style: none;
  font-size: var(--t-meta); color: var(--ink-2);
}
.svc-row__summary::-webkit-details-marker { display: none; }
.svc-row__toggle {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--accent-ink); font-weight: 500; text-underline-offset: 3px;
}
.svc-row__toggle svg {
  width: 13px; height: 13px; transform: rotate(90deg);
  transition: transform 240ms var(--ease);
}
.svc-row__more[open] .svc-row__toggle svg { transform: rotate(-90deg); }
@media (hover: hover) and (pointer: fine) {
  .svc-row:hover { background: #FAFBFD; }
  .svc-row__toggle:hover { text-decoration: underline; }
}
.svc-row__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
.svc-row__panel { padding: var(--s2) 0 var(--s1); }
.svc-row__fact { margin: 0 0 var(--s2); font-size: var(--t-meta); color: var(--ink-2); line-height: 1.5; }
.svc-row__fact strong { color: var(--ink); font-weight: 600; }
.svc-row__fact:last-child { margin-bottom: 0; }
.svc-row__end {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 2px;
}
.svc-row__price { font-size: var(--t-card); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
/* The one control a customer taps to book. It stood at 34px, which is shorter
   than every other small button in the app and short for a thumb on the page
   where booking actually happens. It now matches .btn--sm at 40px. */
.svc-row__book {
  min-height: 40px; padding: 8px 18px; font-size: var(--t-meta);
  background: var(--white); border: 1.5px solid var(--accent); color: var(--accent-ink);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .svc-row__book:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
}
@media (max-width: 400px) {
  .svc-row__main { padding: var(--s3); gap: var(--s3); }
  .svc-row__art { width: 46px; height: 46px; }
  .svc-row__book { padding: 6px 14px; }
}

/* =====================================================================
   CHOOSING A CUT
   ===================================================================== */

.chosen {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4); margin-bottom: var(--s5);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid #CFE0FF;
  box-shadow: none;
}
.chosen__art { width: 86px; height: 86px; flex: none; overflow: hidden; border-radius: var(--r); background: var(--white); }
.chosen__img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.chosen__eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-ink);
}
.chosen__name { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; margin-top: 2px; color: var(--ink); }
.chosen__meta { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.chosen__meta strong { color: var(--ink); }
.chosen__dot { opacity: .45; }

.picklist { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.pick {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3); border-radius: var(--r);
  background: var(--white); border: 1px solid var(--line); box-shadow: none;
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pick__art { width: 52px; height: 52px; flex: none; overflow: hidden; border-radius: 10px; }
.pick__img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.pick__body { flex: 1; min-width: 0; }
.pick__name { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.pick__meta { display: block; font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.pick__tick { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-3); }
.pick__tick svg { width: 17px; height: 17px; }
.pick.is-on { background: var(--accent-soft); border-color: var(--accent); }
.pick.is-on .pick__tick { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .pick:hover { border-color: #CFE0FF; background: #FAFBFD; }
  .pick:hover .pick__tick { color: var(--accent); }
}

/* How the estimate was worked out. */
.working {
  list-style: none; margin: var(--s4) 0 0; padding: var(--s4);
  display: flex; flex-direction: column; gap: var(--s3);
  border-radius: var(--r-lg); font-size: 14px; color: var(--ink-2);
}
.working li { display: flex; align-items: flex-start; gap: var(--s3); }
.working strong { color: var(--ink); font-weight: 600; }
.working__icon {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.working__icon svg { width: 14px; height: 14px; }
.working__src { color: var(--ink-3); font-size: 12.5px; }

/* The three facts. */
.facts { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
@media (min-width: 480px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r); }
.fact__badge, .fact__art {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden;
}
.fact__badge svg { width: 19px; height: 19px; }
.fact__badge--blue  { background: var(--accent-soft); color: var(--accent-ink); }
.fact__badge--green { background: var(--green-bg);    color: var(--green); }
.fact__img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.fact__body { min-width: 0; }
.fact__label { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.fact__value { display: block; font-size: 23px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }
.fact__value--text { font-size: 16px; letter-spacing: -0.015em; }
.fact__hint { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }

/* ---------- The countdown ---------- */
.eta { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.eta__value { color: var(--ink); }
.eta__label { color: var(--ink-2); }
.eta--soon .eta__value { color: var(--amber); }
.eta--due { background: var(--green-bg); border-color: #CFEBDC; }
.eta--due .eta__value { color: var(--green); }
.eta--due .eta__label { color: var(--green); }

/* The trip strip: pickup dot to drop-off square. */
.trip__rail, .trip__line, .route__line { background: var(--tile-2); }
.trip__dot, .route__marker { background: var(--accent-face); }
.trip__dot--end, .route__marker--end { background: var(--ink); }
.trip__label, .route__field { color: var(--ink-2); }
.trip__time { color: var(--ink); }
.trip--go .trip__label, .trip--go .trip__edit summary { color: var(--ink-2); }

/* ---------- The queue ---------- */
.queue-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.queue-item--active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.queue-item--overrun { border-color: #F3C3C5; background: var(--red-bg); }
.queue-item__pos { background: var(--accent-soft); color: var(--accent-ink); }
.queue-item--active .queue-item__pos { background: var(--accent); color: #FFFFFF; }
.queue-item__name { color: var(--ink); }
.queue-item__meta, .queue-item__wait { color: var(--ink-2); }
.queue-item__eta { color: var(--ink); }

/* ---------- The shop right now ----------
   Three states, and a sequence a glance can read: green means walk in, blue
   means a short wait, amber means busy. */
.shopnow { border-radius: var(--r-lg); }
.shopnow__bars { display: flex; gap: 3px; }
.shopnow__bar { background: var(--tile-2); }
.shopnow__note { margin: 0; font-size: var(--t-meta); color: var(--ink-2); line-height: 1.45; }
.shopnow__sub, .shopnow__unit, .shopnow__tip { color: var(--ink-2); }
.shopnow__figure { color: var(--ink); }

.shopnow--quiet { background: var(--green-bg); border-color: #CFEBDC; }
.shopnow--quiet .shopnow__dot, .shopnow--quiet .shopnow__bar.is-on { background: var(--green-face); }
.shopnow--quiet .shopnow__status { color: var(--green); }

.shopnow--steady { background: var(--accent-soft); border-color: #CFE0FF; }
.shopnow--steady .shopnow__dot, .shopnow--steady .shopnow__bar.is-on { background: var(--accent-face); }
.shopnow--steady .shopnow__status { color: var(--accent-ink); }

.shopnow--busy { background: var(--amber-bg); border-color: #F6E2BC; }
.shopnow--busy .shopnow__dot, .shopnow--busy .shopnow__bar.is-on { background: var(--amber-face); }
.shopnow--busy .shopnow__status, .shopnow--busy .shopnow__figure { color: var(--amber); }

.hours__bar { background: var(--tile-2); }
.hours__bar.is-on { background: var(--accent-face); }
.hours__label { color: var(--ink-2); }

.quad__item { background: var(--white); border: 1px solid var(--line); }
.quad__item:hover { background: var(--accent-soft); border-color: #CFE0FF; }
.quad__item svg { color: var(--accent); }

.promo { display: flex; align-items: center; gap: var(--s4); }
.promo__title { color: var(--ink); font-weight: 600; }
.promo__sub { color: var(--ink-2); }

.menu-row__title { color: var(--ink); }
.menu-row__sub { color: var(--ink-2); }
.menu-row svg { color: var(--ink-2); }
.menu-row:hover .menu-row__title { color: var(--accent-ink); }

.stat { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat__value { color: var(--ink); }
.stat__label, .stat__hint { color: var(--ink-2); }
.stat--good .stat__value { color: var(--green); }
.stat--warn .stat__value { color: var(--amber); }
.stat--info .stat__value { color: var(--accent-ink); }
.stat--live .stat__value { color: var(--accent-ink); }

.identity, .place, .who__text { color: var(--ink-2); }
.avatar { background: var(--accent-soft); color: var(--accent-ink); }

.pay-waiting__pulse { background: var(--accent-face); }
.pay-flag { background: var(--amber-bg); color: var(--amber); }
.accuracy { color: var(--ink-2); }
.empty { color: var(--ink-2); }
.late { color: var(--red); }
.alarm { border-color: #F6E2BC; background: var(--amber-bg); }
/* =====================================================================
   THE FLOATING BAR

   Still a pill, still floating clear of the edge and of the home indicator.
   White now, with a hairline and the page's own shadow, and the current tab
   marked by a light blue pill that travels when you tap - the same travelling
   mark as before, in the new palette.
   ===================================================================== */

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 2px; padding: 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(23, 27, 43, .05), 0 14px 34px rgba(35, 58, 100, .14);
  isolation: isolate;
  z-index: 70;
}
:root { --tabbar: calc(92px + env(safe-area-inset-bottom, 0px)); }

/* The travelling mark. A solid light-blue pill rather than a pool of light:
   on a white bar a soft glow has nothing to glow against, and the reference
   marks its current item with a filled shape. */
.tabbar__glow {
  position: absolute; top: 5px; bottom: 5px; left: 0; z-index: 0;
  width: var(--tab-w, 68px);
  transform: translateX(var(--tab-x, 0px));
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: var(--accent-soft);
  transition:
    transform 420ms cubic-bezier(.34, 1.26, .46, 1),
    width     420ms cubic-bezier(.34, 1.26, .46, 1),
    opacity   200ms var(--ease);
}
.tabbar.is-marked .tabbar__glow { opacity: 1; }

.tab {
  position: relative; z-index: 1;
  color: var(--ink-2);
  transition: color 220ms var(--ease), transform 180ms var(--ease);
}
.tab__icon svg { transition: stroke 220ms var(--ease), transform 300ms cubic-bezier(.34, 1.3, .5, 1); }
.tab--active { color: var(--accent-ink); font-weight: 600; }
.tab--active .tab__icon svg { stroke: var(--accent-face); transform: translateY(-1px) scale(1.06); }
.tab:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .tab:hover { color: var(--ink); }
}

/* =====================================================================
   THE SAME APP ON A DESKTOP

   The column widens to a measure wide enough for four tiles across. The bar
   stays at the foot on both: a control that changes place depending on the
   window is a control you have to look for.
   ===================================================================== */

@media (min-width: 1024px) {
  :root { --shell: 920px; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  /* A full-width button is right on a phone and absurd on a monitor. Only the
     ones standing on their own in the page, though: inside a form a block
     button is matching the width of the inputs on purpose. */
  main.shell > .btn--block { max-width: 340px; }
}

/* =====================================================================
   TYPE, ON A SCALE

   Seven steps, each a recognisable distance from the last. Weight is
   rationed the same way: a heading at 600 with tight tracking already reads
   as a heading, so 700 is kept for type too small to carry rank any other
   way - small uppercase labels, and nothing else.
   ===================================================================== */

:root {
  --t-display: 34px;   /* the one big number or greeting on a screen */
  --t-title:   24px;   /* page title */
  --t-section: 20px;   /* section heading */
  --t-card:    17px;   /* a thing's name, in a card or a row */
  --t-body:    15px;   /* running text and secondary lines */
  --t-meta:    13px;   /* dates, durations, hints */
  --t-label:   11px;   /* uppercase labels, where weight carries the rank */
}

body { font-size: 16px; letter-spacing: -0.006em; }

.row__title, .menu-row__title { font-size: var(--t-card); }
.row__meta, .menu-row__sub { font-size: var(--t-meta); line-height: 1.38; }
.feature__meta, .feature__price, .promo__sub, .page-title p { font-size: var(--t-body); }
.field__label { font-size: var(--t-meta); }
.field__hint, .capbar__meta, .again__meta { font-size: var(--t-meta); }
.tiny, .stat__label, .stat__hint { font-size: 12px; }
.small { font-size: var(--t-body); }

.feature__title, .promo__title, .stat__value, .queue-item__eta,
.again__title, .capbar__title, .card__title { font-weight: 600; }

.shopnow__status, .shopnow__live, .pay-flag, .again__label { font-weight: 700; letter-spacing: .08em; }
.capbar__title { letter-spacing: -0.01em; }

.section-head { margin: var(--s7) 0 var(--s3); }
.section-head:first-child, .page-title + .section-head { margin-top: 0; }
.section-head h2 { font-size: var(--t-section); letter-spacing: -0.02em; color: var(--ink); }
.page-title { margin-bottom: var(--s6); }
.page-title h1 { font-size: var(--t-title); letter-spacing: -0.024em; color: var(--ink); }
.page-title p { color: var(--ink-2); }
@media (min-width: 560px) {
  .page-title h1 { font-size: 30px; }
  .section-head h2 { font-size: 22px; }
}

/* The gutter. The shell's side padding changes with the screen, and the rail
   bleeds out to the edge by cancelling it, so the two read the same variable
   and cannot disagree. */
:root { --gutter: var(--s4); }
@media (min-width: 560px) { :root { --gutter: var(--s6); } }
@media (max-width: 380px) { :root { --gutter: var(--s3); } }
.shell { padding-left: var(--gutter); padding-right: var(--gutter); }

/* =====================================================================
   MOTION

   Short, eased, and the same four durations everywhere: 160ms for a colour,
   240ms for a move, 420ms for something arriving. The long 400ms settle
   belonged to the glass, where the material was the thing being looked at.

   Page entrance, the skeleton and the spinner follow the motion sheet that
   came with the design pack.
   ===================================================================== */

.sb-page-enter, main.shell > * { animation: none; }
/* The page arrives by moving, not by fading. Fading the shell fades everything
   in it, and an opaque white card at 40% opacity is a window onto whatever is
   behind it - which used to be a flat grey and is now artwork. Every card on
   every page lit up with the backdrop for a third of a second on each
   navigation, which reads as a fault rather than as a transition. A slide says
   the same thing and never makes a card see-through. */
.shell { animation: page-enter 320ms var(--ease) both; }
@keyframes page-enter {
  from { transform: translateY(7px); }
  to   { transform: translateY(0); }
}

@keyframes rise {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}

.skeleton {
  background: linear-gradient(90deg, #F0F2F6 25%, #F8F9FC 37%, #F0F2F6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.35s ease infinite;
  border-radius: 10px;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The notification banner: the shape people know from their phone, in white. */
.banner {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  border-radius: var(--r-lg);
}
.banner__icon { background: var(--tile); }
.banner__title { color: var(--ink); }
.banner__body { color: var(--ink-2); }
.banner__close { background: var(--tile); color: var(--ink-2); }
.banner__close:hover { background: var(--tile-2); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .shell, .svc-grid > *, .ways > * { animation: none; }
  .svc-card__img, .way__img, .capbar__go, .tab__icon svg, .statcard { transition: none; }
  .svc-card:hover .svc-card__img, .way:hover .way__img,
  .svc-card:active, .way:active, .statcard:hover { transform: none; }
  .tabbar__glow { transition: opacity 140ms linear; }
  .skeleton, .spinner { animation: none; }
}

/* Asked for less transparency, the two bars that use a backdrop filter become
   solid. Nothing else in the interface is transparent any more. */
@media (prefers-reduced-transparency: reduce) {
  .tabbar, .topbar-admin, .topnav {
    background: var(--white);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* =====================================================================
   THE DECORATION

   Two shapes from the design pack, on the screens that stand alone - sign in,
   sign up, the wait checker - where the content is one narrow column and the
   corners are empty. They are the pack's own SVGs, scaled rather than redrawn.

   They are decoration in the strict sense: behind everything, untouchable,
   invisible to a screen reader, and dropped entirely below 900px, where the
   column fills the screen and there is no empty corner left to fill. The ring
   is the one yellow in the interface and it is a shape, never a signal.
   ===================================================================== */

/* ---------- The corner shapes ----------
   The blue triangle and the yellow ring from the design pack, on every screen
   rather than only on the sign-in ones.

   Painted on the body rather than placed as two <img> elements. The elements
   needed the content above them to be given a stacking context, and the rule
   that did it - body > * - also caught the staff sidebar, which is fixed at a
   lower specificity, and dropped the whole console down by the height of the
   rail. A layer at z-index -1 is behind everything by definition, so there is
   nothing to out-rank and nothing to break.

   Both sit mostly off the edge. A decorative shape fully on screen is an
   illustration, and an illustration behind a form competes with it; a corner
   of one reads as paper stock. Everything they sit under is either an opaque
   white card or empty margin.

   Two pseudo-elements rather than two background layers on one, because each
   shape needs its own rotation and its own opacity, and a background layer
   cannot carry either. */
body::before,
body::after {
  content: ''; position: fixed; z-index: -1;
  pointer-events: none; background-repeat: no-repeat;
  background-size: contain;
}
body::before {
  top: -110px; left: -130px;
  width: 300px; height: 260px;
  background-image: url('../img/deco/blue-triangle-soft.svg');
  opacity: .34;
  transform: rotate(14deg);
}
body::after {
  right: -130px; bottom: -120px;
  width: 280px; height: 280px;
  background-image: url('../img/deco/yellow-ring.svg');
  opacity: .16;
}
/* On a phone there are no margins for them to live in, so they come in off the
   edge further and smaller - present, but never under a line of text. */
@media (max-width: 899px) {
  body::before { top: -90px; left: -115px; width: 215px; height: 186px; opacity: .26; }
  body::after  { right: -110px; bottom: -105px; width: 200px; height: 200px; opacity: .13; }
}
@media (prefers-reduced-transparency: reduce) {
  body::before, body::after { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .deco { display: none; }
}

/* =====================================================================
   THE SIGN-IN SCREENS, AS A CARD

   The auth pages were a column of content on the page itself, which worked
   when the page was black: the form had the whole screen to sit in. On a
   light grey page a form with no surface under it looks unfinished, and the
   reference puts every one of these on a white card.

   From 560px up the form gets that card. Below it the card is dropped
   again - a card with a 16px gutter either side of it is a page with a
   border, and on a phone the screen is the card.
   ===================================================================== */

.auth { min-height: 100svh; }
.auth h1 { font-size: 26px; letter-spacing: -0.028em; }
.auth__brand { margin-bottom: var(--s7); }
.auth__mark { background: var(--accent); color: #FFFFFF; }
.auth__wordmark { color: var(--brand); }
.auth__foot { color: var(--ink-2); font-size: var(--t-meta); }
.auth__foot a { color: var(--accent-ink); }
.divider { color: var(--ink-3); }
.show-pass { color: var(--ink-2); font-size: var(--t-meta); }

@media (min-width: 560px) {
  .auth {
    max-width: 440px;
    margin: var(--s8) auto;
    min-height: 0;
    padding: var(--s7) var(--s7) var(--s6);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
  }
  .auth__foot { padding-top: var(--s5); border-top: 1px solid var(--line); margin-top: var(--s6); }
}

/* The email already entered, shown above the password field. It is a fact
   rather than a field, so it reads as a band and not as a box you can type in. */
.locked-email {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 12px var(--s4); border-radius: var(--r);
  background: var(--tile); color: var(--ink);
  font-size: var(--t-body);
}
.locked-email a { color: var(--accent-ink); font-weight: 600; font-size: var(--t-meta); }

/* =====================================================================
   MOTION, AND THE PIECES THAT MOVE

   One easing curve and three durations, already declared as --ease, --t-fast
   (160ms, a colour), --t (240ms, a move) and --t-slow (420ms, something
   arriving). Nothing here invents a fourth.

   The rule every item below follows: motion reports a change the interface has
   already made. Nothing animates to attract attention, nothing animates on a
   timer, and nothing animates a property that forces layout - only transform
   and opacity, which the compositor can do without touching the page.
   ===================================================================== */

/* ---------- The notification, as a notification ----------
   This had lost its layout: the host had no position and the toast no
   transition, so a notification arrived as an unstyled block at the foot of
   the document. It is a card again, parked below the top edge, and it comes in
   from above the way the shape it borrows does. */
.banner-host {
  position: fixed; z-index: 90;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100vw - 20px));
  display: flex; flex-direction: column; gap: var(--s2);
  pointer-events: none;
}
.banner {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s3);
  padding: 12px 14px;
  transform: translateY(-140%);
  opacity: 0;
  transition: transform var(--t-slow) cubic-bezier(.2, .9, .25, 1.06),
              opacity var(--t) var(--ease);
}
.banner.is-in  { transform: translateY(0);      opacity: 1; }
.banner.is-out { transform: translateY(-140%);  opacity: 0; }
.banner--tappable { cursor: pointer; }
.banner--tappable:hover { border-color: #D6E3FA; }

.banner__icon {
  width: 34px; height: 34px; flex: none;
  object-fit: contain; border-radius: 10px; padding: 5px;
}
.banner__text { min-width: 0; flex: 1; }
.banner__title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.banner__body {
  font-size: 13.5px; margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.banner__close {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  font-size: 17px; line-height: 1; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

/* ---------- The flash message ----------
   The line the server leaves after a redirect. It arrives with the page, so it
   enters with the page rather than announcing itself separately. */
.shell > .alert:first-child,
.alert[role="status"] { animation: alert-in 320ms var(--ease) both; }
@keyframes alert-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- The dropdown ----------
   A <details> panel cannot animate shut without script, so it animates open
   and closes cleanly. Scaling from the corner it hangs from is what makes it
   read as unfolding from the button rather than appearing beside it. */
.bell__panel { transform-origin: top right; }
.bell[open] .bell__panel { animation: dropdown-in 200ms var(--ease) both; }
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Press feedback ----------
   Every control the thumb or pointer can push gives the same answer: it moves
   under the press and springs back. The scale is small on purpose - a button
   that shrinks noticeably reads as broken rather than responsive. */
.btn:active,
.icon-btn:active,
.bell__button:active,
.side__link:active,
.row:active,
.menu-row:active { transform: scale(.985); }
.btn, .icon-btn, .bell__button, .side__link, .row, .menu-row {
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform 110ms var(--ease);
}

/* ---------- The queue, moving ----------
   The board polls itself. When the markup it gets back differs from what is on
   screen, the rows settle in; when it is identical the script returns before
   touching the DOM, so an unchanged shop is perfectly still. */
.is-refreshed > * { animation: board-settle var(--t-slow) var(--ease) both; }
@keyframes board-settle {
  from { opacity: .4; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Booking, step to step ----------
   Each step is a page, so the step transition is the page transition - but the
   panel carrying the choice you just made moves a little further than the rest
   of the screen, which is what makes the sequence feel like one flow. */
.chosen { animation: step-in 300ms var(--ease) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* The segmented control's thumb travels rather than blinking between halves. */
.segmented label, .segmented .seg-sub {
  transition: background var(--t) var(--ease), color var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease);
}

/* ---------- Asked for stillness, give stillness ----------
   Not "less motion": none of it. Everything above collapses to its finished
   state, and the two places that must still signal a change do it by fading. */
@media (prefers-reduced-motion: reduce) {
  .banner { transition: opacity var(--t) ease; transform: none; }
  .banner.is-in, .banner.is-out { transform: none; }
  .bell[open] .bell__panel,
  .alert[role="status"],
  .shell > .alert:first-child,
  .chosen { animation: none; }
  .is-refreshed > * { animation: board-settle-still var(--t) ease both; }
  @keyframes board-settle-still { from { opacity: .55; } to { opacity: 1; } }
  .btn:active, .icon-btn:active, .bell__button:active,
  .side__link:active, .row:active, .menu-row:active { transform: none; }
  .statcard:hover, .statcard:active { transform: none; }
  .statcard:hover .statcard__badge { transform: none; }
  .statcard__go { transition: opacity var(--t-fast); transform: none; }
}

/* =====================================================================
   COLOUR

   The reference is bright without being loud, and the reason is that the
   colour is carried by a few specific devices rather than sprayed over every
   surface. The cards stay white, the type stays near-black, the page stays
   pale - and then four saturated colours do all the work:

     1. a tinted page, with four soft colour fields bleeding in at the corners
     2. the current nav item, filled solid rather than tinted
     3. round action marks on cards, cycling through the four
     4. the statistic badges, on the same four
     5. one gradient call-to-action
     6. one word of the headline, running through the palette

   Two rules keep it legible. Nothing coloured carries small text on white:
   the four live as grounds with white or near-black on them, or as marks with
   no words in them at all. And where a colour does have to read as type, it
   is the darker cut of that hue, measured, not the bright one.
   ===================================================================== */

:root {
  /* The bright four: grounds, discs, bars and marks. */
  --g-blue:   #4285F4;
  --g-red:    #EA4335;
  --g-yellow: #FBBC04;
  --g-green:  #34A853;

  /* The darker four, for anything that has to be read as a word on white.
     Measured against white: 4.5, 4.8, 5.3 and 3.3 to one. The amber is the
     only one held to the large-text rule, and it is only ever used at display
     size. */
  --g-blue-ink:  #1A73E8;
  --g-red-ink:   #D93025;
  --g-green-ink: #188038;
  --g-amber-ink: #E37400;

  /* The pale four, for a tint behind a dark icon. */
  --g-blue-bg:   #E8F0FE;
  --g-red-bg:    #FCE8E6;
  --g-yellow-bg: #FEF7E0;
  --g-green-bg:  #E6F4EA;
}

/* ---------- 1. The page ----------
   Back to a plain near-white field, by request. The artwork that was here is
   still in the project at assets/img/backgrounds/aurora.webp - putting it back
   is this rule plus making body transparent again, which is why both are
   written as one block rather than scattered.

   Nothing is painted here now: the page colour sits on <html> and on <body>,
   and the interface is white cards on it, which is what the design system was
   built against and what every contrast figure in this file was measured on. */

/* ---------- 2. The current section ----------
   Filled, not tinted. On a white rail a solid blue pill is the one thing that
   says where you are from across a desk, and it is how the reference marks
   it. The little bar at the left was doing that job for a tinted pill and is
   redundant against a filled one. */
@media (min-width: 1000px) {
  .side__link.is-active {
    background: var(--g-blue);
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(66, 133, 244, .24), 0 6px 16px rgba(66, 133, 244, .28);
  }
  .side__link.is-active svg { stroke: #FFFFFF; }
  .side__link.is-active::before { display: none; }
}

/* ---------- 3. Round action marks ----------
   The small mark at the corner of a card, cycling blue, red, yellow, green
   down the grid. White on blue, red and green clears 3:1 at this size; the
   yellow takes the near-black instead, because white on it is 1.7:1 and would
   be a blank disc. */
/* The split that keeps this legible: the bright four are for marks with no
   words in them - the arrows, the arc, the ribbon, the badge grounds, where
   3:1 is the bar and all four clear it. The moment a colour has a word on it,
   it steps down to the darker cut. Measured white-on-ground for this pill at
   12.5px: the bright set came out 3.6, 3.9 and 3.1, under the 4.5 that text
   that size is held to; the darker set is 4.5, 4.8 and 5.0. The yellow is the
   exception in the other direction - it keeps its bright value because the
   near-black on it reads at 10:1, and a dark label on yellow is the only way
   yellow can carry a word at all. */
.svc-grid > *:nth-child(4n+1) .svc-card__cta { background: var(--g-blue-ink);  color: #FFFFFF; }
.svc-grid > *:nth-child(4n+2) .svc-card__cta { background: var(--g-red-ink);   color: #FFFFFF; }
.svc-grid > *:nth-child(4n+3) .svc-card__cta { background: var(--g-yellow);    color: var(--black); }
.svc-grid > *:nth-child(4n+4) .svc-card__cta { background: var(--g-green-ink); color: #FFFFFF; }
.svc-grid .svc-card__cta svg { stroke: currentColor; }
@media (hover: hover) and (pointer: fine) {
  /* The card already lifts; the mark only needs to lean into the arrow. */
  .svc-grid .svc-card:hover .svc-card__cta { filter: brightness(.93); }
  .svc-grid .svc-card:hover .svc-card__cta svg { stroke: currentColor; transform: translateX(2px); }
}

/* The three ways in, on the services page: same cycle, same reasoning. */
.ways > *:nth-child(3n+1) .capbar__go { background: var(--g-blue);  color: #FFFFFF; }
.ways > *:nth-child(3n+2) .capbar__go { background: var(--g-red);   color: #FFFFFF; }
.ways > *:nth-child(3n+3) .capbar__go { background: var(--g-green); color: #FFFFFF; }
.ways .capbar__go svg { stroke: currentColor; }

/* ---------- 4. The statistic badges ----------
   They were a blue, a green, a violet and a rose borrowed from the status
   colours, which meant the "served today" tile wore the same red that marks
   an error. On the four they are section marks and nothing else. */
.statcard__badge--blue   { background: var(--g-blue-bg);   color: var(--g-blue-ink); }
.statcard__badge--green  { background: var(--g-green-bg);  color: var(--g-green-ink); }
.statcard__badge--violet { background: var(--g-yellow-bg); color: #9A6700; }
.statcard__badge--rose   { background: var(--g-red-bg);    color: var(--g-red-ink); }

/* ---------- 5. The gradient call-to-action ----------
   One button on a screen, never two. Blue into green into red: the three of
   the four that hold white type at this size, so the label is legible across
   the whole sweep. Yellow is left out of this one on purpose - it is a 1.7:1
   ground and belongs on discs, not under words. */
.btn--primary.btn--grad,
.hero-band__actions .btn--primary {
  /* Was a sweep from blue through green into red. Red is this interface's
     error colour, so the one control a screen is built around ended in the
     shade that everywhere else means something has gone wrong - and on a page
     with no drawn edges left it was the only thing shouting. One blue. */
  background-image: none;
  background-color: var(--accent);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(26, 115, 232, .22), 0 8px 22px rgba(26, 115, 232, .26);
}
.btn--primary.btn--grad svg,
.hero-band__actions .btn--primary svg { stroke: #FFFFFF; }
.btn--primary.btn--grad:hover,
.hero-band__actions .btn--primary:hover {
  background-image: none;
  background-color: var(--accent-deep);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(26, 115, 232, .24), 0 12px 28px rgba(26, 115, 232, .30);
}

/* ---------- 6. One word, through the palette ----------
   The headline's accent word is painted with a gradient clipped to the glyphs
   rather than split into one span per letter: a word cut into five elements
   can be announced letter by letter, and the sentence has to survive being
   read aloud. Every stop is one of the darker four, so the word holds up at
   display size on white. Browsers without background-clip get the blue. */
.tint { color: var(--g-blue-ink); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .tint {
    background-image: linear-gradient(94deg,
      var(--g-blue-ink) 0%, var(--g-red-ink) 34%,
      var(--g-amber-ink) 62%, var(--g-green-ink) 94%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ---------- The arc ----------
   The four-colour sweep the reference puts in the corner of its banner. Drawn
   as a conic slice masked to a ring, clipped by the card, so it reads as a
   ribbon passing behind the picture rather than a sticker placed on top. */
.hero-band__arc {
  position: absolute; z-index: 4; pointer-events: none;
  top: -104px; right: -76px; width: 296px; height: 296px;
  border-radius: 50%;
  background: conic-gradient(from 128deg,
    var(--g-blue) 0deg 22deg, var(--g-red) 22deg 44deg,
    var(--g-yellow) 44deg 66deg, var(--g-green) 66deg 88deg,
    transparent 88deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 62.5% 78%, transparent 78.5%);
          mask: radial-gradient(circle, transparent 0 62%, #000 62.5% 78%, transparent 78.5%);
  opacity: .92;
}
@media (max-width: 759px) {
  .hero-band__arc { width: 160px; height: 160px; top: -62px; right: -44px; }
}

/* ---------- Section icons ----------
   The small glyph beside a panel title was the same grey as the rule under
   it. On the blue it reads as a marker. */
.card__title svg { stroke: var(--g-blue-ink); }

/* ---------- The promo card ----------
   The one photographic panel in the console gets the four as a ribbon across
   the top of its picture, which is what the reference does with its own
   promotional block. */
.promo-card { position: relative; }
.promo-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg,
    var(--g-blue) 0 25%, var(--g-red) 25% 50%,
    var(--g-yellow) 50% 75%, var(--g-green) 75% 100%);
}
.promo-card__tag { color: var(--g-blue-ink); }

/* ---------- Stillness ---------- */
@media (prefers-reduced-motion: reduce) {
  .svc-grid .svc-card:hover .svc-card__cta svg { transform: none; }
}

/* ---------- Living on the artwork ----------
   A picture behind the interface changes two things the flat page never
   tested, and both show up as soon as it is switched on.

   First, anything translucent now has something to be translucent against. A
   browser renders a disabled control at 70% opacity by default, which on a
   white page looks greyed out and over a rainbow looks like a hole in the
   form. Disabled fields get an opaque grey ground of their own instead, which
   is what "unavailable" should have looked like all along. */
.input:disabled, .select:disabled, .textarea:disabled {
  opacity: 1;
  background-color: var(--tile);
  border-color: var(--line);
  color: var(--ink-2);
  cursor: not-allowed;
}
.select:disabled { background-blend-mode: normal; }

/* Second, the text colours were measured against a flat near-white page. Most
   of the app is unaffected because its type sits on white cards, but a few
   lines sit directly on the backdrop - the two page headings and the line
   under them. --ink is fine there at 6.8:1 even over the deepest part of the
   artwork; --ink-2 is not, so those lines take a darker grey that holds 5:1
   against the worst of it and 11:1 on a card. */
/* These were darkened to stay readable over the artwork. On a plain page they
   go back to the system's secondary ink, which is what every other line of
   supporting text in the app uses. */
.hero__sub,
.page-title p { color: var(--ink-2); }

/* =====================================================================
   BOOKING

   The screen where the money is decided, so it is the one screen that has to
   show everything at once: what is being booked, what the shop is doing, who
   is free, when, and what it costs. Everything below is built from the same
   white card, hairline and shadow the rest of the app uses - the difference
   is density, not a new language.
   ===================================================================== */

/* ---------- The head ----------
   Photograph, name, price and the live quote, on one card. Three columns on a
   desk, stacked on a phone with the photograph as a band across the top. */
.bk-head {
  display: grid; grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: var(--s4);
}
.bk-head__media { position: relative; background: var(--tile); }
.bk-head__photo {
  display: block; width: 100%; height: 160px;
  object-fit: cover; object-position: 50% 32%;
}
.bk-head__body { padding: var(--s5); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.bk-head__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--g-blue-ink);
}
.bk-head__name {
  margin: 4px 0 0; font-size: 26px; font-weight: 600;
  letter-spacing: -0.028em; line-height: 1.12; color: var(--ink);
}
.bk-head__blurb { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.bk-head__facts { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }
.bk-fact {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ink-2);
}
.bk-fact svg { width: 14px; height: 14px; stroke: var(--ink-3); }
.bk-fact--price {
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* The live quote, set apart by a tint rather than by another card: a card
   inside a card is the thing the whole interface avoids. */
.bk-now {
  padding: var(--s5);
  background: linear-gradient(160deg, var(--g-blue-bg) 0%, #F4F8FF 100%);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start;
}
.bk-now__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.bk-now__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3);
}
.bk-now__dot.is-open { background: var(--g-green); box-shadow: 0 0 0 3px rgba(52, 168, 83, .22); }
.bk-now__big {
  margin-top: 8px; font-size: 32px; font-weight: 600;
  letter-spacing: -0.035em; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bk-now__big--none { color: var(--ink-3); font-weight: 400; }
.bk-now__sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.bk-now__list {
  list-style: none; margin: var(--s4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s4);
  font-size: 12.5px; color: var(--ink-2);
}
.bk-now__list strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .bk-head { grid-template-columns: 190px minmax(0, 1fr) 210px; }
  .bk-head__photo { height: 100%; min-height: 190px; }
  .bk-now {
    border-top: 0; border-left: 1px solid var(--line);
    justify-content: center;
  }
}

/* ---------- The steps ----------
   A rail, not a progress bar: it says where you are in a sequence you can
   move around in, which is what this flow actually is. */
.bk-steps {
  list-style: none; margin: 0 0 var(--s5); padding: 0;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bk-steps::-webkit-scrollbar { display: none; }
.bk-step {
  display: flex; align-items: center; gap: 7px; flex: none;
  font-size: 12.5px; color: var(--ink-3); white-space: nowrap;
}
.bk-step + .bk-step::before {
  content: ''; width: 26px; height: 1px; margin: 0 10px;
  background: var(--line); flex: none;
}
.bk-step__n {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--tile); color: var(--ink-3);
  font-size: 11.5px; font-weight: 600;
}
.bk-step__n svg { width: 12px; height: 12px; stroke: currentColor; }
.bk-step.is-done { color: var(--ink-2); }
.bk-step.is-done .bk-step__n { background: var(--g-green-bg); color: var(--g-green-ink); }
.bk-step.is-now { color: var(--ink); font-weight: 600; }
.bk-step.is-now .bk-step__n {
  background: var(--g-blue); color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, .20);
}

/* ---------- Step 1: the cuts ----------
   Photographic tiles. The old list put a 44px thumbnail beside a line of text,
   which is a picture too small to be one. */
.bk-cuts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3);
  margin-bottom: var(--s5);
}
@media (min-width: 560px) { .bk-cuts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .bk-cuts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bk-cut {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast);
}
.bk-cut__media { position: relative; aspect-ratio: 4 / 3; background: var(--tile); flex: none; }
.bk-cut__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.bk-cut__tick {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-blue); color: #FFFFFF;
  opacity: 0; transform: scale(.7);
  transition: opacity var(--t-fast), transform var(--t) var(--ease);
}
.bk-cut__tick svg { width: 13px; height: 13px; stroke: currentColor; }
.bk-cut__name { padding: 10px var(--s3) 0; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.bk-cut__meta { padding: 2px var(--s3) 11px; font-size: 12px; color: var(--ink-2); }
.bk-cut__meta strong { color: var(--ink); font-weight: 600; }
.bk-cut__dot { opacity: .5; }
.bk-cut.is-on {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 1px var(--g-blue), 0 8px 22px rgba(66, 133, 244, .18);
}
.bk-cut.is-on .bk-cut__tick { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .bk-cut:hover { border-color: #D6E3FA; transform: translateY(-1px); }
}

/* ---------- Step 2: walk in or reserve ----------
   Two cards, because it is two different products: one is a queue, the other
   is an appointment with a deposit. A segmented control made them look like
   two settings of the same thing. */
.bk-modes { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin-bottom: var(--s5); }
@media (min-width: 560px) { .bk-modes { grid-template-columns: repeat(2, 1fr); } }

.bk-mode {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast);
}
.bk-mode__icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--tile); color: var(--ink-2);
}
.bk-mode__icon svg { width: 19px; height: 19px; stroke: currentColor; }
.bk-mode__text { min-width: 0; }
.bk-mode__title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.bk-mode__sub { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.bk-mode__tick {
  margin-left: auto; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-blue); color: #FFFFFF;
  opacity: 0; transform: scale(.7);
  transition: opacity var(--t-fast), transform var(--t) var(--ease);
}
.bk-mode__tick svg { width: 12px; height: 12px; stroke: currentColor; }
.bk-mode.is-on {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 1px var(--g-blue), 0 8px 22px rgba(66, 133, 244, .16);
}
.bk-mode.is-on .bk-mode__icon { background: var(--g-blue-bg); color: var(--g-blue-ink); }
.bk-mode.is-on .bk-mode__tick { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .bk-mode:hover { border-color: #D6E3FA; }
}

/* ---------- Step 3: the barbers ----------
   Radio cards. Same <input name="barber_id"> the server has always read; the
   input itself is taken off screen and the card around it carries the state,
   so the keyboard and the form still behave exactly as before. */
.bk-barbers { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.bk-barber {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t);
}
.bk-barber input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  margin: 0; pointer-events: none;
}
.bk-barber__face {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--tile-2); color: var(--ink-2);
  font-size: 14px; font-weight: 600;
}
.bk-barber__face--any { background: var(--g-blue-bg); color: var(--g-blue-ink); }
.bk-barber__face--any svg { width: 18px; height: 18px; stroke: currentColor; }
.bk-barber__text { min-width: 0; flex: 1 1 auto; }
.bk-barber__name { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.bk-barber__flag {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  padding: 2px 7px; border-radius: 999px;
  background: var(--g-yellow-bg); color: #9A6700;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.bk-barber__meta { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.bk-barber__why {
  display: flex; align-items: flex-start; gap: 5px; margin-top: 5px;
  font-size: 12px; line-height: 1.35; color: var(--g-blue-ink);
}
.bk-barber__why svg { width: 13px; height: 13px; flex: none; margin-top: 1px; stroke: currentColor; }
.bk-barber__when { flex: none; }
.bk-barber__tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-blue); color: #FFFFFF;
  opacity: 0; transform: scale(.7);
  transition: opacity var(--t-fast), transform var(--t) var(--ease);
}
.bk-barber__tick svg { width: 12px; height: 12px; stroke: currentColor; }
.bk-barber:has(input:checked) {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 1px var(--g-blue), 0 8px 22px rgba(66, 133, 244, .16);
}
.bk-barber:has(input:checked) .bk-barber__tick { opacity: 1; transform: scale(1); }
/* The focus ring has to live on the card, because the input it belongs to is
   the one thing on this card nobody can see. */
.bk-barber:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .bk-barber:hover { border-color: #D6E3FA; }
}

/* ---------- The day strip ---------- */
.bk-days {
  display: flex; gap: var(--s2); margin-bottom: var(--s3);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; padding-bottom: 2px;
  scrollbar-width: none;
}
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 62px; padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.bk-day__dow { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.bk-day__num { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-day__mon { font-size: 10.5px; color: var(--ink-3); }
.bk-day.is-on {
  background: var(--g-blue); border-color: var(--g-blue);
  box-shadow: 0 2px 6px rgba(66, 133, 244, .24);
}
.bk-day.is-on .bk-day__dow,
.bk-day.is-on .bk-day__num,
.bk-day.is-on .bk-day__mon { color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .bk-day:hover { border-color: #D6E3FA; }
  .bk-day.is-on:hover { border-color: var(--g-blue); }
}
.bk-otherday { margin-bottom: var(--s5); max-width: 260px; }
.bk-otherday .field__label { display: block; margin-bottom: 5px; }

/* ---------- The slots ---------- */
.bk-part { margin-bottom: var(--s4); }
.bk-part__label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--s2);
}
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s2); }
.bk-slot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 9px 12px; min-height: 48px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  cursor: pointer; font: inherit; text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t);
}
.bk-slot__time { font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-slot__who { font-size: 11.5px; color: var(--ink-2); }
.bk-slot.is-on {
  background: var(--g-blue); border-color: var(--g-blue);
  box-shadow: 0 2px 6px rgba(66, 133, 244, .26);
}
.bk-slot.is-on .bk-slot__time, .bk-slot.is-on .bk-slot__who { color: #FFFFFF; }
.bk-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .bk-slot:hover { border-color: #D6E3FA; }
  .bk-slot.is-on:hover { border-color: var(--g-blue); }
}

/* ---------- The total ----------
   A receipt before the fact. The one thing this screen never said was what
   the customer was about to be charged and when. */
.bk-total {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: var(--s4);
  margin: var(--s5) 0;
}
.bk-total__head {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: var(--s3);
}
.bk-total__head svg { width: 14px; height: 14px; stroke: var(--g-green-ink); }
.bk-total__rows { margin: 0; }
.bk-total__rows > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  padding: 7px 0;
}
.bk-total__rows dt { font-size: 13.5px; color: var(--ink-2); }
.bk-total__rows dd { margin: 0; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-total__hint { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.bk-total__free { color: var(--g-green-ink); font-weight: 600; }
.bk-total__line {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.bk-total__line strong {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bk-total__note { margin: var(--s3) 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.bk-total__sim { color: var(--amber); }

/* A booking button is the end of a decision, so it gets the height of one. */
.btn--lg { min-height: 54px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .bk-cut__tick, .bk-mode__tick, .bk-barber__tick { transition: opacity var(--t-fast); transform: none; }
  .bk-cut.is-on .bk-cut__tick,
  .bk-mode.is-on .bk-mode__tick,
  .bk-barber:has(input:checked) .bk-barber__tick { transform: none; }
  .bk-cut:hover { transform: none; }
}

/* ======================================================================
   Moving between screens

   The document never navigates - app.js swaps the contents of <main> - so
   the browser's own loading signals never fire. Nothing marked the gap
   between the tap and the new screen, which on a slow connection read as
   the tap not having registered. These two rules are that signal. They do
   not change how any screen looks once it has arrived.
   ====================================================================== */

/* The line across the top. It grows quickly to about two thirds and then
   crawls, because the real length of the wait is not known - then snaps to
   full and fades when the page lands. */
.navbar-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 100%;
  height: 2.5px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-face), var(--accent-deep));
  pointer-events: none;
  will-change: transform;
}
.navbar-progress.is-running { animation: navbar-progress 8s cubic-bezier(.12, .78, .28, 1) forwards; }
.navbar-progress.is-done    { transform: scaleX(1); opacity: 0; transition: transform .16s ease-out, opacity .22s ease-in .08s; }

@keyframes navbar-progress {
  0%   { transform: scaleX(0);    }
  28%  { transform: scaleX(0.42); }
  70%  { transform: scaleX(0.72); }
  100% { transform: scaleX(0.94); }
}

/* While a screen is on its way, the one being left goes quiet: slightly faded,
   and not clickable, so a second tap cannot queue a second navigation. The
   delay means a fast reply never dims at all. */
.is-navigating main.shell {
  opacity: .62;
  transition: opacity .18s ease-out .12s;
}
.is-navigating main.shell a,
.is-navigating main.shell button { pointer-events: none; }

/* The cross-fade between the old content and the new, where the browser
   supports it. Short on purpose: this is meant to cover a repaint, not to be
   noticed as an effect. */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .18s; }

@media (prefers-reduced-motion: reduce) {
  .navbar-progress { animation: none; transform: scaleX(0.35); }
  .navbar-progress.is-done { transition: opacity .12s linear; }
  .is-navigating main.shell { transition: none; opacity: .72; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ----- "How far are you from the shop?", before joining the queue ---------- */
.ready__cut { margin-bottom: var(--s3); }
.ready__choices {
  display: grid;
  gap: var(--s2);
  margin: var(--s4) 0 var(--s3);
}
/* Each answer is a full-width target: this is read standing up, often one
   handed, and often on the way out of the door. */
.ready__choice { width: 100%; justify-content: center; }
.ready__note { margin-top: var(--s3); }

/* ----- "held while you travel": the queue's own answer, beside the journey -- */
.held { display: grid; gap: var(--s2); margin-top: var(--s3); }
.held__row { display: flex; gap: var(--s2); align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.held__icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; color: var(--ink-3); }
.held__icon svg { width: 16px; height: 16px; }
.held__row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.held__note { margin: 0; }

/* ======================================================================
   ARRIVAL ON THE HOME SCREEN

   Content rises into place as it is scrolled to. Home only: motion under a
   queue board competes with the one number somebody is standing there
   reading.

   A drifting colour was tried behind this and taken out again. It needed a
   page with room to show it, and this one is cards nearly edge to edge - the
   colour only reached the margins, and the greeting card's own photograph
   was already a second background 200px away. The fix was never more colour;
   it was fewer boxes, which is a larger change than a palette.
   ====================================================================== */

/* Arrival. Opacity and transform only: both are composited, so the browser
   never lays the page out again while it is being scrolled. Anything
   animating width, height, top or margin would do the opposite, and that is
   the usual reason a page with "animations" stutters. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .55s cubic-bezier(.22, .68, .3, 1),
              transform .55s cubic-bezier(.22, .68, .3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
/* Released once it has arrived: left on, every card holds a compositor layer
   for motion that is finished. */
[data-reveal].is-done { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ======================================================================
   OPENED UP

   Surfaces float on every screen; the drifting colour and the unboxed
   greeting are Home only.

   The colour comes back - four soft blooms drifting behind the page. It was
   tried once and removed because it had nowhere to show: the greeting sat in
   a white card with a photograph in it, and the cards below reached nearly
   edge to edge, so the colour only ever reached the margins. Taking the
   greeting out of its box is what gives it somewhere to be.

   The greeting leaves the band. Same markup - the band is restyled rather
   than rewritten, so every other screen that uses it is untouched - but on
   Home it loses its card, its photograph and its corner shapes, and the
   words are centred on the page.

   And nothing is a visible rectangle any more. The hairline border goes, the
   white goes slightly translucent, and the shadow widens and softens, so a
   card reads as something resting above the page rather than a box drawn on
   it.
   ====================================================================== */

/* Every screen, not only Home. A background that appears on one tab and
   vanishes on the next reads as two different applications. */
.sb-bloom {
  position: fixed; inset: -12%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 52% at 88% 18%, rgba(21, 112, 241, .34) 0%, rgba(21, 112, 241, 0) 62%),
    radial-gradient(34% 44% at 96% 52%, rgba(255, 128, 64, .26) 0%, rgba(255, 128, 64, 0) 64%),
    radial-gradient(38% 46% at 74% 88%, rgba(109, 158, 245, .24) 0%, rgba(109, 158, 245, 0) 66%),
    radial-gradient(30% 38% at 12% 10%, rgba(167, 199, 255, .28) 0%, rgba(167, 199, 255, 0) 68%);
  animation: sb-bloom-drift 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes sb-bloom-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(-2.5%, 1.8%, 0); }
}

/* ---------- Nothing in a drawn box ---------- */
/* Every screen, not just Home. A surface that floats on one tab and is
   outlined on the next reads as two different applications, and the tab bar
   is the one place a customer moves between them constantly. */
.card, .feature, .promo, .working, .fact, .pick, .promise, .statcard,
.again, .booking, .svc-list, .shopnow, .eta, .alarm,
.svc-card, .capbar, .queue-item {
  border-color: transparent;
  background: rgba(255, 255, 255, .72);
  /* Two shadows: a tight one for the edge the border used to draw, and a
     wide soft one for the lift. The second is what reads as floating. */
  box-shadow: 0 1px 2px rgba(23, 27, 43, .04), 0 12px 34px rgba(23, 27, 43, .07);
}

/* The quiet button keeps its shape without a drawn edge: on a page where
   nothing else is outlined, a hairline round one control is the thing the
   eye goes to first, and it is not the thing worth looking at. */
.btn:not(.btn--primary):not(.btn--grad) {
  border-color: transparent;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 2px rgba(23, 27, 43, .05), 0 6px 18px rgba(23, 27, 43, .06);
}
.btn:not(.btn--primary):not(.btn--grad):hover {
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(23, 27, 43, .06), 0 10px 24px rgba(23, 27, 43, .09);
}

/* ---------- The greeting, out of its band ---------- */
.page-home .hero-band {
  background: none;
  border: none;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}
/* The photograph and the corner shapes belonged to the card. Without the
   card they are two decorations competing with the colour behind. */
.page-home .hero-band__media,
.page-home .hero-band__arc,
.page-home .hero-band__tri { display: none; }

.page-home .hero-band__body {
  padding: var(--s6) 0 0;
  /* The band's body is a flex column, so each child is only as wide as its
     own text. text-align centres the words inside that box; it does not move
     the box, which is why a centred heading still sat hard against the left.
     align-items is what centres the boxes. */
  align-items: center;
}
.page-home .hero-band__sub { margin-left: auto; margin-right: auto; }
.page-home .hero-band__actions { justify-content: center; }

@media (min-width: 1000px) {
  .page-home .hero-band__body { padding: 44px 0 0; }
  .page-home .hero-band__title { font-size: 52px; letter-spacing: -0.04em; }
  .page-home .hero-band__sub { font-size: 16px; }
}

/* The blooms are four large gradients and the bar is frosted: comfortable on
   a laptop, not on a cheap phone - which is also where the live countdown
   runs. Below the bar's own breakpoint the plain page comes back. */
@media (max-width: 999px) {
  .sb-bloom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-bloom { animation: none; }
}

/* ---------- The rest of the tabs ----------
   The surfaces above cover Home and Services. Book, Activity and Account
   build their panels from their own classes, so they are named here too.

   Two kinds, and the difference matters. A panel is only a container and
   loses its outline outright. A CHOICE - a service, a barber, walk-in versus
   booked - uses its border to say which one is picked, so only the resting
   state goes soft and the chosen one keeps its ring. Take that away and the
   booking screen stops telling you what you have selected. */

.way, .svc-row, .quad__item, .bk-head, .bk-total {
  border-color: transparent;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(23, 27, 43, .04), 0 12px 34px rgba(23, 27, 43, .07);
}

.bk-cut:not(.is-on),
.bk-mode:not(.is-on),
.bk-barber:not(:has(input:checked)) {
  border-color: transparent;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(23, 27, 43, .04), 0 8px 22px rgba(23, 27, 43, .06);
}
/* The hairline under the total is a rule between two numbers, not the edge of
   a box: without it the total runs into the list above it. It stays. */
