:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;color:#1c312b;background:#f6f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{background:#103e31;color:#fff;padding:34px 0 32px}header p{color:#d8e8df;font-size:14px;line-height:1.7;margin:10px 0 0}.wrap{max-width:1160px;padding:0 22px;margin:0 auto}.head{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:12px;letter-spacing:.14em;color:#b1e5b9;font-weight:800}h1{font-size:clamp(26px,4vw,42px);margin:7px 0 0;letter-spacing:-.04em}.headtag{text-align:right;white-space:nowrap;border:1px solid #659c85;border-radius:12px;padding:12px;font-size:13px}.headtag small{color:#a9d7c2}.layout{display:grid;grid-template-columns:1.13fr .87fr;gap:18px;padding-top:22px;padding-bottom:30px;align-items:start}.panel{background:white;border:1px solid #dce6dc;border-radius:18px;padding:22px;box-shadow:0 3px 12px #172e1910}.inputpanel{grid-row:span 2}.sectionHead{display:flex;align-items:center;gap:10px;margin-bottom:19px}.step{background:#e6f2e9;color:#1a7651;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:36px;padding:0 9px;font-weight:900;font-size:13px}.sectionHead h2{margin:0;font-size:20px}.field{margin:14px 0}label{display:block;font-weight:750;font-size:13px;margin-bottom:7px}select,input{width:100%;background:white;border:1px solid #c9d6cc;color:#1c312b;font-size:16px;padding:12px 13px;border-radius:11px}button{border:0;border-radius:10px;padding:12px 16px;font-size:14px;font-weight:800;cursor:pointer;transition:filter .15s}button:hover{filter:brightness(.97)}button:focus-visible{outline:3px solid #d8a450}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:#178155;color:white;font-size:17px;padding:15px 21px}.subtle{background:#e3eee8;color:#16553b}.borderBtn{background:white;border:1px solid #c9d8cf;color:#225640}.buttons{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.status{min-height:48px;background:#e7f2eb;border-left:4px solid #1b8b5b;border-radius:8px;padding:12px;font-size:13px;line-height:1.6}.voiceLabel{font-size:13px;font-weight:800;margin-top:16px}.heard{background:#f9fbf8;border:2px solid #daeadc;border-radius:13px;padding:18px;margin:8px 0 12px;min-height:80px;font-size:24px;font-weight:800;word-break:break-word}.hint{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:12px 0}.hint b{font-size:12px;width:100%}.hint span{background:#f1f5f1;padding:6px 10px;border-radius:6px;font-size:12px}.inline{display:flex;gap:8px}.inline input{min-width:0}.notice{margin-top:14px;background:#fff9ea;border:1px solid #ebdcaf;border-radius:10px;font-size:12px;padding:12px;line-height:1.8}.candidate{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid #d8e5db;margin:8px 0;border-radius:13px;padding:15px}.candidate:hover{background:#eff8f0}.candidate.first{border:2px solid #1d875d;background:#f0fbf3}.num{font-weight:900;color:#148654;font-size:22px;min-width:26px}.detail{flex:1}.detail strong{display:block;font-size:17px}.detail small{display:block;margin-top:6px;color:#677770;font-size:12px}.add{color:#136e43;font-size:12px;font-weight:900;white-space:nowrap}.caption{font-size:12px;color:#697c72;line-height:1.75;margin:13px 0 0}.empty{color:#708078;font-size:14px;padding:26px 12px;text-align:center;background:#f7f9f6;border:1px dashed #d5e0d8;border-radius:12px}.count{background:#188156;color:white;border-radius:999px;padding:3px 9px;font-size:13px}.cartRow{display:flex;gap:8px;align-items:center;border-bottom:1px solid #e9eee8;padding:12px 2px}.cartName{flex:1;font-size:14px;font-weight:800}.cartName small{color:#76877e;font-size:11px;font-weight:400;display:block;margin-top:4px}.qty{font-variant-numeric:tabular-nums}.qtyBtn{padding:6px 10px;background:#e8f0e9}.summary{display:flex;justify-content:space-between;font-size:12px;padding:17px 0 0;color:#5e756a}.summary strong{font-size:12px;color:#2c4f3d}.menuPanel{grid-column:1/-1}.menuGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:17px}.menuCell{background:#f9fbf9;border:1px solid #e0e9e1;border-radius:11px;padding:11px 12px;text-align:left}.menuCell strong{display:block;font-size:13px;line-height:1.5;margin-top:4px}.menuCell small{font-size:11px;color:#72917d}.menuCell .code{font-size:12px;font-weight:800;color:#25855b}.menuCell .uncertain{color:#a67a27}footer{color:#7a8b80;font-size:12px;padding-bottom:34px}@media(max-width:850px){.layout{grid-template-columns:1fr}.inputpanel{grid-row:auto}.menuPanel{grid-column:auto}.menuGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.headtag{display:none}}@media(max-width:450px){.menuGrid{grid-template-columns:1fr}.panel{padding:17px}.wrap{padding-left:14px;padding-right:14px}.buttons button{flex:1}.candidate .detail strong{font-size:15px}}

.clerkPanel{display:flex;align-items:center;gap:14px;background:#e9f4ee;border:1px solid #bbd9c7;border-radius:14px;padding:16px;margin:14px 0}.clerkAvatar{font-size:34px;flex-shrink:0}.clerkSpeech{font-size:17px;font-weight:650;color:#114a34;line-height:1.6}.dialogStage{font-size:12px;color:#39755a;margin-top:6px}.clerkPanel .voiceLabel{margin-bottom:4px}

/* v2.6.8: isolated quantity UI */
#quantityPanel[hidden]{display:none!important}
.quantityProduct{font-size:1.12rem;font-weight:700}
.quantityGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.quantityGrid button{min-height:72px;padding:12px 4px;border-radius:12px;border:2px solid #c9cfd8;background:#fff;color:#20262c;font-size:1.3rem;font-weight:700;cursor:pointer}
.quantityGrid button.selected{background:#e4f4e7;border-color:#187c3b;color:#14552e}
.quantityCommit{margin-top:8px;width:100%;padding:14px}
@media(max-width:420px){.quantityGrid{gap:5px}.quantityGrid button{font-size:1.04rem}}

/* v2.6.9.6 quantity stepper */
.quantityStepper{display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,1fr) minmax(0,1fr);gap:12px;align-items:start;margin:20px 0 24px}
.quantityControl{text-align:center;min-width:0}
.quantityStepBtn{width:100%;max-width:124px;height:78px;padding:6px;background:#f3f8f4;border:2px solid #94bfa2;color:#17653e;font-size:40px;font-weight:800;border-radius:14px}
.quantityStepBtn:disabled{opacity:.3}
.quantityValue{display:flex;align-items:baseline;justify-content:center;gap:6px;border:2px solid #208158;background:#ecf9ee;border-radius:14px;min-height:78px;padding:11px 4px;font-variant-numeric:tabular-nums}
#quantitySelected{font-size:40px;font-weight:900;line-height:1.15}
.quantityUnit{font-size:19px;font-weight:800}
.quantityCommand{font-size:12px;line-height:1.9;margin-top:10px;white-space:nowrap;color:#275f45}
@media(max-width:420px){.quantityStepper{gap:5px;grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr)}.quantityCommand{font-size:10px}.quantityStepBtn{height:68px;font-size:34px}.quantityValue{min-height:68px}#quantitySelected{font-size:33px}}

/* v2.6.9.7 voice-guided candidate navigation */
#candidateControls[hidden]{display:none!important}.candidateControls{display:flex;gap:10px;margin-top:12px}.candidateControls button{flex:1;min-height:54px}.candidate.first{border:3px solid #087d4c;background:#daf5df;box-shadow:0 0 0 2px #c0e8cb}.candidate.first .add{font-weight:900;color:#065b35}.candidate.first .add::after{content:"中"}

/* v2.6.9.8 unified candidate and quantity navigation */
.quantityChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0 10px}.quantityChoice{min-height:84px;padding:6px;border:2px solid #cbd5cf;background:#fff;border-radius:14px;color:#222;font-size:26px;font-weight:800}.quantityChoice.selected{border:4px solid #087d4c;background:#daf5df;color:#075e37;box-shadow:0 0 0 2px #b7e5c2}.quantityNav{font-size:14px;text-align:center}.quantityCurrent{text-align:center;font-size:16px;margin:10px 0}.candidateControls button{min-width:0}@media(max-width:420px){.quantityChoices{gap:5px}.quantityChoice{font-size:21px;min-height:68px}.candidateControls{gap:5px}.candidateControls button{font-size:13px;padding:8px 4px}}

/* v2.6.9.9 smartphone-first display. Desktop remains v2.6.9.8. */
.mobileTop,.mobileCartHead,.mobileCartFinish,.mobileQuantityControls{display:none}
@media(max-width:700px){
 body{background:#f4f7f4;padding-top:66px}
 .mobileTop{display:flex;position:fixed;z-index:50;top:0;left:0;right:0;min-height:62px;background:#fff;border-bottom:1px solid #d8e6dc;padding:9px 16px;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 2px 9px #10241912}
 .mobileTop strong{display:block;color:#114e37;font-size:18px}.mobileTop small{display:block;color:#789284;font-size:10px;margin-top:2px}
 .mobileCartToggle{background:#e2f2e8;color:#116343;border:1px solid #b4d6c4;padding:10px 12px;font-size:13px;white-space:nowrap}
 header{padding:14px 0 12px;background:#123d30}header .wrap{display:block}header h1{font-size:19px;letter-spacing:0;margin:2px 0}header p{display:none}header .eyebrow{font-size:10px}
 .layout{display:flex;flex-direction:column;gap:10px;padding-top:10px;padding-bottom:18px}
 .panel{width:100%;border-radius:14px;box-shadow:none;padding:15px}
 .inputpanel{order:1}.layout>section:nth-child(2){order:2}#quantityPanel{order:3}.cartPanel{order:4}.menuPanel{display:none!important}
 .inputpanel .sectionHead{margin-bottom:9px}.inputpanel .sectionHead h2{font-size:17px}
 .inputpanel .field:has(#mic){display:none}.inputpanel #scan,.inputpanel #repeatClerk{display:none}
 .inputpanel .buttons{margin:8px 0}.inputpanel .buttons button{min-height:46px}
 #start{flex:2;font-size:16px}#stop{flex:1;font-size:14px}
 .status{min-height:0;padding:9px 10px;font-size:12px}
 .clerkPanel{margin:10px 0;padding:10px;gap:9px}.clerkAvatar{font-size:25px}.clerkSpeech{font-size:14px;line-height:1.5}.clerkPanel .voiceLabel{margin:0;font-size:11px}
 .inputpanel>.voiceLabel{font-size:12px;margin-top:7px}.heard{font-size:19px;min-height:0;padding:11px;margin:5px 0}
 .hint,.notice,.inputpanel .field:has(#typed){display:none!important}
 .sectionHead{margin-bottom:12px}.sectionHead h2{font-size:17px}
 .candidate{min-height:60px;padding:11px;margin:6px 0}.candidate .detail strong{font-size:16px}.candidate .detail small{display:none}
 .candidateControls{display:flex;gap:7px}.candidateControls button{min-height:49px}
 .layout>section:nth-child(2){display:none}
 body.mobile-stage-candidate:not(.mobile-cart-open) .layout>section:nth-child(2){display:block}
 body.mobile-stage-quantity:not(.mobile-cart-open) #quantityPanel{display:block}
 .quantityPanel .quantityProduct{font-size:16px;margin:0 0 12px}
 .quantityChoices{margin:12px 0 8px;gap:6px}.quantityChoice{font-size:22px;min-height:74px}
 .mobileQuantityControls{display:flex;gap:8px;margin:8px 0}.mobileQuantityControls button{flex:1;min-height:44px}
 .quantityNav{display:none}.quantityCurrent{margin:8px 0}.quantityCommit{min-height:52px;margin-top:7px}
 .caption{font-size:11px;line-height:1.6;margin-top:8px}
 .cartPanel{display:none}
 body.mobile-cart-open .cartPanel{display:block}
 body.mobile-cart-open .layout>.inputpanel,body.mobile-cart-open .layout>section:nth-child(2),body.mobile-cart-open #quantityPanel{display:none!important}
 .mobileCartHead,.mobileCartFinish{display:block}.mobileCartHead{margin:0 0 14px}.mobileCartHead button{width:100%}
 .mobileCartFinish{margin:18px 0 0}.mobileCartFinish button{width:100%;min-height:52px}.mobileCartFinish p{font-size:12px;color:#557462;text-align:center}
 .cartRow{padding:15px 0}.cartName{line-height:1.4}
 .cartPanel .summary{display:none}
 footer{font-size:10px;line-height:1.5;padding-bottom:15px}
 body.mobile-listening #start{background:#a2b0a6}
 body.mobile-stage-idle .layout>section:nth-child(2){display:none}
}

/* v2.6.10.2: compact mobile ordering / candidate controls always visible */
#mobileCartInline{display:none}
@media(max-width:700px){
 body{padding-top:0}
 #mobileTop,header{display:none!important}
 .inputpanel .sectionHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
 .inputpanel .sectionHead .step{display:none}
 .inputpanel .sectionHead h2{font-size:17px;line-height:1.3}
 #mobileCartInline{display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:5px;flex-shrink:0}
 .inputpanel{padding-bottom:10px}
 .inputpanel .clerkPanel{display:none!important}
 .inputpanel>.voiceLabel{display:none!important}
 .inputpanel .heard{font-size:14px;font-weight:700;min-height:0;padding:6px 9px;margin:5px 0;border-width:1px}
 .inputpanel .heard::before{content:'認識：';font-weight:500;color:#698474}
 .inputpanel .status{font-size:11px;padding:5px 8px;line-height:1.4}
 .inputpanel .buttons{margin:5px 0}
 .inputpanel .buttons button{min-height:44px}
 .layout>section:nth-child(2) .sectionHead{margin-bottom:6px}
 .layout>section:nth-child(2){padding-bottom:8px}
 #candidates{max-height:min(30dvh,245px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .candidate{margin:4px 0;min-height:56px;padding:8px}
 .candidateControls:not([hidden]){position:sticky;bottom:env(safe-area-inset-bottom,0px);z-index:20;padding:9px 4px;background:#fff;border-top:1px solid #dee9e1;box-shadow:0 -5px 14px #122f2614}
 .candidateControls button{min-height:50px}
 .layout>section:nth-child(2)>.caption{font-size:11px;max-height:2.5em;overflow:hidden}
 body.mobile-stage-candidate:not(.mobile-cart-open) .layout>section:nth-child(2){display:flex;flex-direction:column}
 body.mobile-cart-open .cartPanel{display:block}
 .mobileCartFinish p{font-size:11px}
}
