/* Bean Street (panels/beanstreet.js): the Market card, the shop screen with its top bar, tray, layout editor and receipts. */
/* HQ row, concept chips and receipt paper. Bean Street keeps the sf- class names from when these were Storefront rules. */
.sf-hqrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-top: 8px; border-radius: 10px; background: rgba(243,235,216,.08); color: var(--ink); text-align: left; }
.sf-hqrow.locked { opacity: .65; cursor: default; }
.sf-hqrow .tx { flex: 1; display: grid; gap: 1px; min-width: 0; } .sf-hqrow small { color: rgba(243,235,216,.7); }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-receipt { background: #FFF6E3; color: #2B1A05; border-radius: 6px; padding: 16px 16px 14px; font-family: var(--num); display: grid; gap: 4px; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.sf-receipt .ln { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; opacity: 0; animation: sf-in .01s forwards; }
.reduce-motion .sf-receipt .ln { animation: none; opacity: 1; }
.sf-receipt .title { font-size: 15px; font-weight: 800; letter-spacing: .02em; display: block; }
.sf-receipt .subtitle { color: #6B5A3B; display: block; }
.sf-receipt .section { margin-top: 8px; font-size: 12px; letter-spacing: .08em; color: #6B5A3B; display: block; }
.sf-receipt .total { border-top: 1.5px dashed #2B1A05; padding-top: 5px; margin-top: 4px; font-weight: 800; }
.sf-receipt .score { font-size: 19px; font-weight: 800; margin-top: 6px; }
.sf-receipt .paid { font-size: 19px; font-weight: 800; color: #0B6B31; }
.sf-receipt .note { font-size: 12px; color: #6B5A3B; display: block; }
.sf-receipt .bad { color: #C73A25; }
.sf-receipt .v { white-space: nowrap; }
@keyframes sf-in { to { opacity: 1; } }

.bs-entry p { margin: 0; color: var(--ink); }
.bs-entry .bs-live { display: flex; gap: 6px; align-items: center; font-size: 13px; color: rgba(243,235,216,.75); }
.bs-entry .bigbtn { width: 100%; }

/* The shop screen. One look (docs/design/bean-street-consistency.md): glass in the shop's tint (the café's roast brown, the stand's deep navy),
   28 px cards with a grabber, wells inside them, one amber primary and quiet secondaries, a close circle in every title row. */
.sheetwrap.bs-out { opacity: 0; transition: opacity .25s ease; }
.reduce-motion .sheetwrap.bs-out { transition-duration: .1s; }
.bs-sheet { --roast: #2B1B12; background: var(--deep) !important; }
.bs-sheet[data-shop=coffee] { background: var(--roast) !important; }
.bs-sheet .navbar { display: none; }
.bs-root { position: relative; display: block !important; padding: 0 !important; overflow: hidden !important; color: #fff; background: inherit;
  --bs-glass: rgba(43,27,18,.55); --bs-line: rgba(255,255,255,.12); --bs-well: rgba(0,0,0,.25); --bs-wellline: rgba(255,255,255,.10); --art-lemon: #f6d33c; --art-orange: #ff8f3c; }
.bs-root[data-shop=citrus] { --bs-glass: rgba(15,42,73,.6); }
.bs-root .bs-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.bs-root button:focus-visible, .bs-root select:focus-visible, .bs-root label:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.bs-glass, .bs-cap, .bs-round, .bs-pill, .bs-card, .bs-coach { background: var(--bs-glass); -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); border: 1px solid var(--bs-line); box-shadow: 0 6px 18px rgba(0,0,0,.22); }

/* The chrome fades in once the camera has landed. */
.bs-top, .bs-bottom { opacity: 0; pointer-events: none; transition: opacity .3s ease-out; }
.bs-in .bs-top, .bs-in .bs-bottom { opacity: 1; pointer-events: none; }
.bs-in .bs-top > *, .bs-in .bs-bottom > * { pointer-events: auto; }
.reduce-motion .bs-top, .reduce-motion .bs-bottom { transition: none; }

/* Top bar: TILL and WAIT (each opens its report), pause and leave. */
.bs-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(env(safe-area-inset-top, 0px) + 4px) 12px 0; display: grid; gap: 8px; align-content: start; justify-items: start; }
.bs-bar { display: flex; align-items: center; gap: 6px; width: 100%; }
.bs-bar .grow { flex: 1; }
.bs-cap { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px; border-radius: 999px; color: #fff; text-align: left; }
.bs-cap .tx { display: grid; line-height: 1.05; }
.bs-cap small { font-size: 12px; color: rgba(255,255,255,.7); }
.bs-cap b { font-size: 19px; white-space: nowrap; }
.bs-cap > svg { color: var(--accent); }
.bs-cap.bad b { color: var(--stamp); }
.bs-cap:active { background: var(--bs-glass); filter: brightness(1.25); }
.bs-round { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; flex: none; }
.bs-round.paused { background: var(--accent); color: #000; border-color: transparent; }
.bs-round:active { filter: brightness(1.25); }
.bs-badge { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 2px var(--ink); }
.bs-badge[hidden] { display: none; }

/* The status strip: pills, wrapping onto a second row on a phone, one scrolling row wider. */
.bs-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; min-height: 34px; align-items: center; max-width: 640px; }
.bs-strip::-webkit-scrollbar { display: none; }
@media (max-width: 699px) {
  .bs-strip { flex-wrap: wrap; overflow-x: visible; }
  .bs-pill.event { flex: 0 1 auto; max-width: 100%; overflow: hidden; }
  .bs-pill.event .din { overflow: hidden; text-overflow: ellipsis; }
}
.bs-pill { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border-radius: 999px; color: #fff; font-size: 15px; white-space: nowrap; box-shadow: none; }
.bs-pill .din { padding-top: 2px; }
.bs-pill .bs-arrow { opacity: .6; }
.bs-pill .num { font-size: 14px; }
.bs-pill .dim { color: rgba(255,255,255,.7); }
.bs-pill .bad { color: var(--stamp); }
.bs-pill.alert { background: rgba(232,85,62,.55); }
.bs-pill.paused svg { color: var(--accent); }
.bs-dot { color: rgba(255,255,255,.6); }
.bs-ring { width: 15px; height: 15px; transform: rotate(-90deg); }
.bs-ring circle { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 3; }
.bs-ring circle.on { stroke: var(--accent); stroke-linecap: round; }
.bs-fruitdot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--art-lemon); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.bs-fruitdot.oranges { background: var(--art-orange); }
button.bs-pill:active { filter: brightness(1.25); }

/* The first-visit coach. */
.bs-coach { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border-radius: 28px; max-width: 640px; font: 600 13px/1.3 var(--round); }
.bs-coach[hidden] { display: none; }
.bs-coach .bs-quiet { flex: none; }

/* Loading: each shop's scene on cream, the café's machine and the stand's truck. Under Reduce Motion the same scene holds still. */
.bs-load { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: var(--roast); color: var(--ink); font-size: 28px; letter-spacing: .04em; }
.bs-load.failed { padding: 24px; text-align: center; font-size: 17px; letter-spacing: 0; }
/* The café's worker waves from behind the counter, beside the espresso machine (iOS BrewLayerView, the same proportions and timings): the truck's --tw, --sky and --road, --gnd where things stand on the counter. */
.bs-brew { background: #f3ebd8; color: #2a1e3d; overflow: hidden; container-type: size; transition: opacity .45s ease-out .1s; }
.bs-brew-scene { position: absolute; inset: 0; --tw: min(82cqw, 480px, 60cqh); --sky: 56cqh; --road: calc(var(--tw) * .3); --gnd: calc(var(--sky) + var(--road) * .5); --ln: calc(var(--tw) * .012); }
.bs-brew-scene > * { position: absolute; }
.bs-brew-lamp { left: 80cqw; top: 0; width: 0; height: max(var(--tw) * .1, var(--sky) - var(--tw) * 1.12); transform-origin: 0 0; transform: rotate(-2deg); animation: bs-brew-sway 7s ease-in-out infinite alternate; }
.bs-brew-lamp::before { content: ''; position: absolute; left: calc(var(--ln) / -2); top: 0; bottom: 0; width: var(--ln); background: #2a1e3d; }
.bs-brew-lamp i { position: absolute; left: calc(var(--tw) * -.13); top: 100%; width: calc(var(--tw) * .26); height: calc(var(--tw) * .14); box-sizing: border-box; border: var(--ln) solid #2a1e3d; border-radius: 999px 999px 0 0; background: #e8a33d; }
.bs-brew-lamp b { position: absolute; left: calc(var(--tw) * -.05); top: calc(100% + var(--tw) * .125); z-index: -1; width: calc(var(--tw) * .1); height: calc(var(--tw) * .1); box-sizing: border-box; border: var(--ln) solid #2a1e3d; border-radius: 50%; background: #fff1cf; }
.bs-brew-worker { left: calc(50cqw - var(--tw) * .58); top: calc(var(--sky) - var(--tw) * .5); width: calc(var(--tw) * .4); aspect-ratio: 330 / 430; background: url(../art/worker_coffee_large_wave@2x.png) 0 0 / 900% 100% no-repeat; animation: bs-brew-wave 3.6s linear infinite; }
.bs-brew-counter { left: 0; right: 0; top: var(--sky); height: var(--road); box-sizing: border-box; border-block: var(--ln) solid #2a1e3d; background: linear-gradient(#e07a3e 0 72%, #2a1e3d 0 calc(72% + var(--ln)), #b85c2c 0); }
.bs-brew-machine { left: calc(50cqw - var(--tw) * .24); top: calc(var(--gnd) - var(--tw) * .56); width: calc(var(--tw) * .68); aspect-ratio: 1; background: url(../art/bean3d/loading_brew_machine.png) 0 0 / 100% 100%; }
.bs-brew-gauge { position: absolute; width: 0; height: 0; }
.bs-brew-gauge i { position: absolute; left: calc(var(--tw) * -.004); bottom: 0; width: calc(var(--tw) * .008); height: calc(var(--tw) * .026); background: #2a1e3d; transform-origin: 50% 100%; transform: rotate(-50deg); animation: bs-brew-gauge 2.6s ease-in-out infinite alternate; }
.bs-brew-gauge + .bs-brew-gauge i { animation-delay: -1.1s; }
.bs-brew-behind { left: 0; right: 0; top: 0; height: calc(var(--sky) + var(--ln)); overflow: hidden; }
.bs-brew-cat { position: absolute; left: calc(50cqw + var(--tw) * .26); top: calc(var(--sky) - var(--tw) * .22); width: calc(var(--tw) * .46); aspect-ratio: 1; animation: bs-brew-peek 5s infinite; }
.bs-brew-cat i, .bs-brew-cat b { position: absolute; inset: 0; background: 0 0 / 100% 100%; }
.bs-brew-cat i { background-image: url(../art/bean3d/loading_brew_tail.png); transform-origin: 51.36% 79.19%; transform: rotate(-7deg); animation: bs-brew-tail 2.4s ease-in-out infinite alternate; }
.bs-brew-cat b { background-image: url(../art/bean3d/loading_brew_cat.png); transform-origin: 50% 88%; animation: bs-brew-breath 3.2s ease-in-out infinite alternate; }
.bs-brew-cup { left: calc(50cqw - var(--tw) * .04); top: calc(var(--gnd) - var(--tw) * .25); width: calc(var(--tw) * .3); aspect-ratio: 1; background: url(../art/bean3d/loading_brew_cup.png) 0 0 / 100% 100%; }
.bs-brew-cup svg { position: absolute; left: 20%; bottom: 84%; width: 50%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; }
.bs-brew-cup path { stroke-dasharray: 100 130; animation: bs-brew-steam 3.6s linear infinite; }
.bs-brew-cup .air { stroke: #fff; stroke-width: 6; }
.bs-brew-cup .two { animation-delay: -1.8s; }
.bs-brew-scene span { left: 0; right: 0; top: calc(var(--sky) + var(--road) + 26px); text-align: center; font-size: 34px; letter-spacing: 1.5px; color: #2a1e3d; }
.bs-brew.still .bs-brew-scene *, .bs-brew.still .bs-brew-scene { animation: none; }
.bs-brew.flat .bs-brew-scene { display: none; }
.bs-brew:not(.flat) > span { display: none; }
.bs-brew.fade { opacity: 0; pointer-events: none; }
.bs-brew.fade .bs-brew-cup { transform: translateX(100cqw); transition: transform .55s cubic-bezier(.55, 0, .95, .85); }
/* One slow wave along the strip's nine frames: hold, up, hold, down, rest. */
@keyframes bs-brew-peek { 0%, 10% { transform: translateY(calc(var(--tw) * .25)); animation-timing-function: ease-out; } 32% { transform: none; } 80% { transform: none; animation-timing-function: ease-in; } 100% { transform: translateY(calc(var(--tw) * .25)); } }
@keyframes bs-brew-wave { 0% { background-position-x: 0; } 20% { background-position-x: 0; animation-timing-function: steps(8, end); } 45% { background-position-x: 100%; } 60% { background-position-x: 100%; animation-timing-function: steps(8, end); } 85%, 100% { background-position-x: 0; } }
@keyframes bs-brew-sway { to { transform: rotate(2deg); } }
@keyframes bs-brew-gauge { to { transform: rotate(45deg); } }
@keyframes bs-brew-tail { to { transform: rotate(9deg); } }
@keyframes bs-brew-breath { to { transform: scaleY(1.015); } }
@keyframes bs-brew-steam { from { stroke-dashoffset: 100; } 90%, to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .bs-brew { transition: none; } }
/* The stand's truck on the road (iOS TruckLayerView, the same proportions and timings). --tw is the truck's width, --gnd where its tyres meet the road. */
.bs-truck { background: #fffcf2; color: #2a1e3d; overflow: hidden; container-type: size; transition: opacity .45s ease-out .1s; }
.bs-truck-scene { position: absolute; inset: 0; --tw: min(82cqw, 480px, 60cqh); --sky: 56cqh; --road: calc(var(--tw) * .3); --gnd: calc(var(--sky) + var(--road) * .62); --ln: calc(var(--tw) * .012); }
.bs-truck-scene > * { position: absolute; }
.bs-truck-sun { left: calc(78cqw - var(--tw) * .16); top: calc(var(--sky) - var(--tw) * .88); width: calc(var(--tw) * .32); aspect-ratio: 1; box-sizing: border-box; border: var(--ln) solid #2a1e3d; border-radius: 50%; background: #f6d33c; }
.bs-truck-palms { left: calc(var(--tw) * -.4); top: calc(var(--sky) + 2px - var(--tw) * .55); height: calc(var(--tw) * .55); display: flex; animation: bs-truck-palms 3.6s linear infinite; }
.bs-truck-palms i { flex: none; width: calc(var(--tw) * .8); background: url(../art/boardwalk/loading_palm.png) center / contain no-repeat; }
.bs-truck-road { left: 0; right: 0; top: var(--sky); height: var(--road); box-sizing: border-box; border-block: var(--ln) solid #2a1e3d; background: #ead9a6; }
.bs-truck-dashes { left: 0; top: calc(var(--sky) + var(--road) * .84); width: calc(100% + var(--tw) * .26); height: 5px; background: repeating-linear-gradient(90deg, #fffcf2 0 calc(var(--tw) * .143), transparent 0 calc(var(--tw) * .26)); animation: bs-truck-dashes .5s linear infinite; }
.bs-truck-shadow { left: calc(50cqw - var(--tw) * .44); top: calc(var(--gnd) - var(--tw) * .035); width: calc(var(--tw) * .88); height: calc(var(--tw) * .07); border-radius: 50%; background: #c7b37d; }
.bs-truck-van { left: calc(50cqw - var(--tw) / 2); top: calc(var(--gnd) - var(--tw) * .7667); width: var(--tw); aspect-ratio: 6 / 5; background: url(../art/boardwalk/loading_truck.png) 0 0 / 100% 100%; animation: bs-truck-bob .8s linear infinite; }
.bs-truck-wheel { position: absolute; width: 0; height: 0; transform: scaleX(.99); }
.bs-truck-wheel i { position: absolute; left: calc(var(--tw) * -.051); top: calc(var(--tw) * -.051); width: calc(var(--tw) * .102); height: calc(var(--tw) * .102); border-radius: 50%; animation: bs-truck-turn .86s linear infinite;
  background: radial-gradient(circle, #f6d33c 33%, #2a1e3d 34% 38%, transparent 39%), linear-gradient(0deg, transparent 46%, #2a1e3d 46% 54%, transparent 54%), linear-gradient(60deg, transparent 46%, #2a1e3d 46% 54%, transparent 54%), linear-gradient(120deg, transparent 46%, #2a1e3d 46% 54%, transparent 54%); }
.bs-truck-puff { position: absolute; left: 6%; top: 71.5%; width: calc(var(--tw) * .06); aspect-ratio: 1; box-sizing: border-box; border: var(--ln) solid #2a1e3d; border-radius: 50%; background: #fff; transform: scale(0); animation: bs-truck-puff 1.05s linear infinite; }
.bs-truck-puff:nth-child(4) { animation-delay: .35s; }
.bs-truck-puff:nth-child(5) { animation-delay: .7s; }
.bs-truck-scene span { left: 0; right: 0; top: calc(var(--sky) + var(--road) + 26px); text-align: center; font-size: 34px; letter-spacing: 1.5px; color: #2a1e3d; }
.bs-truck.flat .bs-truck-scene { display: none; }
.bs-truck.still .bs-truck-scene *, .bs-truck.still .bs-truck-scene { animation: none; }
.bs-truck.still .bs-truck-puff { display: none; }
.bs-truck:not(.flat) > span { display: none; }
.bs-truck.fade { opacity: 0; pointer-events: none; }
.bs-truck.fade .bs-truck-van { transform: translateX(100cqw); transition: transform .55s cubic-bezier(.55, 0, .95, .85); animation: none; }
@keyframes bs-truck-palms { to { transform: translateX(calc(var(--tw) * -.8)); } }
@keyframes bs-truck-dashes { to { transform: translateX(calc(var(--tw) * -.26)); } }
@keyframes bs-truck-bob { 25% { transform: translateY(calc(var(--tw) * -.004)); } 50% { transform: none; } 75% { transform: translateY(calc(var(--tw) * -.002)); } }
@keyframes bs-truck-turn { to { transform: rotate(360deg); } }
@keyframes bs-truck-puff { from { transform: scale(.4); } 70% { transform: translate(calc(var(--tw) * -.14), calc(var(--tw) * -.035)) scale(1.3); } to { transform: translate(calc(var(--tw) * -.2), calc(var(--tw) * -.05)) scale(0); } }
@media (prefers-reduced-motion: reduce) { .bs-truck { transition: none; } }

/* Bottom: the problem pill, the bolt, the inspector or report card, the open tray's card and the tab strip, pinned in one stack. */
.bs-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 12px calc(env(safe-area-inset-bottom, 0px) + 8px); pointer-events: none; }
.bs-problem { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: var(--stamp); color: #fff; font: 600 16px var(--din); max-width: calc(100% - 24px); text-align: center; pointer-events: none; }
.bs-problem span { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; background: #fff; color: var(--stamp); font-size: 11px; }
.bs-problem[hidden] { display: none; }
.bs-boltrow { position: relative; width: min(560px, 100%); display: flex; justify-content: flex-end; }
.bs-boltrow[hidden] { display: none; }
.bs-bolt { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #000; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 82%, #000)); box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 4px 6px rgba(0,0,0,.35); }
.bs-bolt:active { transform: translateY(1px); }
.bs-fixes { position: absolute; right: 0; bottom: 54px; width: min(320px, calc(100vw - 24px)); padding: 14px; border-radius: 16px; display: grid; gap: 10px; background: color-mix(in srgb, var(--deep) 96%, transparent); text-align: left; z-index: 4; }
.bs-fixes[hidden] { display: none; }
.bs-fixes h3 { margin: 0; font-size: 21px; padding-top: 3px; }
.bs-fix { display: grid; gap: 3px; width: 100%; min-height: 44px; padding: 10px; border-radius: 10px; background: var(--paper); border: 1px solid rgba(243,235,216,.28); color: var(--ink); text-align: left; }
.bs-fix .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 15px; }
.bs-fix .top .num { color: rgba(243,235,216,.6); } .bs-fix .top .num.ok { color: var(--accent); }
.bs-fix .eff { font-size: 13px; color: rgba(243,235,216,.85); } .bs-fix .why { font-size: 13px; color: var(--stamp); }
.bs-inspect, .bs-tray { width: min(560px, 100%); }
.bs-inspect[hidden] { display: none; }
.bs-tray { display: grid; gap: 10px; }

/* Cards: the tray's, the inspector's, the reports'. */
.bs-card { position: relative; display: grid; gap: 10px; padding: 14px 12px 12px; border-radius: 28px; touch-action: pan-y; }
.bs-section[hidden] { display: none; }
.bs-grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(243,235,216,.35); pointer-events: auto; }
.bs-title { display: flex; align-items: center; gap: 8px; min-height: 30px; touch-action: none; }
.bs-title > svg { color: var(--accent); flex: none; }
.bs-title h3 { margin: 0; font-size: 21px; line-height: 1.1; padding-top: 3px; flex: 1; min-width: 0; }
.bs-close { position: relative; flex: none; width: 44px; height: 44px; margin: -6px -6px -6px 0; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.bs-close::before { content: ''; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); }
.bs-close svg { position: relative; }
.bs-fit { position: relative; }
.bs-scroll { max-height: clamp(160px, 42vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding: 2px; scrollbar-width: thin; }
.bs-fit.more::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; pointer-events: none; background: linear-gradient(transparent, var(--bs-glass)); }
.bs-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.bs-hint, .bs-sub { margin: 0; font: 13px/1.35 var(--round); color: rgba(243,235,216,.85); }
.bs-hint.bad { color: var(--stamp); font-weight: 600; }
.bs-hint.small, .small { font-size: 13px; }
.dim { color: rgba(243,235,216,.7); }
.bs-layout, .bs-staff, .bs-menu, .bs-mkt, .bs-fruit, .bs-stack { display: grid; gap: 10px; }
.bs-acts { display: flex; gap: 8px; align-items: center; }
.bs-acts.wrap { flex-wrap: wrap; }
.bs-acts .grow, .grow { flex: 1; }

/* Buttons: one amber primary, quiet secondaries (a well capsule, white label, hairline; `hot` is the armed destructive state). */
.bs-amber { flex: 1; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; color: #000; font-weight: 700; font-size: 17px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 82%, #000)); box-shadow: 0 3px 0 rgba(0,0,0,.4), 0 4px 6px rgba(0,0,0,.3); }
.bs-amber.wide { width: 100%; flex: none; }
.bs-amber:disabled { opacity: .4; cursor: default; box-shadow: none; }
.bs-amber:active:not(:disabled) { transform: translateY(1px); }
.bs-quiet { flex: 1; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.92); font-weight: 600; font-size: 15px; white-space: nowrap; }
.bs-quiet.wide { width: 100%; flex: none; }
.bs-quiet.icon { flex: none; width: 52px; padding: 0; }
.bs-quiet.hot { background: var(--stamp); border-color: rgba(255,255,255,.3); color: #fff; }
.bs-quiet:disabled, .bs-quiet.dim { opacity: .4; cursor: default; }
.bs-quiet.faint { background: transparent; color: rgba(243,235,216,.62); font-size: 14px; }
.bs-quiet.alert { background: rgba(255,138,118,.14); box-shadow: inset 0 0 0 1px rgba(255,138,118,.5); border-color: transparent; color: #FF8A76; font-size: 16px; font-weight: 700; }
.bs-quiet.danger { color: #FF8A76; }
.bs-quiet:active:not(:disabled) { filter: brightness(1.25); }
/* A select dressed as a button: the label shows, the native menu opens over it. */
.bs-quiet.pick, .bs-amber.pick { position: relative; overflow: hidden; cursor: pointer; }
.bs-pick select, .pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.pick select option { color: #000; }
.bs-amber.pick { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bs-info { width: 44px; height: 44px; display: grid; place-items: center; color: #9EE6DB; margin: -10px 0; }

/* Wells, stat tiles, meters, bars: the one inner-row surface. */
.bs-well, .bs-stat { background: var(--bs-well); border: 1px solid var(--bs-wellline); border-radius: 12px; }
.bs-well { display: grid; gap: 8px; padding: 10px; }
.bs-stat { position: relative; display: grid; gap: 2px; padding: 10px; align-content: start; }
.bs-stat small { font-size: 12px; color: rgba(243,235,216,.75); }
.bs-stat small.din { font-size: 14px; }
.bs-stat small.bad, .bs-stat b.bad { color: var(--stamp); font-weight: 600; }
.bs-stat b { font-size: 22px; line-height: 1.15; }
.bs-stat.accent { background: rgba(242,165,65,.18); border: 2px solid var(--accent); } .bs-stat.accent b { color: var(--accent); }
.bs-stat .bs-fruitdot { position: absolute; top: 10px; right: 10px; }
.bs-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bs-tiles.three { grid-template-columns: repeat(3, 1fr); }
.bs-capline { font: 13px/1.3 var(--round); color: rgba(243,235,216,.85); }
.bs-level { align-self: start; justify-self: start; font-size: 14px; padding: 4px 10px 1px; border-radius: 999px; color: var(--accent); background: rgba(242,165,65,.2); border: 1px solid rgba(242,165,65,.6); }
.bs-meter { display: block; height: 8px; border-radius: 4px; background: rgba(243,235,216,.15); overflow: hidden; }
.bs-meter i { display: block; height: 100%; border-radius: 4px; background: var(--teal); } .bs-meter.amber i { background: var(--accent); }
.bs-run { display: grid; gap: 6px; } .bs-run b { font-size: 15px; } .bs-run .bs-meter { height: 10px; }
.bs-banner-wrap { display: block; }
.bs-banner { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 8px 4px 16px; border-radius: 999px; background: var(--bs-glass); border: 1px solid var(--bs-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 600 15px var(--round); }
.bs-banner > svg { color: var(--accent); flex: none; } .bs-banner span { flex: 1; } .bs-banner .bs-quiet { flex: none; }

/* Reports. */
.bs-inspect.tall .bs-reportcard { max-height: min(76vh, 720px); grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.bs-rscroll { overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 10px; align-content: start; padding: 2px; min-height: 120px; }
.bs-well.sec h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; padding-top: 2px; } .bs-well.sec h4 svg { color: var(--accent); }
.bs-lines { display: grid; gap: 6px; } .bs-lines hr { width: 100%; border: 0; border-top: 1px solid rgba(243,235,216,.25); margin: 0; }
.bs-lrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.bs-lrow b { font-size: 17px; } .bs-lrow b.big { font-size: 22px; } .bs-lrow b.good { color: var(--accent); } .bs-lrow b.bad, .bs-lrow .bad { color: var(--stamp); }
.bs-lrow .strong, .strong { font-weight: 600; } .bs-lrow .strong svg { color: var(--accent); margin-right: 4px; vertical-align: -2px; }
.bs-drink { display: grid; gap: 3px; }
.bs-bars { display: flex; gap: 6px; align-items: flex-start; }
.bs-bars .bar { flex: 1; min-width: 28px; display: grid; gap: 3px; justify-items: center; }
.bs-bars .col { width: 100%; display: flex; flex-direction: column; } .bs-bars .col i { display: block; width: 100%; } .bs-bars .up { background: var(--teal); border-radius: 3px; } .bs-bars .up.stamp { background: var(--stamp); } .bs-bars .dn { background: var(--stamp); border-radius: 3px; }
.bs-bars small { font-size: 11px; color: rgba(243,235,216,.7); } .bs-bars small:last-child { color: rgba(243,235,216,.9); }
.bs-restart2 { display: grid; gap: 8px; margin-top: 4px; }
.bs-restart2 .q { margin: 0; font-weight: 700; text-align: center; } .bs-restart2 .d { margin: 0; font-size: 13px; color: rgba(243,235,216,.8); text-align: center; }

/* The tab strip: one glass capsule, the open tab lit amber. */
.bs-tabs { display: grid; grid-template-columns: repeat(var(--tabs, 4), 1fr); gap: 0; padding: 4px; border-radius: 999px; }
.bs-tabs button { position: relative; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 999px; color: rgba(255,255,255,.9); }
.bs-tabs button.on { background: rgba(242,165,65,.18); color: var(--accent); }
.bs-tabs .din { font-size: clamp(12px, 3.4vw, 14px); white-space: nowrap; padding-top: 1px; }
.bs-tabs .bs-badge { top: 6px; right: 12px; }

/* Build. */
.bs-chips { display: flex; gap: 6px; }
.bs-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 15px; }
.bs-chip.on { color: var(--accent); background: rgba(242,165,65,.18); border-color: rgba(242,165,65,.7); }
.bs-chip small { opacity: .7; font-size: 11px; } .bs-chip .din { padding-top: 2px; }
.bs-buy { display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px 4px 2px; scrollbar-width: thin; }
.bs-buyopt { flex: none; width: 104px; min-height: 92px; padding: 8px; display: grid; gap: 4px; align-content: start; justify-items: start; text-align: left; border-radius: 12px; background: var(--bs-well); border: 1px solid var(--bs-wellline); color: var(--ink); }
.bs-buyopt .pic { width: 100%; height: 38px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.bs-buyopt .nm { font-size: 15px; line-height: 1.1; padding-top: 2px; }
.bs-buyopt b { font-size: 13px; opacity: .75; font-weight: 400; }
.bs-buyopt.on { background: rgba(242,165,65,.18); border: 2px solid var(--accent); padding: 7px; }
.bs-buyopt.off { opacity: .4; }

/* Staff. */
.bs-well.srow { padding: 8px; }
.srow .srowtop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.srow .who { display: grid; flex: 1 1 72px; min-width: 0; white-space: nowrap; } .srow .who b { font-size: 16px; } .srow .who small { color: rgba(243,235,216,.7); font-size: 14px; }
.srow .pick { flex: 0 1 auto; max-width: 100%; } .srow .pick .din { overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.srow .pick svg { flex: none; } .srow .pick.open { color: var(--accent); } .srow .pick.open svg { transform: rotate(180deg); }
/* A new hire: amber for hiredSeconds (3 s of the 3.8), then a calm fade. The delay is set from the hire's own clock, so a redraw carries on. */
.bs-well.srow.just { animation: bs-hired 3.8s linear both; } .bs-well.srow.just.still { animation-timing-function: step-end; }
.srow.just .who small { color: var(--accent); }
@keyframes bs-hired { 0%, 79% { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } 100% { background: var(--bs-well); border-color: var(--bs-wellline); box-shadow: inset 0 0 0 1px transparent; } }
/* The job picker. */
.bs-jobs { display: grid; gap: 8px; }
.bs-jobline { min-height: 52px; width: 100%; padding: 6px 12px; display: flex; align-items: center; gap: 8px; text-align: left; border-radius: 12px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08); color: var(--ink); }
.bs-jobline .tx { flex: 1; min-width: 0; display: grid; gap: 2px; } .bs-jobline .top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bs-jobline b { color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-jobline em { font-style: normal; color: var(--accent); font-size: 13px; white-space: nowrap; }
.bs-jobline small { font-size: 14px; opacity: .7; } .bs-jobline svg { flex: none; color: var(--accent); }
.bs-jobline:disabled { opacity: .6; }
.bs-jobline.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
.bs-jobline:active { filter: brightness(1.25); } .bs-jobline:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bs-jobpage { display: grid; gap: 10px; } .bs-jobpage > div:first-child { display: flex; align-items: center; gap: 8px; } .bs-jobpage h3 { margin: 0; padding-top: 2px; color: #fff; font-size: 20px; font-weight: 400; }
.srow .fire { flex: none; width: auto; min-width: 44px; padding: 0 12px; }

/* Menu. */
.bs-mrow { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.bs-mrow .nm { flex: 1; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.bs-mrow .nm em { font-style: normal; font: 12px var(--din); padding: 3px 7px 0; border-radius: 999px; background: var(--accent); color: #000; }
.bs-mrow .nm.col { flex-direction: column; align-items: flex-start; gap: 1px; } .bs-mrow .nm.col small { font-weight: 400; font-size: 13px; color: rgba(243,235,216,.8); }
.bs-mrow .nm .spec { display: flex; align-items: center; }
.bs-menu hr, .bs-fruit hr { width: 100%; border: 0; border-top: 1px solid rgba(243,235,216,.2); margin: 0; }
.menuedit .bs-quiet { flex: none; } .menuedit .din { padding-top: 2px; }
.bs-step { display: inline-flex; align-items: center; gap: 2px; }
.bs-step button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.bs-step button::before { content: ''; position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); box-sizing: border-box; }
.bs-step button svg { position: relative; }
.bs-step button:disabled { opacity: .4; cursor: default; }
.bs-step b { min-width: 60px; text-align: center; font-size: 18px; }
.bs-toggle { padding: 4px 0; min-height: 44px; }
.bs-well .bs-mrow { min-height: 44px; }
.bs-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex: 1; color: var(--ink); font-size: 15px; text-align: left; } .bs-link svg { color: var(--accent); }
.bs-big { font-size: 18px; } .bs-statline { margin: 0; font-size: 15px; color: rgba(243,235,216,.9); }
.bs-rival .bs-stat { }

/* Receipts */
.bs-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: stretch center; }
.bs-overlay[hidden] { display: none; }
.bs-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.bs-rcol { position: relative; width: min(480px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 12px); min-height: 0; }
.bs-rcol > .bs-scroll { flex: 1; min-height: 0; overflow-y: auto; max-height: none; padding-top: calc(env(safe-area-inset-top, 0px) + 70px); display: grid; gap: 14px; align-content: start; }
.bs-paper { color: #2B1A05; }
.bs-paper.feed { animation: bs-feed .55s ease-out both; }
@keyframes bs-feed { from { transform: translateY(-420px); } to { transform: none; } }
.reduce-motion .bs-paper.feed { animation: none; }
.bs-paper .ln.title, .bs-paper .ln.subtitle { text-align: center; justify-content: center; }
.bs-paper .ln.subtitle { padding-bottom: 6px; }
/* The stand's closing receipt: PROFIT (the paid green) or LOSS (the stamp red), on a cream plate, turned -3 degrees. */
.bs-stamp { justify-self: center; margin: 12px 0 4px; font: 700 24px/1 var(--din); letter-spacing: .06em; color: #0F8038; background: #FDF2DB;
  border: 3.5px solid currentColor; padding: 8px 14px 5px; transform: rotate(-3deg); animation: bs-stamp .45s cubic-bezier(.3,1.6,.5,1) both; }
.bs-stamp.loss { color: var(--stamp); }
@keyframes bs-stamp { from { transform: rotate(-3deg) scale(1.8); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
.reduce-motion .bs-stamp { animation: none; }
.bs-note { margin: 0; font-size: 13px; color: rgba(243,235,216,.8); }
.bs-overlay .bigbtn { flex: none; width: 100%; }

/* The floor's Café / Stand pill (shell.js, ShopFloorPill): the shop's symbol, its label and an amber dot until the first visit. */
.pill.shoppill { gap: 6px; }
.pill.shoppill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Reviews: the pill, and the card (a report with a rating header, a star histogram and the review wells). */
.bs-pill.rating svg { color: var(--accent); }
.bs-rhead { justify-items: center; text-align: center; gap: 2px; }
.bs-rhead b.big { font-size: 44px; line-height: 1.05; }
.bs-stars { color: var(--accent); letter-spacing: 2px; font-size: 18px; }
.bs-rhead .dim, .bs-review .dim { color: rgba(243,235,216,.75); }
.bs-hist { gap: 6px; }
.bs-hrow { display: grid; grid-template-columns: 14px 14px minmax(0, 1fr) 28px; align-items: center; gap: 6px; font-size: 15px; }
.bs-hrow svg { color: var(--accent); } .bs-hrow b { text-align: right; font-size: 15px; }
.bs-hrow .bs-meter { height: 6px; }
.bs-effect { margin: 0; }
.bs-review { gap: 3px; } .bs-review p { margin: 0; font-size: 15px; line-height: 1.35; }
.bs-review .bs-lrow { align-items: center; }
@media (prefers-reduced-motion: reduce) { .bs-pill.rating { transition: none; } }

/* The banana stand's Menu row (the pier's secret): a heading, the stepper row, its chip and the article link. */
.bs-banana { display: flex; flex-direction: column; gap: 6px; }
.bs-banana .bs-read { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; }
.bs-banana .bs-read .sf:first-child { color: var(--accent); }

/* The banana stand found: a dim over the pier, the card in the shop's glass, confetti above (panels/beanstreet.js showBananaFound). */
.bs-found { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.25); animation: bs-found-in .3s ease-out both; }
.bs-found.still { animation: none; }
.bs-found .hq-confetti { z-index: 9; }
@keyframes bs-found-in { from { opacity: 0; } to { opacity: 1; } }
.bs-fcard { width: min(340px, 100%); display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px; border-radius: 28px; color: #fff; background: rgba(15,42,73,.82);
  animation: bs-found-pop .45s cubic-bezier(.3,1.4,.5,1) both; }
.bs-found.still .bs-fcard { animation: none; }
.bs-root[data-shop=coffee] .bs-fcard { background: rgba(47,29,18,.82); }
@keyframes bs-found-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.bs-fbadge { font-size: 52px; line-height: 1.1; }
.bs-fcard h3 { margin: 0; font-size: 28px; line-height: 1.1; }
.bs-fcard p { font: 600 15px/1.35 var(--round); color: rgba(255,255,255,.9); }
.bs-fbtns { display: grid; gap: 8px; width: 100%; padding-top: 4px; }
.bs-fbtns .bigbtn { min-height: 48px; }
.bs-fbtns .secondary-btn { background: #1E3556; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.bs-fcard button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Make it yours (shopstyle.js, iOS ShopStyleSheet): the Style tray's card and the sheet. */
.bs-style { display: grid; gap: 10px; }
.bs-signprev { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(243,235,216,.25); aspect-ratio: 3 / 1; width: 100%; max-height: 110px; justify-self: center; background: rgba(0,0,0,.2); }
.bs-signprev canvas { display: block; width: 100%; height: 100%; }
.bs-h { margin: 0; font-size: 18px; color: var(--accent); padding-top: 2px; }
.bs-wordpick { justify-content: space-between; width: 100%; flex: none; }
.bs-wordpick .lbl { font-weight: 400; font-size: 16px; margin-right: auto; }
.bs-wordpick .val { color: var(--accent); font-size: 18px; padding-top: 2px; }
.bs-signgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bs-opt { padding: 8px; }
.bs-opt.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bs-signbtn, .bs-palbtn { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px; }
.bs-signbtn .bs-signprev { max-height: none; }
.bs-signbtn.locked .bs-signprev, .bs-palbtn.locked .bs-sw { opacity: .55; }
.bs-signbtn:disabled, .bs-palbtn:disabled { cursor: default; }
.bs-lock { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; color: var(--ink); }
.bs-sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(243,235,216,.35); flex: none; }
.bs-palbtn { padding: 0 2px; }
.bs-ofoot { display: flex; align-items: center; gap: 8px; }
.bs-ofoot .tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.bs-ofoot .tx b { font-size: 18px; padding-top: 2px; }
.bs-ofoot .tx small { font-size: 13px; color: rgba(243,235,216,.8); }
.bs-ofoot .bs-amber { flex: none; font-size: 15px; }
.bs-tick { color: var(--accent); display: inline-flex; }
.bs-rname { margin: 0; text-align: center; font-size: 24px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .bs-signbtn, .bs-palbtn { transition: none; } }
.bs-inspect.tall .bs-reportcard:has([data-report=style]) { max-height: min(88vh, 780px); }

/* Profit split (TILL report): five choices, 44px tall, the chosen one amber */
.bs-keeps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bs-keep { min-height: 44px; border-radius: 10px; font: 600 15px var(--din, inherit); color: var(--ink); background: var(--bs-well); border: 1px solid var(--bs-wellline); cursor: pointer; }
.bs-keep.on { background: color-mix(in srgb, var(--accent) 30%, transparent); border: 2px solid var(--accent); }
.bs-keep:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bs-keepnote { margin: 0; font-size: 14px; }

/* The shop's till-paid upgrade card at the top of the Fruit and Menu trays */
.bs-upgrade .bs-uhead { display: flex; gap: 10px; align-items: flex-start; }
.bs-upgrade .bs-uhead > svg { flex: none; margin-top: 2px; color: var(--accent); }
.bs-upgrade .bs-uhead b { font-size: 18px; }
.bs-upgrade .bs-upay { font-weight: 600; color: rgba(243,235,216,.95); }
.bs-upgrade.owned .bs-upay { color: var(--accent); }
.bs-upgrade .bs-acts .bs-quiet { flex: 1 1 auto; }
.bs-owned { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--accent); }
