:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:#263c35;background:#f7f7f2;font-synthesis:none;font-size:15px;--green:#175849;--muted:#77817a;--line:#e3e6dd;--orange:#bc7633;--rail:220px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #e6a84d;outline-offset:3px}button{border:0;background:none;color:inherit}input,select,textarea{width:100%;min-height:48px;border:1px solid #d8dfd5;border-radius:9px;padding:12px;background:white;color:#263c35;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #17584915}input[type=checkbox]{width:24px;min-height:24px}textarea{resize:vertical}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:700;letter-spacing:.03em}h2{font-size:19px}h3{font-size:16px}small,.muted{color:var(--muted)}small{font-size:12px}svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.rail{position:fixed;inset:0 auto 0 0;width:var(--rail);background:#fdfdf9;border-right:1px solid var(--line);padding:36px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;margin:0 7px 46px}.brand-mark{width:44px;height:44px;background:var(--green);color:#fff7e5;border-radius:12px;display:grid;place-items:center;font-family:serif;font-size:27px}.brand strong{font-family:serif;letter-spacing:.17em;font-size:27px}.brand small{display:block;letter-spacing:.07em;font-size:10px;margin-top:2px}.nav-caption{font-size:10px;letter-spacing:.16em;color:#9a9e94;margin:0 15px 15px}.nav-item{display:flex;align-items:center;gap:13px;min-height:52px;padding:12px 16px;width:100%;border-radius:9px;text-align:left;margin-bottom:7px;color:#6c776d;font-weight:600;font-size:14px}.nav-item.active{color:var(--green);background:#e8efe7}.nav-item.active svg{stroke-width:2.2}.nav-item .count{margin-left:auto;background:#bc7633;color:white;border-radius:6px;padding:2px 6px;font-size:11px}.rail-bottom{margin-top:auto;font-size:11px;color:var(--muted);line-height:2;padding:16px 10px}.rail-bottom .dot{margin-right:6px}.workspace{margin-left:var(--rail)}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fdfdf9}.topbar-title{font-size:13px;color:#7b8177;display:flex;align-items:center;gap:10px}.topbar-title strong{color:#475449;font-size:13px}.status{display:flex;align-items:center;gap:7px;font-size:12px;color:#4f7861}.dot{width:7px;height:7px;background:#5b8867;border-radius:50%;display:inline-block}.content{max-width:1440px;margin:auto;padding:36px 42px 45px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:.19em;color:#84907e;margin-bottom:10px;font-weight:700}.subtitle{color:var(--muted);font-size:13px;margin-top:9px;line-height:1.7}.btn{border:1px solid var(--line);background:#fff;min-height:48px;padding:11px 18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;white-space:nowrap}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.soft{background:#eaf0e8;color:var(--green);border-color:#dbe6d8}.btn.danger{color:#ad4f43}.btn.full{width:100%}.btn.small{padding:8px 12px;font-size:13px;min-height:44px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:31px}.stat{border:1px solid var(--line);border-radius:12px;padding:20px 23px;background:#fff;display:flex;align-items:center;justify-content:space-between}.stat-label{font-size:12px;color:#7a8478;margin-bottom:8px}.stat strong{font-size:29px;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.stat strong span{font-size:13px;font-weight:500;margin-left:7px;color:#879084}.stat-icon{background:#f2f4ec;padding:12px;border-radius:50%;color:#7b8b70;height:46px;width:46px}.stat-icon svg{width:22px;height:22px}.floor-layout{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:27px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}.section-head h2{font-size:15px}.section-head small{font-size:11px}.legend{display:flex;gap:16px;font-size:11px;color:#849080}.legend .dot{margin-right:5px}.dot.empty{background:#d3d9cd}.section-name{display:flex;align-items:center;gap:8px;font-size:12px;color:#76816e;letter-spacing:.04em;margin:20px 0 12px}.section-name span{font-size:10px;color:#99a191}.seat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.seat{border:1px solid #dfe4d7;border-radius:12px;min-height:161px;padding:18px;background:#fcfdf9;text-align:left;transition:transform .12s,border-color .12s;position:relative;display:flex;flex-direction:column;align-items:stretch}.seat:hover{border-color:#83a28a;transform:translateY(-2px)}.seat.occupied{background:white;border-color:#a3bda7}.seat-top{display:flex;align-items:center;justify-content:space-between}.seat-name{font-size:24px;font-weight:700;letter-spacing:.04em}.seat-number{font-size:13px;font-weight:500;color:#71846f;margin-left:6px}.seat-symbol{color:#b4bfae}.seat-symbol svg{width:26px;height:26px}.seat-state{font-size:12px;color:#94a08e;display:flex;gap:7px;align-items:center;margin-top:18px}.seat-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;font-size:10px;color:#9ba591}.seat-bottom b{font-size:14px;color:#496345}.seat .pending-label{color:#9e612b;font-size:12px;background:#fbf1df;padding:5px 8px;border-radius:5px}.seat .ready-label{color:var(--green);font-size:12px}.counter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.counter-grid .seat{min-height:132px;padding:14px}.counter-grid .seat-name{font-size:21px}.counter-grid .seat-state{margin-top:13px}.side-panel{background:#f0f2e9;border:1px solid #e6e9dc;border-radius:13px;padding:21px;align-self:start}.side-panel .section-head{margin-bottom:19px}.side-panel h2{font-size:14px}.side-empty{padding:27px 0;text-align:center}.empty-illustration{height:64px;width:64px;border:1px solid #dce2d2;border-radius:50%;background:#f8faf1;margin:0 auto 18px;display:grid;place-items:center;color:#8b9e7d}.empty-illustration svg{width:28px;height:28px}.side-empty strong{display:block;font-size:13px;color:#5d7155;margin-bottom:9px}.side-empty p{font-size:11px;color:#8c987e;line-height:1.9}.side-note{border-top:1px solid #dde2d3;padding-top:18px;margin-top:15px;font-size:11px;color:#8a947c;line-height:1.9;display:flex;gap:8px}.side-note svg{width:16px;height:16px;margin-top:3px}.queue-mini{padding:14px 0;border-bottom:1px solid #dde2d3;display:grid;gap:8px}.queue-mini .row{font-size:12px}.queue-mini strong{font-size:13px}.floor-footer{display:flex;justify-content:space-between;margin-top:26px;color:#97a08c;font-size:11px;gap:15px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:14px}.tabs{display:flex;gap:5px;background:#ecefe6;padding:5px;border-radius:10px;width:fit-content;margin-bottom:24px}.tabs button{min-height:44px;padding:10px 20px;border-radius:7px;font-size:14px;color:#73806b}.tabs button.active{background:#fff;color:var(--green);box-shadow:0 2px 5px #1c352809;font-weight:700}.tabs .tab-count{margin-left:7px;font-size:11px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:23px;margin-bottom:20px}.empty-state{text-align:center;padding:65px 25px;background:#fff;border:1px solid var(--line);border-radius:13px}.empty-state h2{font-size:18px;margin:15px 0 9px}.empty-state p{font-size:13px;color:var(--muted);line-height:1.8}.queue-list{display:grid;gap:12px}.queue-card{display:grid;grid-template-columns:100px minmax(0,1fr) 95px 125px;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-left:4px solid #b8c9b1;padding:20px;border-radius:11px}.queue-card h3{margin:0 0 7px}.queue-card .seat-ref{font-size:19px;font-weight:700}.time-badge{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}.level-1{border-left-color:#d6a14d}.level-1 .time-badge{color:#a3741d}.level-2{border-left-color:#d17a3f;background:#fffaf2}.level-2 .time-badge{color:#b25c23}.level-3{border-left-color:#ba5247;background:#fff7f5}.level-3 .time-badge{color:#ad4338}.time-badge small{display:block;font-size:10px;font-weight:500}.type-pill{font-size:10px;background:#eef2e8;padding:4px 7px;border-radius:4px;color:#748164}.ticket-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}.ticket-actions{display:flex;gap:10px;align-items:center}.draft-head{margin-bottom:17px}.draft-head span{font-size:11px;color:#997336;background:#fff1d8;padding:5px 8px;border-radius:5px}.order-row{padding:16px 0;border-bottom:1px solid #edf0e6;display:grid;grid-template-columns:minmax(0,1fr) 130px 90px;gap:10px;align-items:center}.order-row strong{font-size:14px}.order-row small{display:block;margin-top:6px}.quantity{display:flex;align-items:center;justify-content:center;gap:12px;font-variant-numeric:tabular-nums;font-weight:600}.quantity button{height:44px;width:44px;background:#f0f3e9;border-radius:8px;font-size:22px}.amount{text-align:right;font-weight:650;font-variant-numeric:tabular-nums}.draft-foot{padding-top:19px;display:grid;gap:16px}.draft-total{font-size:22px}.empty-draft{padding:32px 10px;text-align:center;font-size:13px;color:#8c9784;line-height:1.9}.order-history{padding:15px 0;border-bottom:1px solid #edf0e6}.order-history .row{align-items:start}.order-history small{font-size:11px;line-height:1.7}.inline-actions{display:flex;align-items:center;gap:8px;margin-top:11px}.text-btn{font-size:12px;color:#849077;min-height:44px;text-decoration:underline;text-underline-offset:4px;padding:8px}.menu-panel{position:sticky;top:20px}.search{position:relative;margin:17px 0 13px}.search svg{position:absolute;top:14px;left:13px;width:20px;height:20px;color:#8e9986}.search input{padding-left:42px;background:#fafbf6}.menu-tabs{margin-bottom:12px;width:100%}.menu-tabs button{flex:1;padding:6px;min-height:40px;font-size:12px}.products{display:grid;max-height:520px;overflow:auto}.product{min-height:71px;padding:12px 3px;border-bottom:1px solid #ecf0e4;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}.product-name{font-size:14px;font-weight:600}.product small{display:block;margin-top:5px}.product-add{width:34px;height:34px;display:grid;place-items:center;border:1px solid #dce5d4;border-radius:8px;color:var(--green);background:#f3f6ed;font-size:20px}.product:hover .product-add{background:var(--green);color:#fff}.product-right{display:flex;align-items:center;gap:10px;font-size:13px}.search-hint{font-size:10px;color:#97a18e;margin-bottom:12px}.ticket-total{font-size:29px;font-weight:700}.mobile-add{display:none}.back{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#7c8b71;min-height:44px;padding:0;margin-bottom:10px}.back svg{width:16px}.history-item{width:100%;text-align:left;border-bottom:1px solid var(--line);padding:21px 0;display:flex;align-items:center;justify-content:space-between}.history-item strong{font-size:18px}.history-item small{display:block;margin-top:8px}.history-item .money{font-size:20px;font-weight:700}.history-item:last-child{border:0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel{margin:0}.field{display:grid;gap:8px;font-size:12px;color:#6c7c61;margin:17px 0}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.settings-list{display:grid}.settings-item{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:9px 0}.settings-item .label{flex:1}.settings-item strong{font-size:14px}.settings-item small{display:block;margin-top:4px}.icon-btn{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fafbf7}.help{font-size:12px;line-height:1.9;color:#839077;margin-top:12px}.notice{background:#fff3da;color:#8c672b;border:1px solid #ead9b7;border-radius:9px;padding:13px 16px;font-size:12px;line-height:1.9;margin-bottom:19px}.notice.error{background:#fff0eb;color:#a04435}.modal-backdrop{position:fixed;inset:0;background:#193c3280;backdrop-filter:blur(3px);z-index:50;display:flex;align-items:center;justify-content:center;padding:25px}.modal{background:#fdfdf9;width:100%;max-width:530px;border-radius:18px;box-shadow:0 20px 80px #193c3240;max-height:90dvh;overflow:auto;padding:27px}.modal.wide{max-width:740px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.modal-head h2{font-size:21px}.modal .products{max-height:48dvh}.payment-total{text-align:center;padding:21px;background:#f0f4e9;border-radius:11px;margin:20px 0}.payment-total small{display:block;margin-bottom:10px}.payment-total strong{font-size:40px}.receipt-row{display:flex;justify-content:space-between;padding:10px 0;font-size:13px;gap:14px}.payment-change{font-size:26px;font-weight:700;color:var(--green);text-align:right}.modal-footer{display:grid;gap:10px;margin-top:22px}.checkline{display:flex;align-items:center;gap:10px;font-size:12px;margin:15px 0}.payment-shortcuts{display:flex;gap:8px;margin-top:10px}.payment-shortcuts button{flex:1;font-size:12px}.modal-seats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.modal-seats .btn{min-height:65px}.mobile-nav{display:none}#toast:not(:empty){position:fixed;bottom:25px;left:calc(50% + 90px);transform:translateX(-50%);z-index:70;background:#203e33;color:#fff;padding:10px 16px 10px 20px;border-radius:11px;box-shadow:0 6px 30px #16312630;display:flex;align-items:center;gap:18px;max-width:90vw;font-size:13px}#toast button{color:#e7cb81;min-height:40px;white-space:nowrap;font-weight:700}.boot{height:100dvh;display:grid;place-content:center;text-align:center;font-size:44px;color:var(--green);font-family:serif;gap:20px}.boot span{font-family:sans-serif;font-size:14px}.saving-error{position:sticky;top:0;z-index:25;border-radius:0;margin:0}.cancelled{text-decoration:line-through;opacity:.5}.save-note{font-size:11px;color:#78916e;display:flex;align-items:center;gap:6px;margin-top:14px}.save-note svg{width:14px;height:14px}.history-date{width:auto;max-width:180px}.badge{font-size:11px;padding:5px 9px;border-radius:5px;background:#edf2e7;color:#658455}
@media(min-width:1500px){.content{padding-top:45px}.seat{min-height:190px}.counter-grid .seat{min-height:150px}}
@media(max-width:1150px){:root{--rail:185px}.rail{padding:30px 15px}.content{padding:28px}.topbar{padding:0 28px}.floor-layout{grid-template-columns:1fr}.side-panel{display:none}.ticket-layout{grid-template-columns:minmax(0,1fr) 290px}.settings-grid{grid-template-columns:1fr}.nav-item{padding:12px}.queue-card{grid-template-columns:75px minmax(0,1fr) 80px 110px;gap:12px}}
@media(max-width:800px){:root{font-size:14px}.rail{display:none}.workspace{margin-left:0}.topbar{height:61px;padding:0 20px}.topbar-title .desktop-label{display:none}.topbar-title:before{content:'一卓';font-family:serif;font-size:23px;color:var(--green);letter-spacing:.14em}.topbar .status{font-size:10px}.content{padding:25px 20px calc(100px + env(safe-area-inset-bottom))}.page-head{gap:10px;margin-bottom:22px}h1{font-size:25px}.eyebrow{font-size:9px;margin-bottom:7px}.subtitle{font-size:11px;margin-top:7px}.page-head>.btn{font-size:12px;padding:10px 12px;min-height:46px}.stats{gap:9px;margin-bottom:25px}.stat{padding:14px 12px;border-radius:9px}.stat strong{font-size:25px}.stat strong span{font-size:10px;margin-left:4px}.stat-label{font-size:10px;margin-bottom:7px}.stat-icon{display:none}.seat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.seat{min-height:155px;padding:16px}.counter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.counter-grid .seat{min-height:128px;padding:16px}.counter-grid .seat-name{font-size:24px}.floor-footer{font-size:10px;line-height:1.7;flex-wrap:wrap}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fdfdf9f7;border-top:1px solid #e0e5d8;padding:8px 7px calc(8px + env(safe-area-inset-bottom));z-index:30;backdrop-filter:blur(12px)}.mobile-nav button{flex:1;display:flex;align-items:center;flex-direction:column;gap:5px;min-height:48px;font-size:10px;color:#8c9782;position:relative}.mobile-nav button.active{color:var(--green);font-weight:700}.mobile-nav button.active:before{content:'';width:27px;height:3px;border-radius:4px;background:var(--green);position:absolute;top:-8px}.mobile-nav .count{position:absolute;top:-3px;margin-left:28px;font-size:9px;background:#b97737;color:white;border-radius:7px;padding:1px 5px}.ticket-layout{display:block}.menu-panel{display:none}.mobile-add{display:flex}.panel{padding:18px}.ticket-actions .btn{padding:10px 12px;font-size:12px}.order-row{grid-template-columns:minmax(0,1fr) 121px 66px;font-size:13px;gap:5px}.order-row strong{font-size:13px}.quantity{gap:9px}.quantity button{width:44px;height:44px}.queue-card{grid-template-columns:60px minmax(0,1fr) 70px;gap:10px;padding:16px 13px}.queue-card .serve-btn{grid-column:2/4;justify-self:stretch}.queue-card .seat-ref{font-size:17px}.queue-card h3{font-size:14px}.queue-card .time-badge{font-size:13px}.queue-card small{font-size:10px}.tabs{width:100%;margin-bottom:20px}.tabs button{flex:1;padding:10px 6px;font-size:13px}.modal-backdrop{padding:0;align-items:flex-end}.modal{border-radius:18px 18px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));max-height:94dvh}.modal-head h2{font-size:20px}.field-row{gap:10px}.settings-item{flex-wrap:wrap}.settings-item .label{min-width:110px}.btn.small{padding:8px 10px}#toast:not(:empty){bottom:calc(88px + env(safe-area-inset-bottom));left:50%;min-width:280px;max-width:calc(100vw - 28px);gap:12px;font-size:12px}.ticket-total{font-size:24px}.empty-state{padding:45px 20px}.history-item .money{font-size:18px}.history-date{max-width:142px}.topbar-title strong{font-size:11px}.settings-grid{display:block}.settings-grid .panel{margin-bottom:16px}.section-head small{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(max-width:800px){input,select,textarea{font-size:16px}}
/* Phone-focused operations, revision 3 */
.mobile-store{display:none}.brand strong{font-family:inherit;font-size:21px;letter-spacing:0;overflow-wrap:anywhere}.brand{margin-left:0;margin-right:0}.brand>div:last-child{min-width:0}.checkout-large{min-height:88px;min-width:130px;font-size:21px!important}.checkout-large svg{width:27px;height:27px}.checkout-line{padding:13px 0;border-bottom:1px solid var(--line);display:grid;gap:9px}.checkout-line strong{font-size:17px}.checkout-line-actions{display:flex;gap:8px}.checkout-pending{margin-top:8px}.checkout-pending .time-badge{font-size:12px}.modal:has(.checkout-pending) .modal-footer{position:sticky;bottom:-1px;background:#fdfdf9;padding:12px 0 2px}.product small{min-height:17px;white-space:nowrap}.products{overflow-anchor:none;overscroll-behavior:contain}.modal:has([data-product-search]){height: min(760px,92dvh);display:flex;flex-direction:column;overflow:hidden}.modal:has([data-product-search])>.products{flex:1;min-height:0;max-height:none}.modal:has([data-product-search])>h2{display:none}.modal:has([data-product-search])>.btn{flex-shrink:0;margin-top:12px}.modal:has([data-product-search]) .modal-head{margin-bottom:0}.modal:has([data-product-search]) .search,.modal:has([data-product-search]) .tabs{flex-shrink:0}
.floor-board{position:relative;width:100%;height:clamp(340px,calc(100dvh - 220px),670px);border:1px solid #dce4d5;border-radius:12px;background:#eef2e9;overflow:hidden}.map-seat,.layout-seat{position:absolute;margin:0;min-height:0!important;min-width:0;border:1px solid #cedac8;border-radius:10px;padding:10px!important;display:flex;flex-direction:column;justify-content:center;gap:5px;align-items:center;overflow:hidden;box-shadow:0 2px 4px #1d402008}.map-seat:hover{transform:none}.map-seat.occupied{background:#e4efe2;border:2px solid #678f69}.map-seat .seat-name{font-size:23px;overflow-wrap:anywhere;line-height:1.1}.map-state{font-size:12px;color:#537348}.map-seat.occupied .map-state{color:#285b32}.layout-seat{background:white;touch-action:none;user-select:none;cursor:grab;color:var(--green)}.layout-seat.selected{outline:3px solid #cb9446;outline-offset:-3px}.layout-seat strong{font-size:21px}.layout-seat>span:not(.resize-grip){font-size:11px;color:#7f9177}.resize-grip{position:absolute;right:0;bottom:0;width:44px;height:44px;display:grid;place-items:center;background:#ddebd6;border-radius:10px 0 0 0;font-size:27px;cursor:nwse-resize;touch-action:none}.editing{background-image:linear-gradient(#ccd9c333 1px,transparent 1px),linear-gradient(90deg,#ccd9c333 1px,transparent 1px);background-size:5% 5%;height:400px}.layout-controls{margin-top:16px}.layout-controls .field{margin:8px 0}.queue-card{padding:11px 15px;gap:12px;min-height:82px}.queue-card h3{font-size:18px;line-height:1.3;margin-bottom:4px}.queue-list{gap:8px}.queue-card .seat-ref{min-height:44px}.queue-card .serve-btn{font-size:12px;padding:8px 10px;min-height:44px}.queue-card .time-badge{font-size:12px}.queue-card .time-badge svg{width:15px;height:15px}
@media(max-width:800px){.topbar-title:before{content:none}.mobile-store{display:block;font-size:18px;font-weight:700;color:var(--green);max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-title>strong{display:none}.topbar{height:50px;padding:0 16px}.content{padding:16px 14px calc(84px + env(safe-area-inset-bottom))}.page-head{margin-bottom:14px}body[data-page="seats"] .eyebrow:empty{display:none}body[data-page="seats"] .content{padding-bottom:calc(78px + env(safe-area-inset-bottom))}body[data-page="seats"] .section-head{margin-bottom:9px}body[data-page="seats"] .subtitle{font-size:11px;margin-top:5px}.floor-board{height:calc(100dvh - 230px - env(safe-area-inset-bottom));min-height:260px;max-height:720px}.map-seat .seat-name{font-size:21px}.map-state{font-size:11px}.map-seat .seat-number{font-size:12px}.editing{height:360px;min-height:360px}.page-head>.checkout-large{min-height:88px;min-width:124px;padding:15px}.queue-card{grid-template-columns:52px minmax(0,1fr) 83px;grid-template-rows:auto auto;column-gap:9px;row-gap:0;padding:9px 10px;min-height:82px}.queue-card .seat-ref{grid-column:1;grid-row:1/3;padding:0;font-size:16px;line-height:1.5}.queue-card .seat-number{display:block;margin:0;font-size:11px}.queue-card>div{grid-column:2;grid-row:1/3;min-width:0}.queue-card h3{font-size:17px;line-height:1.25;overflow-wrap:anywhere;margin-bottom:5px}.queue-card small{font-size:10px}.queue-card>.time-badge{grid-column:3;grid-row:1;justify-content:center;align-self:end;font-size:11px;margin-bottom:2px}.queue-card .serve-btn{grid-column:3;grid-row:2;min-height:40px;font-size:11px;padding:6px 3px;align-self:start;white-space:normal}.queue-card .type-pill{display:none}.ticket-layout>.panel,.ticket-layout>section>.panel{padding:14px}.back{min-height:36px;margin-bottom:5px}.ticket-layout .panel{margin-bottom:12px}.empty-draft{padding:12px 4px}.draft-foot{padding-top:12px;gap:10px}.draft-head{margin-bottom:7px}.order-row{padding:10px 0}.modal:has([data-product-search]){height:90dvh;max-height:90dvh}.modal:has([data-product-search])>.products{max-height:none}.checkout-line-actions .btn{min-height:44px;padding:8px 11px}.checkout-line .row:first-child{align-items:start}.checkout-line .row:first-child>span{white-space:nowrap}.payment-total{padding:17px;margin:12px 0 18px}.modal-footer{gap:8px}}


@media(max-width:800px){body[data-page="seats"] .floor-board{height:calc(100dvh - 260px - env(safe-area-inset-bottom));min-height:220px}}

/* Compact notices stay above the work area; only Undo intercepts taps. */
#toast:not(:empty),body[data-modal="checkout"] #toast:not(:empty){top:calc(env(safe-area-inset-top) + 7px);bottom:auto;left:calc(50% + var(--rail)/2);min-width:0;width:max-content;max-width:calc(100vw - var(--rail) - 32px);padding:4px 10px;border-radius:8px;gap:8px;font-size:11px;line-height:1.35;box-shadow:0 2px 10px #16312620;pointer-events:none}
#toast>span{min-width:0;overflow-wrap:anywhere}
#toast button{min-height:30px;padding:2px 5px;font-size:11px;pointer-events:auto;flex-shrink:0;position:relative}
#toast button:after{content:'';position:absolute;inset:-7px 0}
@media(max-width:800px){#toast:not(:empty),body[data-modal="checkout"] #toast:not(:empty){left:50%;max-width:calc(100vw - 20px)}}

.ticket-checkout{margin-top:16px}.ticket-checkout .help{margin:0 0 12px}.draft-lines,.ticket-layout>section>.panel{max-height:none;overflow:visible}

/* Admission and unconfirmed tables */
.map-seat.occupied.unconfirmed{background:#fff0ee;border:2px solid #bf443b}.map-seat.unconfirmed .map-state,.map-seat.unconfirmed .seat-name{color:#a52e28}.dot.unconfirmed-dot,.nav-item .unconfirmed-count,.mobile-nav .unconfirmed-count{background:#bf443b}.guest-stepper{display:flex;align-items:center;gap:16px}.guest-stepper input{width:100%;min-width:0;text-align:center;font-size:32px;font-weight:700}.guest-stepper button{min-width:56px;min-height:56px;font-size:26px}.guest-label{font-size:16px}.admission-summary{margin-top:20px;font-size:17px;font-weight:600;text-align:center}.product-quantity{min-width:42px;text-align:center;font-size:26px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--green)}.product-quantity.has-quantity{background:#e3efde;border-radius:7px;padding:4px}.product-right{gap:7px;flex-shrink:0}.product-price{font-size:12px}.quantity>span{font-size:23px;min-width:24px;text-align:center}.product-name{font-size:16px}
@media(max-width:800px){body[data-modal="menu"] .modal-backdrop{top:var(--menu-visible-top,0px);bottom:auto;height:var(--menu-visible-height,100dvh);align-items:flex-start;padding:0}body[data-modal="menu"] .modal{height:100%;max-height:100%;border-radius:0;padding:6px 14px max(8px,env(safe-area-inset-bottom))}body[data-modal="menu"] .modal-head{min-height:40px}body[data-modal="menu"] .modal-head h2{font-size:18px}body[data-modal="menu"] .search{margin:5px 0 7px}body[data-modal="menu"] .menu-tabs{margin-bottom:4px}body[data-modal="menu"] .search-hint{display:none}body[data-modal="menu"] .modal>.btn{margin-top:7px;min-height:44px}.product{min-height:70px}.legend{gap:8px;font-size:10px}.map-state{font-size:10px}}

/* Pending quantity and right-swipe cancellation */
.swipe-row{position:relative;overflow:hidden;border-radius:11px;background:#ad4038}.swipe-label{position:absolute;inset:0;display:flex;align-items:center;padding-left:13px;color:#fff;font-size:13px;font-weight:700}.swipe-row .queue-card{position:relative;touch-action:pan-y;user-select:none;transition:transform .15s ease;will-change:transform}.swipe-row.swiping .queue-card{transition:none}.swipe-row.swipe-ready{background:#8e2821}.swipe-ready .swipe-label:after{content:' · 離して取消'}.pending-quantity{display:flex;align-items:center;gap:0}.pending-quantity button{min-width:44px;height:44px;padding:0;font-size:22px;color:var(--green);background:#f0f4eb;border-radius:7px}.pending-quantity .quantity-value{font-size:18px;font-weight:700;background:transparent}.pending-quantity button:disabled{opacity:.3}.swipe-row h3{margin-bottom:3px}.bulk-row{padding:8px 0 14px;border-bottom:1px solid var(--line);margin-bottom:8px}.bulk-row .field{margin:8px 0}.bulk-row .field-row{gap:10px}.bulk-row .row>.text-btn{min-height:32px}.bulk-reading[hidden]{display:none}.bulk-error{font-size:13px;color:#ad4038;line-height:1.6;margin-top:12px}body[data-modal="bulk-products"] .modal-footer{position:sticky;bottom:-22px;background:#fdfdf9;padding:10px 0;z-index:1}@media(max-width:800px){.swipe-row .queue-card{padding:7px 8px;column-gap:6px;grid-template-columns:46px minmax(0,1fr) 77px}.swipe-row .queue-card .serve-btn{font-size:11px}.swipe-row .queue-card h3{font-size:17px}.swipe-row .pending-quantity button{min-width:42px;height:42px}}
