:root{font-family:system-ui,sans-serif;color:#f9ede1;background:#20140f;color-scheme:dark}*{box-sizing:border-box}body{margin:0}header{padding:18px;display:flex;gap:20px;align-items:center;border-bottom:1px solid #6d5548}header img{width:85px}h1{margin:0;font-size:25px}header p{margin:4px 0}header a{margin-left:auto;color:#73efdf}main{max-width:1100px;margin:auto;padding:18px}h2{font-size:22px}h3{margin-top:0}p{line-height:1.5}button,input,select,textarea{font:inherit;padding:12px;border-radius:10px;border:1px solid #806656}button{background:#83eddf;color:#142623;cursor:pointer;font-weight:700;min-height:48px}button:disabled{opacity:.5;cursor:wait}input,textarea,select{width:100%;background:#34261f;color:white;margin:6px 0 14px}label{display:block}textarea{min-height:80px}a{color:#83eddf}.card{background:#35261f;border:1px solid #6f5141;border-radius:16px;padding:18px;margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.muted{color:#d0bcad}.danger{background:#f4b0ac;color:#45130e}.status{font-weight:700;color:#83eddf}.total{font-size:23px;font-weight:700}.toolbar{position:sticky;top:0;padding:12px;background:#20140f;z-index:2;display:flex;gap:12px;flex-wrap:wrap}.toolbar button{flex:1}#message:empty{display:none}#message{background:#522b20;padding:16px;border-radius:12px}ul{padding-left:20px}li{margin:10px 0}.code{font-family:monospace;font-size:30px;letter-spacing:3px}.badge{display:inline-block;padding:5px 8px;background:#564131;border-radius:8px}small{display:block;margin-top:7px}.form{max-width:540px}.row{display:flex;gap:14px;align-items:center;justify-content:space-between}button.secondary{background:#dfc8ae}button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:3px}

.product-photo{width:100%;max-height:260px;object-fit:cover;border-radius:10px}.card>button{margin:5px}html{scroll-padding-top:100px}#message{position:sticky;top:0;z-index:3}

header{flex-wrap:wrap}.language-choice{margin-left:auto;font-size:13px}.language-choice select{margin:4px 0;width:auto;display:block}header a{margin-left:0}

.row{flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #6f5141}.row strong{flex:1;min-width:160px}button:disabled{cursor:default}

.assistant summary{cursor:pointer;font-weight:700;padding:12px 0}.assistant button{margin:6px 6px 6px 0;white-space:normal}.assistant [role=log]{max-height:45vh;overflow:auto;overflow-wrap:anywhere}.assistant-question{font-weight:bold}.assistant textarea{width:100%;box-sizing:border-box}section.card{scroll-margin-top:90px}

input[type=checkbox]{width:auto;margin-right:12px}

.basket-feedback{color:#83eddf;font-weight:600;margin:8px 0 0;overflow-wrap:anywhere}.basket-feedback:empty{display:none}

.product-info{margin:14px 0;overflow-wrap:anywhere}.product-info summary{cursor:pointer;color:#83eddf;padding:12px 0;font-weight:600}.product-info p{white-space:pre-wrap}

.voice-controls{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.voice-controls button{min-height:48px;margin:0}.voice-controls [hidden]{display:none}

.work-timing{background:#241b16;padding:16px;border-radius:12px;margin:12px 0;border:1px solid #705643}.work-label{font-size:12px;letter-spacing:.08em;font-weight:700;color:#d0bcad}.work-clock{font-size:clamp(42px,5vw,68px);line-height:1.15;font-weight:850;font-variant-numeric:tabular-nums;color:#83eddf}.work-active{border:2px solid #83eddf}.work-active p{margin:7px 0}.work-active progress{width:100%;height:12px;accent-color:#83eddf}.work-late{border-color:#f7b597}.work-late .work-clock,.work-late .work-remaining{color:#ffbd9e}.work-late progress{accent-color:#ffbd9e}.work-remaining,.work-wait,.work-complete{font-weight:700}.work-points{color:#83eddf;font-size:24px}.order-estimate{font-size:18px;font-weight:700;color:#83eddf}.kitchen-score{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:linear-gradient(125deg,#233831,#35261f);border:1px solid #83eddf;border-radius:16px;padding:22px;margin-bottom:20px}.score-value{font-size:48px;line-height:1.3;font-variant-numeric:tabular-nums;color:#83eddf}.kitchen-score p{margin:6px 0}.score-rules{grid-column:1/-1}.score-rules summary,details>summary{cursor:pointer;padding:8px 0}.score-rules p{font-size:14px;color:#d0bcad}.grid .card{min-width:0}.work-timing small{overflow-wrap:anywhere}@media(max-width:480px){.kitchen-score{gap:12px;padding:16px}.score-value{font-size:36px}.work-clock{font-size:52px}.grid{grid-template-columns:1fr}}
.kitchen-score{gap:6px 18px;padding:16px}.kitchen-score .score-value{font-size:36px}.kitchen-score p{font-size:14px}.kitchen-score .badge{padding:3px 6px;font-size:12px}.score-rules summary{padding:4px 0;font-size:13px}

/* Large preparation details for the kitchen tablet. */
.kitchen-order ul{list-style:none;padding:0;margin:20px 0}
.kitchen-order li{padding:16px 0;border-bottom:1px solid #795c49;margin:0}
.kitchen-product{display:block;font-size:30px;line-height:1.2;font-weight:800;overflow-wrap:anywhere;color:#fff}
.kitchen-price{display:block;font-size:16px;color:#d8c4b5;margin-top:6px}
.kitchen-order li small{font-size:21px;line-height:1.4;font-weight:600;color:#ffe6b5;overflow-wrap:anywhere}
.kitchen-order .order-note:not(:empty){font-size:21px;line-height:1.4;font-weight:700;background:#55402c;padding:12px;border-radius:8px}

.kitchen-history>summary{font-size:24px;font-weight:750;cursor:pointer;padding:8px 0}.kitchen-history{margin-top:18px}

.customer-order{border-width:3px}
.customer-order .status{font-size:25px;font-weight:800;line-height:1.3;padding:12px 16px;border-radius:10px}
.customer-order[data-status="waiting"]{background:#3b3019;border-color:#edc665}
.customer-order[data-status="waiting"] .status{background:#edc665;color:#302300}
.customer-order[data-status="preparing"]{background:#193349;border-color:#78caff}
.customer-order[data-status="preparing"] .status{background:#78caff;color:#092d46}
.customer-order[data-status="ready"]{background:#173b2b;border-color:#7ce3a6}
.customer-order[data-status="ready"] .status{background:#7ce3a6;color:#103320}

.cash-photo{display:block;max-width:100%;max-height:400px;object-fit:contain;border-radius:12px;margin:14px 0}.cash-photo[hidden]{display:none}
.cash-warning{background:#5a4020;border:2px solid #edc665;padding:14px;border-radius:12px}.cash-feedback{font-size:19px;font-weight:650}
.cash-review{display:flex;align-items:flex-start;gap:12px;font-size:19px}.cash-review input{width:26px;height:26px;flex:0 0 26px;margin:0}
.cash-line{background:#281d17}.cashier-order h2{font-size:30px;color:#ffe6b5;overflow-wrap:anywhere}

.voice-indicator{padding:16px;border:2px solid #777;border-radius:12px;background:#292929;color:#fff;font-size:1.2rem;font-weight:800}
.voice-indicator[data-state="listening"]{background:#124a36;border-color:#65e6a3;color:#eafff1}
.voice-indicator[data-state="speaking"]{background:#163f65;border-color:#78c9ff;color:#eef8ff}
.voice-indicator[data-state="connecting"],.voice-indicator[data-state="thinking"]{background:#513e13;border-color:#ffd36c;color:#fff5da}
[data-voice-state="listening"]{outline:3px solid #65e6a3;outline-offset:2px}
[data-voice-state="speaking"]{outline:3px solid #78c9ff;outline-offset:2px}

.unit-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px;margin:8px 0;border:2px solid #8d805c;border-radius:10px;font-size:18px}.unit-progress button{min-height:52px;font-size:20px}.unit-progress[data-state="ready"]{background:#164831;border-color:#67dda1}.unit-progress[data-state="served"]{background:#233747;border-color:#87b8d3;color:#d9e9f0}

.cash-photo-button{display:block;width:100%;min-height:64px;font-size:22px;font-weight:800;margin:12px 0;padding:16px;}

.cash-feedback[data-state]{padding:22px;border:3px solid;border-radius:14px;font-size:clamp(20px,3vw,28px);font-weight:800;line-height:1.4;scroll-margin:90px}
.cash-feedback[data-state="reading"],.cash-feedback[data-state="error"]{background:#6b1720;color:#fff;border-color:#ff8290}
.cash-feedback[data-state="success"]{background:#164c32;color:#edfff3;border-color:#62e49b}
.cash-feedback[data-state="attention"]{background:#584015;color:#fff7dd;border-color:#ffd46e}
[data-scan-state="reading"]{outline:3px solid #ff8290}
[data-scan-state="success"]{outline:3px solid #62e49b}

.cash-summary-ticket{font-size:1.4rem;margin:10px 0}.cash-summary-list{margin:12px 0}.cash-summary-row{padding:10px 0;border-bottom:1px solid #ffffff30}.cash-summary-row strong{font-size:1.15rem}.cash-summary-row p{margin:4px 0 0;line-height:1.4}.cash-summary-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.cash-summary-actions button{flex:1;min-width:150px}

.cash-line.cash-line-needs-fix{background:#542b20;border:2px solid #ffad75}.cash-line-issues{color:#ffe0c4;font-weight:800;margin:0 0 12px}

.cash-line.cash-line-needs-fix,.cash-summary-row.cash-line-needs-fix{background:#713024;border:3px solid #ffb071;border-left:10px solid #ffb071;padding:16px;box-shadow:0 0 0 2px #ffb07130}.cash-line-needs-fix .cash-line-issues{color:#fff1cf;font-size:1.1rem}

.cash-ticket-needs-fix{display:block;background:#713024;border:3px solid #ffb071;border-left:10px solid #ffb071;padding:16px;border-radius:12px;color:#fff1cf}.cash-ticket-needs-fix .cash-line-issues{display:block;margin-top:8px}.cash-line,.cash-ticket-needs-fix{scroll-margin-top:100px}

#cash-editor{scroll-margin-top:100px}

.kitchen-cheer{position:fixed;z-index:9999;width:min(360px,100vw);text-align:center;pointer-events:none;font-size:clamp(30px,6vw,48px);font-weight:950;color:#8bf4d7;text-shadow:0 3px 0 #164c43,0 0 18px #17251e;animation:kitchen-cheer 1.2s ease-out both;}
@keyframes kitchen-cheer{0%{opacity:0;transform:translateY(12px) scale(.65)}18%{opacity:1;transform:translateY(-8px) scale(1.12)}35%{opacity:1;transform:translateY(-12px) scale(1)}65%{opacity:1}100%{opacity:0;transform:translateY(-65px) scale(1)}}
@media(prefers-reduced-motion:reduce){.kitchen-cheer{animation:kitchen-cheer-quiet 1.2s linear both}}
@keyframes kitchen-cheer-quiet{0%,75%{opacity:1}100%{opacity:0}}

#basket-shortcut{white-space:nowrap;border:2px solid #c3fff5;box-shadow:0 0 0 1px #285c51;font-variant-numeric:tabular-nums}.toolbar{top:env(safe-area-inset-top,0px)}

.prep-choices{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.prep-choice{background:#30231e;color:#fff;border:2px solid #806656;padding:8px 12px}.prep-choice[aria-pressed="true"]{background:#83eddf;color:#142623;border-color:#c3fff5}.prep-choice[data-prep="cashier"][aria-pressed="true"]{background:#ffe09b;border-color:#ffe09b}.prep-choice[data-prep="ready"][aria-pressed="true"]{background:#c9c2ed;border-color:#c9c2ed}.prep-item{padding:12px;border-left:6px solid #83eddf;background:#1e3530;border-radius:8px;list-style:none}.prep-item[data-prep="cashier"]{border-color:#ffe09b;background:#3c321c}.prep-item[data-prep="ready"]{border-color:#c9c2ed;background:#302c41}.prep-label{display:block;font-size:16px;color:#83eddf;margin:10px 0}.prep-item[data-prep="cashier"] .prep-label{color:#ffe09b}.prep-item[data-prep="ready"] .prep-label{color:#ded7ff}

.product-timing-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end;margin-top:12px}.product-timing-row label{min-width:0}.product-timing-row input,.product-timing-row select{margin-bottom:0}

.kitchen-order li.prep-item{padding:16px 18px;}

.cash-topbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#20140f;border:1px solid #6f5141;border-radius:12px;margin-bottom:14px;box-shadow:0 5px 14px #0005}.cash-topbar>button{flex:1 1 150px;min-width:0;margin:0;padding:10px 12px;font-size:16px;min-height:48px}.cash-topbar .cash-photo-button{width:auto}.cash-photo-area:has(>img[hidden]):not(:has(>p:not([hidden]))){margin:0}

.kitchen-topbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#20140f;padding:10px;border:1px solid #6f5141;border-radius:12px;box-shadow:0 5px 14px #0005;margin-bottom:16px}.kitchen-top-score{flex:1;min-width:190px}.kitchen-top-score>summary{font-size:20px;font-weight:800;color:#83eddf;cursor:pointer;padding:10px}.kitchen-top-score[open]{flex-basis:100%;max-height:55vh;overflow:auto}.kitchen-top-sound.card{margin:0;padding:0;border:0;background:none}.kitchen-top-sound h2,.kitchen-top-sound p{display:none}.kitchen-top-sound button{margin:3px;font-size:15px;padding:9px}

/* Compact kitchen cards retain large product names and touch targets. */
.kitchen-compact{padding:12px;margin-bottom:12px}
.kitchen-compact>h2{margin:0 0 6px}
.kitchen-compact>p{margin:6px 0}
.kitchen-compact ul{margin:10px 0}
.kitchen-compact li.prep-item{padding:10px 12px}
.kitchen-item-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kitchen-item-heading .kitchen-product{flex:1;min-width:0;font-size:28px}
.kitchen-item-heading button{flex-shrink:0;font-size:14px;padding:8px 10px;min-height:44px}
.kitchen-compact li small{margin-top:4px;font-size:20px;line-height:1.3}
.kitchen-compact .prep-label{margin:5px 0;font-size:14px}
.kitchen-compact .unit-progress{padding:6px 10px;margin:5px 0 0;gap:8px}
.kitchen-compact .unit-progress button{min-height:48px;padding:8px 12px}
.kitchen-compact .order-note:empty{display:none}
.kitchen-compact .work-timing{padding:10px 12px;margin:8px 0}
@media(max-width:400px){.kitchen-item-heading{flex-wrap:wrap}.kitchen-item-heading .kitchen-product{flex-basis:100%}}

.kitchen-order-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px}
.kitchen-order-heading h2{margin:0;font-size:22px}
.kitchen-order-heading .status{margin:0;font-size:16px}
.kitchen-order-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px;margin:6px 0;font-size:15px}
.kitchen-order-meta p{margin:0}
.kitchen-compact .work-timing.work-inline{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0;padding:0;border:0;background:none;font-size:15px}

button.transfer-to-cashier{background:#ffe09b;color:#33270b;border-color:#ffe09b}
button.transfer-to-kitchen{background:#94bfff;color:#102b50;border-color:#94bfff}

/* Product progress colors are independent of preparation station. */
.unit-progress[data-state="waiting"]{background:#675019;border-color:#edc665;color:#fff4cf}
.unit-progress[data-state="preparing"]{background:#194c70;border-color:#78caff;color:#ecf7ff}
.unit-progress[data-state="ready"]{background:#195c38;border-color:#7ce3a6;color:#eafff0}
.unit-progress[data-state="served"]{background:#41454b;border-color:#9299a3;color:#f0f2f5}

.customer-categories{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%;width:100%}
.customer-categories a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:7px 13px;border:1px solid #806656;border-radius:24px;text-decoration:none;font-size:14px;text-align:center;color:#f9ede1}
.customer-categories a:hover,.customer-categories a:focus-visible{background:#83eddf;color:#142623}
@media(max-width:650px){.customer-toolbar{gap:6px;padding:8px}.customer-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.customer-categories a{min-width:0;padding:6px;font-size:13px}.customer-toolbar>button{padding:8px;font-size:14px}}

.basket-editor{margin-top:12px;border-top:1px solid #806656}
.basket-editor summary{min-height:44px;padding:12px 0;color:#83eddf;font-weight:700;cursor:pointer}
.basket-editor button{margin:4px 8px 0 0}.basket-edit-error:empty{display:none}.basket-edit-error{color:#ffd2b0}

/* Customer checkout: visibly distinguish missing and selected tables. */
#cart .phone-table-choice{display:block;padding:16px;border:2px solid;border-radius:12px;margin:18px 0;color:#fff;transition:background-color .18s,border-color .18s}
#cart .phone-table-choice.is-missing{background:#572a2c;border-color:#ed8f92}
#cart .phone-table-choice.is-selected{background:#173f34;border-color:#72d6ac}
#cart .phone-table-choice select{background:#351b1e;color:#fff;border-color:#ed8f92;margin-top:8px}
#cart .phone-table-choice.is-selected select{background:#102f27;border-color:#72d6ac}
#cart .phone-table-state{display:block;margin-top:9px;font-size:.9rem;font-weight:700}
#cart .payment-test-notice{padding:12px 14px;border-left:4px solid #f4c36b;border-radius:7px;background:#493719;color:#ffe4ae}
#cart .total{padding:14px;border-radius:10px;background:#1c3933;border:1px solid #507c70}

/* Blue basket panels distinguish checkout from the warm product catalogue. */
#cart > .card{background:#193b4a;border:2px solid #77b8ca}
#cart > .card > .card{background:#244b5b;border-color:#648f9f}
#cart .total{background:#102e3b;border-color:#77b8ca}

#products .card.in-basket{background:#234038;border-color:#83cbbb;box-shadow:inset 4px 0 #83cbbb}
.product-cart-count{color:#b5f4dd;font-weight:750;margin:8px 0 14px}
#products h2.browse-highlight{background:#34584c;outline:2px solid #83eddf;border-radius:8px}

#products .basket-feedback.choice-error{position:static;background:#ffdb9d;color:#442600;border:2px solid #f2a942;border-radius:10px;padding:12px 14px;font-weight:750;margin:10px 0}
#products [aria-invalid="true"]{border:2px solid #ffbe63;background:#523720}

#cart .basket-quantity-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
#cart .basket-quantity-row>p{margin:0 8px 0 0;white-space:nowrap}
#cart .basket-quantity-row>button{margin:0;min-width:44px;min-height:44px;padding:10px 12px}
#cart .card>p:empty{display:none}

.product-price{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}
.product-price del{font-size:16px;font-weight:400;color:#d6c3b3;text-decoration-thickness:2px}
.product-price:has(.offer-badge)>strong{color:#ffe0a0;font-size:27px}
.offer-badge{display:inline-block;background:#f6ca78;color:#38220c;padding:5px 10px;border-radius:7px;font-size:14px;font-weight:800}
.offer-admin-row{padding:14px;border:1px solid #6f5141;border-radius:10px;margin:12px 0;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.offer-admin-row>strong{flex:1 1 190px}.offer-admin-row label{flex:0 1 170px}.offer-admin-row input{margin-bottom:0}

#basket-shortcut.has-items{background:#f6ca78;color:#38220c;border-color:#ffe3b1;box-shadow:0 0 0 1px #986b2c}
#tracking-shortcut.has-orders{background:#a6cfff;color:#142d4b;border:2px solid #d8eaff;box-shadow:0 0 0 1px #466d9a}

.idle-warning{max-width:min(480px,85vw);padding:28px;border:2px solid #f6ca78;border-radius:18px;background:#33251d;color:#fff}.idle-warning::backdrop{background:#000b}.idle-warning button{min-height:52px;width:100%}
.staff-product-info-button{font-size:.85rem;padding:8px 12px;margin:6px 0}
.staff-product-info-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:85dvh;overflow:auto;padding:22px;background:#34241b;color:#fff;border:1px solid #a38a69;border-radius:16px}
.staff-product-info-dialog::backdrop{background:rgba(0,0,0,.7)}
.staff-product-info-dialog h2{margin:0 0 12px}.staff-product-info-dialog h3{color:#8ce9dc;margin-bottom:8px}.staff-product-info-dialog p{line-height:1.5;overflow-wrap:anywhere}

.dietary-labels{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.dietary-label{display:inline-flex;align-items:center;padding:8px 11px;border:1px solid;border-radius:9px;font-size:14px;font-weight:700;line-height:1.4;max-width:100%;box-sizing:border-box}.dietary-label.gluten{background:#173e34;color:#b4f4d0;border-color:#63c793}.dietary-label.lactose{background:#193c53;color:#d0edff;border-color:#7dbadf}.dietary-label.modifiable,.dietary-label.conditional{background:#493c23;color:#ffe3a2;border-color:#ba9751}.ingredient-variant{border-top:1px solid #80634b;margin-top:16px;padding-top:8px}.ingredient-variant h4{color:#91eadb;font-size:18px;margin:8px 0 14px}

.required-choice{padding:10px 12px;border:1px solid;border-radius:10px;box-sizing:border-box}.required-choice.choice-missing{background:#512b2d;border-color:#ef9994}.required-choice.choice-complete{background:#1c4037;border-color:#75c9a7}.required-choice.choice-missing select,.required-choice.choice-missing input{background:#472426;color:#fff4ef;border-color:#ef9994}.required-choice.choice-complete select,.required-choice.choice-complete input{background:#18382f;color:#edfff5;border-color:#75c9a7}.required-choice-status{display:block;font-size:13px;font-weight:700;margin-top:6px;line-height:1.4}.choice-missing .required-choice-status{color:#ffc3be}.choice-complete .required-choice-status{color:#adf0d1}

.recipe-dialog{width:min(850px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;background:#302219;color:#fff0df;border:1px solid #a38260;border-radius:16px;padding:20px}.recipe-dialog::backdrop{background:#000b}.recipe-images{display:flex;gap:12px;overflow-x:auto;margin:12px 0}.recipe-images img{width:220px;max-width:100%;height:220px;object-fit:contain;border-radius:10px}.recipe-pre{white-space:pre-wrap}.recipe-context{background:#493a24;padding:12px;border-left:4px solid #efc978;border-radius:8px}.recipe-dialog ol{padding-left:26px}.recipe-dialog li{padding:8px 0;font-size:19px;line-height:1.5}.recipe-dialog li label{display:flex;align-items:flex-start;gap:12px;margin:0}.recipe-dialog input[type=checkbox]{width:24px;height:24px;flex-shrink:0;margin-top:3px}.recipe-step-done{opacity:.55}.recipe-chat{border-top:1px solid #9a795a;margin-top:20px;padding-top:16px}.recipe-dialog h2{margin-top:0}

.recipe-dialog{width:min(1050px,calc(100vw - 24px))}.recipe-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start;margin:16px 0}.recipe-overview .recipe-images{display:flex;flex-direction:column;margin:0;overflow:visible}.recipe-overview .recipe-images img{width:100%;height:auto;max-height:520px;object-fit:contain}.recipe-overview h3{margin-top:0}.recipe-overview .recipe-pre{font-size:18px;line-height:1.6}@media(max-width:540px){.recipe-overview{grid-template-columns:1fr;gap:16px}.recipe-overview .recipe-images img{max-height:400px}}

@media(min-width:481px){#products .product-photo{display:block;width:100%;max-width:560px;height:auto;max-height:none;aspect-ratio:1/1;object-fit:contain;margin:0 auto}}

.recipe-overview.recipe-photos-only{grid-template-columns:1fr}.recipe-photos-only .recipe-images img{width:100%;max-width:800px;max-height:none;margin:0 auto}

/* Keep kitchen orders legible on portrait tablets and wrap actions by card width. */
.grid:has(>.kitchen-compact){grid-template-columns:repeat(auto-fit,minmax(min(100%,500px),1fr))}.kitchen-item-heading{flex-wrap:wrap;justify-content:flex-start}.kitchen-item-heading .kitchen-product{flex:1 1 100%}.kitchen-item-heading button{max-width:100%;white-space:normal}

/* Cashier tablet: compact entry and independently scrollable tracking columns. */
main:has(#cash-editor){max-width:1440px}
.cash-entry{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.cash-entry h2{margin:0 12px 0 0;font-size:21px}
.cash-entry>label{width:160px;flex:0 0 160px;font-size:14px}
.cash-entry input{margin:4px 0 0}
.cash-entry>button{margin:0;align-self:center}
.cash-entry .cash-ticket-needs-fix{padding:8px;border-left-width:4px}
.cash-entry .cash-line-issues{font-size:12px;margin-bottom:0}
.cash-empty-editor{padding:12px 18px}
.cash-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.cash-column{min-width:0;padding:14px;background:#291c16}
.cash-column>h2{margin:0;font-size:22px}
.cash-column>.muted{font-size:13px;margin:6px 0 12px}
.cash-order-list{max-height:calc(100dvh - 350px);min-height:240px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.cash-order-list>.card{padding:14px;margin-bottom:12px;overflow-wrap:anywhere}
.cash-order-list .kitchen-product{display:block;font-size:18px}
.cash-order-list h2{font-size:21px}
#cash-delivered{scroll-margin-top:90px}
@media(max-width:760px){.cash-columns{grid-template-columns:minmax(0,1fr)}.cash-order-list{max-height:none;overflow:visible}.cash-entry h2{flex:1 1 100%}}
.cash-order-list .card>h2{margin:0 0 8px}.cash-order-list .card>p{margin:6px 0}
.cash-order-list ul{padding:0;margin:10px 0}.cash-order-list li.prep-item{padding:10px 12px}
.cash-order-list li small{font-size:15px;line-height:1.35;margin-top:4px}
.cash-order-list .prep-label{font-size:13px;margin:5px 0}
.cash-order-list .unit-progress{padding:6px 10px;font-size:15px;margin:6px 0;gap:8px}
.cash-order-list .unit-progress button,.cash-order-list .transfer-button{font-size:15px;min-height:44px;padding:8px 12px}
.cash-order-list .order-note:empty{display:none}

.cash-gelato-picker{grid-column:1/-1;padding:12px;border:1px solid #ac884f;border-radius:10px;min-width:0}.cash-gelato-picker p{margin:8px 0}.cash-gelato-chips{display:flex;flex-wrap:wrap;gap:6px}.cash-gelato-chips button{width:auto;min-height:30px;margin:0;padding:4px 8px;font-size:12px;line-height:1.25;border-radius:15px}.cash-gelato-chips button[aria-pressed="true"]{background:#80eadb;color:#16221f;border-color:#80eadb;font-weight:700}.cash-gelato-chips button[aria-pressed="true"]::before{content:"✓ ";}.cash-gelato-chips button:disabled{opacity:.45}

.cash-quantity{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:10px}.cash-quantity-buttons{display:flex;flex-wrap:wrap;gap:6px}.cash-quantity-buttons button{width:auto;min-height:40px;margin:0;padding:7px 12px;font-size:14px}.cash-quantity-buttons button[aria-pressed="true"]{background:#80eadb;color:#16221f;border-color:#80eadb;font-weight:700}.cash-quantity>label{width:170px;flex:0 0 170px;margin:0}.cash-quantity input{width:100%;box-sizing:border-box}

.cash-custom-flavour{margin-top:10px;max-width:320px}.cash-custom-flavour[hidden]{display:none}

.product-option-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;grid-column:1/-1}.product-option-buttons button{width:auto;min-height:40px;margin:0;padding:8px 12px}.product-option-buttons button[aria-pressed="true"]{background:#80eadb;color:#16221f;border-color:#80eadb;font-weight:700}

.cash-product-entry{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}.cash-product-entry>label{flex:0 1 300px;min-width:200px;margin:0}.cash-product-entry>label select{width:100%;box-sizing:border-box}.cash-product-entry .cash-quantity{flex:1;min-width:280px;margin:0;gap:8px;align-items:flex-end}.cash-product-entry .cash-quantity>strong{width:100%}.cash-product-entry .cash-quantity>label{flex:0 0 145px;width:145px;font-size:12px}.cash-product-entry .cash-quantity input{margin-bottom:0}@media(max-width:600px){.cash-product-entry>label{flex:1 1 100%}}

/* A contrasting inner border keeps selected buttons clear without changing their size. */
.cash-gelato-chips button[aria-pressed="true"],
.cash-quantity-buttons button[aria-pressed="true"],
.product-option-buttons button[aria-pressed="true"],
.prep-choice[aria-pressed="true"]{box-shadow:inset 0 0 0 3px #173e36,0 0 0 1px #eafff9}

.product-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.product-title-row h2,.product-title-row h3{margin:0;min-width:0}.product-title-row .dietary-badges{display:flex;flex-wrap:wrap;gap:4px}.staff-dietary-badges{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.dietary-status{display:inline-block;border:1px solid #aa927d;border-radius:18px;padding:7px 12px;font-size:14px}.dietary-status.active{background:#a9eedc;color:#102d27;border:2px solid #185c4c}

.diet-chip{display:inline-flex;align-items:center;padding:7px 11px;border:1px solid;border-radius:9px;font-size:13px;font-weight:700;line-height:1.4}.diet-chip.lactoseFree,.dietary-status.active.lactoseFree{background:#193c53;color:#d0edff;border-color:#7dbadf}.diet-chip.glutenFree,.dietary-status.active.glutenFree{background:#173e34;color:#b4f4d0;border-color:#63c793}.diet-chip.vegan,.dietary-status.active.vegan{background:#433351;color:#f0d5ff;border-color:#be94d6}

.diet-chip.modifiable{background:#493c23;color:#ffe3a2;border-color:#ba9751}

.kitchen-order-heading .order-created{margin:0;font-size:16px;white-space:nowrap}.work-clock-row{display:flex;align-items:baseline;gap:10px;flex-wrap:nowrap;font-variant-numeric:tabular-nums}.work-clock-target{font-size:clamp(26px,3.5vw,44px);font-weight:700;white-space:nowrap}

/* Compact staff preparation cards. */
.kitchen-order .work-timing.work-active{padding:8px 12px;margin:8px 0}
.kitchen-order .work-clock{font-size:36px}.kitchen-order .work-clock-target{font-size:28px}
.kitchen-order .work-clock-row{gap:8px}.kitchen-order .work-active progress{height:8px}
.staff-item-title{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;width:100%;min-width:0}
.kitchen-item-heading .staff-item-title .kitchen-product{flex:0 1 auto;min-width:0}
.kitchen-order .staff-item-title .prep-label{display:inline;margin:0;font-size:13px;white-space:nowrap}
.kitchen-order li small.item-request{font-size:23px;font-weight:700;line-height:1.4;margin:8px 0}
.cash-order-list li small.item-request{font-size:19px}
.kitchen-order .order-note:not(:empty){font-size:21px;font-weight:700}
.unit-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.unit-actions button{width:auto;margin:0}
.kitchen-order .unit-progress .unit-actions button{font-size:15px;min-height:44px;padding:8px 10px}

.staff-info-actions{display:flex;align-items:stretch;gap:8px;width:100%;min-width:0}.kitchen-item-heading .staff-info-actions button{flex:1 1 0;min-width:0;width:auto;margin:0;font-size:14px;padding:8px 10px;min-height:44px;white-space:normal}

body.has-cash-music-bar{padding-bottom:48px}#cash-music-bar{position:fixed;bottom:0;left:0;right:0;z-index:100;height:42px;box-sizing:border-box;display:flex;align-items:center;gap:5px;padding:4px 8px;background:#19333f;border-top:1px solid #537380;flex-wrap:nowrap}#cash-music-bar[hidden]{display:none}#cash-music-bar button{flex:0 0 32px;width:32px;min-height:32px;height:32px;margin:0;padding:0;font-size:17px;border-radius:6px}#cash-music-bar strong{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}#cash-music-bar input{flex:0 0 70px;width:70px;min-height:24px;margin:0;padding:0}#cash-music-bar audio{display:none}

#cash-music-bar.is-playing{background:#245940;border-top-color:#83edb3;color:#fff}

#cashier-pages{display:flex;gap:10px;padding:8px 20px;border-bottom:1px solid #806656}#cashier-pages button{margin:0;min-height:42px}#cashier-pages button[aria-pressed="true"]{outline:2px solid #ffe2a3;outline-offset:2px}#cashier-pages button[data-page="pos"]{background:#284956;color:#fff}body.checkout-page{background:#10242d}body.checkout-page>header{display:none}body.checkout-page main{max-width:none;margin:0;padding:0}#pos-frame{width:100%;height:calc(100dvh - 106px);border:0;display:block}#pos-frame[hidden],#app[hidden]{display:none}

/* Compact shared cashier navigation and order tools. */
body.cashier-shell>header{display:none}
body.cashier-shell main{max-width:none;padding:10px}
body.cashier-shell.checkout-page main{padding:0}
body.cashier-shell #cashier-pages{position:sticky;top:0;z-index:12;align-items:center;flex-wrap:nowrap;gap:6px;padding:8px;overflow-x:auto;background:#20140f;min-height:60px}
body.cashier-shell #cashier-pages>button,body.cashier-shell .cash-topbar>button{flex:0 0 auto;white-space:nowrap;min-height:42px;font-size:13px;padding:8px 10px;margin:0}
body.cashier-shell #cashier-pages select{flex:0 0 auto;width:82px;margin:0;padding:8px 4px;min-height:42px;font-size:12px}
body.cashier-shell .cash-topbar{display:contents}
body.checkout-page #cashier-pages{background:#10242d}
body.checkout-page #cashier-pages .cash-topbar,body.checkout-page #cashier-pages select{display:none}
body.cashier-shell #cashier-pages>button,body.cashier-shell .cash-topbar>button{flex:0 1 auto;white-space:normal;min-width:72px;font-size:12px;padding:7px 8px;height:44px;line-height:1.15}body.cashier-shell #cashier-pages select{width:70px;min-height:44px}

body.checkout-page #cashier-pages select{display:block}
body.cashier-shell #cashier-pages>button{flex:0 0 112px}

#pos-shell-tools{display:none;gap:6px;align-items:center}body.checkout-page #pos-shell-tools{display:flex}body.cashier-shell #cashier-pages #language{margin-left:auto;order:10;flex-shrink:0}#pos-shell-tools button{font-size:12px;padding:7px 10px;height:44px;min-height:44px;white-space:nowrap}

#cash-music-bar input[type=range]{flex-basis:110px;width:110px;height:34px;touch-action:none;user-select:none;-webkit-user-select:none}#cash-music-bar{overscroll-behavior:contain}

#cash-music-bar .music-volume-buttons{display:flex;align-items:center;gap:3px;flex:0 0 auto;touch-action:manipulation}#cash-music-bar .music-volume-buttons button{flex-basis:38px;width:38px;height:34px;min-height:34px;font-size:24px;touch-action:manipulation}#cash-music-bar .music-volume-buttons output{width:42px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}

#cash-music-bar #music-mute{margin-left:33px;flex-basis:36px;width:36px;font-size:22px;touch-action:manipulation}#cash-music-bar #music-mute[aria-pressed=true]{background:#ffb7ae;color:#4a0d08;outline:2px solid #ff6256;outline-offset:-2px;box-shadow:0 0 0 2px #ff625644}
.customer-ready-notice{position:fixed;z-index:1000;left:50%;top:50%;transform:translate(-50%,-50%);width:min(600px,calc(100% - 28px));max-height:85dvh;overflow:auto;box-sizing:border-box;padding:26px;background:#e3fff1;color:#143b2b;border:5px solid #278755;border-radius:18px;box-shadow:0 0 0 100vmax #0009,0 8px 40px #0008}.customer-ready-notice h2{font-size:28px;margin:0 0 18px}.customer-ready-notice li{font-size:20px;margin:10px 0}.customer-ready-notice button{width:100%;min-height:56px;font-size:20px;background:#175c3c;color:white}.customer-buzzer-control{padding:12px;border:1px solid #77b8a6;border-radius:10px;margin:12px 0}.customer-buzzer-control p{margin-top:0}

.assistant-scroll{display:flex;gap:10px;align-items:stretch}.assistant-scroll [role=log]{flex:1;min-width:0;scrollbar-width:none;overscroll-behavior:contain}.assistant-scroll [role=log]::-webkit-scrollbar{display:none}.assistant-scroll-rail{position:relative;flex:0 0 44px;background:#183b46;border:1px solid #648f9f;border-radius:12px;touch-action:none;user-select:none;cursor:pointer}.assistant-scroll-rail[hidden]{display:none}.assistant-scroll-thumb{position:absolute;left:4px;right:4px;min-height:0;border-radius:9px;background:#83eddf;touch-action:none}.assistant-scroll-rail:focus-visible{outline:3px solid #f6ca78;outline-offset:2px}

.till-paid-dialog{font-size:21px}.till-paid-dialog .total{font-size:32px;font-weight:750}.till-paid-actions{display:flex;gap:12px;flex-wrap:wrap}.till-paid-actions button{font-size:20px;min-height:56px;flex:1}.recipe-library-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:16px}.recipe-library-list button{min-height:58px;font-size:19px;text-align:left}
