/* Modern: white pages, one colour. Pages are pure white; pale panels of
   the one colour (--brand mixed with a lot of white) frame the drawings and
   set off a section. Cards are white with a light grey hairline and round
   corners; buttons are pills, solid in the colour or white with a grey
   outline. Headings are near-black, words a soft grey. Every shade of the
   colour is mixed from --brand, so changing that one line re-colours the
   site. Always light, also when the phone is set to dark. Google's button
   keeps Google's colours; owners' photos are shown as they are. */
:root {
  /* Chart colours, checked for colour blindness against the white page:
     the brand blue and orange for people who passed and looked, violet
     and magenta for women and men. Plays use shades of --brand. */
  --chart-a: var(--brand);
  --chart-b: #eb6834;
  --chart-women: #6250d6;
  --chart-men: #e87ba4;
  /* Age bands, told apart pairwise as crossing lines need. */
  --chart-age-1: #199e70;
  --chart-age-2: #c98500;
  --chart-age-3: #e34948;
  --brand: #0b57d0;

  --brand-deep: color-mix(in srgb, var(--brand) 62%, black);
  --brand-ink: color-mix(in srgb, var(--brand) 78%, black);
  --brand-hover: color-mix(in srgb, var(--brand) 85%, black);
  --brand-mid: color-mix(in srgb, var(--brand) 45%, white);
  --brand-soft: color-mix(in srgb, var(--brand) 18%, white);
  --brand-tint: color-mix(in srgb, var(--brand) 9%, white);
  --brand-wash: color-mix(in srgb, var(--brand) 5%, white);
  --paper: #ffffff;
  --ink: #1f1f1f;
  --body: #444746;
  --muted: #5e6166;
  --heading: var(--ink);
  --line: #dadce0;
  --line-soft: #eceef1;
  --outline: #8e918f;
  --field: #747775;
  --on-brand: #ffffff;
  --screen: #111318;
  --radius: 20px;
  --radius-panel: 32px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--body);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
main { flex: 1; width: 100%; max-width: 36rem; margin: 0 auto; padding: 12px 16px 56px; }
h1, h2, h3 { color: var(--heading); font-weight: 650; }
h1 { font-size: 1.8rem; line-height: 1.18; letter-spacing: -0.022em; margin: 1rem 0 1.25rem; }
h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.015em; margin: 2.75rem 0 1rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }
small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Top bar and site footer: white, with a light hairline. */
.bar { border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 36rem;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
/* A small screen: a frame in the colour with a solid foot. */
.mark {
  width: 22px;
  height: 17px;
  border-radius: 5px;
  border: 2.5px solid var(--brand);
  border-bottom-width: 5px;
  background: var(--paper);
}
/* The home icon, left of the profile icon: one white circle with a grey
   outline, one solid circle in the colour, like the two kinds of button. */
.bar-end { display: flex; align-items: center; gap: 10px; }
.home, .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}
.home { border: 1px solid var(--outline); background: var(--paper); color: var(--brand); }
.avatar { background: var(--brand); color: var(--on-brand); }
.home:active { transform: translateY(1px); }
/* The profile icon at the top right: the first letter of the owner's
   address. Its menu opens and closes without scripts (details and
   summary). */
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; border-radius: 999px; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
.account-menu[open] .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--brand-soft); }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  min-width: 15rem;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px -16px rgb(0 0 0 / 22%);
}
.menu form { margin: 0; }
.menu a, .menu button.link {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.menu a:hover, .menu button.link:hover, .menu a:focus-visible, .menu button.link:focus-visible { background: var(--brand-tint); color: var(--brand-ink); }

footer.site {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  padding: 26px 16px 34px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site a { color: var(--muted); }

/* Blocks: white, a light grey hairline, round corners, no shadow. */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}
.card > :last-child { margin-bottom: 0; }
/* Messages: a pale strip of the colour with words in the colour. */
.notice {
  background: var(--brand-tint);
  padding: 14px 20px;
  border-radius: 20px;
  color: var(--brand-ink);
  font-weight: 500;
}
.paused { background: var(--brand-tint); border-color: transparent; }
.aside { color: var(--muted); font-size: 0.95rem; }
.back { margin-top: 1rem; text-align: center; }

/* Buttons: pills, solid in the colour with white words, or white with a
   grey outline and words in the colour. */
.button, button {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:active, button:active { transform: translateY(1px); }
.button.secondary, button.secondary { background: var(--paper); border-color: var(--outline); color: var(--brand); }
/* Google's sign-in button: its colours and logo, our size, a pill. */
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #747775;
  border-radius: 999px;
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 500;
  text-decoration: none;
}
.google-button svg { flex: none; }
.google-button:hover { background: #f2f2f2; }
.google-button:active { transform: translateY(1px); }
button.link {
  width: auto;
  min-height: 0;
  border: 0;
  background: none;
  color: var(--brand);
  padding: 8px 0;
  text-align: left;
  font-weight: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Screen preview: the screen is dark around a picture, as it is in the
   shop. */
.screen { display: block; width: 100%; height: auto; border-radius: 12px; }
.screen rect { fill: var(--screen); }
.screen-frame { position: relative; }
.screen-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }

/* Picture list */
.pictures { list-style: none; margin: 0; padding: 0; }
.pictures > .card { padding: 12px 12px 14px; }
.pictures.removed .screen, .pictures.removed video { opacity: 0.55; }
.who { font-weight: 600; margin: 14px 4px; }
.actions { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.actions form { margin: 0; display: flex; }
.actions .button, .actions button { height: 100%; display: flex; align-items: center; justify-content: center; padding: 10px 14px; }

/* Forms */
fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
legend { font-weight: 650; font-size: 1.05rem; color: var(--heading); padding: 0; margin-bottom: 12px; }
legend small { display: inline; font-weight: normal; font-size: 0.9rem; }
fieldset > small { margin: -4px 0 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
/* Chosen: a border in the colour and a pale fill of it. */
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-wash); }
/* Radios drawn here: a grey ring, filled with the colour when chosen. */
.choice input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 3px 0 0;
  border: 2px solid var(--field);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.choice input:checked { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--paper); }
.choice input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* High-contrast (forced colours) mode drops the drawn ring's fill, so the
   browser draws the radios again and a chosen one still shows. */
@media (forced-colors: active) {
  .choice input { appearance: auto; -webkit-appearance: radio; border: 0; background: none; box-shadow: none; }
}
input[type="file"] { width: 100%; padding: 10px 0; font: inherit; color: var(--body); }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
/* A text box: a grey outline, round corners; while it is typed in the
   outline turns to the colour. */
input[type="tel"], .phone select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--field);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
}
input[type="tel"]::placeholder { color: var(--muted); opacity: 0.85; font-weight: 400; }
input[type="tel"]:focus, .phone select:focus { outline: none; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
/* High-contrast mode drops the shadow and forces one border colour, so the
   outline comes back there to show which box has focus. */
@media (forced-colors: active) {
  input[type="tel"]:focus, .phone select:focus { outline: 3px solid CanvasText; outline-offset: 2px; }
}
/* As Google shows it: a narrow box with the flag and code on the left, the
   number on the right. The arrow is drawn here; the page loads no images
   it does not serve. */
.phone { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; }
.phone input { min-width: 0; }
.phone .code { position: relative; display: block; }
.phone select {
  appearance: none;
  -webkit-appearance: none;
  height: 100%;
  padding-right: 34px;
  cursor: pointer;
  white-space: nowrap;
}
.phone .code::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.phone select option { background: var(--paper); color: var(--ink); font-weight: 400; }
fieldset > input + small, .phone + small { margin: 10px 0 0; }

/* A page's title, with the back arrow before it on pages under the home
   page: a white circle with a grey outline and an arrow in the colour. The
   arrow is drawn here, not an image. */
.page-head { display: flex; align-items: center; gap: 14px; margin: 1rem 0 1.25rem; }
.page-head h1 { margin: 0; }
.top-back {
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--paper);
}
.top-back::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: translate(-30%, -50%) rotate(45deg);
}
.top-back:active { transform: translateY(1px); }

/* Profile page */
.details { margin: 0; }
.details dt { color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.details dd { margin: 2px 0 14px; color: var(--ink); overflow-wrap: anywhere; }
.card h2.shop { margin: 0 0 4px; }
.owners { margin: 0; padding-left: 1.25rem; overflow-wrap: anywhere; }

/* Home page */
.summary { display: grid; gap: 4px; }
.status { font-weight: 600; color: var(--heading); margin: 0 0 4px; display: flex; align-items: flex-start; gap: 12px; }
.status::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 50%;
}
/* Working: a solid dot with a pale halo. Quiet: an empty grey ring. */
.status.working::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.status.quiet::before { background: transparent; border: 2px solid var(--muted); }
footer.account { margin-top: 2rem; padding-top: 8px; border-top: 1px solid var(--line); }
footer.account form { margin: 0; }

/* Small pale labels in the colour, like tags. */
.week-head, .steps li::before {
  justify-self: start;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Public pages */
/* The sign-in page: one card, its words centred. */
.signin { text-align: center; padding: 24px 20px; border-radius: 28px; }
.signin h1 { margin-top: 4px; }
/* The welcome page: a big centred headline, one line under it, the button
   under that, and the drawing below in a wide pale panel. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0 8px; }
.hero-text { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 18ch; margin: 0.5rem auto 1rem; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.lead { font-size: 1.12rem; color: var(--body); }
.hero .lead { max-width: 44rem; margin: 0 auto 1.5rem; }
.hero-text > p:last-child { width: 100%; margin-bottom: 0; }
/* Section titles on the welcome page: big and centred. */
main:has(> .hero) > h2 { margin: 4rem 0 1.75rem; font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; text-align: center; }
main:has(> .hero) > h2:last-of-type + p { text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; padding: 24px 20px; }
.steps li::before { content: "Step " counter(step); justify-self: center; margin-bottom: 4px; }
.steps strong { display: block; font-size: 1.1rem; color: var(--heading); font-weight: 650; letter-spacing: -0.01em; }
.steps span { color: var(--body); font-size: 0.95rem; }
/* "Private by design": a pale band of the colour across the whole page,
   behind the title, the promises and the link under them. */
main:has(> .hero) > .promises + p,
main:has(> .hero) > h2:has(+ .promises),
main:has(> .hero) > .promises {
  background: var(--brand-tint);
  box-shadow: 0 0 0 100vmax var(--brand-tint);
  clip-path: inset(0 -100vmax);
}
main:has(> .hero) > h2:has(+ .promises) { margin: 4rem 0 0; padding: 3.5rem 0 1.75rem; }
main:has(> .hero) > .promises { margin: 0; padding-bottom: 1.25rem; }
main:has(> .hero) > .promises + p { margin: 0; padding: 0.5rem 0 3.5rem; text-align: center; }
.promises { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 12px; }
.promises li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.policy ul { padding-left: 1.2rem; }
.policy li { margin-bottom: 6px; }
.policy li::marker { color: var(--brand); }

/* Drawings: inline SVG, coloured here by class, in the one colour like a
   print in one ink: solid shapes, outlines, and one or two lighter screens
   of it, on white or on a pale panel. */
.art { display: block; width: 100%; height: auto; }
.art-step { width: 64px; height: 64px; margin-bottom: 8px; color: var(--brand); }
/* The promises' drawings sit on a pale disc of the colour. */
.art-promise { flex: none; width: 56px; height: 56px; padding: 7px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.icon { flex: none; width: 28px; height: 28px; }
.ic-line, .ic-dash, .ic-strike, .ic-strike-gap, .ic-on-accent { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-line { stroke: currentColor; }
.ic-dash { stroke: var(--brand); stroke-dasharray: 3 4; }
.ic-strike { stroke: var(--brand); stroke-width: 3.5; }
/* A gap of the background around the strike, so it reads over the lines. */
.ic-strike-gap { stroke: var(--brand-tint); stroke-width: 8; }
.ic-on-accent { stroke: var(--on-brand); }
.ic-fill { fill: var(--brand-mid); }
.ic-soft { fill: var(--brand-soft); }
.ic-accent { fill: var(--brand); }
.ic-text { fill: currentColor; font: 700 13px system-ui, sans-serif; }
/* The big drawing sits in a pale rounded panel. */
.art-hero { padding: 16px; border-radius: 24px; background: var(--brand-tint); }
.hero .art-hero { margin: 2.25rem 0 0; }
/* The welcome page plays a short video of the same shop window. Its poster,
   a still of the video, shows when a phone will not play it by itself (an
   iPhone in Low Power Mode). The drawing shows instead when the phone asks
   for reduced motion. */
.hero-video { display: block; width: 100%; max-width: 56rem; aspect-ratio: 16 / 9; margin: 2.25rem auto 0; border: 1px solid var(--line-soft); border-radius: 24px; background: var(--brand-tint); object-fit: cover; }
.hero:has(.hero-video) .art-hero { display: none; }
.art-sky { fill: none; }
.art-sun { fill: var(--paper); stroke: var(--brand); stroke-width: 2; }
.art-sun-ring { fill: none; stroke: var(--brand-mid); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.art-cloud { fill: var(--paper); }
.art-wall { fill: var(--paper); stroke: var(--brand); stroke-width: 2; }
.art-sign { fill: var(--brand); }
.art-sign-line { fill: var(--on-brand); }
.art-awning rect { fill: var(--brand); }
.art-awning-stripes rect { fill: var(--on-brand); }
.art-window { fill: var(--brand-wash); stroke: var(--brand-soft); stroke-width: 2; }
.art-frame { fill: var(--brand-deep); }
.art-screen { fill: var(--paper); }
/* The three pictures on the drawn screen: each a different shape, on white
   or on the colour, so only the one on top shows. */
.art-pic-bg { fill: var(--paper); }
.art-pic-shape { fill: var(--brand); }
.art-pic-shape-2 { fill: var(--brand); }
.art-pic-hand { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.art-pic-b .art-pic-bg { fill: var(--brand); }
.art-pic-b .art-pic-shape { fill: var(--paper); }
.art-cam { fill: var(--on-brand); }
.art-door { fill: var(--paper); stroke: var(--brand); stroke-width: 2; }
.art-door-glass { fill: var(--brand-wash); stroke: var(--brand-soft); stroke-width: 2; }
.art-knob { fill: var(--brand); }
.art-pot { fill: var(--brand); }
.art-leaf { fill: var(--brand-mid); }
.art-ground { fill: none; }
.art-kerb { fill: var(--brand); }
.art-person { fill: var(--brand-mid); }
.art-p1 { fill: var(--brand-deep); }
.art-look { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 4 5; stroke-linecap: round; }
.art-look-halo { stroke: var(--paper); stroke-width: 6; }
/* The screen changes its picture as the viewer looks, and the others walk. */
.art-pic { opacity: 0; animation: art-swap 9s infinite; }
.art-pic-a { animation-delay: 0s; }
.art-pic-b { animation-delay: 3s; }
.art-pic-c { animation-delay: 6s; }
@keyframes art-swap { 0%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
.art-look { animation: art-look 3s infinite; }
@keyframes art-look { 0%, 15% { opacity: 0; } 30%, 80% { opacity: 1; } 100% { opacity: 0; } }
.art-walk { animation: art-walk 6s ease-in-out infinite alternate; }
.art-walk-2 { animation-duration: 8s; }
@keyframes art-walk { from { transform: translateX(0); } to { transform: translateX(-26px); } }
.art-drift { animation: art-drift 14s ease-in-out infinite alternate; }
@keyframes art-drift { from { transform: translateX(0); } to { transform: translateX(18px); } }
@media (prefers-reduced-motion: reduce) {
  .art-pic, .art-look, .art-walk, .art-drift { animation: none; }
  .art-pic-a { opacity: 1; }
  .hero .hero-video { display: none; }
  .hero:has(.hero-video) .art-hero { display: block; }
}
.signin-art .art-hero { max-width: 20rem; margin: 0 auto 16px; padding: 12px; border-radius: 20px; }

/* Home: the screen's state, the week in two big numbers, who sees a
   picture. */
.week { display: grid; gap: 10px; margin: 14px 0 0; }
.week-head { margin: 0 0 2px; }
.stat { display: flex; align-items: center; gap: 16px; margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--brand-tint); color: var(--body); line-height: 1.35; }
.stat .icon { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--paper); color: var(--brand); }
.stat strong { display: block; font-size: 1.9rem; font-weight: 550; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; color: var(--heading); }
.who .icon { width: 26px; height: 26px; color: var(--brand); }
.button.add { display: flex; align-items: center; justify-content: center; gap: 8px; }
.button.add .icon { width: 22px; height: 22px; }
.button.add .ic-line { stroke: var(--on-brand); }

/* Who should see it: tiles with a drawing and a radio in the corner, ages
   as pills. */
.who-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who-choices legend { grid-column: 1 / -1; }
.choice.tile { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 16px 18px 18px; position: relative; }
.choice.tile.everyone { grid-column: 1 / -1; }
.choice.tile .icon { width: 36px; height: 36px; color: var(--brand); }
.choice.tile > span { font-weight: 600; color: var(--heading); }
.choice.tile small { font-weight: normal; margin-top: 2px; }
.choice.tile input { position: absolute; right: 14px; top: 14px; margin: 0; }
.age-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.age-choices legend { width: 100%; }
.choice.chip { margin: 0; padding: 10px 18px 10px 14px; border-radius: 999px; align-items: center; }
.choice.chip input { margin: 0; }

/* Charts on the admin pages (charts.go). A plot's SVG stretches to its
   box, so strokes do not scale and the labels are HTML beside it. */
/* Periods, as on a metrics dashboard: presets as a row of small pills,
   the chosen one solid, and From and To by the hour. The page's row is
   always shown; a chart's opens under its title. Rows wrap, so every
   choice shows on a phone. */
.page-period { margin: 0 0 16px; }
.period-now { margin: 10px 0 8px; color: var(--muted); font-size: 0.9rem; }
.ranges { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0 0 8px; }
.ranges a, .ranges span {
  flex: none;
  min-width: 2.6rem;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.ranges span[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ranges .disabled { color: var(--outline); border-style: dashed; cursor: not-allowed; }
.choice-label { margin: 10px 0 4px; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.choice-label:first-child { margin-top: 0; }
/* The lines a chart shows: ticks in groups, each with its line's swatch. */
.lines-picker { margin: 0 0 10px; }
.lines-picker > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.lines-picker > summary::-webkit-details-marker { display: none; }
.lines-picker > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lines-picker[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.lines-form { margin: 10px 0 0; padding: 12px; border-radius: 16px; background: var(--brand-wash); border: 1px solid var(--line-soft); }
.lines-form fieldset { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.lines-form legend { width: 100%; margin: 0 0 4px; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tick { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; cursor: pointer; }
.tick input { margin: 0; accent-color: var(--brand); }
.tick span { display: inline-flex; align-items: center; gap: 6px; }
.tick span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--swatch); }
.lines-form .aside { margin: 0 0 8px; font-size: 0.8rem; }
.lines-form button { width: auto; min-width: 0; min-height: 0; padding: 7px 16px; font-size: 0.9rem; }
/* Selecting part of a chart: each point is a link, shaded under the
   pointer, and a selection's start stays shaded. */
.plot a { cursor: pointer; }
.hit.picked { fill: var(--brand); fill-opacity: 0.16; }
.chart-hint { margin: 8px 0 0; color: var(--muted); font-size: 0.8rem; }
.selecting { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-ink); font-size: 0.85rem; }
.custom-range > summary, .picker > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
}
.custom-range > summary::-webkit-details-marker, .picker > summary::-webkit-details-marker { display: none; }
.custom-range > summary::after, .picker > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.custom-range[open] > summary::after, .picker[open] > summary::after { transform: translateY(1px) rotate(225deg); }
/* A long custom period ("From Wed 25 Nov 2026, 10:00 to …") wraps inside
   the chart rather than pushing a phone sideways. */
.picker > summary {
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--body);
  overflow-wrap: anywhere;
}
.picker-body { margin: 10px 0 4px; padding: 12px; border-radius: 16px; background: var(--brand-wash); border: 1px solid var(--line-soft); }
.range-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin: 8px 0 0; }
.range-form label { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.range-form small { font-size: 0.75rem; font-weight: 400; }
.range-form input {
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.range-form input:focus { outline: none; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.range-form button { width: auto; min-width: 0; min-height: 0; margin-top: 1.2rem; padding: 7px 16px; font-size: 0.9rem; }
.chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; }
.chart-head h3 { margin: 0; font-size: 1rem; }
.chart-head .picker { min-width: 0; max-width: 100%; }
.chart-head .picker[open] { flex-basis: 100%; }
.chart-head .picker[open] > summary { float: right; }
.chart-head .picker[open] .picker-body { clear: both; }
.tiles {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 8px;
}
.tiles > .card { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--brand-wash); border-color: var(--line-soft); }
.tiles strong { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tiles span { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.3; }
.charts { display: grid; gap: 16px; margin: 0 0 16px; align-items: start; }
.charts > .card { margin: 0; min-width: 0; }
.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 10px;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--swatch); }
.legend strong { color: var(--ink); font-variant-numeric: tabular-nums; }
/* Who passed, split: an age band is a colour, women's lines are solid and
   men's dashed, and people not told apart are a grey dotted line. */
.age-1 { --swatch: var(--chart-age-1); }
.age-2 { --swatch: var(--chart-age-2); }
.age-3 { --swatch: var(--chart-age-3); }
.unknown { --swatch: var(--outline); }
/* Alone an age band is solid; for women long dashes, for men short ones. */
.line.dash-long { stroke-dasharray: 9 4; }
.line.dash-short { stroke-dasharray: 3 3; }
.line.dotted { stroke-dasharray: 1 4; }
/* Their swatches are short stripes drawn the same way, as a border cannot
   choose its dashes' length. */
.legend li:is(.dash-long, .dash-short, .dotted)::before, .tick:is(.dash-long, .dash-short, .dotted) span::before {
  width: 20px;
  height: 3px;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--swatch) 0 var(--dash), transparent var(--dash) var(--period));
}
:is(.legend li, .tick).dash-long { --dash: 8px; --period: 11px; }
:is(.legend li, .tick).dash-short { --dash: 3px; --period: 6px; }
:is(.legend li, .tick).dotted { --dash: 2px; --period: 5px; }
/* Who looked is drawn paler, in the colour of the same people passing. */
.line.looked, .dot.looked { stroke-opacity: 0.45; }
:is(.legend li, .tick).looked::before, .tick.looked span::before { opacity: 0.45; }
.lines-form .counts .tick { --swatch: var(--body); }
.series-a { --swatch: var(--chart-a); }
.series-b { --swatch: var(--chart-b); }
.women { --swatch: var(--chart-women); }
.men { --swatch: var(--chart-men); }
.plays { --swatch: var(--brand-soft); }
.in-view { --swatch: var(--brand-mid); }
.engaged { --swatch: var(--brand-deep); }
.plot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 9rem auto;
  column-gap: 8px;
  /* Room for the last day's label, centred on a narrow slot. */
  margin-right: 12px;
}
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot .y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plot .y span { line-height: 0; }
.plot .x {
  grid-column: 2;
  display: flex;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
/* A label is centred under its point, and may be wider than it. The first
   and last are held inside the plot, so a long one ("Thu 11:00") never
   pushes a phone sideways: a flex item that does not fit spills towards
   its start when aligned to the end. */
.plot .x span { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; white-space: nowrap; }
.plot .x span:first-child { justify-content: flex-start; }
.plot .x span:last-child { justify-content: flex-end; }
.grid { stroke: var(--line); stroke-width: 1px; }
.baseline { stroke: var(--muted); stroke-width: 1px; }
.line { fill: none; stroke: var(--swatch); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.dot { stroke: var(--swatch); stroke-width: 7px; stroke-linecap: round; }
.plot rect:not(.hit), .hbar rect { fill: var(--swatch); }
.hit { fill: transparent; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
}
.bars .label { overflow-wrap: anywhere; }
.bars .label small { overflow-wrap: anywhere; }
.bars .value { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.bars .hbar { grid-column: 1 / -1; grid-row: 2; }
.bars + .aside { margin: 12px 0 0; }
/* A horizontal chart bar. Not .bar, which is the page's top bar. */
.hbar {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--line) 60%, transparent);
}
/* A table wider than a phone's card scrolls inside it, not the page. */
.chart-table { margin-top: 10px; font-size: 0.9rem; }
/* About 20 rows (a row is a line of 0.9rem text and 9px of padding and
   border), then the table scrolls inside its box, either way, with its
   header row kept at the top. */
.table-scroll {
  --row: calc(0.9rem * 1.6 + 9px);
  max-width: 100%;
  max-height: calc(21 * var(--row));
  margin-top: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--line-soft);
}
.table-scroll:focus-visible { outline-offset: 2px; }
.chart-table summary { color: var(--brand); cursor: pointer; }
.chart-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); text-align: right; overflow-wrap: anywhere; }
.chart-table th:first-child { text-align: left; font-weight: normal; }
/* A sticky cell loses its collapsed border, so the header's line is a shadow. */
.chart-table thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 0; box-shadow: inset 0 -1px var(--line); color: var(--muted); font-weight: 600; }
/* A picture's numbers on a store's page: a small picture beside its bar. */
.picture-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 12px; }
.picture-row .who { margin: 0 0 6px; }
.counts { margin: 8px 0 4px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.counts strong { font-size: 1.05rem; }
.picture-numbers .aside { margin: 0; font-size: 0.8rem; overflow-wrap: anywhere; }
.spark { display: block; width: 100%; height: 40px; margin-top: 8px; overflow: visible; }
@media (forced-colors: active) {
  .series-a, .engaged { --swatch: CanvasText; }
  .series-b, .women, .in-view { --swatch: Highlight; }
  .men, .plays { --swatch: GrayText; }
  .legend li::before { forced-color-adjust: none; }
  .line, .dot, .plot rect:not(.hit), .hbar rect { forced-color-adjust: none; }
  .hbar { border: 1px solid CanvasText; }
}

/* Tablets, laptops and computers. The rules above are the phone layout;
   these widen it from 48rem. Pages with lists of cards (pictures, shops,
   the welcome steps) go up to 72rem with the cards in columns: 2 on a
   tablet or small laptop, 3 on a wide screen. Form and reading pages keep
   the phone's 36rem column, centred. Wide pages start at the left edge of
   the top bar, under the brand. A page asks to be wide with the "wide"
   template (main.wide), so its width does not change with what it holds. */
@media (min-width: 48rem) {
  /* The add button fits its words, like the other buttons on their own,
     and stays under half the phone's column with wider fonts too. */
  .button.add { display: inline-flex; padding-inline: 18px; gap: 6px; }
  .button.add .icon { width: 20px; height: 20px; }
  .bar-in { max-width: 72rem; }
  main.wide { max-width: 72rem; }
  h1 { font-size: 2.1rem; }
  .lead { max-width: 40rem; }
  /* Boxes of details (a shop's address, its owners, a screen's state) keep
     the phone's width; only cards in a list spread across the page. */
  main.wide .card:not(.pictures > .card, .steps > .card, .charts > .card, .tiles > .card) { max-width: 36rem; }
  .pictures {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 16px;
    align-items: start;
  }
  .pictures:has(> li) { margin-bottom: 16px; }
  .pictures > .card { margin: 0; }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; }
  .steps > .card { margin: 0; padding: 28px 22px; }
  .hero { padding: 48px 0 0; }
  .hero h1 { font-size: 3.6rem; }
  .hero .lead { font-size: 1.25rem; }
  .hero .art-hero { height: 30rem; padding: 40px; border-radius: var(--radius-panel); }
  .hero .hero-video { margin-top: 3rem; border-radius: var(--radius-panel); }
  .hero .google-button { display: inline-flex; width: auto; min-width: 14rem; }
  main:has(> .hero) > h2 { font-size: 2.6rem; margin-top: 6rem; }
  main:has(> .hero) > h2:has(+ .promises) { margin-top: 6rem; padding-top: 5rem; }
  main:has(> .hero) > .promises + p { padding-bottom: 5rem; }
  .promises { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .promises li { flex-direction: column; align-items: center; text-align: center; padding: 32px 28px; border-radius: 28px; }
  .week { grid-template-columns: 1fr 1fr; }
  .week-head, .week small { grid-column: 1 / -1; }
  .stat { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px 20px; }
  .signin { margin-top: 6vh; padding: 36px; }
  .pictures.compact { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
  .picture-row { grid-template-columns: 9rem minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .charts { grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); }
  /* People over time takes the whole row, twice a chart's width. */
  .charts > #people { grid-column: 1 / -1; }
  /* A button on its own fits its words; in a card's row of buttons or a
     list of cards it still fills its place. */
  .button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 14rem;
  }
  .actions .button, .actions button, .pictures .button, .pictures button { width: 100%; min-width: 0; }
  button.link { min-width: 0; }
}

/* Hover only where there is a mouse or trackpad, so a tap on a phone never
   leaves a button looking pressed. */
@media (hover: hover) and (pointer: fine) {
  .plot a:hover .hit:not(.picked) { fill: var(--brand); fill-opacity: 0.08; }
  .button:hover, button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
  .button.secondary:hover, button.secondary:hover { background: var(--brand-wash); border-color: var(--outline); }
  button.link:hover { background: none; color: var(--brand-hover); }
  .choice:hover { border-color: var(--brand-mid); }
  .home:hover { background: var(--brand-wash); }
  .account-menu summary:hover .avatar { background: var(--brand-hover); }
  .top-back:hover { background: var(--brand-wash); }
  input[type="file"]::file-selector-button:hover { background: var(--brand-wash); }
}

/* Admin, all shops: one card per shop. The name and a status pill on top,
   the address on one line, then the counts as small tiles, number first.
   The whole card opens the shop. */
.shop-card { position: relative; display: grid; gap: 12px; }
.shop-card:hover { border-color: var(--brand-mid); }
/* The name and the pill wrap: a long name or a long status ("Last heard
   27 November, 15:04, paused") goes onto a second line, never out of the card. */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
.shop-card h2.shop { min-width: 0; margin: 0; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.shop-card h2.shop a { color: var(--ink); text-decoration: none; }
.shop-card h2.shop a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.shop-card h2.shop a:focus-visible { outline: none; }
.shop-card:has(h2.shop a:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.pill {
  flex: 0 1 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--line-soft);
  color: var(--body);
}
.pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.working { background: var(--brand-tint); color: var(--brand-ink); }
.pill.working::before { background: var(--brand); }
.shop-address {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); gap: 8px; margin: 0; }
.shop-stats div { display: flex; flex-direction: column-reverse; padding: 10px 12px; border-radius: 12px; background: var(--brand-wash); border: 1px solid var(--line-soft); }
.shop-stats dd { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-stats dt { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.shop-stats .waiting { background: var(--brand-tint); border-color: var(--brand-soft); }
.shop-stats .waiting dd { color: var(--brand-ink); }
