:root{--paper:#f8f5ef;--white:#fffdfa;--ink:#292720;--muted:#69645b;--line:#dcd5c9;--red:#ae3926;--green:#405c45;--soft:#eee9df;--field:#fffdfa;--accent:#ae3926;--danger:#aa3529;color-scheme:light}
:root[data-theme=dark]{--paper:#171b19;--white:#222824;--ink:#f2eee5;--muted:#b8bcb1;--line:#465048;--red:#ed9b85;--green:#a8cfaf;--soft:#2c352e;--field:#1b211d;--accent:#ac402d;--danger:#ffb0a0;color-scheme:dark}
body{background:var(--paper);color:var(--ink)}a{color:var(--green)}button,input,textarea,select{font:inherit}button{color:inherit}input:not([type=checkbox]):not([type=radio]),textarea,select,.field input,.field select,.field textarea,.filters input,.filters select{background:var(--field);color:var(--ink);border:1px solid var(--line);border-radius:var(--control-radius);max-width:100%;min-width:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input[type=checkbox]{accent-color:var(--green);min-height:20px;flex-shrink:0}fieldset{border:1px solid var(--line);border-radius:var(--control-radius);min-width:0}dialog,.box{background:var(--white);color:var(--ink);border-color:var(--line)}dialog::backdrop{background:#080e0bb3}.close{flex-shrink:0}.error,#error,#product-error{color:var(--danger)}.demo,.delivery,.pay,.detail-box,.receipt{background:var(--soft);color:var(--muted);border-color:var(--line)}.desc,.sub,.quiet,.subtitle,.detail-sub,.confirm-copy,.confirm-hint,.footer,.empty,.eyebrow,.brand small,.aside-note,.product-row p,.catalog-child p,.catalog-empty,.bottom,td small,.filters label,.stat small,.stat span{color:var(--muted)}.tag,.pill,.success-mark{background:var(--soft);color:var(--green)}.meal-card,.cart,.product,.storefront-card{background:var(--white);border-color:var(--line)}.portion-options,.total,.extra,.header,.footer,.cart-title{border-color:var(--line)}.primary,.stepper .plus{background:var(--accent);color:#fff;border-color:var(--accent)}.primary:hover{filter:brightness(1.08)}.secondary-button{color:var(--ink);border-color:var(--line)}a.secondary-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:var(--control-height);line-height:1.5}.secondary-button:hover,.light-button:hover,.link:hover{background:var(--soft)}
.storefront-card{padding:26px;margin:24px 0}.storefront-card h2{font-size:23px;line-height:1.4}.storefront-card p{max-width:65ch;line-height:1.85}.coffee-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.coffee-actions .secondary-button{width:auto;margin:0;padding:12px 20px;min-height:46px}.coffee-actions a.secondary-button{background:var(--accent);border-color:var(--accent);color:#fff}.coffee-actions button{background:transparent}.customer .footer{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px 24px;align-items:flex-start;justify-content:flex-start;padding:24px 0;font-size:12px}.customer .footer>.plain{padding:10px 0;white-space:normal;min-width:0;max-width:100%;flex:0 1 auto;overflow-wrap:anywhere;text-align:left}.customer .footer>.secondary-button{width:auto;margin:0;min-width:min(150px,100%);max-width:100%;flex:0 1 auto}.customer .footer>span{padding-top:8px;overflow-wrap:anywhere;min-width:0;flex:1 1 240px}.theme-control{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);white-space:nowrap}.theme-control select{width:auto;min-height:40px;padding:8px;margin:0;font-size:13px}.customer .footer .theme-control{flex-basis:100%}.stepper{flex-shrink:0}.extra>div:first-child{min-width:0;overflow-wrap:anywhere}.topping-choice{line-height:1.5}.line>span:first-child{overflow-wrap:anywhere;min-width:0}.dialog-head h2{line-height:1.4}.dialog-head .close{width:44px;height:44px}.theme-control:focus-within{border-radius:6px}
.merchant aside{background:var(--soft);border-color:var(--line)}.merchant .nav{background:var(--white);color:var(--green)}.merchant .workspace,.merchant .stat,.merchant .product-row,.merchant .light-button,.merchant .link,.merchant .danger,.merchant .table-wrap th:last-child,.merchant .table-wrap td:last-child{background:var(--white);border-color:var(--line);color:var(--ink)}.merchant .stat:first-child{background:#334f3b;color:#fff}.merchant .stat:first-child span,.merchant .stat:first-child small{color:#e0eadc}.merchant th{background:var(--soft);color:var(--muted)}.merchant td,.merchant .tabs,.merchant .bottom,.merchant .detail-total,.merchant .catalog-parent,.merchant .catalog-fold,.merchant .catalog-child,.merchant .catalog-library-item{border-color:var(--line)}.merchant .tab{color:var(--muted)}.merchant .tab[aria-pressed=true]{color:var(--green);border-color:var(--green)}.merchant .catalog-children>summary,.merchant .aside-note a{color:var(--green)}.merchant .danger{color:var(--danger)}.merchant .heading{flex-wrap:wrap}.merchant .heading>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.merchant .light-button{min-height:var(--control-height)}.merchant .badge{background:var(--soft);color:var(--ink)}.merchant .badge.pending{background:#fff1d7;color:#725010}.merchant .badge.accepted{background:#eaf0fa;color:#375675}.merchant .badge.delivering{background:#eee8f6;color:#654383}.merchant .badge.completed{background:#e5f0e5;color:#345936}.merchant .paid,.merchant .toast{color:var(--green)}.merchant .unpaid{color:var(--danger)}.merchant #storefront-form input[type=url]{box-sizing:border-box}.merchant .theme-control{margin-top:22px}.login-page .box{box-sizing:border-box;width:min(420px,calc(100% - 32px))}.login-page p{color:var(--muted)}.login-page .theme-control{margin-top:24px}.login-page .theme-control select{width:auto}.login-page #error{color:var(--danger)}
@media(max-width:760px){.customer .footer>.plain{text-align:left;white-space:normal}.customer .footer>span{padding:0}.customer .footer .theme-control{flex-basis:100%}.storefront-card{padding:20px}.coffee-actions{gap:var(--action-gap)}.coffee-actions .secondary-button{flex:1 1 190px}.extra{flex-wrap:wrap}.meal-card .extra>.stepper{margin-left:auto}.order-nav{gap:8px 14px}.merchant .table-wrap th:last-child,.merchant .table-wrap td:last-child{position:static;min-width:160px}.merchant .theme-control{margin:0}.merchant .heading>div:last-child{width:100%}.merchant .heading .light-button{flex:1 1 120px}.fields{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
@media(max-width:700px){.merchant aside{display:grid;grid-template-columns:1fr 1fr;gap:10px}.merchant aside .brand{grid-column:1/-1;margin-bottom:8px}.merchant aside .nav{width:100%;text-align:center}} :root[data-theme=dark] .seal{color:#d0ae85;border-color:#947f61} :root[data-theme=dark] .customer .stamp{background:var(--accent)}
.login-page button,.merchant .action{color:#fff}.login-page button{min-height:46px}

.brand-logo{display:block;width:48px;height:48px;flex-shrink:0;border-radius:11px}.login-page .brand-logo{margin-bottom:18px}

.coffee-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;margin-bottom:12px}.coffee-brand{font-size:15px;color:var(--muted);letter-spacing:.08em}

.exchange-row{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin:16px 0}.exchange-row label{display:grid;gap:8px;max-width:100%}.exchange-row input{width:220px;max-width:100%;padding:12px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--paper);color:var(--ink)}.exchange-row output{font-size:22px;overflow-wrap:anywhere}.exchange-card .secondary-button{width:auto;margin-top:12px}

.coming-soon{display:inline-block;padding:8px 12px;border:1px solid var(--line);border-radius:20px;font-size:13px;color:var(--muted);white-space:nowrap}

.sold-out-stamp{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;align-self:center;border:3px double currentColor;border-radius:7px;color:#ad3d30;padding:7px 13px;font-size:21px;font-weight:800;letter-spacing:.16em;line-height:1.3;transform:rotate(-10deg);margin:8px;user-select:none}.stamp-small{font-size:12px;padding:3px 6px;margin:4px;border-width:2px;letter-spacing:.08em}[data-theme="dark"] .sold-out-stamp{color:#f09a86}

.total{flex-wrap:wrap;gap:8px 16px}.total-amount{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:4px 6px;min-width:0}.total-amount #total-rmb{font-size:16px;color:var(--muted);white-space:nowrap}.exchange-note{font-size:11px;line-height:1.6;color:var(--muted);text-align:right;margin:-12px 0 16px;overflow-wrap:anywhere}

#batch-dialog{width:min(560px,calc(100% - 32px));box-sizing:border-box}#batch-dialog form,#batch-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}#batch-dialog .field,#batch-selection .field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px}#batch-dialog input,#batch-dialog select,#batch-selection input,#batch-selection select{display:block;width:100%;box-sizing:border-box;padding:12px;min-height:46px;font:inherit}#batch-dialog form>button{grid-column:1/-1;min-height:46px}#batch-dialog .detail-sub{line-height:1.7}#batch-selection{padding:18px;background:var(--soft);border-radius:12px}#batch-dialog .dialog-content{padding:24px}
@media(max-width:520px){#batch-dialog form,#batch-selection{grid-template-columns:1fr;gap:14px}#batch-dialog .dialog-content{padding:20px}}

.schedule-selection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0;padding:18px;background:var(--soft);border-radius:12px}.schedule-selection .field{min-width:0}.schedule-selection select{width:100%;min-height:46px;padding:10px;box-sizing:border-box}.weekday-options{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0}.weekday-options label{display:flex;align-items:center;gap:6px}.merchant #delivery-form fieldset{margin:20px 0;padding:18px}.merchant #delivery-form fieldset label:not(.weekday-options label){display:block;margin:14px 0}.merchant #delivery-form fieldset input[type=number]{display:block;box-sizing:border-box;width:100%;min-height:var(--control-height);padding:10px;margin-top:6px}@media(max-width:620px){.schedule-selection{grid-template-columns:1fr}}
#batch-selection.schedule-selection{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:620px){#batch-selection.schedule-selection{grid-template-columns:1fr}}

.maintenance-notice{padding:18px;border:1px solid var(--accent);border-radius:12px;background:var(--soft);color:var(--ink);line-height:1.7}.maintenance-notice[hidden]{display:none}.merchant button[aria-pressed=true].light-button{border-color:var(--accent);color:var(--danger)}

.delivery-slot-row{padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.delivery-slot-row>strong{grid-column:1/-1}.merchant #delivery-form .delivery-slot-row label{margin:0!important}.delivery-slot-row select{display:block;width:100%;padding:10px;min-height:var(--control-height);margin-top:6px}.delivery-slot-row>button{align-self:end;min-height:var(--control-height)}

.merchant .maintenance-button{background:#b52f23;color:#fff;border:1px solid #b52f23;border-radius:var(--control-radius);min-height:48px;padding:12px 22px;font-weight:700}.merchant .maintenance-button[aria-pressed=true]{background:#405c45;border-color:#405c45}.merchant .maintenance-button:disabled{opacity:.6}

.unified-order{border:1px solid var(--line);border-radius:14px;padding:22px;margin:20px 0;background:var(--field)}.unified-order #order-status-panel{border:0;background:transparent;padding:0;margin:0}.order-card-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px}.order-card-toolbar #refresh-status{width:auto;margin:0;padding:6px 14px;min-height:36px}.unified-order #status-heading{font-size:26px;margin:12px 0}.unified-order #status-updated{font-size:11px;text-align:right;margin:8px 0}.order-card-details{font:inherit;line-height:1.65}.order-card-delivery{padding-bottom:18px;overflow-wrap:anywhere}.order-card-delivery p{margin:4px 0}.order-card-items,.order-card-amounts{border-top:1px solid var(--line);padding:14px 0}.order-card-line{display:flex;justify-content:space-between;gap:18px;margin:8px 0}.order-card-line>span:first-child{min-width:0;overflow-wrap:anywhere}.order-card-line>span:last-child{white-space:nowrap}.order-card-topping{padding-left:12px;font-size:13px;color:var(--muted)}.order-card-total{font-size:22px;font-weight:700;margin-top:16px}.unified-order #status-payment{text-align:right;font-size:13px;margin:0;color:var(--muted)}.merchant .maintenance-button{display:inline-flex;align-items:center;justify-content:center;line-height:1.2;font-family:inherit;vertical-align:middle;padding:12px 22px}
.merchant #orders-panel table{white-space:normal;font-variant-numeric:tabular-nums;min-width:850px}.merchant #orders-panel th{padding:13px 16px;white-space:nowrap;font-size:12px}.merchant #orders-panel td{padding:20px 16px;vertical-align:top;line-height:1.65}.merchant #orders-panel td:first-child{min-width:182px}.merchant #orders-panel .order-id{font-size:15px;line-height:1.4;margin-bottom:8px;letter-spacing:.025em}.merchant #orders-panel td small{font-size:11px;line-height:1.65;margin-top:4px}.merchant #orders-panel td:nth-child(2){min-width:100px}.merchant #orders-panel td:nth-child(3){min-width:130px;max-width:250px;overflow-wrap:anywhere}.merchant #orders-panel td:nth-child(3)>div+div{margin-top:5px}.merchant #orders-panel td:nth-child(4){font-weight:650;font-size:15px;text-align:right;white-space:nowrap}.merchant #orders-panel th:nth-child(4){text-align:right}.merchant #orders-panel td:nth-child(5),.merchant #orders-panel td:nth-child(6){white-space:nowrap}.merchant #orders-panel .table-wrap th:last-child,.merchant #orders-panel .table-wrap td:last-child{min-width:180px;width:180px;box-sizing:content-box}.merchant #orders-panel .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--action-gap);width:180px}.merchant #orders-panel .row-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--control-height);padding:8px 6px;font:inherit;font-size:12px;line-height:1.2;white-space:nowrap;margin:0}.merchant #orders-panel .row-actions .danger{grid-column:2}.merchant #orders-panel .badge{font-size:12px;padding:4px 9px;line-height:1.5}.merchant #orders-panel .filters{gap:12px;flex-wrap:wrap}.merchant #orders-panel .tabs{gap:8px;flex-wrap:wrap}@media(max-width:760px){.merchant #orders-panel td,.merchant #orders-panel th{padding:14px 12px}.merchant #orders-panel .table-wrap th:last-child,.merchant #orders-panel .table-wrap td:last-child{position:static}.merchant #orders-panel .order-id{font-size:14px}}

/* Keep checkout controls visible while only the form body scrolls. */
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden;overscroll-behavior:none}
#checkout-dialog{overflow:hidden;max-height:calc(100dvh - 32px)}
#checkout-dialog .dialog-inner{padding:0;display:flex;flex-direction:column;max-height:calc(100dvh - 34px);min-height:0}
#checkout-dialog .dialog-head{flex:none;margin:0;padding:20px 24px;border-bottom:1px solid var(--line);gap:16px}
#checkout-dialog .dialog-head h2{min-width:0}
#checkout-dialog .close{flex:none;display:grid;place-items:center}
#checkout-dialog .checkout-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px;scroll-padding-block:18px}
#checkout-dialog .checkout-footer{flex:none;padding:16px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--white)}
#checkout-dialog .checkout-footer .quiet{margin:8px 0 0;font-size:12px}
#checkout-dialog .checkout-scroll .fields{margin-top:20px}
@media(max-width:600px){#checkout-dialog{width:calc(100% - 24px);max-width:none}#checkout-dialog .dialog-head{padding:16px 20px}#checkout-dialog .checkout-scroll{padding:16px 20px}#checkout-dialog .checkout-footer{padding-left:20px;padding-right:20px}}

/* Narrow-screen order cards share the desktop table and its existing actions. */
@media(max-width:1100px){
 .merchant #orders-panel .table-wrap{overflow:visible}
 .merchant #orders-panel table{display:block;width:100%;min-width:0}
 .merchant #orders-panel thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .merchant #orders-body{display:grid;gap:14px;padding:14px;box-sizing:border-box}
 .merchant #orders-body tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
 .merchant #orders-panel #orders-body td{display:block;min-width:0;max-width:none;width:auto;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;box-shadow:none}
 .merchant #orders-body td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:11px;font-weight:400;color:var(--muted)}
 .merchant #orders-panel #orders-body td:first-child{grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:12px}
 .merchant #orders-body td:first-child::before,.merchant #orders-body td:last-child::before{display:none}
 .merchant #orders-body td:nth-child(2){grid-column:1;grid-row:2}
 .merchant #orders-body td:nth-child(4){grid-column:2;grid-row:2;text-align:right}
 .merchant #orders-body td:nth-child(3){grid-column:1/-1;grid-row:3}
 .merchant #orders-body td:nth-child(5){grid-column:1;grid-row:4}
 .merchant #orders-body td:nth-child(6){grid-column:2;grid-row:4;text-align:right}
 .merchant #orders-panel #orders-body td:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px}
 .merchant #orders-panel .row-actions{width:100%;gap:var(--action-gap)}
 .merchant #orders-panel .row-actions button{min-height:var(--control-height);white-space:normal}
 .merchant #orders-panel .order-id{font-size:17px;margin-bottom:4px}
 .merchant #orders-panel .tabs{gap:6px 12px}
}

/* One seal design at every viewport: proportional type, never hidden. */
.customer .hero .seal{--seal-size:clamp(72px,9vw,94px);display:grid;width:var(--seal-size);height:var(--seal-size);border-radius:50%;padding:4px;gap:0;transform:rotate(9deg)}
.customer .hero .seal strong{font-size:calc(var(--seal-size)*.205);line-height:1.7;white-space:nowrap;font-weight:700}
.customer .hero .seal span{font-size:calc(var(--seal-size)*.105);letter-spacing:calc(var(--seal-size)*.017);white-space:nowrap}
.customer .hero .seal[hidden],.customer .hero .seal [hidden]{display:none!important}
.customer .hero .seal.seal-expanded{width:clamp(150px,24vw,220px);height:auto;min-height:94px;padding:16px;border-radius:14px;gap:8px;transform:none;min-width:0}
.customer .hero .seal.seal-expanded strong,.customer .hero .seal.seal-expanded span{white-space:pre-line;overflow-wrap:anywhere;min-width:0;letter-spacing:.04em;line-height:1.6}
.customer .hero .seal.seal-expanded strong{font-size:18px}
.customer .hero .seal.seal-expanded span{font-size:12px}
@media(max-width:600px){.customer .hero:has(.seal-expanded:not([hidden])){flex-wrap:wrap}.customer .hero .seal.seal-expanded{width:min(100%,260px)}}
@media(max-width:360px){.customer .hero{gap:12px}.customer .hero h1{font-size:29px;letter-spacing:-1px}}

.merchant .bulk-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;border-bottom:1px solid var(--line)}.merchant .order-select,.merchant .bulk-select-all{display:inline-flex;align-items:center;gap:8px;min-height:var(--control-height);cursor:pointer}.merchant .order-select{font-size:12px;color:var(--muted)}.merchant .order-select input,.merchant .bulk-select-all input{width:22px;height:22px;min-height:0;margin:0;accent-color:var(--green)}.merchant .bulk-toolbar select{min-width:120px;max-width:100%;min-height:var(--control-height);background:var(--field);color:var(--ink);border:1px solid var(--line);border-radius:var(--control-radius);padding:8px}.merchant .bulk-results:not(:empty){padding:12px 16px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.merchant .bulk-results ul{max-height:200px;overflow:auto;padding-left:24px}.merchant .bulk-selected{outline:2px solid var(--green);outline-offset:-2px}

.merchant #orders-panel #orders-body .order-date-group th{position:static;background:var(--soft);color:var(--ink);text-align:left;padding:14px 18px;border-bottom:1px solid var(--line);white-space:normal}.merchant .order-date-group h3{display:inline;font-family:inherit;font-weight:600;font-size:15px;line-height:1.6;margin:0 14px 0 0}.merchant .order-date-group span{font-size:12px;color:var(--muted)}.merchant #orders-panel #orders-body .overdue-group th{border-left:4px solid var(--danger)}.merchant .overdue-label{display:block;color:var(--danger);font-size:12px;margin-top:6px}
@media(max-width:1100px){.merchant #orders-panel #orders-body tr.order-date-group{display:block;grid-column:1/-1;padding:0;border:0;border-radius:0;background:transparent}.merchant #orders-panel #orders-body .order-date-group th{display:block;width:100%;box-sizing:border-box;border-radius:var(--control-radius);padding:12px}.merchant .order-date-group h3{display:block;margin:0 0 3px}}

.merchant .overdue-toggle{display:block;width:100%;min-height:var(--control-height);text-align:left;border:0;background:transparent;color:var(--ink);font-size:15px;font-weight:600;padding:4px 0;white-space:normal}

/* Shared dialog sizing; checkout keeps its dedicated scroll/footer layout. */
dialog{box-sizing:border-box;max-width:calc(100vw - 24px);scrollbar-gutter:stable}
dialog .dialog-inner,dialog .dialog-content{min-width:0;overflow-wrap:anywhere}
dialog fieldset{min-width:0;border:1px solid var(--line);border-radius:var(--control-radius);padding:16px}
dialog legend{max-width:100%;white-space:normal;line-height:1.6}
dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),dialog select,dialog textarea{box-sizing:border-box;min-height:var(--control-height)}
dialog button:not(.close){min-height:var(--control-height);white-space:normal;line-height:1.5}
#feedback-form{display:grid;gap:20px;margin-top:24px}
#feedback-form>p:empty{display:none}
#feedback-form>p{margin:0}
#feedback-form textarea{min-height:120px}
#feedback-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
#feedback-form fieldset p{grid-column:1/-1;margin:0}
#password-form .dialog-label{display:flex;flex-direction:column;gap:8px}
#password-form input{display:block;width:100%;padding:12px;font-size:16px}
#password-save,#storefront-save,#product-save{width:100%;margin-top:12px}
#storefront-form input[type=file]{display:block;width:100%;margin:12px 0;white-space:normal}
#storefront-form fieldset>label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:8px;margin-top:16px;line-height:1.6}
#storefront-form fieldset>label:has(input[type=checkbox]) input{flex-shrink:0;margin-top:4px}
#receipt-dialog .receipt-actions{display:grid;gap:12px;margin-top:20px}
#receipt-dialog .receipt-actions>button,#receipt-dialog .receipt-actions>p{margin:0}
#receipt-dialog .receipt-actions>p:empty{display:none}
@media(max-width:520px){
 dialog .dialog-head{align-items:flex-start}
 dialog .dialog-head h2{font-size:20px}
 dialog fieldset{padding:12px}
 #feedback-form fieldset{grid-template-columns:minmax(0,1fr)}
}

/* Ordering controls follow the existing warm palette and touch-friendly scale. */
:root{--control-height:44px;--control-radius:8px;--action-gap:12px;--field-padding:12px}
input,textarea{caret-color:var(--green)}
::selection{background:var(--green);color:var(--paper)}
a{text-underline-offset:.2em}
.customer .meal-card .menu-price,.customer .addon-row .menu-price{font-size:18px;line-height:1.5;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums;margin-top:10px}
.customer .meal-card .meal-name{font-weight:650}
.customer .meal-card .extra{gap:16px}
.customer .portion-options{border:0;border-radius:0;padding:0;margin:18px 0 0;background:transparent}
.customer .portion-options legend{max-width:100%;padding:0;line-height:1.6;font-size:14px;font-weight:600;color:var(--ink)}
.customer .topping-choice{box-sizing:border-box;min-height:var(--control-height);padding:10px 6px;margin:2px 12px 0 0;border:0;border-radius:4px;font-size:14px;vertical-align:top;background:transparent}
.customer .topping-choice:has(input:checked){background:transparent;color:var(--ink)}
.customer .topping-choice:has(input:disabled){color:var(--muted);cursor:default}
.customer .topping-choice input{width:20px;height:20px;flex-shrink:0;accent-color:var(--green)}
.customer .topping-choice:has(:focus-visible){outline:3px solid var(--focus-ring);outline-offset:3px}
.customer .cart .line{gap:16px;line-height:1.65;align-items:flex-start}
.customer .cart .line>span:last-child{flex-shrink:0;text-align:right;font-variant-numeric:tabular-nums}
.customer .cart .line.secondary{font-size:13px;color:var(--muted)}
.customer .order-nav .plain{min-height:var(--control-height)}
.customer .quiet,.customer .exchange-note{font-size:12px}
.merchant .nav{min-height:var(--control-height);line-height:1.5;background:transparent;color:var(--muted);font-weight:500}
.merchant .nav[aria-current=page]{background:var(--green);color:var(--paper);font-weight:650}

.merchant .tab{min-height:var(--control-height);line-height:1.5}
.merchant .bulk-toolbar{font-size:14px;line-height:1.6}
.merchant .order-id,.merchant .stat strong,.customer #total{font-variant-numeric:tabular-nums}
@media(hover:hover) and (pointer:fine){
 .customer .topping-choice:not(:has(input:disabled)):hover{background:var(--soft)}
 .merchant .nav:not([aria-current=page]):hover{background:var(--white);color:var(--ink)}
 button:not(:disabled){transition:background-color 160ms ease-out,border-color 160ms ease-out}
}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}
@media(max-width:600px){.customer .topping-choice{margin-right:12px;padding:10px 6px}.customer .portion-options{padding:0}.customer .meal-card .meal-name{font-size:22px}}

/* Shared product hierarchy: consistent controls, dialog headers and page groups. */
:root{--dialog-pad:24px;--focus-ring:#a66e2c}
:root[data-theme=dark]{--focus-ring:#e7b36b}
:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}
button,input,select,textarea,summary{scroll-margin-block:88px 100px}
.customer .hero{padding:32px 0}
.customer .hero h1{letter-spacing:-.03em;line-height:1.25}
.customer .hero p{font-size:14px;line-height:1.8}
.customer .hero .eyebrow{letter-spacing:.12em}
.customer .section-head h2{font-size:21px;line-height:1.4}
.customer .menu-heading{font-size:23px;margin:28px 0 14px;line-height:1.4}
.customer .menu-heading.addon-heading{font-size:18px;margin-top:28px}
.customer .meal-card{padding:24px;margin:14px 0}
.customer .addon-row .extra{padding:20px 0;gap:20px}
.customer .addon-row small:not(.menu-price){font-size:13px;line-height:1.6;color:var(--muted)}
.customer .cart{border-radius:14px;padding:24px;top:24px}
.customer .cart-title{padding-bottom:18px;margin-bottom:18px}
.customer .cart .delivery{line-height:1.8;font-size:12px}
.customer .total{padding-top:20px;margin-top:20px}
.customer .cart .primary{min-height:48px;font-size:15px}
.customer #shopping-bag{scroll-margin-top:20px}

#batch-selection.schedule-selection{padding:16px;gap:12px 16px;margin:20px 0 24px}
#batch-selection .sub{margin:0;line-height:1.7}
#batch-selection select{font-size:14px}
.cart-shortcut{display:none}
/* Keep the real close control reachable throughout a long form. */
dialog:not(#checkout-dialog){scroll-padding-block:88px 24px}
dialog:not(#checkout-dialog) .dialog-inner,dialog .dialog-content{padding:var(--dialog-pad)}
dialog:not(#checkout-dialog) .dialog-head{position:sticky;top:0;z-index:3;background:var(--white);margin:calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)) 20px;padding:16px var(--dialog-pad);border-bottom:1px solid var(--line);align-items:center;min-height:76px;box-sizing:border-box}
dialog .dialog-head h2{font-size:21px;line-height:1.4;margin:0;min-width:0;text-wrap:balance}
dialog .close{border-radius:var(--control-radius);background:var(--soft);color:var(--ink);padding:0;line-height:1}
dialog input[type=file]{width:100%;box-sizing:border-box;min-width:0;font-size:13px;padding:8px;overflow:hidden}
input[type=file]::file-selector-button{font:inherit;min-height:36px;padding:6px 10px;border:0;border-radius:6px;background:var(--soft);color:var(--ink);margin-right:10px;cursor:pointer}
.proof-disclosure{margin:20px 0;padding:0 0 16px;border-bottom:1px solid var(--line)}
.proof-disclosure>summary{min-height:var(--control-height);font-size:15px;font-weight:600;cursor:pointer;line-height:1.6;padding:10px 0;box-sizing:border-box}
.proof-disclosure>p.sub{margin-top:8px}
.unified-order{padding:18px;border-radius:10px}
.unified-order #status-heading{font-size:24px;line-height:1.4}
#status-steps,.public-status-steps{margin:20px 0}
#receipt-dialog #edit-rule{line-height:1.7}
/* Merchant tools are available as one group, with live store status outside it. */
.shop-availability{display:inline-flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:var(--green);margin-bottom:6px}
.shop-availability::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.shop-availability.is-paused{color:var(--danger)}
.merchant .heading{align-items:center;gap:20px;margin-bottom:24px}
.merchant .heading h1{line-height:1.3;letter-spacing:-.02em;margin:0 0 8px}
.merchant .subtitle{font-size:13px;line-height:1.7}
.merchant .workspace-actions{align-items:center}
.merchant-tools{position:relative}
.merchant-tools>summary{box-sizing:border-box;min-height:var(--control-height);padding:11px 16px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--white);color:var(--ink);font-size:13px;cursor:pointer}
.merchant-tools[open]>summary{border-color:var(--green)}
.tool-actions{position:absolute;right:0;top:calc(100% + 8px);z-index:10;width:min(360px,calc(100vw - 32px));box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--action-gap);padding:16px;background:var(--white);border:1px solid var(--line);border-radius:12px}
.merchant .tool-actions button{min-width:0;min-height:var(--control-height);white-space:normal;line-height:1.5;margin:0}
.merchant .tool-actions .maintenance-button{grid-column:1/-1;grid-row:auto;padding:10px;font-size:13px}
.merchant .stats{margin:0 0 24px;gap:12px}
.merchant .stat{padding:20px;text-align:left}
.merchant .stat strong{font-size:30px;margin:10px 0 8px;line-height:1.2}
.merchant .stat small{line-height:1.6;font-size:12px}
.receipt-tools{display:flex;flex-wrap:wrap;gap:var(--action-gap);margin-top:12px}
.merchant .receipt-tools button{min-height:var(--control-height)}
.merchant .filters{gap:12px}
.merchant .filters input,.merchant .filters select{min-height:var(--control-height);font-size:14px}
.merchant .tabs{gap:8px 18px}
.merchant .tab{font-size:14px}
.merchant .bulk-toolbar{padding:16px;gap:12px}
.merchant .action,.merchant .link,.merchant .danger{min-height:var(--control-height);line-height:1.5;font-size:13px}
.merchant .product-row{padding:20px;align-items:flex-start}
.merchant .product-row strong{font-size:17px;line-height:1.5}
.merchant .product-row p,.merchant .catalog-child p{line-height:1.7;margin:8px 0 0}
.merchant .row-actions{gap:var(--action-gap);align-items:center}
.merchant #catalog-panel>.toolbar{padding:0 0 12px}
.merchant .feedback-entry{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:24px;display:grid;gap:14px;max-width:850px;line-height:1.8}
.feedback-entry>p{margin:0;overflow-wrap:anywhere}
.feedback-entry>strong{font-size:12px;color:var(--muted);font-weight:500;overflow-wrap:anywhere}
.feedback-entry .feedback-field{display:grid;gap:8px;font-size:13px;color:var(--muted)}
.feedback-entry input:not([type=checkbox]),.feedback-entry select{box-sizing:border-box;width:100%;min-height:var(--control-height);padding:10px 12px;font-size:16px}
.feedback-entry>label:not(.feedback-field){display:flex;align-items:center;gap:10px;font-size:14px;min-height:var(--control-height)}
.feedback-entry>button{justify-self:start}
.feedback-entry>button[type=submit]{width:100%}
.feedback-entry>p:empty{display:none}
.feedback-confirm{display:flex;flex-wrap:wrap;gap:10px;padding:16px;background:var(--soft);border-radius:var(--control-radius)}
.feedback-confirm p{width:100%;margin:0}
#behavior-summary{background:transparent;padding:0;white-space:normal;max-width:850px}
.metric-row{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);font-size:14px}
.metric-value{text-align:right;color:var(--muted);font-size:12px}
.metric-value strong{font-size:24px;line-height:1.4;color:var(--ink);font-variant-numeric:tabular-nums;margin-right:8px}
#statistics-panel>p{max-width:75ch;line-height:1.8}
#delivery-demand{max-width:850px;white-space:normal;line-height:1.9}
@media(max-width:1100px){
 .merchant .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .merchant .stat{padding:16px 12px}
 .merchant .stat:last-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
 .merchant .stat:last-child>span{grid-column:1;grid-row:1}
 .merchant .stat:last-child>strong{grid-column:2;grid-row:1;margin:0}
 .merchant .stat:last-child>small{grid-column:1/-1}
 .merchant .stat:last-child>.receipt-tools{grid-column:1/-1;margin:0}
}
@media(max-width:760px){
 :root{--dialog-pad:20px}
 .customer .header{padding:20px 0 12px}
 .customer .hero{padding:24px 0}
 .customer .hero h1{font-size:32px}
 .customer .hero p{font-size:13px;margin-top:12px}
 .customer .hero .eyebrow{font-size:10px;margin-bottom:10px}
 .customer .main{gap:24px}
 .customer .meal-card{padding:18px}
 .customer .meal-card .meal-name{font-size:22px}
 .customer .footer{flex-direction:column;gap:12px}.customer .footer>span{flex:auto}
 .customer .footer>.secondary-button{align-self:flex-start}
 #batch-selection.schedule-selection{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:12px}
 #batch-selection>.field:first-child{grid-column:1/-1}
 .customer.has-cart-shortcut{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
 .cart-shortcut:not([hidden]){position:fixed;z-index:8;bottom:max(12px,env(safe-area-inset-bottom,0px));left:16px;right:16px;display:flex;justify-content:space-between;align-items:center;gap:16px;box-sizing:border-box;padding:12px 16px;background:var(--ink);color:var(--paper);border-radius:12px}
 .cart-shortcut>span{display:grid;gap:4px;min-width:0}
 .cart-shortcut small{font-size:11px}
 .cart-shortcut strong{font-size:18px;font-variant-numeric:tabular-nums}
 .cart-shortcut button{min-height:var(--control-height);flex-shrink:0;padding:10px 14px;border:0;border-radius:var(--control-radius);background:var(--paper);color:var(--ink);font-weight:600;font-size:14px}
 .customer:has(dialog[open]) .cart-shortcut{display:none}
 .merchant .heading{margin-bottom:20px;gap:16px}
 .merchant .heading>.workspace-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .merchant-tools>summary{text-align:center}
 .merchant .stats{gap:8px;margin-bottom:20px}
 .merchant .stat small{font-size:11px}
 .merchant .stat strong{font-size:26px}
 .merchant .stat>span{font-size:12px}
 .merchant .product-row{padding:16px;gap:16px}
 .merchant .feedback-entry{padding:18px}
 .metric-row{gap:12px}
}
@media(max-width:700px){.merchant .shell>aside{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px}.merchant aside .nav{font-size:12px;padding:10px 6px}.merchant aside .brand{margin-bottom:4px}}

/* Intermediate widths need a complete menu column, not a squeezed desktop split. */
@media(min-width:761px) and (max-width:1000px){
 .customer .main{grid-template-columns:1fr;gap:24px}
 .customer .cart{position:static}
}
.merchant main:has(#orders-panel[hidden])>.heading #reset,
.merchant main:has(#orders-panel[hidden])>.footer>.orders-help{display:none}
.merchant main:has(#orders-panel[hidden]) .workspace-actions{display:flex;justify-content:flex-end}

#statistics-panel .demand-heading{font-size:18px;margin:1em 0}

/* Dialog actions stay readable when optional controls appear or disappear. */
.dialog-actions,.merchant .detail-actions{display:flex;flex-wrap:wrap;gap:var(--action-gap)}
.dialog-actions{margin:16px 0}
.dialog-actions>button,.merchant .detail-actions>button{flex:1 1 140px;min-width:0;min-height:var(--control-height)}
@media(max-width:600px){
 .merchant .detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .merchant .detail-actions>button{width:100%;padding:10px 12px}
 .merchant .detail-actions>button:only-child{grid-column:1/-1}
}
.toast.error{color:var(--danger)}
.delivery-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.delivery-actions>button{min-height:var(--control-height);margin:0;flex:1 1 180px}

/* Second-pass workbench: available content width governs navigation and cards. */
.merchant .stats .stat{background:var(--white);color:var(--ink)}
.merchant .stats .stat span,.merchant .stats .stat small{color:var(--muted)}
.merchant .stats button.stat[aria-pressed=true]{background:var(--green);color:var(--white);border-color:var(--green)}
.merchant .stats button.stat[aria-pressed=true] span,.merchant .stats button.stat[aria-pressed=true] small{color:var(--white)}
.merchant .filters .search{flex:1 0 220px;min-width:220px;width:100%}
.merchant .receipt-more{grid-column:1/-1}
.receipt-more>summary,.bulk-tools>summary{cursor:pointer;min-height:var(--control-height);box-sizing:border-box;padding:10px 0;color:var(--green);font-size:14px}
.bulk-tools>summary{padding:12px 16px;border-top:1px solid var(--line)}
.load-state{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;color:var(--muted);font-size:13px;line-height:1.7}
.load-state p{margin:0}.load-state.error{color:var(--danger)}
#orders-load-state{padding:8px 16px}
#detail-actions{display:grid;grid-template-columns:1fr;gap:16px}
.action-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.danger-actions{border-top:1px solid var(--line);padding-top:16px}
.feedback-entry .feedback-title{font-size:18px;color:var(--ink);font-weight:650;margin:0;line-height:1.6}
.feedback-entry .feedback-meta{font-size:13px;color:var(--muted)}
.feedback-reference{font-size:13px;overflow-wrap:anywhere;color:var(--muted)}
.feedback-reference summary{cursor:pointer;min-height:var(--control-height);padding:10px 0;box-sizing:border-box}
.feedback-reference button{margin-top:10px}.feedback-reference p{margin:4px 0}
@media(max-width:1100px){
 .merchant .shell{display:block}.merchant .shell>aside{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 20px;border-right:0;border-bottom:1px solid var(--line)}
 .merchant aside .brand{margin:0 20px 0 0}.merchant aside .brand small,.merchant aside .aside-note{display:none}
 .merchant aside .nav{width:auto;min-height:var(--control-height);box-sizing:border-box;padding:11px 12px;font-size:13px}
 .merchant main{padding:24px 20px}.merchant #orders-panel .row-actions{width:100%}
 .merchant #orders-panel .filters{width:100%}.merchant #orders-panel .filters .search{flex-basis:100%}
 .merchant #orders-panel .table-wrap td:last-child{position:static}
}
@media(max-width:600px){
 .merchant .shell>aside{display:flex;gap:6px;padding:10px 12px}
 .merchant aside .brand{width:100%;margin:0}.merchant aside .brand .stamp{font-size:20px}.merchant aside .brand strong{font-size:16px}
 .merchant aside .nav{padding:10px 8px;font-size:12px;flex:1 0 auto;text-align:center}
 .merchant main{padding:18px 12px}.merchant .heading{gap:10px;margin-bottom:16px}.merchant .heading h1{font-size:24px;margin:4px 0}.merchant .heading .subtitle{display:none}
 .merchant .stats{gap:8px;margin-bottom:16px}.merchant .stats .stat{padding:12px}.merchant .stats button.stat small{display:none}
 .merchant .stats .stat strong{font-size:24px;margin:6px 0 0}.merchant .stats .stat:last-child{gap:6px}
 .merchant .receipt-more>summary{padding:8px 0}.merchant .toolbar{padding:12px}.merchant .filters{gap:8px}
 .merchant .filters input,.merchant .filters select{font-size:16px}.merchant .filters .search{min-width:0}
 .merchant .tabs{gap:4px 14px;padding:0 12px}.merchant .tab{min-height:var(--control-height);padding:8px 0}
 .merchant #orders-body{padding:12px;gap:12px}
}

.merchant-nav{display:flex;flex-direction:column;gap:8px}
.traffic-repeat{margin:18px 0 28px;padding-left:16px;border-left:3px solid var(--green)}
.traffic-repeat h3{font-size:16px;margin:0 0 6px}
.traffic-repeat p{margin:6px 0 12px;line-height:1.6}
.merchant .merchant-nav .nav{margin:0}
.merchant .aside-note{margin:24px 0 0;padding-top:16px;border-top:1px solid var(--line);line-height:1.5}
.poll-admin-form{max-width:620px;margin-top:22px}
.poll-result-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}
.poll-result-columns>div{min-width:0;padding:14px;border:1px solid var(--line);border-radius:10px}
@media(max-width:620px){.poll-result-columns{grid-template-columns:1fr}}
.poll-deadline{margin:12px 0;color:var(--muted);font-size:13px}
.poll-reward-actions{display:flex;flex-wrap:wrap;gap:10px}
.order-filters{flex-basis:100%;width:100%}.order-filters summary{cursor:pointer;min-height:var(--control-height);padding:10px 0;box-sizing:border-box;font-size:13px;color:var(--muted)}
.filter-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:8px 0}
.merchant .receipt-tools button[aria-pressed=true]{background:var(--green);color:var(--white)}
@media(max-width:1100px){.merchant-nav{flex:1;flex-direction:row;overflow-x:auto;min-width:0;gap:6px}.merchant .merchant-nav .nav{flex:0 0 auto;white-space:nowrap}.merchant .stats button.stat small{display:none}}
@media(max-width:600px){
 .merchant-nav{flex-basis:100%}.merchant .merchant-nav .nav{padding:10px 8px}
 .merchant .heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .merchant .heading>.workspace-actions{width:auto;grid-template-columns:1fr;gap:8px}.merchant .heading .light-button,.merchant-tools>summary{padding:10px 12px}
 .merchant .receipt-more>summary{padding:8px 0}.merchant .receipt-more small{display:block;margin-bottom:10px}
 .merchant #orders-panel .tabs{flex-wrap:nowrap;overflow-x:auto;gap:16px}.merchant .tabs .tab{flex:0 0 auto}
}

@media(max-width:600px){.merchant .heading>div.workspace-actions:last-child{display:grid;grid-template-columns:1fr;width:auto}.merchant .workspace-actions>button,.merchant .workspace-actions>.merchant-tools{width:100%}}

/* Version belongs to the loaded document, not a separately refreshed API. */
body .app-version{color:var(--muted);font-size:12px;line-height:1.6;font-weight:400;text-align:center;letter-spacing:0;margin:20px 0 0;padding:12px 0 max(20px,env(safe-area-inset-bottom));font-variant-numeric:tabular-nums}.login-page .app-version{padding-bottom:0}

/* Receipt hierarchy: external order number first, then status, delivery and amounts. */
.order-number-block{min-width:0}.order-number-block>span{display:block;color:var(--muted);font-size:13px;margin-bottom:4px}
.unified-order #status-number{display:block;font-size:clamp(36px,8vw,48px);line-height:1.15;font-weight:750;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#receipt-dialog .receipt-confirmation{margin:16px 0 0;color:var(--green);font-size:14px;line-height:1.6}
#receipt-dialog .order-card-toolbar{align-items:center;gap:16px}
#receipt-dialog .portion-detail{font-size:13px;margin-top:4px;color:var(--muted)}
#receipt-dialog .portion-detail>summary{cursor:pointer;min-height:var(--control-height);display:list-item;box-sizing:border-box;padding:10px 0}
#receipt-dialog .portion-detail>p{margin:0 0 8px;line-height:1.6;overflow-wrap:anywhere}
#receipt-dialog .order-card-line{gap:16px}#receipt-dialog .order-card-line>span:first-child{min-width:0;overflow-wrap:anywhere}
#receipt-dialog .order-card-line>span:last-child{flex-shrink:0}
@media(max-width:400px){#receipt-dialog .unified-order{padding:14px}#receipt-dialog #status-steps{gap:6px}#receipt-dialog #status-steps li{font-size:12px;line-height:1.5}}

#public-status-dialog #public-status-number{font-size:40px;line-height:1.2;font-weight:750;color:var(--ink);font-variant-numeric:tabular-nums;margin:20px 0;overflow-wrap:anywhere}

/* Small task flows: local recovery and a clear feedback receipt. */
.order-help{margin:20px 0}.order-help-actions,.feedback-success-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.order-help-actions>.secondary-button,.feedback-success-actions>.secondary-button{margin:0;flex:1 1 190px;min-width:0}
#feedback-success{margin-top:20px;outline-offset:6px}#feedback-success h3{font-size:22px;line-height:1.5;margin-bottom:12px}
#feedback-success p{margin:12px 0;line-height:1.7}#feedback-success .feedback-reference-value{overflow-wrap:anywhere;font-size:14px;user-select:all}
.feedback-guidance{margin:0 0 20px}.feedback-guidance>summary{cursor:pointer;min-height:var(--control-height);padding:10px 0;box-sizing:border-box;font-size:14px}
#feedback-form>fieldset{padding:16px}
#feedback-form[hidden]{display:none}#feedback-result:not(:empty){margin-top:16px}

.maintenance-timer{max-width:520px;margin:24px 0 32px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.maintenance-timer h2{font-size:20px;margin:0 0 12px}.maintenance-timer .detail-sub{line-height:1.7}
.maintenance-timer label{display:grid;gap:8px;margin:20px 0 12px}.maintenance-timer input{box-sizing:border-box;width:100%;min-height:48px;padding:10px 12px;font-size:16px}
.maintenance-timer-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.maintenance-timer-actions button{min-height:var(--control-height);margin:0}.maintenance-timer-actions [hidden]{display:none}

.portion-actions{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.portion-actions>.sub{margin:4px 0 0;line-height:1.6}
.portion-copy-actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.portion-copy-actions .secondary-button{width:auto;min-height:var(--control-height);margin:0;padding:10px 16px}
.portion-custom{margin-top:4px;border:0}
.portion-custom>summary{padding:10px 0;font-size:14px;min-height:var(--control-height);box-sizing:border-box;cursor:pointer;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.portion-first .portion-options:first-child{margin-top:18px}

/* Advanced form settings: one save scope, light dividers instead of nested cards. */
.form-section{min-width:0;margin:20px 0 0;padding:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.form-section>summary,.form-section>h3{margin:0;padding:14px 0;min-height:var(--control-height);box-sizing:border-box;font-size:16px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.form-section>summary{cursor:pointer}
.form-section-status{display:block;margin:2px 0 0;font-size:13px;line-height:1.6;font-weight:400;color:var(--muted)}
.form-section-status:empty{display:none}
.form-section-body{min-width:0;padding:0 0 8px}
.form-section-body>fieldset{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent}
.form-section-body>fieldset>legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#product-form .form-section-body label{margin:12px 0}
.product-basics{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
#product-form .product-basics>label:first-child,#product-form .product-basics>label:last-child{grid-column:1/-1}
@media(max-width:480px){.product-basics{grid-template-columns:1fr}}

/* Shared task action layout: wrapping, spacing, and touch targets. */
.order-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:16px;border-top:1px solid var(--line)}
.order-pagination button{min-height:var(--control-height)}

.feedback-recovery summary{min-height:var(--control-height);cursor:pointer}
.feedback-recovery form{display:grid;gap:12px;padding-top:12px}
.feedback-recovery label{display:grid;gap:8px}
.feedback-recovery input,.feedback-recovery textarea{width:100%;min-width:0}
.feedback-credential{display:block;width:100%;min-height:100px;overflow-wrap:anywhere}
.behavior-period{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-block:16px}


.behavior-period select{min-height:var(--control-height,44px);padding:10px 14px}


.feedback-recovery{margin:0 0 20px;padding:0 0 16px;border-top:0;border-bottom:1px solid var(--line)}

.merchant-order-items{white-space:normal;line-height:1.65;min-width:0}.merchant-order-items>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px}.merchant-order-items .order-item-secondary{font-size:13px;color:var(--muted)}.merchant-order-items small{flex-basis:100%}.order-item-portions-title{margin:12px 0 4px;color:var(--muted);font-size:13px}.order-item-portions{padding-left:20px;margin:4px 0 12px}.order-item-portions li{overflow-wrap:anywhere;font-size:13px}.traffic-statistics{margin-block:24px;max-width:850px}.traffic-statistics table{width:100%;border-collapse:collapse}.traffic-statistics th,.traffic-statistics td{padding:10px 8px;text-align:left}.traffic-scroll{overflow-x:auto}.traffic-statistics summary{min-height:var(--control-height);padding:10px 0;cursor:pointer}

.merchant-order-editor{width:min(820px,calc(100% - 24px));max-width:820px}.merchant-order-editor form{display:grid;gap:18px}.merchant-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.merchant-order-editor label{display:grid;gap:8px}.merchant-order-editor input:not([type=checkbox]):not([type=radio]),.merchant-order-editor select,.merchant-order-editor textarea{width:100%;min-height:var(--control-height);padding:10px}.merchant-order-editor .merchant-settlement{display:flex;align-items:flex-start;gap:12px}.merchant-order-editor .merchant-settlement[hidden]{display:none}.merchant-edit-items .meal-card{border-bottom:1px solid var(--line);padding:16px 0}.merchant-edit-items .extra{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.merchant-edit-items .extra>div:first-child{flex:1;min-width:160px}.merchant-edit-items .extra small{display:block;margin-top:6px;color:var(--muted)}.merchant-edit-items .addon-row{padding:16px 0;border-bottom:1px solid var(--line)}.merchant-edit-items .stepper{display:inline-flex;align-items:center;gap:12px}.merchant-edit-items .stepper button{width:44px;height:44px;border:1px solid var(--line);border-radius:var(--control-radius)}.merchant-edit-items .topping-choice{display:inline-flex;align-items:center;gap:8px;min-height:var(--control-height);margin-right:16px}.merchant-edit-items fieldset{margin:12px 0;padding:12px;border:0;border-top:1px solid var(--line)}.merchant-edit-items .portion-details>summary{cursor:pointer;min-height:var(--control-height);padding:10px 0}.merchant-edit-items .portion-copy-actions{display:flex;gap:12px;flex-wrap:wrap}.merchant-edit-items input[type=checkbox],.merchant-edit-items input[type=radio]{width:20px;height:20px}.merchant-order-editor #merchant-edit-save{min-height:var(--control-height)}@media(max-width:600px){.merchant-edit-fields{grid-template-columns:1fr}.traffic-statistics table{font-size:13px;min-width:340px}}

/* Store status remains visible outside individual merchant panels. */
.store-closed-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin:0 0 24px;border:1px solid #966017;border-radius:12px;background:#fff0cd;color:#603d08;line-height:1.6}.store-closed-banner[hidden]{display:none}.store-closed-banner strong{display:block;font-size:20px;font-weight:750}.store-closed-banner p{margin:5px 0 0;font-size:14px}.store-closed-banner button{flex-shrink:0;min-height:var(--control-height);color:inherit;border-color:currentColor;background:transparent}.merchant .shop-availability.is-paused{color:#854a05;font-weight:750;font-size:15px}.customer .store-closed-banner{margin-top:20px}html[data-theme=dark] .store-closed-banner{background:#382b14;color:#ffdf9a;border-color:#a77d35}html[data-theme=dark] .merchant .shop-availability.is-paused{color:#ffdf9a}@media(max-width:600px){.store-closed-banner{align-items:flex-start;flex-direction:column;padding:16px}.store-closed-banner strong{font-size:19px}.store-closed-banner button{align-self:flex-start}}

/* Access policy: protected-focus form; no persistent browser state. */
#access-fields{border:0;padding:0;margin:0;min-width:0;display:grid;gap:18px}
.access-option{display:flex;align-items:flex-start;gap:14px;min-height:52px;padding:12px 0;border-bottom:1px solid var(--line)}
.access-option input[type=checkbox]{width:24px;height:24px;flex:0 0 24px;margin:2px 0;accent-color:var(--accent)}
.access-option span{display:grid;gap:6px}.access-option small{font-size:14px;line-height:1.6}
#access-explanation{margin:0;line-height:1.7}#access-save{min-height:48px}#access-error:empty{display:none}
.access-warning{margin-bottom:20px}

#access-form .dialog-label{display:grid;gap:8px}#access-current-password{width:100%;min-height:var(--control-height);box-sizing:border-box}

/* Delivery pricing belongs to the existing settings disclosure. */
#delivery-pricing-mode{display:block;width:100%;min-height:46px;box-sizing:border-box;padding:12px;margin:8px 0 20px}#delivery-form [hidden]{display:none!important}

/* Reserve exactly two lines throughout typing and erasing; never reflow the content below. */
.customer .hero>div:first-child{flex:1 1 0;min-width:0}
#hero-slogan.slogan-stack{display:block;height:2.5em;min-height:2.5em;line-height:1.25;overflow:hidden;width:100%;max-width:none}
.slogan-phrase{display:none}
.slogan-phrase.is-active{display:block}
.slogan-line{display:block;white-space:nowrap}
.slogan-wrap-fallback .slogan-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slogan-measure{position:fixed;left:0;top:0;visibility:hidden;pointer-events:none;white-space:nowrap;width:max-content}
.slogan-phrase.cursor-empty,.slogan-phrase .cursor-anchor{position:relative}
.slogan-phrase.cursor-empty::before,.slogan-phrase .cursor-anchor::after{content:"";position:absolute;left:100%;bottom:.08em;width:.58em;height:.09em;background:currentColor;animation:slogan-cursor 850ms steps(1,end) infinite}
.slogan-phrase.cursor-empty::before{left:0}
@keyframes slogan-cursor{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.slogan-phrase.cursor-empty::before,.slogan-phrase .cursor-anchor::after{content:none;animation:none}}
.slogan-editor{display:block;width:100%;padding:12px;margin:8px 0;font:inherit;box-sizing:border-box}

/* UI-17 shared controls: business colors remain with primary/danger variants. */
.storefront-text-field{display:block;width:100%;padding:10px;margin:8px 0 18px;font:inherit}
label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:var(--control-height);align-content:center;cursor:pointer}
label:has(>input:disabled){cursor:default}
input[type=radio]{accent-color:var(--green)}
input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;color:var(--muted)}
input[readonly],textarea[readonly]{background:var(--soft)}
.error:empty{display:none}

/* Shared order shell: header and actions stay available; only content scrolls. */
dialog.order-dialog{overflow:hidden;max-height:calc(100dvh - 24px);scrollbar-gutter:auto;padding:0}
dialog.order-dialog .order-dialog-frame{padding:0;display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:0}
dialog.order-dialog:not(#checkout-dialog) .dialog-head{position:static;flex:none;margin:0;padding:16px var(--dialog-pad);min-height:76px;gap:var(--action-gap);border-bottom:1px solid var(--line);background:var(--white)}
dialog.order-dialog .order-dialog-form{display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:0;margin:0}
dialog.order-dialog .order-dialog-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px var(--dialog-pad);scroll-padding-block:20px}
dialog.order-dialog .order-dialog-footer{flex:none;max-height:42dvh;overflow-y:auto;margin:0;padding:16px var(--dialog-pad) max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--white);scroll-padding-block:16px}
dialog.order-dialog .order-dialog-footer:empty{display:none}
dialog.order-dialog .order-dialog-footer .error{margin:8px 0 0}
dialog.order-dialog .order-dialog-footer>.action{width:100%}
@media(max-width:600px){
 #receipt-dialog[open]{position:fixed;top:var(--receipt-visual-top,8px);bottom:auto;margin:0 auto;max-height:min(calc(100dvh - 16px),var(--receipt-visual-height,calc(100dvh - 16px)))}
 #receipt-dialog .order-dialog-frame{max-height:inherit}
}
#receipt-dialog .receipt-actions{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--action-gap)}
#receipt-dialog .receipt-actions>p{grid-column:1/-1;line-height:1.6}
#receipt-dialog .receipt-actions>button{min-width:0;padding:10px 12px}
#receipt-dialog .order-dialog-footer>#copy-status:not(:empty){margin-top:8px}
.merchant-order-editor .order-dialog-body{display:grid;gap:18px}
.merchant-order-editor .order-dialog-body>p{margin:0}

/* Manual entry uses the shared order shell and merchant menu controls. */
dialog.manual-order-dialog{width:min(980px,calc(100% - 24px));max-width:980px}
.manual-order-intro{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
dialog.manual-order-dialog .manual-order-body{display:block}
dialog.manual-order-dialog .manual-order-fields{padding:0;display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);align-items:start;gap:28px;margin:0;border:0;border-radius:0;background:var(--white);min-inline-size:0}
.manual-order-column{display:grid;align-content:start;gap:24px;min-width:0}
.manual-order-column+ .manual-order-column{border-left:1px solid var(--line);padding-left:28px}
.manual-order-section{min-width:0}
.manual-order-section+ .manual-order-section{border-top:1px solid var(--line);padding-top:20px}
.manual-order-section-head{margin-bottom:16px}
.manual-order-section-head h3{margin:0;font-size:16px;line-height:1.4}
.manual-order-section-head p{margin:6px 0 0;font-size:12px;line-height:1.6}
.manual-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.manual-order-grid.manual-order-time,.manual-order-grid.manual-order-notes{grid-template-columns:repeat(2,minmax(0,1fr))}
.manual-order-time .manual-order-field:first-child,.manual-order-notes .manual-order-field{grid-column:1/-1}
.manual-order-field{min-width:0;font-size:13px;font-weight:600}
.manual-order-field span{line-height:1.4}
.manual-order-dialog .manual-order-field input,.manual-order-dialog .manual-order-field textarea{font-size:16px;font-weight:400}
.manual-order-field textarea{min-height:72px;resize:vertical}
.manual-order-field small{font-weight:400}
.manual-order-wide{grid-column:1/-1}
.manual-order-dialog #manual-order-items{min-width:0}
.manual-order-dialog #manual-order-items .menu-heading{font-size:13px;color:var(--muted);margin:20px 0 8px;font-weight:600}
.manual-order-dialog #manual-order-items .menu-heading:first-child{margin-top:0}
.manual-order-dialog #manual-order-items .sub{font-size:12px;line-height:1.6;margin:4px 0 12px}
.manual-order-dialog #manual-order-items .meal-card{margin:0;padding:12px 0 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.manual-order-dialog #manual-order-items .extra{gap:12px;flex-wrap:nowrap}
.manual-order-dialog #manual-order-items .extra>div:first-child{min-width:0}
.manual-order-dialog #manual-order-items .extra strong{font-size:15px;line-height:1.5}
.manual-order-dialog #manual-order-items .extra small{font-size:12px;line-height:1.6}
.manual-order-dialog #manual-order-items .extra .menu-price{font-size:14px;color:var(--ink);font-weight:600}
.manual-order-dialog #manual-order-items .stepper{gap:8px}
.manual-order-dialog #manual-order-items .stepper output{min-width:20px;text-align:center;font-variant-numeric:tabular-nums}
.manual-order-dialog #manual-order-items .stepper button{background:var(--white);color:var(--ink);cursor:pointer}
.manual-order-dialog #manual-order-items .stepper .plus{background:var(--accent);color:#fff;border-color:var(--accent)}
.manual-order-dialog #manual-order-items .stepper button:hover:not(:disabled){filter:brightness(0.95)}
.manual-order-dialog #manual-order-items button:disabled{opacity:0.45;cursor:not-allowed}
.manual-order-dialog #manual-order-items .topping-choice{display:inline-flex;font-size:13px;font-weight:400}
dialog.manual-order-dialog .order-dialog-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 24px;background:var(--soft)}
.manual-order-dialog .order-dialog-footer>.action{width:auto;min-width:160px;min-height:48px;padding:12px 24px}
.manual-order-dialog .order-dialog-footer>.action:disabled{opacity:0.55;cursor:not-allowed}
.manual-order-quote{display:grid;gap:4px;margin:0;line-height:1.5;font-variant-numeric:tabular-nums}
.manual-order-quote strong{font-size:22px;font-weight:650}
.manual-order-breakdown,.manual-order-reference{font-size:12px;color:var(--muted);font-weight:400}
.manual-order-reference:empty,.manual-order-dialog .order-dialog-footer .error:empty{display:none}
.manual-order-dialog .order-dialog-footer .error{margin:0;grid-column:1/-1;font-size:13px;line-height:1.5}
@media(max-width:760px){
 dialog.manual-order-dialog .manual-order-fields{grid-template-columns:1fr;gap:24px}
 .manual-order-column+ .manual-order-column{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:20px}
}
.postal-options{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}
.postal-options:empty{display:none}
.postal-option{min-height:40px;padding:8px 13px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--soft);color:var(--ink);cursor:pointer}
.postal-option:hover,.postal-option:focus-visible{border-color:var(--green);outline-offset:2px}
@media(max-width:600px){dialog.manual-order-dialog .manual-order-body{padding:20px 16px}.manual-order-dialog .order-dialog-footer{gap:12px;padding:12px 16px}.manual-order-dialog .order-dialog-footer>.action{min-width:112px;padding:12px}.manual-order-quote strong{font-size:18px}.manual-order-breakdown{max-width:30ch}.manual-order-intro{font-size:12px}.manual-order-grid{gap:14px 12px}}
@media(max-height:500px){dialog.order-dialog:not(#checkout-dialog) .dialog-head{min-height:60px;padding-block:8px}dialog.order-dialog .order-dialog-footer{max-height:36dvh;padding-block:10px}}

/* Shared action rhythm, including previously compact toolbar controls. */
.theme-control select{min-height:var(--control-height)}
.merchant .heading>div:last-child,.merchant .bulk-toolbar,.receipt-tools,.portion-copy-actions{gap:var(--action-gap)}
label:has(>input[type=checkbox]),label:has(>input[type=radio]){display:inline-flex;align-items:center}

/* Pricing and merchant delivery guidance are separate readable paragraphs. */
.customer .cart .delivery p{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.customer .cart .delivery p+p{margin-top:10px}
.customer .cart .delivery .delivery-money{white-space:nowrap;overflow-wrap:normal}
.state-correction-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.state-correction-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.state-correction-dialog h2,.state-correction-dialog .detail-sub,.state-correction-dialog label:has(textarea),.state-correction-dialog .error{grid-column:1/-1;margin:0}
.state-correction-dialog label{display:grid;gap:8px;min-width:0}
.state-correction-dialog select,.state-correction-dialog textarea{width:100%;padding:10px}
.state-correction-dialog textarea{min-height:96px;resize:vertical}
@media(max-width:520px){.state-correction-dialog form{grid-template-columns:1fr}.state-correction-dialog h2,.state-correction-dialog .detail-sub,.state-correction-dialog label:has(textarea),.state-correction-dialog .error{grid-column:auto}}
.merchant .order-address{white-space:normal;overflow-wrap:anywhere;max-width:240px;color:var(--muted);line-height:1.5}
.poll-option,.poll-result-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.poll-option input{width:18px;height:18px;flex:none}.poll-credentials{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.poll-credentials input{min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink)}.poll-result-row{justify-content:space-between}

/* Order workbench: show delivery instructions in context, and disclose rare actions. */
.merchant #orders-panel .order-note{max-width:240px;margin-top:9px;padding-left:10px;border-left:2px solid var(--green);color:var(--ink);white-space:pre-line;overflow-wrap:anywhere;line-height:1.55}
.merchant #orders-panel .row-actions>.order-progress{grid-column:1/-1;min-height:48px;font-weight:700}
.merchant #orders-panel .row-actions>.link:only-of-type{grid-column:1/-1}
.merchant #orders-panel .row-actions:has(>.order-progress)>.link:nth-of-type(2):last-of-type{grid-column:1/-1}
.merchant #orders-panel .row-actions .order-more{grid-column:1/-1;min-width:0;border-top:1px solid var(--line)}
.merchant #orders-panel .order-more>summary{display:flex;align-items:center;justify-content:space-between;min-height:var(--control-height);padding:8px 3px;color:var(--muted);font-size:12px;cursor:pointer;list-style:none}
.merchant #orders-panel .order-more>summary::-webkit-details-marker{display:none}
.merchant #orders-panel .order-more>summary::after{content:'';width:7px;height:7px;margin-right:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .18s ease}
.merchant #orders-panel .order-more[open]>summary::after{transform:rotate(225deg)}
.merchant #orders-panel .order-more>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.merchant #orders-panel .order-more-actions{display:grid;grid-template-columns:1fr;gap:2px;margin-bottom:4px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}
.merchant #orders-panel .order-more-actions button{width:100%;min-height:var(--control-height);justify-content:flex-start;text-align:left;border:0;border-radius:5px;background:transparent;color:var(--ink);padding:8px 10px}
.merchant #orders-panel .order-more-actions button:hover{background:var(--white)}
.merchant #orders-panel .order-more-actions button:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.merchant #orders-panel .order-more-actions button.danger{grid-column:auto;border-top:1px solid var(--line);border-radius:0;color:var(--danger)}
@media(prefers-reduced-motion:reduce){.merchant #orders-panel .order-more>summary::after{transition:none}}
.merchant #orders-panel td small,.merchant .stats .stat small{font-size:12px}
@media(max-width:1100px){.merchant #orders-panel .order-note{max-width:none}}

/* Keep summary and settings in the same visual language as the order workbench. */
.merchant .stats{gap:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--white)}
.merchant .stats .stat{border:0;border-right:1px solid var(--line);border-radius:0}
.merchant .stats .stat:last-child{border-right:0}
.merchant #delivery-form{max-width:600px;margin-top:22px}
.merchant #delivery-form input[type=number],.merchant #delivery-form textarea,.merchant #delivery-form select{display:block;width:100%;min-height:var(--control-height);padding:10px 12px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--white);color:var(--ink);font:inherit;font-size:16px;line-height:1.5}
.merchant #delivery-form input[type=number]{margin:8px 0 16px}
.merchant #delivery-form textarea{min-height:108px;resize:vertical;line-height:1.7}

/* Merchant workbench: keep related controls together and give order data room. */
.merchant #catalog-panel>.toolbar{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px;padding:4px 0 16px}
.merchant #catalog-panel>.toolbar>button{flex:none;white-space:nowrap}
.merchant #catalog-panel>.toolbar>#add-product{margin-right:6px}
.merchant #orders-panel table{min-width:1260px;table-layout:fixed}
.merchant #orders-panel th,.merchant #orders-panel td{padding-left:12px;padding-right:12px}
.merchant #orders-panel th:nth-child(1){width:17%}
.merchant #orders-panel th:nth-child(2){width:19%}
.merchant #orders-panel th:nth-child(3){width:22%}
.merchant #orders-panel th:nth-child(4){width:11%}
.merchant #orders-panel th:nth-child(5){width:9%}
.merchant #orders-panel th:nth-child(6){width:7%}
.merchant #orders-panel th:nth-child(7){width:15%}
.merchant #orders-panel td:nth-child(2),.merchant #orders-panel td:nth-child(3){overflow-wrap:break-word}
.merchant #orders-panel .table-wrap th:last-child,.merchant #orders-panel .table-wrap td:last-child{box-sizing:border-box;min-width:180px;width:auto}
.merchant #orders-panel #orders-body tr.order-date-group>th{position:static;width:auto!important;min-width:0!important;max-width:none;box-sizing:border-box;padding:12px 16px}
.merchant .order-date-content{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 12px;min-width:0}
.merchant .order-date-content h3{display:block;flex:none;margin:0}
.merchant .order-date-content span{flex:none}
.merchant .order-date-content .link{min-height:36px;padding:6px 10px;white-space:nowrap}
.merchant .order-date-content .overdue-toggle{flex:1 1 100%;min-width:0}
@media(max-width:1100px){.merchant #orders-panel table{min-width:0;table-layout:auto}.merchant #orders-panel #orders-body tr.order-date-group>th{width:100%!important}.merchant .order-date-content{gap:8px}.merchant .order-date-content h3{margin:0}}
@media(max-width:600px){.merchant #catalog-panel>.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.merchant #catalog-panel>.toolbar>#add-product{grid-column:1/-1;margin:0}.merchant #catalog-panel>.toolbar>button{width:100%}.merchant .order-date-content .link{flex:1 1 auto;white-space:normal}}

/* Keep the whole order workbench visible at desktop widths. */
@media(min-width:1101px){.merchant #orders-panel table{width:100%;min-width:0;table-layout:fixed}.merchant #orders-panel th:nth-child(1){width:16%}.merchant #orders-panel th:nth-child(2){width:21%}.merchant #orders-panel th:nth-child(3){width:24%}.merchant #orders-panel th:nth-child(4){width:10%}.merchant #orders-panel th:nth-child(5){width:9%}.merchant #orders-panel th:nth-child(6){width:7%}.merchant #orders-panel th:nth-child(7){width:13%}.merchant #orders-panel td:first-child,.merchant #orders-panel td:nth-child(2),.merchant #orders-panel td:nth-child(3){min-width:0}.merchant #orders-panel .table-wrap th:last-child,.merchant #orders-panel .table-wrap td:last-child{position:static;min-width:0;width:13%;box-sizing:border-box}.merchant #orders-panel .row-actions{width:100%}.merchant #orders-panel #orders-body tr.order-date-group>th{width:auto!important}.merchant #orders-panel td:nth-child(4){font-size:13px}.merchant #orders-panel .row-actions button{white-space:normal}}
.merchant .order-date-content .link:disabled{opacity:.55;cursor:not-allowed}
@media(min-width:1101px){.merchant #orders-panel th:nth-child(3){width:23%}.merchant #orders-panel th:nth-child(7){width:14%}.merchant #orders-panel .table-wrap th:last-child,.merchant #orders-panel .table-wrap td:last-child{width:14%}.merchant #orders-panel .row-actions{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4px;row-gap:6px}.merchant #orders-panel .row-actions>button{min-width:0;padding:8px 2px;white-space:nowrap}.merchant #orders-panel .row-actions .order-more-actions button{white-space:nowrap}}

/* Batch selection and calibration remain visible while one-off edits stay optional. */
#batch-dialog .batch-target-title{margin:20px 0 8px;font-weight:600}
#batch-dialog .batch-target{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
#batch-dialog .batch-target+.link{display:block;width:100%;min-height:46px;margin:18px 0 6px}
#batch-dialog .batch-target+.link+.detail-sub{margin:0 0 16px}
@media(max-width:520px){#batch-dialog .batch-target{grid-template-columns:1fr;gap:14px}}

/* Delivery settings: one clear card per task, with dense fields where room allows. */
.merchant #delivery-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;max-width:1100px}
.merchant #delivery-panel>.subtitle{max-width:75ch;line-height:1.7}
.merchant #delivery-panel .maintenance-timer,.merchant #delivery-panel #delivery-form{box-sizing:border-box;min-width:0;max-width:none;width:100%;margin:0;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.merchant #delivery-panel .maintenance-timer{align-self:start}
.merchant #delivery-panel .maintenance-timer h2{margin:0 0 8px}
.merchant #delivery-panel .maintenance-timer .detail-sub{margin:0;max-width:65ch}
.merchant #delivery-panel .maintenance-timer label{margin:18px 0 8px}
.merchant #delivery-form .form-section:first-child{margin-top:0;border-top:0}
.merchant #delivery-form .form-section>summary,.merchant #delivery-form .form-section>h3{padding:16px 0}
.merchant #delivery-form #delivery-fees-section .form-section-body{display:grid;grid-template-columns:minmax(140px,190px) minmax(0,1fr);align-items:center;gap:14px 18px}
.merchant #delivery-form #delivery-fees-section .form-section-body>.dialog-label{margin:0}
.merchant #delivery-form #delivery-fees-section .form-section-body>select,.merchant #delivery-form #delivery-fees-section .form-section-body>input{margin:0}
.merchant #delivery-form #delivery-fees-section .form-section-body>p{grid-column:1/-1;margin:0;line-height:1.7}
.merchant #delivery-form .delivery-slot-row{grid-template-columns:auto minmax(130px,1fr) minmax(130px,1fr) auto;align-items:end;gap:12px}
.merchant #delivery-form .delivery-slot-row>strong{grid-column:auto;align-self:center;white-space:nowrap}
.merchant #delivery-form .delivery-slot-row>button{white-space:nowrap}
.merchant #delivery-form .delivery-actions{display:flex;justify-content:flex-start}
.merchant #delivery-form .delivery-actions>button{flex:0 1 200px}
@media(min-width:1280px){.merchant #delivery-panel{grid-template-columns:minmax(270px,320px) minmax(0,1fr)}.merchant #delivery-panel>.subtitle{grid-column:1/-1}}
@media(max-width:700px){.merchant #delivery-panel .maintenance-timer,.merchant #delivery-panel #delivery-form{padding:18px}.merchant #delivery-form #delivery-fees-section .form-section-body{grid-template-columns:1fr;gap:8px}.merchant #delivery-form #delivery-fees-section .form-section-body>.dialog-label:not(:first-child){margin-top:10px}.merchant #delivery-form .delivery-slot-row{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant #delivery-form .delivery-slot-row>strong,.merchant #delivery-form .delivery-slot-row>button{grid-column:1/-1}.merchant #delivery-form .delivery-actions>button{flex:1 1 140px}}
@media(max-width:1100px){.merchant .stats .stat:nth-child(3){border-right:0}.merchant .stats .stat:last-child{border-top:1px solid var(--line)}}
@media(max-width:600px){.merchant .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant .stats .stat:nth-child(2){border-right:0}.merchant .stats .stat:nth-child(3){border-top:1px solid var(--line);border-right:1px solid var(--line)}.merchant .stats .stat:last-child{grid-column:auto;display:block}.merchant .stats .stat:last-child>strong{margin:6px 0 0}}

.merchant-special-schedule{padding:16px;background:var(--soft);border-radius:var(--control-radius)}
.merchant-special-schedule .merchant-settlement{margin:0;font-weight:600}
.merchant-special-schedule .detail-sub{margin:8px 0 16px}
.merchant-special-schedule input[type=checkbox]{width:20px;height:20px;margin-top:2px}

.merchant-special-fields{grid-template-columns:1.2fr 1fr 1fr}
@media(max-width:600px){.merchant-special-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-special-fields>label:first-child{grid-column:1/-1}}



/* Compact poll stays in document flow; no overlay, clipping or fixed height. */
#customer-poll{box-sizing:border-box;width:calc(100% - 40px);max-width:1160px;margin:12px auto 0;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
#customer-poll[hidden]{display:none}
#customer-poll .poll-options{min-width:0;border:0;padding:0;margin:0}
#customer-poll legend{font-size:15px;font-weight:600;line-height:1.5;padding:0;margin:0 0 8px;overflow-wrap:anywhere;max-width:100%}
#customer-poll .poll-option-list{display:flex;flex-wrap:wrap;gap:8px}
#customer-poll .poll-option{box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:1.4;overflow-wrap:anywhere;cursor:pointer}
#customer-poll .poll-option:has(input:checked){border-color:var(--red);background:var(--paper)}
#customer-poll input{box-sizing:border-box;width:16px;height:16px;min-height:0;padding:0;margin:0;flex:none;accent-color:var(--red)}
#customer-poll .poll-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
#customer-poll .poll-actions span{font-size:12px;color:var(--muted)}
#customer-poll .primary{width:auto;min-height:44px;padding:10px 18px;margin:0;font-size:14px}
#customer-poll .poll-message{font-size:13px;margin:8px 0 0;overflow-wrap:anywhere}
#customer-poll .poll-message:empty{display:none}
@media(max-width:480px){#customer-poll{width:calc(100% - 24px);padding:12px;margin-top:8px}}

@media(min-width:700px){#customer-poll form{display:flex;align-items:center;gap:20px}#customer-poll .poll-options{flex:1}#customer-poll .poll-actions{margin:0;flex-direction:column;align-items:flex-end;flex:none}}

/* Customer micro-feedback: local actions only; never animate whole menu cards. */
.customer .stepper button{transition:transform 120ms ease-out,background-color 160ms ease-out,border-color 160ms ease-out}
.customer .stepper button:active:not(:disabled){transform:scale(.95)}
.customer .stepper output{display:grid;place-items:center}
.customer .topping-choice{border:1px solid transparent;border-radius:8px;transition:background-color 160ms ease-out,border-color 160ms ease-out}
.customer .topping-choice:has(input:checked){background:var(--soft);border-color:var(--accent)}
@keyframes cart-shortcut-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes customer-dialog-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
 .customer .cart-shortcut:not([hidden]){animation:cart-shortcut-enter 200ms ease-out}
 .customer #checkout-dialog[open],.customer #receipt-dialog[open]{animation:customer-dialog-enter 180ms ease-out}
}
@media(prefers-reduced-motion:reduce){
 .customer .stepper button,.customer .topping-choice{transition:none}
 .customer .stepper button:active:not(:disabled){transform:none}
}

/* Native Safari date/time controls must fit their grid track, including padding. */
.manual-order-dialog .manual-order-field input,.manual-order-dialog .manual-order-field textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-inline-size:0}
.manual-order-dialog .manual-order-field input:is([type=date],[type=time]){display:block;max-inline-size:100%}
.manual-order-dialog .manual-order-field input::-webkit-date-and-time-value{min-width:0;text-align:left}
@media(max-width:480px){.manual-order-grid.manual-order-time{grid-template-columns:minmax(0,1fr)}}

/* Preserve meal cards; simplify only nested decoration and promotional badges. */
.customer #menu-list .promotion-label{padding:0;border:0;border-radius:0;background:transparent;color:var(--red)}
.customer #menu-list .portion-first{border:0;border-radius:0;background:transparent}
.customer #menu-list .meal-card .extra{align-items:center}
dialog .dialog-head>.close{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;line-height:1;align-self:center}
#checkout-dialog .close svg{display:block;width:20px;height:20px;pointer-events:none}

/* Voting reward stays visible after the daily poll closes. */
#poll-reward{box-sizing:border-box;width:calc(100% - 40px);max-width:1160px;margin:10px auto 0;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
@media(max-width:480px){#poll-reward{width:calc(100% - 24px);padding:12px}}
#poll-reward p{margin:8px 0;color:var(--muted);font-size:13px;line-height:1.6}
#poll-reward small{color:var(--muted)}
#poll-reward .poll-reward-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}
#poll-reward .poll-reward-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em;overflow-wrap:anywhere}
#poll-reward button{min-height:40px;padding:8px 12px}
#poll-reward details{margin-top:10px;font-size:12px}
#poll-reward-dialog{width:min(480px,calc(100vw - 24px))}
#poll-reward-dialog input{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px;text-transform:uppercase}
#poll-reward-dialog .poll-reward-result{min-height:1.5em;margin:16px 0 8px;font-size:13px;line-height:1.6}
#poll-reward-dialog .poll-reward-edit{width:100%}

#poll-reward{position:relative;padding-right:60px}
#poll-reward .poll-reward-close{position:absolute;right:10px;top:8px;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--ink);font-size:24px;line-height:1}
#poll-reward .secondary-button{width:auto;margin:0}

/* Pickup address fields stay hidden even when form labels use flex/grid. */
.fulfillment-address[hidden],.fulfillment-choice[hidden]{display:none!important}

.pickup-toggle{display:flex;align-items:center;gap:10px}.pickup-toggle input{margin:0}

.merchant-service-notice{padding:12px 16px;margin-bottom:16px;border-left:3px solid var(--accent);background:var(--soft);color:var(--ink);line-height:1.6;white-space:nowrap;overflow-x:auto;font-size:clamp(13px,3.5vw,16px)}
.expense-form{display:grid;gap:12px;max-width:680px}.expense-form textarea,.expense-form input{display:block;width:100%;padding:12px}.expense-list{padding:0;list-style:none}.expense-list li{padding:12px 0;border-bottom:1px solid var(--line)}
/* Operating statistics: compact, shared sections; amounts retain their own scope. */
#statistics-panel{max-width:1080px}
.statistics-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-bottom:20px}
.statistics-toolbar .behavior-period{margin:0;gap:8px}
.statistics-toolbar .load-state{margin:0;flex:1;min-width:180px;font-size:13px;color:var(--muted)}
.statistics-toolbar .load-state p{margin:0}
.statistics-toolbar .load-state.error{color:var(--danger,#b13e29)}
#statistics-panel .statistics-section{max-width:none;margin:0;padding:20px 0;border-top:1px solid var(--line);background:transparent}
#statistics-panel .statistics-section h2{font-size:19px;line-height:1.4;margin:0 0 6px}
#statistics-panel .statistics-caption{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 12px}
#statistics-panel .statistics-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 32px;margin:12px 0 0}
.statistics-metrics dt{font-size:14px;margin:0 0 4px}
.statistics-metrics dd{margin:0 0 4px;font-size:28px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#statistics-panel .statistics-metrics p{margin:0}
#statistics-panel .statistics-disclosure{margin:8px 0 0;max-width:none}
.statistics-disclosure>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:600}
.statistics-disclosure>p{font-size:14px;line-height:1.65;max-width:75ch}
#statistics-panel .statistics-empty{margin:8px 0 0;font-size:14px;color:var(--muted)}
#statistics-panel .statistics-sales{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;margin:16px 0 0}
.statistics-sales caption{text-align:left;font-weight:600;font-size:15px;margin-bottom:6px}
#statistics-panel .statistics-sales th,#statistics-panel .statistics-sales td{padding:8px 12px;text-align:right;font-size:14px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
#statistics-panel .statistics-sales th:first-child{width:52%;padding-left:0;text-align:left;overflow-wrap:anywhere;white-space:normal;background:transparent}
#statistics-panel .statistics-sales thead th{font-size:13px;font-weight:400;color:var(--muted);background:transparent}
.statistics-sales tbody th{font-weight:500}
.statistics-funnel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:16px 0 0;gap:16px}
.statistics-funnel li{display:grid;align-content:start;gap:6px;min-width:0}
.statistics-funnel strong{font-size:21px;font-variant-numeric:tabular-nums}
.statistics-funnel span{font-size:14px}
.statistics-funnel small{font-size:12px;line-height:1.6;color:var(--muted)}
#behavior-issues.has-issues h2,.settlement-warning{color:var(--danger,#b13e29)}
#statistics-panel .expense-form{margin:8px 0 16px}
#statistics-panel .expense-list{font-size:14px;overflow-wrap:anywhere}
#statistics-panel .metric-row{padding:8px 0;gap:16px}
@media(max-width:600px){
 .statistics-toolbar{gap:8px 12px;margin-bottom:12px}.statistics-toolbar .load-state{flex-basis:100%}
 #statistics-panel .statistics-metrics{gap:16px}.statistics-metrics dd{font-size:24px}
 #statistics-panel .statistics-section{padding:16px 0}
 .statistics-funnel{grid-template-columns:1fr;gap:0;margin-top:8px}
 .statistics-funnel li{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--line)}
 .statistics-funnel small{grid-column:1/-1}.statistics-funnel strong{font-size:18px}
 #statistics-panel .statistics-sales th,#statistics-panel .statistics-sales td{padding:8px 4px}
}
.expense-filters,.expense-pages,.expense-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.expense-filters label{display:grid;gap:6px;min-width:0}.expense-filters input{min-width:0;max-width:100%;padding:10px}.expense-entry{display:flex;justify-content:space-between;gap:16px}.expense-entry>div:first-child{min-width:0;flex:1}.expense-entry p{margin:6px 0}.expense-entry small{color:var(--muted)}.expense-dialog{width:min(560px,calc(100% - 24px))}.expense-dialog p{overflow-wrap:anywhere}.expense-dialog .expense-form{max-width:none}@media(max-width:600px){.expense-entry{flex-direction:column}.expense-filters{align-items:end}.expense-filters label{flex:1 1 140px}}
/* Shopping-bag delivery copy is supporting text, not a second card. */
#shopping-bag .delivery{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0;margin:12px 0;font-size:13px;line-height:1.65}

/* Poll tasks have separate editing, preview, results and reset boundaries. */
#poll-panel{max-width:960px}#poll-panel .poll-rules{margin:0 0 20px}#poll-panel summary{min-height:44px;padding:10px 0;box-sizing:border-box;cursor:pointer}
#poll-panel .poll-preview,#poll-panel #poll-results,#poll-panel .poll-reset-section{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}
#poll-panel .poll-preview h2{font-size:18px;margin:0 0 8px}#poll-preview-content{max-width:390px;overflow-wrap:anywhere}#poll-preview-content p{margin:12px 0}
#poll-panel .poll-result-columns>div{min-width:0;overflow-wrap:anywhere}#poll-panel input,#poll-panel textarea{box-sizing:border-box}

.merchant .feedback-entry{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0;margin:0}.feedback-content,.feedback-reference{margin:8px 0}.feedback-content summary,.feedback-reference summary{min-height:44px;padding:10px 0;box-sizing:border-box;cursor:pointer}.feedback-excerpt,.feedback-content p{white-space:pre-wrap;overflow-wrap:anywhere}.feedback-title{margin:0 0 8px}.feedback-meta{font-size:13px}

.merchant #detail-dialog #customer-detail,.merchant #detail-dialog #items-detail{background:transparent;border-radius:0;padding:14px 0;margin:12px 0;border-top:1px solid var(--line);color:var(--ink)}
.merchant #delivery-form .delivery-slot-row{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0}
.merchant #delivery-form .form-section-body>fieldset{padding:0;margin:0;border:0}

#order-waiver-dialog .waiver-switch{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:44px}
#order-waiver-dialog .waiver-switch input{width:20px;height:20px;flex:0 0 20px}

.demo-monitor-lane{padding:16px 0;border-bottom:1px solid var(--line);display:grid;gap:8px}
.demo-monitor-lane h3,.demo-monitor-lane p{margin:0}
.demo-monitor-lane button{justify-self:start}
#demo-password-dialog form{padding:24px}
#demo-password-dialog .demo-password-field{grid-column:1/-1}
#demo-password-dialog input{width:100%;min-width:0;padding:10px}

.merchant #delivery-form .delivery-slot-row .slot-weekdays{grid-column:1 / -1;min-width:0;margin:0;padding:8px 0;border:0}.slot-weekdays .detail-sub{margin:4px 0 0}.slot-weekdays .weekday-options{display:flex;flex-wrap:wrap;gap:8px 16px}.slot-weekdays .weekday-options label{white-space:nowrap}

.fulfillment-actions{display:flex;flex-wrap:wrap;gap:6px}.fulfillment-actions button{cursor:pointer;min-height:36px}.fulfillment-actions button[aria-pressed=true]{outline:1px solid currentColor}.fulfillment-actions [hidden]{display:none!important}

.fulfillment-actions button.pill{appearance:none;border:1px solid var(--line);border-radius:var(--control-radius);padding:6px 10px;background:transparent;white-space:nowrap}.fulfillment-actions button[aria-pressed=true]{background:var(--soft);border-color:var(--green);outline:none}#group-pickup-admin{grid-column:1/-1;width:100%;min-width:0}#group-pickup-admin form{display:grid;gap:16px;max-width:760px}#group-pickup-admin label{display:grid;gap:8px}#group-pickup-admin input:not([type=checkbox]){min-height:44px;padding:10px}#group-pickup-admin .weekday-options{display:flex;flex-wrap:wrap;gap:12px}#group-pickup-admin .weekday-options label,#group-pickup-admin label:has(>input[type=checkbox]){display:flex;align-items:center;gap:8px}#group-pickup-admin .detail-box{margin:12px 0;padding:16px}

/* Date-first fulfillment selection, shared desktop/mobile structure. */
#batch-selection.schedule-selection{grid-template-columns:repeat(2,minmax(0,1fr))}
#batch-selection > .full{grid-column:1 / -1}

.group-point-choice[hidden]{display:none!important}

#member-dialog{width:min(520px,calc(100% - 24px));max-height:85dvh;overflow:auto}#member-dialog form{display:grid;gap:12px;margin:20px 0}#member-dialog .field{display:grid;gap:6px}#member-dialog input,#member-dialog select{width:100%;box-sizing:border-box;min-height:44px;padding:10px}#member-dialog details{margin:18px 0}#member-dialog .secondary-button{margin:4px 8px 4px 0}.member-cart-notice{padding:12px 0;border-bottom:1px solid var(--line)}.member-cart-notice[hidden]{display:none!important}.order-nav{flex-wrap:wrap}#member-admin-dialog{width:min(600px,calc(100% - 24px));max-height:85dvh;overflow:auto}#member-admin-dialog label{display:grid;gap:6px;margin:12px 0}#member-admin-dialog input{min-height:44px;padding:10px;box-sizing:border-box;width:100%}#member-admin-dialog button{margin:4px}

#member-admin-dialog button:not(.close){min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink)}#member-admin-dialog button.primary{background:var(--green);color:var(--paper)}#member-admin-dialog details{margin-top:16px}#member-admin-dialog .close{border:0;border-radius:8px;width:44px;height:44px}

/* Account management owns the former feedback page. */
#feedback-panel #member-admin-dialog{width:100%;max-width:none;max-height:none;overflow:visible;margin:0 0 28px;padding:0}.account-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.account-search label{flex:1;min-width:180px}.account-columns{display:grid;grid-template-columns:minmax(220px,0.8fr) minmax(0,1.2fr);gap:24px}.account-list{max-height:560px;overflow:auto}.account-row{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:calc(100% - 8px);text-align:left}.account-detail{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px}.account-detail h3{margin-top:0;overflow-wrap:anywhere}.account-detail p{overflow-wrap:anywhere}.account-detail details{padding:10px 0;border-top:1px solid var(--line)}@media(max-width:700px){.account-columns{grid-template-columns:1fr}.account-list{max-height:300px}.account-search button{flex:1}.account-search label{flex-basis:100%}}

#feedback-waiting[hidden]{display:none!important}

#member-dialog .member-close-confirm{display:flex;align-items:flex-start;gap:10px;margin:16px 0;line-height:1.6}#member-dialog .member-close-confirm input{width:22px;height:22px;min-height:22px;flex:0 0 22px;padding:0;margin:2px 0}#member-close .danger{color:var(--red,#bb4030)}#member-admin-dialog .account-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}#member-admin-dialog .account-pager button{padding:8px;margin:0;white-space:nowrap}

.receipt-currency-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.receipt-currency-totals>div{min-width:0}.receipt-currency-totals strong,.receipt-currency-totals b{display:block;overflow-wrap:anywhere}.receipt-currency-totals small{display:block}.state-correction-dialog select{min-height:44px;width:100%;padding:10px}

/* Percentage offers and receipt hierarchy. */
.extra .menu-price.sale-price{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.sale-price .sale-badge{background:#b9d685;color:#18210f;padding:4px 7px;border-radius:4px;font-weight:800;line-height:1.2;white-space:nowrap}
.sale-price .sale-original{font-size:.8em;font-weight:400;opacity:.7;white-space:nowrap}
.sale-price .sale-current{font-size:1em;white-space:nowrap}
.receipt-stat .receipt-currency-totals{margin:12px 0 8px;gap:14px 20px}
.receipt-stat .receipt-currency-totals strong{font-size:clamp(20px,2vw,28px);line-height:1.3;margin:4px 0 0;font-variant-numeric:tabular-nums}
.receipt-stat .receipt-converted{border-top:1px solid var(--line);padding-top:10px}
.receipt-stat .receipt-converted b{font-size:16px;line-height:1.4;margin-top:4px;font-variant-numeric:tabular-nums}
.receipt-stat #stat-rmb-note{white-space:pre-line;display:block;font-size:12px;line-height:1.6;margin:4px 0 12px;max-width:30ch;text-wrap:pretty}
@media(max-width:900px){
 .merchant .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .merchant .stats .stat:nth-child(2){border-right:1px solid var(--line)}
 .merchant .stats .stat:nth-child(3){border-top:0;border-right:0}
 .merchant .stats .receipt-stat:last-child{grid-column:1/-1;border-top:1px solid var(--line)}
 .merchant .receipt-stat .receipt-currency-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
 .merchant .receipt-stat .receipt-currency-totals strong{white-space:nowrap}
 .merchant .receipt-stat #stat-rmb-note{max-width:none}
}

.statistics-add-cost{white-space:nowrap;min-height:44px}.statistics-disclosure#statistics-expense{scroll-margin-top:20px}
@media(max-width:600px){.statistics-toolbar .statistics-add-cost{width:100%}}

/* Small-business charts: zero baseline, visible values, native data tables. */
.chart-controls{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin:18px 0 12px}
.chart-controls label{display:flex;gap:10px;align-items:center;font-size:14px}
.chart-controls select{min-height:44px;padding:8px 12px}
.completion-columns{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:4px;list-style:none;padding:0;margin:20px 0 10px}
.completion-columns li{min-width:0;text-align:center;font-variant-numeric:tabular-nums}
.chart-value{display:block;font-size:12px;line-height:20px}.chart-date{display:block;height:24px;font-size:11px;white-space:nowrap;margin-top:6px}
.completion-track{height:140px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}
.completion-bar{width:100%;max-width:48px;margin:auto auto 0;background:var(--green);border-radius:3px 3px 0 0}
.chart-untracked{background:repeating-linear-gradient(135deg,transparent,transparent 5px,var(--line) 5px,var(--line) 6px)}
.ranking-bars{list-style:none;padding:0;margin:16px 0}.ranking-bars li{margin:0 0 18px}.ranking-label{display:flex;justify-content:space-between;gap:16px;font-size:14px;line-height:1.5}.ranking-label span{overflow-wrap:anywhere}.ranking-label strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.ranking-track{height:12px;display:flex;margin:6px 0;background:var(--soft);border-radius:3px;overflow:hidden}.rank-sold{background:var(--green)}.rank-gifted{background:repeating-linear-gradient(135deg,var(--green),var(--green) 2px,var(--soft) 2px,var(--soft) 5px)}.ranking-bars small{font-size:12px;color:var(--muted)}
@media(max-width:600px){.chart-controls{gap:8px}.chart-controls label{flex:1;justify-content:space-between}.completion-track{height:120px}.completion-columns{gap:2px}.chart-value{font-size:10px}.chart-date{font-size:10px}.chart-controls select{max-width:140px}}
.completion-columns .chart-date{position:relative;width:40px;left:50%;transform:translateX(-50%)}
.completion-columns li:first-child .chart-date{left:0;transform:none;text-align:left}
.completion-columns li:last-child .chart-date{left:100%;transform:translateX(-100%);text-align:right}
/* Optional image layer never reduces text/control opacity or changes card geometry. */
:is(.card-background-on .card-background-sample,.product-background-card.card-background-on){position:relative;isolation:isolate;background:#202a24;--ink:#fff;--muted:#f2f4f2;--green:#cee9d5;--field:#202a24;--paper:#202a24;color:var(--ink);text-shadow:-1px 0 1px #000,1px 0 1px #000,0 -1px 1px #000,0 1px 1px #000}
:is(.card-background-on .card-background-sample,.product-background-card.card-background-on)::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;background-image:var(--card-background-image);background-position:var(--card-background-position,center);background-size:cover;transform:scale(var(--card-background-zoom,1));transform-origin:var(--card-background-position,center);opacity:var(--card-background-opacity);filter:brightness(var(--card-background-brightness))}
.card-background-on #menu-list :is(button,input,select){text-shadow:none}
.card-background-preview{margin-top:16px}.card-background-sample{border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--field);color:var(--ink)}.card-background-sample .meal-name{font-size:24px}.card-background-sample p{font-size:14px}
#store-background-section input[type=range]{display:block;width:100%;margin:12px 0}#store-background-section output{font-variant-numeric:tabular-nums}#store-background-section label{display:block;margin:14px 0}

.product-background-card.card-background-on :is(button,input,select){text-shadow:none}.topping-choice.product-background-card.card-background-on{padding:8px 12px;border-radius:8px}.topping-choice.product-background-card.card-background-on:has(input:checked){outline:2px solid var(--green);outline-offset:1px}
#product-background-dialog input[type=range]{display:block;width:100%;margin:12px 0}#product-background-dialog label{display:block;margin:14px 0}

/* Clip only decorative layers to the existing card; no extra card height. */
:is(.card-background-on .card-background-sample,.product-background-card.card-background-on){overflow:clip}
:is(.card-background-on .card-background-sample,.product-background-card.card-background-on)::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;background:var(--card-background-gradient,none)}
.background-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.background-controls label{min-width:0}.background-controls select{width:100%}.background-controls>button{align-self:center}.background-controls output{font-variant-numeric:tabular-nums}
#product-background-dialog .card-background-preview{position:sticky;top:0;z-index:1;background:var(--paper);border-radius:14px}
@media(max-width:450px){.background-controls{column-gap:12px}.background-controls label{font-size:13px}}

.background-controls .background-gradient-direction{grid-column:1/-1}

.card-background-sample.background-crop-active{cursor:grab;touch-action:none;user-select:none;outline:2px dashed var(--green);outline-offset:-3px}.card-background-sample.background-crop-active:active{cursor:grabbing}.card-background-sample.background-crop-active:focus-visible{outline-style:solid}

.background-crop-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
