:root {
  color-scheme: dark;
  --bg: #14151d;
  --panel: #1c1d27;
  --raised: #242532;
  --line: #2c2e3b;
  --text: #f5f4f9;
  --muted: #a5a5b8;
  --soft: #838398;
  --accent: #f5b660;
  --accent-ink: #251a11;
  --accent-bg: #392b24;
  --green: #80d8ad;
  --green-bg: #20372f;
  --red: #ffaaa8;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .46; }
button, h1, h2, h3, p { margin: 0; }
.icon { width: 19px; height: 19px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.app { display: grid; grid-template-columns: 204px minmax(0, 1fr); min-height: 100dvh; }
.rail {
  --rail-text: #e9eefb;
  --rail-muted: #a6b3cd;
  --rail-edge: #34405b;
  --rail-ink: #f3f7ff;
  --rail-highlight: linear-gradient(132deg, #31486c, #23334f);
  position: sticky; top: 0; height: 100dvh;
  background: linear-gradient(155deg, #202a40, #151b2b 80%);
  border-right: 1px solid var(--rail-edge);
  display: flex; flex-direction: column; gap: 0; padding: 20px 12px 16px; z-index: 4;
}
.brand {
  display: flex; align-items: center; gap: 10px; padding: 0 5px; margin-bottom: 25px; align-self: flex-start;
  border: 0; border-radius: 9px; color: var(--rail-text); background: transparent; text-align: left;
}
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto;
  color: #e0eaff; background: linear-gradient(150deg, #3c5880, #22324e); border: 1px solid #607b9e;
  box-shadow: inset 0 1px #dce9ff32, 0 3px 8px #0d112055;
}
.brand-mark .icon { width: 23px; height: 23px; }
.brand-name { display: block; font-weight: 760; font-size: 19px; letter-spacing: -.7px; line-height: 1.1; }
.brand-sub { display: block; color: var(--rail-muted); font-size: 9px; letter-spacing: .95px; font-weight: 700; text-transform: uppercase; margin-top: 4px; }
.mobile-brand { display: none; }
.rail-label { color: var(--rail-muted); font-size: 10px; font-weight: 750; letter-spacing: 1.2px; padding: 0 8px 8px; text-transform: uppercase; }
.nav { display: grid; gap: 4px; position: relative; isolation: isolate; }
.nav-highlight {
  position: absolute; z-index: 0; inset: 0 auto auto 0; pointer-events: none;
  background: var(--rail-highlight); border-radius: 8px;
  box-shadow: inset 0 0 0 1px #6283b268, 0 2px 9px #0005;
  transition: transform .24s cubic-bezier(.2,.7,.25,1), width .2s ease, height .2s ease;
}
.nav-button {
  min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  position: relative; z-index: 1; min-width: 0;
  text-align: left; font-size: 13px; font-weight: 650; line-height: 1.2;
  color: var(--rail-text); border: 1px solid transparent; border-radius: 8px; background: transparent;
  transition: color .16s ease, background-color .16s ease;
}
.nav-button[aria-current="page"] { box-shadow: inset 2px 0 #83a8dc; background-color: #739bd222; }
.nav-button.nav-lit { color: var(--rail-ink); background-color: transparent; }
.nav-button.nav-lit[aria-current="page"] { box-shadow: inset 2px 0 #a4c6f4; }
.nav-copy, .nav-description, .nav-text { display: block; }
.nav-description { margin-top: 2px; color: var(--rail-muted); font-size: 10px; font-weight: 500; }
.nav-lit .nav-description { color: #c1d3ef; }
.nav-short { display: none; }
.nav-button .icon, .brand-mark .icon { transition: transform .18s ease; }
.nav-button.nav-lit .icon { transform: translateY(-1px) scale(1.08); }
.brand:is(:hover, :focus-visible):not(:disabled) .icon, .mobile-brand:is(:hover, :focus-visible):not(:disabled) .icon { transform: translateY(-1px) scale(1.08); }
.nav-button:active:not(:disabled) .icon, .brand:active:not(:disabled) .icon, .mobile-brand:active:not(:disabled) .icon { transform: scale(.88); }
.rail :is(.brand, .nav-button):focus-visible { outline: 2px solid #9cbce9; outline-offset: 2px; }
.shell { min-width: 0; }
.topbar { height: 64px; border-bottom: 1px solid var(--line); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #171821; }
.crumb { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 12px; }
.crumb strong { color: var(--text); font-size: 13px; font-weight: 650; }
.crumb .icon { width: 13px; height: 13px; }
.top-right { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.top-date { color: var(--muted); display: flex; align-items: center; gap: 7px; }
.top-date .icon { width: 15px; height: 15px; }
.demo { display: inline-flex; align-items: center; gap: 7px; color: #b2e3c8; border: 1px solid #2a453c; background: #1c302a; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 660; }
.dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 58px clamp(330px, 34vw, 420px); min-height: calc(100dvh - 64px); }
.catalog, .page { padding: 27px 25px 30px; min-width: 0; }
.page { max-width: 1380px; margin: auto; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.eyebrow { text-transform: uppercase; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.45px; margin-bottom: 8px; }
h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.04; font-weight: 730; letter-spacing: -1.25px; }
.heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin-top: 8px; }
.mobile-order { display: none !important; }
.search { position: relative; display: block; margin-bottom: 14px; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--soft); width: 17px; height: 17px; pointer-events: none; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; min-height: 42px; color: var(--text); padding: 0 13px 0 39px; }
.search input::placeholder { color: var(--soft); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; padding: 0 10px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 640; white-space: nowrap; }
.chip .icon { width: 15px; height: 15px; }
.chip:hover { color: var(--text); border-color: #555366; }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-row h2 { font-size: 15px; font-weight: 700; letter-spacing: -.18px; }
.section-row span { color: var(--soft); font-size: 11px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr)); gap: 9px; }
.product { display: flex; flex-direction: column; justify-content: space-between; gap: 7px; min-width: 0; min-height: 67px; border: 1px solid var(--line); padding: 8px 10px; color: var(--text); background: var(--panel); text-align: left; border-radius: 10px; transition: transform .15s, border-color .15s, background .15s; }
.product:hover { border-color: #7a593b; background: #24232d; transform: translateY(-2px); }
.product:active { transform: translateY(0); }
.product-name { display: block; font-size: 13px; font-weight: 730; line-height: 1.27; overflow-wrap: anywhere; }
.price { color: var(--accent); font-size: 12px; font-weight: 760; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order { background: #191a23; border-left: 1px solid var(--line); min-width: 0; position: sticky; top: 0; height: 100dvh; max-height: calc(100dvh - 64px); display: flex; flex-direction: column; align-self: start; }
.order-head { padding: 22px 19px 14px; border-bottom: 1px solid var(--line); }
.order-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.order-title h2 { font-size: 18px; font-weight: 740; letter-spacing: -.4px; }
.order-title .order-code { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 11px; }
.order-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 31px; color: var(--muted); font-size: 12px; }
.order-context .btn { min-height: 31px; }
.line-list { flex: 1 1 auto; min-height: 115px; overflow: auto; padding: 0 19px; }
.line-header { display: flex; justify-content: space-between; color: var(--soft); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; padding: 15px 0 6px; }
.order-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-name { font-weight: 700; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.line-price { text-align: right; font-size: 12px; font-weight: 690; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-details { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-height: 22px; color: var(--soft); font-size: 10px; }
.line-details .sent { color: var(--green); }
.line-note { border: 0; padding: 1px; background: transparent; color: var(--muted); text-align: left; font-size: 10px; overflow-wrap: anywhere; }
.line-note:hover { color: var(--accent); }
.line-note .icon { width: 12px; height: 12px; }
.qty { display: flex; align-items: center; gap: 3px; height: 23px; }
.qty button { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); padding: 0; }
.qty button:hover:not(:disabled) { color: var(--accent); }
.qty .icon { width: 13px; height: 13px; }
.order-foot { flex: 0 0 auto; background: #191a23; border-top: 1px solid var(--line); padding: 14px 19px 18px; }
.summary { display: grid; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px dashed #404151; margin-top: 3px; padding-top: 10px; font-size: 16px; font-weight: 740; color: var(--text); }
.summary .total dd { color: var(--accent); font-size: 19px; line-height: 1; letter-spacing: -.35px; }
.actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 14px; }
.ticket-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 7px; }
.ticket-actions .btn { min-height: 32px; width: 100%; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.ticket-row + .ticket-row { border-top: 1px solid var(--line); }
.ticket-row small { display: block; margin-top: 4px; color: var(--muted); }
.prep-ticket + .prep-ticket { margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 12px; border-radius: 8px; border: 1px solid #3c3d4e; color: var(--text); background: var(--raised); font-size: 12px; font-weight: 680; text-decoration: none; white-space: nowrap; }
.btn .icon { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { border-color: #7a6b60; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #ffc87e; border-color: #ffc87e; }
.btn.danger { color: var(--red); }
.btn.ghost { color: var(--muted); background: transparent; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 30px 12px; color: var(--soft); font-size: 12px; }
.empty .icon { width: 26px; height: 26px; }
.empty strong { color: var(--text); font-size: 13px; }
.empty-wide { border: 1px dashed var(--line); border-radius: 10px; padding: 42px 14px; }
.toast { position: fixed; z-index: 10; bottom: 18px; left: 50%; transform: translateX(-50%); background: #2a3035; color: var(--text); border: 1px solid #435449; border-radius: 9px; padding: 11px 16px; font-size: 12px; box-shadow: 0 6px 24px #0007; max-width: calc(100% - 28px); text-align: center; }
.toast[hidden] { display: none; }
.status { display: inline-flex; gap: 5px; align-items: center; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 670; color: var(--green); background: var(--green-bg); white-space: nowrap; }
.status.open { color: var(--accent); background: var(--accent-bg); }
.status.inactive { color: var(--muted); background: var(--raised); }
.page-group + .page-group { margin-top: 27px; }
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 15px; }
.toolbar .search { min-width: min(240px, 100%); flex: 1; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 19px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 7px; color: var(--accent); font-size: 23px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.records { overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; }
.records table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
.records th { color: var(--soft); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; background: #181923; }
.records td, .records th { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.records td { color: var(--muted); font-size: 12px; }
.records td strong { color: var(--text); }
.records tr:last-child td { border-bottom: 0; }
.records .btn { min-height: 30px; }
dialog { width: min(485px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #414253; border-radius: 14px; color: var(--text); background: #1d1e29; box-shadow: 0 18px 80px #0008; }
dialog::backdrop { background: #080911b8; backdrop-filter: blur(3px); }
.dialog-head, .dialog-body, .dialog-foot { padding: 16px 19px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 17px; letter-spacing: -.25px; }
.dialog-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); color: var(--muted); background: var(--raised); border-radius: 7px; }
.icon-button .icon { width: 15px; height: 15px; }
.dialog-copy { color: var(--muted); line-height: 1.5; font-size: 12px; margin-bottom: 13px; }
.fields { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.field input, .field textarea, .field select, select.select { width: 100%; color: var(--text); background: #161720; border: 1px solid #373849; border-radius: 7px; min-height: 38px; padding: 8px 10px; }
.field textarea { resize: vertical; min-height: 77px; }
.field-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.error { color: var(--red); font-size: 12px; }
.pay-amount { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; border: 1px solid #4e3e32; background: #2e2526; border-radius: 9px; padding: 12px; }
.pay-amount strong { color: var(--accent); font-size: 22px; }
.payment-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.payment-choice button { padding: 0 6px; }
.payment-choice .active { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.pay-details { min-height: 70px; }
.cash-change { display: block; color: var(--green); margin-top: 8px; font-size: 12px; }
.receipt { margin: 0; border: 1px dashed #58596c; padding: 15px; border-radius: 7px; }
.receipt-brand { text-align: center; font-size: 20px; font-weight: 730; }
.receipt-meta { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; margin: 5px 0 12px; }
.receipt-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12px; }
.receipt-row > span:last-child { white-space: nowrap; }
.receipt-row.grand { border-top: 1px dashed #55566b; margin-top: 7px; padding-top: 9px; font-weight: 730; }
.receipt-note { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
@media (min-width: 1480px) { .app { grid-template-columns: 220px minmax(0, 1fr); } .catalog, .page { padding: 32px; } }
@media (max-width: 1160px) { .app { grid-template-columns: 172px minmax(0, 1fr); } .catalog, .page { padding-left: 19px; padding-right: 19px; } }

@media (max-width: 740px) { .layout { grid-template-columns: minmax(0, 1fr); } .order { position: static; height: auto; max-height: none; border-left: 0; border-top: 1px solid var(--line); } .line-list { min-height: 150px; max-height: 360px; } .catalog, .page { padding: 19px 13px 22px; } .top-date { display: none; } }
@media (max-width: 740px) { .mobile-order { display: inline-flex !important; } }
@media (max-width: 500px) { .app { grid-template-columns: 1fr; padding-bottom: 60px; } .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 5px 5px max(5px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); } .brand { display: none; } .nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; width: 100%; } .nav-button { flex-direction: column; gap: 3px; justify-content: center; min-height: 44px; padding: 2px 1px; min-width: 0; font-size: 9px; text-align: center; } .nav-button .nav-text { display: block; } .nav-button .icon { width: 15px; height: 15px; } .topbar { height: 48px; } .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .product-name { min-height: 15px; } .toast { bottom: 62px; } .metrics { gap: 6px; } .metric { padding: 8px; } .metric span { font-size: 10px; } .metric strong { font-size: 15px; } .heading { align-items: start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Shared controls */
:root {
  --control-bg: linear-gradient(157deg, #2d303d, #20222e 90%);
  --control-border: #3d4051;
  --control-hover: #646278;
  --control-shadow: inset 0 1px #ffffff15, 0 2px 5px #090a133b;
  --control-gold: linear-gradient(156deg, #ffdb9a, #e99540);
  --nav-expanded: 216px;
}
.btn, .chip, .product, .icon-button, .qty button, .line-note {
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  box-shadow: var(--control-shadow);
  border-radius: 9px;
  transition: border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.btn:hover:not(:disabled), .chip:hover, .product:hover, .icon-button:hover, .qty button:hover:not(:disabled), .line-note:hover {
  background: var(--control-bg);
  border-color: var(--control-hover);
  box-shadow: inset 0 1px #ffffff20, 0 4px 12px #08091155;
}
.btn:active:not(:disabled), .chip:active, .product:active, .icon-button:active, .qty button:active:not(:disabled), .line-note:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 4px #08091161;
}
.btn.primary, .btn.primary:hover:not(:disabled), .chip.active, .chip.active:hover {
  color: #25190e;
  background: var(--control-gold);
  border-color: #f7b76b;
  box-shadow: inset 0 1px #fff7, 0 3px 12px #0004;
}
.btn.ghost { background: transparent; box-shadow: none; border-color: #363848; }
.payment-choice .btn.active, .payment-choice .btn.active:hover {
  color: #ffcf92;
  background: linear-gradient(160deg, #403229, #2b252a);
  border-color: #855d3e;
  box-shadow: inset 0 1px #ffe7be32, 0 3px 10px #0c090951;
}
.product:hover { transform: none; }
.qty button { border-radius: 6px; }
.line-note { min-height: 23px; padding: 2px 5px; border-radius: 5px; box-shadow: none; }
.btn:disabled, .qty button:disabled { opacity: .48; box-shadow: none; }
.rail-toggle { flex: 0 0 34px; width: 34px; height: 34px; }
.crumb .rail-toggle .icon { width: 17px; height: 17px; }
.payment-choice { gap: 8px; }
.payment-choice .btn { justify-content: flex-start; min-height: 48px; padding: 6px 9px; white-space: normal; text-align: left; line-height: 1.2; }
.payment-choice .icon { flex: 0 0 16px; }
.payment-choice span { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1480px) { :root { --nav-expanded: 220px; } }
@media (max-width: 1160px) { :root { --nav-expanded: 196px; } }
@media (min-width: 501px) {
  .app { grid-template-columns: var(--nav-expanded) minmax(0, 1fr); }
  .app.rail-collapsed { grid-template-columns: 80px minmax(0, 1fr); }
  .rail-collapsed .rail { padding: 20px 8px 16px; align-items: center; }
  .rail-collapsed .brand { align-self: center; margin-bottom: 20px; padding: 0; }
  .rail-collapsed .nav { width: 100%; }
  .rail-collapsed .nav-button { flex-direction: column; justify-content: center; min-height: 49px; gap: 3px; padding: 4px 1px; text-align: center; }
  .rail-collapsed .nav-short { display: block; font-size: 10px; }
  .rail-collapsed :is(.brand-text, .rail-label, .nav-text, .nav-description) { display: none; }
}
@media (min-width: 501px) and (max-height: 560px) {
  .rail { overflow-y: auto; }
}
@media (max-width: 940px) { .topbar { padding: 0 16px; } }
@media (max-width: 500px) {
  .rail { padding: 5px 6px max(5px, env(safe-area-inset-bottom)); border-top-color: var(--rail-edge); }
  .rail-toggle, .crumb-brand-name { display: none; }
  .mobile-brand { display: grid; width: 32px; height: 32px; }
  .crumb .mobile-brand .icon { width: 19px; height: 19px; }
  .rail .nav-text, .rail .nav-description { display: none; }
  .nav-short { display: block; white-space: normal; line-height: 1.05; }
  .nav-button[aria-current="page"] { box-shadow: inset 0 -2px #83a8dc; }
  .nav-button.nav-lit[aria-current="page"] { box-shadow: inset 0 -2px #a4c6f4; }
  .payment-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .nav-button, .nav-highlight, .brand-mark .icon, .nav-button .icon, .product, .icon-button, .qty button, .line-note { transition: none; }
  .nav-button .icon, .brand-mark .icon { transform: none !important; }
}
.fee-options { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--control-border); border-radius: 9px; }
.fee-options legend { padding: 0 4px; color: var(--muted); font-size: 12px; }
.fee-options label { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; color: var(--text); font-size: 12px; cursor: pointer; }
.fee-options input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.record-actions { display: flex; gap: 6px; }
.cloud-controls { flex-wrap: wrap; }
.printer-card.receipt-settings { margin-top: 16px; max-width: 620px; }
.receipt.customer-receipt {
  width: 100%;
  max-width: 80mm;
  margin: 0 auto;
  padding: 16px 14px;
  border: 1px solid #dad6d0;
  border-radius: 3px;
  color-scheme: light;
  color: #171717;
  background: #fff;
  font: 13px/1.34 'Inter', 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.receipt-heading { text-align: center; overflow-wrap: anywhere; }
.receipt-heading p { white-space: pre-line; }
.receipt-merchant { font-size: 1.5em; font-weight: 750; line-height: 1.12; margin-bottom: .2em; }
.receipt-type { margin-top: .8em; font-size: .88em; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.receipt-pairs { margin: 0; }
.receipt-pairs > div { display: flex; align-items: baseline; justify-content: space-between; gap: .65em; padding: .12em 0; }
.receipt-pairs dt { flex-shrink: 0; }
.receipt-pairs dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.receipt-identity { padding: .62em 0; margin-top: .6em; border-top: 1px dashed #555; }
.receipt-identity > div:first-child { font-weight: 700; }
.receipt-items { width: 100%; border-collapse: collapse; }
.receipt-items thead { border-top: 1px solid #383838; border-bottom: 1px solid #383838; }
.receipt-items td, .receipt-items th { padding: .32em 0 .32em .45em; vertical-align: top; text-align: right; white-space: nowrap; }
.receipt-items th { font-size: .9em; text-transform: uppercase; }
.receipt-items :is(td, th):first-child { padding-left: 0; width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.receipt-items small { display: block; margin-top: .15em; font-size: .88em; }
.receipt-totals { padding-top: .42em; border-top: 1px dashed #555; }
.receipt-pairs > .receipt-grand {
  margin: .35em 0;
  padding: .4em 0;
  border-block: 1px solid #111;
  font-size: 1.17em;
  font-weight: 800;
}
.receipt-grand dd { white-space: nowrap; }
.receipt-payment { padding-top: .15em; }
.receipt-footer { text-align: center; padding-top: .55em; margin-top: .65em; border-top: 1px dashed #555; font-size: .9em; }
#print-output { display: none; }
.favourites { margin-bottom: 18px; }
.favourite-option { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.favourite-option input { accent-color: var(--accent); }
.order-context .btn { max-width: 78%; overflow: hidden; text-overflow: ellipsis; }
.bill-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.bill-actions .btn { min-height: 32px; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.bill-actions .btn .icon { flex-shrink: 0; }
.bill-actions .discard-action { margin-left: auto; color: #f1aeaf; }
.line-details .line-void { color: #f1aeaf; }
.line-details .line-void .icon { width: 13px; height: 13px; }
.quick-notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.quick-notes .btn { min-height: 34px; }
.record-note { display: block; margin-top: 3px; font-size: 11px; overflow-wrap: anywhere; }
.recall-row > div:first-child { min-width: 0; }
.recall-row > .btn { flex-shrink: 0; }
.refund-confirm { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text); font-size: 13px; }
.refund-confirm input { accent-color: var(--accent); }
.cancellation-station + .cancellation-station { margin-top: 14px; }
.cancellation-station .record-actions { margin-top: 5px; align-items: center; }
.pay-rounding { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: 12px; }

.report-views { margin-bottom: 12px; }
.report-views .chip { min-width: 92px; justify-content: center; }
.report-period { align-items: center; }
.report-note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sales-amounts {
  margin: 0; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel); font-variant-numeric: tabular-nums;
}
.sales-amounts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; }
.sales-amounts > div + div { border-top: 1px solid var(--line); }
.sales-amounts dt { color: var(--muted); font-size: 13px; }
.sales-amounts dd { margin: 0; font-weight: 650; white-space: nowrap; }

.printer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; }
.printer-card { display: grid; align-content: start; min-width: 0; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.printer-card legend { color: var(--text); padding: 0 5px; font-size: 14px; font-weight: 700; }
.printer-card .btn { justify-self: start; }
.setup-copy { max-width: 65ch; margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.setup-actions { margin-top: 16px; }
.printer-destination { margin: 0 0 8px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ticket-row .printer-destination { margin: 5px 0 0; }
.settlement-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }

.quantity-picker {
  align-self: start; position: sticky; top: 12px; display: grid; gap: 6px;
  padding: 18px 4px; text-align: center; z-index: 2;
}
.quantity-picker .qty-preset { min-width: 50px; min-height: 48px; justify-content: center; padding: 0 3px; font-size: 14px; font-variant-numeric: tabular-nums; }
.quantity-picker .qty-preset:disabled { pointer-events: none; }
.quantity-picker .qty-preset[data-id="@"] { font-size: 12px; }
.report-range-form { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.menu-actions { flex-wrap: wrap; justify-content: flex-end; }
.brand[aria-current="page"] .brand-mark, .mobile-brand[aria-current="page"] { outline: 1px solid #a5bfeb; outline-offset: 2px; }
@media (max-width: 740px) {
  .quantity-picker {
    grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; position: static;
    padding: 8px 13px 0; text-align: left;
  }
}

@page customer-receipt { margin: 0; }
@media print {
  :root, body { color-scheme: light; margin: 0; background: #fff; color: #000; }
  body:has(#print-output:not(:empty)) > :not(#print-output) { display: none !important; }
  #print-output:not(:empty) { display: block; width: 100%; max-width: 76mm; color: #000; }
  #print-output .receipt { border: 0; border-radius: 0; padding: 0 2mm; }
  #print-output .receipt-meta, #print-output .receipt-note { color: #222; }
  #print-output .receipt-row { break-inside: avoid; }
  #print-output .receipt-row.grand { border-color: #000; }
  body:has(#print-output .customer-receipt) { min-width: 0; }
  #print-output:has(.customer-receipt) { page: customer-receipt; max-width: 80mm; }
  #print-output .customer-receipt { padding: 3mm 2mm; font-size: 9pt; }
  .customer-receipt :is(.receipt-heading, .receipt-identity, .receipt-items tr, .receipt-balance) { break-inside: avoid; }
}


.cloud-indicator.btn.ghost { width: 38px; min-height: 38px; padding: 0; justify-content: center; color: var(--muted); }
.cloud-indicator.btn.ghost .icon { width: 22px; height: 22px; }
.cloud-indicator.btn.ghost.online { color: #e9f2ed; }
.order-line.quantity-target { background: rgba(245, 179, 99, .08); box-shadow: 0 0 0 1px rgba(245, 179, 99, .4); border-radius: 7px; }
.line-name[type="button"] { border: 0; padding: 0; background: none; color: inherit; text-align: left; justify-self: start; }
.line-name[type="button"]:hover, .quantity-target .line-name { color: var(--accent); }
.qty .qty-value { width: auto; min-width: 26px; padding: 0 3px; color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.qty .qty-value[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.field-help { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

.cancellation-heading { margin: 16px 0 4px; font-size: 13px; }
.fee-options .field-help { grid-column: 1 / -1; flex-basis: 100%; }

.subcategory-grid { margin-bottom: 12px; }
.subcategory-card { position: relative; min-height: 74px; gap: 7px; background: linear-gradient(150deg, #302923, #222431); border-color: #594737; }
.subcategory-card > .icon { position: absolute; top: 13px; right: 12px; width: 14px; height: 14px; color: var(--accent); }
.subcategory-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--accent); background: #ebb05820; }
.subcategory-icon .icon { width: 15px; height: 15px; }
.catalog-back { margin-bottom: 12px; }
.menu-category-panel { margin-bottom: 16px; padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 13px; background: #191b26; }
.menu-category-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 0; }
.menu-category-heading :is(h2, h3) { display: flex; align-items: center; gap: 8px; margin: 0; }
.menu-category-heading h2 { font-size: 16px; }
.menu-category-heading h3 { font-size: 13px; }
.menu-category-heading .icon { width: 15px; height: 15px; color: var(--accent); }
.menu-category-heading .btn { min-height: 30px; }
.menu-category-panel .records { border-radius: 8px; }
.menu-subcategory { margin-left: 8px; padding-left: 10px; border-left: 2px solid #5a4730; }
.menu-category-empty { margin: 0; padding: 7px 0; color: var(--muted); font-size: 12px; }
.btn.ghost.danger { color: #ffada3; border-color: #6a4143; }
.discount-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(86px, 100%), 1fr)); gap: 8px; }
.discount-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; aspect-ratio: 1; min-width: 0; padding: 7px; border: 1px solid var(--control-border); border-radius: 9px; color: var(--text); background: linear-gradient(140deg, #2b2d3c, #20212d); text-align: center; font: inherit; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.discount-option strong { font-size: 15px; }
.discount-option strong, .discount-option .icon { color: var(--accent); }
.discount-option:hover, .discount-option.active { border-color: #ab7f50; background: linear-gradient(140deg, #352b25, #282530); }
.report-period { align-items: center; }
.report-range-form, .settlement-period { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: #1b1d29; }
.settlement-period { margin-bottom: 2px; }
.report-date { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 660; }
.report-range-form .report-date { display: flex; align-items: center; gap: 8px; }
.report-exports { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 500px) {
  .report-range-form { width: 100%; }
  .report-range-form .report-date { flex: 1 1 150px; min-width: 0; }
  .menu-category-panel { padding-inline: 9px; }
  .report-exports { justify-content: flex-start; }
}

.date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 140px; max-width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid var(--control-border); border-radius: 8px; background: linear-gradient(145deg, #282a39, #20222e); color: var(--text); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.date-trigger:hover { border-color: #a68057; }
.date-trigger .icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
dialog:has(.date-calendar) { width: min(382px, calc(100vw - 24px)); border-color: #695341; background: linear-gradient(150deg, #242633, #191b25 80%); }
.date-calendar { padding: 0; }
.calendar-month-bar { display: grid; grid-template-columns: 34px 1fr 34px; place-items: center; gap: 7px; min-height: 38px; margin-bottom: 12px; }
.calendar-month-bar h3 { margin: 0; font-size: 16px; font-weight: 720; text-align: center; }
.calendar-nav { width: 34px; height: 34px; border-color: var(--control-border); }
.calendar-nav[data-id="-1"] .icon { transform: rotate(180deg); }
.date-calendar table { width: 100%; table-layout: fixed; border-spacing: 3px; }
.date-calendar th { padding: 0 0 6px; color: var(--soft); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.date-calendar td { padding: 0; }
.calendar-day { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: var(--text); background: transparent; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.calendar-day.outside { color: var(--soft); }
.calendar-day.in-range { background: #3b3029; color: #f3d9aa; }
.calendar-day[aria-current="date"] { border-color: #a68057; }
.calendar-day:hover { border-color: #9a7f65; background: #31303e; }
.calendar-day.selected, .calendar-day.selected:hover { border-color: #ffd49a; background: linear-gradient(145deg, #ffd89e, #eaa74f); color: #2a1c10; font-weight: 760; }
.calendar-day:focus-visible { outline-offset: 0; }
dialog:has(.date-calendar) .dialog-foot > [data-action="pick-date"] { margin-right: auto; }
@media (max-width: 500px) {
  .report-range-form .date-trigger { width: 100%; }
}

#catalog-categories .filters { gap: 8px; margin-bottom: 17px; }
#catalog-categories .chip {
  min-height: 44px;
  gap: 7px;
  padding: 0 12px;
  font-size: 13px;
}
#catalog-categories .chip .icon { width: 17px; height: 17px; flex-shrink: 0; }
#catalog-results .section-row { margin-bottom: 9px; }
.top-right .top-date { margin-right: 5px; }
.logout-button.btn.ghost {
  width: 40px;
  min-height: 38px;
  padding: 0;
  justify-content: center;
  overflow: hidden;
  color: #dce9ff;
  border-color: #435372;
  background: linear-gradient(135deg, #2b3955, #1a2439);
}
.logout-button svg { width: 28px; height: 24px; }
.logout-button .door-frame { fill: none; stroke: currentColor; stroke-width: 1.4; }
.logout-button .door-panel { fill: #91acd3; transform-origin: 26px 16px; transition: transform .3s; }
.logout-button .runner { fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.logout-button .runner path { fill: none; }
.logout-button:is(:hover, :focus-visible) .door-panel { transform: skewY(-12deg) scaleX(.35); }
@media (prefers-reduced-motion: no-preference) {
  .logout-button:is(:hover, :focus-visible) .runner { animation: logout-run 1.15s ease-in-out; }
  @keyframes logout-run {
    0% { transform: translateX(0); }
    45% { transform: translate(10px, -2px); }
    80%, 100% { transform: translateX(21px); opacity: 0; }
  }
}

.order-context .bill-ref-button { max-width: 75%; overflow-wrap: anywhere; white-space: normal; text-align: left; }
.order-context .bill-ref-button .icon { flex-shrink: 0; }
.order-line { cursor: pointer; }
@media (hover: hover) {
  .order-line:not(.quantity-target):hover { background: #212534; }
}
@media (pointer: coarse), (max-width: 740px) {
  .line-list { scrollbar-width: none; }
  .line-list::-webkit-scrollbar { display: none; }
}

.app.login-active { display: block; padding-bottom: 0; }
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: radial-gradient(ellipse at 23% 18%, #202a40 0, transparent 55%), var(--bg);
}
.login-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  width: min(100%, 990px);
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #383e50;
  border-radius: 22px;
  background: linear-gradient(125deg, #252e41 0%, #1c202d 48%, #191c26 100%);
  box-shadow: inset 0 1px #ffffff09, 0 24px 76px #080a1290;
  animation: login-enter .36s ease-out both;
}
.login-art {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(0deg, #101827ed, #14203224 43%, #1a284147), url('login-lounge.webp') 59% 62% / cover no-repeat;
  box-shadow: inset 0 0 0 1px #c6d1e014;
}
.login-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #283b56;
  mix-blend-mode: color;
  opacity: .4;
}
.login-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: clamp(12px, 1.7vw, 21px);
  margin: clamp(25px, 4vw, 48px);
  color: #fff5e5;
}
.login-monogram {
  flex: 0 0 auto;
  width: clamp(32px, 4.6vw, 54px);
  aspect-ratio: .89;
  background: url('login-h-signature.webp') center / contain no-repeat;
}
.login-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .19em;
  white-space: nowrap;
  font: 400 clamp(48px, 6.1vw, 74px) / .95 Georgia, 'Times New Roman', serif;
  letter-spacing: -.06em;
}
.login-wordmark > span {
  color: #ebca90;
  font: 650 .18em / 1 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: .2em;
}
.login-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 4.2vw, 54px);
}
.login-content h1 {
  color: var(--text);
  font: 600 clamp(34px, 3.5vw, 43px) / 1.08 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -.055em;
}
.login-form { display: grid; gap: 14px; min-width: 0; }
.login-form .field { gap: 7px; font-size: 14px; font-weight: 550; color: #cdd3e0; }
.login-input { display: block; position: relative; }
.login-input > .icon {
  position: absolute;
  inset: 50% auto auto 14px;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #929eb5;
  pointer-events: none;
}
.login-input:focus-within > .icon { color: var(--accent); }
.login-form .field input {
  height: 46px;
  padding-inline: 42px 12px;
  border: 1px solid #42495c;
  background: #141822;
  border-radius: 9px;
  color: var(--text);
  font-size: 16px;
}
.login-form .field input:hover { border-color: #636d83; }
.login-form .field input:focus { border-color: var(--accent); outline: 2px solid #f5b66030; outline-offset: 1px; }
.login-form .error { color: var(--red); }
.login-form .error:empty { display: none; }
.login-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #3c4355;
  border-radius: 11px;
  background: #383e4e;
}
.login-keypad .login-key {
  min-height: 42px;
  justify-content: center;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: #242a38;
  box-shadow: none;
  color: #f1f2f7;
  font-size: 16px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}
.login-keypad .login-key:hover:not(:disabled) { background: #343e51; color: white; }
.login-keypad .login-key:focus-visible { outline-offset: -3px; }
.login-keypad .login-key[data-id="clear"], .login-keypad .login-key[data-id="erase"] { color: #b5c0d5; }
.login-keypad .login-key[data-id="clear"] { font-size: 13px; }
.login-keypad .login-key[data-id="erase"] { font-size: 17px; }
.login-form[aria-busy="true"] .login-keypad { opacity: .55; }
.login-pad { min-width: 0; }
.workspace-link { display: inline-flex; align-items: center; justify-content: center; color: #d5dcf0; font-size: 14px; text-underline-offset: 4px; }
.workspace-link:hover { color: var(--accent); }
.redeem-voucher { display: flex; align-items: end; gap: 9px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.redeem-voucher label { flex: 1; min-width: 0; }
.redeem-voucher input { text-transform: uppercase; }
.login-keypad.letter-grid { grid-template-columns: repeat(auto-fit, minmax(36px, 1fr)); }
.login-keypad.letter-grid .login-key { min-height: 40px; }
.pad-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pad-tools button {
  flex: 1 1 auto; min-height: 36px; min-width: 39px; padding: 3px 7px; border: 1px solid var(--control-border);
  border-radius: 6px; background: #202634; color: #ced8e8; font-size: 13px; font-weight: 600;
}
.pad-tools button:hover, .pad-tools [aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.login-pad[data-mode="numeric"] .pad-switch { flex-grow: 0; min-width: 60px; }
form[data-form="unlock-menu"] .login-pad { margin-block: 14px; }
.login-submit.btn.primary { min-height: 48px; justify-content: center; font-size: 15px; font-weight: 700; border-radius: 9px; }
.login-demo.btn.ghost { min-height: 44px; justify-content: center; gap: 9px; color: #c6cddd; border-color: #394154; font-weight: 550; }
.login-demo .icon { width: 16px; height: 16px; }
.login-busy { display: none; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.login-form[aria-busy="true"] .login-busy { display: inline-block; animation: login-spin .65s linear infinite; }
@keyframes login-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 680px) {
  .login-screen { padding: 14px; }
  .login-frame { grid-template-columns: minmax(0, 1fr); max-width: 450px; padding: 7px; border-radius: 17px; }
  .login-art { min-height: clamp(98px, 24vw, 125px); background-position: center, 60% 63%; border-radius: 11px; }
  .login-brand { margin: 16px 20px; gap: 11px; }
  .login-monogram { width: 30px; }
  .login-wordmark { font-size: 43px; }
  .login-content { padding: 20px 13px 13px; gap: 15px; }
  .login-form { gap: 12px; }
}
@media (pointer: coarse), (max-width: 740px) {
  .login-keypad .login-key { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-frame, .login-form[aria-busy="true"] .login-busy { animation: none; }
}
.htab-signature::before { content: ''; width: 22px; height: 24px; background: url('login-h-signature.webp') center / contain no-repeat; }
@media (min-width: 501px) {
  .nav-button[data-id="menu"] { margin-top: 19px; }
  .nav-button[data-id="menu"]::before { content: ''; position: absolute; inset: -12px 8px auto; height: 1px; background: var(--rail-edge); }
}
@media (max-width: 500px) {
  .rail .nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.settlement-block { margin-top: 16px; overflow: hidden; border: 1px solid #6d543b; border-radius: 12px; background: var(--panel); }
.settlement-block-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(110deg, #382d25, #252531); }
.settlement-block-icon { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border: 1px solid #795b3e; border-radius: 9px; color: var(--accent); }
.settlement-block-head h2 { font-size: 16px; line-height: 1.35; }
.settlement-block-head p, .settlement-offline { color: #c5c4cf; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.settlement-offline { margin-top: 14px; }
.settlement-bills { padding-inline: 16px; max-height: min(42vh, 24rem); overflow-y: auto; }
.settlement-bills .btn { min-height: 40px; }
.settlement-bills .record-note { overflow-wrap: anywhere; }

.category-sort-list { display: grid; gap: 5px; }
.category-sort-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.category-sort-row > span { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.category-sort-row > span .icon { width: 15px; height: 15px; color: var(--accent); }
.category-sort-row .record-actions { flex-shrink: 0; }
.category-sort-row .category-move { width: 36px; min-height: 36px; justify-content: center; padding: 0; font-size: 16px; }
.category-sort-children { display: grid; gap: 4px; margin: 0 0 3px 12px; padding-left: 7px; border-left: 1px solid var(--line); }
@media (pointer: coarse) {
  .category-sort-row .category-move { width: 44px; min-height: 44px; }
}
