:root{color-scheme:light;--terminal-ink:#193c3d;--terminal-muted:#5b7271;--terminal-bg:#f7f8f2;--terminal-paper:#fff;--terminal-line:#dce5dd;--terminal-green:#174f52;--terminal-soft:#e9f1e4;--terminal-accent:#cbe29d;--terminal-warning:#8a500c;--terminal-danger:#9d3030;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:var(--terminal-ink);background:var(--terminal-bg)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:280px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #72a65f;outline-offset:3px}button{min-height:44px;border-radius:12px;border:1px solid transparent;font-weight:650}input,select,textarea{border:1px solid #b7cac3;background:#fff;border-radius:12px;min-height:48px;color:var(--terminal-ink);padding:12px;width:100%;font-size:16px}textarea{resize:vertical;min-height:90px}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,4vw,36px);letter-spacing:-.04em;line-height:1.15}h2{font-size:21px;letter-spacing:-.025em}label{display:block;font-size:14px;font-weight:650;margin:18px 0 7px}button{touch-action:manipulation}.terminal-primary{background:var(--terminal-green);color:#fff;padding:12px 19px;min-height:50px}.terminal-primary:active:not(:disabled){background:#103b3d}.terminal-secondary{background:#fff;color:var(--terminal-ink);border-color:var(--terminal-line);padding:10px 14px}.terminal-icon-button{background:transparent;color:var(--terminal-ink);border-color:var(--terminal-line);padding:9px 12px;font-size:13px}.terminal-text-button{background:transparent;color:var(--terminal-green);padding:7px 3px;text-align:left}.terminal-muted,.terminal-lead,.terminal-pair-help{color:var(--terminal-muted);font-size:14px;line-height:1.55}.terminal-eyebrow{font-size:11px;font-weight:750;letter-spacing:.13em;color:var(--terminal-muted);margin-bottom:9px}.terminal-sr-only,.terminal-skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.terminal-skip:focus{display:block;padding:12px;background:#fff}
.terminal-page{max-width:1440px;margin:auto}.terminal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 28px;border-bottom:1px solid var(--terminal-line)}.terminal-brand{display:flex;gap:10px;align-items:center;color:inherit;text-decoration:none;font-weight:800;letter-spacing:.1em;font-size:16px}.terminal-brand small{display:block;font-size:9px;letter-spacing:.15em;color:var(--terminal-muted);margin-top:3px}.terminal-header-tools{display:flex;align-items:center;gap:9px}.terminal-header #terminal-language select{font-size:13px;min-height:44px;max-width:140px;padding:8px}.terminal-status{margin:14px 28px 0;padding:11px 14px;border-radius:10px;background:var(--terminal-soft);font-size:13px;line-height:1.5;min-height:0}.terminal-status:empty{display:none}.terminal-status.is-warning{background:#fff1d9;color:#754405}.terminal-status.is-error{background:#fceaea;color:#8e2e2e}.terminal-status.is-success{background:#e3f2e0;color:#2b5932}.terminal-pair{max-width:500px;margin:44px auto 24px;padding:30px;background:white;border:1px solid var(--terminal-line);border-radius:22px}.terminal-pair-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--terminal-soft);color:var(--terminal-green);font-size:34px;margin-bottom:24px}.terminal-pair .terminal-lead{margin-top:14px}.terminal-pair .terminal-primary{margin:24px 0 16px;width:100%}.terminal-pair-help{font-size:12px}.terminal-pair #terminal-code{text-transform:uppercase;font-size:23px;font-weight:750;letter-spacing:.14em}.terminal-pair #terminal-code::placeholder{font-size:16px;letter-spacing:0;text-transform:none;font-weight:400}
.terminal-tables{padding:30px 28px 48px}.terminal-section-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.terminal-chips{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding:12px 0;align-items:center}.terminal-chip{flex:0 0 auto;padding:9px 16px;color:var(--terminal-ink);background:#fff;border-color:var(--terminal-line);font-size:14px;border-radius:24px;white-space:nowrap}.terminal-chip[aria-pressed=true]{background:var(--terminal-green);color:white;border-color:var(--terminal-green)}.terminal-table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px;margin-top:12px}.terminal-table{background:white;border-color:var(--terminal-line);min-height:149px;padding:18px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:15px;box-shadow:0 3px 8px #193c3d04}.terminal-table strong{font-size:28px;font-weight:750;letter-spacing:-.04em;overflow-wrap:anywhere;max-width:100%}.terminal-table small{font-size:12px;font-weight:550;color:var(--terminal-muted)}.terminal-table .terminal-table-status{font-size:12px;color:var(--terminal-green);padding:5px 8px;background:#eef4e9;border-radius:6px;align-self:flex-start}.terminal-table.is-occupied{border-color:#92b3ac}.terminal-table.is-ready{border-color:#729c3f;background:#f1f7e8}.terminal-table.is-ready .terminal-table-status{color:#31591a;background:#d4e9b3}.terminal-table .terminal-draft-badge{background:#fff0d4;color:#805717}.terminal-empty{padding:28px 10px;line-height:1.6;color:var(--terminal-muted)}
.terminal-order{padding:18px 28px 30px}.terminal-order-header{display:flex;align-items:center;gap:15px;margin:0 0 18px}.terminal-order-heading{flex:1;min-width:0}.terminal-order-heading h1{font-size:25px;overflow-wrap:anywhere}.terminal-order-heading .terminal-text-button{min-height:35px;font-size:14px;font-weight:500}.terminal-workspace{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:24px;align-items:start}.terminal-catalog{min-width:0}.terminal-search{display:flex;gap:8px}.terminal-search input{flex:1;min-width:0}.terminal-search button{white-space:nowrap}.terminal-course-bar{background:var(--terminal-soft);display:flex;justify-content:space-between;align-items:center;gap:14px;border-radius:12px;padding:8px 12px}.terminal-course-bar small{font-size:11px;color:var(--terminal-muted);display:block}.terminal-course-bar .terminal-text-button{font-size:17px;padding:0;min-height:29px;font-weight:750}.terminal-course-bar .terminal-secondary{background:var(--terminal-accent);border-color:#bad484;min-width:100px}.terminal-added{font-size:12px;line-height:1.3;height:32px;display:flex;align-items:center;color:var(--terminal-green);overflow:hidden}.terminal-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:10px}.terminal-product{position:relative;border:1px solid var(--terminal-line);border-radius:13px;overflow:hidden;background:#fff}.terminal-product-add{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:16px 15px 12px;width:100%;min-height:118px;text-align:left;background:#fff;color:var(--terminal-ink);border-radius:0}.terminal-product-add strong{font-size:16px;line-height:1.35;font-weight:700;overflow-wrap:anywhere}.terminal-product-add small{font-size:11px;color:var(--terminal-muted);font-weight:500}.terminal-product-add .terminal-price{font-size:17px;margin-top:auto}.terminal-product-add:active:not(:disabled){background:var(--terminal-soft)}.terminal-product-extra{background:#f6f8f3;border-top:1px solid var(--terminal-line);width:100%;border-radius:0;min-height:39px;text-align:left;padding:8px 15px;font-size:12px;color:var(--terminal-muted);font-weight:600}.terminal-product.is-unavailable{opacity:.65}.terminal-quantity{position:absolute;top:8px;right:9px;border-radius:8px;background:var(--terminal-green);color:#fff;min-width:23px;height:23px;font-size:12px;display:grid;place-items:center;pointer-events:none}.terminal-product.has-quantity .terminal-product-add{padding-right:36px}.terminal-more{display:block;margin:18px auto}.terminal-basket{background:white;border:1px solid var(--terminal-line);border-radius:16px;overflow:hidden;position:sticky;top:16px;max-height:calc(100dvh - 32px);display:flex;flex-direction:column}.terminal-basket-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:19px 18px 15px;border-bottom:1px solid var(--terminal-line)}.terminal-basket-heading h2{font-size:19px}.terminal-basket-heading>span{background:var(--terminal-soft);color:var(--terminal-green);padding:5px 8px;font-size:12px;border-radius:8px;font-weight:750}.terminal-basket-heading>button{display:none}.terminal-lines{overflow:auto;min-height:110px;flex:1;padding:0 18px;overscroll-behavior:contain}.terminal-course-group{padding:18px 0 9px}.terminal-course-group h3{font-size:12px;letter-spacing:.05em;color:var(--terminal-muted);margin-bottom:7px}.terminal-line{display:flex;align-items:center;gap:9px;border-top:1px solid #eff3ed;padding:9px 0}.terminal-line-edit{background:transparent;padding:5px 0;text-align:left;flex:1;min-width:0;display:grid;gap:4px;color:var(--terminal-ink);border-radius:4px;font-size:14px}.terminal-line-edit span{font-size:12px;font-weight:400;line-height:1.45;color:var(--terminal-muted);overflow-wrap:anywhere}.terminal-line-edit strong{font-weight:650;overflow-wrap:anywhere}.terminal-line-remove{background:#f4f6f2;width:44px;flex:0 0 44px;font-size:23px;color:var(--terminal-muted);font-weight:400}.terminal-send-area{padding:16px 18px;border-top:1px solid var(--terminal-line);background:#fff}.terminal-send-area .terminal-muted{font-size:12px;line-height:1.45}.terminal-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.terminal-total span{font-size:12px;color:var(--terminal-muted)}.terminal-total strong{font-size:24px;letter-spacing:-.03em}.terminal-send-area .terminal-primary{width:100%}.terminal-send-area>.terminal-text-button{display:block;margin:4px auto 0;text-align:center;font-size:12px}.terminal-dock{display:none}.terminal-footer{display:flex;justify-content:space-between;gap:16px;padding:18px 28px;color:var(--terminal-muted);font-size:11px;border-top:1px solid var(--terminal-line)}
.terminal-dialog{position:fixed;inset:0;background:#122b2d66;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;overscroll-behavior:contain}.terminal-sheet{width:100%;max-width:520px;background:var(--terminal-bg);border-radius:20px;max-height:calc(100dvh - 40px);overflow:auto;padding:22px;box-shadow:0 24px 70px #102b2b40}.terminal-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.terminal-sheet-heading h2{overflow-wrap:anywhere}.terminal-sheet-heading button{flex-shrink:0}.terminal-sheet .terminal-primary{width:100%;margin-top:20px}.terminal-sheet .terminal-muted{margin-top:10px}.terminal-stepper{display:flex;gap:12px;align-items:center;justify-content:center;margin:24px auto}.terminal-stepper button{width:58px;height:58px;background:white;border-color:var(--terminal-line);font-size:27px}.terminal-stepper input{font-size:29px;text-align:center;width:100px;font-weight:750;height:64px;-moz-appearance:textfield}.terminal-stepper input::-webkit-inner-spin-button{-webkit-appearance:none}.terminal-preset-covers{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.terminal-preset-covers button{width:49px;background:white;border-color:var(--terminal-line);color:var(--terminal-ink)}.terminal-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.terminal-form-error{color:var(--terminal-danger);font-size:13px;line-height:1.5;margin-top:10px}.terminal-form-hint{font-size:12px;color:var(--terminal-muted);line-height:1.5;margin-top:7px}.terminal-sheet .terminal-sheet-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.terminal-sheet-actions button{flex:1 0 auto}.terminal-sheet-actions .terminal-primary{margin:0;width:auto}.terminal-existing-course{margin-top:20px}.terminal-existing-course h3{font-size:14px;margin-bottom:8px}.terminal-existing-item{padding:10px 0;border-bottom:1px solid var(--terminal-line);font-size:14px;line-height:1.5}.terminal-existing-item small{display:block;color:var(--terminal-muted);font-size:12px}.terminal-dialog-open{overflow:hidden}.terminal-offline-badge{color:var(--terminal-warning)}
.terminal-department-state{font-size:12px;line-height:1.5;margin-top:8px;padding:7px 10px;border-radius:8px;background:#eef2ed;color:#53685d}.terminal-department-state.is-requested,.terminal-department-state.is-claim{background:#e4eff8;color:#29587d}.terminal-department-state.is-in_preparation{background:#fff0d5;color:#80570d}.terminal-department-state.is-ready{background:#dff1cd;color:#365f22}.terminal-department-state.is-served,.terminal-department-state.is-archived{background:#e5f1ee;color:#216358}
.terminal-recovery-confirm{display:flex;gap:12px;align-items:flex-start;line-height:1.5;font-weight:500}.terminal-recovery-confirm input{width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:var(--terminal-green);margin-top:2px}
.terminal-department-state.is-paused{background:#fff0d5;color:#80570d}
@media(max-width:850px){.terminal-header{padding:13px 16px}.terminal-header-tools{gap:6px}.terminal-brand{font-size:14px;gap:8px}.terminal-brand small{font-size:8px}.terminal-header #terminal-language select{max-width:105px}.terminal-header #terminal-device{font-size:11px;padding:8px}.terminal-status{margin:10px 14px 0;padding:10px 12px}.terminal-pair{margin:26px 16px 18px;padding:24px}.terminal-tables{padding:25px 16px 35px}.terminal-table-grid{grid-template-columns:repeat(auto-fill,minmax(137px,1fr));gap:10px}.terminal-table{min-height:137px;padding:15px}.terminal-table strong{font-size:26px}.terminal-section-top>.terminal-secondary{font-size:13px;padding:9px 12px}.terminal-order{padding:12px 14px 100px}.terminal-order-header{gap:10px;margin-bottom:10px}.terminal-order-header>.terminal-secondary{font-size:12px;padding:8px 11px}.terminal-order-heading h1{font-size:22px}.terminal-workspace{display:block}.terminal-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.terminal-product-add{padding:13px 12px 10px;min-height:110px}.terminal-product-add strong{font-size:15px}.terminal-product-extra{padding:8px 12px;min-height:40px}.terminal-search>.terminal-secondary{font-size:12px;padding:10px}.terminal-chips{gap:7px;padding:10px 0}.terminal-chip{min-height:42px;font-size:13px;padding:8px 13px}.terminal-basket{display:none}.terminal-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:10;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--terminal-line);box-shadow:0 -5px 22px #16363409}.terminal-dock>div{display:grid;gap:3px}.terminal-dock small{font-size:11px;color:var(--terminal-muted)}.terminal-dock strong{font-size:23px;line-height:1.1;letter-spacing:-.04em}.terminal-dock .terminal-primary{flex:1;max-width:250px}.terminal-review-open .terminal-catalog,.terminal-review-open .terminal-dock{display:none}.terminal-review-open .terminal-basket{position:static;display:flex;max-height:none}.terminal-review-open .terminal-basket-heading{flex-wrap:wrap;padding:12px}.terminal-review-open .terminal-basket-heading>button{display:block;flex:1 0 100%;margin-bottom:9px}.terminal-review-open .terminal-order{padding-bottom:20px}.terminal-review-open .terminal-lines{overflow:visible}.terminal-line-edit{min-height:57px;font-size:16px}.terminal-line-edit span{font-size:13px}.terminal-footer{font-size:10px;padding:16px;flex-direction:column;gap:7px}.terminal-dialog{padding:12px;align-items:flex-end}.terminal-sheet{max-height:calc(100dvh - 24px);border-radius:19px;padding:20px;width:100%;max-width:560px}.terminal-sheet-heading h2{font-size:20px}.terminal-sheet-actions button{min-height:48px}}
@media(min-width:600px) and (max-width:850px){.terminal-products{grid-template-columns:repeat(3,minmax(0,1fr))}.terminal-pair{margin-left:auto;margin-right:auto}.terminal-dialog{align-items:center}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Compact service workspace: persistent controls and a scrollable menu. */
.terminal-chips:empty{display:none}
.terminal-actions{min-width:44px;font-size:16px;letter-spacing:1px}
.terminal-order-actions{display:grid;gap:10px;margin-top:18px}
.terminal-order-actions button{text-align:left;min-height:50px}
.terminal-order-language{margin:7px 0 10px}
.terminal-order-language select{max-width:100%}
.terminal-products{grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:9px}
.terminal-product{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:stretch;border-radius:12px;min-height:76px}
.terminal-product-add,.terminal-product.has-quantity .terminal-product-add{display:grid;grid-template-columns:minmax(0,1fr) auto 42px;align-items:center;gap:10px;min-height:76px;padding:11px 10px 11px 14px;min-width:0;border-radius:0}
.terminal-product-copy{display:grid;gap:4px;min-width:0}
.terminal-product-add strong{font-size:15px;line-height:1.3;letter-spacing:-.012em;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.terminal-product-add .terminal-price{font-size:14px;line-height:1.2;white-space:nowrap;font-weight:650;margin:0;letter-spacing:-.015em}
.terminal-add-symbol{display:grid;place-items:center;align-self:center;width:42px;height:44px;border-radius:10px;background:var(--terminal-soft);font-size:27px;line-height:1;font-weight:400;color:var(--terminal-green)}
.terminal-product-add:active:not(:disabled) .terminal-add-symbol{background:var(--terminal-green);color:white}
.terminal-product-extra{border-top:0;border-left:1px solid #e8eee5;align-self:stretch;height:auto;min-height:48px;max-width:48px;padding:8px 4px;text-align:center;font-size:11px;font-weight:650;background:#f6f8f3;color:#5b7271}
.terminal-quantity{top:4px;right:55px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;font-size:10px;line-height:1;box-shadow:0 0 0 2px white}
.terminal-product.is-unavailable .terminal-add-symbol{background:#eef1ed;color:#81908c}
.terminal-order-heading .terminal-text-button{font-weight:550;min-height:44px}
.terminal-menu-scroll{min-width:0}
.terminal-course-bar{padding:5px 10px;gap:10px;min-height:50px}
.terminal-course-bar>div{display:flex;align-items:center;gap:10px;min-width:0}
.terminal-course-bar small{font-size:11px}
.terminal-course-bar .terminal-text-button{min-height:40px;white-space:nowrap;font-size:16px}
.terminal-course-bar .terminal-secondary{min-height:42px;min-width:104px}
.terminal-table-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.terminal-table{min-height:112px;padding:14px;gap:9px;border-radius:13px}
.terminal-table strong{font-size:23px;line-height:1.1}
.terminal-table .terminal-table-status{font-size:11px;line-height:1.4;padding:4px 6px}

@media(max-width:850px){
 .terminal-active-order{overflow:hidden}
 .terminal-active-order .terminal-page{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 .terminal-active-order .terminal-header,.terminal-active-order .terminal-footer{display:none}
 .terminal-active-order #terminal-main{display:flex;flex-direction:column;min-height:0;flex:1}
 .terminal-active-order .terminal-status{flex:0 0 auto;font-size:11px;line-height:1.4;padding:7px 11px;margin:6px 10px 0}
 .terminal-active-order .terminal-order{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;overflow:hidden}
 .terminal-order-header{flex:0 0 auto;min-height:62px;gap:8px;padding:8px 10px;margin:0;border-bottom:1px solid var(--terminal-line);background:var(--terminal-bg)}
 .terminal-order-header>.terminal-secondary{min-height:44px;padding:8px 10px;font-size:12px;border-radius:10px}
 .terminal-order-heading h1{font-size:20px;line-height:1.1;letter-spacing:-.035em}
 .terminal-order-heading .terminal-text-button{min-height:44px;line-height:1.1;font-size:12px;padding:4px 0}
 .terminal-order-header #terminal-existing{font-size:11px;padding:7px 8px}
 .terminal-actions{padding:7px;min-width:44px;border-color:transparent;font-size:15px}
 .terminal-workspace{display:flex;flex:1;min-height:0;align-items:stretch;padding:0 10px;overflow:hidden}
 .terminal-catalog{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 .terminal-search{flex:0 0 auto;gap:7px;padding-top:8px}
 .terminal-search input{min-height:44px;height:44px;font-size:16px;padding:10px 12px;border-radius:11px}
 .terminal-search>.terminal-secondary{min-height:44px;padding:7px 10px;font-size:11px;border-radius:11px}
 .terminal-catalog>.terminal-chips{flex:0 0 auto;gap:6px;padding:8px 0;scrollbar-width:none}
 .terminal-catalog>.terminal-chips::-webkit-scrollbar{display:none}
 .terminal-chip{min-height:40px;font-size:12px;padding:8px 13px}
 .terminal-course-bar{flex:0 0 auto;margin-bottom:8px;min-height:46px;padding:3px 7px 3px 10px;border-radius:11px}
 .terminal-course-bar small{display:none}
 .terminal-course-bar .terminal-text-button{min-height:40px;font-size:15px}
 .terminal-course-bar .terminal-secondary{min-height:40px;padding:7px 15px;font-size:13px;border-radius:9px}
 .terminal-added{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .terminal-menu-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 0 10px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
 .terminal-products{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
 .terminal-product{grid-template-columns:minmax(0,1fr) 46px;min-height:72px;border-radius:12px}
 .terminal-product-add,.terminal-product.has-quantity .terminal-product-add{grid-template-columns:minmax(0,1fr) auto 42px;min-height:72px;padding:8px 9px 8px 12px;gap:9px}
 .terminal-product-add strong{font-size:15px;line-height:1.3}
 .terminal-product-add .terminal-price{font-size:14px}
 .terminal-product-extra{max-width:46px;min-height:48px}
 .terminal-quantity{top:3px;right:53px}
 .terminal-dock{position:static;flex:0 0 auto;min-height:72px;gap:12px;padding:9px 12px max(9px,env(safe-area-inset-bottom));box-shadow:0 -3px 14px #16363406}
 .terminal-dock small{font-size:11px;line-height:1.25}
 .terminal-dock strong{font-size:22px}
 .terminal-dock .terminal-primary{min-height:49px;max-width:220px;font-size:15px;padding:10px 18px;border-radius:12px}
 .terminal-review-open .terminal-order{padding:0}
 .terminal-review-open .terminal-workspace{padding:10px;min-height:0}
 .terminal-review-open .terminal-basket{display:flex;position:static;flex:1;max-height:none;min-height:0}
 .terminal-review-open .terminal-basket-heading{flex:0 0 auto;padding:10px 13px}
 .terminal-review-open .terminal-basket-heading>button{flex:1 1 auto;margin:0;min-height:44px;font-size:12px;padding:8px 10px}
 .terminal-review-open .terminal-basket-heading h2{font-size:15px}
 .terminal-review-open .terminal-lines{flex:1;min-height:0;overflow:auto;padding:0 13px}
 .terminal-review-open .terminal-send-area{flex:0 0 auto;padding:11px 13px max(11px,env(safe-area-inset-bottom))}
 .terminal-review-open .terminal-send-area .terminal-muted{font-size:11px;line-height:1.4}
 .terminal-review-open .terminal-total{margin:9px 0}
 .terminal-review-open .terminal-total strong{font-size:23px}
 .terminal-review-open .terminal-send-area>.terminal-text-button{margin:2px auto 0;min-height:37px}
 .terminal-tables{padding:21px 12px 25px}
 .terminal-tables>.terminal-muted{font-size:12px}
 .terminal-tables .terminal-section-top h1{font-size:28px}
 .terminal-table-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
 .terminal-table{min-height:103px;padding:12px 9px;gap:8px;border-radius:12px}
 .terminal-table strong{font-size:19px;line-height:1.2;letter-spacing:-.035em}
 .terminal-table small{font-size:10px;line-height:1.2}
 .terminal-table .terminal-table-status{font-size:10px;line-height:1.35;padding:4px 5px;white-space:normal;overflow-wrap:anywhere}
}
@media(min-width:600px) and (max-width:850px){
 .terminal-table-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .terminal-products{grid-template-columns:repeat(2,minmax(0,1fr))}
 .terminal-product-add,.terminal-product.has-quantity .terminal-product-add{grid-template-columns:minmax(0,1fr) auto 38px;gap:7px}
 .terminal-add-symbol{width:38px}
}
@media(max-width:350px){
 .terminal-order-header{gap:5px;padding-left:8px;padding-right:8px}
 .terminal-order-header>.terminal-secondary{padding:7px;font-size:11px}
 .terminal-order-heading h1{font-size:18px}
 .terminal-product-add,.terminal-product.has-quantity .terminal-product-add{grid-template-columns:minmax(0,1fr) auto 38px;gap:6px;padding-left:10px}
 .terminal-add-symbol{width:38px}
 .terminal-product-add strong{font-size:14px}
 .terminal-product-add .terminal-price{font-size:13px}
}

/* Live order: menu and draft stay visible, with independent scroll areas. */
.terminal-active-order .terminal-page{height:100vh;height:var(--terminal-viewport-height,100dvh);display:flex;flex-direction:column;overflow:hidden}
.terminal-active-order #terminal-main{display:flex;flex-direction:column;flex:1;min-height:0}
.terminal-active-order .terminal-order{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-bottom:14px}
.terminal-active-order .terminal-header,.terminal-active-order .terminal-footer,.terminal-active-order .terminal-status,.terminal-order-header{flex:0 0 auto}
.terminal-workspace{flex:1;min-height:0;align-items:stretch;grid-template-columns:minmax(0,1fr) minmax(350px,40%);overflow:hidden}
.terminal-catalog{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.terminal-search,.terminal-catalog>.terminal-chips,.terminal-course-bar,.terminal-added{flex:0 0 auto}
.terminal-menu-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.terminal-basket{display:flex;position:static;min-height:0;max-height:none;flex-direction:column}
.terminal-basket-heading{flex:0 0 auto;padding:4px 10px;min-height:48px;gap:8px}
.terminal-basket-heading h2{font-size:15px;white-space:nowrap}
.terminal-basket-heading>span{font-size:11px;padding:4px 7px}
.terminal-basket-heading>#terminal-discard{display:block;margin-left:auto;font-size:12px;color:var(--terminal-danger);padding:6px;min-height:44px}
.terminal-lines{flex:1;min-height:0;overflow:auto;padding:0 10px;scrollbar-width:thin;overflow-anchor:none}
.terminal-lines>.terminal-empty{padding:16px 4px;font-size:13px;line-height:1.4}
.terminal-course-group{padding:6px 0 2px}
.terminal-course-group h3{font-size:10px;line-height:1.4;margin:2px 0 4px}
.terminal-line{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px 48px;gap:4px;min-height:65px;padding:5px 0}
.terminal-line-edit{font-size:13px;min-height:44px;gap:3px;padding:3px 2px}
.terminal-line-edit strong{font-weight:650;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.terminal-line-edit span{font-size:11px;line-height:1.3}
.terminal-line-note{color:#765616!important}
.terminal-line-quantity{width:44px;height:44px;min-height:44px;background:var(--terminal-soft);color:var(--terminal-green);font-size:23px;font-weight:500;border-radius:9px;padding:0}
.terminal-line-remove{width:48px;min-height:44px;font-size:11px;font-weight:650;color:var(--terminal-danger);background:#fcf0ee;border-radius:9px;padding:3px}
.terminal-send-area{flex:0 0 auto;display:grid;grid-template-columns:minmax(80px,1fr) minmax(155px,1.5fr);align-items:center;gap:8px;padding:8px 10px}
.terminal-send-area #terminal-send-hint{grid-column:1/-1;font-size:11px}
.terminal-total{display:grid;gap:2px;margin:0;justify-content:start}
.terminal-total span{font-size:10px;line-height:1.2}
.terminal-total strong{font-size:22px;line-height:1.2}
.terminal-send-area .terminal-primary{min-height:48px;padding:9px 10px;font-size:14px}
@media(max-width:599px){
 .terminal-active-order .terminal-order{padding-bottom:0}
 .terminal-workspace{flex-direction:column;padding:0 8px 0;gap:8px}
 .terminal-catalog{flex:1 1 56%;min-height:0}
 .terminal-basket{flex:0 1 44%;min-height:180px;border-bottom:0;border-radius:13px 13px 0 0}
 .terminal-basket-heading{padding:2px 8px;min-height:44px}
 .terminal-basket-heading h2{font-size:14px}
 .terminal-basket-heading>#terminal-discard{font-size:11px;padding:4px}
 .terminal-lines{padding:0 8px}
 .terminal-line{grid-template-columns:minmax(0,1fr) 44px 44px 44px;gap:3px}
 .terminal-line-remove{width:44px;font-size:10px}
 .terminal-send-area{padding:7px 8px max(7px,env(safe-area-inset-bottom));gap:7px}
 .terminal-send-area .terminal-primary{font-size:13px;min-height:44px}
 .terminal-total strong{font-size:20px}
 .terminal-order-header{min-height:60px}
 .terminal-order-heading{display:flex;flex-direction:column;gap:1px}
 .terminal-order-heading .terminal-text-button{min-height:44px}
 .terminal-menu-scroll{padding-bottom:3px}
 .terminal-active-order.terminal-keyboard-open .terminal-order-heading{flex-direction:row;align-items:center;gap:5px}
 .terminal-keyboard-open .terminal-order-heading h1{font-size:15px}
 .terminal-keyboard-open .terminal-order-header{min-height:48px;padding-top:2px;padding-bottom:2px}
 .terminal-keyboard-open .terminal-catalog>.terminal-chips,.terminal-keyboard-open .terminal-course-bar,.terminal-keyboard-open .terminal-basket-heading{display:none}
 .terminal-keyboard-open .terminal-search{padding-top:3px;padding-bottom:4px}
 .terminal-keyboard-open .terminal-basket{flex-basis:40%;min-height:113px}
}
@media(min-width:600px) and (max-width:850px){
 .terminal-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,46%);gap:10px;padding:8px 10px}
 .terminal-products{grid-template-columns:minmax(0,1fr)}
 .terminal-product-add,.terminal-product.has-quantity .terminal-product-add{grid-template-columns:minmax(0,1fr) auto 36px;gap:5px;padding-left:8px;padding-right:6px}
 .terminal-product-add strong{font-size:13px}
 .terminal-product-add .terminal-price{font-size:12px}
 .terminal-add-symbol{width:36px}
 .terminal-line{grid-template-columns:minmax(0,1fr) 44px 44px 44px;gap:2px}
 .terminal-lines{padding:0 6px}.terminal-line-remove{width:44px;font-size:10px}
}
.terminal-recovery-actions{display:grid;gap:9px;margin-top:18px}.terminal-recovery-actions:has(>button[hidden]:only-child){display:none}

/* Keep editable sheets inside the visual viewport when a mobile keyboard pans it. */
.terminal-dialog{top:var(--terminal-viewport-offset,0px);bottom:auto;height:100vh;height:var(--terminal-viewport-height,100dvh)}
.terminal-sheet{max-height:100%}

.terminal-guest-summary{width:100%;min-height:40px;text-align:left;border-color:#9bb8a7;background:#eef6f0;color:#193e2d}.terminal-dialog-body button[aria-pressed="true"]{background:#e6f2eb;border:2px solid #23734f;color:#173e2a}

/* A consistent, reachable way back on every terminal sheet. */
.terminal-sheet-heading{flex-wrap:wrap;gap:10px}
.terminal-sheet-heading h2{flex:1;min-width:130px}
.terminal-dialog-back{min-height:44px;white-space:nowrap;font-size:14px;padding:9px 12px}
.terminal-back-notice{margin-top:16px;padding:14px;border:1px solid #c9a74a;border-radius:12px;background:#fff9e7;color:#473b17;font-size:14px;line-height:1.5}
.terminal-back-notice .terminal-sheet-actions{margin-top:12px}
@media(max-width:480px){.terminal-sheet-heading h2{order:3;flex:0 0 100%}.terminal-sheet-heading #terminal-dialog-close{margin-left:auto}.terminal-dialog-back{min-height:48px}}
