:root {
  --bg: #0B0C10;
  --panel: #15171D;
  --panel-2: #1C1F27;
  --border: #2A2D36;
  --lime: #B6FF3B;
  --lime-dim: #8FCC2A;
  --red: #FF5C5C;
  --amber: #FFB020;
  --text: #F2F3F5;
  --muted: #8A8F9C;
}

/* Bright theme — driver app only (toggle in driver-app.js), for drivers who
   find the dark theme hard to read in daylight. Same variable names as the
   dark palette above, so every component picks it up automatically without
   a second set of rules. Accent colors are darkened from the neon dark-theme
   values because they're also used as plain text on --bg/--panel here, not
   just as button backgrounds. */
:root[data-theme="bright"] {
  --bg: #F5F6F8;
  --panel: #FFFFFF;
  --panel-2: #ECEEF2;
  --border: #D7DAE1;
  --lime: #5C8A00;
  --lime-dim: #4A7100;
  --red: #C23B3B;
  --amber: #A8650A;
  --text: #14161A;
  --muted: #5B6270;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.num { font-family: 'SF Mono', 'Courier New', monospace; }

header.app-header {
  flex-wrap: wrap; gap: 8px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.logo { font-weight: 800; font-size: 19px; letter-spacing: 0.02em; }
.logo-mark { color: var(--lime); margin-right: 4px; }
.logo-accent { color: var(--lime); }

.cart-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-badge {
  background: var(--lime);
  color: #0B0C10;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
}

.disclaimer {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  padding: 8px 20px;
  line-height: 1.4;
}
.disclaimer a { color: var(--lime); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 80px;
  display: grid;
  gap: 22px;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}
.hero h1 .accent { color: var(--lime); }
.hero-sub { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 520px; }
.hero-sub b, .hero-sub strong { color: var(--text); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.stat-tile .stat-label { font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.stat-tile .stat-value { font-size: 15px; font-weight: 800; }
.stat-tile .stat-sub { font-size: 20px; font-weight: 800; }
.stat-tile .stat-value.up, .stat-tile .stat-sub.up { color: var(--lime); }
.stat-tile .stat-value.down, .stat-tile .stat-sub.down { color: var(--red); }
.stat-tile .stat-value.amber { color: var(--amber); }

.controls { display: flex; flex-direction: column; gap: 10px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-chip.selected { border-color: var(--lime); color: var(--lime); }

.sort-row { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; margin-right: 2px; }
.sort-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.sort-btn.selected { border-color: var(--lime); color: var(--lime); }

.dish-feed { display: grid; gap: 12px; }
.dish-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.dish-card:hover { border-color: var(--lime-dim); }
.dish-card .dish-top { display: flex; gap: 10px; align-items: flex-start; }
.dish-card img.dish-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.dish-issuer { font-size: 10px; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.issuer-badge { width: 16px; height: 16px; border-radius: 50%; background: #fff; padding: 1px; flex: none; object-fit: contain; }
.dish-name { font-size: 15px; font-weight: 800; margin: 2px 0 3px; }
.dish-desc { font-size: 12px; color: var(--muted); line-height: 1.35; }

.dish-mid { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sparkline { flex: 1; height: 34px; }
.sparkline path { fill: none; stroke-width: 1.6; }
.sparkline.up path { stroke: var(--lime); }
.sparkline.down path { stroke: var(--red); }

.dish-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.discount-block .disc-label { font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; }
.discount-block .disc-value { font-size: 20px; font-weight: 800; }
.discount-block .disc-value.up { color: var(--lime); }
.discount-block .disc-value.down { color: var(--red); }
.pay-block { text-align: right; }
.pay-block .pay-label { font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; }
.pay-block .pay-value { font-size: 15px; font-weight: 800; }
.pay-block .pay-strike { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-left: 4px; }

.lock-btn {
  background: var(--lime);
  color: #0B0C10;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.lock-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Detail / lock modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
}
.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 360px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.detail-modal .detail-photo {
  width: 100%; height: 160px; background-size: cover; background-position: center;
  border-radius: 16px 16px 0 0;
}
.detail-modal .detail-body { padding: 18px; }
.detail-modal .detail-issuer { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; }
.detail-modal .detail-issuer .issuer-badge { width: 20px; height: 20px; }
.detail-modal .detail-name { font-size: 19px; font-weight: 800; margin: 3px 0 6px; }
.detail-modal .detail-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-bottom: 10px; }
.ingredients-label { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 6px; }
.ingredients-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ingredient-chip {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; color: var(--text);
}
.detail-modal .discount-current-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; }
.detail-modal .discount-current { font-size: 40px; font-weight: 800; margin: 2px 0 12px; }
.detail-modal .discount-current.up { color: var(--lime); }
.detail-modal .discount-current.down { color: var(--red); }
.hold-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 7px; cursor: pointer; margin-bottom: 14px;
}
.hold-btn.held { border-color: var(--amber); color: var(--amber); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qty-label { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; font-weight: 700; }
.qty-stepper { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text); font-size: 16px; font-weight: 800; cursor: pointer; line-height: 1;
}
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-value { font-size: 15px; font-weight: 800; min-width: 18px; text-align: center; }
.price-breakdown { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin-bottom: 14px; }
.price-breakdown .pb-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.price-breakdown .pb-row.total { font-weight: 800; font-size: 15px; }
.price-breakdown .pb-row .pb-disc { color: var(--lime); }
.lock-cta {
  width: 100%; background: var(--lime); color: #0B0C10; border: none; border-radius: 10px;
  padding: 13px; font-size: 14px; font-weight: 800; cursor: pointer;
}
.fine-print { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin-top: 10px; }
/* Sticky inside the scrolling popup, so it is always on screen and reachable. */
.modal-close {
  position: sticky; top: 10px; z-index: 5; display: block;
  margin: 10px 10px -46px auto;
  background: rgba(0,0,0,0.65); color: white; border: 1px solid rgba(255,255,255,0.25);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
  touch-action: manipulation;
}
.detail-back-btn {
  width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; cursor: pointer; touch-action: manipulation;
}

/* Cart modal */
.cart-modal { padding: 18px; }
.cart-modal h3 { margin: 0 0 12px; }
.cart-item { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cart-item .ci-name { font-weight: 700; }
.cart-item .ci-qty { color: var(--muted); font-weight: 600; }
.cart-item .ci-disc { color: var(--lime); font-size: 11px; }
.cart-total { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hidden { display: none !important; }
.empty-note { color: var(--muted); font-size: 12.5px; }

.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--lime); color: #0B0C10; padding: 12px 18px; border-radius: 10px;
  font-weight: 700; font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  z-index: 60; max-width: 300px;
}
.toast.amber { background: var(--amber); }

/* ---- Driver app ---- */

.driver-picker { display: flex; flex-direction: column; gap: 8px; }
.driver-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--panel); cursor: pointer;
}
.driver-chip:hover { border-color: var(--lime-dim); }
.driver-chip .dc-name { font-weight: 700; font-size: 14px; }
.status-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; }
.status-badge.verified { background: rgba(182,255,59,0.15); color: var(--lime); }
.status-badge.pending { background: rgba(255,176,32,0.15); color: var(--amber); }
.status-badge.rejected { background: rgba(255,92,92,0.15); color: var(--red); }

.banner { border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.banner.amber { background: rgba(255,176,32,0.12); border: 1px solid var(--amber); color: var(--amber); }
.banner.red { background: rgba(255,92,92,0.12); border: 1px solid var(--red); color: var(--red); }

.toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.toggle-switch {
  position: relative; width: 44px; height: 25px; border-radius: 999px;
  background: var(--border); cursor: pointer; transition: background 0.15s; flex: none;
}
.toggle-switch.on { background: var(--lime); }
.toggle-switch .knob {
  position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: #fff; transition: left 0.15s;
}
.toggle-switch.on .knob { left: 21px; }
.toggle-switch.disabled { opacity: 0.4; cursor: not-allowed; }
.toggle-label { font-size: 13px; font-weight: 700; }

.tab-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.tab-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 8px; cursor: pointer;
}
.tab-btn.selected { border-color: var(--lime); color: var(--lime); }

.job-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
}
.job-card .jc-dishes { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.job-card .jc-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.job-card .jc-earn { font-size: 20px; font-weight: 800; color: var(--lime); }
.job-card .jc-earn-label { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.job-card .jc-row { display: flex; justify-content: space-between; align-items: flex-end; }

.earn-summary { text-align: center; padding: 24px 0; margin-bottom: 16px; }
.earn-summary .es-total { font-size: 40px; font-weight: 800; color: var(--lime); }
.earn-summary .es-label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.earn-row { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.earn-row .er-date { color: var(--muted); font-size: 11.5px; }

.profile-form { display: grid; gap: 10px; margin-bottom: 16px; }
.profile-form input {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font-size: 13px;
}

/* ---- Category browser ---- */

.category-section { display: flex; flex-direction: column; gap: 10px; }
.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.category-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.category-card:hover { border-color: var(--lime-dim); }
.category-card .cc-emoji { font-size: 26px; }
.category-card .cc-name { font-size: 12.5px; font-weight: 700; }
.category-card .cc-count { font-size: 10.5px; color: var(--muted); }

.restaurant-list-modal h3 { margin: 0 0 4px; }
.restaurant-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.restaurant-row:last-child { border-bottom: none; }
.restaurant-row:hover { background: var(--panel-2); }
.restaurant-row img { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #fff; padding: 2px; }
.restaurant-row .rr-name { font-weight: 700; font-size: 14px; }
.restaurant-row .rr-meta { font-size: 11.5px; color: var(--muted); }

.login-modal { padding: 20px; }
.login-modal h3 { margin: 0 0 4px; }


/* ---- Price Lock vs Buy Now, grouped basket, orders ---- */
.dish-actions { display: flex; gap: 8px; margin-top: 10px; }
.dish-actions .lock-btn, .dish-actions .buy-btn { flex: 1; padding: 9px 10px; }
.buy-btn {
  background: transparent; color: var(--text); border: 1px solid var(--lime-dim); border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.buy-cta {
  width: 100%; margin-top: 8px; background: transparent; color: var(--text); border: 1px solid var(--lime-dim);
  border-radius: 10px; padding: 12px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.lock-cta:disabled { opacity: 0.45; cursor: not-allowed; }

.cart-modal { max-height: 90vh; }
.cart-group { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; background: var(--panel-2); }
.cg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.issuer-badge.cg-badge { width: 26px; height: 26px; }
.cg-title { font-weight: 800; font-size: 13.5px; }
.cg-sub { font-size: 11px; color: var(--muted); }
.cg-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-top: 4px; }
.cart-group .cart-item { gap: 10px; }
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 700; }
.cart-item .ci-remove { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.ci-live { color: var(--amber); font-size: 11px; }
.ci-meta { color: var(--muted); font-size: 10.5px; margin-top: 1px; }
.ci-expired { color: var(--red); font-size: 11px; }
.ci-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mini-btn { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 5px 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.cart-total-row.sub { font-weight: 600; font-size: 13px; color: var(--muted); }
.so-note { font-size: 11.5px; color: var(--lime); margin: 0; }
.so-note.amber { color: var(--amber); }
.so-actions { display: flex; flex-direction: column; gap: 8px; }

.orders-modal { padding: 18px; }
.orders-modal h3 { margin: 0 0 12px; }
.order-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--panel-2); }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.oc-ref { font-family: 'SF Mono', 'Courier New', monospace; font-weight: 800; font-size: 13px; }
.status-pill { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--border); color: var(--text); text-align: right; }
.status-pill.placed { background: rgba(255,176,32,0.18); color: var(--amber); }
.status-pill.accepted { background: rgba(182,255,59,0.16); color: var(--lime); }
.status-pill.delivered { background: rgba(182,255,59,0.28); color: var(--lime); }
.status-pill.cancelled { background: rgba(255,92,92,0.18); color: var(--red); }
.oc-rest { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.oc-time { margin-left: auto; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.oc-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 2px 0; }
.oc-line.sub { color: var(--muted); font-size: 12px; }
.oc-line.total { font-weight: 800; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; }
.oc-lock { color: var(--lime); font-size: 10.5px; }

@media (max-width: 430px) {
  .cart-btn .btn-label { display: none; }
  header.app-header { padding-left: 14px; padding-right: 14px; flex-wrap: nowrap; }
  header.app-header .logo { font-size: 16px; }
  header.app-header .btn-outline { padding: 6px 9px; font-size: 11.5px; }
  header.app-header .cart-btn { padding: 7px 9px; }
}

.addr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.lock-btn:disabled, .buy-btn:disabled, .lock-cta:disabled, .buy-cta:disabled { opacity: 0.4; cursor: not-allowed; }

/* Brand wordmark in headers (replaces the old text logo) */
.logo-img { height: 26px; width: auto; display: block; }
@media (max-width: 430px) { header.app-header .logo-img { height: 22px; } }

/* Continent silhouettes on the cuisine cards */
.category-card .cc-emoji { display: flex; justify-content: center; }
.cc-icon { width: 52px; height: 52px; display: block; }
.cc-icon-sm { width: 26px; height: 26px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.rl-title { display: flex; align-items: center; }

/* Restaurant page + clickable restaurant names */
.issuer-link { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: inherit; text-decoration: none; }
.issuer-link:hover { text-decoration: underline; }
.issuer-link-cta { margin-left: 8px; color: var(--lime); font-weight: 700; letter-spacing: 0; }
.restaurant-modal { padding-bottom: 16px; }
.restaurant-modal #restaurantContent { padding: 18px; }
.rm-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; margin-bottom: 12px; }
.rm-logo { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; flex: none; }
.rm-name { font-size: 19px; font-weight: 800; }
.rm-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rm-note { margin-bottom: 10px; }
.rm-section { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; margin: 14px 0 6px; font-weight: 700; }
.rm-dish { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.rm-dish:last-of-type { border-bottom: none; }
.rm-dish-photo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.rm-dish-info { flex: 1; min-width: 0; }
.rm-dish-name { font-weight: 700; font-size: 14px; }
.rm-dish-desc { font-size: 11.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rm-dish-price { text-align: right; flex: none; }
.rm-disc { font-weight: 800; font-size: 14px; }
.rm-disc.up { color: var(--lime); }
.rm-disc.down { color: var(--red); }
.rm-pay { font-size: 12px; }

/* Admin: catalog management */
.cat-form { gap: 10px; align-items: flex-end; }
.cat-form .field { min-width: 150px; display: flex; flex-direction: column; gap: 5px; flex: 1 1 180px; }
.cat-form .field > label { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.cat-form input[type=text], .cat-form input[type=number], .cat-form input[type=time], .cat-form select,
.cat-hours-row input[type=time] {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font-size: 13px; font-family: inherit;
}
.cat-form input[type=file] { color: var(--muted); font-size: 12px; max-width: 100%; }
.cat-form > .btn-orange, .cat-form > .btn-outline, [data-new-dish] > .btn-orange, .cat-dish-editor > .btn-orange { margin-top: 4px; }
.cat-form .cat-wide { flex: 1 1 100%; }
.cat-form input[type=text], .cat-form input[type=number], .cat-form input[type=time], .cat-form select { width: 100%; }
.cat-image-row { display: flex; align-items: center; gap: 10px; }
.cat-preview { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; }
.cat-panel { border-top: 1px solid var(--border); padding-top: 12px; width: 100%; }
.cat-block { margin-bottom: 18px; }
.cat-h { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.cat-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: #fff; }
.cat-logo { border-radius: 50%; object-fit: contain; padding: 2px; }
.cat-dish { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cat-dish-main { flex: 1; min-width: 160px; }
.cat-dish-editor { flex: 1 1 100%; padding: 10px 0 4px; }
.cat-dish-off { opacity: 0.6; }
.cat-tag { font-size: 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--muted); font-weight: 700; margin-left: 4px; }
.cat-hours-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cat-day { width: 92px; font-weight: 600; font-size: 13px; }
.cat-closed { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.cat-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
