:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #d16710;
  --accent-dark: #110101;
  --low-bg: #fff1f2;
  --low-text: #9f1239;
  --ok-bg: #ecfdf5;
  --ok-text: #065f46;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

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

a { color: var(--accent); text-decoration: none; font-weight: 650; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 36px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar h1 { margin: 0 0 4px; font-size: 24px; }
.topbar p { margin: 0; color: var(--muted); }
.topbar nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.container { max-width: 1220px; margin: 28px auto; padding: 0 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.card h2 { margin-top: 0; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 800; margin: 0 0 6px; }

.button, button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.button:hover, button:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

.button.primary-action,
button.primary-action {
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(37, 99, 235, 0.24);
}

.button.primary-action:hover,
button.primary-action:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.button.send-order-action,
button.send-order-action {
  background: linear-gradient(145deg, #16a34a, #15803d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(22, 163, 74, 0.24);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,79,70,0.12); }
label { display: block; font-weight: 750; margin: 14px 0 8px; }

.scan-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.scan-form label { grid-column: 1 / -1; margin-bottom: -4px; }

.update-form { margin-top: 20px; }
.inline-input { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.inline-input span { color: var(--muted); font-weight: 750; min-width: 42px; }

.message {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 650;
}
.message.error { background: var(--low-bg); color: var(--low-text); border-color: #fecdd3; }
.message.success { background: var(--ok-bg); color: var(--ok-text); border-color: #bbf7d0; }
.message.info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

.chemical-header, .section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.recipe-card-header {
  align-items: center;
}

.recipe-card-logo {
  width: 120px;
  max-height: 54px;
  object-fit: contain;
}

.recipe-card-title {
  flex: 1;
}

.recipe-prepared-by {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.recipe-theme-logo {
  width: 96px;
  max-height: 52px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.recipe-legal-disclaimer {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.recipe-target-total-row td {
  border-top-width: 3px;
  font-weight: 800;
}

.recipe-target-total-row strong {
  font-size: 1.08rem;
}

.formulation-scan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}

.formulation-scan-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.62);
}

.formulation-scan-card h3 {
  margin: 0;
}

.previous-formulation-row td {
  background: rgba(245, 158, 11, 0.12);
  border-top: 2px solid rgba(245, 158, 11, 0.55);
  border-bottom: 2px solid rgba(245, 158, 11, 0.55);
}

.recipe-source-pending td {
  background: rgba(245, 158, 11, 0.08);
}

.recipe-source-verified td {
  background: rgba(34, 197, 94, 0.14);
  border-top: 2px solid rgba(34, 197, 94, 0.45);
  border-bottom: 2px solid rgba(34, 197, 94, 0.45);
}

.formulation-to-order-toggle {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.10);
}

.recipe-verification-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin: 16px 0 20px;
  background: rgba(255,255,255,0.62);
}

.recipe-verification-panel h3 {
  margin: 0 0 4px;
}

.recipe-source-detail-row td {
  background: rgba(15, 23, 42, 0.035);
  font-size: 0.92rem;
  padding-left: 24px;
}

.zero-bottle-prompt {
  margin: 12px 0 16px;
}

.zero-bottle-prompt .checkbox {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .formulation-scan-grid {
    grid-template-columns: 1fr;
  }
}

.metric {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: #fafafa;
}
.metric span { display: block; color: var(--muted); font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.metric strong { font-size: 28px; }

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}
.pill.low { background: var(--low-bg); color: var(--low-text); }
.pill.ok { background: var(--ok-bg); color: var(--ok-text); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
tr.row-low,
.dashboard-table tr.row-low td {
  background: #fee2e2;
}

.dashboard-table tr.row-low td:first-child {
  border-left: 4px solid #dc2626;
}
code { background: #f3f4f6; border-radius: 8px; padding: 3px 6px; }

.level {
  width: 110px;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.level span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.form-card { max-width: 900px; margin-left: auto; margin-right: auto; }
.stacked-form button { margin-top: 20px; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }

@media (max-width: 760px) {
  .topbar, .chemical-header, .section-header { flex-direction: column; }
  .scan-form, .grid.two, .grid.four { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

.barcode-generator-form { max-width: 900px; }
.barcode-generator-form button { margin-top: 18px; }

.label-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.barcode-label {
  background: #fff;
  border: 1px dashed #9ca3af;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
}

.generated-barcode-svg {
  max-width: 100%;
  height: auto;
}

.barcode-batch-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--panel-muted);
}

.barcode-batch-status {
  min-width: 180px;
  text-align: center;
  display: grid;
  gap: 0.2rem;
}

.steps { line-height: 1.8; }

@media print {
  @page { margin: 0.25in; }
  body { background: #fff; margin: 0; }

  /* Print only the generated barcode area, not the page title, helper text, or buttons. */
  body * { visibility: hidden !important; }
  #barcode-print-area, #barcode-print-area * { visibility: visible !important; }

  #barcode-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15in;
  }

  .barcode-label {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-height: auto;
  }

  .generated-barcode-svg {
    max-width: 100%;
    height: auto;
  }
}

/* Top banner logo layout: title/subtitle left, Rove logo centered, nav right. */
.topbar {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.topbar .brand h1 {
  display: block;
  width: 100%;
  margin: 0;
}

.topbar .brand p {
  display: block;
  width: 100%;
  margin: 6px 0 0;
}

.topbar-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px !important;
  height: 200px !important;
  object-fit: contain !important;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.topbar nav {
  position: relative;
  z-index: 2;
}

/* Employee-ready feature styles */
.user-strip {
  background: #fff7ed;
  border-bottom: 1px solid var(--border);
  padding: 9px 36px;
  font-size: 14px;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,79,70,0.12);
}

.sort-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 220px) auto;
  gap: 14px;
  align-items: end;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fafafa;
}

.inline-reorder-form {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(86px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.inline-reorder-form input {
  padding: 9px 10px;
  font-size: 14px;
}

.inline-reorder-form button {
  padding: 9px 12px;
}

.nested-table {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.nested-table th,
.nested-table td {
  padding: 10px;
  font-size: 13px;
}

details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 750;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.status-ok { background: var(--ok-bg); color: var(--ok-text); }
.status-low { background: var(--low-bg); color: var(--low-text); }
.status-expired { background: #450a0a; color: #fee2e2; }
.status-expiring { background: #fef3c7; color: #92400e; }
.status-quarantined { background: #ede9fe; color: #5b21b6; }
.status-empty { background: #f3f4f6; color: #374151; }
.status-disposed { background: #e5e7eb; color: #111827; }
.status-active { background: var(--ok-bg); color: var(--ok-text); }

.login-card .message.info {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .sort-bar {
    grid-template-columns: 1fr;
  }

  .inline-reorder-form {
    grid-template-columns: 1fr;
  }
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 8px;
}

.state-filter-tabs {
  margin-bottom: 16px;
}

.dashboard-search-form {
  margin: 18px 0 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.dashboard-search-form label {
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
}

.dashboard-search-input-row {
  align-items: center;
  gap: 10px;
}

.dashboard-search-input-row input {
  min-width: min(100%, 420px);
}

.filter-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-divider::before,
.filter-divider::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 13px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
}

.category-tab span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 12px;
}

.category-tab.active,
.category-tab:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.category-tab.active span,
.category-tab:hover span {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

.category-section {
  margin-top: 26px;
}

.category-section.rove-family-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.category-section.rove-family-section + .category-section.rove-family-section {
  margin-top: 28px;
}

.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.rove-family-section .category-section-header {
  margin: -18px -18px 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(37, 99, 235, 0.08));
}

.rove-family-section .category-section-header h3 {
  font-size: 22px;
}

.rove-family-section .dashboard-table-wrap {
  margin-top: 0;
}

.category-section-header h3 {
  margin: 0;
  font-size: 20px;
}

.category-section-header span,
.empty-state {
  color: var(--muted);
  font-weight: 700;
}

/* v4 dashboard cleanup: filters instead of old sort bar; bottle dropdowns live under the chemical name. */
.settings-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 19px;
  line-height: 1;
}

.settings-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.user-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.user-strip-timezone {
  color: var(--muted);
}

.dashboard-table-wrap {
  overflow-x: visible;
}

.dashboard-table {
  table-layout: auto;
}

.dashboard-table th,
.dashboard-table td {
  vertical-align: top;
}

.chemical-cell {
  min-width: 240px;
}

.bottle-details {
  margin-top: 8px;
}

.bottle-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.bottle-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.bottle-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.category-section-header > div:first-child {
  min-width: 220px;
}

.category-filter {
  min-width: 280px;
  max-width: 420px;
  width: 100%;
}

.category-filter label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-filter input {
  font-size: 14px;
  padding: 10px 12px;
}

.category-empty {
  margin: 16px 0 0;
}

@media (max-width: 1100px) {
  .dashboard-table,
  .dashboard-table thead,
  .dashboard-table tbody,
  .dashboard-table th,
  .dashboard-table td,
  .dashboard-table tr {
    display: block;
  }

  .dashboard-table thead {
    display: none;
  }

  .dashboard-table tr {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    background: #fff;
  }

  .dashboard-table tr.row-low {
    background: #fff7f8;
  }

  .dashboard-table td {
    border-bottom: 0;
    padding: 8px 0;
  }

  .dashboard-table td::before {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
  }

  .dashboard-table td:nth-child(1)::before { content: "Status"; }
  .dashboard-table td:nth-child(2)::before { content: "Chemical"; }
  .dashboard-table td:nth-child(3)::before { content: "Bottles"; }
  .dashboard-table td:nth-child(4)::before { content: "Current Total"; }
  .dashboard-table td:nth-child(5)::before { content: "% Remaining"; }
  .dashboard-table td:nth-child(6)::before { content: "Reorder / Par"; }
  .dashboard-table td:nth-child(7)::before { content: "Earliest Expiry"; }
  .dashboard-table td:nth-child(8)::before { content: "Location"; }

  .category-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-filter {
    max-width: none;
  }
}

/* v6 dashboard/header refinements */
.bottle-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.bottle-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bottle-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bottle-actions span {
  flex: 0 0 100%;
}

.bottle-actions form {
  margin: 0;
}

.scan-detail-grid,
.scan-actions {
  margin-top: 14px;
}

.scan-actions {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.user-bottle-actions {
  grid-column: 1 / -1;
}

.user-bottle-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.user-bottle-actions input {
  max-width: 180px;
}

.small-button {
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 13px;
}

.button.danger,
button.danger {
  background: #b91c1c;
}

.button.danger:hover,
button.danger:hover {
  background: #7f1d1d;
}

.settings-link-far-right {
  margin-left: 8px;
}

@media (min-width: 1200px) {
  .topbar nav {
    justify-content: flex-end;
    flex: 1;
  }

  .settings-link-far-right {
    margin-left: 18px;
  }
}

@media (max-width: 700px) {
  .bottle-card {
    grid-template-columns: 1fr;
  }
}

/* v7 Settings: Dark Mode support */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.dark-mode {
  --bg: #0f172a;
  --card: #172033;
  --text: #e5e7eb;
  --muted: #a9b4c7;
  --border: #334155;
  --accent: #f08a24;
  --accent-dark: #c56612;
  --low-bg: #3b111b;
  --low-text: #fecdd3;
  --ok-bg: #102a20;
  --ok-text: #bbf7d0;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body.dark-mode,
body.dark-mode .topbar,
body.dark-mode .user-strip {
  background: var(--bg);
  color: var(--text);
}

body.dark-mode .topbar,
body.dark-mode .user-strip {
  border-color: var(--border);
}

body.dark-mode .card,
body.dark-mode .metric,
body.dark-mode .sort-bar,
body.dark-mode .nested-table,
body.dark-mode .bottle-card,
body.dark-mode .dashboard-table tr,
body.dark-mode .category-tab,
body.dark-mode .settings-link {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #0b1220;
  color: var(--text);
  border-color: var(--border);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #7f8da3;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 138, 36, 0.18);
}

body.dark-mode th,
body.dark-mode td {
  border-color: var(--border);
}

body.dark-mode th,
body.dark-mode .muted,
body.dark-mode .eyebrow,
body.dark-mode .user-strip-timezone,
body.dark-mode .user-strip-theme,
body.dark-mode .category-section-header span,
body.dark-mode .empty-state,
body.dark-mode .bottle-card span,
body.dark-mode .category-filter label,
body.dark-mode .dashboard-table td::before,
body.dark-mode .metric span,
body.dark-mode .inline-input span {
  color: var(--muted);
}

body.dark-mode code {
  background: #0b1220;
  color: #f8fafc;
}

body.dark-mode .level {
  background: #334155;
}

body.dark-mode .level span {
  background: var(--accent);
}

body.dark-mode tr.row-low,
body.dark-mode .dashboard-table tr.row-low,
body.dark-mode .dashboard-table tr.row-low td {
  background: #251522;
}

body.dark-mode .dashboard-table tr.row-low td:first-child {
  border-left-color: #f87171;
}

body.dark-mode .category-tab span {
  background: #0b1220;
  color: var(--muted);
}

body.dark-mode .category-tab.active,
body.dark-mode .category-tab:hover,
body.dark-mode .settings-link:hover {
  background: var(--accent);
  color: #111827;
}

body.dark-mode .category-tab.active span,
body.dark-mode .category-tab:hover span {
  background: rgba(17, 24, 39, 0.18);
  color: #111827;
}

body.dark-mode .message.info {
  background: #0f2b46;
  color: #bfdbfe;
  border-color: #1d4ed8;
}

body.dark-mode .message.success {
  background: var(--ok-bg);
  color: var(--ok-text);
  border-color: #166534;
}

body.dark-mode .message.error {
  background: var(--low-bg);
  color: var(--low-text);
  border-color: #9f1239;
}

body.dark-mode .status-expired {
  background: #450a0a;
  color: #fee2e2;
}

body.dark-mode .status-expiring {
  background: #442c08;
  color: #fde68a;
}

/* Keep the barcode label preview white because it represents the actual printable label. */
body.dark-mode .barcode-label {
  background: #ffffff;
  color: #111827;
  border-color: #64748b;
}

@media (max-width: 760px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* v8 bottle layout fix: bottle cards open in a full-width row under each chemical. */
.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  margin-top: 6px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover {
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
}

.bottle-row[hidden] {
  display: none !important;
}

.dashboard-table .bottle-row td {
  padding: 0 12px 18px;
  background: rgba(17, 24, 39, 0.025);
  border-bottom: 1px solid var(--border);
}

.bottle-list-wide {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px;
  margin-top: 14px;
}

.bottle-list-wide .bottle-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.dark-mode .dashboard-table .bottle-row td {
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 1100px) {
  .dashboard-table .bottle-row {
    padding: 0;
  }

  .dashboard-table .bottle-row td {
    display: block;
    padding: 0 0 14px;
  }

  .dashboard-table .bottle-row td::before {
    content: none !important;
    display: none !important;
  }

  .bottle-list-wide {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .bottle-list-wide {
    grid-template-columns: 1fr !important;
  }

  .bottle-list-wide .bottle-card {
    grid-template-columns: 1fr;
  }
}

/* v9 final send-off features: summaries, exports, password/change safety, and stronger warning badges. */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.summary-card {
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.summary-card strong {
  display: block;
  max-width: 100%;
  font-size: clamp(16px, 2.1vw, 28px);
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
}

.summary-card.money-summary-card strong {
  font-size: clamp(14px, 1.75vw, 24px);
  letter-spacing: -0.035em;
}

.summary-card.warning strong { color: #b45309; }
.summary-card.danger strong { color: #b91c1c; }
.summary-card.success strong { color: var(--ok-text); }
.summary-card.success { border-color: #86efac; background: var(--ok-bg); }
.summary-card.link-card:hover { text-decoration: none; border-color: var(--accent); }

.log-menu-card p {
  margin: 0;
  line-height: 1.35;
}

.export-bar,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 20px;
}

.button.secondary,
button.secondary {
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid var(--border);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--accent);
  color: #fff;
}

.status-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-ok { background: var(--ok-bg); color: var(--ok-text); }
.status-low { background: var(--low-bg); color: var(--low-text); }
.status-expired { background: #450a0a; color: #fee2e2; }
.status-expiring { background: #fef3c7; color: #92400e; }

body.dark-mode .summary-card,
body.dark-mode .button.secondary,
body.dark-mode button.secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

body.dark-mode .summary-card.warning strong { color: #fbbf24; }
body.dark-mode .summary-card.danger strong { color: #fecaca; }
body.dark-mode .summary-card.success strong { color: #86efac; }
body.dark-mode .summary-card.success { border-color: rgba(134,239,172,0.55); background: rgba(22,101,52,0.18); }
body.dark-mode .button.secondary:hover,
body.dark-mode button.secondary:hover {
  background: var(--accent);
  color: #111827;
}


.settings-export-bar {
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* v11 cost tracking, unit dropdowns, and SDS file upload */
.helper-note {
  margin: -4px 0 14px;
  font-size: 13px;
}

.file-drop-zone {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #fafafa;
}

.file-drop-zone input[type="file"] {
  background: #fff;
  cursor: pointer;
}

.file-drop-zone p {
  margin: 8px 0 0;
}

.usage-summary-card {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

body.dark-mode .file-drop-zone {
  background: #0b1220;
  border-color: var(--border);
}

body.dark-mode .file-drop-zone input[type="file"] {
  background: #0b1220;
  color: var(--text);
}

/* v12: Compact top banner dropdown navigation */
.topbar .topbar-actions {
  position: relative;
  z-index: 3;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-button:hover {
  background: var(--accent-dark);
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text);
  font-weight: 750;
}

.nav-dropdown-menu a:hover {
  background: rgba(209, 103, 16, 0.12);
  color: var(--accent);
  text-decoration: none;
}

.settings-link-far-right {
  margin-left: 0 !important;
  flex-shrink: 0;
}

body.dark-mode .nav-dropdown-menu {
  background: var(--card);
  border-color: var(--border);
}

body.dark-mode .nav-dropdown-menu a {
  color: var(--text);
}

body.dark-mode .nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar .topbar-actions {
    flex: 0 0 auto;
  }

  .nav-dropdown-menu {
    right: 0;
  }
}


/* v13: Keep Scan as a fixed top-banner action next to Menu */
.topbar-scan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-scan-link:hover {
  background: var(--accent-dark);
  color: #fff !important;
  text-decoration: none;
}

body.dark-mode .topbar-scan-link {
  color: #fff !important;
}

/* Responsive top navigation: keep brand, logo, and buttons from overlapping. */
.topbar {
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: auto;
}

.topbar .brand {
  min-width: 0;
}

.topbar-logo {
  position: static;
  transform: none;
  width: clamp(92px, 12vw, 150px) !important;
  height: clamp(92px, 12vw, 150px) !important;
  justify-self: center;
}

.topbar .topbar-actions {
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-scan-link,
.nav-dropdown-button,
.settings-link {
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(190px, 0.85fr) auto minmax(240px, 1.15fr);
    padding: 18px 24px;
  }

  .topbar-scan-link,
  .nav-dropdown-button {
    padding: 9px 12px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand logo"
      "actions actions";
    align-items: center;
  }

  .topbar .brand {
    grid-area: brand;
  }

  .topbar-logo {
    grid-area: logo;
    width: 82px !important;
    height: 82px !important;
  }

  .topbar .topbar-actions {
    grid-area: actions;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-dropdown-menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "brand"
      "actions";
    justify-items: center;
    text-align: center;
  }

  .topbar .brand {
    align-items: center;
  }

  .topbar .topbar-actions {
    justify-content: center;
  }
}

/* Future update instructions on Settings page */
.update-instructions-card code {
  background: rgba(31, 41, 55, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.92em;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.instruction-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.instruction-panel h3,
.update-checklist h3 {
  margin-top: 0;
}

.instruction-panel ul,
.update-checklist ol {
  margin-bottom: 0;
}

.keep-panel {
  border-left: 5px solid var(--accent);
}

.danger-panel {
  border-left: 5px solid #dc2626;
}

.update-checklist {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.025);
}

.update-note {
  margin-top: 18px;
}

body.dark-mode .update-instructions-card code {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .instruction-panel,
body.dark-mode .update-checklist {
  background: rgba(255, 255, 255, 0.04);
}

/* User password reset controls */
.user-actions-cell {
  min-width: 220px;
}

.inline-details {
  margin-bottom: 10px;
}

.inline-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

.mini-password-form {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.025);
}

.mini-password-form label {
  font-size: 0.82rem;
  color: var(--muted);
}

.mini-password-form input {
  width: 100%;
  min-width: 170px;
}

.small-button {
  padding: 8px 11px;
  font-size: 0.88rem;
}

body.dark-mode .mini-password-form {
  background: rgba(255, 255, 255, 0.04);
}

/* v16: Account page forms */
.account-settings-grid {
  align-items: start;
}

.account-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.025);
}

.account-card h3 {
  margin-top: 0;
}

.message.warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

body.dark-mode .account-card {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .message.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.45);
}

.subcategory-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .subcategory-panel {
  background: rgba(255, 255, 255, 0.03);
}

.cas-suggest-button {
  margin-top: 8px;
}

/* v18: Dashboard category sort controls and SDS database cleanup */
.category-sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.sort-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.sort-button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 800;
  cursor: pointer;
}

.sort-button:hover,
.sort-button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.header-actions form {
  margin: 0;
}

body.dark-mode .sort-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body.dark-mode .sort-button:hover,
body.dark-mode .sort-button.active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .category-sort-controls {
    justify-content: flex-start;
  }
}


/* Barcode label preview/print tuning for 1.1in x 3.5in labels. */
.barcode-label .generated-barcode-svg {
  width: 100%;
  height: auto;
}

/* Custom barcode pixel sizing fields */
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.small-note {
  font-size: 13px;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.full-width-input {
  width: 100%;
  margin-bottom: 14px;
}

.date-filter-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.date-filter-form > div {
  min-width: 180px;
}

.sds-missing-panel {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.sds-missing-panel summary {
  cursor: pointer;
}

.compact-table-wrap {
  margin-top: 12px;
}

.compact-summary-grid {
  margin-bottom: 20px;
}

.audit-scan-form {
  margin: 16px 0;
}

.audit-list-header {
  margin-top: 22px;
}

.audit-found-row {
  opacity: 0.72;
}

body.dark-mode .sds-missing-panel {
  background: var(--card);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.form-actions form {
  margin: 0;
}

.current-requests-panel {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.request-order-list {
  display: grid;
  gap: 14px;
}

.request-order-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg);
}

.request-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.address-block {
  white-space: pre-wrap;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
}

.request-order-header h4 {
  margin: 4px 0 0;
}

.nav-notification-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: white;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.review-state-field {
  min-width: 220px;
}

.review-state-field label {
  display: block;
  margin-bottom: 6px;
}

.bol-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.bol-logo {
  display: block;
  width: 96px;
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

.signature-line {
  border-bottom: 1px solid var(--text);
  height: 44px;
}

@media print {
  .topbar,
  .user-strip,
  .topbar-actions,
  .section-header button,
  .settings-link {
    display: none !important;
  }

  body {
    background: white;
  }

  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .card,
  .bill-of-lading {
    box-shadow: none;
    border: none;
  }
}

/* Modern UI Refresh - July 2026
   A visual-only layer over the existing app structure. */
:root {
  --bg: #f3f5f8;
  --card: rgba(255, 255, 255, 0.92);
  --panel: #f8fafc;
  --panel-muted: #f1f5f9;
  --text: #17202c;
  --muted: #64748b;
  --border: #dbe3ee;
  --accent: #f06f18;
  --accent-dark: #c8550b;
  --accent-soft: #fff2e8;
  --navy: #111827;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
  --radius-lg: 22px;
  --radius-md: 15px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(240, 111, 24, 0.11), transparent 34rem),
    radial-gradient(circle at top right, rgba(17, 24, 39, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 38%, #eef2f7 100%);
  color: var(--text);
  letter-spacing: -0.01em;
}

a {
  color: var(--accent-dark);
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

a:hover {
  color: var(--accent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 227, 238, 0.9);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.topbar .brand {
  background: linear-gradient(135deg, var(--navy), #475569);
  -webkit-background-clip: text;
  background-clip: text;
}

.topbar .brand h1 {
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.topbar .brand p {
  font-size: 13px;
  font-weight: 650;
}

.topbar-logo {
  filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.10));
}

.topbar-scan-link,
.nav-dropdown-button,
.settings-link {
  border: 1px solid rgba(219, 227, 238, 0.9);
  background: rgba(255, 255, 255, 0.75);
  color: #263241;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.topbar-scan-link:hover,
.nav-dropdown-button:hover,
.settings-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-dropdown-menu {
  border: 1px solid rgba(219, 227, 238, 0.95);
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.nav-dropdown-menu a {
  border-radius: 12px;
}

.user-strip {
  border-bottom: 1px solid rgba(219, 227, 238, 0.75);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

.container {
  max-width: 1320px;
  margin-top: 34px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card:hover {
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.10);
}

.card h2,
.category-section-header h3,
.request-order-header h4 {
  color: #111827;
  letter-spacing: -0.035em;
}

.section-header {
  padding-bottom: 2px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  color: var(--accent-dark);
}

.button,
button {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 9px 20px rgba(240, 111, 24, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover,
button:hover {
  background: linear-gradient(135deg, var(--accent-dark), #8f3806);
  box-shadow: 0 13px 26px rgba(200, 85, 11, 0.26);
  transform: translateY(-1px);
}

.button.secondary,
button.secondary {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.button.danger,
button.danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 9px 20px rgba(239, 68, 68, 0.20);
}

input,
textarea,
select {
  border-color: #d9e2ee;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 111, 24, 0.13);
}

label {
  color: #263241;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.metric,
.summary-card,
.dashboard-search-form,
.subcategory-panel,
.file-drop-zone,
.request-order-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(219, 227, 238, 0.92);
  box-shadow: var(--shadow-soft);
}

.metric {
  border-radius: 18px;
}

.metric strong {
  font-size: clamp(20px, 2vw, 30px);
  color: #111827;
  letter-spacing: -0.04em;
}

.summary-grid {
  gap: 14px;
}

.summary-card {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.72;
}

.summary-card span,
.metric span,
.bottle-card span {
  color: #64748b;
  font-weight: 850;
}

.table-wrap {
  border: 1px solid rgba(219, 227, 238, 0.88);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 900;
}

td {
  color: #253041;
}

tr:hover td {
  background: #fff8f3;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: #eef6ff;
}

th:first-child {
  border-top-left-radius: 18px;
}

th:last-child {
  border-top-right-radius: 18px;
}

.dashboard-table tr:not(.bottle-row) td:first-child {
  border-left: 4px solid transparent;
}

.dashboard-table tr:hover td:first-child {
  border-left-color: var(--accent);
}

.category-tabs {
  gap: 9px;
}

.category-tab {
  background: #ffffff;
  border-color: #dbe3ee;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.05);
}

.category-tab.active,
.category-tab:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.category-section.rove-family-section {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(219, 227, 238, 0.78);
  border-radius: 24px;
}

.category-section-header {
  align-items: center;
}

.sort-button {
  border-radius: 999px;
}

.bottle-card {
  border-radius: 18px;
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.bottle-actions a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
}

.bottle-actions a:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

/* Contrast fix: light buttons should use dark text, not inherited white text. */
.topbar-scan-link,
.nav-dropdown-button,
.settings-link,
.button.secondary,
button.secondary,
.category-tab,
.sort-button,
.small-button.secondary {
  color: #17202c !important;
}

.topbar-scan-link:hover,
.nav-dropdown-button:hover,
.settings-link:hover,
.button.secondary:hover,
button.secondary:hover,
.category-tab.active,
.category-tab:hover,
.sort-button:hover,
.sort-button.active {
  color: #ffffff !important;
}

.category-tab span {
  color: #475569 !important;
}

.category-tab.active span,
.category-tab:hover span {
  color: #ffffff !important;
}

.message {
  border-radius: 16px;
}

.pill,
.status-expired,
.status-expiring,
.status-low,
.status-ok {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.nav-badge {
  box-shadow: 0 7px 15px rgba(220, 38, 38, 0.28);
}

.login-card,
.form-card {
  max-width: 960px;
}

@media (max-width: 760px) {
  .container {
    margin-top: 18px;
  }

  .card {
    border-radius: 18px;
    padding: 18px;
  }

  .topbar {
    position: static;
  }
}

body.dark-mode {
  --bg: #0c111b;
  --card: rgba(17, 24, 39, 0.88);
  --panel: #111827;
  --panel-muted: #0f172a;
  --text: #e5e7eb;
  --muted: #a7b1c2;
  --border: #263244;
  --accent-soft: rgba(240, 111, 24, 0.16);
  background:
    radial-gradient(circle at top left, rgba(240, 111, 24, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.09), transparent 30rem),
    linear-gradient(180deg, #0b1020 0%, #0c111b 100%);
}

body.dark-mode .topbar,
body.dark-mode .user-strip {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(38, 50, 68, 0.92);
}

body.dark-mode .topbar .brand {
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
}

body.dark-mode .card,
body.dark-mode .metric,
body.dark-mode .summary-card,
body.dark-mode .dashboard-search-form,
body.dark-mode .subcategory-panel,
body.dark-mode .file-drop-zone,
body.dark-mode .request-order-card,
body.dark-mode .table-wrap,
body.dark-mode .bottle-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.94));
  border-color: rgba(38, 50, 68, 0.95);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

body.dark-mode .card h2,
body.dark-mode .category-section-header h3,
body.dark-mode .request-order-header h4,
body.dark-mode .metric strong {
  color: #f8fafc;
}

body.dark-mode th {
  background: rgba(15, 23, 42, 0.96);
}

body.dark-mode tr:hover td {
  background: rgba(240, 111, 24, 0.08);
}

body.dark-mode .topbar-scan-link,
body.dark-mode .nav-dropdown-button,
body.dark-mode .settings-link,
body.dark-mode .button.secondary,
body.dark-mode button.secondary,
body.dark-mode .category-tab {
  background: rgba(15, 23, 42, 0.86);
  border-color: #334155;
  color: #e5e7eb;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: rgba(15, 23, 42, 0.92);
}

/* Dark mode nav contrast fix: keep top navigation buttons readable and bright. */
body.dark-mode .topbar-scan-link,
body.dark-mode .nav-dropdown-button,
body.dark-mode .settings-link {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
  color: #111827 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

body.dark-mode .topbar-scan-link:hover,
body.dark-mode .nav-dropdown-button:hover,
body.dark-mode .settings-link:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #111827 !important;
}

/* Sports Theme: Los Angeles Dodgers
   Inspired by the logo's Dodger blue, baseball red, and clean white uniform feel. */
body.theme-dodgers {
  --bg: #eef5ff;
  --card: rgba(255, 255, 255, 0.94);
  --panel: #f4f8ff;
  --panel-muted: #e8f1ff;
  --text: #10233d;
  --muted: #5d7190;
  --border: #c9dcf6;
  --accent: #005a9c;
  --accent-dark: #003f73;
  --accent-soft: #e7f2ff;
  --navy: #05294c;
  --shadow: 0 24px 60px rgba(0, 90, 156, 0.14);
  --shadow-soft: 0 12px 28px rgba(0, 90, 156, 0.10);
  background:
    radial-gradient(circle at 10% 5%, rgba(0, 90, 156, 0.18), transparent 31rem),
    radial-gradient(circle at 94% 8%, rgba(239, 62, 66, 0.13), transparent 28rem),
    linear-gradient(180deg, #f9fcff 0%, #eef5ff 48%, #e8f1ff 100%);
}

body.theme-dodgers::before {
  content: "";
  position: fixed;
  inset: 120px -6vw auto auto;
  width: min(42vw, 440px);
  height: min(42vw, 440px);
  background: url("dodgers-logo.svg") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-8deg);
}

body.theme-dodgers {
  cursor: url("dodger-dog-cursor.png") 4 22, auto;
}

body.theme-dodgers a,
body.theme-dodgers button,
body.theme-dodgers summary,
body.theme-dodgers .button,
body.theme-dodgers .topbar-scan-link,
body.theme-dodgers .nav-dropdown-button,
body.theme-dodgers .settings-link,
body.theme-dodgers .category-tab,
body.theme-dodgers .sort-button {
  cursor: url("dodger-dog-cursor.png") 4 22, pointer;
}

body.theme-dodgers input,
body.theme-dodgers textarea {
  cursor: text;
}

body.theme-dodgers a {
  color: #005a9c;
}

body.theme-dodgers .topbar {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(231, 242, 255, 0.92)),
    linear-gradient(135deg, rgba(0, 90, 156, 0.12), rgba(239, 62, 66, 0.08));
  border-bottom: 1px solid rgba(0, 90, 156, 0.18);
  box-shadow: 0 14px 38px rgba(0, 63, 115, 0.13);
}

body.theme-dodgers .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #005a9c 0%, #005a9c 72%, #ef3e42 72%, #ef3e42 100%);
}

body.theme-dodgers .topbar .brand {
  background: linear-gradient(135deg, #005a9c, #003f73 68%, #ef3e42);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-dodgers .topbar .brand h1 {
  letter-spacing: -0.055em;
}

body.theme-dodgers .topbar-logo {
  object-fit: contain;
  filter: drop-shadow(0 12px 15px rgba(0, 90, 156, 0.18));
}

body.theme-dodgers .topbar-scan-link,
body.theme-dodgers .nav-dropdown-button,
body.theme-dodgers .settings-link {
  background: #ffffff !important;
  border-color: rgba(0, 90, 156, 0.22) !important;
  color: #003f73 !important;
  box-shadow: 0 8px 18px rgba(0, 90, 156, 0.12);
}

body.theme-dodgers .topbar-scan-link:hover,
body.theme-dodgers .nav-dropdown-button:hover,
body.theme-dodgers .settings-link:hover,
body.theme-dodgers .button.secondary:hover,
body.theme-dodgers button.secondary:hover,
body.theme-dodgers .category-tab.active,
body.theme-dodgers .category-tab:hover,
body.theme-dodgers .sort-button:hover,
body.theme-dodgers .sort-button.active {
  background: #005a9c !important;
  border-color: #005a9c !important;
  color: #ffffff !important;
}

body.theme-dodgers .button,
body.theme-dodgers button {
  background: linear-gradient(135deg, #005a9c, #003f73);
  box-shadow: 0 10px 22px rgba(0, 90, 156, 0.24);
}

body.theme-dodgers .button:hover,
body.theme-dodgers button:hover {
  background: linear-gradient(135deg, #003f73, #05294c);
}

body.theme-dodgers .button.danger,
body.theme-dodgers button.danger,
body.theme-dodgers .nav-badge {
  background: linear-gradient(135deg, #ef3e42, #b91c1c);
}

body.theme-dodgers .card,
body.theme-dodgers .metric,
body.theme-dodgers .summary-card,
body.theme-dodgers .dashboard-search-form,
body.theme-dodgers .subcategory-panel,
body.theme-dodgers .file-drop-zone,
body.theme-dodgers .request-order-card,
body.theme-dodgers .table-wrap,
body.theme-dodgers .bottle-card {
  border-color: rgba(0, 90, 156, 0.16);
}

body.theme-dodgers .summary-card::before,
body.theme-dodgers .dashboard-table tr:hover td:first-child {
  background: #005a9c;
  border-left-color: #005a9c;
}

body.theme-dodgers tr:hover td {
  background: #f1f7ff;
}

body.theme-dodgers input:focus,
body.theme-dodgers textarea:focus,
body.theme-dodgers select:focus {
  border-color: #005a9c;
  box-shadow: 0 0 0 4px rgba(0, 90, 156, 0.14);
}

body.theme-dodgers .category-tab span {
  background: #e7f2ff;
  color: #003f73 !important;
}

body.theme-dodgers .category-tab.active span,
body.theme-dodgers .category-tab:hover span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

/* Sports Theme: Chelsea FC
   Deep royal blue foundation, gold trim, clean white cards, and crest-style polish. */
body.theme-chelsea {
  --bg: #edf3ff;
  --card: rgba(255, 255, 255, 0.94);
  --panel: #f5f8ff;
  --panel-muted: #e8efff;
  --text: #101c3d;
  --muted: #5b6b8c;
  --border: #c8d5f2;
  --accent: #034694;
  --accent-dark: #001f5b;
  --accent-soft: #e8efff;
  --navy: #001f5b;
  --shadow: 0 24px 60px rgba(3, 70, 148, 0.14);
  --shadow-soft: 0 12px 28px rgba(3, 70, 148, 0.10);
  background:
    radial-gradient(circle at 9% 7%, rgba(3, 70, 148, 0.20), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(251, 183, 1, 0.18), transparent 24rem),
    radial-gradient(circle at 96% 72%, rgba(238, 41, 54, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #edf3ff 48%, #e8efff 100%);
}

body.theme-chelsea::before {
  content: "";
  position: fixed;
  inset: 128px -5vw auto auto;
  width: min(42vw, 450px);
  height: min(42vw, 450px);
  background: url("chelsea-logo.svg") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: -1;
  transform: rotate(5deg);
}

body.theme-chelsea a {
  color: #034694;
}

body.theme-chelsea .topbar {
  background:
    linear-gradient(90deg, rgba(0, 31, 91, 0.96), rgba(3, 70, 148, 0.92)),
    linear-gradient(135deg, rgba(251, 183, 1, 0.10), rgba(238, 41, 54, 0.08));
  border-bottom: 1px solid rgba(251, 183, 1, 0.36);
  box-shadow: 0 16px 42px rgba(0, 31, 91, 0.22);
}

body.theme-chelsea .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbb701 0%, #fbb701 22%, #ffffff 22%, #ffffff 28%, #034694 28%, #034694 82%, #ee2936 82%, #ee2936 100%);
}

body.theme-chelsea .topbar .brand {
  background: linear-gradient(135deg, #ffffff, #fbb701 72%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-chelsea .topbar .brand p {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-chelsea .topbar-logo {
  object-fit: contain;
  filter:
    drop-shadow(0 13px 16px rgba(0, 0, 0, 0.20))
    drop-shadow(0 0 10px rgba(251, 183, 1, 0.18));
}

body.theme-chelsea .user-strip {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(3, 70, 148, 0.14);
}

body.theme-chelsea .topbar-scan-link,
body.theme-chelsea .nav-dropdown-button,
body.theme-chelsea .settings-link {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(251, 183, 1, 0.52) !important;
  color: #001f5b !important;
  box-shadow: 0 8px 20px rgba(0, 31, 91, 0.16);
}

body.theme-chelsea .topbar-scan-link:hover,
body.theme-chelsea .nav-dropdown-button:hover,
body.theme-chelsea .settings-link:hover,
body.theme-chelsea .button.secondary:hover,
body.theme-chelsea button.secondary:hover,
body.theme-chelsea .category-tab.active,
body.theme-chelsea .category-tab:hover,
body.theme-chelsea .sort-button:hover,
body.theme-chelsea .sort-button.active {
  background: #034694 !important;
  border-color: #034694 !important;
  color: #ffffff !important;
}

body.theme-chelsea .button,
body.theme-chelsea button {
  background: linear-gradient(135deg, #034694, #001f5b);
  box-shadow: 0 10px 22px rgba(3, 70, 148, 0.24);
}

body.theme-chelsea .button:hover,
body.theme-chelsea button:hover {
  background: linear-gradient(135deg, #001f5b, #00143a);
}

body.theme-chelsea .button.danger,
body.theme-chelsea button.danger,
body.theme-chelsea .nav-badge {
  background: linear-gradient(135deg, #ee2936, #b91c1c);
}

body.theme-chelsea .card,
body.theme-chelsea .metric,
body.theme-chelsea .summary-card,
body.theme-chelsea .dashboard-search-form,
body.theme-chelsea .subcategory-panel,
body.theme-chelsea .file-drop-zone,
body.theme-chelsea .request-order-card,
body.theme-chelsea .table-wrap,
body.theme-chelsea .bottle-card {
  border-color: rgba(3, 70, 148, 0.16);
}

body.theme-chelsea .card h2,
body.theme-chelsea .category-section-header h3,
body.theme-chelsea .request-order-header h4,
body.theme-chelsea .metric strong {
  color: #001f5b;
}

body.theme-chelsea .summary-card::before,
body.theme-chelsea .dashboard-table tr:hover td:first-child {
  background: #fbb701;
  border-left-color: #fbb701;
}

body.theme-chelsea tr:hover td {
  background: #f3f7ff;
}

body.theme-chelsea input:focus,
body.theme-chelsea textarea:focus,
body.theme-chelsea select:focus {
  border-color: #034694;
  box-shadow: 0 0 0 4px rgba(3, 70, 148, 0.14);
}

body.theme-chelsea .category-tab {
  border-color: rgba(3, 70, 148, 0.16);
}

body.theme-chelsea .category-tab span {
  background: #e8efff;
  color: #001f5b !important;
}

body.theme-chelsea .category-tab.active span,
body.theme-chelsea .category-tab:hover span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

body.theme-chelsea .pill.ok,
body.theme-chelsea .status-ok {
  background: #e8efff;
  color: #034694;
}

/* Sports Theme: Liverpool FC
   Classic red, warm cream surfaces, teal secondary accents, and gold crest trim. */
body.theme-liverpool {
  --bg: #fff4ef;
  --card: rgba(255, 252, 247, 0.94);
  --panel: #fff8f2;
  --panel-muted: #ffe8df;
  --text: #2a1112;
  --muted: #7b6260;
  --border: #f0c9be;
  --accent: #c8102e;
  --accent-dark: #8f0d22;
  --accent-soft: #ffe8df;
  --navy: #4a0712;
  --shadow: 0 24px 60px rgba(200, 16, 46, 0.13);
  --shadow-soft: 0 12px 28px rgba(200, 16, 46, 0.09);
  background:
    radial-gradient(circle at 8% 8%, rgba(200, 16, 46, 0.20), transparent 32rem),
    radial-gradient(circle at 91% 6%, rgba(0, 178, 169, 0.15), transparent 25rem),
    radial-gradient(circle at 84% 74%, rgba(247, 181, 0, 0.14), transparent 28rem),
    linear-gradient(180deg, #fffdf9 0%, #fff4ef 48%, #ffe8df 100%);
}

body.theme-liverpool::before {
  content: "";
  position: fixed;
  inset: 126px -4vw auto auto;
  width: min(38vw, 390px);
  height: min(52vw, 520px);
  background: url("liverpool-logo.svg") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-3deg);
}

body.theme-liverpool a {
  color: #c8102e;
}

body.theme-liverpool .topbar {
  background:
    linear-gradient(90deg, rgba(117, 9, 25, 0.97), rgba(200, 16, 46, 0.93)),
    linear-gradient(135deg, rgba(247, 181, 0, 0.12), rgba(0, 178, 169, 0.10));
  border-bottom: 1px solid rgba(247, 181, 0, 0.34);
  box-shadow: 0 16px 42px rgba(74, 7, 18, 0.22);
}

body.theme-liverpool .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #f7b500 0%, #f7b500 18%, #00b2a9 18%, #00b2a9 30%, #c8102e 30%, #c8102e 100%);
}

body.theme-liverpool .topbar .brand {
  background: linear-gradient(135deg, #ffffff, #ffe7b3 68%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-liverpool .topbar .brand p {
  color: rgba(255, 255, 255, 0.80);
}

body.theme-liverpool .topbar-logo {
  object-fit: contain;
  filter:
    drop-shadow(0 13px 16px rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 10px rgba(247, 181, 0, 0.18));
}

body.theme-liverpool .user-strip {
  background: rgba(255, 252, 247, 0.74);
  border-bottom-color: rgba(200, 16, 46, 0.14);
}

body.theme-liverpool .topbar-scan-link,
body.theme-liverpool .nav-dropdown-button,
body.theme-liverpool .settings-link {
  background: rgba(255, 252, 247, 0.96) !important;
  border-color: rgba(247, 181, 0, 0.48) !important;
  color: #8f0d22 !important;
  box-shadow: 0 8px 20px rgba(74, 7, 18, 0.16);
}

body.theme-liverpool .topbar-scan-link:hover,
body.theme-liverpool .nav-dropdown-button:hover,
body.theme-liverpool .settings-link:hover,
body.theme-liverpool .button.secondary:hover,
body.theme-liverpool button.secondary:hover,
body.theme-liverpool .category-tab.active,
body.theme-liverpool .category-tab:hover,
body.theme-liverpool .sort-button:hover,
body.theme-liverpool .sort-button.active {
  background: #c8102e !important;
  border-color: #c8102e !important;
  color: #ffffff !important;
}

body.theme-liverpool .button,
body.theme-liverpool button {
  background: linear-gradient(135deg, #c8102e, #8f0d22);
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.24);
}

body.theme-liverpool .button:hover,
body.theme-liverpool button:hover {
  background: linear-gradient(135deg, #8f0d22, #5f0715);
}

body.theme-liverpool .button.danger,
body.theme-liverpool button.danger,
body.theme-liverpool .nav-badge {
  background: linear-gradient(135deg, #00b2a9, #04756f);
}

body.theme-liverpool .card,
body.theme-liverpool .metric,
body.theme-liverpool .summary-card,
body.theme-liverpool .dashboard-search-form,
body.theme-liverpool .subcategory-panel,
body.theme-liverpool .file-drop-zone,
body.theme-liverpool .request-order-card,
body.theme-liverpool .table-wrap,
body.theme-liverpool .bottle-card {
  border-color: rgba(200, 16, 46, 0.14);
}

body.theme-liverpool .card h2,
body.theme-liverpool .category-section-header h3,
body.theme-liverpool .request-order-header h4,
body.theme-liverpool .metric strong {
  color: #4a0712;
}

body.theme-liverpool .summary-card::before,
body.theme-liverpool .dashboard-table tr:hover td:first-child {
  background: #00b2a9;
  border-left-color: #00b2a9;
}

body.theme-liverpool tr:hover td {
  background: #fff1eb;
}

body.theme-liverpool input:focus,
body.theme-liverpool textarea:focus,
body.theme-liverpool select:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.13);
}

body.theme-liverpool .category-tab {
  border-color: rgba(200, 16, 46, 0.14);
}

body.theme-liverpool .category-tab span {
  background: #ffe8df;
  color: #8f0d22 !important;
}

body.theme-liverpool .category-tab.active span,
body.theme-liverpool .category-tab:hover span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

body.theme-liverpool .pill.ok,
body.theme-liverpool .status-ok {
  background: #e4fbf9;
  color: #04756f;
}

/* Sports Theme: Raiders
   Black, silver, and white with a tougher high-contrast shield feel. */
body.theme-raiders {
  --bg: #eceff3;
  --card: rgba(255, 255, 255, 0.94);
  --panel: #f6f7f9;
  --panel-muted: #e6e9ee;
  --text: #111315;
  --muted: #626973;
  --border: #c7ccd3;
  --accent: #111315;
  --accent-dark: #000000;
  --accent-soft: #eef0f3;
  --navy: #111315;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.13);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.09);
  background:
    radial-gradient(circle at 9% 8%, rgba(0, 0, 0, 0.14), transparent 32rem),
    radial-gradient(circle at 88% 6%, rgba(167, 169, 172, 0.24), transparent 27rem),
    linear-gradient(180deg, #fbfcfd 0%, #eceff3 48%, #dfe3e8 100%);
}

body.theme-raiders::before {
  content: "";
  position: fixed;
  inset: 122px -4vw auto auto;
  width: min(40vw, 430px);
  height: min(44vw, 460px);
  background: url("raiders-logo.svg") center / contain no-repeat;
  opacity: 0.052;
  pointer-events: none;
  z-index: -1;
  transform: rotate(3deg);
}

body.theme-raiders a {
  color: #111315;
}

body.theme-raiders .topbar {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(35, 31, 32, 0.93)),
    linear-gradient(135deg, rgba(167, 169, 172, 0.18), rgba(255, 255, 255, 0.05));
  border-bottom: 1px solid rgba(198, 200, 203, 0.42);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

body.theme-raiders .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 16%, #a7a9ac 16%, #a7a9ac 84%, #ffffff 84%, #ffffff 100%);
}

body.theme-raiders .topbar .brand {
  background: linear-gradient(135deg, #ffffff, #c8c7c7 72%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-raiders .topbar .brand p {
  color: rgba(255, 255, 255, 0.76);
}

body.theme-raiders .topbar-logo {
  object-fit: contain;
  filter:
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.18));
}

body.theme-raiders .user-strip {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

body.theme-raiders .topbar-scan-link,
body.theme-raiders .nav-dropdown-button,
body.theme-raiders .settings-link {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(167, 169, 172, 0.72) !important;
  color: #111315 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

body.theme-raiders .topbar-scan-link:hover,
body.theme-raiders .nav-dropdown-button:hover,
body.theme-raiders .settings-link:hover,
body.theme-raiders .button.secondary:hover,
body.theme-raiders button.secondary:hover,
body.theme-raiders .category-tab.active,
body.theme-raiders .category-tab:hover,
body.theme-raiders .sort-button:hover,
body.theme-raiders .sort-button.active {
  background: #111315 !important;
  border-color: #111315 !important;
  color: #ffffff !important;
}

body.theme-raiders .button,
body.theme-raiders button {
  background: linear-gradient(135deg, #2d3034, #000000);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

body.theme-raiders .button:hover,
body.theme-raiders button:hover {
  background: linear-gradient(135deg, #000000, #111315);
}

body.theme-raiders .button.danger,
body.theme-raiders button.danger,
body.theme-raiders .nav-badge {
  background: linear-gradient(135deg, #5b616a, #111315);
}

body.theme-raiders .card,
body.theme-raiders .metric,
body.theme-raiders .summary-card,
body.theme-raiders .dashboard-search-form,
body.theme-raiders .subcategory-panel,
body.theme-raiders .file-drop-zone,
body.theme-raiders .request-order-card,
body.theme-raiders .table-wrap,
body.theme-raiders .bottle-card {
  border-color: rgba(0, 0, 0, 0.13);
}

body.theme-raiders .card h2,
body.theme-raiders .category-section-header h3,
body.theme-raiders .request-order-header h4,
body.theme-raiders .metric strong {
  color: #111315;
}

body.theme-raiders .summary-card::before,
body.theme-raiders .dashboard-table tr:hover td:first-child {
  background: #a7a9ac;
  border-left-color: #a7a9ac;
}

body.theme-raiders tr:hover td {
  background: #f3f4f6;
}

body.theme-raiders input:focus,
body.theme-raiders textarea:focus,
body.theme-raiders select:focus {
  border-color: #111315;
  box-shadow: 0 0 0 4px rgba(17, 19, 21, 0.13);
}

body.theme-raiders .category-tab {
  border-color: rgba(0, 0, 0, 0.14);
}

body.theme-raiders .category-tab span {
  background: #eef0f3;
  color: #111315 !important;
}

body.theme-raiders .category-tab.active span,
body.theme-raiders .category-tab:hover span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

body.theme-raiders .pill.ok,
body.theme-raiders .status-ok {
  background: #eef0f3;
  color: #111315;
}

/* Anthem break easter egg overlay for Chelsea/Liverpool themes. */
body.anthem-break-active {
  overflow: hidden;
}

.anthem-break-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.20), transparent 22rem),
    rgba(7, 12, 24, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.anthem-break-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.anthem-break-card {
  position: relative;
  width: min(92vw, 520px);
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 48px 34px 38px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.90));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.8s cubic-bezier(.2, .9, .2, 1);
}

.anthem-break-overlay.is-visible .anthem-break-card {
  transform: translateY(0) scale(1);
}

.anthem-break-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.70), transparent 62%);
  pointer-events: none;
}

.anthem-break-logo {
  position: relative;
  width: min(58vw, 240px);
  height: min(58vw, 240px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.72) rotate(-3deg);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.20));
}

.anthem-break-overlay.is-visible .anthem-break-logo {
  animation: anthemLogoReveal 3s ease forwards;
}

.anthem-break-kicker {
  position: relative;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.anthem-break-card h2 {
  position: relative;
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--accent-dark);
}

.anthem-break-note {
  position: relative;
  max-width: 360px;
  margin: 6px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.anthem-break-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 31px;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.18s ease;
}

.anthem-break-overlay.can-close .anthem-break-close {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.anthem-break-overlay.can-close .anthem-break-note::after {
  content: " You can close the break now.";
}

.anthem-break-close:hover {
  background: #111827;
  color: #ffffff;
}

body.theme-chelsea .anthem-break-close,
body.theme-liverpool .anthem-break-close {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #111827 !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18) !important;
}

body.theme-chelsea .anthem-break-close:hover,
body.theme-liverpool .anthem-break-close:hover {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
}

/* Sports Theme: Los Angeles Angels
   Bright halo red, deep navy contrast, silver trim, and crisp white cards. */
body.theme-angels {
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.95);
  --panel: #fff5f6;
  --panel-muted: #ffe6ea;
  --text: #111827;
  --muted: #5f6b7a;
  --border: #d7dce5;
  --accent: #ba0021;
  --accent-strong: #862633;
  --accent-soft: #ffe6ea;
  --navy: #003263;
  --danger: #ba0021;
  background:
    radial-gradient(circle at 12% 12%, rgba(186, 0, 33, 0.12), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(0, 50, 99, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 44%, #eef2f7 100%);
}

body.theme-angels::before {
  content: "";
  position: fixed;
  right: -80px;
  bottom: -80px;
  width: min(44vw, 460px);
  height: min(44vw, 460px);
  background: url("angels-logo.svg") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-5deg);
}

body.theme-angels a {
  color: #ba0021;
}

body.theme-angels .topbar {
  background:
    linear-gradient(90deg, rgba(186, 0, 33, 0.97), rgba(134, 38, 51, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 50, 99, 0.10));
  border-bottom: 1px solid rgba(214, 218, 224, 0.62);
  box-shadow: 0 16px 42px rgba(134, 38, 51, 0.22);
}

body.theme-angels .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 12%, #c4ced4 12%, #c4ced4 28%, #003263 28%, #003263 72%, #c4ced4 72%, #c4ced4 88%, #ffffff 88%, #ffffff 100%);
}

body.theme-angels .topbar .brand,
body.theme-angels .topbar .brand h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 0 rgba(0, 50, 99, 0.34), 0 8px 20px rgba(0, 0, 0, 0.22);
}

body.theme-angels .topbar .brand p {
  color: rgba(255, 255, 255, 0.82);
}

body.theme-angels .topbar-logo {
  object-fit: contain;
  filter:
    drop-shadow(0 12px 16px rgba(0, 50, 99, 0.22))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

body.theme-angels .user-strip {
  background: rgba(255, 255, 255, 0.76);
  border-bottom-color: rgba(186, 0, 33, 0.16);
}

body.theme-angels .topbar-scan-link,
body.theme-angels .nav-dropdown-button,
body.theme-angels .settings-link {
  background: #ffffff !important;
  border-color: rgba(196, 206, 212, 0.76) !important;
  color: #ba0021 !important;
}

body.theme-angels .topbar-scan-link:hover,
body.theme-angels .nav-dropdown-button:hover,
body.theme-angels .settings-link:hover,
body.theme-angels .button.secondary:hover,
body.theme-angels button.secondary:hover,
body.theme-angels .category-tab.active,
body.theme-angels .category-tab:hover,
body.theme-angels .sort-button:hover,
body.theme-angels .sort-button.active {
  background: #003263 !important;
  border-color: #003263 !important;
  color: #ffffff !important;
}

body.theme-angels .button,
body.theme-angels button {
  background: linear-gradient(135deg, #ba0021, #862633);
  box-shadow: 0 10px 22px rgba(186, 0, 33, 0.24);
}

body.theme-angels .button:hover,
body.theme-angels button:hover {
  background: linear-gradient(135deg, #862633, #003263);
}

body.theme-angels .button.danger,
body.theme-angels button.danger,
body.theme-angels .nav-badge {
  background: linear-gradient(135deg, #003263, #001f3f);
}

body.theme-angels .card,
body.theme-angels .metric,
body.theme-angels .summary-card,
body.theme-angels .dashboard-search-form,
body.theme-angels .subcategory-panel,
body.theme-angels .file-drop-zone,
body.theme-angels .request-order-card,
body.theme-angels .table-wrap,
body.theme-angels .bottle-card {
  border-color: rgba(186, 0, 33, 0.14);
}

body.theme-angels .card h2,
body.theme-angels .category-section-header h3,
body.theme-angels .request-order-header h4,
body.theme-angels .metric strong {
  color: #862633;
}

body.theme-angels .summary-card::before,
body.theme-angels .dashboard-table tr:hover td:first-child {
  background: #ba0021;
  border-left-color: #ba0021;
}

body.theme-angels tr:hover td {
  background: #fff3f5;
}

body.theme-angels input:focus,
body.theme-angels textarea:focus,
body.theme-angels select:focus {
  border-color: #ba0021;
  box-shadow: 0 0 0 4px rgba(186, 0, 33, 0.13);
}

body.theme-angels .category-tab {
  border-color: rgba(186, 0, 33, 0.14);
}

body.theme-angels .category-tab span {
  background: #ffe6ea;
  color: #862633 !important;
}

body.theme-angels .category-tab.active span,
body.theme-angels .category-tab:hover span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

body.theme-angels .pill.ok,
body.theme-angels .status-ok {
  background: #eaf1f8;
  color: #003263;
}

body.theme-angels .button:not(.category-tab):not(.topbar-scan-link),
body.theme-angels button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link),
body.theme-angels input[type="submit"],
body.theme-angels .small-button:not(.category-tab),
body.theme-angels .sort-button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-angels .bottle-actions a:not(.link-button) {
  background: #ba0021 !important;
  border-color: #ba0021 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-angels .bottle-actions a:not(.link-button):hover {
  background: #f8ccd3 !important;
  border-color: #f0a9b5 !important;
  color: #862633 !important;
  -webkit-text-fill-color: #862633 !important;
}

body.theme-angels .link-button.bottle-toggle,
body.theme-angels .link-button.bottle-toggle:hover,
body.theme-angels .link-button.bottle-toggle:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ba0021 !important;
  -webkit-text-fill-color: #ba0021 !important;
  padding-left: 0;
  padding-right: 0;
}

body.theme-angels .link-button.bottle-toggle:hover,
body.theme-angels .link-button.bottle-toggle:focus {
  color: #d71920 !important;
  -webkit-text-fill-color: #d71920 !important;
  text-decoration: underline;
}

body.theme-angels .topbar .topbar-scan-link,
body.theme-angels .topbar .nav-dropdown-button,
body.theme-angels .topbar .settings-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -2px 0 rgba(186, 0, 33, 0.18),
    0 8px 0 rgba(134, 38, 51, 0.24),
    0 16px 28px rgba(134, 38, 51, 0.27) !important;
}

body.theme-angels button.link-button.bottle-toggle,
body.theme-angels .dashboard-table button.link-button.bottle-toggle,
body.theme-angels .category-section button.link-button.bottle-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ba0021 !important;
  -webkit-text-fill-color: #ba0021 !important;
}

body.theme-angels button.link-button.bottle-toggle:hover,
body.theme-angels button.link-button.bottle-toggle:focus,
body.theme-angels .dashboard-table button.link-button.bottle-toggle:hover,
body.theme-angels .category-section button.link-button.bottle-toggle:hover {
  color: #d71920 !important;
  -webkit-text-fill-color: #d71920 !important;
  text-decoration: underline;
}

body.theme-chelsea .anthem-break-card {
  border-color: rgba(251, 183, 1, 0.45);
  box-shadow:
    0 38px 95px rgba(0, 31, 91, 0.38),
    0 0 0 6px rgba(3, 70, 148, 0.10);
}

body.theme-liverpool .anthem-break-card {
  border-color: rgba(247, 181, 0, 0.42);
  box-shadow:
    0 38px 95px rgba(117, 9, 25, 0.38),
    0 0 0 6px rgba(200, 16, 46, 0.10);
}

body.theme-liverpool .anthem-break-card h2 {
  color: #8f0d22;
}

@keyframes anthemLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-3deg);
  }
  55% {
    opacity: 0.82;
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Chelsea/Liverpool theme contrast tune-up - July 2026 */
body.theme-chelsea .topbar .brand,
body.theme-chelsea .topbar .brand h1,
body.theme-liverpool .topbar .brand,
body.theme-liverpool .topbar .brand h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-chelsea .topbar-scan-link,
body.theme-chelsea .nav-dropdown-button,
body.theme-chelsea .settings-link,
body.theme-chelsea .button,
body.theme-chelsea button,
body.theme-chelsea .button.secondary,
body.theme-chelsea button.secondary,
body.theme-chelsea .category-tab,
body.theme-chelsea .sort-button,
body.theme-chelsea .bottle-actions a {
  background: #034694 !important;
  border-color: #034694 !important;
  color: #ffffff !important;
}

body.theme-chelsea .topbar-scan-link:hover,
body.theme-chelsea .nav-dropdown-button:hover,
body.theme-chelsea .settings-link:hover,
body.theme-chelsea .button:hover,
body.theme-chelsea button:hover,
body.theme-chelsea .button.secondary:hover,
body.theme-chelsea button.secondary:hover,
body.theme-chelsea .category-tab:hover,
body.theme-chelsea .category-tab.active,
body.theme-chelsea .sort-button:hover,
body.theme-chelsea .sort-button.active,
body.theme-chelsea .bottle-actions a:hover {
  background: #001f5b !important;
  border-color: #001f5b !important;
  color: #ee2936 !important;
}

body.theme-chelsea .link-button.bottle-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #034694 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-decoration: none;
}

body.theme-chelsea .link-button.bottle-toggle:hover {
  background: transparent !important;
  color: #ee2936 !important;
  text-decoration: underline;
  transform: none;
}

body.theme-liverpool .topbar-scan-link,
body.theme-liverpool .nav-dropdown-button,
body.theme-liverpool .settings-link,
body.theme-liverpool .button,
body.theme-liverpool button,
body.theme-liverpool .button.secondary,
body.theme-liverpool button.secondary,
body.theme-liverpool .category-tab,
body.theme-liverpool .sort-button,
body.theme-liverpool .bottle-actions a {
  background: #c8102e !important;
  border-color: #c8102e !important;
  color: #ffffff !important;
}

body.theme-liverpool .topbar-scan-link:hover,
body.theme-liverpool .nav-dropdown-button:hover,
body.theme-liverpool .settings-link:hover,
body.theme-liverpool .button:hover,
body.theme-liverpool button:hover,
body.theme-liverpool .button.secondary:hover,
body.theme-liverpool button.secondary:hover,
body.theme-liverpool .category-tab:hover,
body.theme-liverpool .category-tab.active,
body.theme-liverpool .sort-button:hover,
body.theme-liverpool .sort-button.active,
body.theme-liverpool .bottle-actions a:hover {
  background: #8f0d22 !important;
  border-color: #8f0d22 !important;
  color: #00b2a9 !important;
}

body.theme-liverpool .link-button.bottle-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #c8102e !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-decoration: none;
}

body.theme-liverpool .link-button.bottle-toggle:hover {
  background: transparent !important;
  color: #00b2a9 !important;
  text-decoration: underline;
  transform: none;
}

body.theme-chelsea .anthem-break-card h2,
body.theme-liverpool .anthem-break-card h2 {
  font-size: clamp(42px, 7vw, 68px);
  letter-spacing: -0.075em;
}

body.theme-chelsea .category-tab span,
body.theme-chelsea .category-tab:hover span,
body.theme-chelsea .category-tab.active span,
body.theme-liverpool .category-tab span,
body.theme-liverpool .category-tab:hover span,
body.theme-liverpool .category-tab.active span {
  color: inherit !important;
}

/* Keep dashboard category count pills readable on Chelsea/Liverpool themes. */
body.theme-chelsea .category-tab span,
body.theme-chelsea .category-tab:hover span,
body.theme-chelsea .category-tab.active span {
  background: #e8efff !important;
  color: #034694 !important;
}

body.theme-liverpool .category-tab span,
body.theme-liverpool .category-tab:hover span,
body.theme-liverpool .category-tab.active span {
  background: #ffe8df !important;
  color: #c8102e !important;
}

/* Raiders theme contrast tune-up - July 2026 */
body.theme-raiders .topbar .brand,
body.theme-raiders .topbar .brand h1 {
  background: linear-gradient(135deg, #ffffff 0%, #d7d8da 34%, #8f949a 58%, #f7f8f9 82%, #b7babf 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: #d7d8da !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.26), 0 9px 18px rgba(0, 0, 0, 0.36);
}

body.theme-raiders .button:not(.category-tab):not(.topbar-scan-link),
body.theme-raiders button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link),
body.theme-raiders input[type="submit"],
body.theme-raiders .small-button:not(.category-tab),
body.theme-raiders .sort-button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-raiders .bottle-actions a:not(.link-button) {
  background: #0b0b0d !important;
  border-color: #0b0b0d !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-raiders .bottle-actions a:not(.link-button):hover {
  background: #d7d8da !important;
  border-color: #a7a9ac !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

body.theme-raiders .link-button.bottle-toggle,
body.theme-raiders .link-button.bottle-toggle:hover,
body.theme-raiders .link-button.bottle-toggle:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  padding-left: 0;
  padding-right: 0;
}

body.theme-raiders .link-button.bottle-toggle:hover,
body.theme-raiders .link-button.bottle-toggle:focus {
  text-decoration: underline;
}

/* Dodgers theme contrast tune-up - July 2026 */
body.theme-dodgers .button:not(.category-tab):not(.topbar-scan-link),
body.theme-dodgers button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link),
body.theme-dodgers input[type="submit"],
body.theme-dodgers .small-button:not(.category-tab),
body.theme-dodgers .sort-button,
body.theme-dodgers .bottle-actions a:not(.link-button) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.theme-dodgers .button:not(.category-tab):not(.topbar-scan-link):hover,
body.theme-dodgers button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link):hover,
body.theme-dodgers input[type="submit"]:hover,
body.theme-dodgers .small-button:not(.category-tab):hover,
body.theme-dodgers .sort-button:hover,
body.theme-dodgers .sort-button.active,
body.theme-dodgers .bottle-actions a:not(.link-button):hover {
  color: #ef3e42 !important;
  -webkit-text-fill-color: #ef3e42 !important;
}

body.theme-dodgers .link-button.bottle-toggle,
body.theme-dodgers .link-button.bottle-toggle:hover,
body.theme-dodgers .link-button.bottle-toggle:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #005a9c !important;
  -webkit-text-fill-color: #005a9c !important;
  padding-left: 0;
  padding-right: 0;
}

body.theme-dodgers .link-button.bottle-toggle:hover,
body.theme-dodgers .link-button.bottle-toggle:focus {
  text-decoration: underline;
}

/* Raised 3D top banner buttons - July 2026 */
.topbar .topbar-scan-link,
.topbar .nav-dropdown-button,
.topbar .settings-link {
  position: relative;
  transform: translateY(0);
  border-width: 1px;
  border-style: solid;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 8px 0 rgba(0, 0, 0, 0.12),
    0 16px 26px rgba(15, 23, 42, 0.18) !important;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.topbar .topbar-scan-link::after,
.topbar .nav-dropdown-button::after,
.topbar .settings-link::after {
  content: "";
  position: absolute;
  inset: 1px 3px auto 3px;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.topbar .topbar-scan-link:hover,
.topbar .nav-dropdown-button:hover,
.topbar .settings-link:hover,
.topbar .nav-dropdown[open] .nav-dropdown-button {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -2px 0 rgba(0, 0, 0, 0.17),
    0 10px 0 rgba(0, 0, 0, 0.13),
    0 20px 32px rgba(15, 23, 42, 0.24) !important;
}

.topbar .topbar-scan-link:active,
.topbar .nav-dropdown-button:active,
.topbar .settings-link:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 2px 5px rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.14),
    0 8px 16px rgba(15, 23, 42, 0.18) !important;
}

body.theme-dodgers .topbar .topbar-scan-link,
body.theme-dodgers .topbar .nav-dropdown-button,
body.theme-dodgers .topbar .settings-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -2px 0 rgba(0, 63, 115, 0.18),
    0 8px 0 rgba(0, 63, 115, 0.18),
    0 16px 26px rgba(0, 90, 156, 0.20) !important;
}

body.theme-chelsea .topbar .topbar-scan-link,
body.theme-chelsea .topbar .nav-dropdown-button,
body.theme-chelsea .topbar .settings-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 31, 91, 0.38),
    0 8px 0 rgba(0, 31, 91, 0.42),
    0 16px 28px rgba(0, 31, 91, 0.34) !important;
}

body.theme-liverpool .topbar .topbar-scan-link,
body.theme-liverpool .topbar .nav-dropdown-button,
body.theme-liverpool .topbar .settings-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -2px 0 rgba(97, 7, 20, 0.38),
    0 8px 0 rgba(97, 7, 20, 0.42),
    0 16px 28px rgba(117, 9, 25, 0.32) !important;
}

body.theme-raiders .topbar .topbar-scan-link,
body.theme-raiders .topbar .nav-dropdown-button,
body.theme-raiders .topbar .settings-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 8px 0 rgba(0, 0, 0, 0.24),
    0 16px 28px rgba(0, 0, 0, 0.30) !important;
}

body.theme-chelsea .anthem-break-close,
body.theme-liverpool .anthem-break-close {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #111827 !important;
}

body.theme-chelsea .anthem-break-close:hover,
body.theme-liverpool .anthem-break-close:hover {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
}

/* Final Angels topbar 3D shadow override. */
body.theme-angels .topbar .topbar-scan-link,
body.theme-angels .topbar .nav-dropdown-button,
body.theme-angels .topbar .settings-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -2px 0 rgba(186, 0, 33, 0.18),
    0 8px 0 rgba(134, 38, 51, 0.24),
    0 16px 28px rgba(134, 38, 51, 0.27) !important;
}

/* New Jersey Devils theme */
body.theme-devils {
  --accent: #ce1126;
  --accent-2: #111111;
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.94);
  --text: #111111;
  --muted: #5f666f;
  --border: #d4d7dc;
  background:
    radial-gradient(circle at 9% 7%, rgba(206, 17, 38, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(0, 0, 0, 0.12), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #f4f6f8 48%, #eef1f4 100%);
}

body.theme-devils::before {
  content: "";
  position: fixed;
  inset: 130px auto auto 50%;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  transform: translateX(-50%) rotate(-8deg);
  background: url("devils-logo.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: -1;
}

body.theme-devils a {
  color: #ce1126;
}

body.theme-devils .topbar {
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.94), rgba(39, 39, 42, 0.94)),
    radial-gradient(circle at 78% 12%, rgba(206, 17, 38, 0.32), transparent 26rem);
  color: #fff;
  border-bottom: 1px solid rgba(206, 17, 38, 0.38);
}

body.theme-devils .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(206, 17, 38, 0.78), transparent);
}

body.theme-devils .topbar .brand,
body.theme-devils .topbar .brand h1,
body.theme-devils .topbar .brand p {
  color: #fff;
}

body.theme-devils .topbar-logo {
  max-width: 116px;
  max-height: 74px;
  filter: drop-shadow(0 10px 16px rgba(206, 17, 38, 0.38));
}

body.theme-devils .user-strip {
  background: #111;
  color: #f9fafb;
}

body.theme-devils .topbar .topbar-scan-link,
body.theme-devils .topbar .nav-dropdown-button,
body.theme-devils .topbar .settings-link {
  color: #fff !important;
}

body.theme-devils .button:not(.category-tab):not(.topbar-scan-link),
body.theme-devils button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link),
body.theme-devils input[type="submit"],
body.theme-devils .small-button:not(.category-tab),
body.theme-devils .sort-button,
body.theme-devils .bottle-actions a:not(.link-button) {
  background: linear-gradient(145deg, #ce1126, #8f0c1b) !important;
  color: #fff !important;
  border-color: #111 !important;
}

body.theme-devils .button:not(.category-tab):not(.topbar-scan-link):hover,
body.theme-devils button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link):hover,
body.theme-devils input[type="submit"]:hover,
body.theme-devils .small-button:not(.category-tab):hover,
body.theme-devils .sort-button:hover,
body.theme-devils .sort-button.active,
body.theme-devils .bottle-actions a:not(.link-button):hover {
  background: linear-gradient(145deg, #111, #2b2b2f) !important;
  color: #fff !important;
  border-color: #ce1126 !important;
}

body.theme-devils .category-tab {
  color: #111;
}

body.theme-devils .category-tab.active,
body.theme-devils .category-tab:hover {
  background: #111;
  color: #fff;
  border-color: #ce1126;
}

body.theme-devils .category-tab span {
  color: #ce1126;
}

body.theme-devils .category-tab.active span,
body.theme-devils .category-tab:hover span {
  color: #fff;
}

body.theme-devils .card,
body.theme-devils .metric,
body.theme-devils .summary-card,
body.theme-devils .dashboard-search-form,
body.theme-devils .subcategory-panel,
body.theme-devils .file-drop-zone,
body.theme-devils .request-order-card,
body.theme-devils .table-wrap,
body.theme-devils .bottle-card {
  border-color: rgba(206, 17, 38, 0.16);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
}

body.theme-devils .card h2,
body.theme-devils .category-section-header h3,
body.theme-devils .request-order-header h4,
body.theme-devils .metric strong {
  color: #ce1126;
}

body.theme-devils .summary-card::before,
body.theme-devils .dashboard-table tr:hover td:first-child {
  border-left-color: #ce1126;
}

body.theme-devils .link-button.bottle-toggle,
body.theme-devils .link-button.bottle-toggle:hover,
body.theme-devils .link-button.bottle-toggle:focus {
  color: #ce1126 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.theme-devils input:focus,
body.theme-devils textarea:focus,
body.theme-devils select:focus {
  border-color: #ce1126;
  box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.16);
}

body.theme-devils .devils-break-card {
  width: min(900px, 92vw);
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.98), rgba(35, 35, 38, 0.97)),
    radial-gradient(circle at top right, rgba(206, 17, 38, 0.34), transparent 28rem);
  border: 8px solid #ce1126;
  box-shadow:
    0 0 0 5px #111,
    0 0 0 9px #ffffff,
    0 30px 90px rgba(0, 0, 0, 0.55);
  padding: 24px;
}

.devils-break-video {
  display: block;
  width: 100%;
  max-height: min(62vh, 520px);
  object-fit: contain;
  background: #000;
  border: 5px solid #fff;
  box-shadow: 0 0 0 5px #ce1126, 0 0 0 9px #111;
  border-radius: 20px;
}

body.theme-devils .devils-break-card h2 {
  color: #fff;
  margin: 22px 0 0;
  font-size: clamp(34px, 6vw, 68px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #ce1126, 0 10px 24px rgba(0, 0, 0, 0.58);
}

body.theme-devils .devils-break-close {
  background: #ce1126;
  color: #fff;
  border-color: #fff;
}

body.theme-devils .devils-break-close:hover {
  background: #fff;
  color: #ce1126;
}

/* Pompompurin theme */
body.theme-pompompurin {
  --accent: #d8892f;
  --accent-2: #6f3a1f;
  --bg: #fff5cf;
  --card: rgba(255, 253, 239, 0.94);
  --text: #5b341d;
  --muted: #8a6a47;
  --border: #f2d68e;
  font-family: "Comic Sans MS", "Trebuchet MS", "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  background-color: #fff5cf;
  background-image:
    linear-gradient(rgba(255, 246, 204, 0.88), rgba(255, 246, 204, 0.88)),
    url("pompompurin-logo.jpg");
  background-repeat: repeat, repeat;
  background-size: auto, 148px 148px;
  background-attachment: fixed, fixed;
}

body.theme-pompompurin::before {
  content: "";
  position: fixed;
  inset: 110px 24px auto auto;
  width: min(28vw, 340px);
  height: min(28vw, 340px);
  background: url("pompompurin-logo.jpg") center / cover no-repeat;
  opacity: 0.16;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 20px 45px rgba(111, 58, 31, 0.14);
  pointer-events: none;
  z-index: -1;
}

body.theme-pompompurin h1,
body.theme-pompompurin h2,
body.theme-pompompurin h3,
body.theme-pompompurin h4,
body.theme-pompompurin button,
body.theme-pompompurin .button,
body.theme-pompompurin .topbar-scan-link,
body.theme-pompompurin .nav-dropdown-button,
body.theme-pompompurin .category-tab,
body.theme-pompompurin .sort-button {
  font-family: "Comic Sans MS", "Trebuchet MS", "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

body.theme-pompompurin a {
  color: #b86b25;
}

body.theme-pompompurin .topbar {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.54), transparent 24rem),
    linear-gradient(120deg, #7a3f22, #c98232 48%, #f5c45f);
  color: #fffdf2;
  border-bottom: 1px solid rgba(111, 58, 31, 0.22);
}

body.theme-pompompurin .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 245, 188, 0.95), transparent);
}

body.theme-pompompurin .topbar .brand,
body.theme-pompompurin .topbar .brand h1,
body.theme-pompompurin .topbar .brand p {
  color: #fffdf2;
  text-shadow: 0 2px 0 rgba(111, 58, 31, 0.26);
}

body.theme-pompompurin .topbar-logo {
  width: 78px;
  height: 78px;
  max-width: 78px;
  max-height: 78px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff8d6;
  box-shadow: 0 10px 18px rgba(111, 58, 31, 0.24);
}

body.theme-pompompurin .user-strip {
  background: #fff3bf;
  color: #6f3a1f;
  border-bottom: 1px solid rgba(216, 137, 47, 0.24);
}

body.theme-pompompurin .topbar .topbar-scan-link,
body.theme-pompompurin .topbar .nav-dropdown-button,
body.theme-pompompurin .topbar .settings-link {
  color: #5b341d !important;
  background: linear-gradient(145deg, #fff8d6, #ffd979) !important;
  border-color: rgba(111, 58, 31, 0.22) !important;
}

body.theme-pompompurin .topbar .topbar-scan-link:hover,
body.theme-pompompurin .topbar .nav-dropdown-button:hover,
body.theme-pompompurin .topbar .settings-link:hover {
  color: #fffdf2 !important;
  background: linear-gradient(145deg, #8a4a27, #d8892f) !important;
}

body.theme-pompompurin .button:not(.category-tab):not(.topbar-scan-link),
body.theme-pompompurin button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link),
body.theme-pompompurin input[type="submit"],
body.theme-pompompurin .small-button:not(.category-tab),
body.theme-pompompurin .sort-button,
body.theme-pompompurin .bottle-actions a:not(.link-button) {
  background: linear-gradient(145deg, #ffd979, #d8892f) !important;
  color: #5b341d !important;
  border-color: #8a4a27 !important;
  border-radius: 999px !important;
}

body.theme-pompompurin .button:not(.category-tab):not(.topbar-scan-link):hover,
body.theme-pompompurin button:not(.category-tab):not(.nav-dropdown-button):not(.settings-link):hover,
body.theme-pompompurin input[type="submit"]:hover,
body.theme-pompompurin .small-button:not(.category-tab):hover,
body.theme-pompompurin .sort-button:hover,
body.theme-pompompurin .sort-button.active,
body.theme-pompompurin .bottle-actions a:not(.link-button):hover {
  background: linear-gradient(145deg, #8a4a27, #5b341d) !important;
  color: #fff8d6 !important;
  border-color: #ffd979 !important;
}

body.theme-pompompurin .category-tab {
  color: #6f3a1f;
  background: rgba(255, 253, 239, 0.82);
  border-color: #f2d68e;
  border-radius: 999px;
}

body.theme-pompompurin .category-tab.active,
body.theme-pompompurin .category-tab:hover {
  background: #7a3f22;
  color: #fff8d6;
  border-color: #ffd979;
}

body.theme-pompompurin .category-tab span {
  color: #d8892f;
}

body.theme-pompompurin .category-tab.active span,
body.theme-pompompurin .category-tab:hover span {
  color: #fff8d6;
}

body.theme-pompompurin .card,
body.theme-pompompurin .metric,
body.theme-pompompurin .summary-card,
body.theme-pompompurin .dashboard-search-form,
body.theme-pompompurin .subcategory-panel,
body.theme-pompompurin .file-drop-zone,
body.theme-pompompurin .request-order-card,
body.theme-pompompurin .table-wrap,
body.theme-pompompurin .bottle-card {
  border-color: rgba(216, 137, 47, 0.22);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(111, 58, 31, 0.11);
}

body.theme-pompompurin .card h2,
body.theme-pompompurin .category-section-header h3,
body.theme-pompompurin .request-order-header h4,
body.theme-pompompurin .metric strong {
  color: #9a5527;
}

body.theme-pompompurin .summary-card::before,
body.theme-pompompurin .dashboard-table tr:hover td:first-child {
  border-left-color: #d8892f;
}

body.theme-pompompurin .link-button.bottle-toggle,
body.theme-pompompurin .link-button.bottle-toggle:hover,
body.theme-pompompurin .link-button.bottle-toggle:focus {
  color: #b86b25 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.button.primary-action,
button.primary-action {
  padding: 13px 20px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

body.theme-pompompurin input:focus,
body.theme-pompompurin textarea:focus,
body.theme-pompompurin select:focus {
  border-color: #d8892f;
  box-shadow: 0 0 0 3px rgba(216, 137, 47, 0.18);
}

body.theme-pompompurin .pompompurin-break-card {
  width: min(900px, 92vw);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 24rem),
    linear-gradient(145deg, #fff8d6, #ffd979 58%, #e6a84b);
  border: 8px solid #8a4a27;
  box-shadow:
    0 0 0 6px #fffdf2,
    0 0 0 11px #ffd979,
    0 30px 90px rgba(111, 58, 31, 0.35);
  padding: 24px;
  border-radius: 34px;
}

.pompompurin-break-video {
  display: block;
  width: 100%;
  max-height: min(62vh, 520px);
  object-fit: contain;
  background: #fff8d6;
  border: 5px solid #fffdf2;
  box-shadow: 0 0 0 5px #ffd979, 0 0 0 9px #8a4a27;
  border-radius: 26px;
}

body.theme-pompompurin .pompompurin-break-card h2 {
  color: #6f3a1f;
  margin: 22px 0 0;
  font-size: clamp(32px, 5.4vw, 62px);
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 #fff8d6, 0 8px 22px rgba(111, 58, 31, 0.22);
}

body.theme-pompompurin .pompompurin-break-close {
  background: #8a4a27;
  color: #fff8d6;
  border-color: #fffdf2;
}

body.theme-pompompurin .pompompurin-break-close:hover {
  background: #fff8d6;
  color: #8a4a27;
}

body.theme-raiders .raiders-break-overlay {
  background:
    radial-gradient(circle at 18% 10%, rgba(210, 214, 218, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 82%, rgba(120, 126, 130, 0.2), transparent 26rem),
    rgba(0, 0, 0, 0.9);
}

body.theme-raiders .raiders-break-card {
  width: min(980px, 94vw);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(145deg, #050505, #18191b 58%, #000000);
  border: 8px solid #a5acaf;
  border-radius: 28px;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  box-shadow:
    0 0 0 4px #111111,
    0 0 38px rgba(165, 172, 175, 0.55),
    0 24px 70px rgba(0, 0, 0, 0.72);
}

.raiders-chaos-stage {
  position: relative;
  isolation: isolate;
}

.raiders-video-frame {
  position: relative;
  padding: 8px;
  overflow: hidden;
  border: 8px solid #c4c8cc;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b0b0c, #d7d9dc, #222222, #f4f4f5, #090909);
  box-shadow:
    inset 0 0 0 3px #111111,
    0 16px 34px rgba(0, 0, 0, 0.55);
}

.raiders-video-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
}

.raiders-break-video {
  display: block;
  width: 100%;
  max-height: min(62vh, 520px);
  object-fit: contain;
  background: #000000;
  border-radius: 12px;
}

.raiders-chaos-logo {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: clamp(86px, 11vw, 150px);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.65));
}

.raiders-chaos-logo-left {
  left: 0;
  animation: raidersLogoRushLeft 5.8s ease-in-out infinite;
}

.raiders-chaos-logo-right {
  right: 0;
  animation: raidersLogoRushRight 6.4s ease-in-out 0.8s infinite;
}

@keyframes raidersLogoRushLeft {
  0%,
  100% {
    transform: translate(-140%, -50%) rotate(-9deg) scale(0.82);
    opacity: 0;
  }

  18%,
  38% {
    transform: translate(12%, -50%) rotate(4deg) scale(1);
    opacity: 0.94;
  }

  58% {
    transform: translate(-95%, -50%) rotate(-14deg) scale(0.9);
    opacity: 0;
  }
}

@keyframes raidersLogoRushRight {
  0%,
  100% {
    transform: translate(140%, -50%) rotate(9deg) scale(0.82);
    opacity: 0;
  }

  20%,
  44% {
    transform: translate(-12%, -50%) rotate(-4deg) scale(1);
    opacity: 0.94;
  }

  64% {
    transform: translate(92%, -50%) rotate(14deg) scale(0.9);
    opacity: 0;
  }
}

body.theme-raiders .raiders-break-card h2 {
  margin: 24px 0 0;
  color: #f5f5f5;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #000000,
    0 0 18px rgba(197, 202, 206, 0.75),
    0 0 32px rgba(255, 255, 255, 0.26);
}

body.theme-raiders .raiders-break-close {
  color: #ffffff !important;
  background: #111111 !important;
  border: 2px solid #c4c8cc !important;
}

body.theme-raiders .raiders-break-close:hover {
  color: #000000 !important;
  background: #c4c8cc !important;
}

body.theme-raiders .raiders-break-overlay:not(.can-close) .raiders-break-close {
  opacity: 0;
  pointer-events: none;
}

.operations-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 26, 0.14), transparent 20rem),
    linear-gradient(135deg, #ffffff, #f8fafc 58%, #eef6ff);
}

.operations-hero h2 {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.operations-hero .muted {
  max-width: 860px;
  margin-top: 18px;
  font-size: 17px;
}

.operations-module-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  align-items: stretch;
}

.operations-module-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 26px);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82)),
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.18), transparent 12rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.operations-module-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -38% 12%;
  height: 120px;
  pointer-events: none;
  background: rgba(255, 122, 26, 0.1);
  transform: rotate(-12deg);
}

.operations-module-card:hover {
  color: var(--text);
  border-color: rgba(255, 122, 26, 0.34);
  box-shadow:
    0 24px 58px rgba(15, 23, 42, 0.13),
    0 0 0 4px rgba(255, 122, 26, 0.08);
  transform: translateY(-5px);
}

.operations-module-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  font-size: 32px;
  background: #fff7ed;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.operations-module-status {
  align-self: flex-start;
  padding: 6px 10px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #ffedd5;
  border-radius: 999px;
}

.operations-module-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.operations-module-card small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.operations-module-card.module-live {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 244, 0.9)),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 12rem);
}

.operations-module-card.module-live .operations-module-status {
  color: #166534;
  background: #dcfce7;
}

.operations-module-card.module-live .operations-module-icon {
  background: #ecfdf5;
  border-color: rgba(34, 197, 94, 0.24);
}

.under-construction-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 122, 26, 0.13), transparent 22rem),
    linear-gradient(135deg, #ffffff, #fff8f3);
}

.under-construction-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.under-construction-art-wrap {
  position: relative;
}

.under-construction-art-wrap::after {
  content: "CAUTION · BUILD ZONE · CAUTION · BUILD ZONE";
  position: absolute;
  right: -9%;
  bottom: 8%;
  left: -9%;
  padding: 12px;
  color: #111827;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  background: repeating-linear-gradient(45deg, #facc15 0 18px, #111827 18px 32px);
  color: #ffffff;
  border: 3px solid #111827;
  transform: rotate(-4deg);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.under-construction-art {
  display: block;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

@media (max-width: 1320px) {
  .operations-module-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }
}

@media (max-width: 860px) {
  .operations-module-grid,
  .under-construction-page {
    grid-template-columns: 1fr;
  }

  .operations-module-card {
    min-height: 190px;
  }
}

body.dark-mode .operations-hero,
body.dark-mode .under-construction-page,
body.dark-mode .operations-module-card {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 122, 26, 0.16), transparent 20rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
}

body.dark-mode .operations-module-card small,
body.dark-mode .operations-hero .muted {
  color: #cbd5e1;
}
