/* #257 app shell: DESIGN.md applied to the owner, counter and sign-in screens (pass 1, #259). Customer pages keep their
   current layout until Josh approves the customer home (#256/#257 pass 2). Loaded last, so it settles the layered rules above it:
   one header, one navigation pattern per role, an 8px spacing scale, two type voices and quiet panels. Tokens match
   the front matter of DESIGN.md; change both together. */
:root{
 --ds-paper:#F7F0E2;--ds-surface:#FFF9EF;--ds-card:#F1E2C6;--ds-ink:#2E1F16;--ds-ink-soft:#4B2B1E;--ds-muted:#7A5A42;--ds-line:#DCC9A8;
 --ds-primary:#C63A2C;--ds-sun:#F4B63F;--ds-sun-soft:#FBE3A6;
 --ds-1:4px;--ds-2:8px;--ds-3:12px;--ds-4:16px;--ds-5:24px;--ds-6:32px;--ds-gutter:16px;
 --ds-r-sm:10px;--ds-r-md:14px;--ds-r-lg:18px;--ds-r-card:22px;
 --ds-display:"Lilita One",var(--cc-font-display,system-ui),sans-serif;--ds-body:"DM Sans",system-ui,sans-serif;
 --ds-lift:0 3px 0 var(--ds-ink);--ds-lift-pressed:0 1px 0 var(--ds-ink);
 --ds-column:480px;--ds-wide:960px;
}

/* ---------- Environment strip: one translated line for every role (replaces the English footer note). ---------- */
body[data-role]:not([data-role=customer]) .review:not(.demo-banner){display:flex!important;justify-content:space-between;align-items:center;gap:var(--ds-2);height:auto;min-height:28px;padding:4px max(var(--ds-gutter),calc((100vw - var(--ds-wide))/2));font:500 0.6875rem/1.3 var(--ds-body);letter-spacing:0;background:#EEDDBF;color:var(--ds-ink)}
body[data-role]:not([data-role=customer]) .review:not(.demo-banner) > *{min-width:0}
body[data-role]:not([data-role=customer]) .review:not(.demo-banner) a{color:inherit;font-weight:700;white-space:nowrap}

/* ---------- Header: 56px, mark left, language and account right, the same on every role. ---------- */
.demo-switch .review-quiet{flex:1 0 100%;text-align:center;font:500 0.75rem/1.3 var(--ds-body);color:var(--ds-muted);padding:2px 8px}
body[data-role]:not([data-role=customer]) #shop-label{display:none!important}

/* Only customers have an account page; owner and staff manage theirs from the footer. */
body[data-role]:not([data-role=customer]) > header .header-menu{display:none!important}
body:is([data-role=staff],[data-role=welcome]) > header #nav,body[data-role]:not([data-role=customer]) > header #nav:empty{display:none!important}

/* Owner: one segmented control under the header; hidden on the counter, which has its own way back. */
body[data-role=owner] > header #nav{order:10;flex:1 0 100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ds-1);position:static!important;transform:none!important;width:auto!important;margin:var(--ds-1) 0 0!important;padding:var(--ds-1);background:var(--ds-card);border-radius:999px}
body[data-role=owner] > header #nav a{display:flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:0 var(--ds-2);border:0!important;border-radius:999px;box-shadow:none!important;background:transparent;color:var(--ds-ink);font:600 0.875rem/1 var(--ds-body);text-decoration:none;white-space:nowrap}
body[data-role=owner] > header #nav a.active{background:var(--ds-ink)!important;color:var(--ds-surface)!important}
body[data-role=owner] > header #nav .nav-dot{top:6px;right:10px}
body[data-role=owner][data-route=counter] > header #nav{display:none!important}
@media (min-width:700px){body[data-role=owner] > header #nav{flex:0 0 360px;order:0;margin:0 var(--ds-2) 0 0!important}}

/* ---------- Main column and page heads ---------- */
/* #812 #909: the column is 480px, which is wider than a 390px phone, and this flex item
   does not shrink. Cap it at the screen so the owner overview does not scroll sideways.
   Sign-in stays on that 480px column. Owner and staff use the 960px column below. */
body[data-role]:not([data-role=customer]) main{max-width:min(100%,var(--ds-column))!important;min-height:0!important;margin:0 auto!important;padding:0 var(--ds-gutter)!important}
/* The 480px rule is body plus two attributes, so :is(owner, staff) alone (one attribute) loses
   and the wide max-width never applies. [data-role] ties that specificity and this rule is
   second, so it wins. width, not only max-width: margin:auto shrink-wraps a flex item to its
   content, which left the counter at 365px. min(100%, …) keeps a 390px phone inside the screen.
   Onboarding sets its own wider column and is excluded here. */
body[data-role]:is([data-role=owner],[data-role=staff]):not([data-route=onboarding]) main{width:min(100%,var(--ds-wide))!important;max-width:min(100%,var(--ds-wide))!important}
body[data-role]:not([data-role=customer]) .page-head{margin:var(--ds-4) 0!important;gap:var(--ds-3)}
body[data-role]:not([data-role=customer]) .page-head .eyebrow{font:700 0.75rem/1.2 var(--ds-body);letter-spacing:.06em}
body[data-role]:not([data-role=customer]) .page-head h1{font:400 1.75rem/1.05 var(--ds-display)!important;letter-spacing:0;margin:var(--ds-1) 0 0}
body[data-role]:not([data-role=customer]) .page-head.compact{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;margin:var(--ds-3) 0 var(--ds-4)!important}
body[data-role]:not([data-role=customer]) .page-head.compact h1{flex:1 1 auto;min-width:0;margin:0;font-size:1.375rem!important;line-height:1.1!important}
body[data-role]:not([data-role=customer]) .page-head.compact .btn{flex:none;width:auto;min-height:44px;margin:0!important;padding:0 14px;font-size:0.875rem;white-space:nowrap}

/* ---------- Buttons: lifted pills, one primary per view ---------- */
body[data-role]:not([data-role=customer]) main .btn{border-radius:999px;font-family:var(--ds-body);font-weight:700}
body[data-role]:not([data-role=customer]) main .btn:not(.light){border-width:1.5px;box-shadow:var(--ds-lift)}
body[data-role]:not([data-role=customer]) main .btn.light{border-width:1.5px;box-shadow:var(--ds-lift)}
body[data-role]:not([data-role=customer]) main .btn:active:not(:disabled){box-shadow:var(--ds-lift-pressed)}
body[data-role]:not([data-role=customer]) main .btn.full{margin-top:var(--ds-3)}

/* ---------- Panels: flat information; lift is only for things you press ---------- */
body[data-role]:not([data-role=customer]) main :is(.panel,.metric,.setup-section){border:1px solid var(--ds-line)!important;border-radius:var(--ds-r-lg)!important;background:var(--ds-surface)!important;box-shadow:none!important}
body[data-role]:not([data-role=customer]) main .panel{padding:var(--ds-4)!important;margin:0 0 var(--ds-3)!important}
body[data-role]:not([data-role=customer]) main .panel h2{font:700 1.125rem/1.25 var(--ds-body);margin:0 0 var(--ds-2)}
body[data-role]:not([data-role=customer]) main .panel h3{font:700 1rem/1.25 var(--ds-body);margin:0 0 var(--ds-2)}
body[data-role]:not([data-role=customer]) main .tiny{font-size:0.8125rem;line-height:1.4}

/* Settings and dashboard rows: one compact line + summary. */
body[data-role]:not([data-role=customer]) main details.setup-section{padding:0!important;margin:0 0 var(--ds-2)!important}
body[data-role]:not([data-role=customer]) main details.setup-section > summary{min-height:56px;padding:var(--ds-3) var(--ds-4)!important}
body[data-role]:not([data-role=customer]) main .setup-section .section-title{font:700 1rem/1.25 var(--ds-body)}
body[data-role]:not([data-role=customer]) main .setup-section .section-summary{font-size:0.8125rem;margin-top:2px}
body[data-role]:not([data-role=customer]) main details.setup-section[open] > .section-body{padding:0 var(--ds-4) var(--ds-4)}

/* ---------- Owner overview: the numbers at a glance ---------- */
body[data-role]:not([data-role=customer]) main .setup-card{padding:var(--ds-4)!important}
body[data-role]:not([data-role=customer]) main .setup-card h2{font-size:1.125rem!important;margin:var(--ds-1) 0 var(--ds-2)!important}
body[data-role]:not([data-role=customer]) main .setup-card.is-complete{display:flex;gap:var(--ds-3);align-items:flex-start}
body[data-role]:not([data-role=customer]) main .setup-card.is-complete .setup-check.big{flex:none;width:32px;height:32px}
body[data-role]:not([data-role=customer]) main .setup-list li{padding:var(--ds-2) 0}
body[data-role]:not([data-role=customer]) main .hero-stat{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-3);min-height:0!important;padding:var(--ds-4)!important;margin:0 0 var(--ds-3)!important;border:1.5px solid var(--ds-ink)!important;border-radius:var(--ds-r-lg)!important;box-shadow:var(--ds-lift)!important}
body[data-role]:not([data-role=customer]) main .hero-stat strong{display:block;font:700 1.875rem/1.1 var(--ds-body)!important;letter-spacing:-.01em!important;font-variant-numeric:tabular-nums;margin:var(--ds-1) 0}
body[data-role]:not([data-role=customer]) main .hero-stat p{font-size:0.75rem;line-height:1.35;margin:0;max-width:30ch}
body[data-role]:not([data-role=customer]) main .hero-stat .eyebrow{font:700 0.6875rem/1.2 var(--ds-body);letter-spacing:.06em}
body[data-role]:not([data-role=customer]) main .hero-stat .pill{display:none}
body[data-role]:not([data-role=customer]) main .hero-stat::before,body[data-role]:not([data-role=customer]) main .hero-stat::after{transform:scale(.7);transform-origin:top right}
body[data-role]:not([data-role=customer]) main .metric-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--ds-2)!important;margin:0 0 var(--ds-3)!important}
@media (min-width:700px){body[data-role]:not([data-role=customer]) main .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* ---------- Owner customers: compact rows ---------- */
body[data-role]:not([data-role=customer]) main .customers-panel > .split{align-items:center;gap:var(--ds-3);margin-bottom:var(--ds-2)}
body[data-role]:not([data-role=customer]) main .customers-panel > .split .tiny{margin:0}
body[data-role]:not([data-role=customer]) main .customers-panel .pill{flex:none}
@media (max-width:600px){
 body[data-role]:not([data-role=customer]) main .customers-panel table{min-width:0!important;width:100%;display:block}
 body[data-role]:not([data-role=customer]) main .customers-panel thead{display:none}
 body[data-role]:not([data-role=customer]) main .customers-panel tbody{display:block}
 body[data-role]:not([data-role=customer]) main .customers-panel tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--ds-3);row-gap:2px;padding:var(--ds-3) 0;border-bottom:1px solid var(--ds-line)}
 body[data-role]:not([data-role=customer]) main .customers-panel td{display:block;padding:0!important;border:0!important;font-size:0.8125rem;color:var(--ds-muted)}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(1){grid-column:1;grid-row:1 / span 2;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:10px;align-content:start;color:var(--ds-ink)}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(1) > .avatar{grid-row:span 3}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(1) > :not(.avatar){grid-column:2;min-width:0}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(1) .tiny{font-size:0.78125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(n+2){grid-column:2;text-align:right;white-space:nowrap}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(2){grid-row:1}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(3){grid-row:2}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(4){grid-column:1;grid-row:3;text-align:left;padding-left:42px!important}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(5){grid-row:3}
 body[data-role]:not([data-role=customer]) main .customers-panel td[data-label]::before{content:attr(data-label) " ";font-size:0.65625rem;font-weight:700;letter-spacing:.05em;color:var(--ds-muted);opacity:.8}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(5) .status{min-height:0;padding:2px 8px;font-size:0.6875rem}
 body[data-role]:not([data-role=customer]) main .customers-panel td:nth-child(2){color:var(--ds-ink);font-weight:600}
}
body[data-role]:not([data-role=customer]) main .customers-panel > .split .tiny{font-size:0.8125rem;color:var(--ds-muted)}

/* ---------- Counter: the scanner first, nothing but the job ---------- */
body[data-role]:not([data-role=customer]) .counter .counter-back{min-height:40px;margin:var(--ds-2) 0 0!important}
body[data-role]:not([data-role=customer]) .counter .page-head.compact{margin-top:var(--ds-2)!important}
body[data-role]:not([data-role=customer]) .counter .panel{margin-bottom:var(--ds-3)!important}
body[data-role]:not([data-role=customer]) .counter .counter-find #scan{margin:0 0 var(--ds-3)!important;min-height:52px;font-size:1.0625rem}
body[data-role]:not([data-role=customer]) .counter form.lookup{display:flex!important;flex-wrap:nowrap;gap:var(--ds-2);margin:0}
body[data-role]:not([data-role=customer]) .counter form.lookup input{flex:1 1 auto;min-width:0;min-height:48px;margin:0!important;border-radius:var(--ds-r-md)}
body[data-role]:not([data-role=customer]) .counter form.lookup .btn{flex:none;min-height:48px;margin:0!important;padding:0 14px;font-size:0.9375rem}
body[data-role]:not([data-role=customer]) .counter form.lookup input::placeholder{font-size:0.9375rem}
body[data-role]:not([data-role=customer]) .counter .panel > :last-child,body[data-role]:not([data-role=customer]) .counter [data-checkin-list] > :last-child{margin-bottom:0}
body[data-role]:not([data-role=customer]) .counter [data-checkin-status]{margin:0}
body[data-role]:not([data-role=customer]) .counter [data-counter-recent] > p:first-child{margin-top:0}
body[data-role]:not([data-role=customer]) .counter [data-counter-recent] p{margin:var(--ds-1) 0}
body[data-role]:not([data-role=customer]) .counter [data-counter-recent]{padding-top:var(--ds-3)!important;padding-bottom:var(--ds-3)!important}
body[data-role]:not([data-role=customer]) .counter .counter-find > .tiny{margin:var(--ds-2) 0 0}
body[data-role]:not([data-role=customer]) .counter > p.tiny{margin:var(--ds-2) 0 0;color:var(--ds-muted)}

/* ---------- Sign-in: the illustration sits above the headline, not through it ---------- */
body[data-role=welcome] .welcome-scene{margin:0 auto var(--ds-3)!important}
body[data-role=welcome] .welcome-story h1{position:relative;z-index:1}
body[data-role=welcome] main{padding-bottom:var(--ds-5)!important}

/* ---------- Toast: a banner at the very top, like a phone notification; it never covers a button ---------- */
body:not([data-role=customer]) #toast{top:calc(12px + env(safe-area-inset-top))!important;bottom:auto!important;max-width:min(92vw,420px);padding:10px 16px!important;border-width:1.5px!important;border-radius:var(--ds-r-md)!important;font:600 0.875rem/1.35 var(--ds-body)!important;transform:translate(-50%,-8px)}
body:not([data-role=customer]) #toast.show{transform:translate(-50%,0)}

/* ---------- Onboarding: the step bar inherited the page header's centring and collapsed to nothing ---------- */
.ob .ob-head{align-items:stretch;gap:var(--ds-2);margin-bottom:var(--ds-4);padding:0;min-height:0;max-width:none}
.ob .ob-progress b{font-size:0.6875rem}

/* ======================================================================================================================
   #257 pass 2: the counter as a till tool and a calm owner side. New components use their own class names (till-*,
   kpi, dash-*, cust-*, offer-*, set-*), so they need few overrides. Tokens: DESIGN.md. Motion: transform and opacity
   only, 140–220 ms, ease-out; none under prefers-reduced-motion.
   ====================================================================================================================== */
:root{--ds-success:#2F7A4E;--ds-success-soft:#DCEFD9;--ds-error:#A3271B;--ds-error-soft:#F8DDD6;--ds-ease:cubic-bezier(.2,.8,.2,1)}
body[data-role]{--accent:var(--cafe-accent,var(--ds-primary));--accent-ink:var(--cafe-accent-ink,#fff);--accent-deep:var(--cafe-accent-deep,#A82E22)}
.ico{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-role] main :is(button,.btn,a,summary,.chip){-webkit-tap-highlight-color:transparent}
body[data-role] main :is(.btn,.icon-btn,.till-scan,.till-option,.till-person,.chip,.till-stepper button):not(:disabled){transition:transform .14s var(--ds-ease),box-shadow .14s var(--ds-ease),background-color .14s}
body[data-role] main :is(.btn,.icon-btn,.till-option,.till-person,.chip,.till-stepper button):active:not(:disabled){transform:scale(.97)}
body[data-role] main .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
body[data-role] main .icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:1.5px solid var(--ds-line);border-radius:999px;background:var(--ds-surface);color:var(--ds-ink);cursor:pointer}
body[data-role] main .avatar{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;margin:0;border-radius:50%;background:var(--tint,var(--ds-sun-soft));color:var(--ds-ink);font:700 0.9375rem/1 var(--ds-body)}
body[data-role] main .avatar.lg{width:52px;height:52px;font:400 1.5rem/1 var(--ds-display)}
.mascot-moment{display:block;width:96px;height:96px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px var(--ds-surface),0 0 0 4.5px var(--ds-ink)}
@keyframes ds-pop{from{opacity:0;transform:scale(.92) translateY(6px)}to{opacity:1;transform:none}}
@keyframes ds-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- Counter ---------- */
body[data-role] .till{display:flex;flex-direction:column;gap:var(--ds-4);padding:var(--ds-3) 0 var(--ds-5);max-width:520px;margin:0 auto}
.till-top{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-3);min-height:44px}
.till-title{margin:0;font:400 1.5rem/1 var(--ds-display);color:var(--ds-ink)}
body[data-role] .till .till-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:0!important;padding:0 12px 0 6px;border-radius:999px;background:var(--ds-card);color:var(--ds-ink);font:700 0.9375rem/1 var(--ds-body);text-decoration:none}
.till-find{display:flex;flex-direction:column;gap:var(--ds-3)}
body[data-role] .till .till-scan{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--ds-3);width:100%;min-height:min(46vh,300px);padding:var(--ds-5);border:2px solid var(--ds-ink);border-radius:28px;background:var(--accent);color:var(--accent-ink);box-shadow:0 5px 0 var(--ds-ink);cursor:pointer;overflow:hidden}
body[data-role] .till .till-scan::after{content:"";position:absolute;inset:auto -20% -60% -20%;height:90%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.18),transparent);pointer-events:none}
body[data-role] .till .till-scan:active{transform:translateY(3px);box-shadow:0 2px 0 var(--ds-ink)}
.till-scan-icon{display:grid;place-items:center;width:104px;height:104px;border-radius:30px;background:rgba(255,255,255,.16)}
.till-scan-icon .ico{width:64px;height:64px;stroke-width:1.8}
.till-scan-label{font:400 2.125rem/1 var(--ds-display);letter-spacing:.01em}
.till-find:has(#camera-area:not(:empty)) .till-scan{display:none}
#camera-area:empty{display:none}
#camera-area{display:flex;flex-direction:column;gap:var(--ds-2)}
.till-camera{position:relative;overflow:hidden;border-radius:28px;background:#111;aspect-ratio:1/1;max-height:60vh;animation:ds-pop .2s var(--ds-ease)}
.till-camera video{display:block;width:100%;height:100%;object-fit:cover}
.till-frame{position:absolute;inset:18%;border-radius:22px;box-shadow:0 0 0 999px rgba(0,0,0,.35);outline:3px solid rgba(255,255,255,.92);outline-offset:0}
.till-camera-hint{position:absolute;left:0;right:0;bottom:16px;text-align:center;color:#fff;font:700 0.9375rem/1.2 var(--ds-body);text-shadow:0 1px 2px rgba(0,0,0,.6)}
body[data-role] .till .till-stop{width:100%;min-height:48px;margin:0!important}
body[data-role] .till form.till-code{display:flex!important;gap:var(--ds-2);margin:0}
body[data-role] .till form.till-code input{flex:1 1 auto;min-width:0;min-height:52px;margin:0!important;padding:0 16px;border:1.5px solid var(--ds-line);border-radius:999px;background:var(--ds-surface);font:600 1.0625rem/1 var(--ds-body);letter-spacing:.04em}
body[data-role] .till form.till-code .btn{flex:none;min-height:52px;margin:0!important;padding:0 22px;font-size:1rem}
.till-block{display:flex;flex-direction:column;gap:var(--ds-2)}
body[data-role] .till .till-label{margin:0;font:700 0.75rem/1.2 var(--ds-body);letter-spacing:.08em;text-transform:uppercase;color:var(--ds-muted)}
.till-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;border:1px solid var(--ds-line);border-radius:var(--ds-r-lg);background:var(--ds-surface);overflow:hidden}
.till-list:has(> .till-empty:only-child){border:0;background:none}
.till-empty{margin:0;padding:var(--ds-1) 0;font:500 0.875rem/1.4 var(--ds-body);color:var(--ds-muted)}
.till-row,.till-person{display:flex;align-items:center;gap:var(--ds-3);min-height:60px;padding:var(--ds-2) var(--ds-3);border:0;border-top:1px solid var(--ds-line);background:none;color:var(--ds-ink);text-align:left;width:100%}
.till-row:first-child,.till-person:first-child{border-top:0}
.till-row-text,.till-person-text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.till-row-text strong,.till-person-text strong{font:700 0.9375rem/1.25 var(--ds-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.till-row-text small,.till-person-text small{font:500 0.8125rem/1.3 var(--ds-body);color:var(--ds-muted)}
.till-row-time{font:600 0.8125rem/1 var(--ds-body);color:var(--ds-muted);font-variant-numeric:tabular-nums}
.till-row.is-corrected .till-row-text strong{text-decoration:line-through;text-decoration-thickness:1.5px}
body[data-role] .till .till-row-undo{min-height:40px;padding:0 14px;margin:0!important;font-size:0.875rem}
.till-person{cursor:pointer;font:inherit}
.till-person-go{flex:none;padding:8px 12px;border-radius:999px;background:var(--ds-card);font:700 0.8125rem/1 var(--ds-body)}
.till-person:disabled{opacity:.5}

.till-member{display:flex;flex-direction:column;gap:var(--ds-4);animation:ds-rise .2s var(--ds-ease)}
.till-who{display:flex;align-items:center;gap:var(--ds-3)}
.till-who > div{flex:1 1 auto;min-width:0}
body[data-role] .till .till-who h2{margin:0;font:400 1.625rem/1.05 var(--ds-display);color:var(--ds-ink);overflow-wrap:anywhere}
.till-who small{font:600 0.8125rem/1.3 var(--ds-body);color:var(--ds-muted)}
.till-balance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ds-2)}
.till-balance > div{display:flex;flex-direction:column;align-items:center;gap:2px;padding:var(--ds-3) var(--ds-2);border:1px solid var(--ds-line);border-radius:var(--ds-r-md);background:var(--ds-surface)}
.till-balance strong{font:700 1.875rem/1 var(--ds-body);font-variant-numeric:tabular-nums;color:var(--ds-ink)}
.till-balance strong small{font-size:1rem;color:var(--ds-muted)}
.till-balance span{font:600 0.75rem/1.2 var(--ds-body);color:var(--ds-muted)}
.till-balance .is-zero strong{color:var(--ds-muted);opacity:.55}
.till-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ds-2)}
.till-options > :last-child:nth-child(odd){grid-column:1 / -1}
body[data-role] .till .till-option{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:68px;padding:var(--ds-3);border:1.5px solid var(--ds-line);border-radius:var(--ds-r-lg);background:var(--ds-surface);color:var(--ds-ink);text-align:left;cursor:pointer;font:inherit}
.till-option .ico{grid-row:1 / 3;width:26px;height:26px}
.till-option strong{font:700 1rem/1.2 var(--ds-body)}
.till-option small{font:600 0.8125rem/1.2 var(--ds-body);color:var(--ds-muted)}
body[data-role] .till .till-option.selected{border:2px solid var(--ds-ink);background:var(--ds-sun-soft);box-shadow:0 3px 0 var(--ds-ink)}
body[data-role] .till .till-option:disabled:not(.selected){opacity:.45;cursor:default}
body[data-role] .till .till-option.selected:disabled{border-color:var(--ds-error);background:var(--ds-error-soft);box-shadow:0 3px 0 var(--ds-error)}
.till-qty{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-3)}
.till-qty > span{font:700 1rem/1.2 var(--ds-body);color:var(--ds-ink)}
.till-stepper{display:flex;align-items:center;gap:var(--ds-2);padding:4px;border-radius:999px;background:var(--ds-card)}
body[data-role] .till .till-stepper button{width:56px;height:56px;border:1.5px solid var(--ds-ink);border-radius:50%;background:var(--ds-surface);color:var(--ds-ink);font:700 1.75rem/1 var(--ds-body);cursor:pointer;box-shadow:0 2px 0 var(--ds-ink)}
body[data-role] .till .till-stepper button:disabled{opacity:.35;box-shadow:none}
.till-stepper strong{min-width:44px;text-align:center;font:700 2rem/1 var(--ds-body);font-variant-numeric:tabular-nums}
body[data-role] .till .till-receipt{min-height:48px;margin:calc(var(--ds-2) * -1) 0 0!important;border:1.5px solid var(--ds-line);border-radius:999px;padding:0 16px;font-size:0.9375rem}
.till-preview,.till-warn{display:flex;align-items:center;justify-content:center;gap:var(--ds-2);min-height:44px;padding:var(--ds-2) var(--ds-3);border-radius:var(--ds-r-md);font:700 1.0625rem/1.25 var(--ds-body);text-align:center;font-variant-numeric:tabular-nums}
.till-preview{background:var(--ds-card);color:var(--ds-ink)}
.till-warn{background:var(--ds-error-soft);color:var(--ds-error);animation:ds-pop .18s var(--ds-ease)}
body[data-role] .till .till-confirm{min-height:64px;margin:0!important;font-size:1.25rem;background:var(--accent);color:var(--accent-ink);border:2px solid var(--ds-ink);box-shadow:0 4px 0 var(--ds-ink)}
body[data-role] .till .till-confirm:disabled{background:var(--ds-card);color:var(--ds-muted);border-color:var(--ds-line);box-shadow:none;opacity:1}
.till-pending{padding:var(--ds-3);border-radius:var(--ds-r-md);background:var(--ds-sun-soft);font:500 0.875rem/1.4 var(--ds-body)}
.till-pending p{margin:0 0 var(--ds-2)}

.till-result{display:flex;flex-direction:column;align-items:center;gap:var(--ds-2);padding:var(--ds-5) var(--ds-4) var(--ds-4);border:2px solid var(--ds-success);border-radius:28px;background:linear-gradient(180deg,var(--ds-success-soft),var(--ds-surface) 70%);text-align:center;animation:ds-pop .22s var(--ds-ease)}
.till-badge{position:relative;margin-bottom:var(--ds-2)}
.till-badge .mascot-moment{width:128px;height:128px}
.till-tick{position:absolute;right:-6px;bottom:-4px;display:grid;place-items:center;width:52px;height:52px;border:3px solid var(--ds-surface);border-radius:50%;background:var(--ds-success);color:#fff;animation:ds-pop .28s .08s var(--ds-ease) both}
.till-tick .ico{width:30px;height:30px;stroke-width:3}
body[data-role] .till .till-result h2{margin:0;font:400 2.125rem/1.05 var(--ds-display);color:var(--ds-ink)}
.till-result-name{margin:0;font:700 1.125rem/1.2 var(--ds-body);color:var(--ds-ink)}
.till-result-detail{margin:0;font:600 1rem/1.3 var(--ds-body);color:var(--ds-muted)}
.till-stamps{display:grid;grid-template-columns:repeat(5,28px);gap:8px;justify-content:center;margin:var(--ds-1) 0}
.till-stamps span{width:28px;height:28px;border:2px dashed var(--ds-line);border-radius:50%}
.till-stamps span.on{border:0;background:var(--ds-ink) url(art-stamp-full.svg?v=c-bb6a6628a093) center/72% no-repeat;background-color:var(--heart,#E84B3C)}
.till-earned{display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 12px;border-radius:999px;background:var(--ds-sun);font:700 0.9375rem/1 var(--ds-body);color:var(--ds-ink)}
body[data-role] .till .till-next{width:100%;min-height:64px;margin:var(--ds-3) 0 0!important;font-size:1.1875rem;background:var(--accent);color:var(--accent-ink);border:2px solid var(--ds-ink);box-shadow:0 4px 0 var(--ds-ink)}
body[data-role] .till .till-undo{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;font:700 0.9375rem/1 var(--ds-body);color:var(--ds-ink);text-decoration:none}
@media (min-width:700px){body[data-role] .till .till-scan{min-height:260px}}

/* ---------- Owner page head ---------- */
body[data-role=owner] .owner-head h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-role] main .owner-counter{gap:6px;min-height:44px!important;padding:0 16px 0 12px!important}
body[data-role] main .owner-counter .ico{width:20px;height:20px}

/* ---------- Owner overview ---------- */
body[data-role] main .dash-label{margin:var(--ds-4) 0 var(--ds-2);font:700 0.75rem/1.2 var(--ds-body);letter-spacing:.08em;text-transform:uppercase;color:var(--ds-muted)}
body[data-role] main .metric-grid.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--ds-2)!important;margin:0 0 var(--ds-3)!important}
.kpi{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;padding:var(--ds-3);border:1px solid var(--ds-line);border-radius:var(--ds-r-lg);background:var(--ds-surface);animation:ds-rise .24s var(--ds-ease) both}
.kpi:nth-child(2){animation-delay:.04s}.kpi:nth-child(3){animation-delay:.08s}
.kpi-ico{display:grid;place-items:center;width:32px;height:32px;margin-bottom:6px;border-radius:10px;background:var(--ds-sun-soft);color:var(--ds-ink)}
.kpi-ico .ico{width:18px;height:18px}
.kpi strong{font:700 1.5rem/1.05 var(--ds-body);font-variant-numeric:tabular-nums;color:var(--ds-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi:nth-child(3) strong{font-size:1.1875rem;line-height:1.3}
.kpi-label{font:600 0.75rem/1.25 var(--ds-body);color:var(--ds-muted)}
.kpi-delta{margin-top:4px;font:700 0.71875rem/1.2 var(--ds-body);color:var(--ds-muted)}
.kpi-delta.up{color:var(--ds-success)}
.kpi-delta.down{color:var(--ds-error)}
.kpi.is-zero strong{color:var(--ds-muted)}
body[data-role] main .hero-stat.dash-total{display:block!important;padding:var(--ds-4)!important;margin:0 0 var(--ds-3)!important;border:1.5px solid var(--ds-ink)!important;box-shadow:0 3px 0 var(--ds-ink)!important}
.dash-total-main{position:relative;z-index:1;padding-right:96px}
body[data-role] main .dash-total strong{font:700 2.125rem/1.1 var(--ds-body)!important}
.dash-mini{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--ds-4);margin:var(--ds-3) 0 0;padding-top:var(--ds-2);border-top:1px dashed rgba(46,31,22,.25)}
.dash-mini > div{display:flex;justify-content:space-between;align-items:baseline;gap:var(--ds-2);padding:6px 0;border-bottom:1px dashed rgba(46,31,22,.14)}
.dash-mini dt{font:500 0.8125rem/1.3 var(--ds-body);color:var(--ds-ink-soft)}
.dash-mini dd{margin:0;font:700 0.875rem/1.3 var(--ds-body);font-variant-numeric:tabular-nums;color:var(--ds-ink);white-space:nowrap}
.dash-mini .is-zero dd{color:var(--ds-muted);font-weight:500}
body[data-role] main .dash-panel{padding:var(--ds-4)!important}
body[data-role] main .dash-panel > h2{margin:0 0 var(--ds-2)!important}
/* #334 the month and its download button share one row on a phone, wrapping when narrow. */
.sales-export-form{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-2);margin-top:var(--ds-3)}.sales-export-form label{flex-basis:100%;margin:0}.sales-export-form input{flex:1 1 9rem;min-width:0;width:auto;margin:0}.sales-export-form .btn{flex:1 1 auto;width:auto;margin:0}
.report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-3)}
body[data-role] main .report-head h2{margin:0!important}
.report-head .tiny{margin:2px 0 0}
.seg{display:inline-flex;flex:none;padding:3px;border-radius:999px;background:var(--ds-card)}
body[data-role] main .seg button{min-height:44px;min-width:64px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--ds-ink);font:700 0.8125rem/1 var(--ds-body);cursor:pointer}
body[data-role] main .seg button[aria-pressed=true]{background:var(--ds-ink);color:var(--ds-surface)}
.chart-title{margin:var(--ds-3) 0 var(--ds-2);font:500 0.8125rem/1.3 var(--ds-body);color:var(--ds-muted)}
.chart-title strong{color:var(--ds-ink)}
.bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;align-items:end;height:120px;margin:0;padding:0 0 22px;list-style:none;border-bottom:1px solid var(--ds-line);position:relative}
.bar{position:relative;height:100%;display:flex;align-items:flex-end;justify-content:center}
.bar-fill{display:block;width:min(70%,28px);height:var(--h);min-height:0;border-radius:4px 4px 0 0;background:var(--ds-ink-soft);transform-origin:bottom;animation:bar-grow .4s var(--ds-ease) both}
.bar.is-now .bar-fill{background:var(--accent)}
.bar.is-zero .bar-fill{height:2px;border-radius:2px;background:var(--ds-line)}
.bar-x{position:absolute;bottom:-20px;font:600 0.6875rem/1 var(--ds-body);color:var(--ds-muted);white-space:nowrap}
.bar:hover .bar-fill{filter:brightness(1.15)}
@keyframes bar-grow{from{transform:scaleY(0)}to{transform:none}}
.report-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--ds-4);margin:var(--ds-3) 0 var(--ds-2)}
.report-totals > div{display:flex;justify-content:space-between;gap:var(--ds-2);padding:6px 0;border-bottom:1px solid var(--ds-line)}
.report-totals > div:first-child{grid-column:1 / -1}
.report-totals dt{font:500 0.8125rem/1.3 var(--ds-body);color:var(--ds-muted)}
.report-totals dd{margin:0;font:700 0.875rem/1.3 var(--ds-body);font-variant-numeric:tabular-nums}
.report-totals .is-zero dd{color:var(--ds-muted);font-weight:500}
.dash-feed{margin:0;padding:0;list-style:none}
.dash-feed li{display:flex;align-items:center;gap:var(--ds-3);min-height:56px;border-top:1px solid var(--ds-line)}
.dash-feed li:first-child{border-top:0}
.dash-feed-text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.dash-feed-text strong{font:700 0.9375rem/1.25 var(--ds-body)}
.dash-feed-text small{font:500 0.8125rem/1.3 var(--ds-body);color:var(--ds-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-feed-time{font:600 0.78125rem/1 var(--ds-body);color:var(--ds-muted);white-space:nowrap}
.dash-feed .text-btn{min-height:44px;padding:0 4px}
.empty-state{display:flex;align-items:center;gap:var(--ds-3);padding:var(--ds-2) 0}
.empty-state .mascot-moment{width:72px;height:72px}
.empty-state p{display:flex;flex-direction:column;gap:2px;margin:0}
.empty-state strong{font:700 1rem/1.25 var(--ds-body)}
.empty-state span{font:500 0.875rem/1.35 var(--ds-body);color:var(--ds-muted)}
.empty-state.big{flex-direction:column;text-align:center;padding:var(--ds-6) var(--ds-4)}
.empty-state.big .mascot-moment{width:120px;height:120px}

/* Setup: one compact card with a progress ring while unfinished; a mascot moment when finished. */
.setup-head{display:flex;align-items:center;gap:var(--ds-3)}
body[data-role] main .setup-card .setup-head h2{margin:0!important;font-size:1.0625rem!important}
.setup-ring{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:50%;background:conic-gradient(var(--ds-success) calc(var(--p)*1%),var(--ds-card) 0)}
.setup-ring span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ds-surface);font:700 0.8125rem/1 var(--ds-body);font-variant-numeric:tabular-nums}
body[data-role] main .setup-card .setup-list{margin:var(--ds-2) 0 0;padding:0}
body[data-role] main .setup-card .setup-list li{padding:0!important;border-top:1px solid var(--ds-line)}
body[data-role] main .setup-card .setup-item{display:flex;align-items:center;gap:var(--ds-3);min-height:52px}
body[data-role] main .setup-card .setup-text{display:flex;align-items:baseline;justify-content:space-between;gap:var(--ds-2);flex:1 1 auto}
body[data-role] main .setup-card .setup-text small{font:600 0.75rem/1 var(--ds-body);color:var(--ds-muted)}
body[data-role] main .setup-card .setup-go{width:18px;height:18px;color:var(--ds-muted)}
body[data-role] main .setup-card.is-complete{align-items:center!important;background:linear-gradient(90deg,var(--ds-success-soft),var(--ds-surface))!important;border-color:var(--ds-success)!important;animation:ds-pop .24s var(--ds-ease)}
body[data-role] main .setup-card.is-complete .mascot-moment{width:64px;height:64px}
body[data-role] main .setup-card.is-collapsed{margin:var(--ds-1) 0 0}

/* ---------- Owner customers ---------- */
.cust-tools{display:flex;flex-direction:column;gap:var(--ds-2);margin-bottom:var(--ds-3)}
.cust-search{display:flex;align-items:center;gap:var(--ds-2);min-height:48px;padding:0 var(--ds-4);border:1.5px solid var(--ds-line);border-radius:999px;background:var(--ds-surface);color:var(--ds-muted)}
body[data-role] main .cust-search input{flex:1 1 auto;min-width:0;min-height:44px;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font:500 1rem/1 var(--ds-body);color:var(--ds-ink);outline:none}
.cust-search:focus-within{border-color:var(--ds-ink)}
.chips{display:flex;gap:var(--ds-2);overflow-x:auto;scrollbar-width:none;margin:0 calc(var(--ds-gutter) * -1);padding:0 var(--ds-gutter)}
.chips::-webkit-scrollbar{display:none}
body[data-role] main .chip{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 14px;border:1.5px solid var(--ds-line);border-radius:999px;background:var(--ds-surface);color:var(--ds-ink);font:700 0.875rem/1 var(--ds-body);cursor:pointer}
.chip span{min-width:20px;padding:3px 6px;border-radius:999px;background:var(--ds-card);font-size:0.75rem;text-align:center}
body[data-role] main .chip[aria-pressed=true]{background:var(--ds-ink);border-color:var(--ds-ink);color:var(--ds-surface)}
.chip[aria-pressed=true] span{background:rgba(255,255,255,.18)}
.cust-list{margin:0;padding:0;list-style:none;border:1px solid var(--ds-line);border-radius:var(--ds-r-lg);background:var(--ds-surface);overflow:hidden}
.cust-list > li{border-top:1px solid var(--ds-line)}
.cust-list > li:first-child{border-top:0}
.cust-list summary{display:flex;align-items:center;gap:var(--ds-3);min-height:64px;padding:var(--ds-2) var(--ds-3);list-style:none;cursor:pointer}
.cust-list summary::-webkit-details-marker{display:none}
.cust-list details[open] summary{background:var(--ds-paper)}
.cust-text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.cust-text strong{font:700 0.96875rem/1.25 var(--ds-body);color:var(--ds-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cust-text small{font:500 0.8125rem/1.3 var(--ds-body);color:var(--ds-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cust-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.cust-side small{font:600 0.75rem/1 var(--ds-body);color:var(--ds-muted)}
.status-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;font:700 0.75rem/1 var(--ds-body);background:var(--ds-card);color:var(--ds-ink)}
.status-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.status-pill.is-active{background:var(--ds-success-soft);color:var(--ds-success)}
.status-pill.is-quiet{background:var(--ds-sun-soft);color:#8A5A00}
.status-pill.is-away{color:var(--ds-muted)}
.status-pill.is-stopped{background:var(--ds-error-soft);color:var(--ds-error)}
.status-pill.is-new{background:#E3ECF5;color:#2D5A87}
.cust-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ds-2) var(--ds-4);margin:0;padding:var(--ds-2) var(--ds-3) var(--ds-3) calc(36px + var(--ds-3) * 2);background:var(--ds-paper);animation:ds-rise .16s var(--ds-ease)}
.cust-more dt{font:600 0.71875rem/1.2 var(--ds-body);color:var(--ds-muted)}
.cust-more dd{margin:2px 0 0;font:600 0.875rem/1.3 var(--ds-body);color:var(--ds-ink);overflow-wrap:anywhere}
.cust-none{margin:var(--ds-3) 0;text-align:center;color:var(--ds-muted)}

/* ---------- Owner settings ---------- */
body[data-role] main .set-group{margin:var(--ds-5) 0 var(--ds-2);font:700 0.75rem/1.2 var(--ds-body);letter-spacing:.08em;text-transform:uppercase;color:var(--ds-muted)}
body[data-role] main .setup-sections > .set-group:first-child,body[data-role] main #settings > .set-group:first-child{margin-top:var(--ds-2)}
body[data-role] main .set-help{margin:0 0 var(--ds-4);color:var(--ds-muted)}body[data-role] main .set-help a{color:inherit;overflow-wrap:anywhere}
body[data-role] main details.setup-section > summary{display:flex;align-items:center;gap:var(--ds-3)}
.section-ico{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:11px;background:var(--ds-sun-soft);color:var(--ds-ink)}
.section-ico .ico{width:20px;height:20px}
details[data-section=payments] .section-ico,details[data-section=offer] .section-ico{background:var(--ds-success-soft)}
details[data-section=cards] .section-ico{background:var(--ds-error-soft)}
details[data-section=staff] .section-ico,details[data-section=qr] .section-ico{background:#E3ECF5}
body[data-role] main .setup-section .section-text{flex:1 1 auto;min-width:0}
body[data-role] main details.setup-section[open] > .section-body{animation:ds-rise .18s var(--ds-ease)}
.offer-list{margin:0 0 var(--ds-2);padding:0;list-style:none;border:1px solid var(--ds-line);border-radius:var(--ds-r-lg);overflow:hidden;background:var(--ds-paper)}
.offer-row{display:flex;align-items:center;gap:var(--ds-3);min-height:68px;padding:var(--ds-2) var(--ds-3);border-top:1px solid var(--ds-line)}
.offer-row:first-child{border-top:0}
.offer-ico{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:11px;background:var(--ds-card)}
.offer-ico.is-pack{background:var(--ds-sun)}
.offer-ico.is-plan{background:var(--ds-success-soft)}
/* #269 the three paid offers wear their tier: bronze ten-pack, silver twenty-pack, gold weekly subscription. */
.offer-ico.is-bronze{background:linear-gradient(135deg,#E7B98A,#B87333)}
.offer-ico.is-silver{background:linear-gradient(135deg,#F2F2F0,#B9BCC0)}
.offer-ico.is-gold{background:linear-gradient(135deg,#FBE3A6,#D9A62E)}
.offer-tier{font-weight:700;color:var(--ds-ink-soft)}
.offer-ico .ico{width:20px;height:20px}
.offer-main{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.offer-main strong{font:700 0.9375rem/1.25 var(--ds-body)}
.offer-main small{font:500 0.78125rem/1.3 var(--ds-body);color:var(--ds-muted)}
.money-input{display:inline-flex;align-items:center;gap:2px;flex:none;width:96px;min-height:44px;padding:0 10px;border:1.5px solid var(--ds-line);border-radius:12px;background:var(--ds-surface);font:700 0.9375rem/1 var(--ds-body);color:var(--ds-muted)}
.money-input:focus-within{border-color:var(--ds-ink)}
/* #291: a Settings price the server refused is marked on its own field; the rest of the save went through. */
.offer-main small.field-error{margin-top:4px;color:var(--oops,#A3271B);font-weight:700}
.money-input:has(input[aria-invalid=true]){border-color:var(--oops,#A3271B);box-shadow:0 0 0 2px rgba(163,39,27,.15)}
body[data-role] main .money-input input{width:100%;min-width:0;min-height:40px;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font:700 1rem/1 var(--ds-body);color:var(--ds-ink);text-align:right;outline:none;font-variant-numeric:tabular-nums}
.offer-row.is-plan{align-items:flex-start;padding-top:var(--ds-3);padding-bottom:var(--ds-3)}
.offer-row.is-plan > .switch{margin-top:6px}
input.switch{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:50px;height:30px;margin:0;border-radius:999px;background:var(--ds-line);cursor:pointer;transition:background-color .18s var(--ds-ease)}
input.switch::before{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(46,31,22,.3);transition:transform .18s var(--ds-ease)}
input.switch:checked{background:var(--ds-success)}
input.switch:checked::before{transform:translateX(20px)}
input.switch:focus-visible{outline:3px solid var(--ds-sun);outline-offset:2px}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-3);min-height:60px;padding:var(--ds-2) 0;border-bottom:1px solid var(--ds-line);cursor:pointer}
.switch-row > span{display:flex;flex-direction:column}
.switch-row strong{font:700 0.9375rem/1.25 var(--ds-body)}
.switch-row small{font:500 0.78125rem/1.3 var(--ds-body);color:var(--ds-muted)}
.set-more{margin:var(--ds-3) 0 0}
.set-more > summary{display:flex;align-items:center;min-height:44px;font:700 0.875rem/1 var(--ds-body);color:var(--ds-ink);cursor:pointer}
.qr-block{display:flex;gap:var(--ds-3);align-items:flex-start;margin-bottom:var(--ds-3)}
.qr-block .actions{display:flex;flex-direction:column;gap:var(--ds-2);margin:var(--ds-2) 0 0}
body[data-role] main .section-body h3{margin:var(--ds-4) 0 var(--ds-2)}
body[data-role] main .section-body h3:first-child{margin-top:0}

@media (prefers-reduced-motion:reduce){
 body[data-role] main *,body[data-role] main *::before{animation:none!important;transition:none!important}
}
/* The all-time card keeps its sun and running mascot, beside the big number rather than over the list. */
body[data-role=owner] main .hero-stat.dash-total::after{top:22px;bottom:auto;right:16px;transform:none}
body[data-role=owner] main .hero-stat.dash-total::before{transform:none}
.dash-feed-side{display:flex;align-items:center;gap:2px;flex:none}
body[data-role] main .dash-feed .icon-btn{width:40px;height:44px;border:0;background:none;color:var(--ds-muted)}
/* site.css frames every owner/staff field with !important; these fields carry their own frame. */
body[data-role] main .cust-search input#customer-search,body[data-role] main .money-input input[name]{border:0!important;border-radius:0!important;background:none!important}
body[data-role] .till form.till-code input[name=code],body[data-role] .till input#receipt{border:1.5px solid var(--ds-line)!important;border-radius:999px!important;background:var(--ds-surface)!important}
body[data-role] .till form.till-code input[name=code]:focus,body[data-role] .till input#receipt:focus{border-color:var(--ds-ink)!important}
body[data-role] input.switch{width:50px!important;height:30px!important;min-height:30px!important;padding:0!important;border:0!important;border-radius:999px!important;background:var(--ds-line)!important}
body[data-role] input.switch:checked{background:var(--ds-success)!important}
.offer-row.is-plan{flex-wrap:wrap}
.set-more > summary{list-style:none;justify-content:space-between}
.set-more > summary::-webkit-details-marker{display:none}
.set-more > summary::after{content:"";width:8px;height:8px;margin-right:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.set-more[open] > summary::after{transform:rotate(-135deg)}
.dash-total-sub{display:block;font:600 0.8125rem/1.2 var(--ds-body);color:var(--ds-ink-soft)}
.bars.is-empty{height:56px}
.offer-row.is-plan{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:var(--ds-3);row-gap:var(--ds-2);align-items:center}
.offer-row.is-plan > .switch{margin:0}
.money-input{width:84px}
/* #296 a long offer name ("Weekly subscription") hyphenates at a syllable rather than splitting anywhere. */
.offer-main strong{overflow-wrap:break-word;hyphens:auto}
/* #299 at 390 px an offer name keeps its own line: the name beside its switch, the details beside the price field. */
.offer-row[data-offer]{display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"ico name switch" "ico meta price";column-gap:var(--ds-3);row-gap:2px;align-items:center}
.offer-row[data-offer] > .offer-ico{grid-area:ico;align-self:start}
.offer-row[data-offer] > .offer-main{display:contents}
.offer-row[data-offer] .offer-main > strong{grid-area:name}
.offer-row[data-offer] .offer-main > small{grid-area:meta}
.offer-row[data-offer] .offer-main > small.field-error{grid-area:auto;grid-row:3;grid-column:2 / -1}
.offer-row[data-offer] > .switch{grid-area:switch;justify-self:end}
.offer-row[data-offer] > .money-input{grid-area:price}

/* #409: the shared wordmark includes the mascot; do not add a second mark. */
.signin-legal a,.legal-accept a{color:var(--cafe-accent-deep,var(--ink-line));text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.signin-legal a:focus-visible,.legal-accept a:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* #647: the agreement reads as one sentence: no side gaps, and the full stop stays with its link (inline-block made a
   break before it). Each link stays whole on one line with a 24px tap height; 36px lines keep links on adjacent lines
   12px apart, the live smoke's tap-target gap. The id beats the shell's .tiny line height. */
body[data-role] #initial-auth p.signin-legal{line-height:36px}
.signin-legal a{display:inline;white-space:nowrap;padding:4px 0;margin:0}
/* #567 S8 Settings Help: questions and answers, the staff guide, then the support address. */
.set-help-links{list-style:none;margin:0 0 var(--ds-3);padding:0;display:grid;gap:var(--ds-1)}
.set-help-links a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.cust-search:focus-within,.money-input:focus-within{outline:2px solid var(--ds-ink);outline-offset:2px} /* launch audit A7: a ring, not only a border tint */

/* #614 Initial loading status stays fixed while access resolves the existing role layout. */
html[data-initial-shell] body > :not(#initial-shell-status),
html[data-initial-shell] body > :not(#initial-shell-status) *{visibility:hidden!important}
#initial-shell-status{display:none}
html[data-initial-shell] #initial-shell-status{display:block;position:fixed;inset:120px 16px auto;text-align:center;font:1rem/1.5 system-ui,sans-serif}

/* The sample notice and role buttons share one strip in normal page flow below the awning. */
body .review.demo-banner{
 display:grid;height:auto;justify-content:stretch;gap:2px;
 padding:5px 12px 3px;background:var(--ink-line);color:#fffaf0;
 font:500 0.75rem/1.3 var(--cc-font-body);letter-spacing:0;
}
.demo-summary,.demo-banner .demo-switch:not([hidden]){
 display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 8px;
}
.demo-banner .demo-summary > span,.demo-banner .demo-switch,.demo-banner .demo-switch span{font:inherit}
.demo-banner .demo-switch button{
 min-height:44px;border-radius:8px;padding:0 8px;
 color:inherit;font:700 0.75rem/1 var(--cc-font-body);
}
.demo-banner .demo-switch button.active{background:#f4c45e;color:#2e1f16}

/* #1004: the shop name and the two owner actions share one header row. */
body[data-role=owner] .owner-head-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex:0 1 auto; max-width:80%; }
body[data-role=owner] .owner-head-actions .btn { min-width:44px; min-height:44px; white-space:normal; padding:8px 12px; }
body[data-role=owner] .owner-head-actions .owner-counter { min-width:0; flex:0 1 auto; }

/* Owner navigation grows with system text instead of spilling across its neighbours. */
body[data-role=owner] header #nav a { white-space:normal; overflow-wrap:anywhere; min-width:0; height:auto; min-height:36px; padding-block:4px; line-height:1.45; text-align:center; }
