/* [[SIG | ID:online-web-styles | TYPE:module | DOMAIN:online | STATUS:ACTIVE]] */
/* Keystone Online's look: the locked gold-standard tokens the register uses (online/PLAN.md), drawn
   to the getkeystone.shop canvas (online/design/site/). Shared by every online page: the
   front door now, the seller, the storefront and checkout later. The font is vendored, as the
   register does it: no font is fetched from anywhere else. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/pjs-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/pjs-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/pjs-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/pjs-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/pjs-800.woff2") format("woff2"); }

:root {
  --ink: #0F1E21; --ground: #F4F7F7; --surface: #FFFFFF; --line: #DCE4E5; --line-soft: #EEF2F3;
  --muted: #4A5A5E; --faint: #6B7B7F; --on-dark-muted: #B9C7C9;
  --primary: #0E7490; --primary-hover: #0A5568; --primary-soft: #E6F4F7; --cyan: #22D3EE; --on-primary: #FFFFFF;
  /* WALK-067 M4: the keyboard focus ring. The cyan was about 1.7:1 on the light ground; this teal is
     about 5:1 on --ground and on white (WCAG 1.4.11 asks 3:1). Dark grounds keep the cyan (below). */
  --focus: #0E7490;
  --good: #2B6649; --good-bg: #E4F1EA; --amber: #94470A; --amber-bg: #FDEFDD; --indigo: #3D39B0; --indigo-bg: #ECEBFC;
  --stone: #E9EFF0;
  --radius-btn: 12px; --radius-card: 18px; --radius-band: 24px;
  --shadow: 0 20px 40px rgba(15, 30, 33, 0.08);
  --page: 1180px; --gutter: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 16px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.noscript { padding: 24px; font-size: 18px; }

/* ---- Buttons: real actions only, never a dead one ------------------------------------------- */
.btn {
  min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { color: var(--ink); border-color: var(--ink); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
/* WALK-050BQ F7: .btn:hover's ink text must not win on the ink button (blank on hover, and stuck
   blank after a tap on a phone). Hovered, it keeps its own colours and gains a soft ring. */
.btn-dark:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; box-shadow: 0 0 0 3px var(--primary-soft); }
.btn-quiet { background: transparent; }
.btn-big { min-height: 56px; padding: 0 30px; font-size: 18px; }
.btn-small { min-height: 44px; padding: 0 18px; }
.btn:disabled { opacity: .5; cursor: default; }

/* A room that is not open yet: a label, never a button. */
.soon { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--stone); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.not-wired { padding: 14px 16px; border-radius: var(--radius-btn); background: var(--amber-bg); color: var(--amber); font-weight: 600; max-width: 620px; }

/* ---- Fields ---------------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 700; }
.field input { min-height: 52px; padding: 0 14px; border-radius: var(--radius-btn); border: 1.5px solid var(--line);
  background: var(--surface); font: inherit; font-size: 17px; color: var(--ink); }
.field input:focus { outline: 3px solid var(--primary-soft); border-color: var(--ink); }
.field-error { color: #A1262B; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 14px; }

/* ---- Page frame: header, main, footer --------------------------------------------------------- */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(244, 247, 247, 0.94); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lockup-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--primary); min-height: 44px; margin-right: auto; }
/* ORDER 041, brand/MARK-STANDARD.md LOCKUP: the wordmark is KEYSTONE in capitals, Plus Jakarta Sans
   500, tracking +0.24em (decided 2026-10-10). Every lockup sets only --type, the
   wordmark's size; the mark follows from it, never the other way round:
     --frame = the mark file's box = type x 0.745 (cap height) x 1.45 / 0.7622 (the drawn hexagon's
               share of its file) = type x 1.4173;
     gap     = the stone's foot, 22 units of the frame, less the 6 the file is clear at its edge = 16%.
   The floor is 19px of type: the drawn mark 20.5px, over the standard's 20px beside type. The last
   letter's tracking is taken back (margin-right), so the word's box ends at its E. */
.lockup-link, .room-lockup, .day30-lockup, .admin-brand { --type: 20px; --frame: calc(var(--type) * 1.4173); gap: calc(var(--frame) * 0.16); }
.lockup-link .mark, .room-lockup img, .day30-lockup img, .admin-brand .mark { width: var(--frame); height: var(--frame); display: block; flex: 0 0 auto; }
.wordmark { font-weight: 500; font-size: var(--type, 20px); line-height: 1.2; letter-spacing: 0.24em; margin-right: -0.24em; text-transform: uppercase; white-space: nowrap; color: var(--primary); }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav-link { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
.nav-link:hover { color: var(--ink); background: var(--stone); }
.nav-link[aria-current="page"] { color: var(--primary); }
main { display: block; }
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between;
  align-items: center; color: var(--faint); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.footer-links a { color: var(--faint); min-height: 44px; display: inline-flex; align-items: center; }
.footer-soon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer-soon .soon { min-height: 22px; font-size: 12px; padding: 0 9px; align-self: center; }
/* On a phone the four sit two by two, so no one of them wraps onto a line alone. */
@media (max-width: 560px) {
  .footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 20px; }
}
.powered-by { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); text-decoration: none; font-size: 13px; min-height: 44px; }
.powered-by img { width: 14px; height: 14px; }

/* ---- Shared page pieces ----------------------------------------------------------------------- */
.section { padding-top: 104px; }
.section-head { font-size: 44px; line-height: 1.08; font-weight: 800; text-align: center; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); }
.kicker { font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.check svg { flex: 0 0 auto; margin-top: 3px; }

/* ---- Home ------------------------------------------------------------------------------------- */
.hero { padding-top: 72px; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 900px; font-size: 68px; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.hero .lede { margin: 22px auto 0; max-width: 640px; font-size: 21px; }
.door { margin: 32px auto 0; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.door-status { font-weight: 700; }
.door-note { color: var(--muted); }
.fork-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface);
  border: 2px solid var(--line); box-shadow: var(--shadow); }
.fork-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.fork-icon-dark { background: var(--stone); color: var(--ink); }
.fork-name { font-size: 30px; font-weight: 800; }
.fork-text { font-size: 17px; color: var(--muted); line-height: 1.5; }
.fork-both { margin-top: 18px; font-size: 18px; text-align: center; }
.fork-both span { color: var(--muted); }



.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-n { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; }
.step-n-last { background: var(--primary); }
.step h3 { font-size: 22px; font-weight: 800; }
.step p { color: var(--muted); }

.band { background: var(--ink); color: #FFFFFF; border-radius: var(--radius-band); padding: 56px 48px; }
.band h2 { max-width: 700px; font-size: 44px; line-height: 1.08; font-weight: 800; }
.band .lede { margin-top: 16px; max-width: 560px; color: var(--on-dark-muted); font-size: 19px; }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > div { flex: 1 1 380px; min-width: 0; }
.split h2 { font-size: 44px; line-height: 1.08; font-weight: 800; }
.split .lede { margin-top: 16px; font-size: 19px; }
.flag { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.flag:last-child { border-bottom: 0; }
.tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-indigo { background: var(--indigo-bg); color: var(--indigo); }
.tag-stone { background: var(--stone); color: var(--ink); }
.tag-good { background: var(--good-bg); color: var(--good); }

.kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.kind { min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; display: inline-flex; align-items: center; }

.closer { padding: 56px 40px; text-align: center; border-radius: var(--radius-band); }
.closer h2 { font-size: 48px; font-weight: 800; }
.closer .lede { margin: 14px auto 0; max-width: 520px; font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 30px; }

/* ---- How it works, Pricing --------------------------------------------------------------------- */
.page-head { padding-top: 72px; text-align: center; }
.page-head h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.page-head .lede { margin: 16px auto 0; max-width: 620px; }
.prelaunch { margin: 24px auto 0; max-width: 620px; padding: 12px 16px; border-radius: var(--radius-btn); background: var(--primary-soft); color: var(--ink); font-weight: 600; }
.rows { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }
.row { padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.row > div:first-child { flex: 1 1 380px; min-width: 0; }
.row h2 { font-size: 30px; line-height: 1.15; font-weight: 800; margin-top: 8px; }
.row p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.row .kicker { color: var(--primary); font-size: 13px; }
.row-lines { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.row-line:first-child { border-top: 0; }
.row-line span:first-child { color: var(--muted); }
.row-line span:last-child { font-weight: 700; text-align: right; }

.plan { max-width: 560px; margin: 48px auto 0; padding: 36px; box-shadow: var(--shadow); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.plan-price b { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-size: 18px; }
.plan-free { display: inline-flex; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-weight: 700; }
.plan-list { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { flex: 0 0 auto; margin-top: 3px; }
.plan-fees { margin-top: 24px; border-top: 1px solid var(--line); }
.fee { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.fee span:last-child { font-weight: 800; text-align: right; }
.fee-note { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 500; }
.plan .door { margin-top: 28px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { font-size: 36px; font-weight: 800; text-align: center; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 19px; font-weight: 800; }
.faq-item p { margin-top: 8px; color: var(--muted); }

/* ---- Start, the account pages ------------------------------------------------------------------ */
.start { max-width: 1100px; margin: 0 auto; padding: 48px var(--gutter); display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.start > div:first-child { flex: 1 1 380px; padding-top: 24px; min-width: 0; }
.start h1 { font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.start-checks { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.start-card { flex: 1 1 420px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px rgba(15, 30, 33, 0.08); }
.start-card h2 { font-size: 24px; font-weight: 800; }
.start-card p { color: var(--muted); }
.account { max-width: 680px; margin: 0 auto; padding: 72px var(--gutter) 0; display: flex; flex-direction: column; gap: 18px; }
.account h1 { font-size: 48px; line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
.account .lede { font-size: 19px; }
.account-who { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.account-who span { color: var(--muted); font-size: 14px; }
.account-who b { font-size: 18px; overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- The server's own small pages (online/server/plain-page.ts) ------------------------------- */
.plain-page { max-width: 640px; margin: 0 auto; padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.plain-page h1 { font-size: 36px; font-weight: 800; }
.plain-sentence { font-size: 19px; line-height: 1.5; }

/* ---- Phone width (390px): one column, smaller type, nothing wider than the screen -------------- */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 18px; }
  .section { padding-top: 72px; }
  .section-head, .split h2, .band h2 { font-size: 32px; }
  .closer h2 { font-size: 34px; }
  .page-head { padding-top: 40px; }
  .page-head h1, .start h1, .account h1 { font-size: 36px; }
  .band { padding: 36px 22px; }
  .closer { padding: 40px 20px; }
  .row { padding: 22px; gap: 20px; }
  .row h2 { font-size: 24px; }
  .plan { padding: 24px; }
  .plan-price b { font-size: 48px; }
  .start { padding-top: 24px; gap: 28px; }
  .start-card { padding: 22px; }
  .fork-card { padding: 22px; }
  .fork-name { font-size: 26px; }
  .nav-link { padding: 0 8px; }
  .site-header .btn { width: 100%; }
}

/* ---- Getting paid and the money view (ORDER 011 item 6; the Payments canvas) ------------------ */
.pay-eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); }
.pay-card h1 { font-size: 30px; line-height: 1.2; font-weight: 800; }
.pay-lede { color: var(--muted); line-height: 1.55; }
.pay-muted { color: var(--muted); }
.pay-note { color: var(--muted); font-size: 14px; }
.pay-asks { background: var(--ground); border-radius: var(--radius-btn); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pay-asks-title, .pay-costs-title { font-weight: 700; }
.pay-n { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.pay-known { background: var(--good-bg); border-radius: var(--radius-btn); padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; color: #1F4D37; }
.pay-known svg { flex: 0 0 auto; margin-top: 1px; }
.pay-costs { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.pay-cost { display: flex; justify-content: space-between; gap: 12px; }
.pay-cost span:first-child { color: var(--muted); }
.pay-set { font-weight: 600; text-align: right; }
.pay-free { color: var(--good); }
.pay-status { padding: 14px 16px; border-radius: var(--radius-btn); background: var(--amber-bg); color: var(--amber); display: flex; flex-direction: column; gap: 4px; }
.pay-status span { color: var(--ink); font-weight: 500; }
.pay-status-in-review { background: var(--indigo-bg); color: var(--indigo); }
.pay-go { width: 100%; margin-top: 4px; }
.pay-card > .btn:not(.pay-go) { width: 100%; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pay-small { font-size: 13px; color: var(--faint); text-align: center; line-height: 1.5; }

.money { max-width: 980px; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.money h1 { font-size: 40px; line-height: 1.1; font-weight: 800; }
.money-lede { color: var(--muted); font-size: 18px; }
.money-note-block { padding: 12px 16px; border-radius: var(--radius-btn); background: var(--primary-soft); }
.money-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.money-tile { padding: 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.money-tile-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.money-big { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.money-tile-sub { font-size: 14px; color: var(--muted); }
/* WALK-043B n2: a signed amount ("−$10.00") never breaks between its sign and its dollars. */
.money-amount { white-space: nowrap; }
.money-wait { font-size: 14px; color: var(--amber); }
.money-section { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.money-section h2 { font-size: 22px; font-weight: 800; }
.money-sales { display: flex; flex-direction: column; gap: 8px; }
.money-sale { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-btn); }
.money-sale summary { min-height: 56px; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.money-sale summary::-webkit-details-marker { display: none; }
.money-sale summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 4px; }
.money-sale[open] summary::after { transform: rotate(-135deg); }
.money-sale-what { display: flex; flex-direction: column; min-width: 0; }
.money-sale-what b { overflow-wrap: anywhere; }
.money-sale-what span { font-size: 14px; color: var(--muted); }
.money-sale-take { margin-left: auto; font-weight: 800; white-space: nowrap; }
.money-breakdown { padding: 4px 16px 16px; display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.money-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.money-line > span:first-child { color: var(--muted); display: flex; flex-direction: column; }
.money-line > span:last-child { font-weight: 700; text-align: right; white-space: nowrap; }
.money-line-strong > span:first-child { color: var(--ink); font-weight: 700; }
.money-note { font-size: 13px; color: var(--faint); }
.money-refund { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.money-payouts { padding: 4px 18px; }
.money-payouts .money-line:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .pay-card h1 { font-size: 26px; }
  .money h1 { font-size: 32px; }
  .money-big { font-size: 30px; }
}

/* ---- The seller's side (BUILD-SELLER, ORDER 011 item 4): setup, the room, the steps, Today ------
   Drawn to the mockup canvases Signup, Payments, Dashboard, Main and StorefrontPhone, on the same
   tokens as everything above. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.good { color: var(--good); }
textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: var(--radius-btn); border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
textarea:focus { outline: 3px solid var(--primary-soft); border-color: var(--ink); }
/* A link in a line of words, made a whole finger's width and height to tap (targets >= 44px). */
.tap { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.link-button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* One step on one card, as the Signup and Payments canvases draw it. */
/* The setup before the business exists: the quiet frame (the lockup home, Sign out), then the card. */
.setup-bar .lockup-link { margin-right: auto; }
.room > .setup-page { min-height: 0; flex: 1 0 auto; }
.setup-page { min-height: 100vh; padding: 24px var(--gutter); display: flex; justify-content: center; align-items: flex-start; }
.step-card { width: 100%; max-width: 620px; margin: 0 auto; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.step-where { font-size: 14px; font-weight: 700; color: var(--muted); }
.step-title { font-size: 30px; line-height: 1.2; font-weight: 800; }
.step-lede { color: var(--muted); line-height: 1.55; }
.step-small { font-size: 13px; color: var(--faint); text-align: center; }
.step-card > .btn { width: 100%; }
.fork-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.fork-choice { font: inherit; color: var(--ink); text-align: left; cursor: pointer; box-shadow: none; padding: 20px; }
.fork-choice:hover { border-color: var(--primary); }
.fork-choice .fork-name { font-size: 24px; }
.fork-choice .fork-text { font-size: 15px; }
.step-card .fork-both { margin-top: 0; }
.handle-box { display: flex; align-items: stretch; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); overflow: hidden; }
.handle-box:focus-within { outline: 3px solid var(--primary-soft); border-color: var(--ink); }
.handle-host { display: flex; align-items: center; padding: 0 2px 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.handle-box input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 14px 0 2px; font: inherit; font-size: 17px; color: var(--ink); background: transparent; outline: none; }
.handle-free { color: var(--good); font-weight: 600; }
.preset-list { display: flex; flex-direction: column; gap: 10px; }
.preset { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.preset-on { border: 2px solid var(--primary); background: #F0F8FA; }
.preset input, .fit-module input, .choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); flex: 0 0 auto; }
.preset-words { display: flex; flex-direction: column; gap: 4px; }
.preset-name { font-weight: 700; font-size: 17px; }
.preset-who { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }
.preset-gets { color: var(--good); font-size: 13px; font-weight: 600; }
.preset-price { color: var(--muted); font-size: 13px; }
.fit { display: flex; flex-direction: column; gap: 12px; }
.fit-module, .choice { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; }
.choice > span, .fit-module > span { display: flex; flex-direction: column; gap: 2px; }
/* ORDER 011 fix13/fix14: a preset's or module's part with nothing built behind it yet. A label on
   the stone tag, like every "Coming soon": never a button, never charged. */
.preset-soon { display: inline-block; width: fit-content; max-width: 100%; margin-top: 2px; padding: 3px 10px; border-radius: 10px;
  background: var(--stone); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
/* The refund's question (fix13 S7): does it go back on sale. Two radio choices, each a whole row to tap. */
.refund-stock { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-btn); display: flex; flex-direction: column; gap: 2px; }
.refund-stock legend { padding: 0 6px; font-weight: 700; }
.refund-stock .choice { align-items: center; min-height: 48px; padding: 6px 0; }
.refund-stock .choice input { margin: 0; }
/* Records short (fix13): the core's own words under the card, amber, as a fact. */
.shop-short { margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 600; line-height: 1.4; }
/* WALK-045F M6: a co-owner taken off a business is told so on the sign-up screen. */
.removed-note { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-btn); background: var(--amber-bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
.removed-note p { margin: 0; }
.removed-note p + p { margin-top: 6px; }
.module-note { padding: 10px 14px; border-radius: var(--radius-btn); background: var(--indigo-bg); color: var(--indigo); font-weight: 600; font-size: 14px; }

/* Adding a product. */
.add-product { display: flex; flex-direction: column; gap: 14px; }
.add-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.photo-pick { display: flex; align-items: center; justify-content: center; min-height: 140px; border: 1.5px dashed var(--line); border-radius: var(--radius-card);
  background: var(--stone); color: var(--muted); font-weight: 700; cursor: pointer; overflow: hidden; }
.photo-pick img { width: 100%; max-height: 240px; object-fit: contain; display: block; }
.photo-pick:focus-within { outline: 3px solid var(--focus); }
.barcode { display: flex; flex-direction: column; gap: 10px; }
.camera-scan { display: flex; flex-direction: column; gap: 8px; }
.camera-scan video { width: 100%; max-height: 260px; border-radius: var(--radius-btn); background: var(--ink); object-fit: cover; }
details.tool { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 16px; background: var(--surface); }
details.tool > summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
details.tool[open] { padding-bottom: 16px; }
.import { display: flex; flex-direction: column; gap: 10px; }
.import-pick { align-self: flex-start; white-space: normal; text-align: center; }
.import-pick:focus-within { outline: 3px solid var(--focus); }
.import-said { color: var(--good); font-weight: 600; }
.import-plan { display: flex; flex-direction: column; gap: 8px; }
.import-problems { margin: 0; padding-left: 20px; color: var(--amber); }
.import-ready { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }

/* The product card and the storefront, as a buyer sees them (Main and StorefrontPhone canvases). */
.reveal { border-radius: var(--radius-card); background: var(--ground); padding: 14px; }
.reveal-one { display: flex; justify-content: center; }
.reveal-one .shop-card { width: 100%; max-width: 280px; }
.reveal-head { font-size: 18px; font-weight: 800; margin-top: 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.shop-photo { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--stone); }
.shop-photo-none { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px; font-weight: 600; }
.shop-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.shop-name { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; letter-spacing: 0; }
.shop-kind { font-size: 14px; color: var(--muted); }
.shop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.shop-price { font-weight: 800; font-size: 20px; }
.pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--good-bg); color: var(--good); }
.pill-low { background: var(--amber-bg); color: var(--amber); }
.pill-out { background: var(--stone); color: var(--muted); }
.store-preview { display: flex; flex-direction: column; gap: 14px; }
.store-head { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.store-badge { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.store-empty { color: var(--muted); }
.store-foot { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 12px; }
/* ORDER 029: changing the store's address (Your storefront). */
.address-change { display: flex; flex-direction: column; gap: 10px; }
.address-change-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.store-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-link-box { flex: 1 1 220px; display: flex; min-width: 0; }
.store-link-box input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 14px; font: inherit; font-size: 15px;
  font-weight: 600; background: var(--ground); color: var(--ink); }
.store-link-said { flex-basis: 100%; color: var(--good); font-weight: 600; font-size: 14px; }
.store-link-said:empty { display: none; }
.checkout-options { display: flex; flex-direction: column; gap: 10px; }
.checkout-option { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; border-radius: var(--radius-btn); background: var(--surface); border: 1px solid var(--line); }
.still-to-do { padding: 14px 16px; border-radius: var(--radius-btn); background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.still-to-do ul { margin: 6px 0 0; padding-left: 20px; }
.still-to-do a { color: var(--amber); min-height: 44px; display: inline-flex; align-items: center; }

/* Step 3, drawn to the Payments canvas. */
.fee-line { display: flex; justify-content: space-between; gap: 12px; }
.fee-line > span:first-child { color: var(--muted); }
.step-card .not-wired { max-width: none; }

/* The furnished room: the bar, the side bar (Dashboard canvas), the page. */
.room { min-height: 100vh; display: flex; flex-direction: column; }
.room-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px var(--gutter);
  background: var(--surface); border-bottom: 1px solid var(--line); }
.room-lockup { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; --type: 19px; }
/* ORDER 041: the shop's own name is the stronger line: 20px at 700 beside the 19px, weight-500 wordmark. */
.room-business { flex: 1 1 auto; min-width: 0; color: var(--ink); font-weight: 700; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-menu-button { display: none; }
.room-body { flex: 1 1 auto; display: flex; align-items: stretch; }
.room-nav { flex: 0 0 232px; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.room-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.room-link:hover { background: var(--stone); color: var(--ink); }
.room-link[aria-current="page"] { background: var(--primary); color: #FFFFFF; font-weight: 700; }
/* ORDER 075: Your Keystone, the strong entry under Today: outlined, its live total at the right; on a phone a pill in the bar. */
.room-link-plan { flex-wrap: wrap; gap: 0 6px; box-shadow: inset 0 0 0 2px var(--primary); }
.room-link-plan > span { min-width: 0; }
.room-link-total { font-weight: 800; white-space: nowrap; }
.room-plan-pill { display: none; }
.room-link-soon { color: var(--faint); }
.room-link-soon .soon { min-height: 22px; font-size: 12px; padding: 0 8px; align-self: center; }
.room-main { flex: 1 1 auto; min-width: 0; padding: 32px; }
.room-main .step-card { margin: 0; }
.fix-panel { position: fixed; z-index: 20; right: 24px; bottom: 24px; width: min(420px, calc(100vw - 32px)); padding: 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 60px rgba(15, 30, 33, 0.18); }
.fix-panel h2 { font-size: 20px; font-weight: 800; }
.fix-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Today (Dashboard canvas), and the other rooms. */
.today, .shelf { max-width: 900px; display: flex; flex-direction: column; gap: 20px; }
.today h1, .shelf h1 { font-size: 30px; font-weight: 800; }
.today-date { color: var(--muted); margin-top: 4px; }
.today-month { font-size: 22px; font-weight: 800; line-height: 1.35; }
.one-thing { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.one-thing p { line-height: 1.5; }
.today-nothing { font-size: 18px; color: var(--muted); }
.today-store { padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.today-store > div { flex: 1 1 300px; }
.today-store h2 { font-size: 20px; }
.today-store .store-link { flex: 1 1 300px; }
.seed { color: var(--muted); font-size: 14px; }
.rows-plain { list-style: none; margin: 0; padding: 4px 20px; }
.rows-plain li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rows-plain li:last-child { border-bottom: 0; }
.shelf details.tool { padding: 0 20px; }
.settings-plan { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.settings-plan h2 { font-size: 20px; }
.settings-total { font-size: 18px; }
.settings-core { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.settings-modules { list-style: none; margin: 0; padding: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.switch-words { display: flex; flex-direction: column; gap: 2px; }
.switch-price { font-size: 14px; font-weight: 700; }
.switch-row input { width: 44px; height: 26px; accent-color: var(--primary); flex: 0 0 auto; }

@media (max-width: 720px) {
  .setup-page { padding: 16px; }
  .step-card { padding: 20px; }
  .step-title { font-size: 26px; }
  .room-menu-button { display: inline-flex; }
  .room-business { flex-basis: 100%; order: 3; }
  .room-plan-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
    border: 2px solid var(--primary); color: var(--primary); font-weight: 700; text-decoration: none; }
  .room-plan-pill[aria-current="page"] { background: var(--primary); color: #FFFFFF; }
  .room-bar .room-lockup { margin-right: auto; }
  .room-body { flex-direction: column; }
  .room-nav { display: none; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .room-nav-open { display: flex; }
  .room-main { padding: 20px 16px; }
  .today h1, .shelf h1 { font-size: 26px; }
  .today-month { font-size: 20px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-photo { height: 120px; }
  .shop-price { font-size: 17px; }
  .pill { font-size: 12px; padding: 3px 8px; }
  .fix-panel { right: 16px; bottom: 16px; }
}

/* Your storefront and Your data (ORDER 011 fix14): plain cards in the room. */
.room-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.room-card h2 { font-size: 20px; font-weight: 800; }
.data-where { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }

/* /app/registers (ORDER 011 item 1): the register's link, the seller's side. */
.registers .card { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.registers h2 { font-size: 22px; font-weight: 800; }
.registers-code-value { font-size: 40px; font-weight: 800; letter-spacing: 0.08em; color: var(--primary); overflow-wrap: anywhere; }
.registers-address { font-weight: 700; overflow-wrap: anywhere; }
.registers-note { color: var(--muted); }
.registers-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.registers-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.registers-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.registers-who b { font-size: 18px; overflow-wrap: anywhere; }
.registers-who span, .registers-gone li { color: var(--muted); }
.registers-who span.registers-behind { color: var(--amber); font-weight: 600; } /* BUILD-036C (M9): an older register, said in words */
.registers-ask { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.registers-gone { padding-top: 8px; gap: 4px; }
@media (max-width: 720px) {
  .registers .card { padding: 18px 16px; }
  .registers-code-value { font-size: 32px; }
}

/* ---- The live demo (ORDER 011 item 3), in the canvas's app window ------------------------------ */
.demo-section { padding-top: 64px; }
.demo-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.demo-intro h2 { font-size: 36px; font-weight: 800; line-height: 1.1; }
.demo-intro .lede { max-width: 620px; font-size: 18px; }
.demo-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--indigo-bg);
  color: var(--indigo); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.demo-tag-dark { background: var(--ink); color: #FFFFFF; }
.demo { margin-top: 28px; }
.demo-window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 40px 80px rgba(15, 30, 33, 0.12); overflow: hidden; }
.demo-bar { min-height: 40px; background: #EEF2F3; display: flex; align-items: center; gap: 14px; padding: 6px 14px; }
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 999px; background: #CBD5D6; display: block; }
.demo-bar-text { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.demo-body { display: flex; min-height: 520px; }
.demo-waiting { align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 32px; text-align: center; }
.demo-nav { flex: 0 0 200px; border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.demo-nav-shop { color: var(--muted); font-size: 13px; font-weight: 700; padding: 0 10px 12px; }
.demo-nav-item { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }
.demo-nav-item:hover { background: var(--stone); }
.demo-nav-item[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
/* ORDER 075, ruling 1: the Modules slot is Your Keystone, its live total at the right. */
.demo-nav-item.demo-nav-plan { justify-content: space-between; gap: 8px; margin-top: 8px; box-shadow: inset 0 0 0 2px var(--primary); }
.demo-nav-plan .nav-total { font-weight: 800; white-space: nowrap; }
.demo-main { flex: 1 1 auto; min-width: 0; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.demo-guide { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--ground); display: flex; flex-direction: column; gap: 8px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.demo-step button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.demo-step-mark { width: 26px; height: 26px; border-radius: 999px; background: var(--stone); color: var(--ink); display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.demo-step-now button { border-color: var(--primary); color: var(--ink); }
.demo-step-now .demo-step-mark { background: var(--primary); color: var(--on-primary); }
.demo-step-done .demo-step-mark { background: var(--good-bg); color: var(--good); }
.demo-guide-line { font-weight: 700; }
.demo-screen { display: flex; flex-direction: column; gap: 16px; }
.demo-screen-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-screen-head h3 { font-size: 24px; font-weight: 800; }
.demo-note { color: var(--muted); font-size: 14px; }
.demo-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.demo-item { position: relative; min-height: 104px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; color: var(--ink); text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; cursor: pointer; }
.demo-item:hover { border-color: var(--ink); }
.demo-first { border: 2px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.demo-start { font-size: 12px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.demo-item-name { font-weight: 800; overflow-wrap: anywhere; }
.demo-item-price { font-weight: 700; color: var(--muted); }
.demo-cart { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.demo-cart-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-cart-name { flex: 1 1 140px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.demo-qty { display: inline-flex; align-items: center; gap: 8px; }
.demo-qty .btn { padding: 0; width: 44px; font-size: 20px; }
.demo-qty b { min-width: 22px; text-align: center; }
.demo-cart-amount { min-width: 72px; text-align: right; font-weight: 700; }
.demo-total-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 8px; }
.demo-total { color: var(--ink); font-size: 20px; font-weight: 800; }
.demo-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; scroll-margin: 16px 0 24px; }
.demo-result { border-radius: 14px; background: var(--good-bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.demo-result-head { font-weight: 800; font-size: 18px; }
.demo-drops { margin: 0; padding-left: 20px; }
.demo-figures { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.demo-figure { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.demo-figure span { font-size: 13px; color: var(--muted); font-weight: 600; }
.demo-figure b { font-size: 22px; font-weight: 800; }
.demo-figure small { font-size: 12px; color: var(--muted); }
.demo-good { color: var(--good); }
/* ORDER 028: the profit figure: "Profit" and its amount on one line, the amount large, its working under it. */
.demo-profit { grid-column: 1 / -1; }
.demo-figure .demo-profit-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; font-size: inherit; color: inherit; }
.demo-figure .demo-profit-head > span { font-size: 16px; color: var(--ink); font-weight: 800; }
.demo-profit small { font-size: 13px; line-height: 1.45; }
.demo-sentence { font-size: 20px; font-weight: 800; }
.demo-sentence-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.demo-add { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.demo-add-title { font-weight: 800; }
.demo-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.demo-add-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.demo-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.demo-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.6fr; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-soft); align-items: center; }
.demo-row-head { background: var(--ground); color: var(--muted); font-weight: 600; border-top: 0; }
.demo-row-name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.demo-row .btn { padding: 0 12px; white-space: normal; }
.demo-sample { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--stone); color: var(--muted); }
.demo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-rate { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.demo-rate .field { flex: 1 1 220px; max-width: 360px; }
.demo-rate .btn { min-height: 52px; }
.demo-sales { display: flex; flex-direction: column; gap: 4px; }
.demo-sale-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.demo-phone { max-width: 340px; border: 9px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--surface); }
.demo-phone-head { padding: 12px 16px; font-weight: 800; border-bottom: 1px solid var(--line); }
.demo-phone-items { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 520px; overflow-y: auto; }
.demo-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.demo-card-pic { height: 64px; border-radius: 8px; background: var(--stone); color: var(--faint); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.demo-card-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; }
.demo-card-price { font-weight: 800; }
.demo-card .btn { width: 100%; padding: 0 8px; }
.demo-buy { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.demo-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-choice .btn[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.demo-module-after { border-top: 1px solid var(--line-soft); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.demo-honest { font-size: 13px; color: var(--muted); }
.demo-module-label { font-size: 13px; font-weight: 700; color: var(--indigo); }
.demo-problem-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-problem { color: #A1262B; font-weight: 600; }

/* The demo at phone width: the side menu becomes a row of buttons on top, the table stacks. */
@media (max-width: 720px) {
  .demo-intro h2 { font-size: 28px; }
  .demo-body { flex-direction: column; min-height: 0; }
  .demo-nav { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .demo-nav-shop { width: 100%; padding: 0 6px 4px; }
  .demo-nav-item { padding: 0 10px; font-size: 14px; }
  .demo-nav-item.demo-nav-plan { margin-top: 0; }
  .demo-main { padding: 16px 14px 20px; }
  .demo-row { grid-template-columns: 1fr 1fr; }
  .demo-row-head { display: none; }
  .demo-row-name { grid-column: 1 / -1; }
  .demo-row [data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
  .demo-phone { max-width: 100%; }
}

/* ---- Orders (ORDER 011 item 7): the live order screen, two piles, from the Dashboard canvas ----- */
.orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.orders-live { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.orders-live-on { background: var(--good-bg); color: var(--good); }
.orders-live-off { background: var(--stone); color: var(--muted); }
.orders-pile { display: flex; flex-direction: column; gap: 12px; }
.orders-pile h2 { font-size: 20px; font-weight: 800; }
/* AUDIT-054F F2: a payment that needs a look, above the piles and on its order, until marked dealt with. */
.payments-look-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.payments-look-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.payments-look-item p { margin: 0; }
.payments-look-item a { color: var(--amber); }
.payments-look-when { font-weight: 400; }
.payments-look-held { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.payments-look-held summary { cursor: pointer; font-weight: 600; color: var(--amber); min-height: 44px; display: flex; align-items: center; }
.payments-look-held p, .payments-look-held ul { margin: 0; }
.orders-zero { font-size: 22px; font-weight: 800; color: var(--good); }
.orders-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.order-card { padding: 18px 20px; transition: transform 0.38s ease, opacity 0.38s ease; }
.order-new { animation: order-in 0.6s ease; border-color: var(--primary); }
@keyframes order-in { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.order-leaving { transform: translateY(48px); opacity: 0; }
.order-faded { opacity: 0.62; }
.order-faded:hover, .order-faded:focus-within { opacity: 1; }
.order { display: flex; flex-direction: column; gap: 12px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-who b { font-size: 18px; overflow-wrap: anywhere; }
.order-who span { color: var(--muted); font-size: 14px; }
.order-pill-paid { background: var(--amber-bg); color: var(--amber); }
.order-pill-packed { background: var(--indigo-bg); color: var(--indigo); }
.order-pill-shipped, .order-pill-picked-up { background: var(--good-bg); color: var(--good); }
.order-pill-refunded { background: var(--stone); color: var(--muted); }
.order-body { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.order-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.order-how { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.order-how address { font-style: normal; display: flex; flex-direction: column; color: var(--muted); overflow-wrap: anywhere; }
.order-flag { padding: 10px 14px; border-radius: var(--radius-btn); background: var(--indigo-bg); color: var(--indigo); font-weight: 600; }
.order-flag a { color: var(--indigo); }
.order-told, .order-note { padding: 10px 14px; border-radius: var(--radius-btn); background: var(--amber-bg); color: var(--amber); font-weight: 600; font-size: 14px; }
.order-tracking, .order-split { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.order-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.order-paste { display: flex; flex-direction: column; gap: 6px; }
.order-paste-row { display: flex; gap: 8px; }
.order-paste-row input, .label-size input, .ship-from-box input { min-height: 48px; padding: 0 12px; border-radius: var(--radius-btn); border: 1.5px solid var(--line);
  background: var(--surface); font: inherit; color: var(--ink); min-width: 0; width: 100%; }
.order-paste-row input { flex: 1 1 auto; }
.label-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-btn); background: var(--ground); }
.label-parcel { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.label-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.label-size { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.label-split { background: var(--surface); }
.ship-from { display: flex; flex-direction: column; gap: 10px; }
.ship-from-box { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ship-from-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.orders-settings { padding: 0 20px; }
.orders-settings summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.orders-settings[open] { padding-bottom: 20px; }
.orders-settings .ship-from { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.order-section { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.order-section h2 { font-size: 20px; font-weight: 800; }
.order-section h3 { font-size: 16px; font-weight: 800; margin-top: 6px; }
.order-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.order-facts li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.order-facts li:last-child { border-bottom: 0; }
.fact-when { flex: 0 0 140px; color: var(--muted); font-size: 14px; }
.message-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 85%; padding: 10px 14px; border-radius: var(--radius-btn); background: var(--ground); display: flex; flex-direction: column; gap: 4px; }
.message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-seller { align-self: flex-end; background: var(--primary-soft); }
.message-who { font-size: 13px; color: var(--muted); font-weight: 600; }
.label-print { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.label-print img { max-width: 100%; height: auto; border: 1px solid var(--line); background: #FFFFFF; }
.label-print-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media print {
  .label-print-bar { display: none; }
  .label-print { padding: 0; }
  .label-print img { border: 0; width: 4in; }
}
/* The buyer's page from the receipt: the shop leads, Keystone is the credit at the foot. */
.buyer-help { max-width: 640px; margin: 0 auto; padding: 32px var(--gutter) 24px; display: flex; flex-direction: column; gap: 16px; }
.buyer-help-head { display: flex; flex-direction: column; gap: 2px; }
.buyer-help-shop { font-size: 26px; font-weight: 800; overflow-wrap: anywhere; }
.buyer-help-head span { color: var(--muted); }
.buyer-help-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.buyer-help-card h1 { font-size: 22px; font-weight: 800; }
.buyer-help-card .order-lines { flex: none; }
.buyer-help-foot { display: flex; justify-content: center; }
/* ORDER 029: the buyer's own page (/account), on the buyer-help page's frame. */
.buyer-help-card h2 { font-size: 18px; font-weight: 800; }
.account-orders, .account-addresses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.account-order { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.account-order:first-child { border-top: none; padding-top: 0; }
.account-addresses .fee-line { align-items: center; overflow-wrap: anywhere; }
.account-addresses .fee-line > span:first-child { color: var(--ink); }
/* WALK-029-033 (3): a saved address with Change and Forget; the form to add or change one. */
.account-address { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.account-address-text { color: var(--ink); overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.account-address-acts { display: flex; gap: 8px; }
.account-address-form { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.account-lines { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .order-card { padding: 16px; }
  .order-top { flex-wrap: wrap; }
  .label-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ship-from-row { grid-template-columns: 1fr 1fr; }
  .ship-from-row .ship-from-box:first-child { grid-column: 1 / -1; }
  .fact-when { flex-basis: 100%; }
  .message { max-width: 100%; }
  .buyer-help { padding: 20px 16px; }
}

/* ---- Keystone billing (ORDER 011 item 8): /app/billing and Day 30 ---------------------------- */
.billing-wire { padding: 12px 16px; border-radius: var(--radius-btn); background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.billing-said { font-weight: 700; }
.billing-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.billing-card h2 { font-size: 22px; font-weight: 800; }
.billing-lines { display: flex; flex-direction: column; }
.billing-when { font-weight: 700; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.billing-invoices { list-style: none; margin: 0; padding: 0; }
.billing-invoices .money-line > span:first-child b { color: var(--ink); }
.billing-invoices .money-line > span:first-child span { font-size: 14px; }
.billing-cardform { display: flex; flex-direction: column; gap: 12px; }
.billing-element { min-height: 56px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); }
.billing-element label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.billing-element input { min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.settings-slice { font-size: 14px; }

.day30-page { display: flex; justify-content: center; align-items: flex-start; }
.day30 { width: 100%; max-width: 660px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.day30-lockup { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; align-self: flex-start; }
.day30 h1 { font-size: 30px; line-height: 1.2; font-weight: 800; }
.day30-lede { color: var(--muted); line-height: 1.55; }
.day30-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
/* ORDER 028: "Profit" and its amount on one line, the amount large; what it was calculated from under it. */
.day30-profit { display: flex; flex-direction: column; gap: 6px; }
.day30-profit-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.day30-profit-head .day30-tile-label { font-size: 20px; color: var(--ink); font-weight: 800; }
.day30-profit-line { font-size: 15px; line-height: 1.5; color: var(--muted); }
.day30-tile { background: var(--ground); border-radius: var(--radius-btn); padding: 16px; min-width: 0; }
.day30-tile-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.day30-tile-value { font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.day30-good { color: var(--good); }
.day30-small { font-size: 14px; }
.day30-stay { border-top: 1px solid var(--line-soft); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.day30-stay p { line-height: 1.55; }
.day30-stay-title { font-size: 22px; font-weight: 800; }
/* Keep and Leave: one look for both, the canvas's. */
.day30-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.day30-choice { min-height: 56px; padding: 8px 12px; line-height: 1.25; border-color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; text-align: center; }
/* WALK-025-028 7: a long choice ("Leave and take my data") wraps inside its button at 390, never out of it. */
.day30-choice { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.day30-tile-sub { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.day30-leave { background: var(--ground); border-radius: var(--radius-btn); padding: 16px 18px; line-height: 1.55; color: var(--muted); font-size: 15px; }
.day30-leave b { color: var(--ink); }
.day30-done { border-top: 1px solid var(--line-soft); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 720px) {
  .day30 { padding: 22px 18px; }
  .day30 h1 { font-size: 26px; }
  .day30-tile-value { font-size: 24px; }
}

/* ---- The storefront and the four-tap checkout (ORDER 011 item 5; canvases Main, StorefrontPhone,
   AppHome, AppLive, AppAdd, AppShare). The seller's name leads; Keystone is the credit at the foot.
   Phone first: every screen holds at 390px with no side scroll. -------------------------------- */
.sf { min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); }
.sf-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.sf-head-in { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sf-brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.sf-brand:hover { color: var(--ink); }
.sf-mono { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-btn); background: var(--ink); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.sf-name { font-weight: 800; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-search { display: flex; flex: 1 1 280px; max-width: 420px; }
.sf-search input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 14px;
  font: inherit; font-size: 16px; background: var(--ground); color: var(--ink); }
.sf-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 16px 24px; flex: 1 0 auto; }
.sf-narrow { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.sf-page-title { font-size: 28px; font-weight: 800; }
.sf-hero { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding: 4px 0 12px; }
.sf-hero-words { flex: 1 1 320px; min-width: 0; }
.sf-hero h1 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.sf-hero p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.sf-facts { flex: 1 1 340px; display: none; flex-direction: column; gap: 12px; }
.sf-fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; display: flex; gap: 14px; align-items: center; }
.sf-fact div { display: flex; flex-direction: column; }
.sf-fact div span { color: var(--muted); font-size: 14px; }
.sf-fact-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--good-bg); color: var(--good);
  display: inline-flex; align-items: center; justify-content: center; }
.sf-closed { padding: 12px 16px; border-radius: var(--radius-btn); background: var(--stone); color: var(--ink); font-weight: 600; margin: 8px 0; }
.sf-chips { display: flex; gap: 8px; padding: 4px 0 14px; overflow-x: auto; }
.sf-chip { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sf-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 700; }
.sf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.sf-card:hover { color: var(--ink); border-color: var(--ink); }
.sf-card-photo { display: block; width: 100%; height: 130px; object-fit: cover; background: var(--stone); }
.sf-photo-none { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 28px; font-weight: 800; background: var(--stone); }
.sf-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.sf-card-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.sf-card-kind { font-size: 13px; color: var(--muted); }
.sf-card-row { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.sf-price { font-weight: 800; font-size: 17px; }
.sf-price-big { font-size: 28px; }
.sf-pill { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sf-pill-ok { background: var(--good-bg); color: var(--good); }
.sf-pill-low { background: var(--amber-bg); color: var(--amber); }
.sf-pill-out { background: var(--stone); color: var(--muted); }
.sf-none { color: var(--muted); padding: 24px 0; }
.sf-more { display: flex; justify-content: center; padding: 24px 0 8px; }
.sf-foot { width: 100%; max-width: 1200px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-wrap: wrap; gap: 4px 20px;
  justify-content: space-between; align-items: center; color: var(--faint); font-size: 14px; }
.sf-foot-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.sf-foot-note { color: var(--muted); }
.sf-linkish { display: inline-flex; align-items: center; background: none; border: none; padding: 0; min-height: 44px; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.sf-muted { color: var(--muted); }
.sf-plain { max-width: 640px; margin: 0 auto; padding: 48px 16px; gap: 18px; }
.sf-plain h1 { font-size: 26px; font-weight: 800; }
.sf-held-sub { color: var(--muted); text-align: left; }

/* 2. The item */
.sf-item { background: var(--surface); }
.sf-item-grid { width: 100%; max-width: 1200px; margin: 0 auto; flex: 1 0 auto; }
.sf-item-photo-wrap { position: relative; }
.sf-item-photo { display: block; width: 100%; height: min(390px, 100vw); object-fit: cover; background: var(--stone); }
.sf-item-photo.sf-photo-none { display: flex; font-size: 64px; }
.sf-back { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--surface);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.sf-back-flat { position: static; flex: 0 0 auto; cursor: pointer; }
.sf-item-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* WALK-029-033 (5): on a phone the Buy now bar is fixed to the bottom; the page ends with room the bar's
   own height (88px and the phone's home-bar inset), so the footer is never under the bar and a tap on
   Buy now always lands on it. */
.sf-item { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.sf-item-shop { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); font-weight: 600; text-decoration: none; }
.sf-item-body h1 { font-size: 26px; font-weight: 800; line-height: 1.2; }
.sf-item-price { display: flex; align-items: center; gap: 12px; }
.sf-item-price .sf-pill { font-size: 13px; padding: 4px 10px; }
.sf-item-kind { color: var(--muted); line-height: 1.55; }
.sf-item-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.sf-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; border-top: 1px solid var(--line); background: var(--surface);
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; align-items: center; }
.sf-qty { display: flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: var(--radius-btn); flex: 0 0 auto; }
.sf-qty button { width: 44px; height: 50px; border: none; background: transparent; font: inherit; font-size: 22px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sf-qty button:disabled { color: var(--faint); cursor: default; }
.sf-qty span { min-width: 24px; text-align: center; font-weight: 800; font-size: 18px; }
/* ORDER 035: how much of an item sold by an amount. */
.sf-amount { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.sf-amount label { font-weight: 700; }
.sf-amount-row { display: flex; align-items: center; gap: 10px; }
.sf-amount-row input { height: 52px; width: 140px; font-size: 20px; font-weight: 800; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 12px; background: var(--surface); color: var(--ink); }
.sf-amount-line, .sf-amount-limits { margin: 0; color: var(--muted); }
.sf-buy { flex: 1 1 auto; min-height: 52px; }

/* 3. Checkout */
.sf-co-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px; display: flex; align-items: center; gap: 10px; }
.sf-co-head h1 { font-size: 20px; font-weight: 800; flex: 1 1 auto; }
.sf-co-shop { color: var(--muted); font-size: 14px; font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.sf-co-main { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1 0 auto; }
.sf-co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sf-line { display: flex; gap: 12px; align-items: center; }
.sf-line-photo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: var(--radius-btn); object-fit: cover; background: var(--stone); font-size: 20px; }
.sf-line-what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sf-line-what span { font-size: 14px; color: var(--muted); }
.sf-co-form, .sf-co-pay { display: flex; flex-direction: column; gap: 14px; }
.sf-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sf-how button { min-height: 64px; border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.sf-how button span { font-size: 13px; color: var(--muted); }
.sf-how button[aria-checked="true"] { border: 2px solid var(--primary); background: #F0F8FA; }
.sf-co-note { color: var(--muted); font-size: 15px; }
.sf-co-fill { font-size: 15px; color: var(--muted); }
.sf-co-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.sf-co-form .field input { width: 100%; min-width: 0; }
.sf-totals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sf-co-summary .sf-totals { border: none; padding: 0; }
.sf-totals div, .sf-row { display: flex; justify-content: space-between; gap: 12px; }
.sf-totals div span:first-child { color: var(--muted); }
.sf-total { border-top: 1px solid var(--line-soft); padding-top: 10px; font-weight: 800; font-size: 20px; }
.sf-totals .sf-total span:first-child { color: var(--ink); }
.sf-co-to { color: var(--muted); font-size: 15px; }
.sf-co-acts { display: flex; flex-direction: column; }
.sf-co-acts .btn { width: 100%; }
.sf-wallet { min-height: 52px; }
.sf-hidden { display: none; }
.sf-or { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.sf-card-box:empty { display: none; }

/* 4. Done */
.sf-done { max-width: 560px; margin: 0 auto; padding: 72px 20px 32px; gap: 18px; align-items: stretch; }
.sf-done h1 { font-size: 28px; font-weight: 800; text-align: center; }
.sf-done-top { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.sf-done-check { width: 72px; height: 72px; border-radius: 999px; background: var(--good-bg); color: var(--good); display: flex; align-items: center; justify-content: center; }
.sf-done-sub { color: var(--muted); text-align: center; }
.sf-addr { display: flex; flex-direction: column; text-align: right; }
.sf-done-receipt { color: var(--muted); text-align: center; }
.sf-done-acts { display: flex; flex-direction: column; }
.sf-done .powered-by { align-self: center; }
.sf-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
/* WALK-029-033 (5): a long unbroken name or description (a 60-letter word) breaks inside its box on every
   store page, the item, checkout, done and the buyer's own page, and never pushes the page sideways. */
.sf-hero-words, .sf-card-body, .sf-item-body h1, .sf-item-kind, .sf-item-facts, .sf-closed, .sf-line-what, .sf-row > span:first-child,
.sf-co-note, .sf-co-to, .sf-done, .sf-plain, .sf-none, .sf-foot > span, .ks-addons-title, .account-page { overflow-wrap: anywhere; }
.sf-row > span:first-child { min-width: 0; }

@media (min-width: 760px) {
  .sf-head-in { padding: 16px 24px; }
  .sf-mono { width: 44px; height: 44px; font-size: 16px; }
  .sf-name { font-size: 20px; }
  .sf-main { padding: 40px 24px 24px; }
  .sf-hero { padding-bottom: 24px; }
  .sf-hero h1 { font-size: 44px; line-height: 1.1; }
  .sf-hero p { font-size: 18px; margin-top: 12px; }
  .sf-facts { display: flex; }
  .sf-chips { flex-wrap: wrap; padding-bottom: 24px; }
  .sf-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .sf-card-photo { height: 180px; }
  .sf-card-body { padding: 16px; gap: 8px; }
  .sf-card-name { font-size: 16px; }
  .sf-card-kind { font-size: 14px; }
  .sf-price { font-size: 20px; }
  .sf-pill { font-size: 13px; padding: 4px 10px; }
  .sf-foot { padding: 32px 24px 48px; }
  .sf-item-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 40px 24px; }
  .sf-item-photo { height: 520px; border-radius: var(--radius-card); }
  .sf-item-body { padding: 0; }
  .sf-item-body h1 { font-size: 36px; }
  .sf-buybar { position: static; border: none; padding: 16px 0 0; }
  .sf-item { padding-bottom: 0; }
  .sf-co-main { padding: 32px 24px; }
}

/* ---- The early-supporter sign-up, both ways (ORDER 014): Google and the email box, side by side --- */
.door-ways { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; text-align: left; }
.door-way { padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.door-way .not-wired { max-width: none; }
/* ORDER 050, the sign-up order: the one sign-up form (ui/SignUpForm.tsx), in /start, Home's call and the demo. */
.signup-form { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.signup-form .field input { width: 100%; min-width: 0; font: inherit; background: var(--surface); color: var(--ink); }
.signup-form > .btn { min-height: 52px; align-self: flex-start; }
.signup-title { margin: 0; }
.signup-ready { margin: 0; font-weight: 600; }
.signup-parts { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.signup-part { display: flex; align-items: center; gap: 10px; min-height: 44px; }
/* WALK-050BQ F5: each box is a 44px target (the site's finger rule) drawn as the 20px box it was: the
   box sits where it did (the target's spare 12px reaches past it each side), its words 10px after it.
   WALK-050BY 2: drawn in CSS, not an SVG picture: the 12px clear border leaves the 20px box (its 2px edge an
   inset shadow), the tick a turned corner, so the sheet loads nothing but the site's own fonts. */
.signup-part input { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 44px; height: 44px; margin: 0 -12px; flex: none;
  padding: 0; border: 12px solid transparent; border-radius: 17px; background: #FFFFFF padding-box; box-shadow: inset 0 0 0 2px #4A5A5E;
  display: grid; place-content: center; cursor: pointer; }
.signup-part input::before { content: ""; box-sizing: content-box; width: 4.5px; height: 9px; border: solid #FFFFFF; border-width: 0 2.4px 2.4px 0;
  border-radius: 0 0 1px 0; transform: translate(0, -1.5px) rotate(45deg); visibility: hidden; }
.signup-part input:checked { background-color: #0E7490; box-shadow: inset 0 0 0 2px #0E7490; }
.signup-part input:checked::before { visibility: visible; }
.signup-part input:checked:disabled { background-color: #6B7B7F; box-shadow: inset 0 0 0 2px #6B7B7F; cursor: default; }
.signup-part input:focus-visible { outline-offset: -8px; }
.signup-kept { font-weight: 700; color: var(--good); }
.signup-not-saved { margin: 0; font-weight: 700; color: #A1262B; }
.signup-line { color: var(--muted); font-size: 14px; }
.signup-privacy { color: var(--faint); font-size: 14px; }
.signup-privacy a { display: inline-flex; align-items: center; min-height: 44px; }
.start-or { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---- The privacy page (ORDER 014 section 4) ---------------------------------------------------- */
.privacy { max-width: 720px; padding-top: 56px; display: flex; flex-direction: column; gap: 26px; }
.privacy h1 { font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.privacy-part { display: flex; flex-direction: column; gap: 8px; }
.privacy-part h2 { font-size: 22px; font-weight: 800; }
.privacy-part p { font-size: 18px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }

/* ---- The early-supporter list (online/server/areas/frontdoor.ts), a server page with no script ------- */
.captain { max-width: 980px; }
.captain-scroll { width: 100%; overflow-x: auto; }
.captain-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-btn); }
.captain-table th, .captain-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.captain-table th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 720px) {
  .door-ways { grid-template-columns: minmax(0, 1fr); }
  .door-way { padding: 20px; }
  .signup-form > .btn { width: 100%; }
  .privacy { padding-top: 32px; }
  .privacy h1 { font-size: 36px; }
}

/* ---- ORDER 015: the website, done properly ------------------------------------------------------
   The site's header with its six pages (folded behind Menu below 960px), the footer, the real
   screens (online/web/ui/Shot.tsx), the new pages (Online, In person, About, FAQ), the sign-up call
   at the end of every page, and the site's dark theme. Every rule here is the site's own; none
   reaches the seller's room, the storefront or the demo. */
.site-action { display: flex; align-items: center; }
/* A long word (the store's address in a heading) breaks rather than pushing the page sideways. */
.site-frame h1, .site-frame h2, .site-frame h3, .site-frame p { overflow-wrap: break-word; }
.menu-button { display: none; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--radius-btn); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.menu-button:hover { border-color: var(--ink); }
@media (max-width: 960px) {
  .menu-button { display: inline-flex; align-items: center; justify-content: center; order: 1; }
  .site-action { order: 2; }
  .site-nav { order: 3; display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 4px; }
  .site-nav-open { display: flex; }
  .site-nav .nav-link { min-height: 48px; padding: 0 12px; }
}
@media (max-width: 720px) {
  .site-header { position: static; }
  /* On a phone the page itself carries the sign-up (Home's hero, the call at the end of every page). */
  .site-action .btn-primary, .site-action .not-wired { display: none; }
  .site-action:empty { display: none; }
}
.site-footer .wrap { align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .lockup-link { margin-right: 0; }
.footer-brand .lockup-link { --type: 19px; }
.footer-links { max-width: 720px; justify-content: flex-end; }
.footer-links a { text-decoration: none; min-width: 44px; justify-content: center; }
.privacy-part a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .site-footer .wrap { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

.try-demo { text-align: center; font-size: 18px; color: var(--muted); }
.try-demo .tap { font-weight: 700; margin-left: 4px; }
.plain-note { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* A real screen: its own frame, its caption under it. */
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shot-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 14px; color: var(--muted); }
.shot-phone { width: min(300px, 72vw); margin: 0 auto; }
.shot-phone .shot-frame { border-radius: 26px; border-width: 6px; border-color: var(--ink); }

/* How it works: the one brain, then each part beside its screen. */
.brain-card { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.brain-card h2 { font-size: 36px; font-weight: 800; }
.faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 8px; }
.face { padding: 20px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.face .kicker { color: var(--primary); font-size: 13px; }
.face b { font-size: 19px; font-weight: 800; }
.face span { color: var(--muted); }
.parts { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
.part { padding: 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; }
.part-words { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.part-words .kicker { color: var(--primary); font-size: 13px; }
.part-words h2 { font-size: 30px; line-height: 1.15; font-weight: 800; }
.part-words > p { color: var(--muted); font-size: 17px; }
.part-words .row-lines { margin-top: 6px; }
.part-more { margin-top: 2px; font-weight: 700; }
.part-more .tap { justify-content: flex-start; }

/* Online, In person: words beside a screen. */
.split-shot > .shot { flex: 1 1 380px; }
.split-shot .shot-phone { flex: 0 1 300px; }
.split-shot .kicker { color: var(--primary); }
.split-shot h2 { margin-top: 8px; }
.taps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tap-step { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tap-step h3 { font-size: 21px; font-weight: 800; }
.tap-step p { color: var(--muted); }
.tap-step .shot-phone { width: 100%; max-width: 240px; margin-top: 6px; }

/* About (ORDER 030): short, airy, one column; what we stand for as a clean list with small icons. */
.about-head .lede + .lede { margin-top: 12px; }
.about-stands { max-width: 680px; padding-top: 56px; }
.about-stands h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.015em; text-align: center; }
.stands { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.stands li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.stands li:first-child { border-top: 0; }
.stand-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); }
.stands p { margin: 0; padding-top: 8px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.stands b { color: var(--ink); font-weight: 800; }
.about-contact { margin-top: 24px; text-align: center; color: var(--muted); }
.about-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Pricing's lines, and the FAQ page. */
.plan-note { margin-top: 14px; color: var(--muted); }
.fee-head span { color: var(--muted); font-weight: 600; }
.fee-module { padding-left: 14px; }
.fee-soon .soon { align-self: center; }
.faq-more { margin-top: 18px; text-align: center; font-weight: 700; }
.faq-page { padding-top: 40px; }
.faq-page .faq-item h2 { font-size: 20px; font-weight: 800; text-align: left; }
.faq-page .faq-item p { font-size: 17px; line-height: 1.6; }

/* The sign-up call at the end of every page: ORDER 014's two ways, under one clear call. */
.signup-call .closer { display: flex; flex-direction: column; align-items: center; gap: 0; }
.signup-call .door-ways { margin-top: 28px; max-width: 900px; }

@media (max-width: 720px) {
  .brain-card { padding: 24px; }
  .brain-card h2 { font-size: 28px; }
  .part { padding: 22px; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .part-words h2 { font-size: 24px; }
  .about-stands { padding-top: 40px; }
  .stands p { font-size: 16px; }
  .signup-call .closer { padding: 32px 16px; }
}

/* ---- ORDER 015: the site in dark, when the visitor's device asks for it ------------------------
   Light is the default (P-46). Only a page drawn in the site's frame turns dark; the tokens are the
   gold standard's, re-cut for a dark ground from the mark's own dark colours (brand/MARK-STANDARD.md:
   aperture #0B1517, accent #22D3EE). The live demo stays the light product it is, in its own panel. */
@media (prefers-color-scheme: dark) {
  :root:has(.site-frame) {
    --ink: #E6EEEF; --ground: #0B1517; --surface: #122124; --line: #24383C; --line-soft: #1A2B2F;
    --muted: #A8B8BB; --faint: #8C9DA1; --on-dark-muted: #A8B8BB;
    --primary: #2CC6E0; --primary-hover: #6ADCEE; --primary-soft: #0E3A43; --on-primary: #06181B;
    --good: #7CD3A3; --good-bg: #133227; --amber: #F2B46C; --amber-bg: #3A2711; --indigo: #B1AEFF; --indigo-bg: #25234F;
    --stone: #1C2F33; --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    --focus: #22D3EE;
    color-scheme: dark;
  }
  .site-frame .site-header { background: rgba(11, 21, 23, 0.94); }
  .site-frame .btn-dark, .site-frame .btn-dark:hover { color: var(--ground); }
  .site-frame .step-n { background: var(--stone); color: var(--ink); }
  .site-frame .step-n-last { background: var(--primary); color: var(--on-primary); }
  .site-frame .band { background: #10272B; border: 1px solid var(--line); }
  .site-frame .field-error, .site-frame .signup-not-saved { color: #FF9B9F; }
  .site-frame .plan-list svg, .site-frame .check svg { stroke: var(--good); }
  .site-frame .shot-phone .shot-frame { border-color: #2A3F43; }
  .site-frame [data-slot="live-demo"] {
    --ink: #0F1E21; --ground: #F4F7F7; --surface: #FFFFFF; --line: #DCE4E5; --line-soft: #EEF2F3;
    --muted: #4A5A5E; --faint: #6B7B7F; --primary: #0E7490; --primary-hover: #0A5568; --primary-soft: #E6F4F7; --on-primary: #FFFFFF;
    --good: #2B6649; --good-bg: #E4F1EA; --amber: #94470A; --amber-bg: #FDEFDD; --indigo: #3D39B0; --indigo-bg: #ECEBFC; --stone: #E9EFF0;
    --focus: #0E7490;
    color-scheme: light; color: var(--ink); background: var(--ground); border-radius: var(--radius-band); padding-bottom: 32px;
  }
}

/* ---- ORDER 018 item 4: the version in a corner, and what's new (online/web/ui/WhatsNew.tsx) ------- */
.version-corner { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; font: inherit;
  font-size: 13px; color: var(--faint); cursor: pointer; text-align: left; }
.version-corner:hover, .version-corner:focus-visible { color: var(--ink); text-decoration: underline; }
.room-version { margin-top: auto; padding: 0 12px; }
.whats-new-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(15, 30, 33, 0.45); display: flex; align-items: flex-start;
  justify-content: center; padding: 16px; overflow-y: auto; }
.whats-new { width: 100%; max-width: 560px; padding: 24px; margin-top: 48px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.whats-new h2 { margin: 0; font-size: 22px; }
.whats-new h3 { margin: 0 0 4px; font-size: 17px; }
.whats-new ul { margin: 0 0 8px; padding-left: 20px; line-height: 1.5; }
.whats-new .field-hint { margin: 4px 0; }
.whats-new-entry + .whats-new-entry { border-top: 1px solid var(--line); padding-top: 12px; }
.whats-new .btn { align-self: flex-start; }

/* ORDER 021: a maintenance notice, put up from the console. Quiet, one line, above every page. */
.site-notice { margin: 0; padding: 10px 16px; text-align: center; font-size: 14px; line-height: 1.4; background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid var(--line); font-weight: 600; }

/* ORDER 021 s4: "How did you hear about Keystone?", one tap. */
.heard { border: 0; padding: 0; margin: 8px 0; min-width: 0; }
/* ORDER 036 S5: "What do you sell?" on the name step: two plain choices, each a full-width tap. */
.what-you-sell { border: 0; padding: 0; margin: 8px 0; min-width: 0; }
.what-you-sell-choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; min-height: 44px; cursor: pointer; }
.what-you-sell-choice input { margin-top: 4px; flex: none; }
/* ORDER 036 S5: one serial box per item received, on the phone. */
.receive-serials { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 12px 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); min-width: 0; }
.receive-serials legend { font-weight: 800; padding: 0 6px; }
.receive-serials input { min-height: 44px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.heard-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.heard-choice { text-align: left; padding: 10px 14px; border-radius: var(--radius-btn); border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; }
.heard-choice:hover, .heard-choice:focus-visible { border-color: var(--primary); }
.heard-choice[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* ---- BUILD-POLISH2: the words on Home, the walks' findings (WALK-SITE015, WALK-DEMO016) ---- */
/* Home's top: the four paragraphs, then Try the demo, then where things stand. */
.hero-words .lede + .lede { margin-top: 14px; }
.hero-acts { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* A link to a place on the page lands below the header that stays at the top. */
#signup-call, #demo { scroll-margin-top: 84px; }
@media (max-width: 720px) { #signup-call, #demo { scroll-margin-top: 12px; } }
/* The lockup's gap is the stone's foot (brand/MARK-STANDARD.md): set with the lockup's size, above (ORDER 041). */
/* On a phone the footer's links sit in two even columns, each starting at its left edge. */
@media (max-width: 560px) {
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer-links a, .footer-soon { justify-content: flex-start; }
}
/* Pricing: a built module's part that is not built yet, said on its row. */
.fee-part { display: block; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 4px; }

/* ---- ORDER 027: THE FRONT DOOR SHOWS, IT DOES NOT TELL ------------------------------------------
   One type scale, an 8px spacing grid, body lines of about 60 characters, the showcase on a dark
   band so the real screens stand out, real shadows on their frames, and motion only where the
   visitor has not asked for less. Keystone's own colours and type; nothing new in the brand. */
:root {
  --fs-display: clamp(40px, 5.6vw, 68px); --fs-h2: clamp(28px, 3.4vw, 40px); --fs-h3: 20px;
  --fs-lede: clamp(17px, 1.5vw, 20px); --fs-small: 14px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px;
  --measure: 60ch;
  --band: #0F1E21; --band-ink: #F4F7F7; --band-muted: #B9C7C9; --band-line: rgba(255, 255, 255, 0.14);
  --shadow-lg: 0 1px 2px rgba(15, 30, 33, 0.06), 0 24px 48px -16px rgba(15, 30, 33, 0.22);
  --shadow-device: 0 2px 6px rgba(0, 0, 0, 0.25), 0 32px 64px -24px rgba(0, 0, 0, 0.6);
}
.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; }

/* The header: slim, at the top of every page, phone included. Pricing and Try the demo always in sight. */
.site-header { position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.site-header .wrap { padding-top: var(--s1); padding-bottom: var(--s1); gap: 4px var(--s1); }
.head-quick { display: flex; align-items: center; gap: var(--s1); }
.head-pricing { display: none; }
.site-header .head-demo { min-height: 44px; padding: 0 var(--s2); font-size: 15px; width: auto; }
.menu-button { padding: 0; width: 44px; }
@media (max-width: 960px) {
  .head-pricing { display: inline-flex; }
  .head-quick { order: 1; }
  .menu-button { order: 2; }
  .site-action { order: 3; }
  .site-nav { order: 4; }
}
@media (max-width: 720px) {
  .site-header { position: sticky; }
  .site-action { display: none; }
  .site-action.site-action-open { display: flex; flex-basis: 100%; padding-bottom: var(--s1); }
  .site-action.site-action-open:empty { display: none; }
  .head-pricing { padding: 0 6px; }
  .site-header .head-demo { padding: 0 12px; font-size: 14px; }
  .site-header .wrap { gap: 4px; }
}
/* ORDER 041: on a phone the header's lockup is set at the 19px floor (163px with its mark). Under
   450px that cannot stand on one line beside Pricing, Try the demo and Menu (ORDER 027 7: the slim
   header, one line, phone included), so there the header shows the mark alone, still the home
   link and still read as "Keystone"; the footer keeps the whole lockup. */
@media (max-width: 560px) { .site-header .lockup-link { --type: 19px; } }
@media (max-width: 449px) { .site-header .lockup-link .wordmark { display: none; } .site-header .lockup-link { min-width: 44px; } }
#signup-call, #demo { scroll-margin-top: 76px; }
@media (max-width: 720px) { #signup-call, #demo { scroll-margin-top: 72px; } }

/* 1. The first screen. */
.hero { padding-top: var(--s8); }
.hero h1 { font-size: var(--fs-display); line-height: 1.04; max-width: 14ch; }
.hero .hero-sub { margin: var(--s3) auto 0; max-width: var(--measure); font-size: var(--fs-lede); }
.price-chip { margin: var(--s3) auto 0; display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s1) var(--s2);
  border-radius: 999px; background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 15px; line-height: 1.4; text-align: left; }
.price-chip svg { flex: 0 0 auto; }
.hero-door { margin-top: var(--s3); display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.hero-acts { margin-top: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-who { color: var(--muted); font-weight: 600; }
.hero-tag { margin: 0; }
.hero-tag .soon { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 720px) {
  .hero { padding-top: var(--s4); }
  .hero h1 { font-size: 40px; }
  .hero .hero-sub { margin-top: var(--s2); font-size: 17px; line-height: 1.5; }
  .price-chip { margin-top: var(--s2); border-radius: 16px; font-size: 14px; }
  .hero-door { margin-top: var(--s2); gap: 12px; width: 100%; }
  .hero-acts { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .hero-acts .btn-big { min-height: 52px; font-size: 17px; }
}

/* 2. The showcase, on a dark band, its top in sight at the bottom of the first screen. */
.showcase-band { margin-top: var(--s6); padding: var(--s5) 0 var(--s4); background: var(--band); color: var(--band-ink); }
.showcase { --stage: 480px; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.showcase-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); }
.chip { min-height: 44px; padding: 0 var(--s2); border-radius: 999px; border: 1px solid var(--band-line); background: transparent;
  color: var(--band-muted); font: inherit; font-size: var(--fs-small); font-weight: 700; cursor: pointer; }
.chip:hover { color: var(--band-ink); border-color: rgba(255, 255, 255, 0.4); }
.chip[aria-pressed="true"] { background: var(--band-ink); border-color: var(--band-ink); color: var(--band); }
.showcase-view { width: 100%; overflow: hidden; touch-action: pan-y; }
.showcase-track { display: flex; transform: translateX(calc(var(--at, 0) * -100%)); transition: transform 0.6s cubic-bezier(0.22, 0.7, 0.2, 1); }
.slide { flex: 0 0 100%; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.slide-stage { width: 100%; height: var(--stage); display: flex; align-items: center; justify-content: center; }
.slide-words { min-height: 56px; max-width: 46ch; padding: 0 var(--s2); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.slide-title { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.01em; color: var(--band-ink); }
.slide-line { color: var(--band-muted); }
.showcase-controls { display: flex; align-items: center; gap: var(--s2); }
.showcase-arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--band-line); background: rgba(255, 255, 255, 0.06);
  color: var(--band-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.showcase-arrow:hover { background: rgba(255, 255, 255, 0.14); }
.showcase-dots { display: flex; gap: 6px; align-items: center; }
.showcase-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); transition: width 0.3s ease, background 0.3s ease; }
.showcase-dots i.on { width: 20px; background: var(--band-ink); }
.showcase-note { color: var(--band-muted); font-size: 13px; }
.showcase :focus-visible { outline-color: var(--cyan); }
@media (max-width: 720px) {
  .showcase-band { margin-top: var(--s4); padding: var(--s3) 0; }
  .showcase { --stage: 380px; gap: var(--s2); }
  .slide { gap: var(--s2); }
  .chip { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  /* No sliding: every slide in one place, the one shown fading in on a tap. */
  .showcase-track { display: grid; transform: none; transition: none; }
  .slide { grid-area: 1 / 1; opacity: 0; transition: opacity 0.3s ease; }
  .slide[data-current="yes"] { opacity: 1; }
  .showcase-dots i { transition: none; }
}

/* Device frames: a phone for a phone's screen, a browser window for a computer's. Each is sized from
   the picture's own width and height before it loads, so nothing moves. */
.dev img { display: block; }
.dev-phone { height: 100%; padding: 8px; border-radius: 36px; background: #1B2A2D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), var(--shadow-device); }
.dev-phone .dev-screen { height: 100%; border-radius: 28px; overflow: hidden; background: #FFFFFF; }
.dev-phone img { height: 100%; width: auto; }
.dev-browser { width: min(100%, 860px, calc((var(--stage) - 28px) * var(--ar))); border-radius: 12px; overflow: hidden; background: #FFFFFF; box-shadow: var(--shadow-device); }
.dev-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #E9EFF0; }
.dev-bar i { width: 10px; height: 10px; border-radius: 999px; background: #C3CED0; }
.dev-browser img { width: 100%; height: auto; }

/* Sections after the showcase. */
.home-section { padding-top: var(--s12); }
.home-head { margin: 0 auto; max-width: 22ch; font-size: var(--fs-h2); line-height: 1.1; font-weight: 800; text-align: center; }
@media (max-width: 720px) { .home-section { padding-top: var(--s8); } }

/* 3. The price card. */
.price-card { max-width: 520px; margin: 0 auto; padding: var(--s5) var(--s4); text-align: center; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; }
.price-big { margin-top: var(--s1); display: flex; align-items: baseline; gap: var(--s1); }
.price-big b { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-big span { color: var(--muted); font-size: 18px; }
.price-lines { margin: var(--s3) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.price-lines li { display: flex; gap: var(--s1); align-items: flex-start; }
.price-lines svg { flex: 0 0 auto; margin-top: 3px; }
.price-more { margin-top: var(--s2); font-weight: 700; }
@media (max-width: 720px) { .price-card { padding: var(--s4) var(--s3); } .price-big b { font-size: 56px; } }

/* 4. Try it. */
.try-band { --stage: 420px; padding: var(--s5); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: center; box-shadow: var(--shadow-lg); }
.try-words { display: flex; flex-direction: column; gap: var(--s2); }
.try-words h2 { font-size: var(--fs-h2); font-weight: 800; }
.try-acts { justify-content: flex-start; margin-top: var(--s1); }
.try-shot { display: flex; justify-content: center; border-radius: 12px; }
.try-shot .dev-browser { box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.try-where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.try-choice { min-height: 88px; padding: var(--s2); border-radius: var(--radius-card); border: 2px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.try-choice:hover { border-color: var(--primary); color: var(--ink); }
.try-choice b { font-size: 18px; font-weight: 800; }
.try-choice span { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 720px) {
  .try-band { --stage: 260px; padding: var(--s3); grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .try-acts .btn { width: 100%; }
}

/* 5. Three things. */
.three { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.thing { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); }
.thing h3 { font-size: var(--fs-h3); font-weight: 800; }
.thing p { color: var(--muted); }
.thing-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-bottom: var(--s1); }
.kinds-line { margin: var(--s3) auto 0; max-width: var(--measure); text-align: center; color: var(--faint); font-size: 15px; }
.home-more { margin-top: var(--s1); text-align: center; font-weight: 700; }
@media (max-width: 720px) {
  .three { margin-top: var(--s3); grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .thing { padding: var(--s2); display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s2); row-gap: 2px; align-items: start; }
  .thing-icon { grid-row: span 2; margin: 0; }
  .thing h3 { font-size: 18px; }
}

/* 6. The close: a full-width band, his two lines, then the one sign-up. */
.signup-band { margin-top: var(--s12); padding: var(--s8) 0; background: var(--band); color: var(--band-ink); }
.signup-band .closer { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 0; padding-bottom: 0; border-radius: 0; }
.close-words { max-width: 780px; display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.close-words p:first-child { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.close-words p + p { color: var(--band-muted); font-size: var(--fs-lede); }
.signup-band h2 { font-size: 24px; color: var(--band-ink); }
.signup-band .lede { color: var(--band-muted); font-size: 17px; max-width: var(--measure); }
.signup-band .door-way { color: var(--ink); }
main:has(> .signup-band:last-child) + .site-footer { margin-top: 0; }
@media (max-width: 720px) { .signup-band { margin-top: var(--s8); padding: var(--s6) 0; } .close-words { margin-bottom: var(--s4); } }
/* BUILD-050BX (WALK-050BQ F6): Home on a phone kept under six screens (ORDER 027 7) now that the sign-up
   form sits in its close, with every word kept: the sections closer together, the cards' insides a little
   tighter, the form's fields 48px (still past the 44px target) and its parts in two columns. Phone only. */
@media (max-width: 720px) {
  .home-section { padding-top: var(--s4); }
  .price-card { padding: var(--s3); }
  .try-choice { min-height: 0; padding: 12px; }
  .thing { padding: 14px; }
  .signup-band { margin-top: var(--s4); padding: var(--s4) 0; }
  .signup-band .close-words { margin-bottom: var(--s3); }
  .signup-band .close-words p:first-child { font-size: 22px; }
  .signup-band .door-ways { margin-top: 20px; gap: 12px; }
  .signup-band .door-way { padding: 16px; gap: 12px; }
  .signup-band .signup-form { gap: 10px; }
  .signup-band .field { gap: 4px; }
  .signup-band .field input { min-height: 48px; }
  .signup-band .signup-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .site-footer .wrap { padding-bottom: 28px; }
}

/* Subtle motion: a section fades up as it arrives; nothing at all under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .fade-ready .fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-ready .fade-up.is-in { opacity: 1; transform: none; }
}

/* 8. The other pages lead with a real screen and one line. */
.page-lead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s6); align-items: center; text-align: left; }
.page-lead-words { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.page-lead-words .lede, .page-lead-words .prelaunch { margin: 0; max-width: var(--measure); }
.page-lead .shot-phone { margin: 0 auto; }
.section-solo { max-width: 760px; text-align: center; }
.section-solo .lede { margin: var(--s2) auto 0; max-width: var(--measure); }
.section-solo h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 800; margin-top: var(--s1); }
.section-solo .kicker { color: var(--primary); }
@media (max-width: 720px) { .page-lead { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }

/* The site in dark: the bands keep their dark ground, set apart by a line. */
@media (prefers-color-scheme: dark) {
  :root:has(.site-frame) { --band: #0E2226; --band-line: rgba(255, 255, 255, 0.16); --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6); }
  .site-frame .showcase-band, .site-frame .signup-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .site-header .wrap { padding-left: 12px; padding-right: 12px; gap: 2px; }
  .head-pricing { padding: 0 4px; font-size: 15px; }
  .site-header .head-demo { padding: 0 10px; }
}
.try-ask { font-weight: 800; margin-top: var(--s1); }
.try-where { margin-top: 0; }
/* ORDER 027: the slim header stays at the top on a phone too, so the demo's own bar sits just under it. */
.site-frame { --demo-bar-top: 61px; }
.site-frame .demo-window .demo-bar { top: var(--demo-bar-top); }
.site-frame .demo-window .demo-stage { scroll-margin-top: calc(var(--demo-bar-top) + 56px); }

/* ---- BUILD-POLISH3 (WALK-026, WALK-027) --------------------------------------------------------- */
/* The footer's words read at 4.5:1 or more on every page, /demo's included (--faint was 4.09:1 in light). */
.site-footer .wrap, .footer-links a, .site-footer .powered-by { color: var(--muted); }
/* "Opening soon": a plain tag, nothing that looks pressable: a small dot and the words. */
.hero-tag .soon { min-height: 0; padding: 0; border-radius: 0; background: none; color: var(--muted); font-size: 14px; gap: 8px; }
.hero-tag .soon::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--amber); flex: 0 0 auto; }
/* The showcase says how far along it is beside its dots. */
.showcase-count { min-width: 5ch; text-align: center; color: var(--band-muted); font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
/* Try it: its own button; the demo's first screen cropped to its left part, where the opening is
   (the rest of that window is empty), and left out on a phone. */
.try-acts { display: flex; }
.try-shot .dev-browser { width: 100%; }
.try-shot .dev-screen { aspect-ratio: 620 / 440; overflow: hidden; }
.try-shot .dev-screen img { width: calc(100% * 1280 / 620); max-width: none; height: auto; }
@media (max-width: 720px) {
  .try-shot { display: none; }
  .try-acts .btn { width: 100%; }
}
/* How it works: on a phone the real screen comes straight after the headline; the pitch line under it. */
.lead-under { padding-top: var(--s4); }
.lead-under .lede { max-width: var(--measure); }
.prelaunch-low { margin-top: var(--s4); }
/* No script: the page's words, its price and its links, plainly. */
.noscript-page { max-width: 640px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; }
.noscript-page h1 { font-size: 36px; line-height: 1.1; }
.noscript-page ul { margin: 0; padding-left: 20px; }
/* Everything in the footer (the version and its What's new included), and the quiet lines on Home. */
.site-footer, .kinds-line, .signup-privacy { --faint: var(--muted); }
.kinds-line, .signup-privacy { color: var(--muted); }

/* ORDER 025: the seller's passkey (screens/seller/Passkeys.tsx). Tokens only; 44px targets from .btn. */
.passkey-card { width: 100%; max-width: 560px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.passkey-card h1 { margin: 0; font-size: 24px; }
.passkey-card h2, .passkey-card h3 { margin: 0; font-size: 18px; }
.passkey-card p { margin: 0; line-height: 1.5; }
.passkey-card form { display: flex; flex-direction: column; gap: 12px; }
.passkey-stack { width: 100%; max-width: 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.passkey-offer { max-width: none; margin-bottom: 16px; }
.passkey-brand { font-weight: 700; font-size: 18px; }
.passkey-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.passkey-add { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.recovery-code { font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: 1px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); overflow-wrap: anywhere; }
.passkey-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.passkey-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.passkey-log ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.5; }
.passkey-needed { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.setup-column { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.passkey-move-link { margin-top: 16px; text-align: center; }
.passkey-move-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* ORDER 032: Add a register for your shop (/app/registers/add), the dashboard's card, and the
   one-page guide (/help/register), which prints on one sheet without the site around it. */
.today-register { padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.today-register > div { flex: 1 1 260px; min-width: 0; }
.today-register h2 { font-size: 20px; }
.add-register-needs, .add-register-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.add-register .notice-plain { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; font-weight: 600; }
.add-register-sha code { overflow-wrap: anywhere; font-size: 13px; }
.add-register > .account-actions { flex-wrap: wrap; }
.guide { max-width: 860px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-direction: column; gap: 24px; }
.guide-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.guide h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.guide-needs ul { margin: 0; padding-left: 22px; line-height: 1.5; }
.guide-steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 22px; }
.guide-steps > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.guide-steps p { margin: 0 0 6px; line-height: 1.5; }
.guide-warning { font-weight: 700; }
.guide-shot { width: 100%; max-width: 520px; height: auto; border: 1px solid var(--line); border-radius: 10px; }
@media (min-width: 900px) {
  .guide-steps > li { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; }
}
@media print {
  .site-header, .site-footer, .guide-print, .version-corner, .coming-soon { display: none !important; }
  body, .site-frame { background: #fff !important; color: #000 !important; }
  .guide { max-width: none; padding: 0; gap: 6px; font-size: 10pt; }
  .guide h1 { font-size: 16pt; margin: 0; }
  .guide h2 { font-size: 12pt; margin: 0 0 2px; }
  .guide .lede { font-size: 10.5pt; margin: 0; }
  .guide-steps { gap: 8px; }
  .guide-steps > li { grid-template-columns: minmax(0, 1fr) 1.6in; break-inside: avoid; gap: 10px; }
  .guide-steps p { margin: 0 0 2px; line-height: 1.3; }
  .guide-shot { max-width: 1.6in; border-color: #999; }
  @page { size: letter; margin: 0.4in; }
}
.add-register .btn, .today-register .btn { white-space: normal; text-align: center; max-width: 100%; }
.add-register, .add-register .card { min-width: 0; }
/* The guide's steps are numbered in their headings (a grid item drops the list's own number). */
.guide-steps { list-style: none; padding-left: 0; counter-reset: guide-step; }
.guide-steps > li h2::before { counter-increment: guide-step; content: counter(guide-step) ". "; }

/* ORDER 033: Settings, tips and add-ons. */
.settings-tip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.settings-tip-row > * { min-width: 0; }
.settings-tip-row input { width: 100%; min-width: 0; box-sizing: border-box; }
.settings-tip-row select, .settings-plan select { min-height: 48px; max-width: 100%; font: inherit; padding: 0 10px; }
.settings-check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.settings-check input { width: 44px; height: 44px; margin: 0; flex: none; }
.settings-addons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.settings-addons li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-addons { color: var(--muted); }
/* ORDER 035: receiving a delivery on the phone: a big count and the tally. */
.receive .scan-big { display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; border-radius: var(--radius-btn); background: var(--stone); margin: 12px 0; }
.receive .scan-big-n { font-size: 52px; font-weight: 800; line-height: 1; }
.receive .scan-big-words { font-size: 18px; font-weight: 700; }
.receive-tally { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.receive-tally li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); }

/* ORDER 045: one login, several businesses. The open business in words and its colour, at the top of every
   signed-in page; All my businesses, one plain line each; the colour choice. */
.business-switch { display: inline-flex; align-items: center; gap: 10px; }
.business-switch select { font: inherit; font-weight: 700; font-size: 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-btn); min-height: 44px; padding: 0 10px; max-width: 100%; }
.business-all-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.business-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.business-dot { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.business-lines { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.business-line { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); cursor: pointer; }
.business-line:hover { border-color: var(--primary); }
.business-line-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.business-total { margin: 8px 0 20px; }
.colour-pick { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.colour-pick legend { font-weight: 600; margin-bottom: 8px; }
.colour-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-btn); cursor: pointer; }
.colour-on { border-color: var(--ink); font-weight: 700; }
.colour-choice:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* WALK-045 M3: at 390 wide the switcher wraps, so "All my businesses" is never cut off. */
.room-business.business-switch { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 4px; }
.business-switch select { min-width: 0; flex: 1 1 140px; }
/* WALK-045B M3: on a phone the select takes its own line (beside the dot), so the whole business name shows; "All my businesses" goes under it. */
@media (max-width: 560px) {
  .business-switch select { flex: 1 1 calc(100% - 26px); width: calc(100% - 26px); }
  .business-switch .business-all-link { flex-basis: 100%; }
}
/* The question that replaced the reuse warning, and the business's owners (AUDIT-054 B2). */
.same-company { display: grid; gap: 8px; margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-btn); }
.same-company legend { font-weight: 700; padding: 0 4px; }
.same-company label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.co-owners { margin: 12px 0; }
.co-owner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.co-owner-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* ORDER 066: change who owns this business, by a ticket to Keystone support. */
.ownership { overflow-wrap: anywhere; }
.ownership-kind { display: grid; gap: 8px; margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-btn); }
.ownership-kind legend { font-weight: 700; padding: 0 4px; }
.ownership-kind label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ownership select, .ownership input:not([type="radio"]), .ownership textarea { max-width: 100%; }
/* WALK-045F F1: the co-owner choice is a full-size control, like every field. */
.ownership select { min-height: 52px; padding: 0 14px; border-radius: var(--radius-btn); border: 1.5px solid var(--line);
  background: var(--surface); font: inherit; font-size: 17px; color: var(--ink); }
.ownership select:focus { outline: 3px solid var(--primary-soft); border-color: var(--ink); }
.ownership-pick { align-self: flex-start; min-height: 44px; cursor: pointer; }
/* WALK-045G N1: the same cyan ring as the site's other file pickers (.photo-pick, .import-pick), so it is seen. */
.ownership input[type="file"]:focus-visible + .ownership-pick { outline: 3px solid var(--focus); outline-offset: 2px; }
.ownership-proofs, .ownership-tickets ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ownership-proofs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ownership-tickets { margin: 24px 0 16px; }
.pending-invites { margin: 12px 16px; }
.pending-invites p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* BUILD-CONNECT: Settings, Connections: one line per store, its state in words, its button beside it (below it on a phone). */
.connections { overflow-wrap: anywhere; }
.connection-list { list-style: none; margin: 0; padding: 0; display: grid; }
.connection-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.connection-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.connection-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
/* AUDIT-054M M1: "Connect to <sub-account> (its id ends ...)" wraps on a phone rather than pushing the page sideways. */
.connection-actions .btn { white-space: normal; max-width: 100%; text-align: center; }

/* ORDER 036 S1: Stores and Transfers in the seller's room. */
.note-ok { background: var(--good-bg); color: var(--good); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check-row input[type="checkbox"], .check-row input[type="radio"] { width: 22px; height: 22px; }
.check-row input[inputmode="numeric"] { min-height: 44px; width: 80px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; }
.choice-set { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }

/* ORDER 036 S2: special orders. A late order says "Late" in words; the colour only underlines it. */
.late-flag { display: inline-block; padding: 0 10px; border-radius: 999px; background: #FBE7E7; color: #A1262B; font-weight: 800; font-size: 14px; }
.order-card-online { display: inline-block; text-align: left; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
/* BUILD-FIX036C (WALK-036C F6): a board card wraps inside its column at 390 (a button keeps to one line). */
.btn:has(> .order-card-online) { max-width: 100%; justify-content: flex-start; padding-top: 8px; padding-bottom: 8px; }
.receipt-words { white-space: pre-wrap; font: 14px/1.5 ui-monospace, Consolas, monospace; margin: 0; }

.sf-order-policy { margin: 12px 0; padding: 12px 14px; border: 1px solid #DCE4E5; border-radius: 12px; font-size: 15px; }
.sf-order-policy ul { margin: 6px 0 0; padding-left: 20px; }

/* WALK-036A M3, M8: the stores' and transfers' cards have room inside; a short label never breaks inside a word. */
.store-box { padding: 16px 20px; margin: 12px 0; }
.sf-row > .sf-row-label { flex: 0 0 auto; white-space: nowrap; }
.sf-row > .sf-addr { min-width: 0; overflow-wrap: anywhere; }

/* ORDER 036 S3: the delivery floor. A status is its word with a coloured dot beside it, never the colour alone. */
.floor-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.floor-status { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 26px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.floor-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.floor-status.tone-wait { color: var(--muted); }
.floor-status.tone-ready { color: var(--indigo); background: var(--indigo-bg); border-color: var(--indigo-bg); }
.floor-status.tone-go { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-soft); }
.floor-status.tone-done { color: var(--good); background: var(--good-bg); border-color: var(--good-bg); }
.floor-status.tone-hold { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-bg); }
.floor-status.tone-problem { color: #A1262B; background: #FBE7E7; border-color: #FBE7E7; }
.floor-status.tone-back { color: var(--ink); background: var(--stone); border-color: var(--stone); }
.floor-stop { border-top: 1px solid var(--line-soft); padding: 12px 0; overflow-wrap: anywhere; }
.floor-stop:first-of-type { border-top: 0; }
.floor-stop p { margin: 4px 0; }
.floor-warn { color: var(--amber); background: var(--amber-bg); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.floor-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.floor-month-head { font-weight: 700; font-size: 13px; color: var(--muted); text-align: center; }
.floor-month-day { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 72px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; overflow: hidden; }
.floor-month-day.is-off { background: var(--ground); }
.floor-month-day .floor-status { font-size: 12px; min-height: 22px; padding: 0 6px; white-space: normal; }
.floor-month-day:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.floor .row-gap label { min-width: 0; }
@media (max-width: 640px) {
  .floor-month { gap: 2px; }
  .floor-month-day { min-height: 56px; padding: 3px; font-size: 13px; }
  .floor-month-day .floor-status { font-size: 12px; padding: 0 3px; }
  .floor-month-day .floor-status::before { width: 6px; height: 6px; }
}

/* ORDER 036 S5: commission, regulated fees, a product's serial, fee and as-is, who bought serial: every box 44px tall, every choice a 44px label. */
.s5-form input:not([type=checkbox]):not([type=radio]), .s5-form select { min-height: 44px; max-width: 100%; padding: 0 10px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.s5-form label:has(> input[type=checkbox]), .s5-form label:has(> input[type=radio]) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; }
.s5-form .row-gap label { min-width: 0; max-width: 100%; }
.s5-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* BUILD-FIX-CONNECT2 (AUDIT-054K C1): an install started outside Keystone, and the question that confirms it, set apart. */
.connection-install, .connection-confirm { display: grid; gap: 8px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.connection-install p, .connection-confirm p { margin: 0; }
.connection-install { border-color: var(--amber); background: var(--amber-bg); }
/* WALK-CONNECT-B M2: the words after an action stop clear of the phone's bottom tabs when brought into view. */
.connection-said, .connection-confirm { scroll-margin-bottom: 24px; }
@media (max-width: 720px) { .connection-said, .connection-confirm { scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ORDER 043: Inventory in the seller app (DESIGN-043 in the phone frame): the six lines, the lists behind them, one item,
   what to order, purchase orders, counting. On the same tokens; every flag carries its word; nothing under 12px. */
.inv-home > * + *, .shelf > .inv-six { margin-top: 12px; }
/* WALK-043 m8, WALK-043B n1: on a phone and on a desktop the six lines start on the first screen: the find box and the
   lines come straight after the heading, then the one action, the up-front buttons (count, receive, transfer, orders)
   and the store switcher. */
.inv-home { display: flex; flex-direction: column; gap: 12px; }
.inv-home > *, .inv-home > * + * { order: 6; margin-top: 0; margin-bottom: 0; }
.inv-home > h1 { order: 0; }
.inv-home > .muted:first-of-type { order: 1; }
.inv-home > .inv-find { order: 2; }
.inv-home > .inv-six, .inv-home > [data-testid="inv-found"] { order: 3; }
.inv-home > [data-testid="inv-watching"] { order: 4; }
.inv-home > .inv-primary { order: 4; }
.inv-home > .inv-upfront, .inv-home > .inv-showing { order: 5; }
.inv-pad { padding: 14px 18px; }
.inv-back { margin: 0 0 8px; font-weight: 700; }
.inv-upfront { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.inv-up { flex: 1 1 0; min-width: 76px; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-btn);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.inv-showing { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 12px 0; }
.inv-showing select, .inv-find input, .inv-search, .items-find input, .items-find select { min-height: 48px; padding: 0 14px; border-radius: var(--radius-btn);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.inv-find { margin: 12px 0; }
.inv-find input, .inv-search { width: 100%; }
.items-find { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.items-find input { flex: 1 1 220px; }
.inv-six { display: flex; flex-direction: column; padding: 2px 0; }
.inv-line { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 64px; }
.inv-line:last-child { border-bottom: 0; }
.inv-line-head { display: flex; align-items: baseline; gap: 10px; }
.inv-line-name { font-weight: 700; font-size: 17px; }
.inv-line-num { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.inv-line-num.is-buy { color: var(--amber); }
.inv-line-num.is-move { color: var(--indigo); }
.inv-line-num.is-held { color: var(--good); }
.inv-line-num.is-quiet { color: var(--muted); font-size: 18px; }
.inv-line-says { font-size: 16px; }
.inv-line-sub { color: var(--muted); font-size: 15px; }
.inv-also { margin-top: 12px; }
.inv-rows { list-style: none; margin: 12px 0; padding: 0; }
.inv-rows > li { border-bottom: 1px solid var(--line); }
.inv-rows > li:last-child { border-bottom: 0; }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; align-items: center; }
li.inv-row.is-last { background: var(--primary-soft); }
.inv-row-name { font-weight: 700; overflow-wrap: anywhere; }
.inv-row-count { font-weight: 800; text-align: right; white-space: nowrap; }
.inv-row-where { color: var(--muted); font-size: 15px; grid-column: 1; }
.inv-flag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 14px; justify-self: end; margin-left: 6px; }
.inv-flag-buy { background: var(--amber-bg); color: var(--amber); }
.inv-flag-move { background: var(--indigo-bg); color: var(--indigo); }
.inv-flag-held, .inv-flag-ok { background: var(--good-bg); color: var(--good); }
.inv-flag-plain { background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.inv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.inv-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.inv-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.inv-big { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0; }
.inv-big b { font-size: 28px; font-weight: 800; }
.inv-flagcard { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.inv-flagcard.is-buy { box-shadow: inset 4px 0 0 var(--amber); }
.inv-flagcard.is-move { box-shadow: inset 4px 0 0 var(--indigo); }
.inv-question { font-size: 18px; font-weight: 800; }
.inv-why summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.inv-why ul { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.inv-why li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 0; }
.inv-why li b { color: var(--ink); }
.inv-why .inv-sum { color: var(--ink); font-weight: 700; border-top: 1px dashed var(--line); padding-top: 6px; }
.inv-facts { margin: 12px 0; }
.inv-fact { display: flex; flex-direction: column; gap: 4px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.inv-fact:last-child { border-bottom: 0; }
.inv-fact > b { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.inv-hist { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.inv-hist li { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.inv-form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.inv-form label, .inv-inline label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.inv-form input, .inv-form select, .inv-inline input, .inv-oline input:not([type="checkbox"]) { min-height: 48px; padding: 0 12px; border-radius: var(--radius-btn);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.inv-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0; }
.inv-qty { width: 88px; text-align: center; font-weight: 800; }
.inv-radio { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; min-height: 44px; }
.inv-group { margin: 12px 0; overflow: hidden; }
.inv-oline { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px 12px 6px; border-top: 1px solid var(--line); }
.inv-oline.is-off { opacity: .6; }
.inv-tick input { width: 24px; height: 24px; margin: 10px; }
.inv-oqty { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.inv-po { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.inv-polines { margin: 0; padding-left: 18px; }
.inv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-rcv { border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
.inv-text { white-space: pre-wrap; font: 15px/1.5 ui-monospace, Consolas, monospace; margin: 0; }
.inv-tally { font-size: 18px; font-weight: 700; color: var(--indigo); background: var(--indigo-bg); border-radius: var(--radius-card); padding: 10px 16px; margin: 12px 0; }
.inv-tally b { font-size: 40px; }
@media (max-width: 600px) {
  .inv-oline { grid-template-columns: 40px minmax(0, 1fr); }
  .inv-oqty { grid-column: 2; align-items: flex-start; }
}
@media print {
  .room-bar, .room-nav, .tab-bar, .inv-back, .inv-po, .shelf > h1, .shelf > p { display: none !important; }
}
/* ORDER 063: the Today lines, phone first. Each line one sentence, the whole row a tap at least 56px tall; the list behind it. */
.today-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.today-line { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 2px; min-height: 56px; width: 100%;
  padding: 14px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card);
  text-decoration: none; text-align: left; font: inherit; cursor: pointer; box-sizing: border-box; }
.today-line:hover, .today-line:focus-visible { border-color: var(--ink); color: var(--ink); }
.today-line-words { font-size: 19px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.today-line-hint { grid-column: 1; color: var(--muted); font-size: 15px; }
.today-line-go { grid-column: 2; grid-row: 1 / span 2; font-size: 28px; color: var(--muted); line-height: 1; }
.today-back { align-self: flex-start; }
.today-list-words { font-size: 19px; font-weight: 700; margin-top: 6px; }
.today-group { padding: 6px 16px; }
.today-group h2 { font-size: 17px; margin: 10px 0 4px; }
.today-items { list-style: none; margin: 0; padding: 0; }
.today-item { border-top: 1px solid var(--line-soft); }
.today-item:first-child { border-top: 0; }
.today-item-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 0;
  color: var(--ink); text-decoration: none; }
a.today-item-row:hover .today-item-words b { text-decoration: underline; }
.today-item-words { flex: 1 1 220px; overflow-wrap: anywhere; }
.today-full { align-self: flex-start; }
.staff-today { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.staff-today h2 { font-size: 20px; }

/* [[SIG | ID:online-web-demo-styles | TYPE:module | DOMAIN:online | STATUS:ACTIVE]] */
/* THE DEMO, ORDER 016: the opening, the one switch between the two faces, the storefront's phone,
   the register's frame and the "show it to someone" mode. Appended to the site's stylesheet by
   online/web/build.mjs, after it, so the demo's rules sit apart from the pages' (styles.css keeps
   the ORDER 011 demo rules these build on). Every target is 44px or more; nothing is under 12px. */
.demo [hidden] { display: none !important; }
.demo-bar { flex-wrap: wrap; }
.demo-bar-shop { font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.demo-again { margin-left: auto; }

/* The opening: two quiet choices. */
.demo-opening { padding: 28px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 760px; }
.demo-kinds { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; width: 100%; }
.demo-opening-q { font-size: 20px; font-weight: 800; padding: 0; }
.demo-optional { color: var(--muted); font-weight: 600; font-size: 16px; }
.demo-kind-list { display: flex; flex-wrap: wrap; gap: 10px; }
/* WALK-050S 28: a long answer wraps to two lines on a phone; its words keep off the button's edges. */
.demo-kind { white-space: normal; text-align: left; padding: 10px 18px; line-height: 1.3; }
.demo-kind[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.demo-name { width: 100%; max-width: 420px; }
.demo-name input { font-size: 18px; }

/* The stage: the one switch, the guide line, then the face. */
.demo-stage { display: flex; flex-direction: column; }
.demo-faces { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--ground); }
.demo-face { min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); font: inherit;
  font-weight: 800; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.demo-face[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.demo-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.demo-stage > .demo-guide-line { padding: 12px 18px 0; color: var(--primary-hover); }
.demo-stage > .demo-problem-box { padding: 12px 18px 0; }

/* The storefront's phone. */
.demo-phone-head { display: flex; align-items: center; gap: 10px; }
.demo-mono { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.demo-phone-name { min-width: 0; overflow-wrap: anywhere; }
.demo-phone-foot { padding: 10px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.demo-card { position: relative; }
.demo-card-kind { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.demo-card .pill { font-size: 12px; padding: 2px 8px; }
.demo-buy-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* The register's frame: its height follows the register, so the page scrolls, never the frame. */
.demo-register { padding: 0; }
.demo-register-frame { display: block; width: 100%; border: 0; background: var(--ground); }

/* The demo on its own page (/demo). */
.demo-page-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Show it to someone (/demo/show): the whole screen, no site header, still labelled Demo. */
.demo-show-page { min-height: 100vh; min-height: 100dvh; background: var(--ground); }
.demo-show { margin: 0; }
.demo-show .demo-window { border-radius: 0; border: 0; box-shadow: none; min-height: 100vh; min-height: 100dvh; }
.demo-show .demo-bar { min-height: 56px; padding: 8px 16px; }
.demo-show .demo-bar-text { font-size: 15px; }

@media (max-width: 720px) {
  .demo-opening { padding: 20px 16px; gap: 18px; }
  .demo-kind-list { flex-direction: column; align-items: stretch; width: 100%; }
  .demo-opening-go, .demo-opening-go .btn { width: 100%; }
  .demo-faces { padding: 8px; }
  .demo-stage > .demo-guide-line, .demo-stage > .demo-problem-box { padding: 10px 14px 0; }
  .demo-phone-items { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; max-height: none; overflow: visible; }
  .demo-bar-text { font-size: 13px; }
}
@media (max-width: 380px) {
  .demo-phone-items { grid-template-columns: 1fr; }
}

/* ---- BUILD-POLISH2 (WALK-DEMO016) ------------------------------------------------------------- */
/* One "Demo", on the bar, kept in sight as the page scrolls (2, 11). The window clips its corners
   without making a scroll box of its own, so the bar can stick. The site's header stays at the top
   above 720px, so the bar sits under it there; on a phone the header scrolls away. */
.demo-window { overflow: clip; }
.demo-bar { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); }
.site-frame .demo-bar { top: var(--demo-bar-top, 69px); }
.demo-stage, .demo-toolbox, .demo-signup { scroll-margin-top: calc(var(--demo-bar-top, 69px) + 56px); }
@media (max-width: 720px) {
  .site-frame .demo-bar { top: 0; }
  .demo-stage, .demo-toolbox, .demo-signup { scroll-margin-top: 56px; }
}
.demo-show .demo-bar { top: 0; }
.demo-show :is(.demo-stage, .demo-toolbox, .demo-signup) { scroll-margin-top: 56px; }
/* What an order's total is made of (3). */
.demo-makeup { margin: 0; color: var(--muted); font-size: 14px; }
.order-who .order-makeup { color: var(--muted); font-size: 13px; }
/* The register's total with CASH and CARD, kept at the foot of the screen while its own are out of sight (9). */
.demo-paybar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 30, 33, 0.10); }
.demo-paybar-total { display: flex; flex-direction: column; margin-right: auto; min-width: 0; font-size: 14px; color: var(--muted); }
.demo-paybar-total b { color: var(--ink); font-size: 18px; }
.demo-paybar .btn { min-height: 52px; min-width: 88px; font-weight: 800; }

/* ---- ORDER 026: where do you sell? ------------------------------------------------------------- */
/* The Demo bar is one compact row at any width (WALK-021: two rows, 95px, covered the guide line). */
.demo-bar { flex-wrap: nowrap; }
.demo-bar-text { white-space: nowrap; flex: 0 0 auto; }
.demo-bar-shop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; flex: 1 1 auto; }
.demo-again { flex: 0 0 auto; }
@media (max-width: 480px) {
  .demo-bar { gap: 8px; padding: 4px 8px 4px 12px; }
  /* The storefront and the register say the shop's name; the bar keeps Demo, Nothing saved and Start over. */
  .demo-bar-shop { display: none; }
}
/* The opening: the four places, each a whole line. */
.demo-where-list { flex-direction: column; align-items: stretch; width: 100%; max-width: 560px; }
.demo-where { justify-content: flex-start; text-align: left; min-height: 52px; }
.demo-skip { min-height: 44px; }
/* The four ways to sell, one row. */
.demo-wheres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-wheres .demo-face { padding: 0 6px; text-align: center; line-height: 1.15; }
@media (max-width: 480px) { .demo-wheres .demo-face { font-size: 14px; } }
/* The journey: one quiet line. */
.demo-stage > .demo-journey { margin: 0; padding: 10px 18px 0; color: var(--muted); font-size: 15px; }
.demo-journey-try { border: 0; background: none; padding: 0 2px; min-height: 44px; font: inherit; font-weight: 800; color: var(--primary-hover); cursor: pointer; text-decoration: underline; }
/* A counter: the alerts beside the register. */
.demo-alerts { margin: 12px 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.demo-alerts h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.demo-alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-alert-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Both: the one true count, front and centre; the store and the counter side by side on a tablet. */
.demo-onecount { margin: 12px 18px 0; padding: 16px; border-radius: var(--radius-card); border: 2px solid var(--ink); background: var(--surface);
  display: flex; flex-direction: column; gap: 10px; }
.demo-onecount-head { display: flex; flex-direction: column; gap: 2px; }
.demo-onecount-name { font-size: 20px; font-weight: 800; }
.demo-onecount-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-onecount-sides span { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-btn); background: var(--ground); }
.demo-onecount-sides small { font-size: 13px; color: var(--muted); font-weight: 700; }
.demo-onecount-sides b { font-size: 18px; }
.demo-onecount-gone { border-color: var(--primary); }
.demo-onecount-say { margin: 0; font-weight: 700; }
.demo-onecount-where { margin: 0; font-size: 14px; color: var(--muted); }
.demo-both-store { padding: 12px 18px 18px; min-width: 0; }
.demo-counter { min-width: 0; }
@media (min-width: 760px) {
  .demo-stage-both { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .demo-stage-both > * { grid-column: 1 / -1; }
  .demo-stage-both > .demo-both-store { grid-column: 1; }
  .demo-stage-both > .demo-counter { grid-column: 2; }
}
@media (max-width: 720px) {
  .demo-stage > .demo-journey { padding: 10px 14px 0; }
  .demo-alerts, .demo-onecount { margin: 10px 14px 0; }
}

/* WALK-022: every demo text at 4.5:1 or more (3:1 large). The demo's quietest words use --muted, not
   --faint (4.41:1 on white at 13px), and the demo stays the light product it is in dark mode on its
   own page too (/demo), as it already does in Home's slot. */
.demo { --faint: var(--muted); }
@media (prefers-color-scheme: dark) {
  .site-frame .demo {
    --ink: #0F1E21; --ground: #F4F7F7; --surface: #FFFFFF; --line: #DCE4E5; --line-soft: #EEF2F3;
    --muted: #4A5A5E; --faint: #4A5A5E; --primary: #0E7490; --primary-hover: #0A5568; --primary-soft: #E6F4F7; --on-primary: #FFFFFF;
    --good: #2B6649; --good-bg: #E4F1EA; --amber: #94470A; --amber-bg: #FDEFDD; --indigo: #3D39B0; --indigo-bg: #ECEBFC; --stone: #E9EFF0;
    color-scheme: light; color: var(--ink);
  }
}

/* ---- BUILD-POLISH3 (WALK-026) ----------------------------------------------------------------- */
/* S1: the second question, brought into view under the site's header and the demo's bar. */
.demo-opening [data-question="what"] { scroll-margin-top: calc(var(--demo-bar-top, 69px) + 64px); }
.demo-show .demo-opening [data-question="what"] { scroll-margin-top: 72px; }
/* 1: the sample label, drawn as a label is: a white card, a heavy border, the address large. */
.demo-label-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.demo-label { width: 100%; max-width: 380px; padding: 14px 16px; background: #FFFFFF; color: #0F1E21; border: 2px solid #0F1E21; border-radius: 6px;
  display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.demo-label-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 8px; border-bottom: 2px solid #0F1E21; }
.demo-label-head b { font-size: 22px; font-weight: 800; letter-spacing: 0.12em; }
.demo-label-head span { font-size: 14px; font-weight: 700; }
.demo-label-part { display: flex; flex-direction: column; gap: 2px; }
.demo-label-part small { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #4A5A5E; }
.demo-label-part > span { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.demo-label-to > span { font-size: 18px; font-weight: 700; }
.demo-label-bars { height: 56px; background: repeating-linear-gradient(90deg, #0F1E21 0 2px, transparent 2px 5px, #0F1E21 5px 6px, transparent 6px 9px, #0F1E21 9px 12px, transparent 12px 14px); }
.demo-label-number { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; }
.demo-label-acts { display: flex; gap: 10px; }
/* Print it: the label alone, nothing else of the page. */
@media print {
  body.demo-printing * { visibility: hidden !important; }
  body.demo-printing .demo-label-printing, body.demo-printing .demo-label-printing * { visibility: visible !important; }
  body.demo-printing .demo-label-printing { position: absolute; left: 0; top: 0; max-width: 4in; border-color: #000; }
}
/* 2: Both's one count lands under the header and the demo's bar when it is brought into view, and its
   flip to Sold out is marked as it happens. On a tablet the store's column stays in sight beside the
   register, so it is never a blank column while the register is sold from. */
.demo-onecount { scroll-margin-top: calc(var(--demo-bar-top, 69px) + 64px); }
.demo-show .demo-onecount { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: no-preference) {
  .demo-onecount-gone { animation: demo-flip 1.2s ease-out 1; }
  @keyframes demo-flip { from { box-shadow: 0 0 0 8px var(--primary-soft); } to { box-shadow: 0 0 0 0 transparent; } }
}
@media (min-width: 760px) {
  .demo-stage-both > .demo-both-store { position: sticky; top: calc(var(--demo-bar-top, 69px) + 56px); }
  .demo-show .demo-stage-both > .demo-both-store { top: 56px; }
}

/* ---- ORDER 050 (BUILD-050G): easy to read, then drill down ------------------------------------ */
/* The opening: Skip stands apart from the answers, a quiet word with what it does beside it. */
.demo-skip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.demo-skip-row .demo-skip { border-color: transparent; background: none; padding: 0 4px; font-weight: 800; color: var(--primary-hover);
  text-decoration: underline; text-underline-offset: 3px; }
.demo-skip-row .demo-optional { font-size: 15px; }
@media (max-width: 720px) { .demo-skip-row .demo-skip { width: auto; } }
/* Money: the take-home large, then two quiet lines; each sale one tap down. */
.demo-money-top { gap: 2px; }
.demo-money-top .money-big { font-size: 44px; line-height: 1.1; }
.demo-money-under { margin-top: 10px; border-top: 1px solid var(--line-soft); }
.demo-money-under .money-line:last-child { border-bottom: 0; padding-bottom: 0; }
.demo-money-each { margin: 6px 0 0; font-size: 16px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.demo-money-each span { font-size: 14px; font-weight: 600; color: var(--muted); }
@media (max-width: 720px) { .demo-money-top .money-big { font-size: 38px; } }
/* Orders: the pile's count beside its name; a done order is one line, opened by a tap; your own
   tracking number waits one tap down. */
.demo-pile-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; margin-left: 6px;
  border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 15px; vertical-align: 2px; }
.orders-done .order-card { padding: 0; }
.demo-order-fold > summary { min-height: 56px; padding: 12px 20px; align-items: center; cursor: pointer; list-style: none; }
.demo-order-fold > summary::-webkit-details-marker { display: none; }
.demo-order-fold > summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-left: 4px; }
.demo-order-fold[open] > summary::after { transform: rotate(-135deg); }
.demo-order-fold > summary .order-who { margin-right: auto; }
.demo-order-fold > summary .order-who b { font-size: 16px; }
.demo-order-fold-body { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.demo-order-fold-body .order-makeup { color: var(--muted); font-size: 13px; }
.demo-paste > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--primary-hover); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.demo-paste > summary::-webkit-details-marker { display: none; }
.demo-paste[open] > summary { margin-bottom: 6px; }
@media (max-width: 720px) {
  .demo-order-fold > summary { padding: 12px 16px; flex-wrap: nowrap; }
  .demo-order-fold-body { padding: 0 16px 14px; }
}

/* WALK-050S 9: the site's header is solid over the demo: see-through, the page scrolling under it
   showed as faint ghost words above the Demo bar. */
:root:has(.demo) .site-header { background: var(--ground); }

/* ---- BUILD-050AC: the start limit (WALK-050X F1, F16), a closed demo said (F8), the tour again (F13) */
/* At the limit: one plain line with the time, never red; the choices stay drawn, not pressable (.btn:disabled). */
.demo-wait, .demo-closed { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.45; }
.demo-wait { color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: var(--radius-btn); background: var(--line-soft); }
.demo-closed { color: var(--muted); font-weight: 600; }
/* The Demo bar's Tour sits beside Start over, and the bar stays one row. */
.guide-again { margin-left: auto; flex: 0 0 auto; }
.guide-again + .demo-again { margin-left: 0; }
/* BUILD-050AG: Start over at the limit: the open demo stays, and the wait is said on the Demo bar, its own row. */
.demo-bar .demo-bar-wait { flex: 1 0 100%; max-width: none; font-size: 15px; padding: 8px 12px; }
/* The bar is one row (nowrap above); only while the wait is said does it take a second row for it. */
.demo-bar:has(.demo-bar-wait) { flex-wrap: wrap; }

/* ---- BUILD-050AO (WALK-050AM A15): the Demo bar's controls whole on a phone ------------------- */
/* With Tour beside Start over (the tour declined or skipped) the bar ran past its edge at 390 and
   360 and Start over read "Star". On a phone the buttons keep their size and come first: "Nothing
   here is saved." takes the room left and wraps to a second line, and the buttons' sides are
   narrower. The shop's name stays off the bar there (the storefront and the register say it).
   Only what cannot fit beside them (the show mode's Full screen, a third button) takes a second row. */
@media (max-width: 480px) {
  .demo-bar { flex-wrap: wrap; row-gap: 4px; }
  .demo-bar .demo-bar-text { flex: 1 1 0; min-width: 120px; white-space: normal; gap: 6px; }
  .demo-bar .demo-tag { flex: 0 0 auto; }
  .demo-bar .demo-bar-saved { min-width: 0; font-size: 12px; line-height: 1.2; }
  .demo-bar > .btn { flex: 0 0 auto; padding: 0 12px; }
  .demo-show .demo-bar { padding: 4px 8px 4px 12px; gap: 8px; }
  .demo-show .demo-bar-text { font-size: 13px; }
}

/* ---- BUILD-050BO (WALK-050BN F1): Toolbox, Tour and Start over, one group on one row on a phone --- */
/* With Toolbox on the bar as well, Start over fell to a second row (101px at 390 and 360) and jumped
   left when Tour came. On a phone the three buttons keep 44px but take narrower sides and 15px words,
   sit together at the right (the first of them takes the spare room), and "Nothing here is saved."
   wraps beside the tag in the room left: one row, 53px, with or without Tour. The show mode on a phone
   says Demo and Nothing saved on a row of their own and its buttons, Full screen too, together under it. */
@media (max-width: 480px) {
  .demo-bar { gap: 6px; padding: 4px 8px 4px 10px; }
  .demo-bar .demo-bar-text { min-width: 0; }
  .demo-bar .demo-tag { padding: 0 7px; letter-spacing: 0.04em; }
  .demo-bar .demo-bar-saved { line-height: 1.15; }
  .demo-bar > .btn { padding: 0 9px; font-size: 15px; }
  .demo-bar > .demo-toolbox-open { margin-left: auto; }
  .demo-bar > .demo-toolbox-open ~ .btn { margin-left: 0; }
  .demo-show .demo-bar .demo-bar-text { flex: 1 0 100%; }
}

/* ---- ORDER 075: the demo's Your Keystone (ORDER 050's Toolbox), in place of the stage -------------------------- */
/* Opened from the Demo bar or the online screens' last slot; the stage stays drawn under it (hidden), so a sale in
   progress survives. Its rows are the shared screen's own (src/renderer/plan.css). */
.demo-toolbox { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.demo-toolbox-back { align-self: flex-start; }
@media (max-width: 480px) {
  .demo-toolbox { padding: 14px 12px 20px; }
}

/* ---- ORDER 050, the sign-up order: "Want Keystone for your shop? Sign up" ------------------ */
/* On the Demo bar, in its row where there is room; under 900px wide it takes a short row of its own at the
   bar's foot, so the bar's buttons keep their row. The sign-up opens in place of the stage, as the Toolbox does,
   and the stage stays drawn under it (hidden), so a sale in progress survives. */
.demo-signup-open { flex: 0 1 auto; margin-left: auto; min-height: 44px; border: 0; background: none; padding: 0 6px;
  font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.demo-signup-open b { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.demo-signup-open[aria-pressed="true"] b { text-decoration: none; }
/* WALK-050BQ F2-F4 (the lead's call): the bar stays one row at every width. Under 900px the button says
   "Sign up" alone, 44px tall, in the row before Toolbox; the question stays in its name for a screen reader
   ("Want Keystone for your shop? Sign up"), only out of sight. On a phone the row is drawn tight (4px
   gaps, 14px words, narrow sides) so Sign up, Toolbox and Start over fit beside "Demo" and "Nothing here is
   saved." at 390 and 360, 53px. "Nothing here is saved." never shrinks below its longest word: when the
   buttons cannot all fit beside it, the last takes a second row instead of running over the words. */
@media (max-width: 900px) {
  .demo-bar > .demo-signup-open { position: relative; flex: 0 0 auto; padding: 0 6px; }
  .demo-bar > .demo-signup-open ~ .demo-toolbox-open { margin-left: 0; }
  .demo-signup-ask { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 480px) {
  .demo-bar { gap: 4px; padding: 4px 6px; }
  .demo-bar .demo-bar-text { gap: 4px; min-width: auto; }
  .demo-bar .demo-bar-saved { min-width: auto; }
  .demo-bar .demo-tag { padding: 0 4px; }
  .demo-bar > .btn { padding: 0 6px; font-size: 14px; }
  .demo-bar > .demo-signup-open { padding: 0 2px; font-size: 14px; }
}
.demo-signup { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.demo-signup .signup-form { max-width: 560px; }
.demo-signup .signup-title { font-size: 28px; }
.demo .signup-form .signup-not-saved { color: #A1262B; }
@media (max-width: 480px) {
  .demo-signup { padding: 14px 12px 20px; }
  .demo-signup .signup-title { font-size: 24px; }
}

/* ---- WALK-050BY 1 (option A): Toolbox and Start over as icons on a phone ------- */
/* With Tour on the bar the row needed 361px against 344 (390) and 314 (360), so Start over took a second row
   (101px). On a phone Your Keystone and Start over are 44x44 buttons showing a picture (a switch; an arrow turning
   back), their words kept out of sight so their names stay "Toolbox" and "Start over", their titles the same
   words on a hover. The row is then 300px: one row, with or without Tour; the show mode's Full screen fits
   its button row. Above 480px nothing changes: the words, no picture. */
.demo-bar-icon { display: none; flex: none; }
@media (max-width: 480px) {
  .demo-bar > :is(.demo-toolbox-open, .demo-again) { position: relative; width: 44px; min-width: 44px; padding: 0; }
  .demo-bar > :is(.demo-toolbox-open, .demo-again) .demo-bar-icon { display: block; }
  .demo-bar > :is(.demo-toolbox-open, .demo-again) .demo-bar-word { position: absolute; left: 0; top: 0; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---- ORDER 075, Your Keystone, the plan home (src/renderer/PlanView.tsx) ----------------------------------
   One stylesheet for the shop's own Keystone and the demo: built into the desktop's app.css after styles.css
   and into the site's app.css after demo.css. Phone first: at 390 and 360 each row is the name and its words,
   full width, with the control at the right; every control 44px; the total's bar sticks to the foot of the
   screen and, being in the page's flow, never covers the last row once the page is scrolled to its end. */
.yk {
  --yk-on: var(--accent, var(--primary));
  --yk-ground: var(--bg, var(--ground));
  display: flex; flex-direction: column; gap: 16px; max-width: 760px; width: 100%;
}
.yk .yk-title { margin: 0; }
.yk .yk-lead { margin: 0; font-size: 17px; font-weight: 600; color: var(--muted); max-width: 64ch; }
.yk-sec { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.yk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 16px 18px 6px; }
.yk-head h3 { margin: 0; font-size: 19px; flex: 1 1 auto; min-width: 0; }
.yk-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
  background: var(--yk-ground); color: var(--ink); align-self: center; }
.yk-sec-core .yk-tag { background: var(--green-bg, var(--good-bg)); color: var(--green, var(--good)); }
.yk-sec-module .yk-tag { background: var(--indigo-bg); color: var(--indigo); }
.yk-sec-connection .yk-tag { background: var(--amber-bg); color: var(--amber); }
.yk-price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.yk-sub { margin: 0; padding: 0 18px 12px; color: var(--muted); font-size: 15px; }
.yk-list { list-style: none; margin: 0; padding: 0; }
.yk-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 68px; border-top: 1px solid var(--line); }
.yk-part { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yk-part b { font-size: 16px; }
.yk-part span { color: var(--muted); font-size: 15px; }
.yk-part .yk-note, .yk-part .yk-needs { font-size: 14px; font-style: italic; }
.yk-control { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.yk-cost { font-weight: 700; font-size: 15px; min-width: 3ch; text-align: right; white-space: nowrap; }
.yk-cost:empty { display: none; }
.yk-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--yk-ground); color: var(--ink); font-size: 14px; font-weight: 700; }
.yk-pill-quiet { color: var(--muted); font-weight: 600; }
.yk-pill-soon { color: var(--muted); font-weight: 600; }

/* The switch: a 44px tall target (60 wide) holding a 52x32 track. */
.yk-switch { flex: none; width: 60px; min-height: 44px; height: 44px; padding: 0; margin: 0; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 22px; }
.yk-track { position: relative; display: block; width: 52px; height: 32px; border-radius: 999px; background: var(--line);
  border: 1px solid var(--muted); transition: background .15s; }
.yk-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .15s; }
.yk-switch[aria-checked="true"] .yk-track { background: var(--yk-on); border-color: var(--yk-on); }
.yk-sec-module .yk-switch[aria-checked="true"] .yk-track { background: var(--indigo); border-color: var(--indigo); }
.yk-switch[aria-checked="true"] .yk-track::after { left: 23px; }
.yk-switch:disabled { cursor: default; opacity: .5; }
.yk-switch:focus-visible { outline: 3px solid var(--yk-on); outline-offset: 2px; }

/* Coming to Keystone (N): one line, one tap to open. */
.yk-coming { border-top: 1px solid var(--line); }
.yk-coming > summary { display: flex; align-items: center; min-height: 52px; padding: 4px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.yk-coming > summary::-webkit-details-marker { display: none; }
.yk-coming > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 10px;
  border: 1px solid var(--line); border-radius: 50%; font-weight: 800; flex: none; }
.yk-coming[open] > summary::before { content: "\2212"; }
.yk-row-soon b { color: var(--muted); }
.yk-part .yk-signin { align-self: flex-start; margin-top: 6px; min-height: 44px; }
.yk-sec-connection .yk-switch[aria-checked="true"] .yk-track { background: var(--amber); border-color: var(--amber); }

.yk-note-foot { margin: 0; color: var(--muted); }

/* The month's total, pinned at the foot of the screen. */
.yk-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.yk-sum { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.yk-sum-line b { font-size: 24px; }
.yk-sum-of { color: var(--muted); font-size: 14px; }
.yk-signup { flex: none; min-height: 44px; }

@media (max-width: 560px) {
  .yk-head { padding: 14px 14px 6px; }
  .yk-sub { padding: 0 14px 10px; }
  .yk-row { padding: 12px 14px; gap: 10px; }
  .yk-part span { font-size: 14px; }
  .yk-coming > summary { padding: 4px 14px; }
  .yk-bar { padding: 10px 14px; border-radius: 14px; }
}
/* Keystone Online on a phone: the bottom tabs are fixed over the foot of the screen, so the total sits above them. */
@media (max-width: 720px) {
  .room-with-tabs .yk-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* [[SIG | ID:online-web-demo-guide-styles | TYPE:module | DOMAIN:online | STATUS:ACTIVE]] */
/* THE DEMO'S GUIDED PATH (ORDER 050 item 3): the quiet line offering it over the visitor's shop, the card and
   its ring. Appended after the demo's own rules by online/web/build.mjs. Quiet: the site's own ink
   and surface, one accent for the ring, no motion beyond the page's own scroll. Every target 44px. */
.guide-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.guide-say { margin: 4px 0 0; font-size: 16px; color: var(--ink); line-height: 1.4; }
.guide-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.guide-acts .btn { min-height: 44px; }
/* ORDER 050, the sign-up order: the last step's question and its Sign up, under the step's own buttons. */
.guide-also { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 10px 0 0; font-weight: 600; }
.guide-also .btn { min-height: 44px; }

/* The quiet line, when a visitor opened a shop by hand. */
.demo-stage > .guide-line { margin: 0; padding: 8px 18px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 15px; }
.guide-line .tap { border: 0; background: none; padding: 0 4px; min-height: 44px; font: inherit; font-weight: 800; cursor: pointer; }
.guide-line-go { color: var(--primary-hover); text-decoration: underline; }
.guide-line-no { color: var(--muted); }

/* Following: a small card, never a dialog, and a ring that takes no taps. */
.guide-card { position: fixed; z-index: 30; box-sizing: border-box; padding: 12px 14px 12px 16px; background: var(--surface); color: var(--ink); text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 12px 32px rgba(15, 30, 33, 0.18); }
/* BUILD-050AN: under the card only. This sheet is joined to styles.css for every page, and a bare .guide-head
   also laid out the head of the one-page guide (/help/register): a row there, its Print button 10px past a phone. */
.guide-card .guide-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -6px 2px 0; }
.guide-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.guide-skip { min-height: 44px; }
.guide-number { margin: 6px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.guide-big { font-size: 28px; font-weight: 800; line-height: 1.1; }
.guide-was { font-size: 15px; color: var(--muted); }
/* WALK-050S 8: a thin line standing off what it goes round (Guide RING_PAD), no halo: a thicker ring
   with a halo ran across the words beside and inside it. */
.guide-ring { position: fixed; z-index: 29; pointer-events: none; box-sizing: border-box; border: 2px solid var(--primary);
  border-radius: 10px; }
.guide-spacer { pointer-events: none; }

@media (max-width: 720px) {
  .demo-stage > .guide-line { padding: 6px 14px 0; }
  .guide-title { font-size: 18px; }
  /* WALK-050S 30: a phone's card takes less of the screen, so more of the register stays in sight. */
  .guide-card { padding: 8px 12px 10px 14px; }
  .guide-say { font-size: 15px; line-height: 1.35; }
  .guide-acts { margin-top: 6px; }
  .guide-card .guide-head { margin-bottom: 0; }
  .guide-number { margin-top: 2px; }
  .guide-big { font-size: 22px; }
}
@media print { .guide-card, .guide-ring, .guide-spacer, .guide-line { display: none !important; } }
/* WALK-050X F5: the name of what sold, over its count. */
.guide-sold { flex-basis: 100%; font-size: 15px; font-weight: 700; color: var(--ink); }

/* [[SIG | ID:online-web-booth-styles | TYPE:module | DOMAIN:online | STATUS:ACTIVE]] */
/* ORDER 022: Sell in person, for a phone held in one hand in bright sun. Ink on white (well past 7:1),
   bold type, every tap target 48px or more, the cart and the two ways to be paid docked at the bottom
   where the thumb is. Built at 390 wide; wider screens only centre it. */
.booth-page { max-width: 560px; margin: 0 auto; padding: 8px 16px 0; min-height: 100vh; background: #FFFFFF; }
.booth-back { min-height: 44px; display: flex; align-items: center; }
.booth { display: flex; flex-direction: column; gap: 12px; color: #0F1E21; padding-bottom: 8px; }
.booth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booth-title h1 { font-size: 24px; font-weight: 800; }
.booth-shop { color: var(--muted); font-weight: 600; font-size: 15px; }
.booth-signal { padding: 12px 14px; border-radius: var(--radius-btn); background: #FFF1D6; color: #5A2B00; font-weight: 700; border: 2px solid #94470A; }
.booth-sent { margin: 0; color: var(--good, #2B6649); font-weight: 700; }
.booth-signal-switch[aria-pressed="true"] { background: #5A2B00; border-color: #5A2B00; color: #FFFFFF; }
.booth-kept { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-btn); border: 2px solid #0F1E21; background: #FFFFFF; }
.booth-kept-head { min-height: 48px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; background: none; border: 0; padding: 0;
  font: inherit; font-weight: 800; font-size: 17px; color: #0F1E21; text-align: left; cursor: pointer; }
.booth-refused-count, .booth-refused { color: #A1262B; }
.booth-kept-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.booth-kept-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 8px; }
.booth-kept-list li > span:last-child { grid-column: 1 / -1; font-weight: 700; }
.booth-waiting { color: #5A2B00; }
.booth-search input { width: 100%; min-height: 52px; padding: 0 14px; border-radius: var(--radius-btn); border: 2px solid #0F1E21;
  font: inherit; font-size: 18px; color: #0F1E21; background: #FFFFFF; }
.booth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.booth-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booth-tile { position: relative; width: 100%; min-height: 96px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; border-radius: var(--radius-btn); border: 2px solid #0F1E21; background: #FFFFFF; color: #0F1E21; font: inherit; cursor: pointer; }
.booth-tile:active { background: var(--primary-soft); }
.booth-tile-name { font-weight: 800; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.booth-tile-price { font-weight: 800; font-size: 18px; }
.booth-tile-count { font-size: 14px; font-weight: 700; color: #2B3B3F; }
.booth-tile-out { color: #A1262B; }
.booth-tile-in { position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; border-radius: 15px; background: #0F1E21; color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.booth-dock { position: sticky; bottom: 0; z-index: 3; margin: 4px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #FFFFFF; border-top: 2px solid #0F1E21; display: flex; flex-direction: column; gap: 10px; }
.booth-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 34vh; overflow-y: auto; }
.booth-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.booth-line-name { font-weight: 700; overflow-wrap: anywhere; }
.booth-line-total { font-weight: 800; min-width: 72px; text-align: right; }
.booth-qty { display: inline-flex; align-items: center; gap: 6px; }
.booth-qty b { min-width: 24px; text-align: center; font-size: 18px; }
.booth-step { min-height: 48px; width: 48px; padding: 0; font-size: 22px; border: 2px solid #0F1E21; }
.booth-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 700; }
.booth-sum b { font-size: 28px; font-weight: 800; }
.booth-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booth-pay .btn { width: 100%; min-height: 60px; font-size: 20px; white-space: normal; }
.booth-pay .btn-dark:disabled, .booth-pay .btn-primary:disabled { opacity: .45; }
.booth-note { color: #2B3B3F; font-weight: 600; }
.booth-problem { margin: 0; }
.booth-cash, .booth-card, .booth-done { display: flex; flex-direction: column; gap: 12px; }
.booth-big-total { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.booth-given { min-height: 64px; padding: 0 16px; border-radius: var(--radius-btn); border: 2px solid #0F1E21; font: inherit; font-size: 30px; font-weight: 800;
  color: #0F1E21; background: #FFFFFF; width: 100%; }
.booth-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.booth-quick .btn { min-height: 52px; font-size: 18px; border: 2px solid #0F1E21; }
.booth-change, .booth-big-change { font-size: 24px; font-weight: 700; text-align: center; min-height: 36px; }
.booth-change b, .booth-big-change b { font-size: 34px; font-weight: 800; }
.booth-qr { width: min(300px, 80vw); height: auto; align-self: center; border: 2px solid #0F1E21; border-radius: 8px; }
.booth-card-say, .booth-card-state { text-align: center; font-weight: 700; }
.booth-short { padding: 12px 14px; border-radius: var(--radius-btn); background: #FFF1D6; color: #5A2B00; font-weight: 700; }
.booth-done h2 { font-size: 28px; font-weight: 800; }
.booth-receipt { display: flex; flex-direction: column; gap: 8px; }
.booth-receipt input { min-height: 52px; padding: 0 14px; border-radius: var(--radius-btn); border: 2px solid #0F1E21; font: inherit; font-size: 17px; }
.booth-next { width: 100%; min-height: 60px; }

/* The buyer's own phone: /pay/<ref>. */
.booth-buyer { max-width: 520px; margin: 0 auto; padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.booth-buyer-head h1 { font-size: 26px; font-weight: 800; }
.booth-handed { font-weight: 700; color: var(--good); }
.booth-buyer-card { padding: 16px; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.booth-buyer-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.booth-buyer-lines li, .booth-buyer-row { display: flex; justify-content: space-between; gap: 12px; }
.booth-buyer-total { font-size: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.booth-buyer-done h2 { font-size: 24px; font-weight: 800; }
.booth-processed { color: var(--muted); font-size: 14px; }
/* WALK-022 (3): the credit at the foot reads in bright sun (--faint was 4.09:1 on the ground; --muted is well past 4.5:1). */
.booth-buyer .powered-by { color: var(--muted); }

/* Today's way in, and the demo's frame around the face. */
.today-sell { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.demo-booth { max-width: 460px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 16px 0; }
.demo-booth .booth-dock { margin: 4px -16px 0; border-radius: 0 0 var(--radius-card) var(--radius-card); }
/* ORDER 026, the demo: the code opens the buyer's checkout on this same screen. */
.booth-qr-open { align-self: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.booth-qr-open .booth-qr { display: block; }
.booth-demo-buyer { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-card); border: 2px dashed var(--line); background: var(--ground); }
.booth-demo-buyer-say { margin: 0; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.booth-demo-buyer .booth-buyer-head h2 { font-size: 22px; font-weight: 800; margin: 0; }

/* ORDER 033: an item's add-on choices (big targets) and the customer's tip step (equal buttons), for
   Sell in person, the storefront and the demo. */
.ks-addons, .ks-tip { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-card); border: 2px solid var(--ink); background: var(--surface); color: var(--ink); }
.ks-addons-title { font-size: 22px; font-weight: 800; margin: 0; }
.ks-addon-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ks-addon-group legend { font-size: 17px; margin-bottom: 6px; }
.ks-addon-asks { color: var(--muted); font-weight: 600; font-size: 15px; }
.ks-addon-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ks-addon-choice { min-height: 56px; padding: 8px 12px; border-radius: var(--radius-btn); border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; cursor: pointer; }
.ks-addon-choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: var(--primary-soft); }
.ks-addon-price { font-weight: 600; color: var(--muted); }
.ks-addon-each { margin: 0; font-size: 20px; font-weight: 800; display: flex; flex-direction: column; }
.ks-addon-words { font-size: 15px; font-weight: 600; color: var(--muted); }
.ks-addon-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ks-line-addons { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.ks-tip { align-items: stretch; text-align: center; }
.ks-tip-turn { margin: 0; padding: 10px 12px; border-radius: var(--radius-btn); background: var(--indigo-bg); color: var(--indigo); font-weight: 800; }
.ks-tip-total { margin: 0; font-size: 18px; }
.ks-tip-total b { font-size: 28px; margin-left: 6px; }
.ks-tip-ask { margin: 0; font-size: 26px; font-weight: 800; }
.ks-tip-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ks-tip-button { min-height: 88px; padding: 10px 6px; border-radius: var(--radius-card); border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ks-tip-label { font-size: 22px; font-weight: 800; }
.ks-tip-amount { font-size: 16px; color: var(--muted); font-weight: 600; }
.ks-tip-custom { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ks-tip-custom input { min-height: 64px; padding: 0 16px; border-radius: var(--radius-btn); border: 2px solid var(--ink); font: inherit; font-size: 30px; font-weight: 800; }
.ks-tip-nocut { margin: 0; color: var(--muted); font-weight: 600; }
/* ORDER 035: how much, on the phone: a big read-out and big keys. */
/* WALK-035 F2: the amount box takes the room beside its unit and never its own 20 characters' width
   (which pushed the page to 555px at 390); the unit ("fl oz") stays whole on its line, inside the sheet. */
.ks-amount-read { display: flex; align-items: center; gap: 10px; margin: 8px 0; min-width: 0; }
.ks-amount-read input { flex: 1 1 0; min-width: 0; width: 0; height: 60px; font-size: 30px; font-weight: 800; text-align: right; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 12px; background: var(--surface); color: var(--ink); }
.ks-amount-read span { font-size: 22px; font-weight: 700; min-width: 48px; flex: none; white-space: nowrap; }
.ks-amount-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }

/* [[SIG | ID:online-web-pwa-css | TYPE:module | DOMAIN:online | STATUS:ACTIVE]]
   ORDER 031: the phone app's own rules, after the site's and the booth's (online/web/build.mjs). */

/* The launch screen (areas/site.ts LAUNCH_SCREEN): the mark on the ground, only while the app has drawn nothing. */
.launch { display: none; }
#root:empty ~ .launch { display: flex; position: fixed; inset: 0; align-items: center; justify-content: center; background: var(--ground); }
#root:empty ~ .launch img { width: 88px; height: 88px; }

/* Installed, the page runs under the phone's status bar and above its home bar. */
.room-bar { padding-top: max(10px, env(safe-area-inset-top)); }

/* The bottom tabs: phone widths only. */
.tab-bar { display: none; }
@media (max-width: 720px) {
  .room-with-tabs .room-menu-button { display: none; }
  .tab-bar { display: flex; position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
    padding: 4px 4px max(4px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(15, 30, 33, 0.06); }
  .tab { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
  .tab:hover { color: var(--primary); }
  /* Room for the tabs under the page, so nothing hides behind them. */
  .room-with-tabs .room-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* More: every section, as a sheet over the page, above the tabs. */
  .room-with-tabs .room-nav-open { position: fixed; z-index: 14; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); max-height: min(70vh, 560px);
    overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -20px 40px rgba(15, 30, 33, 0.14); padding: 14px 16px; }
  .room-with-tabs .fix-panel { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* The quiet notes above a page. */
.app-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px; margin-bottom: 16px;
  border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.app-note-offline { background: var(--amber-bg); border-color: #F1D3AC; color: var(--ink); }
.app-note-updated { background: var(--primary-soft); border-color: #BFE3EA; max-width: 420px; }
.app-note-hint { background: var(--primary-soft); border-color: #BFE3EA; }
.app-note .btn { min-height: 44px; }
.app-note-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.as-of { font-size: 14px; font-weight: 700; color: var(--amber); }

/* The one question about notices, after the first order. */
.notice-ask { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.notice-ask-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.notice-ask-actions .btn { min-height: 48px; }
.get-app { margin-top: 16px; font-weight: 700; }

/* [[SIG | ID:style-approvals | TYPE:style | DOMAIN:approvals | STATUS:ACTIVE]] ORDER 040: approve it on your phone.
   The asking screen (a quiet wait), the phone's one card, the owner's banner, and Settings' section. */
.ask-phone-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(15, 30, 33, 0.45); }
.ask-phone { width: min(440px, 100%); padding: 22px; display: flex; flex-direction: column; gap: 12px; outline: none; }
.ask-phone h2 { font-size: 22px; font-weight: 800; margin: 0; }
.ask-phone-card { margin: 0; font-size: 17px; font-weight: 600; }
.ask-phone-wait { margin: 0; display: flex; align-items: center; gap: 10px; }
.ask-phone-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); opacity: .35; animation: ask-phone-breathe 2.4s ease-in-out infinite; }
@keyframes ask-phone-breathe { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ask-phone-dot { animation: none; opacity: .8; } }
.ask-phone-said { margin: 0; font-weight: 600; }
.ask-phone-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-phone-actions .btn { min-height: 48px; }

.approve-page { min-height: 100vh; background: var(--ground); }
.approve-bar { display: flex; align-items: center; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); }
.approve-main { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.approve-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.approve-card h1 { font-size: 26px; font-weight: 800; margin: 0; }
.approve-card h2 { font-size: 19px; font-weight: 800; margin: 0; }
.approve-card p { margin: 0; }
.approve-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.approve-item { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); display: flex; flex-direction: column; gap: 6px; }
.approve-what { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.approve-when { font-size: 14px; }
.approve-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.approve-actions .btn, .approve-card > .btn { min-height: 48px; }
.approve-said { font-weight: 600; color: var(--good); }
.approve-note { padding: 12px 16px; border-radius: var(--radius-btn); background: var(--primary-soft); border: 1px solid #BFE3EA; display: flex; flex-direction: column; gap: 8px; }
.approve-note p { margin: 0; }
.approve-note .btn { min-height: 44px; align-self: flex-start; }
.approve-banner { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; margin-bottom: 16px; text-decoration: none; color: var(--ink);
  border: 1px solid #BFE3EA; background: var(--primary-soft); min-height: 44px; }
.approve-banner span { overflow-wrap: anywhere; }

.approval-settings h3 { font-size: 16px; font-weight: 800; margin: 8px 0 0; }
.approval-rows, .approval-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.approval-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.approval-row > span { min-width: 0; overflow-wrap: anywhere; }
.approval-row .btn { min-height: 44px; }
.approval-group { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.approval-group legend { font-weight: 700; padding: 0 4px; }
.approval-switch { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.approval-switch input { width: 20px; height: 20px; flex: none; }
.approval-limits { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.approval-limits select { min-height: 44px; width: 100%; }
.approval-invite { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.approval-invite .booth-qr { width: min(220px, 100%); height: auto; }
.approval-link code { overflow-wrap: anywhere; word-break: break-all; font-size: 13px; }
.approval-add { display: flex; flex-direction: column; gap: 10px; }
.approval-add-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.approval-log-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.approval-log-what { font-weight: 600; overflow-wrap: anywhere; }
.approval-settings > .btn { align-self: flex-start; min-height: 44px; }

/* ORDER 074: staff sign-in on the phone (web/staff/StaffApp.tsx) and the Owner's People page (screens/seller/People.tsx). */
.staff-names { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-names .btn { min-height: 48px; }
.staff-pin-form { display: flex; flex-direction: column; gap: 10px; }
.staff-pin-form .btn { min-height: 48px; align-self: flex-start; }
.staff-qr { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.staff-qr .booth-qr { width: min(260px, 100%); height: auto; }
.staff-registered { display: flex; flex-direction: column; gap: 8px; }
.staff-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.staff-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.staff-row > span, .staff-row-who { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.staff-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-row .btn { min-height: 44px; }
.staff-phone { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.staff-act { padding: 6px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
/* BUILD-FIX-STAFF0: the question asked before something goes, a profile waiting for the Owner, a store PIN line kept whole. */
.staff-ask { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; overflow-wrap: anywhere; }
.staff-ask p, .staff-ask ul { margin: 0; }
.staff-waiting { font-weight: 600; }
.staff-pin-words { flex: 1 1 14rem; }

/* [[SIG | ID:online-web-crew-styles | TYPE:module | DOMAIN:online | STATUS:ACTIVE]] */
/* ORDER 036 S4: the crew phone (/app/crew), held in one hand at the door, and the customer's tracking page.
   Ink on white, every tap target 48px or more, built at 390 wide; nothing scrolls sideways. A colour is
   never alone: each state is a word. */
.crew-page { max-width: 560px; margin: 0 auto; padding: 12px 16px 32px; min-height: 100vh; background: #FFFFFF; color: #0F1E21;
  display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.crew-page h1 { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 0; }
.crew-page h2 { font-size: 19px; font-weight: 800; margin: 0; }
.crew-head { display: flex; flex-direction: column; gap: 6px; }
.crew-muted { color: #2B3B3F; font-weight: 600; }
.crew-ok { color: var(--good, #2B6649); font-weight: 700; }
.crew-asof { margin: 0; padding: 10px 12px; border-radius: var(--radius-btn); background: #FFF1D6; color: #5A2B00; font-weight: 700; border: 2px solid #94470A; }
.crew-unsent { margin: 0; padding: 10px 12px; border-radius: var(--radius-btn); background: #FBE7E7; color: #A1262B; font-weight: 800; border: 2px solid #A1262B; }
.crew-sent { list-style: none; margin: 0; padding: 0; color: var(--good, #2B6649); font-weight: 700; }
.crew-sent b { color: #5A2B00; margin-left: 6px; }
.crew-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-card); border: 2px solid #0F1E21; background: #FFFFFF; margin: 0; }
.crew-refused { border-color: #A1262B; }
.crew-done { font-weight: 800; }
.crew-address { font-size: 18px; font-weight: 700; margin: 0; }
.crew-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; }
.crew-two, .crew-three, .crew-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crew-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crew-two .btn, .crew-three .btn, .crew-outcomes .btn { width: 100%; min-height: 52px; white-space: normal; }
.crew-page .btn[aria-pressed="true"] { background: #0F1E21; border-color: #0F1E21; color: #FFFFFF; }
.crew-page .btn-big { width: 100%; min-height: 56px; white-space: normal; }
.crew-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.crew-tick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; font-weight: 700; }
.crew-tick input { width: 26px; height: 26px; }
.crew-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.crew-field input, .crew-field select { min-height: 52px; padding: 0 12px; border-radius: var(--radius-btn); border: 2px solid #0F1E21; font: inherit; font-size: 17px;
  color: #0F1E21; background: #FFFFFF; width: 100%; min-width: 0; box-sizing: border-box; }
.crew-warn { color: #A1262B; }
.crew-label { margin: 0; font-weight: 700; }
.crew-photo { position: relative; overflow: hidden; }
.crew-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.crew-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.crew-sign { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.crew-sign-pad { width: 100%; height: auto; aspect-ratio: 600 / 220; border: 2px dashed #0F1E21; border-radius: 8px; background: #FFFFFF; touch-action: none; }
.crew-qr { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-weight: 700; }
.crew-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.crew-stop-card { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; text-align: left; font: inherit; font-size: 16px;
  color: #0F1E21; background: #FFFFFF; border: 2px solid #0F1E21; border-radius: var(--radius-card); cursor: pointer; }
.crew-stop-name { font-size: 19px; font-weight: 800; }
.crew-collect { font-weight: 800; color: #5A2B00; }
/* WALK-036D N2: a stop waiting for the truck check says so in words. */
.crew-hold { font-weight: 800; color: #5A2B00; }
.crew-hold-card { border-color: #94470A; background: #FFF1D6; color: #5A2B00; }
.crew-hold-card p { margin: 0; font-weight: 600; }
.crew-stop { display: flex; flex-direction: column; gap: 12px; }
.crew-stop header { display: flex; flex-direction: column; gap: 6px; }

/* The customer's tracking page (/track/<link>): the step bar names each step; the colour only follows the word. */
.track-page { max-width: 520px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.track-page h1 { font-size: 26px; font-weight: 800; margin: 0; }
.track-status { font-size: 22px; font-weight: 800; margin: 0; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.track-steps li { padding: 10px 6px; border-radius: 8px; border: 2px solid var(--line); text-align: center; font-weight: 700; font-size: 15px; color: #2B3B3F; background: var(--surface); }
.track-steps li.is-done { border-color: var(--good, #2B6649); color: var(--good, #2B6649); background: var(--good-bg, #E3F1E9); }
.track-steps li.is-now { border-color: #0F1E21; color: #FFFFFF; background: #0F1E21; }

/* The owner's trip page: what the crew recorded. */
.proof-media { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-media figure { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.proof-media img { width: 160px; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; }
.proof-link { flex: 1 1 200px; min-width: 0; width: 100%; }
