/* BWT Sportsbook UI */
:root {
  --bg-deep: #060d18;
  --bg-base: #0a1628;
  --bg-raised: #112038;
  --bg-card: #152642;
  --bg-hover: #1c3054;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef3fa;
  --text-muted: #8fa3bf;
  --text-dim: #5c7290;
  --gold: #d4a843;
  --gold-dim: #a8842f;
  --accent: #1a8cff;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --topbar-h: 56px;
  --sidebar-w: 200px;
  --slip-w: 300px;
  --bottom-nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26, 140, 255, 0.08), transparent),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: -1;
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-t);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.06em; color: var(--gold); }
.brand-sub { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.2;
  max-width: 140px;
}
.user-label { font-size: 0.78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.user-source { font-size: 0.65rem; color: var(--text-dim); }

.auth-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-modal[hidden] { display: none; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.auth-sheet {
  position: relative;
  width: min(420px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.auth-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.auth-head h2 { margin: 0; font-size: 1.1rem; color: var(--gold); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab.active { background: var(--gold); color: #1a1200; border-color: var(--gold); font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form[hidden] { display: none !important; }
#codeRow[hidden] { display: none !important; }

.user-fee-list .record-item { grid-template-columns: 1fr auto; align-items: center; }
.fee-edit { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fee-edit input { width: 64px; padding: 6px 8px; font-size: 0.82rem; }
.fee-edit .btn { padding: 6px 10px; font-size: 0.78rem; }

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--bg-raised);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.settings-block { margin-bottom: 14px; }
.settings-form label { display: block; font-size: 0.78rem; color: var(--text-muted); margin: 8px 0 4px; }
.settings-form label:first-child { margin-top: 0; }
.form-section { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: none; }
.settings-form select { width: 100%; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.checkbox-row input { width: auto; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.tg-field { display: flex; align-items: center; gap: 6px; }
.tg-field label { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.tg-field input { width: 88px; padding: 6px 8px; font-size: 0.85rem; }

.balance-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 10px;
  background: var(--green-bg);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  line-height: 1.2;
}
.balance-label { font-size: 0.65rem; color: var(--text-muted); }
.balance { font-size: 0.95rem; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--slip-w);
  gap: 0;
  min-height: 0;
}

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100dvh - var(--topbar-h));
  padding: 12px 8px;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.15), transparent);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 11px;
}
.nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }

.main { padding: 16px; overflow-y: auto; min-width: 0; }
.panel { display: none; animation: fadeIn 0.2s ease; }
.panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h1 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.panel-desc { margin: 4px 0 0; font-size: 0.82rem; color: var(--text-muted); }

.market-tabs, .account-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 14px;
}
.market-tabs::-webkit-scrollbar, .account-tabs::-webkit-scrollbar { display: none; }

.market-tab, .acct-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.market-tab:hover, .acct-tab:hover { border-color: var(--border-strong); color: var(--text); }
.market-tab.active, .acct-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1200;
  font-weight: 600;
}
.acct-tab.acct-admin-link { border-style: dashed; }

.odds-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.odds-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.odds-table thead {
  background: linear-gradient(180deg, #1a3050, #152642);
  position: sticky;
  top: 0;
  z-index: 2;
}
.odds-table th {
  padding: 10px 6px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.odds-table th.col-match { text-align: left; padding-left: 12px; }
.odds-table tr.subhead th {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px;
  background: rgba(0, 0, 0, 0.15);
}
.odds-table td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.odds-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.odds-table tbody tr:last-child td { border-bottom: none; }
.col-no { width: 40px; }
.col-match { min-width: 140px; }
.match-cell { text-align: left !important; padding-left: 12px !important; }
.match-teams { font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.match-meta { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.serial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-hover);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.odds-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
  transition: all 0.12s;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}
.odds-btn:hover { background: var(--bg-hover); border-color: var(--gold-dim); }
.odds-btn.selected {
  background: rgba(212, 168, 67, 0.2);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.odds-btn .odds-val { font-weight: 700; font-size: 0.92rem; color: var(--gold); }
.odds-btn .odds-lbl { font-size: 0.65rem; color: var(--text-dim); max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-cell { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.match-cards { display: none; }
.match-card { border-bottom: 1px solid var(--border); padding: 14px 12px; }
.match-card:last-child { border-bottom: none; }
.match-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.match-card-head .match-teams { flex: 1; }
.market-block { margin-bottom: 10px; }
.market-block:last-child { margin-bottom: 0; }
.market-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.04em; }
.odds-row { display: grid; gap: 6px; }
.odds-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.odds-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.odds-row .odds-btn { width: 100%; min-width: 0; }

.slip-panel {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100dvh - var(--topbar-h));
  padding: 16px 12px;
  background: var(--bg-base);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.slip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.slip-head h2 { margin: 0; font-size: 1rem; color: var(--gold); }
.slip-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 24px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.slip-content { display: flex; flex-direction: column; gap: 10px; }
.slip-match { font-weight: 600; font-size: 0.9rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.slip-selection { font-size: 0.85rem; color: var(--text-muted); }
.slip-odds { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.stake-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.stake-row { display: flex; align-items: center; gap: 8px; }
.stake-row input { flex: 1; }
.currency { font-size: 0.82rem; color: var(--text-muted); }
.quick-stakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick-stakes button {
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
}
.quick-stakes button:hover { border-color: var(--gold-dim); color: var(--gold); }
.slip-payout { padding: 10px; background: var(--green-bg); border-radius: 8px; font-size: 0.85rem; text-align: center; }
.slip-payout strong { color: var(--green); font-size: 1.1rem; }

.card-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}
.block-title { margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; color: var(--gold); }
.sub-title { margin: 16px 0 8px; font-size: 0.85rem; color: var(--text-muted); }
.hint { margin: 0 0 12px; font-size: 0.8rem; color: var(--text-muted); }
.hint code { background: var(--bg-raised); padding: 2px 6px; border-radius: 4px; font-size: 0.78rem; color: var(--gold); }
.bet-grid, .admin-grid { display: grid; gap: 14px; }
@media (min-width: 768px) {
  .bet-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.form-grid.three { grid-template-columns: 1fr 1fr auto; }
.input-row { display: flex; gap: 8px; flex-wrap: wrap; }
.input-grow { flex: 1; min-width: 160px; }

input, select, textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26, 140, 255, 0.2);
}
input::placeholder { color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, #e0b84d, var(--gold-dim)); color: #1a1200; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 6px 10px; }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  margin-bottom: 12px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--gold-dim); color: var(--text); }
.upload-icon { font-size: 2rem; }
.ocr-preview {
  padding: 12px;
  margin-bottom: 12px;
  background: var(--bg-raised);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  border-left: 3px solid var(--accent);
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.stat-card .val { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card .lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.stat-card.positive .val { color: var(--green); }
.stat-card.negative .val { color: var(--red); }

.bill-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0 0 14px;
  font-family: inherit;
}

.record-list { display: flex; flex-direction: column; gap: 8px; }
.record-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
}
.record-item.won { border-left: 3px solid var(--green); }
.record-item.lost { border-left: 3px solid var(--red); }
.record-item.pending { border-left: 3px solid var(--gold); }
.record-id { font-weight: 700; color: var(--text-dim); font-size: 0.75rem; }
.record-body { min-width: 0; }
.record-match { font-weight: 600; margin-bottom: 2px; }
.record-detail { color: var(--text-muted); font-size: 0.78rem; }
.record-status { text-align: right; font-weight: 600; font-size: 0.78rem; white-space: nowrap; }
.record-status.won { color: var(--green); }
.record-status.lost { color: var(--red); }
.record-status.pending { color: var(--gold); }
.record-list.compact .record-item { grid-template-columns: 1fr auto; }

.toast-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.toast-box.success { background: var(--green-bg); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--green); }
.toast-box.error { background: var(--red-bg); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--red); }
.toast-box.info { background: rgba(26, 140, 255, 0.1); border: 1px solid rgba(26, 140, 255, 0.25); color: var(--accent); }
.admin-auth { max-width: 360px; }
.admin-auth label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: calc(var(--bottom-nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(4, 1fr);
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.68rem;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  touch-action: manipulation;
}
.bnav-item.active { color: var(--gold); }
.bnav-icon { font-size: 1.25rem; }
.slip-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slip-drawer { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 300; }
.drawer-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 301;
  max-height: 85dvh;
  padding: 8px 16px calc(16px + var(--safe-b));
  background: var(--bg-base);
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.drawer-handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 4px auto 12px;
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar, .slip-panel { display: none; }
  .bottom-nav { display: grid; }
  .main { padding: 12px; padding-bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 12px); }
  .slip-drawer:not([hidden]) { display: block; }
  .desktop-table { display: none; }
  .match-cards { display: block; }
}

@media (max-width: 480px) {
  .topbar { padding: 0 10px; gap: 8px; }
  .brand-sub { display: none; }
  .tg-field label { display: none; }
  .tg-field input { width: 72px; }
  .balance-chip { padding: 3px 8px; }
  .balance { font-size: 0.85rem; }
  .panel-head h1 { font-size: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .form-grid.three button { grid-column: 1 / -1; }
}

@media (max-width: 320px) {
  .quick-stakes { grid-template-columns: repeat(2, 1fr); }
  .odds-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .odds-row.cols-3 .odds-btn:last-child { grid-column: span 2; }
}

@media (min-width: 1400px) {
  .main { padding: 20px 24px; }
  .layout { grid-template-columns: var(--sidebar-w) 1fr 320px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .drawer-sheet { max-height: 95dvh; }
  .bottom-nav { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
