:root{color-scheme:dark;font-family:system-ui,"Microsoft JhengHei",sans-serif;color:#e6ede8;background:#0b1b16}*{box-sizing:border-box}body{margin:0;background:linear-gradient(140deg,#19352a,#0b1b16 45%);min-height:100vh}main{max-width:1100px;margin:auto;padding:12px}header,nav,.order-head{display:flex;align-items:center;gap:10px}header{justify-content:space-between}h1{font-size:22px;margin:0}h2{font-size:16px;margin:0;color:#f2f1e7}button,input{font:inherit}button{min-height:44px;padding:8px 14px;border:1px solid #8b8061;border-radius:8px;background:linear-gradient(115deg,#494332,#655c40);color:#f6efd6;font-weight:700;cursor:pointer}button:disabled{opacity:.4;cursor:default}input{width:100%;padding:12px;border:1px solid #577365;border-radius:8px;background:#091b15;color:#fff}.online{color:#9addbf}.offline{color:#e8bd8f}header span{font-size:13px}.message{font-size:13px;color:#e6cda5;margin:6px 0;min-height:19px}nav{justify-content:space-between;margin-bottom:8px;font-size:14px}.queue{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:8px;align-items:start}article{border:1px solid #375347;border-radius:9px;background:linear-gradient(110deg,#153025,#0e241c);padding:9px 10px}.order-head h2{flex-shrink:0}.order-head span{font-size:12px;flex:1;text-align:right;color:#b8c6bd;white-space:nowrap}.order-head button{padding:6px 12px;font-size:14px;flex-shrink:0}.items{list-style:none;padding:0;margin:4px 0 0}.items li{display:flex;gap:9px;border-top:1px solid #2f493e;padding:7px 0}.items li>b{font-size:19px;min-width:22px;color:#d6c6a0}.items strong{font-size:15px}.items small{display:block;color:#c4c5a6;font-size:13px;margin-top:2px}.notes{font-size:13px;margin:0 0 4px;color:#ead5b2;overflow-wrap:anywhere}.empty{text-align:center;padding:32px;color:#aebfb3}.pair{max-width:400px;margin:32px auto;padding:20px;border:1px solid #375347;border-radius:12px;background:#132d23}.pair h2{margin-bottom:20px}.pair label{display:block;font-size:14px;margin-bottom:16px}.pair input{margin-top:6px}.pair button{width:100%}.pending{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;margin-bottom:10px;border:1px solid #8b8061;font-size:14px;background:#303528;border-radius:8px}.overlay{position:fixed;inset:0;background:#000a;display:grid;place-items:center;padding:16px}.dialog{width:min(100%,390px);padding:22px;border:1px solid #647765;border-radius:12px;background:linear-gradient(135deg,#233d2f,#0d261d);box-shadow:0 20px 50px #0009}.dialog h2{font-size:22px}.dialog p{color:#bdcbbf}.dialog>div{display:flex;justify-content:flex-end;gap:10px}.dialog button:first-child{background:#16392b;border-color:#5a8871;color:#e6eee8}@media(min-width:700px){main{padding:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.dialog{color:#e6ede8;margin:auto}.dialog::backdrop{background:#000a}
.bar-header-actions{display:flex;align-items:center;gap:8px}.bar-sound-bell{position:relative;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border-color:#546d60;background:linear-gradient(145deg,#294637bb,#10281ed9);color:#b6c5bb;box-shadow:inset 0 1px 0 #ffffff14}.bar-sound-bell.is-on{border-color:#968464;color:#e1d3b2;background:linear-gradient(140deg,#454733bb,#192c22)}.bar-sound-count,.bar-sound-dot{position:absolute;right:2px;top:2px;background:#d4c092;color:#14271f;border-radius:12px;font-size:10px!important;line-height:16px;min-width:16px;padding:0 3px}.bar-sound-dot{min-width:7px;width:7px;height:7px;padding:0;right:5px;top:5px}.bar-sound-dialog{width:min(390px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:18px;background:linear-gradient(145deg,#294436f5,#10281cf8 65%,#303628f8);border-color:#7a826a;box-shadow:inset 0 1px 0 #ffffff20,0 20px 55px #0009}.bar-sound-dialog header{margin-bottom:10px}.bar-sound-dialog h2{font-size:19px}.bar-sound-close{width:44px;height:44px;padding:0;font-size:24px;border-color:#536c5c;background:#183326}.bar-sound-dialog .bar-sound-status{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px;font-size:13px;color:#c1cfbf}.bar-sound-switch{display:flex;align-items:center;gap:8px;background:transparent;border:0;font-size:14px;padding:0 4px}.bar-sound-switch>span{position:relative;width:38px;height:22px;border:1px solid #718472;border-radius:20px;background:linear-gradient(140deg,#334b3dbb,#132b20);box-shadow:inset 0 1px 3px #0006}.bar-sound-switch>span:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:linear-gradient(140deg,#dce7db,#93aa99);box-shadow:0 1px 3px #0005}.bar-sound-switch.is-checked>span{background:linear-gradient(120deg,#827653,#aaa078);border-color:#c3b486}.bar-sound-switch.is-checked>span:after{left:19px;background:linear-gradient(140deg,#fff8e8,#cdbb92)}.bar-sound-choice{display:grid;gap:7px;font-size:14px;margin-bottom:16px}.bar-sound-choice select{width:100%}.bar-sound-volume{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:14px}.bar-sound-volume output{color:#ded0ad;font-variant-numeric:tabular-nums}.bar-sound-volume input{grid-column:1/-1;width:100%;height:44px;margin:0;padding:0;accent-color:#b7a780;cursor:pointer}.bar-sound-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.bar-sound-preview{background:#173a2a;border-color:#66826d;color:#e1ede2}.bar-sound-unlock{width:100%;margin-top:12px}.bar-sound-dialog .bar-sound-error{color:#f5bca9;font-size:13px;margin:12px 0 0;line-height:1.5}.bar-sound-dialog button:focus-visible,.bar-sound-bell:focus-visible{outline:2px solid #e8d5a9;outline-offset:3px}
.order-head h2{flex:1;min-width:0;overflow-wrap:anywhere}.order-head span{flex:0 0 auto}.items li>div{min-width:0;flex:1}.items strong,.items small{overflow-wrap:anywhere}
select{font:inherit;color:#eef1e9;border:1px solid #577365;border-radius:8px;padding:9px;background:#10271e;min-height:44px}select option{background:#10271e;color:#eef1e9}.texas-page{padding-bottom:92px}.texas-filters{display:grid;grid-template-columns:minmax(120px,.65fr) 1fr;gap:8px;align-items:end;margin:8px 0 12px}.texas-filters label{display:grid;gap:4px;font-size:12px}.texas-filters input{min-width:0;height:44px}.texas-menu{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px}.texas-menu>button{text-align:left;display:grid;gap:6px;padding:12px;border-color:#405c4c;background:linear-gradient(130deg,#243b2c,#10251c);min-height:78px}.texas-menu small,.texas-cart small,.texas-submit small{font-size:12px;color:#c7c5a9}.texas-cart{margin:16px 0;padding:12px;border:1px solid #405c4c;border-radius:10px;background:#11261d}.texas-cart>label{display:grid;gap:5px;font-size:13px;margin-top:12px}.cart-line{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #405c4c;padding:8px 0;font-size:14px}.cart-line>div{display:grid;gap:3px;min-width:0}.cart-line button{font-size:13px;padding:6px 10px;min-height:36px;background:#18382a}.texas-submit{position:fixed;bottom:0;left:0;right:0;display:flex;gap:20px;align-items:center;justify-content:space-between;margin:auto;padding:12px 16px;max-width:1100px;border-top:1px solid #6e7155;background:#14251e;box-shadow:0 -8px 18px #0004}.texas-submit>div{display:grid;gap:3px}.texas-submit strong{font-size:22px;color:#e1d0aa}.texas-options{max-height:calc(100vh - 24px);overflow:auto}.texas-options fieldset{border:0;padding:0;margin:14px 0;display:flex;gap:6px;flex-wrap:wrap}.texas-options legend{font-size:14px;margin-bottom:6px}.texas-options fieldset button{font-size:13px;background:#163527;border-color:#55725e}.texas-options fieldset button.selected{background:linear-gradient(120deg,#5c5139,#867253);border-color:#c6b17f}.texas-options fieldset label{display:flex;align-items:center;gap:5px;font-size:14px;width:calc(50% - 3px);min-height:40px}.texas-options fieldset input{width:18px;height:18px}.texas-quantity{display:flex!important;justify-content:center!important;gap:0!important;margin:16px 0}.texas-quantity input{width:75px;border-radius:0;text-align:center}.texas-quantity button{width:48px;border-radius:8px 0 0 8px}.texas-quantity button:last-child{border-radius:0 8px 8px 0}.texas-cart strong,.texas-menu strong{overflow-wrap:anywhere}@media(max-width:390px){.texas-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.texas-filters{grid-template-columns:110px minmax(0,1fr)}}
/* 手機作業布局：保留既有色系、狀態及44px音效入口。 */
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e7d4a5;outline-offset:2px}
.bar-page,.texas-page{padding:8px;min-width:0}
.bar-top,.texas-top{position:sticky;top:0;z-index:10;margin:-8px -8px 8px;padding:6px 8px;background:#10251d;border-bottom:1px solid #375347}
.bar-top header,.texas-top header{min-height:44px}.bar-top h1,.texas-top h1{font-size:20px}
.queue-tools{min-height:44px;margin:2px 0 0}.queue-tools strong{font-size:15px;color:#e5d6ae}
.bar-top .pending,.texas-top .pending{margin:6px 0 0;min-width:0;flex-wrap:wrap;padding:7px 8px}.pending strong{min-width:0;overflow-wrap:anywhere}.pending button{min-height:44px;flex-shrink:0}
.bar-page .queue{gap:8px}.bar-page .queue article{padding:9px 10px;min-width:0}.bar-page .order-head{align-items:flex-start;gap:8px}
.order-identity{min-width:0;flex:1}.bar-page .order-head h2{font-size:20px;line-height:1.25;overflow-wrap:anywhere}
.order-meta{display:flex;align-items:flex-start;gap:8px;margin-top:4px;min-width:0;font-size:12px;color:#b8c6bd}
.order-meta .order-number{min-width:0;flex:1;font-size:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.order-meta time{font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.35;flex-shrink:0}
.bar-page .order-head button{min-width:88px;min-height:44px;padding:8px;font-size:14px}
.bar-page .items li{gap:10px;padding:8px 0;align-items:flex-start}.bar-page .items li>b{min-width:28px;font-size:22px;line-height:1.15;color:#f2db9f;font-variant-numeric:tabular-nums}
.bar-page .items strong{font-size:17px;line-height:1.35}.bar-page .items small{font-size:15px;line-height:1.4;color:#ded1ad;margin-top:3px}
.bar-page .notes{font-size:14px;line-height:1.4;border-top:1px dashed #40584a;padding-top:5px;margin:0}
.bar-sound-bell{width:44px;min-width:44px;min-height:44px;height:44px}
.texas-page{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
.texas-filters{grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:8px;margin:4px 0 2px}.texas-filters label{min-width:0;display:grid;gap:3px;font-size:12px}
.texas-filters select,.texas-filters input{width:100%;min-width:0;height:44px;padding:8px;font-size:16px}
.texas-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.texas-menu>button{min-width:0;min-height:88px;padding:10px;align-content:space-between}.texas-menu strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.texas-menu small{font-size:14px;color:#ded1ad}
.texas-submit{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));gap:8px;z-index:12}.texas-submit>button:last-child{min-width:116px;min-height:48px}
.texas-cart-trigger{min-width:0;flex:1;display:grid;gap:2px;text-align:left;padding:6px 9px;background:#193b2c;border-color:#56745f;min-height:56px}.texas-cart-trigger>span{font-size:13px;line-height:1.35;overflow-wrap:anywhere}.texas-cart-trigger small{color:#cae3d4;margin-left:4px}.texas-cart-trigger strong{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.flow-dialog{width:min(520px,calc(100vw - 16px));max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding:0;overflow:hidden}.flow-dialog[open]{display:flex;flex-direction:column}
.flow-dialog>.dialog-body{display:block;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px}.flow-dialog h2{font-size:19px;line-height:1.4;overflow-wrap:anywhere}
.flow-dialog>.dialog-actions{display:flex;flex:0 0 auto;gap:8px;padding:10px;border-top:1px solid #50634f;background:#122d21}.flow-dialog>.dialog-actions>button{flex:1;min-width:0;min-height:44px;padding:8px}
.texas-cart-dialog .texas-cart{margin:8px 0;padding:0;border:0;background:transparent}.cart-line{padding:10px 0;gap:10px;align-items:flex-start}.cart-line strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.cart-line strong>span{white-space:nowrap;color:#efdbac}.cart-line small{font-size:14px;line-height:1.4;color:#d7cba7;overflow-wrap:anywhere}.cart-line button{min-height:44px;min-width:56px;flex-shrink:0;font-size:14px}.texas-cart>label input{font-size:16px;min-height:44px}
.texas-totals{margin:12px 0 0;border-top:1px solid #50634f;padding-top:8px}.texas-totals>div{display:flex;justify-content:space-between;gap:12px;margin:6px 0;font-size:15px}.texas-totals dd{margin:0;font-variant-numeric:tabular-nums;text-align:right;color:#edd8a5}.texas-totals>div:last-child{font-size:19px;font-weight:700}
.texas-options fieldset{margin:14px 0;gap:7px}.texas-options fieldset button{min-height:44px;min-width:58px;font-size:14px;padding:8px}.texas-options fieldset label{width:calc(50% - 4px);min-width:0;min-height:44px;gap:8px;align-items:center;padding:5px 0;font-size:15px}.texas-options fieldset label>span{min-width:0;overflow-wrap:anywhere;line-height:1.4}.texas-options fieldset small{font-size:13px;color:#ded1ad;white-space:nowrap}.texas-options fieldset input[type=checkbox]{width:22px;height:22px;min-width:22px;flex-shrink:0;accent-color:#c9b379}.texas-quantity{margin:12px 0 0;min-height:44px}.texas-quantity input{min-height:44px;font-size:16px}
.confirm-items{list-style:none;margin:10px 0;padding:0}.confirm-items li{display:grid;gap:4px;padding:8px 0;border-bottom:1px solid #405c4c;overflow-wrap:anywhere}.confirm-items strong{font-size:16px;line-height:1.4}.confirm-items small{font-size:14px;line-height:1.4;color:#d7cba7}
@media(min-width:600px){.texas-menu{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.bar-page .queue{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}
@media(max-height:480px){.flow-dialog>.dialog-body{padding:12px}.flow-dialog>.dialog-actions{padding:8px}.texas-options fieldset{margin:10px 0}.texas-top,.bar-top{padding-top:2px;padding-bottom:2px}}
.staff-table-picker{margin:4px 0 6px;min-width:0}.staff-table-picker label{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:center;font-size:14px}.staff-table-picker select{width:100%;min-width:0;min-height:44px;padding:8px;font-size:16px}.staff-table-summary{font-size:16px;font-weight:700;color:#e7d5a5;overflow-wrap:anywhere;margin:8px 0;line-height:1.4}
.pending.pending-review{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.pending-review dl{grid-column:1 / -1;display:grid;gap:5px;margin:0;font-size:12px}.pending-review dl>div{display:grid;grid-template-columns:70px 1fr;gap:8px}.pending-review dt{color:#b8c9c0}.pending-review dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
/* Device-shared favorites are separate actions from adding an order item. */
.texas-menu-card{display:flex;position:relative;min-width:0;border:1px solid #c6b57c38;border-radius:14px;background:linear-gradient(145deg,#254034b3,#10291ff0);box-shadow:inset 0 1px #dcebc512}
.texas-menu-card .texas-item-choice{display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0;min-height:90px;padding:16px;border:0;border-radius:14px;background:transparent;text-align:left;box-shadow:none}
.texas-item-choice strong{overflow-wrap:anywhere}.texas-item-choice small{color:#dbc48b;font-size:16px}
.texas-menu-card .texas-favorite-toggle{align-self:flex-start;flex-shrink:0;width:44px;height:44px;padding:0;border:0;background:transparent;box-shadow:none;font-size:26px;color:#c6b57c}
.texas-favorite-tabs{display:flex;align-items:center;gap:8px;padding:10px 0 4px;flex-wrap:wrap}.texas-favorite-tabs button{min-height:44px;padding:8px 14px;border:1px solid #c6b57c38;border-radius:11px;background:#142c22;color:#dfe9d5}.texas-favorite-tabs button[aria-pressed=true]{border-color:#c6b57c99;background:linear-gradient(135deg,#ac8e4d55,#705f3522);color:#f0dc9f}.texas-favorite-tabs span{font-size:12px;color:#c6d1b9}

.bar-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0 8px;padding:4px;border:1px solid #c6b57c33;border-radius:14px;background:#081d1699;box-shadow:inset 0 1px #ffffff0a}
.bar-view-tabs button{display:flex;justify-content:center;align-items:center;gap:9px;min-width:0;min-height:48px;border:1px solid transparent;border-radius:10px;background:transparent;color:#b9c9bd;font-size:16px;box-shadow:none}
.bar-view-tabs button[aria-pressed=true]{border-color:#c6b57c80;background:linear-gradient(125deg,#aa8c4b44,#74623d22);box-shadow:inset 0 1px #f7e9c026,0 2px 8px #0002;color:#f4dfaa}
.bar-view-tabs button>span{display:grid;place-items:center;min-width:25px;min-height:25px;padding:0 6px;border-radius:8px;background:#cfb77b22;color:#f5dfaa;font-variant-numeric:tabular-nums}
.bar-production{padding:14px 12px;border:1px solid #c6b57c40;border-radius:16px;background:linear-gradient(145deg,#2c4534b3,#10271ff0 60%);box-shadow:inset 0 1px #e7eac818,0 7px 24px #0002}
.production-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:16px}.production-heading h2{font-size:22px;color:#f2e7c9}.production-heading p{margin:5px 0 0;font-size:13px;color:#b7c8bc}.production-updated{padding-top:5px;color:#b7c8bc;font-size:12px;font-variant-numeric:tabular-nums}
.production-search{display:grid;gap:6px;font-size:13px;color:#c6d0c1;margin-bottom:16px}.production-search input{min-height:46px;min-width:0;font-size:16px;padding:10px 12px;background:#081c1599;border-color:#82957555}
.production-columns,.production-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}.production-columns{padding:0 4px 9px;color:#aebfb0;font-size:13px;border-bottom:1px solid #a8b78c40}.production-columns>span:last-child{text-align:right}.production-row{padding:15px 4px;border-bottom:1px solid #8195712b;min-height:68px}.production-row:last-child{border:0}.production-row>strong{font-size:19px;line-height:1.4;overflow-wrap:anywhere}.production-quantity{display:flex;align-items:baseline;justify-content:flex-end;gap:7px;min-width:66px}.production-quantity b{font-size:30px;line-height:1.2;color:#f0d795;font-variant-numeric:tabular-nums}.production-quantity>span{font-size:14px;color:#c9d2bf}.production-feedback{margin:10px 0 14px;padding:10px 12px;background:#9d794322;border:1px solid #c0a26e55;border-radius:9px;font-size:14px;color:#f0d2a3;line-height:1.5}
/* Fast bar workflow: touch targets and feedback remain usable on narrow phones. */
.bar-ticket-select{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer}.bar-ticket-select input{width:24px;height:24px;accent-color:#19766c;flex:none}.bar-ticket-select h2{margin:0}.bar-complete{min-height:52px;min-width:112px;padding:12px 18px!important;font-size:17px!important;font-weight:700!important;white-space:nowrap}.order-card.is-processing{border-color:#a98331}.order-card.is-processing .bar-complete{opacity:.75}.bar-new-alert{position:fixed;left:16px;right:16px;bottom:16px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border:2px solid #a65c00;border-radius:14px;background:#fff0c5;color:#552c00;font-weight:800;box-shadow:0 6px 28px #0003}.bar-new-alert button{min-height:44px;white-space:nowrap}.bar-venue-mode{display:flex;align-items:center;gap:10px;line-height:1.5}.bar-venue-mode input{width:22px;height:22px}.queue{padding-bottom:100px}.order-head{gap:12px}.order-identity{min-width:0}.order-meta{flex-wrap:wrap}.items li b{font-size:28px;min-width:40px}.items li strong{font-size:19px;line-height:1.5}@media(max-width:360px){.bar-complete{min-width:94px;padding:10px!important;font-size:16px!important}.bar-ticket-select{gap:8px}.bar-new-alert{left:8px;right:8px;padding:12px;font-size:15px}}
