:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --muted: #f9fafb;
  --line: #e5e7eb;
  --ink: #1f2937;
  --ink-muted: #6b7280;
  --accent: #d81818;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --save: #10b981;
  --save-hover: #059669;
  --navy: #7c818a;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.lk-page {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
}
.lk-embed {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

#auth-boot { display: none; padding: 48px 16px; text-align: center; color: var(--ink-muted); }
#auth-boot.is-on { display: block; }
#auth-screen { display: none; }
#auth:not([hidden]),
#auth-screen.is-on {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f8fafc;
}
#phone-wrap { display: none; }
#phone-wrap.is-on {
  display: flex;
  position: fixed;
  inset: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.lk-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .lk-card { padding: 40px; }
}
.lk-auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 40px;
  text-align: center;
}
.lk-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 28px;
}
.lk-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}
.lk-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.lk-rule {
  display: block;
  width: 18px;
  height: 1px;
  margin: 14px 0 0;
  background: #cbd5e1;
}
.lk-brand {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lk-card h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #0f172a;
}
.lk-lead {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #64748b;
}
.lk-hint {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: #94a3b8;
}
#auth #auth-form,
#auth-screen #auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#auth .auth-field,
#auth-screen .auth-field { margin: 0; }
#auth label,
#auth-screen label {
  display: block;
  margin: 0 0 6px;
  padding-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.auth-password-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  padding: 0 4px;
}
.auth-password-head label { margin: 0; padding-left: 0; }
.auth-forgot {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
  white-space: nowrap;
}
.auth-forgot:hover { color: #047857; }
#auth input,
#auth-screen input {
  width: 100%;
  height: auto;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: #0f172a;
  background: rgba(248, 250, 252, 0.5);
}
#auth input:focus,
#auth input:focus-visible,
#auth-screen input:focus,
#auth-screen input:focus-visible {
  outline: none;
  background: #fff;
  border-color: #94a3b8;
  box-shadow: none;
}
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 44px; }
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transform: translateY(-50%);
}
.auth-password-toggle:hover { color: #475569; }
.auth-password-toggle svg { width: 16px; height: 16px; }
.auth-error {
  margin: 0;
  min-height: 0;
  color: var(--accent);
  font-size: 13px;
}
.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: #10b981;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px -6px rgba(16, 185, 129, 0.35);
}
.auth-submit:hover { background: #059669; }
.auth-submit:active { transform: scale(0.98); }
.auth-submit:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 3px;
}
#auth-screen .auth-submit {
  background: #c2410c;
  box-shadow: 0 8px 16px -6px rgba(194, 65, 12, 0.35);
}
#auth-screen .auth-submit:hover { background: #9a3412; }
#auth-screen .auth-submit:focus-visible { outline-color: #c2410c; }

.lk-sidebar, .lk-desk-header { display: none; }
.lk-workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  --lk-gutter: 16px;
  --lk-hdr-h: 56px;
  --lk-hdr-pad-y: 10px;
  --lk-lead: 34px;
  --lk-hdr-gap: 10px;
  --lk-title-size: 16px;
}
.proto-header,
.lk-screen-head,
.lk-pick-head,
.kpi-screen-head,
.overlay-head {
  display: flex;
  align-items: center;
  gap: var(--lk-hdr-gap);
  height: calc(var(--lk-hdr-h) + env(safe-area-inset-top, 0px));
  min-height: calc(var(--lk-hdr-h) + env(safe-area-inset-top, 0px));
  padding: calc(var(--lk-hdr-pad-y) + env(safe-area-inset-top, 0px)) var(--lk-gutter) var(--lk-hdr-pad-y);
  box-sizing: border-box;
  flex-shrink: 0;
}
.proto-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.proto-user {
  display: flex;
  align-items: center;
  gap: var(--lk-hdr-gap);
  min-width: 0;
  margin-right: auto;
}
.proto-title,
.lk-pick-head h2,
.kpi-screen-title {
  margin: 0;
  font-size: var(--lk-title-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proto-avatar {
  display: flex;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
  justify-self: start;
}
.proto-avatar:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}
.proto-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.icon-btn svg { width: 14px; height: 14px; }
.dot-alert {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ef4444;
  border: 1.5px solid #fff;
}
.dot-live {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
}
.dot-live-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #34d399;
  opacity: 0.75;
  animation: lk-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.dot-live-core {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
  border: 1.5px solid #fff;
  box-sizing: border-box;
}
.dot-live.is-off .dot-live-ping { display: none; }
.dot-live.is-off .dot-live-core { background: #94a3b8; }
.proto-sync {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}
.proto-sync .dot-status { font-size: 10px; font-weight: 600; }
@keyframes lk-ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}
.avatar {
  width: var(--lk-lead);
  height: var(--lk-lead);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.site-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.lk-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 var(--lk-gutter) 16px;
  position: relative;
}
.phone.is-order .proto-header { display: none; }
.phone.is-order .tabbar { display: none; }
.phone.is-kpi .proto-header { display: none; }
.phone.is-kpi .tabbar { display: none; }
.phone.is-more .proto-header { display: none; }
.phone.is-more .tabbar { display: none; }
.lk-pane:has(.order-page),
.lk-pane:has(.kpi-screen),
.lk-pane:has(.more-screen) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.lk-embed {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: var(--bg);
  font-size: 12px;
  color: var(--ink);
}
.lk-embed .lk-workspace { flex: 1; }
.lk-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  margin-right: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.lk-back svg { width: 16px; height: 16px; }
.muted { color: var(--ink-muted); }

.dot-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}
.dot-status svg { width: 6px; height: 6px; flex-shrink: 0; fill: currentColor; }
.dot-status--ok { color: #059669; }
.dot-status--wait { color: #d97706; }
.dot-status--pre { color: #ca8a04; }
.dot-status--err { color: #e11d48; }
.dot-status--run { color: #2563eb; }
.dot-status--idle { color: #64748b; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #64748b; }
.meta-sep { color: #cbd5e1; }
.check-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.check-meta-sep { color: #cbd5e1; }
.check-meta-item {
  font-weight: 500;
  color: #64748b;
}
.check-meta-station {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty { padding: 32px 8px; text-align: center; font-style: italic; color: #94a3b8; }

.kpi-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 2px 12px;
  font-size: 13px;
  font-weight: 700;
}
.kpi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: 115px;
  gap: 10px;
  margin-top: 4px;
  padding-bottom: 72px;
  width: 100%;
  min-width: 0;
}
.kpi {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 12px 12px 10px;
  text-align: left;
  cursor: default;
  font: inherit;
  color: inherit;
  min-width: 0;
  max-width: 100%;
  min-height: 115px;
  height: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
button.kpi { cursor: pointer; width: 100%; }
button.kpi:active { transform: scale(0.97); }
button.kpi:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}
.kpi-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.kpi-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin-top: auto;
  gap: 8px;
}
.kpi-value-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
.kpi-value {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.kpi-trend {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.section-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; }

.hall-pick {
  display: flex;
  align-items: flex-start;
  margin: 0 -4px 0;
}
.hall-pick--split { align-items: flex-start; }
.hall-pick-pin {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  padding: 4px 0 8px 4px;
}
.hall-chip-sep {
  flex: 0 0 1px;
  width: 1px;
  height: 32px;
  margin: 8px 10px 0;
  background: #e2e8f0;
  border-radius: 1px;
}
.hall-chips {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hall-chips::-webkit-scrollbar { display: none; }
.hall-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 56px;
  width: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.hall-chip:active { transform: scale(0.95); }
.hall-chip:focus { outline: none; }
.hall-chip:focus-visible .hall-tile {
  outline: 2px solid #cbd5e1;
  outline-offset: 2px;
}
.hall-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  background: #fff;
  color: #94a3b8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hall-chip:hover .hall-tile { border-color: #a7f3d0; }
.hall-chip.is-on .hall-tile {
  background: #059669;
  border-color: #059669;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.hall-tile-num {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hall-tile-unit {
  margin-top: 1px;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hall-tile-ico {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}
.hall-tile-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  margin-top: 6px;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #64748b;
}
.hall-chip.is-on .hall-tile-label {
  font-size: 8px;
  font-weight: 700;
  color: #0f172a;
}
.hall-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 4px 12px;
  font-size: 12px;
  color: #64748b;
}
.hall-sum { font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }

.table-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 72px; align-items: stretch; }
.table-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 77px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.table-tile.free {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.7);
  box-shadow: none;
}
.table-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}
.table-tile-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.table-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f172a;
}
.table-tile.free .table-name { color: #64748b; }
.table-amt {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.table-amt.is-ghost { visibility: hidden; }
.table-tile-foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f8fafc;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  color: #94a3b8;
}
.table-tile-foot .check-meta-sep { margin: 0 4px; }
.table-tile-foot .check-meta-item { color: #94a3b8; }
.table-tile-foot.is-empty { border-top: 0; padding-top: 0; }
.table-tile:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.table-sum { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.bill-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 8px;
  padding: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.bill-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 -1px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.bill-tab.is-on { color: #0f172a; }
.bill-tab.is-on.bill-tab--mine,
.bill-tab.is-on.bill-tab--open { border-bottom-color: #2563eb; }
.bill-tab.is-on.bill-tab--closed { border-bottom-color: #059669; }
.bill-tab-count {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.filter-grid {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.filter-grid.two { grid-template-columns: 1fr 1fr; }
.bill-scope {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: inherit;
}
.card-list {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #fff;
  margin-bottom: 88px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.card-list .list-row:last-child { border-bottom: 0; }
.row-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
}
.row-ico svg { width: 16px; height: 16px; }
.grow { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 12px; font-weight: 700; }
.row-sub { display: block; margin-top: 2px; font-size: 11px; color: #64748b; }
.row-amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chev { color: #cbd5e1; font-size: 16px; }

.bill-list { display: grid; gap: 8px; }
.bill-row {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.bill-row strong { display: block; margin-bottom: 0; font-size: 13px; }
.bill-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.bill-row--static { cursor: default; }

.more-lead {
  margin: 0 0 12px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}
.more-menu {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.more-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.more-menu > :last-child { border-bottom: 0; }
.more-row--static { cursor: default; }
.more-row-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}
.more-row-ico svg { width: 18px; height: 18px; }
.more-row .row-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.more-row .row-sub { font-size: 12px; color: #94a3b8; }
.more-ver {
  margin-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}
.more-form { display: grid; gap: 12px; }
.more-form .field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.more-form .field input,
.more-form .field textarea {
  font: inherit;
  color: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.more-send {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--save);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.more-send:disabled { opacity: 0.55; }
.more-screen {
  background: var(--bg);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.more-screen-head {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.more-screen-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px var(--lk-gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}

.overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.overlay-back { border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.overlay-body { flex: 1; overflow: auto; padding: 0 var(--lk-gutter) 24px; }
.lk-back-btn {
  width: var(--lk-lead);
  height: var(--lk-lead);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #0f172a;
  cursor: pointer;
  box-shadow: none;
}
.lk-back-btn svg { width: 22px; height: 22px; }
.lk-back-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.order-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.order-sticky {
  flex-shrink: 0;
  padding: 0 0 12px;
  background: var(--bg);
  z-index: 10;
}
.order-local-head { margin: 0; }
.order-local-main { flex: 1; min-width: 0; }
.order-sticky .order-sub,
.order-sticky .order-meta,
.order-sticky .pre-banner,
.order-sticky .seg,
.order-sticky .search-bar,
.order-sticky .cat-back {
  margin-left: var(--lk-gutter);
  margin-right: var(--lk-gutter);
}
.order-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 var(--lk-gutter) 12px;
}
.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.order-head-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.order-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  font-size: var(--lk-title-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.order-waiter {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.order-opened {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bill-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 42%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bill-chip.is-wait {
  color: #b45309;
  background: #fff7ed;
}
.bill-chip.is-got {
  color: #047857;
  background: #ecfdf5;
}
.bill-spin {
  width: 10px;
  height: 10px;
  border: 1.5px solid #fdba74;
  border-top-color: #ea580c;
  border-radius: 999px;
  animation: bill-spin 0.8s linear infinite;
}
.bill-chip.is-got .bill-spin { display: none; }
@keyframes bill-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bill-spin { animation: none; border-top-color: #fdba74; }
}
.order-head .table-sum {
  font-size: var(--lk-title-size);
  letter-spacing: -0.02em;
}
.order-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}
.seg-count { font-weight: 800; }
.order-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
}
.order-meta .dot-status { flex-shrink: 0; }
.order-meta .check-meta { margin: 0; }
.kpi-screen {
  background: var(--bg);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.kpi-screen-head {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.kpi-screen-title {
  flex: 1;
  min-width: 0;
  color: #0f172a;
  pointer-events: none;
}
.kpi-screen-body {
  padding: 16px var(--lk-gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}
.kpi-screen .card-list { margin-bottom: 16px; }
.kpi-hero { margin: 8px 0 16px; }
.kpi-hero-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.kpi-hero-value {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kpi-hero-unit {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #64748b;
}
.kpi-hero-note {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 0;
  padding: 3px;
  background: #e5e7eb;
  border-radius: 999px;
}
.seg-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.22, 0.8, 0.32, 1);
  pointer-events: none;
}
.seg[data-on="cart"] .seg-thumb { transform: translateX(100%); }
.seg button {
  position: relative;
  z-index: 1;
  min-height: 36px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 999px;
}
.seg button.is-on { color: #0f172a; }
.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .seg-thumb { transition: none; }
}
.pre-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: #fffbeb;
  border: 0;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  color: #78350f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
}
.pre-banner .dot-status { flex-shrink: 0; }
.pre-banner-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cart-list {
  display: grid;
  gap: 8px;
  padding: 4px 0 8px;
}
.item-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.item-card .dish-step-btn {
  background: #f1f5f9;
  color: #334155;
}
.item-card .dish-step-btn:active { background: #e2e8f0; }
.item-body { flex: 1; min-width: 0; }
.item-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.item-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}
.item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.item-sum {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.item-qty { font-size: 12px; font-weight: 700; color: #64748b; }
.item-card .dish-step { margin-left: 0; }
.item-name { display: flex; flex-direction: column; gap: 2px; }
.item-name small { color: var(--ink-muted); font-size: 11px; }
.item-row.is-locked {
  opacity: 1;
  background: #f8fafc;
  cursor: default;
}
.item-row.is-locked .item-body strong { color: #475569; }
.item-kitchen {
  display: inline-flex;
  margin-top: 4px;
}
.item-kitchen .dot-status { font-size: 11px; }
.cmd-row { display: grid; gap: 8px; margin-top: 20px; }
.cmd-sticky {
  position: relative;
  z-index: 12;
  flex-shrink: 0;
  display: grid;
  gap: 8px;
  padding: 10px var(--lk-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  box-shadow: 0 -1px 0 var(--line);
}
.cmd-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}
.cmd-cta:has(#do-precheck) {
  grid-template-columns: 1fr 1fr;
}
.cmd-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.cmd-btn--kitchen { background: var(--save); color: #fff; }
.cmd-btn--kitchen:not(:disabled):hover { background: var(--save-hover); }
.cmd-cta .cmd-btn--kitchen {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  background: #059669;
}
.cmd-cta .cmd-btn--kitchen:not(:disabled):hover { background: #047857; }
.cmd-btn--precheck { background: #fff; color: #0f172a; border: 1px solid var(--line); }
.cmd-cta .cmd-btn--check {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--line);
}
.cmd-cta .cmd-btn--check:not(.is-blocked):not(:disabled):hover {
  background: #f9fafb;
}
.cmd-cta .cmd-btn--check.is-blocked,
.cmd-cta .cmd-btn--check[aria-disabled="true"] {
  cursor: not-allowed;
  background: #e5e7eb;
  color: #9ca3af;
}
.cmd-cta .cmd-btn--kitchen:disabled {
  opacity: 1;
  background: #e5e7eb;
  color: #9ca3af;
}
.cmd-cta .cmd-btn--check:disabled {
  opacity: 1;
  background: #e5e7eb;
  color: #9ca3af;
}
.cmd-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cmd-cta .cmd-btn:disabled { opacity: 1; }
.search-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 12px;
  padding: 0 0 8px;
  background: var(--bg);
}
.search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.search-bar input:focus {
  outline: none;
  border-color: #94a3b8;
}
.order-sticky .search-bar { background: #fff; }
.search-bar--nested { position: static; margin: 12px 0 20px; padding: 0; }
.cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.cat-chip.is-on { background: #eff6ff; border-color: var(--brand); color: #1d4ed8; }
.cat-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  min-height: 36px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}
.cat-back svg { width: 16px; height: 16px; }
.dish-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.order-scroll .catalog { padding-top: 12px; }
.dish-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #f3f4f6;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.16s ease;
}
.dish-tile.is-in {
  box-shadow: var(--shadow-sm);
  border-color: #93c5fd;
}
.dish-mod {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  opacity: 0.28;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dish-mod:hover,
.dish-mod:focus-visible { opacity: 0.7; }
.dish-mod:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.dish-mod svg { width: 14px; height: 14px; }
.dish-tile strong { padding-right: 28px; font-size: 13px; }
.dish-foot {
  margin-top: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
}
.dish-price {
  font-size: 12px;
  color: #475569;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.dish-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.dish-price.is-out,
.dish-step.is-out {
  position: absolute;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}
.dish-step-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dish-step-btn:active { background: #e2e8f0; }
.dish-step-qty {
  display: inline-block;
  min-width: 32px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
@keyframes lk-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.lk-pop { animation: lk-pop 0.1s ease; }
@keyframes lk-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.lk-shake { animation: lk-shake 0.35s ease; }
@media (prefers-reduced-motion: reduce) {
  .lk-pop { animation: none; }
  .lk-shake { animation: none; }
  .dish-plus { animation: none; opacity: 0; }
  .dish-tile,
  .dish-price,
  .dish-step { transition: none; }
}
.cat-card { min-height: 96px; justify-content: flex-end; }
.cat-card strong { font-size: 15px; }
.cat-card span { font-size: 12px; color: #64748b; }
.dish-tile--hot { background: #fef2f2; }
.dish-tile--cold { background: #eff6ff; }
.dish-tile--salad { background: #f0fdf4; }
.dish-tile--sweet { background: #fffbeb; }
.hall-chip:active .hall-tile,
.mine-card:active,
.table-card:active,
.lk-fab:active,
.cmd-btn:not(:disabled):active { opacity: 0.88; }
.mod-list { display: grid; gap: 6px; margin: 0 0 12px; }
.mod-row {
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid transparent;
  border-radius: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.mod-row.is-on { border-color: #10b981; background: #ecfdf5; color: #047857; }
.lk-sheet-root {
  position: absolute;
  inset: 0;
  z-index: 20;
}
.lk-sheet-back {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.32);
  cursor: pointer;
}
.lk-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 88%;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}
.sheet-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}
.sheet-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.sheet-text { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.lk-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(8px + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 30;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.32, 1), opacity 0.22s ease;
}
.lk-toast.is-on {
  transform: translateY(0);
  opacity: 1;
}
.lk-toast--ok {
  background: #ecfdf5;
  color: #047857;
}
.lk-toast--warn {
  background: #fffbeb;
  color: #b45309;
}
.lk-toast--err {
  background: #fef2f2;
  color: #be123c;
}
@media (prefers-reduced-motion: reduce) {
  .lk-toast {
    transform: none;
    transition: opacity 0.15s ease;
  }
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar button {
  border: 0;
  background: none;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 2px 10px;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.tabbar button svg { width: 20px; height: 20px; stroke-width: 1.5; }
.tabbar button.is-on { color: #2563eb; }

.lk-desk-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lk-fab {
  position: absolute;
  right: 16px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.lk-fab span { font-size: 18px; line-height: 1; }
.table-card--foreign { opacity: 0.5; }
.waiter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}
.waiter-chips::-webkit-scrollbar { display: none; }
.mine-list { display: grid; gap: 8px; padding-bottom: 72px; }
.mine-card {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.mine-card strong { font-size: 16px; font-weight: 800; }
.mine-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: #64748b;
}
.mine-guests {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mine-guests svg { width: 14px; height: 14px; }
.mine-dishes {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.free-pick {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.free-pick button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.free-pick button:last-child { border-bottom: 0; }
.free-pick button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.order-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.order-tab.is-off { display: none; }
.cart-foot {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.dish-tile { position: relative; }
.dish-plus {
  position: absolute;
  right: 10px;
  top: 36px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  color: #047857;
  pointer-events: none;
  animation: dish-plus 0.42s ease forwards;
}
@keyframes dish-plus {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.86); }
}
.mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.mod-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.mod-chip.is-on { border-color: var(--brand); background: #eff6ff; color: #1d4ed8; }
.dish-tile--bar { background: #eff6ff; }
.dish-tile--kitchen { background: #ecfdf5; }
.item-swipe {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.item-del {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  border: 0;
  background: #e11d48;
  color: #fff;
  cursor: pointer;
}
.item-del svg { width: 18px; height: 18px; }
.item-swipe .item-row {
  position: relative;
  background: #fff;
  z-index: 1;
  transition: transform 0.12s ease;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #e2e8f0;
  color: #0f172a;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.qty-btn:active { background: #cbd5e1; }
.qty-val { font-size: 18px; font-weight: 800; min-width: 24px; text-align: center; }
.lk-sheet .field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-muted); margin: 0 0 12px; }
.lk-sheet .field textarea {
  font: inherit;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #f8fafc;
}
.lk-sheet .field textarea:focus {
  outline: none;
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}
.cmd-btn--done {
  background: #0f172a;
  color: #fff;
  min-height: 48px;
  font-size: 15px;
}
.cmd-btn--done:not(:disabled):hover { background: #1e293b; }
.cmd-btn--danger {
  background: #fef2f2;
  color: #dc2626;
  border: 0;
}
.cmd-btn--danger:not(:disabled):hover { background: #fee2e2; }
.lk-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.lk-sheet.is-sync {
  background: #f3f4f6;
  padding-top: 12px;
}
.lk-sheet.is-sync .lk-sheet-handle { background: #d1d5db; }
.sync-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.sync-head.is-lined {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.sync-head-copy { min-width: 0; }
.sync-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
}
.sync-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}
.sync-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-top: -2px;
}
.sync-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.sync-icon-btn svg { width: 18px; height: 18px; }
.sync-icon-btn:disabled { opacity: 0.45; }
.sync-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.sync-banner--ok { background: #ecfdf5; color: #047857; }
.sync-banner--wait { background: #fffbeb; color: #b45309; }
.sync-banner--err { background: #fef2f2; color: #e11d48; }
.sync-facts {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 16px;
}
.sync-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #64748b;
}
.sync-fact + .sync-fact { border-top: 1px solid #f1f5f9; }
.sync-fact strong { font-weight: 700; color: #0f172a; }
.sync-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.sync-empty {
  margin: 0;
  padding: 16px 4px;
  font-size: 13px;
  color: #94a3b8;
}
.sync-agent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}
.sync-agent + .sync-agent { margin-top: 8px; }
.sync-agent-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #94a3b8;
  flex-shrink: 0;
}
.sync-agent-dot--ok { background: #10b981; }
.sync-agent-dot--warn { background: #d97706; }
.sync-agent-dot--offline { background: #e11d48; }
.sync-agent-dot--never { background: #94a3b8; }
.sync-agent-main { min-width: 0; flex: 1; }
.sync-agent-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.sync-agent-top strong {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.sync-agent-ago {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  flex-shrink: 0;
}
.sync-agent-meta {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}
.note-list {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2px 12px;
  margin: 0 0 16px;
}
.note-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
}
.note-list .note-row + .note-row,
.lk-sheet.is-notes .note-row + .note-row {
  border-top: 1px solid #f1f5f9;
}
.note-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #94a3b8;
  flex-shrink: 0;
}
.note-dot--ok { background: #10b981; }
.note-dot--wait { background: #d97706; }
.note-dot--err { background: #e11d48; }
.note-dot--idle { background: #94a3b8; }
.note-main { min-width: 0; flex: 1; }
.note-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.note-cat {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.note-cat span {
  font-weight: 700;
  color: #64748b;
}
.note-time {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  flex-shrink: 0;
}
.note-title {
  display: block;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.note-detail {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}
.lk-sheet-body {
  overflow: auto;
  min-height: 0;
}
.lk-modal-root {
  position: absolute;
  inset: 0;
  z-index: 40;
}
.lk-modal-back {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
}
.lk-modal {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 24px 16px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.lk-modal-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #fffbeb;
  color: #f59e0b;
}
.lk-modal-ico svg { width: 24px; height: 24px; }
.lk-modal h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  color: #0f172a;
}
.lk-modal-lead {
  margin: 8px 0 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: #64748b;
}
.lk-modal-actions { display: grid; gap: 8px; }
.lk-modal .cmd-btn { min-height: 48px; }

.lk-pick-root {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  background: var(--bg);
}
.lk-pick {
  width: 100%;
  max-width: 28rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.lk-pick-head h2 {
  flex: 1;
  min-width: 0;
}
.lk-pick-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 var(--lk-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
}

@keyframes lk-slide-in {
  from { transform: translateX(10px); }
  to { transform: none; }
}
@keyframes lk-slide-back {
  from { transform: translateX(-8px); }
  to { transform: none; }
}
.lk-pane.lk-slide-in { animation: lk-slide-in 0.28s cubic-bezier(0.22, 0.8, 0.32, 1); }
.lk-pane.lk-slide-back { animation: lk-slide-back 0.24s cubic-bezier(0.22, 0.8, 0.32, 1); }
@media (prefers-reduced-motion: reduce) {
  .lk-pane.lk-slide-in,
  .lk-pane.lk-slide-back { animation: none; }
}

@media (min-width: 960px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .lk-sidebar {
    display: flex;
    flex-direction: column;
    width: 248px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
  }
  .lk-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
  }
  .lk-nav { padding: 12px 8px; display: grid; gap: 2px; }
  .lk-nav-group {
    margin: 12px 8px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
  }
  .lk-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
  }
  .lk-nav a.is-on { background: #f3f4f6; color: #2563eb; }
  .lk-sidebar-foot { margin-top: auto; padding: 12px 16px; color: var(--ink-muted); font-size: 11px; }
  .lk-desk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .tabbar { display: none; }
  .phone .proto-header { display: none; }
  .phone.is-order .order-local-head,
  .phone.is-kpi .kpi-screen-head,
  .phone.is-more .more-screen-head {
    height: var(--lk-hdr-h);
    min-height: var(--lk-hdr-h);
    padding-top: var(--lk-hdr-pad-y);
  }
  .phone.is-order .lk-back-btn { display: none; }
  .phone.is-kpi .kpi-screen-head .lk-back-btn { display: none; }
  .phone.is-more .more-screen-head .lk-back-btn { display: none; }
  .lk-fab { bottom: 24px; }
  .phone { --lk-gutter: 24px; }
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
