/* Kivora POS workspace */
.shell { display: grid; grid-template-columns: 224px 1fr; height: 100vh; background: #f6f7f9; color: var(--text); overflow: hidden; }
.shell[hidden] { display: none !important; }

/* ---------- sidebar ---------- */
.side { background: #0f172a; color: #cbd5e1; display: flex; flex-direction: column; padding: 14px 10px; gap: 14px; min-height: 0; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 10px; border-bottom: 1px solid #1e293b; }
.side-brand b { color: #fff; display: block; font-size: 14px; line-height: 1.2; }
.side-brand small { color: #64748b; font-size: 12px; }
.side-nav { display: grid; gap: 2px; overflow-y: auto; }
.side-nav button { display: flex; align-items: center; gap: 11px; background: none; color: inherit; padding: 10px 10px; border-radius: 9px; font-size: 14px; text-align: left; }
.side-nav button:hover { background: #1e293b; color: #fff; }
.side-nav button.on { background: color-mix(in srgb, var(--accent) 85%, #0f172a); color: #fff; }
.nbadge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: #f59e0b; color: #111; border-radius: 999px; padding: 1px 7px; }
.nbadge[hidden], .nbadge:empty { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 10px 6px 0; border-top: 1px solid #1e293b; }
.side-foot .who { display: grid; } .side-foot .who span { color: #fff; font-size: 13px; } .side-foot .who small { color: #64748b; font-size: 12px; text-transform: capitalize; }
.side-foot .btn.ghost { color: #94a3b8; justify-content: flex-start; padding-left: 0; }
.side-foot .pill { justify-self: start; }
.tabbar { display: none; }

/* ---------- page ---------- */
.page { overflow-y: auto; padding: 22px 26px 40px; min-width: 0; }
.page-register { padding: 0; overflow: hidden; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.center { text-align: center; display: block; margin: 12px auto; }
.warn { color: #b45309; }
.empty { color: var(--muted); padding: 40px 16px; text-align: center; grid-column: 1 / -1; }
.empty.small { padding: 22px 8px; font-size: 13px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
h2.area { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; min-height: 42px; transition: background .12s, border-color .12s, filter .12s; }
.btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn.danger:not(.ghost):hover { background: #fef2f2; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: #eef2f6; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.btn.grow { flex: 1; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: transparent; color: var(--muted); }
.icon-btn:hover { background: #eef2f6; color: var(--text); }
.icon-btn:disabled { opacity: .3; }
.link { background: none; color: var(--accent); font-weight: 600; font-size: 13px; padding: 4px 0; }
.link.danger { color: var(--danger); }
select, textarea, .page input:not([type=checkbox]):not([type=radio]), .modal input:not([type=checkbox]):not([type=radio]) {
  font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); min-height: 42px; outline: none; }
select:focus, textarea:focus, .page input:focus, .modal input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
textarea { resize: vertical; min-height: 60px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #334155; }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.seg { display: flex; background: #eef2f6; border-radius: 10px; padding: 3px; gap: 3px; }
.seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1; padding: 8px 10px; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: #475569; min-height: 36px; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--muted); }
.search input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; flex: 1; min-width: 0; background: transparent !important; }
.search.sm { min-width: 220px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span2 { grid-column: 1 / -1; }

/* ---------- register ---------- */
.register { display: grid; grid-template-columns: 1fr 380px; height: 100%; }
.menu-area { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; min-height: 0; overflow: hidden; }
.menu-area > * { flex-shrink: 0; }
.menu-area > .product-grid { flex: 1 1 auto; min-height: 0; }
.op-bar { display: none; }
.menu-area .search { min-height: 46px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow-y: auto; align-content: start; padding: 2px 2px 20px; }
.ptile { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; gap: 6px; transition: transform .08s, box-shadow .15s, border-color .15s; }
.ptile:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px -10px rgb(15 23 42 / .35); }
.ptile:active { transform: scale(.98); }
.ptile.out { opacity: .45; }
.ptile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: #f1f5f9; display: block; }
.ptile-img.ph { display: grid; place-items: center; font-weight: 700; font-size: 22px; color: hsl(var(--h) 45% 32%); background: hsl(var(--h) 60% 92%); }
.ptile-name { font-weight: 600; font-size: 14px; line-height: 1.25; padding: 0 2px; }
.ptile-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 2px; font-size: 13px; }
.ptile-foot small { color: var(--muted); font-size: 11px; } .ptile-foot small.low { color: #b45309; font-weight: 600; }

.order-panel { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.op-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 10px; }
.op-title { font-size: 18px; font-weight: 700; }
.order-panel > .seg { margin: 0 16px; }
.table-pick { margin: 8px 16px 0; justify-content: flex-start; border: 1px dashed #cbd5e1 !important; }
.op-lines { flex: 1; overflow-y: auto; padding: 8px 16px; }
.op-sec { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.line .ln { font-weight: 600; font-size: 14px; } .line .ln small { color: var(--muted); font-weight: 500; }
.lsub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.lr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.line.sent .ln { color: #334155; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; border-radius: 10px; padding: 2px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.sm .icon-btn { width: 28px; height: 28px; }
.kchip { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: #e2e8f0; color: #475569; }
.kchip.k-new { background: #e0f2fe; color: #0369a1; } .kchip.k-preparing { background: #fef3c7; color: #92400e; }
.kchip.k-ready { background: #dcfce7; color: #166534; } .kchip.k-served { background: #f1f5f9; color: #64748b; }
.op-sum { border-top: 1px solid var(--line); padding: 12px 16px 16px; display: grid; gap: 6px; background: #fcfcfd; }
.op-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.op-opts select { min-height: 36px; padding: 6px 8px; font-size: 13px; }
.sr { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 2px 0; }
.sr.total { font-size: 20px; font-weight: 800; padding-top: 6px; }
.sr.voided { text-decoration: line-through; color: var(--muted); }
.op-actions { display: flex; gap: 8px; margin-top: 6px; }
.op-actions .btn { min-height: 52px; font-size: 15px; }

/* ---------- tables ---------- */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.table-grid.compact { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tcard { position: relative; display: grid; gap: 3px; align-content: start; min-height: 104px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: box-shadow .15s, border-color .15s; }
.tcard:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px -12px rgb(15 23 42 / .4); }
.tcard b { font-size: 20px; } .tcard small { color: var(--muted); font-size: 12px; }
.tcard.busy { background: color-mix(in srgb, var(--accent) 9%, #fff); border-color: color-mix(in srgb, var(--accent) 35%, #fff); }
.tcard.busy:disabled { opacity: .5; cursor: not-allowed; }
.tcard.mine { outline: 2px solid var(--accent); }
.tcard.ticket b { font-size: 16px; }
.tc-total { font-weight: 700; font-size: 15px; }
.badge { position: absolute; top: 10px; right: 10px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.table-grid.compact .tcard { min-height: 72px; padding: 10px; }

/* ---------- kitchen ---------- */
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.ticket { background: #fff; border: 1px solid var(--line); border-top: 5px solid #0ea5e9; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.ticket.k-preparing { border-top-color: #f59e0b; } .ticket.k-ready { border-top-color: #16a34a; }
.ticket.late { box-shadow: 0 0 0 2px #fca5a5; }
.ticket header { display: flex; justify-content: space-between; padding: 12px 14px 8px; }
.ticket header b { font-size: 17px; display: block; } .ticket header span { color: var(--muted); font-size: 13px; }
.ticket .age { font-weight: 700; color: #334155 !important; } .ticket.late .age { color: var(--danger) !important; }
.ticket ul { list-style: none; margin: 0; padding: 0 8px; }
.kitem { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; text-align: left; background: none; padding: 9px 6px; border-radius: 8px; font-size: 15px; }
.kitem:hover { background: #f8fafc; }
.kitem small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.kitem.k-ready > span:first-child { color: #166534; }
.knote { color: #b45309 !important; font-weight: 600; }
p.knote { margin: 4px 14px 0; font-size: 13px; }
.ticket footer { display: flex; gap: 8px; padding: 10px 12px 12px; margin-top: 6px; border-top: 1px solid #f1f5f9; }

/* ---------- lists ---------- */
.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: left; width: 100%; }
button.list-row:hover { border-color: #cbd5e1; }
.lr-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.lr-main small { font-size: 12px; }
.lr-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill-s { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; background: #e2e8f0; color: #475569; }
.s-open { background: #e0f2fe; color: #0369a1; } .s-paid { background: #dcfce7; color: #166534; } .s-void { background: #fee2e2; color: #991b1b; }
.mn-thumb { width: 56px; flex: none; } .mn-thumb .ptile-img { border-radius: 8px; font-size: 16px; }
.count-in { width: 96px; min-height: 36px !important; }

/* ---------- reports ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; } .stat b { font-size: 24px; font-variant-numeric: tabular-nums; } .stat small { color: var(--muted); font-size: 12px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.panel h2 { font-size: 15px; margin: 0 0 12px; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; } .bt i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bv { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- modals ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / .45); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; display: grid; gap: 12px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .4); animation: rise .16s ease-out; }
.modal.wide { width: min(680px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 19px; } .modal-head p { margin: 4px 0 0; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.modal-actions.spread { justify-content: space-between; align-items: center; }
.modal-actions.wrap { flex-wrap: wrap; }
.opt-head { font-size: 13px; font-weight: 700; margin-top: 6px; }
.opt-list { display: grid; gap: 6px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.opt-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; margin-bottom: 6px; align-items: center; }
.opt-row.tb { grid-template-columns: 1fr 1fr 90px auto; }
#ctList .opt-row { grid-template-columns: 1fr auto auto; }
.img-prev { display: flex; align-items: center; gap: 12px; } .img-prev:empty { display: none; }
.img-prev img { width: 84px; height: 63px; object-fit: cover; border-radius: 8px; }
.due { display: flex; justify-content: space-between; align-items: baseline; background: #f8fafc; border-radius: 12px; padding: 14px 16px; }
.due strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.paid-list { padding: 0 4px; }
.change { min-height: 18px; }
.paid-ok { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.paid-ok .tick { width: 46px; height: 46px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.od-lines, .od-sum { display: grid; gap: 2px; } .od-sum { border-top: 1px solid var(--line); padding-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: #92400e; }
.toast.good { background: #166534; }

/* ---- Kivora Smart Table: guest phone orders & calls */
.alerts { position: fixed; z-index: 55; bottom: 16px; left: 240px; width: min(360px, calc(100vw - 32px)); align-content: end; display: grid; gap: 8px; pointer-events: none; }
.alert { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgb(15 23 42 / .45); animation: alertIn .35s cubic-bezier(.2, 1.3, .4, 1); }
.alert > div { flex: 1; min-width: 0; display: grid; }
.alert b { font-size: 14px; } .alert span { font-size: 12.5px; color: var(--muted); }
.alert > svg { flex: none; padding: 7px; width: 34px; height: 34px; border-radius: 10px; }
.alert.a-order > svg { background: #ede9fe; color: #6d28d9; }
.alert.a-call > svg { background: #fef3c7; color: #b45309; animation: ring 1.2s ease-in-out infinite; }
.alert.a-bill > svg { background: #dcfce7; color: #15803d; }
@keyframes alertIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.tcard .badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.tcard .badges .badge { position: static; }
.badge.guest { background: #7c3aed; } .badge.call { background: #d97706; }
.tcard > .badge.call { position: absolute; }
.tcard.alerting { box-shadow: 0 0 0 2px #f59e0b inset; }
.kchip.k-pending { background: #ede9fe; color: #6d28d9; }
.line.pending { background: #faf5ff; border-radius: 10px; }
.gmark { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 6px; background: #ede9fe; color: #6d28d9; vertical-align: -3px; }
.guest-approve { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: #f5f3ff; border: 1px solid #ddd6fe; color: #4c1d95; }
.guest-approve > div { flex: 1; min-width: 140px; display: grid; } .guest-approve span { font-size: 12.5px; color: #6d28d9; }
.st-links { display: grid; gap: 8px; }
.st-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.st-link b { min-width: 64px; } .st-link .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.mode:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.mode input { margin-top: 3px; } .mode span { display: grid; gap: 2px; font-size: 13px; color: var(--muted); } .mode span b { color: var(--text); font-size: 14px; }
.qr-box { display: grid; justify-items: center; gap: 10px; padding: 8px 0; }
input[type=color] { height: 44px; padding: 4px; cursor: pointer; }
.link-field .btn { flex: none; }
.qr-box > svg { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.link-field { display: flex; gap: 6px; width: 100%; } .link-field input { font-size: 13px; }
@media (max-width: 860px) { .alerts { bottom: auto; top: 10px; left: 50%; transform: translateX(-50%); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .register { grid-template-columns: 1fr 340px; } .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { position: fixed; inset: 0 30% 0 0; max-width: 300px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .shell.show-side .side { transform: none; box-shadow: 0 0 0 100vmax rgb(15 23 42 / .4); }
  .tabbar { display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar button { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 0; background: none; font-size: 11px; color: var(--muted); }
  .tabbar button.on { color: var(--accent); }
  .page { padding: 16px 14px 28px; }
  .register { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .menu-area { padding: 12px; }
  .order-panel { border-left: 0; border-top: 1px solid var(--line); }
  .order-panel:not(.open) > :not(.op-bar) { display: none; }
  .order-panel.open { position: fixed; left: 0; right: 0; top: 6vh; bottom: 0; z-index: 30; border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px -10px rgb(15 23 42 / .45); padding-bottom: env(safe-area-inset-bottom); }
  .op-bar { display: flex; justify-content: space-between; align-items: center; margin: 10px 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
  .order-panel.open .op-bar { background: #eef2f6; color: var(--text); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .search.sm { min-width: 0; flex: 1; }
}
