:root{font-family:system-ui,"Segoe UI",sans-serif;color:#164e48;background:#105d60;color-scheme:light;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input,select{font:inherit}button,.file-button{border:0;min-width:44px;min-height:44px;padding:9px 18px;color:#fff8d5;font-weight:800;background:transparent url("/assets/ui/pastel-v1/button.webp") center/100% 100% no-repeat;cursor:pointer;touch-action:manipulation;transition:transform .13s ease-out,filter .13s}button.gold{background-image:url("/assets/ui/pastel-v1/gold-button.webp");color:#785518}button:active:not(:disabled){transform:scale(.94)}button:disabled{cursor:default;filter:grayscale(.55);opacity:.52}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #fcba49;outline-offset:2px}button img,.file-button img{width:30px;height:30px;vertical-align:middle}button[hidden],[hidden]{display:none!important}
#game{position:fixed;inset:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:grid;place-items:center;user-select:none}.stage{position:relative;width:min(100%,calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))*16/9));aspect-ratio:16/9;isolation:isolate;overflow:hidden}canvas{display:block;width:100%;height:100%}.hud{position:absolute;top:5px;left:8px;display:flex;gap:4px;z-index:5;font-size:12px;pointer-events:none}.hud-pill{display:flex;align-items:center;gap:5px;min-height:36px;padding:4px 12px 9px;background:url("/assets/ui/pastel-v1/hud.webp") center/100% 100% no-repeat;white-space:nowrap;font-weight:800}.hud img{width:24px;height:24px}.cash{padding-right:15px}.icon-button{padding:5px;width:44px;height:44px;display:grid;place-items:center}.icon-button img{width:34px;height:34px;pointer-events:none}.top-book,.top-pause{position:absolute;top:4px;z-index:6}.top-book{right:54px}.top-pause{right:5px}.edit-button{position:absolute;left:57%;top:55%;z-index:6}.thief{position:absolute;left:60%;top:42%;z-index:9;background-image:url("/assets/ui/pastel-v1/gold-button.webp");animation:thief-alert .55s ease-in-out infinite alternate}
#queue{position:absolute;left:63%;top:6px;display:flex;gap:4px;z-index:5;pointer-events:none}.avatar{width:39px;height:39px;position:relative;background:url("/assets/ui/pastel-v1/gold-button.webp") center/contain no-repeat;border-radius:50%}.avatar img{position:absolute;inset:5px;width:29px;height:29px;border-radius:50%;object-fit:cover;background:#d7f5e6}.avatar svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.avatar circle{fill:none;stroke:#40bd90;stroke-width:4;stroke-linecap:round;stroke-dasharray:113.1;stroke-dashoffset:calc(113.1*(1 - var(--remaining)));transition:stroke-dashoffset 1s linear}
.speech{position:absolute;z-index:4;padding:10px 13px 10px 9px;color:#31594d;background:url("/assets/ui/pastel-v1/paper.webp") center/100% 100% no-repeat;display:flex;flex-direction:column;gap:4px;min-height:90px;pointer-events:auto;transition:opacity .2s,transform .25s}.speech p{margin:0;font-size:12px;font-weight:650;line-height:1.17;overflow-wrap:anywhere}.speech .reaction{color:#99563a}.speech .speech-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;touch-action:pan-y}.speech .patience{position:absolute;right:1px;top:7px;bottom:12px;width:7px;background:url("/assets/ui/pastel-v1/timer-track.webp") center/100% 100% no-repeat;padding:2px}.speech.right{padding:10px 8px 10px 15px}.speech.right .patience{right:auto;left:1px}.patience-fill{display:block;width:100%;height:100%;border-radius:5px;background:#31be89;transform-origin:bottom;transform:scaleY(var(--remaining));transition:transform 1s linear}.speech.warning .patience-fill{background:#f0bd4c}.speech.urgent .patience-fill{background:#e66c59}.speech.departed{pointer-events:none}.speech .progress-count{font-size:11px;font-weight:900;text-align:center}.swap-button{align-self:center;flex-shrink:0;width:44px;height:44px;padding:6px}.swap-button img{width:30px;height:30px}.customer-drop{position:absolute;z-index:3;border:0;background:none;opacity:1;touch-action:none;color:transparent;padding:0}.customer-drop:hover{background:none}.customer-drop.drag-over{background:url("/assets/ui/pastel-v1/gold-button.webp") center/100% 100% no-repeat;opacity:.15}.customer-drop:focus-visible{outline:4px solid #ffcf65;outline-offset:-4px}
.source-hit,.cup-hit{position:absolute;background:none;padding:0;border:0;min-width:44px;min-height:44px;touch-action:none;z-index:2}.source-hit:disabled{opacity:1;filter:none}.source-hit[data-empty=true]{filter:grayscale(.75)}.source-hit:active:not(:disabled),.cup-hit:active:not(:disabled){background:#fff2c422;transform:none}.stock-badge{position:absolute;right:10%;bottom:12%;min-width:24px;padding:2px 6px 3px;font-size:12px;color:#185c50;font-weight:900;background:url("/assets/ui/pastel-v1/hud.webp") center/100% 100% no-repeat;pointer-events:none}.source-hit img{position:absolute;width:30px;height:30px;bottom:14%;left:8%;pointer-events:none}.cup-hit{z-index:5;cursor:grab}.cup-hit[data-sealed=true]:active{cursor:grabbing}.cup-hit:disabled{opacity:1}.size-button{position:absolute;z-index:6;padding:3px;display:flex;align-items:center;justify-content:center;gap:1px}.size-button img{width:25px;height:32px;pointer-events:none}.size-button strong{font-size:17px;pointer-events:none}.size-button[data-size=S] img{height:22px}.size-button[data-size=L] img{height:38px}
.screen{position:fixed;inset:0;z-index:20;background:#154e57b8;display:grid;place-items:center;padding:10px max(10px,env(safe-area-inset-right))}.panel{background:url("/assets/ui/pastel-v1/panel.webp") center/100% 100% no-repeat;width:min(940px,100%);max-height:calc(100dvh - 20px);padding:20px;display:flex;flex-direction:column}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.eyebrow{font-size:10px;letter-spacing:.08em;margin:0 0 3px}.panel-head h1{font-size:21px;margin:0}.panel-body{overflow:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:0;padding:8px 2px}.prep-body{display:grid;grid-template-columns:1fr 1fr;gap:20px}h2{font-size:16px;margin:8px 0}p{font-size:14px}label{font-size:13px;font-weight:700;display:block;margin:5px 0}.muted{font-size:12px;line-height:1.4;color:#59756a;margin:6px 0}.products{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:6px 0}.product{background:url("/assets/ui/pastel-v1/paper.webp") center/100% 100% no-repeat;padding:8px;display:grid;gap:3px}.product strong{font-size:12px}.product .stock{font-size:11px}.product p{display:none}.product button{min-height:44px;font-size:12px;padding:6px}.wide{width:100%}.batch-row{display:flex;gap:8px;align-items:center;margin-bottom:5px}.batch-row button{font-size:12px;padding:5px 10px;flex:1}.batch-row span{font-size:12px;white-space:nowrap}.check-label{display:inline-flex;align-items:center;gap:4px;margin-right:8px}.check-label input{width:22px;height:22px;accent-color:#0c9f94}input:not([type=checkbox]),select{width:100%;min-height:36px;color:#225b50;border:0;padding:8px 10px;background:#fffaf0;border-radius:6px}.panel-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:8px;flex-shrink:0}.panel-foot button{font-size:13px}.summary-panel{max-width:650px}.summary-panel dl{display:grid;grid-template-columns:1fr auto;font-size:13px;gap:5px}.summary-panel dd{margin:0;font-weight:800}
dialog{border:0;background:url("/assets/ui/pastel-v1/panel.webp") center/100% 100% no-repeat;color:#24564b;padding:20px;width:min(580px,calc(100% - 28px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y}dialog::backdrop{background:#143e4ec9}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:#fff3d1;z-index:2;padding-top:2px}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.dialog-actions button{font-size:13px}.dialog-actions img{width:24px;height:24px;margin-right:4px}.file-button{display:inline-flex;align-items:center;gap:4px;cursor:pointer;margin:0;padding:9px 15px;font-size:13px}.file-button input{display:none}.book-dialog{width:min(680px,calc(100% - 24px))}.guide-steps{display:flex;gap:12px}.guide-steps>div{flex:1;position:relative}.guide-steps img{width:50px;height:50px}.guide-steps b{font-size:15px;margin-left:7px}.guide-steps p{font-size:12px;line-height:1.35}.dose-table{display:grid;grid-template-columns:60px repeat(4,1fr);gap:7px;align-items:center;margin:12px 0}.dose-table>img{width:40px;height:40px}.dose-table>div{text-align:center;background:url("/assets/ui/pastel-v1/paper.webp") center/100% 100% no-repeat;padding:7px 2px;font-size:11px}.dose-table span{display:block;white-space:nowrap;font-weight:700}.dose-table .dose-icons{height:25px;display:flex;justify-content:center;align-items:center}.dose-icons img{width:21px;height:21px}.dose-icons b{font-size:19px;color:#a28760}.dose-table em{display:block;font-style:normal;font-weight:800;font-size:12px;color:#0c8b7a;margin:3px 0}
#toast{position:fixed;left:50%;bottom:8px;transform:translateX(-50%);padding:10px 17px;max-width:min(450px,85vw);z-index:60;pointer-events:none;background:url("/assets/ui/pastel-v1/panel.webp") center/100% 100% no-repeat;color:#185c51;font-size:13px;font-weight:650;text-align:center}#toast:empty{display:none}#toast[data-error=true]{color:#963e24}.loading{position:fixed;inset:0;background:#125e60;color:#fff2c8;display:grid;place-content:center;text-align:center;z-index:80}.loading h1{font-size:25px}.orientation-note{display:none;position:fixed;inset:0;background:#125e60;z-index:70;place-content:center;text-align:center;color:#fff2c8;gap:14px}.orientation-note img{width:85px;margin:auto}.paused .patience-fill,.paused .avatar circle{transition:none}
@keyframes thief-alert{to{transform:scale(1.08)}}@media(orientation:portrait){.orientation-note{display:grid}}@media(max-height:440px){.panel{padding:15px 20px}.panel-body{padding-top:4px}.panel-head h1{font-size:18px}.panel-head .eyebrow{font-size:9px}.panel-foot .muted{font-size:11px}.products{gap:4px}.product{padding:6px}.product button{font-size:11px}.prep-body{gap:16px}.panel-foot{padding-top:3px}.hud{font-size:11px}.hud-pill{min-height:32px;padding-left:9px;padding-right:9px;gap:4px}.hud img{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}


.swap-button{position:absolute;left:-46px;top:0}.avatar.warning circle{stroke:#f0bd4c}.avatar.urgent circle{stroke:#e66c59}
.speech::after{content:"";position:absolute;right:-7px;top:22%;width:9px;height:18px;background:url('/assets/ui/pastel-v1/bubble-tail.webp') center/100% 100% no-repeat;pointer-events:none}.speech.right::after{right:auto;left:-7px;transform:rotate(180deg)}
.recipe-chips{display:flex;align-items:center;justify-content:space-between;gap:2px;color:#087b72;font-size:11px;flex-shrink:0;padding-bottom:3px}.recipe-chips>span{display:flex;align-items:center;gap:1px}.recipe-chips img{width:13px;height:13px}.recipe-chips>b{font-size:12px}

/* UI surfaces and symbols use registered painted bitmap assets. */
.icon-button{background:none;padding:1px}.icon-button img{width:42px;height:42px;object-fit:contain}
.hud-pill{padding:6px 12px;background-image:url('/assets/ui/pastel-v1/hud.webp')}.hud img{object-fit:contain}
.stock-badge{width:22px;height:22px;min-width:0;padding:0;display:grid;place-items:center;right:7%;bottom:9%;background:url('/assets/ui/pastel-v1/counter.webp') center/contain no-repeat;font-size:11px;line-height:1;color:#735014}
.source-hit img{display:none}.source-hit:active:not(:disabled),.cup-hit:active:not(:disabled){background:none;filter:brightness(1.13)}
.source-hit.return-over{filter:drop-shadow(0 0 6px #ffeaaa)}
.trash-drop{position:fixed;left:calc(env(safe-area-inset-left) + var(--discard-inset,4px));bottom:calc(env(safe-area-inset-bottom) + var(--discard-inset,4px));width:var(--discard-size,44px);height:var(--discard-size,44px);z-index:6;background:none;padding:0;touch-action:none;min-width:44px;min-height:44px}
#game[data-discard-dock=compact]{padding-left:var(--discard-lane,52px)}
.trash-drop img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.trash-drop:disabled{opacity:1;filter:none}.trash-drop.drag-over img{filter:brightness(1.18) drop-shadow(0 0 5px #ffe89c);transform:scale(1.1)}
.trash-drop:active{transform:none}.bin-bounce img{animation:bin-bounce .32s ease-out}
@keyframes bin-bounce{30%{transform:scale(1.12,.88)}65%{transform:scale(.94,1.06)}100%{transform:scale(1)}}
.speech{background:none;isolation:isolate;padding:12px 16px 14px 10px}.speech::before{content:'';position:absolute;inset:0;background:url('/assets/ui/pastel-v1/paper.webp') center/100% 100% no-repeat;z-index:-1;pointer-events:none}
.speech.right{padding:12px 10px 14px 16px}.speech.right::before{transform:scaleX(-1)}.speech::after{display:none;background:none}
.speech .patience{width:10px;right:1px;top:10px;bottom:14px;padding:9px 3px;background:url('/assets/ui/pastel-v1/timer-track.webp') center/100% 100% no-repeat}.speech.right .patience{left:1px;right:auto}
.patience-fill{background:url('/assets/ui/pastel-v1/timer-fill.webp') center/100% 100% no-repeat;border-radius:0}.speech.warning .patience-fill{background-image:url('/assets/ui/pastel-v1/timer-fill.webp');filter:hue-rotate(-65deg)}.speech.urgent .patience-fill{background-image:url('/assets/ui/pastel-v1/timer-fill.webp');filter:hue-rotate(-120deg)}
.avatar{background-image:url('/assets/ui/pastel-v1/counter.webp')}.customer-drop.drag-over{background-image:url('/assets/ui/pastel-v1/gold-button.webp')}
.panel,dialog{padding:24px;background-image:url('/assets/ui/pastel-v1/panel.webp')}.dialog-head{background:none}
input:not([type=checkbox]),select{background:transparent url('/assets/ui/pastel-v1/hud.webp') center/100% 100% no-repeat;border-radius:0;min-height:40px}
.check-label input{appearance:none;width:24px;height:24px;background:url('/assets/ui/pastel-v1/counter.webp') center/contain no-repeat;display:grid;place-items:center}.check-label input:checked::after{content:'✓';font-size:17px;color:#057569;font-weight:900}
@media(prefers-reduced-motion:reduce){.bin-bounce img{animation:none}.trash-drop.drag-over img{transform:none}}

.icon-button.gold{background:none}

/* Pastel artwork: mint actions, lilac secondary controls, peach emphasis. */
:root{color:#234d49}button,.file-button{color:#234d49;font-weight:750;transition:transform .14s ease-out,filter .14s ease-out}
button.gold{color:#493f48}button:disabled{opacity:.68;filter:saturate(.45)}button:active:not(:disabled){transform:scale(.96);filter:brightness(.97)}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #7d699e;outline-offset:3px}
.icon-button,.icon-button.gold{background:transparent url('/assets/ui/pastel-v1/tile-mint.webp') center/100% 100% no-repeat;padding:8px}
.icon-button img{width:27px;height:27px}.top-pause,.swap-button,#close-guide{background-image:url('/assets/ui/pastel-v1/tile-lilac.webp')}.thief{background-image:url('/assets/ui/pastel-v1/tile-peach.webp')}
.swap-button img{width:25px;height:25px}.size-button{color:#234d49;gap:2px;background-image:url('/assets/ui/pastel-v1/tile-mint.webp');font-weight:850}
.size-button[data-size=M]{background-image:url('/assets/ui/pastel-v1/tile-lilac.webp')}.size-button[data-size=L]{background-image:url('/assets/ui/pastel-v1/tile-peach.webp')}.size-button img{width:22px;object-fit:contain}.size-button strong{font-size:16px}
#open-settings,#pause-settings,#summary-save,#close-settings,#pause-book,.file-button{background-image:url('/assets/ui/pastel-v1/secondary-button.webp');color:#403b58}
.hud-pill{color:#234d49;padding:5px 10px;font-weight:750}.stock-badge{color:#234d49;font-weight:800}
.speech{color:#234d49}.speech .reaction{color:#75535f}.speech p{font-weight:600}.speech .patience{padding:5px 3px}.patience-fill{filter:hue-rotate(125deg)}.speech.warning .patience-fill{filter:hue-rotate(65deg)}.speech.urgent .patience-fill{filter:none}
.product{background-image:url('/assets/ui/pastel-v1/panel.webp')}.dose-table>div{background-image:url('/assets/ui/pastel-v1/panel.webp')}.panel,dialog{color:#234d49}.muted{color:#586c66}.screen{background:#173f4866}dialog::backdrop{background:#173f4877}
.recipe-chips{color:#385f57}.dose-table em{color:#355d55}.dose-icons b{color:#796c86}.avatar circle{stroke:#81b9a3}.avatar.warning circle{stroke:#d8b978}.avatar.urgent circle{stroke:#ce8e9d}
@media(max-height:440px){.hud-pill{padding:5px 9px}}

/* Art surfaces retain their corners; only the plain middle stretches. */
:root{--ink:#234d49;--muted:#586c66;--warning:#785452;--gap:8px}
:where(button:not(.icon-button):not(.source-hit):not(.cup-hit):not(.customer-drop):not(.trash-drop):not(.size-button),.file-button){position:relative;isolation:isolate;background:none;color:var(--ink);font-size:14px;padding:8px 14px}
:where(button:not(.icon-button):not(.source-hit):not(.cup-hit):not(.customer-drop):not(.trash-drop):not(.size-button),.file-button)::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:10px solid transparent;border-image: url('/assets/ui/pastel-v2/button-mint.webp') 24 fill / 10px / 0 stretch}
button.gold{background:none}button.gold::before{border-image-source:url('/assets/ui/pastel-v2/button-peach.webp')}
#open-settings,#pause-settings,#summary-save,#close-settings,#pause-book,.file-button{background:none}
#open-settings::before,#pause-settings::before,#summary-save::before,#close-settings::before,#pause-book::before,.file-button::before{border-image-source:url('/assets/ui/pastel-v2/button-lilac.webp')}
.panel,dialog{position:relative;isolation:isolate;background:none;padding:20px}
.panel::before,dialog::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:16px solid transparent;border-image:url('/assets/ui/pastel-v2/panel.webp') 24 fill / 16px / 0 stretch}
.panel-head h1{font-size:22px}.prep-panel{width:min(940px,100%);height:min(430px,calc(100dvh - 24px));padding:16px;gap:8px}.prep-panel .panel-head{min-height:28px;flex-shrink:0}.prep-wallet{display:flex;align-items:center;gap:6px;font-size:16px;font-variant-numeric:tabular-nums}.prep-wallet img{width:24px;height:24px}
.prep-tabs{display:flex;gap:8px;flex-shrink:0}.prep-tabs button{display:flex;justify-content:center;align-items:center;gap:8px;flex:1;font-size:15px;min-height:44px;font-weight:800}.prep-tabs button[aria-selected=false]::before{border-image-source:url('/assets/ui/pastel-v2/field.webp')}.prep-tabs button[aria-selected=false]{color:var(--muted);font-weight:600}.prep-tabs button[aria-selected=true]{color:var(--ink)}
.prep-body{display:block;flex:1;min-height:0;padding:0 2px;overflow:auto;scrollbar-width:thin;scrollbar-color:#9bbfb4 #fff9f3}.prep-body>section{height:100%}.import-top{display:flex;align-items:center;gap:12px;margin-bottom:8px}.import-top #starter{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;min-width:240px}.import-top #starter>img{width:19px;height:19px}.import-top #starter strong{margin-left:8px;font-size:15px}.prep-forecast{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}.prep-forecast img{width:26px;height:26px}
.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.product,.batch-card,.menu-card{position:relative;isolation:isolate;background:none}.product::before,.batch-card::before,.menu-card::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:10px solid transparent;border-image:url('/assets/ui/pastel-v2/card.webp') 24 fill / 10px / 0 stretch}
.product{display:grid;grid-template-columns:36px minmax(0,1fr) 80px;align-items:center;gap:6px;padding:8px;min-height:72px}.product>img{width:36px;height:42px;object-fit:contain}.product>div{min-width:0;display:flex;flex-direction:column;gap:3px}.product>div>strong{font-size:14px;line-height:1.15}.product .stock{font-size:12px;line-height:1.2}.product button{padding:4px;font-size:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:44px}.product button strong{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}.product button span{font-size:12px;font-weight:500;white-space:nowrap}.product[data-short=true] .stock{color:var(--warning)}
.prep-foot{min-height:48px;flex-shrink:0;padding:0;gap:12px}.prep-tools{display:flex;align-items:center;gap:8px}.prep-tools #open-settings{padding:7px 10px;font-size:13px}.prep-foot>button{flex-shrink:0;min-width:136px;font-size:15px;min-height:44px}.prep-foot>button img{width:15px;height:15px;margin-left:5px}.prep-foot #prep-readiness{margin:0;flex:1;max-width:420px;font-size:13px;line-height:1.3;color:var(--warning)}#prep-readiness[data-ready=true]{color:var(--ink)}
.brew-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.brew-columns h2{font-size:16px;margin:0 0 7px}.batch-card{display:grid;grid-template-columns:40px minmax(0,1fr) 96px;align-items:center;gap:8px;min-height:76px;padding:8px;margin-bottom:8px}.batch-card>img{width:40px;height:44px;object-fit:contain}.batch-card>div{display:flex;flex-direction:column;gap:2px}.batch-card>div>strong{font-size:15px}.batch-card span{font-size:14px;font-weight:750}.batch-card small{font-size:12px;color:var(--muted)}.batch-card button{padding:6px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:5px}.batch-card button strong{font-size:16px}
.menu-card{margin:0 0 6px;padding:6px 8px;display:flex;align-items:center;gap:8px;min-height:50px;cursor:pointer}.menu-card input{flex-shrink:0;appearance:none;width:26px;height:26px;margin:0;background:url('/assets/ui/pastel-v1/counter.webp') center/contain no-repeat;display:grid;place-items:center}.menu-card input:checked::after{content:'✓';font-size:18px;color:var(--ink);font-weight:850}.menu-card>span{display:flex;flex-direction:column;gap:2px}.menu-card strong{font-size:14px}.menu-card small{font-size:12px;color:var(--warning)}.menu-card[data-ready=true] small{color:var(--ink)}
.price-row{display:flex;align-items:center;gap:8px;margin-top:6px}.price-row label{font-size:13px;white-space:nowrap;margin:0}.price-row select{flex:1;min-width:0;font-size:16px}
input:not([type=checkbox]),select{position:relative;min-height:44px;padding:8px 10px;border:8px solid transparent;border-image:url('/assets/ui/pastel-v2/field.webp') 24 fill / 8px / 0 stretch;background:none;color:var(--ink);font-size:16px;padding:0 4px}
.speech p{font-size:13px;line-height:1.24;font-weight:500}.speech p strong{font-weight:750;color:var(--ink)}.speech .recipe-chips{font-size:12px}.speech .recipe-chips img{width:14px;height:14px}
.dose-table>div{background:none;position:relative;isolation:isolate}.dose-table>div::before{content:'';position:absolute;inset:0;z-index:-1;border:8px solid transparent;border-image:url('/assets/ui/pastel-v2/card.webp') 24 fill / 8px / 0 stretch}.prep-guide{font-size:14px;line-height:1.35;margin:8px 0 14px}.prep-guide p{font-size:13px;margin:6px 0}.book-dialog{max-height:calc(100dvh - 24px)}.dialog-head{top:-20px;background:none;padding:4px 0;isolation:isolate}.dialog-head::before{content:'';position:absolute;inset:0;z-index:-1;border:8px solid transparent;border-image:url('/assets/ui/pastel-v2/panel.webp') 24 fill / 8px / 0 stretch}.guide-steps p{font-size:13px}.muted{font-size:13px}
.stock-pop{animation:stock-pop .22s ease-out}@keyframes stock-pop{50%{transform:scale(1.15)}100%{transform:scale(1)}}
@media(max-height:440px){.prep-panel{padding:12px;gap:6px;height:calc(100dvh - 20px)}.prep-panel .panel-head h1{font-size:19px}.prep-wallet{font-size:15px}.prep-body{padding:0 1px}.prep-foot{min-height:44px;gap:8px}.prep-foot #prep-readiness{font-size:12px}.prep-tabs button{font-size:14px}.product{padding:6px;min-height:64px;grid-template-columns:30px minmax(0,1fr) 74px;gap:5px}.product>img{width:30px;height:38px}.product>div>strong{font-size:13px}.product .stock{font-size:12px}.products{gap:6px}.import-top{margin-bottom:6px;gap:8px}.prep-forecast{font-size:12px}.batch-card{min-height:68px;margin-bottom:6px;grid-template-columns:32px minmax(0,1fr) 86px;gap:6px;padding:6px}.batch-card>img{width:32px;height:40px}.batch-card>div>strong{font-size:14px}.batch-card span{font-size:13px}.batch-card small{font-size:12px}.menu-card{min-height:48px;padding:4px 7px}.menu-card strong{font-size:13px}.brew-columns{gap:12px}.brew-columns h2{font-size:15px;margin-bottom:6px}.price-row select{font-size:16px}.prep-foot>button{min-width:124px;font-size:14px}}
@media(max-width:700px){.product{grid-template-columns:24px minmax(0,1fr) 67px;gap:4px}.product>img{width:24px;height:34px}.product button strong{font-size:14px}.prep-forecast{font-size:12px}.import-top #starter{min-width:230px}.prep-tools #open-settings{font-size:12px;padding:7px 8px}.prep-foot>button{min-width:120px}.batch-card{grid-template-columns:26px minmax(0,1fr) 78px}.batch-card>img{width:26px}.batch-card button{font-size:13px}.batch-card span{font-size:13px}.batch-card small{font-size:12px}.menu-card strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.stock-pop{animation:none}}

button,.file-button,.menu-row{-webkit-tap-highlight-color:transparent}.prep-guide summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:750;min-height:44px}.prep-guide summary::-webkit-details-marker{display:none}.prep-guide summary img{width:14px;height:14px;transition:transform .14s}.prep-guide[open] summary img{transform:rotate(90deg)}

/* One printed menu uses the existing painted paper; items are plain list rows. */
.brew-columns{align-items:start;grid-template-columns:minmax(0,2fr) minmax(0,3fr)}.batch-section{min-width:0}.batch-section .batch-card{grid-template-columns:32px minmax(0,1fr) 86px;gap:6px;min-height:68px;padding:6px}.batch-card>div{min-width:0}.batch-section .batch-card>img{width:32px;height:40px}.batch-card>div>strong{font-size:14px}.batch-card span{font-size:13px}.menu-paper{position:relative;isolation:isolate;padding:12px 16px;min-width:0}
.menu-paper::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:12px solid transparent;border-image:url('/assets/ui/pastel-v2/panel.webp') 24 fill / 12px / 0 stretch}
.menu-paper-head{text-align:center;margin-bottom:8px}.menu-paper-head>span{display:block;font-size:13px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.menu-paper-head h2{font-size:20px;line-height:24px;letter-spacing:1.6px;margin:2px 0 0;font-weight:850}
.menu-group{border:0;margin:0;padding:0;min-width:0}.menu-group+.menu-group{margin-top:6px}.menu-group legend{width:100%;padding:0;font-size:12px;line-height:16px;letter-spacing:1px;font-weight:800;color:var(--muted)}.menu-group legend>span{float:right;letter-spacing:0;font-weight:600}
.menu-row{display:flex;align-items:center;gap:8px;min-height:48px;margin:0;padding:2px 0;cursor:pointer}
.menu-row input{flex-shrink:0;appearance:none;width:26px;height:26px;margin:0;background:url('/assets/ui/pastel-v1/counter.webp') center/contain no-repeat;cursor:pointer}.menu-row input:checked{background-image:url('/assets/ui/pastel-v1/check.webp')}
.menu-description{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.menu-description>strong{font-size:14px;line-height:18px}.menu-description>small{font-size:12px;line-height:14px;color:var(--warning)}
.menu-row[data-ready=true] small{color:var(--muted)}.menu-row[data-enabled=false] .menu-description>strong,.menu-row[data-enabled=false] .menu-price{text-decoration:line-through;color:var(--muted)}
.menu-price{font-size:14px;line-height:18px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.menu-size-note{margin:6px 0 0;text-align:center;font-size:12px;line-height:14px;color:var(--muted)}
@media(max-height:440px){.menu-paper{padding:8px 12px}.menu-paper-head{margin-bottom:4px}.menu-paper-head>span{font-size:12px;line-height:14px}.menu-paper-head h2{font-size:18px;line-height:22px;margin:0}.menu-group legend{line-height:14px}.menu-group+.menu-group{margin-top:4px}.menu-row{min-height:44px}.menu-size-note{margin-top:4px}}
@media(max-height:440px){.batch-section>h2{line-height:18px;margin-bottom:4px}.batch-section .batch-card{min-height:60px;margin-bottom:4px;padding:4px 6px}.batch-card>div{gap:1px}.batch-card>div>strong{line-height:18px}.batch-card span{line-height:16px}.batch-card small{line-height:14px}.batch-section .price-row{margin-top:0}}
@media(max-width:700px){.batch-section .batch-card{grid-template-columns:24px minmax(0,1fr) 76px}.batch-section .batch-card>img{width:24px}}

/* The painted card is the actual content boundary, with an internal timer column. */
.speech,.speech.right{display:grid;grid-template-columns:minmax(0,1fr) 8px;grid-template-rows:minmax(0,1fr) auto;column-gap:6px;row-gap:4px;padding:10px 12px;min-height:0;background:none;overflow:hidden}
.speech::before,.speech.right::before{background:none;transform:none;border:10px solid transparent;border-image:url('/assets/ui/pastel-v2/card.webp') 24 fill / 10px / 0 stretch}.speech::after{display:none}
.speech-content{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:0}.speech .speech-scroll{min-width:0;min-height:0;max-width:100%;flex:1;scrollbar-width:thin;overflow:auto}
.speech p{font-size:13px;line-height:1.24;overflow-wrap:break-word;white-space:normal}
.speech .patience,.speech.right .patience{position:static;grid-column:2;grid-row:1;align-self:stretch;justify-self:center;width:8px;min-height:40px;height:auto;margin:0;padding:3px 2px;background:url('/assets/ui/pastel-v1/timer-track.webp') center/100% 100% no-repeat;overflow:hidden}
.speech.right{grid-template-columns:8px minmax(0,1fr)}.speech.right .speech-content{grid-column:2}.speech.right .patience{grid-column:1}
.speech .patience-fill{height:100%;width:100%;transform-origin:bottom;transition:transform 1s linear;background:url('/assets/ui/pastel-v1/timer-fill.webp') center/100% 100% no-repeat}
.speech .swap-button{position:static;grid-column:1/-1;grid-row:2;justify-self:center;align-self:center;width:44px;height:44px;padding:8px}
.speech .recipe-chips{min-width:0;gap:2px;flex-wrap:wrap;justify-content:space-between;flex-shrink:0;padding:0;font-size:12px}.speech .recipe-chips img{width:12px;height:12px}
.speech{transition:none}
/* Keep the painted WebP silhouette; tint the live progress rather than stepping hues. */
.speech .patience-fill,.speech.warning .patience-fill,.speech.urgent .patience-fill{background:var(--patience-color,#48c18c);filter:none;-webkit-mask:url('/assets/ui/pastel-v1/timer-fill.webp') center/100% 100% no-repeat;mask:url('/assets/ui/pastel-v1/timer-fill.webp') center/100% 100% no-repeat;transition:transform 1s linear,background-color 1s linear}
.avatar circle,.avatar.warning circle,.avatar.urgent circle{stroke:var(--patience-color,#48c18c);transition:stroke-dashoffset 1s linear,stroke 1s linear}
.paused .speech .patience-fill,.paused .avatar circle{transition:none}
.size-button.cup-rack-hit,.size-button.cup-rack-hit[data-size=M],.size-button.cup-rack-hit[data-size=L]{display:block;background:none;border:0;box-shadow:none;padding:0;min-width:44px;min-height:44px;touch-action:manipulation;z-index:2}
.size-button.cup-rack-hit strong{position:absolute;transform:translate(-50%,-50%);font-size:15px;line-height:1;font-weight:850;color:#234d49;text-shadow:0 1px 2px #ffffffcc;pointer-events:none;transition:transform .12s ease-out}
.size-button.cup-rack-hit:active:not(:disabled) strong{transform:translate(-50%,-50%) scale(.9)}
.cup-rack-hit[data-size=M]{z-index:3}.cup-rack-hit[data-size=S]{z-index:4}
/* Leave the rack accessible while keeping the short natural order in its card. */
.speech.right{padding:8px;column-gap:4px;row-gap:2px}
.speech.right p{font-size:12px;line-height:1.17}
.speech p,.speech.right p{font-size:13px;line-height:1.2}
@media(max-width:760px){.speech,.speech.right{padding:8px;column-gap:4px}.speech p,.speech.right p{font-size:12px;line-height:1.18}}
.speech .progress-count{display:inline-flex;align-items:center;justify-content:center;margin-left:4px;padding:1px 5px;font-size:11px;line-height:14px;font-weight:850;vertical-align:middle;background:url('/assets/ui/pastel-v1/hud.webp') center/100% 100% no-repeat;white-space:nowrap}

/* A compact inline action reserves real text space; it never overlays the order. */
.speech,.speech.right{grid-template-rows:minmax(0,1fr);row-gap:0}
.speech .speech-scroll{display:block}
.speech .swap-button{float:right;display:grid;place-items:center;position:relative;inset:auto;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;margin:0 0 4px 6px;padding:8px;grid-area:auto;background:none;box-sizing:border-box}
.speech .swap-button::before{border-image-source:url('/assets/ui/pastel-v2/button-mint.webp')}
.speech .swap-button img{display:block;width:25px;height:25px;pointer-events:none}
.speech .speech-scroll p{display:block}
.paused .stock-pop{animation-play-state:paused}

/* Debt management uses the same painted WebP surfaces as the shop menu. */
.debt-dialog{width:min(880px,calc(100% - 24px));height:min(510px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:14px;overflow:hidden}
.debt-dialog[open]{display:flex;flex-direction:column;gap:8px}
.debt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;min-height:44px}.debt-head h2{font-size:21px;margin:0}.debt-subtitle{font-size:13px}.debt-tabs{display:flex;gap:8px;flex-shrink:0}.debt-tabs button{flex:1;min-height:44px;padding:6px 8px;font-size:14px}.debt-tabs button[aria-selected=false]::before{border-image-source:url('/assets/ui/pastel-v2/field.webp')}
.debt-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;padding:2px}.debt-columns{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;align-items:start}
.debt-card{position:relative;isolation:isolate;padding:12px;min-width:0}.debt-card::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:10px solid transparent;border-image:url('/assets/ui/pastel-v2/card.webp') 24 fill / 10px / 0 stretch}.credit-card::before{border-image-source:url('/assets/ui/pastel-v2/field.webp')}.credit-card[data-bad=true]::before{border-image-source:url('/assets/ui/pastel-v2/button-peach.webp')}
.debt-kicker{font-size:10px;letter-spacing:.05em;font-weight:800}.credit-heading{display:flex;align-items:center;gap:10px}.credit-heading>strong{font-size:40px;line-height:1.2}.credit-heading>span{font-size:13px;font-weight:750}.credit-values{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:14px 0;font-size:13px}.credit-values dd{margin:0;font-weight:800;font-variant-numeric:tabular-nums}.credit-values dd:last-child{color:#087a6d}.debt-detail{font-size:12px;line-height:1.35;margin:6px 0;color:#586c66;overflow-wrap:break-word}
.lender-options{display:flex;gap:8px}.lender-options button{flex:1;min-height:48px;padding:5px 8px;font-size:14px}.lender-options small{display:block;font-size:11px}.lender-options button[aria-pressed=false]::before{border-image-source:url('/assets/ui/pastel-v2/field.webp')}.lender-options #lender-street[aria-pressed=true]::before{border-image-source:url('/assets/ui/pastel-v2/button-peach.webp')}
.borrow-cap{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:8px;margin-top:10px}.borrow-cap strong{font-size:18px;font-variant-numeric:tabular-nums}.borrow-input-row{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:8px}.borrow-input-row input{min-width:0;min-height:44px;font-size:17px}.borrow-input-row button{font-size:13px;padding:6px}.debt-quote{font-size:13px;line-height:1.35;min-height:36px;margin:8px 0}.borrow-card>button{width:100%;min-height:44px}
.loan-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.debt-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}.debt-status{font-size:11px;white-space:nowrap;padding:3px 6px;background:url('/assets/ui/pastel-v1/hud.webp') center/100% 100% no-repeat}.debt-card[data-bad=true] .debt-status{color:#963f47}.debt-balance{display:block;margin:5px 0;font-size:20px}.repay-form{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:6px;align-items:end}.repay-form label{min-width:0;font-size:11px;margin:0}.repay-form input{display:block;min-width:0;min-height:44px;width:100%;font-size:14px}.repay-form button{min-height:44px;font-size:12px;padding:6px}.repay-due,.repay-all{grid-column:auto}.debt-auto{display:flex;min-height:44px;margin:0;font-size:14px;gap:8px}.debt-history-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 8px;border-bottom:1px solid #dce8df;font-size:13px}.debt-history-row div{min-width:0}.debt-history-row small{display:block;font-size:11px;line-height:1.4;color:#586c66}.debt-history-row>strong{white-space:nowrap;font-variant-numeric:tabular-nums}.debt-empty{padding:12px;font-size:14px}.debt-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:30px;flex-shrink:0}.debt-foot>span{font-size:12px;font-weight:750}.debt-foot>small{font-size:10px;color:#586c66;white-space:nowrap}
#prep-debt,#pause-debt,#summary-debt,#menu-debt{background:none}#prep-debt::before,#pause-debt::before,#summary-debt::before,#menu-debt::before{border-image-source:url('/assets/ui/pastel-v2/button-lilac.webp')}.prep-tools #prep-debt{font-size:13px;padding:7px 10px}.import-top+#products+#loan{margin-top:8px}.summary-panel .panel-foot{flex-wrap:wrap}
@media(max-width:700px){.debt-dialog{padding:12px;gap:6px}.debt-columns{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px}.debt-card{padding:10px}.credit-values{display:block;margin:8px 0}.credit-values dt{font-size:11px;margin-top:6px}.credit-values dd{font-size:16px}.credit-heading{display:block}.credit-heading>strong{font-size:34px}.credit-heading>span{display:block}.borrow-input-row{grid-template-columns:minmax(0,1fr) 96px}.loan-list{grid-template-columns:1fr}.debt-foot{align-items:flex-start}.prep-tools #prep-debt{font-size:12px;padding:7px 8px}}

/* Keep the borrowing action and its actual cost visible on short landscape screens. */
.debt-foot{min-height:48px;gap:12px}.debt-foot>div{flex:1;min-width:0}.debt-foot .debt-quote{margin:0;font-size:12px;min-height:0;line-height:1.4}.debt-foot>button{width:180px;min-height:44px;flex-shrink:0;font-size:14px}.debt-foot span{font-size:12px;font-weight:750}.debt-foot small{font-size:11px}.debt-foot .debt-quote:not([hidden])+span:not(:empty){display:block;margin-top:3px}.borrow-card #borrow-terms{margin-bottom:0}.borrow-cap{margin:8px 0 5px}.credit-values{margin:8px 0;gap:6px}.credit-heading>strong{font-size:34px}.credit-card .debt-detail{font-size:11px}.repay-form input{font-size:16px}.debt-status{white-space:normal;text-align:center}.debt-dialog [hidden]{display:none!important}
@media(max-width:700px){.credit-values{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;margin:6px 0}.credit-values dt{font-size:11px;margin:0}.credit-values dd{font-size:12px}.credit-heading{display:flex;gap:6px}.credit-heading>strong{font-size:30px}.credit-heading>span{font-size:11px}.debt-card{padding:9px}.debt-foot{align-items:center}.debt-foot>button{width:142px;font-size:12px}.debt-foot .debt-quote{font-size:11px}.borrow-cap strong{font-size:16px}.borrow-cap{margin-top:6px}.debt-kicker{font-size:9px}.borrow-card #borrow-terms{font-size:11px}}

.debt-dialog .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.debt-dialog{left:var(--debt-safe-left,env(safe-area-inset-left));right:var(--debt-safe-right,env(safe-area-inset-right));width:min(880px,calc(100vw - var(--debt-safe-left,env(safe-area-inset-left)) - var(--debt-safe-right,env(safe-area-inset-right)) - 24px))}

.repay-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.repay-actions button{white-space:nowrap}.debt-foot span:not(:empty){display:block}

/* Screen navigation stays separate from inventory and day state. */
.prep-head-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.prep-head-actions .prep-wallet{margin:0}.prep-head-actions [data-home]{font-size:12px;padding:7px 12px}.prep-head-actions .icon-button{width:44px;height:44px;flex-shrink:0}.prep-head-actions .icon-button img{width:40px;height:40px}.panel-head>h1{min-width:0}.home-screen{z-index:25}.home-panel{width:min(460px,100%);display:flex;flex-direction:column;gap:10px;padding:24px;max-height:100%;overflow:auto;text-align:center}.home-mark{display:flex;align-items:center;justify-content:center;gap:8px;min-height:28px;font-size:10px;letter-spacing:.1em;font-weight:800;color:#597d71}.home-mark img{width:28px;height:28px;object-fit:contain}.home-panel h1{margin:0;font-size:30px;line-height:1.15;font-weight:850}.home-panel p{margin:0;font-size:14px;line-height:1.4}.home-shop{font-weight:750;overflow-wrap:anywhere}.home-panel #home-continue{min-height:48px;font-size:16px}.home-tools{display:flex;justify-content:center;gap:8px}.home-tools button{flex:1;min-height:44px}.home-tools img{width:23px;height:23px}.home-panel small{font-size:12px;color:#597d71;min-height:17px}.prep-return{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:12;display:flex;align-items:center;gap:10px;padding:8px 12px;max-width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px);background:url('/assets/ui/pastel-v1/panel.webp') center/100% 100% no-repeat}.prep-return>span{font-size:12px;white-space:nowrap}.prep-return button{font-size:14px;min-height:44px;white-space:nowrap}#prep-home::before,[data-home]::before,#home-menu::before{border-image-source:url('/assets/ui/pastel-v2/button-lilac.webp')}
@media(max-height:440px){.home-panel{padding:18px 22px;gap:8px}.home-panel h1{font-size:27px}.prep-head-actions [data-home]{padding:7px 10px}.prep-head-actions .prep-wallet{font-size:13px}}
@media(max-width:700px){.prep-head-actions{gap:6px}.prep-head-actions .prep-wallet img{width:20px;height:20px}.prep-head-actions [data-home]{font-size:11px;padding:7px 9px}.prep-panel .panel-head h1{font-size:17px}}

.prep-head-actions .icon-button img{width:32px;height:32px}
.prep-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0;flex:1}.prep-heading h1{white-space:nowrap}.prep-heading .prep-forecast{white-space:nowrap;line-height:1.2}.prep-heading .prep-forecast img{width:24px;height:24px;flex-shrink:0}
@media(max-width:700px){.prep-heading{column-gap:8px}.prep-heading .prep-forecast{font-size:12px}.prep-panel .panel-head{gap:8px}}
@media(max-height:400px){.batch-section>h2{margin-bottom:2px}.batch-section .batch-card{min-height:54px;margin-bottom:2px}.menu-paper{padding:5px 10px}.menu-paper-head{margin-bottom:2px}.menu-paper-head>span{line-height:12px}.menu-paper-head h2{line-height:20px}.menu-group+.menu-group{margin-top:2px}.menu-size-note{margin-top:2px}}

@media(max-height:400px){.batch-section .batch-card{padding:2px 6px}}

/* Expanded catalog keeps touch controls in the scroll body and the action footer fixed. */
.product[data-locked=true]>img,.batch-card[data-locked=true]>img{opacity:.45}
.menu-row[data-locked=true]{color:var(--muted)}
#batch-list .batch-card{grid-template-columns:28px minmax(0,1fr) 74px;gap:6px;min-height:62px;padding:5px 6px;margin-bottom:5px}
#batch-list .batch-card>img{width:28px;height:38px;object-fit:contain}
#batch-list .batch-card strong{font-size:13px;line-height:1.15}
#batch-list .batch-card span{font-size:12px}
#batch-list .batch-card small{font-size:12px;line-height:1.2}
#batch-list .batch-card button{min-height:44px;font-size:12px;line-height:1.2;padding:4px;white-space:normal}
.recipe-chips .recipe-flavor{width:23px;height:27px;object-fit:contain}
.unlock-announcement{position:relative;isolation:isolate;padding:12px;margin-bottom:10px}
.unlock-announcement::before{content:'';position:absolute;inset:0;z-index:-1;border:12px solid transparent;border-image:url('/assets/ui/pastel-v2/field.webp') 24 fill / 12px / 0 stretch}
.unlock-announcement>div{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:750;margin:5px 0}
.unlock-announcement img{width:34px;height:40px;object-fit:contain}
.unlock-announcement p{font-size:12px;margin:0;color:var(--muted)}
@media(max-width:700px){#batch-list .batch-card{grid-template-columns:22px minmax(0,1fr) 64px;gap:4px}#batch-list .batch-card>img{width:22px;height:32px}#batch-list .batch-card strong{font-size:12px}}

#brew-view{height:100%;min-height:0}
#brew-view .brew-columns{height:100%;min-height:0;align-items:stretch}
.batch-section{display:flex;flex-direction:column;min-height:0}
.batch-section>h2,.batch-section>.price-row{flex-shrink:0}
#batch-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:2px;scrollbar-width:thin}
#brew-view .menu-paper{display:flex;flex-direction:column;min-height:0}
.menu-paper-head,.menu-size-note{flex-shrink:0}
.menu-items{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:2px;scrollbar-width:thin}

/* Independent paper lists retain room for a visible focus ring at their edges. */
.batch-heading{display:flex;align-items:center;gap:8px;flex-shrink:0;justify-content:space-between;}
.batch-heading h2{margin:3px 0;}
.batch-heading #batch-size{width:106px;min-height:44px;font-size:12px;padding:6px;}
.recipe-buy{min-height:44px;padding:4px 7px;font-size:11px;max-width:112px;white-space:normal;}
.menu-row .recipe-buy{margin-left:auto;flex-shrink:0;}
.recipe-chips .topping-second{object-fit:contain;}
#unlock-items{flex-wrap:wrap;}
#unlock-items>span{display:flex;align-items:center;gap:5px;}
.menu-items,#batch-list{scroll-padding-block:8px;padding:3px 4px 3px 2px}
.menu-row,.batch-card{scroll-margin-block:8px}
.menu-row input:focus-visible{outline-offset:1px}
.menu-row:focus-within .menu-description>strong{color:#116b63}
.speech .swap-button:focus-visible{outline-offset:-1px}
.top-book,.top-pause{position:fixed;left:calc(env(safe-area-inset-left) + var(--discard-inset,4px));right:auto;z-index:6}
.top-book{top:calc(env(safe-area-inset-top) + 4px)}
.top-pause{top:calc(env(safe-area-inset-top) + 56px)}
#queue{position:fixed;left:calc(env(safe-area-inset-left) + 6px);top:calc(env(safe-area-inset-top) + 112px);flex-direction:column}
.hud{top:0;font-size:11px}
.hud-pill{min-height:28px;height:28px;padding:3px 8px;gap:3px}
.hud img{width:19px;height:19px}
.speech.multi{padding-bottom:16px}
.speech p,.speech.right p{line-height:15px}
.speech .speech-scroll{padding-bottom:1px}
.speech .progress-count{position:absolute;right:12px;bottom:3px;min-width:24px;height:10px;margin:0;padding:0 2px;font-size:10px;line-height:10px}
@media(max-width:760px){.speech.multi{padding-bottom:14px}.speech p,.speech.right p{line-height:14px}}
@media(prefers-reduced-motion:reduce){
 button:active:not(:disabled){transform:none}
 .size-button.cup-rack-hit:active:not(:disabled) strong{transform:translate(-50%,-50%)}
 .source-hit:active:not(:disabled){filter:brightness(1.08)}
}
