:root {
  --bg: #f3efe5;
  --panel: #fffdf7;
  --panel-strong: #f8f1de;
  --line: #d5c4a2;
  --ink: #1f1c17;
  --muted: #6f6557;
  --accent: #a33a1b;
  --accent-dark: #7f2d15;
  --good: #2e7d32;
  --bad: #b42318;
  --shadow: 0 18px 36px rgba(62, 45, 17, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(240, 214, 163, 0.65), transparent 28%),
    linear-gradient(180deg, #f7f1e4 0%, #efe5d3 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.shell {
  width: calc(100% - 24px);
  width: min(1560px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 252, 244, 0.88);
  border-bottom: 1px solid rgba(125, 100, 55, 0.18);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-title-row {
  display: flex;
  align-items: center;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-subpanel {
  display: grid;
  gap: 4px;
}

.brand-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-raccoon {
  overflow: visible;
}

.brand-raccoon-face {
  position: absolute;
  inset: 10px 9px 7px;
  border-radius: 47% 47% 42% 42%;
  background:
    radial-gradient(circle at 50% 80%, rgba(245, 234, 215, 0.62) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 42%, rgba(38, 28, 20, 0.16) 0 42%, transparent 43%),
    linear-gradient(180deg, #a08a73 0%, #846f5d 58%, #665141 100%);
  border: 2px solid rgba(79, 58, 37, 0.42);
}

.brand-raccoon-ear {
  position: absolute;
  top: 0;
  width: 22px;
  height: 24px;
  border-radius: 7px 16px 5px 16px;
  background: linear-gradient(180deg, #705844 0%, #443328 100%);
  border: 2px solid rgba(63, 45, 30, 0.55);
}

.brand-raccoon-ear::after {
  content: "";
  position: absolute;
  inset: 4px 4px 5px;
  border-radius: 4px 10px 4px 10px;
  background: rgba(240, 218, 195, 0.85);
}

.brand-raccoon-ear-left {
  left: 6px;
  transform: rotate(-18deg);
}

.brand-raccoon-ear-right {
  right: 6px;
  transform: scaleX(-1) rotate(-18deg);
}

.brand-raccoon-mask {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 11px;
  height: 19px;
  border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(circle at 24% 55%, rgba(255, 255, 255, 0.08) 0 11%, transparent 12%),
    radial-gradient(circle at 76% 55%, rgba(255, 255, 255, 0.08) 0 11%, transparent 12%),
    radial-gradient(circle at 50% 52%, rgba(64, 48, 37, 0.3) 0 16%, transparent 17%),
    linear-gradient(180deg, #2d231c 0%, #1b1410 100%);
  clip-path: polygon(2% 39%, 13% 18%, 34% 10%, 50% 15%, 66% 10%, 87% 18%, 98% 39%, 90% 74%, 68% 93%, 50% 85%, 32% 93%, 10% 74%);
}

.brand-raccoon-muzzle {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 22px;
  height: 16px;
  border-radius: 48% 48% 60% 60%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.55) 0 14%, transparent 15%),
    linear-gradient(180deg, #fbf1df 0%, #eadfc8 100%);
  border: 1px solid rgba(129, 102, 79, 0.22);
  transform: translateX(-50%);
}

.brand-raccoon-eye {
  position: absolute;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7eedc;
  box-shadow:
    inset 3px 0 0 0 #120d0a,
    0 0 0 1px rgba(18, 13, 10, 0.14);
  z-index: 1;
}

.brand-raccoon-eye-left {
  left: 14px;
}

.brand-raccoon-eye-right {
  right: 14px;
  transform: scaleX(-1);
}

.brand-raccoon-nose {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 11px;
  height: 8px;
  border-radius: 45% 45% 65% 65%;
  background: linear-gradient(180deg, #2d2018 0%, #140e0a 100%);
  transform: translateX(-50%);
  z-index: 2;
}

.brand-raccoon-nose::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: rgba(45, 32, 24, 0.88);
  transform: translateX(-50%);
}

.brand-raccoon-nose::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 4px;
  border-radius: 50%;
  background: rgba(248, 241, 222, 0.35);
  transform: translateX(-50%);
}

.brand-raccoon-tail {
  position: absolute;
  right: -4px;
  bottom: 5px;
  width: 24px;
  height: 17px;
  border-radius: 999px 10px 999px 999px;
  background:
    linear-gradient(
      90deg,
      #dbc6ad 0 14%,
      #5b4737 14% 27%,
      #ddc9b2 27% 42%,
      #564131 42% 56%,
      #dbc5aa 56% 71%,
      #563f30 71% 86%,
      #d6c0a7 86% 100%
    );
  border: 2px solid rgba(85, 63, 43, 0.35);
  transform: rotate(22deg);
  z-index: -1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-text small,
.muted,
.history-item small,
.set-cell small,
.site-nav a,
.hero-copy,
.panel-head p {
  color: var(--muted);
}

.brand-updates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  min-width: 0;
  flex: 1 1 auto;
}

.brand-updates-label {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-update-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(125, 100, 55, 0.16);
  background: rgba(255, 251, 242, 0.94);
  white-space: nowrap;
}

.brand-update-item strong {
  color: var(--ink);
  font-weight: 700;
}

.header-digest-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.header-digest-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-digest-form input[type="email"] {
  width: 220px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 100, 55, 0.22);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
}

.header-digest-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.76rem;
}

.header-digest-note {
  margin: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.74rem;
  text-align: right;
}

.header-signup-feedback {
  margin-bottom: 12px;
}

.brand-stats-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 100, 55, 0.16);
  background: rgba(255, 252, 244, 0.92);
  color: var(--accent-dark);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.brand-stats-arrow {
  font-size: 0.85em;
  transition: transform 160ms ease;
}

.brand-stats-toggle[aria-expanded="true"] .brand-stats-arrow {
  transform: rotate(180deg);
}

.brand-stats-panel {
  margin-top: 8px;
}

.brand-stats-panel.is-hidden {
  display: none;
}

.brand-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  max-width: 980px;
}

.brand-stat-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 241, 221, 0.95));
  border: 1px solid rgba(125, 100, 55, 0.16);
  box-shadow: 0 10px 24px rgba(62, 45, 17, 0.08);
}

.brand-stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-stat-value {
  display: block;
  font-size: 1.15rem;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav a {
  display: inline-flex;
  text-decoration: none;
  font-weight: 600;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid rgba(125, 100, 55, 0.16);
}

@media (max-width: 980px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    position: static;
    left: auto;
    transform: none;
  }

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

  .site-footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-links {
    justify-content: center;
  }
}

.page-shell {
  padding: 32px 0 64px;
}

.site-footer {
  padding: 0 0 28px;
}

.site-footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(125, 100, 55, 0.16);
}

.site-footer-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-footer-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
}

.site-footer-note a,
.site-footer-links a {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px;
  max-width: 620px;
}

.site-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 100, 55, 0.16);
  background: rgba(255, 252, 244, 0.9);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-panel {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.legal-copy {
  display: grid;
  gap: 18px;
}

.legal-copy section {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.7);
  border: 1px solid rgba(125, 100, 55, 0.14);
}

.legal-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.legal-copy p,
.legal-copy li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-copy ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-copy strong {
  color: var(--ink);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.page-shell-wide {
  width: calc(100% - 8px);
  max-width: none;
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.flash {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.flash-success {
  border-color: rgba(46, 125, 50, 0.28);
}

.flash-warning {
  border-color: rgba(163, 58, 27, 0.28);
}

.hero-card,
.panel,
.table-panel {
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(125, 100, 55, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
}

.job-panel {
  margin-bottom: 20px;
}

.is-hidden {
  display: none;
}

.job-status-wrap {
  display: grid;
  gap: 10px;
}

.job-meta-row,
.job-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-track {
  width: 100%;
  height: 16px;
  background: rgba(125, 100, 55, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d24b20, #f0a52b);
  transition: width 0.35s ease;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
label {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.hero-copy {
  max-width: 720px;
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(125, 100, 55, 0.24);
  background: white;
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #d85e21);
  color: white;
  border-color: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 241, 221, 0.94));
  border: 1px solid rgba(125, 100, 55, 0.18);
  box-shadow: var(--shadow);
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  font-size: 2rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 24px;
}

.panel,
.table-panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.action-stack,
.history-list,
.deal-list {
  display: grid;
  gap: 14px;
}

.action-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(125, 100, 55, 0.18);
}

.compact-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.action-controls {
  display: flex;
  gap: 12px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(125, 100, 55, 0.24);
  padding: 0 14px;
  font: inherit;
  background: white;
}

.history-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(125, 100, 55, 0.16);
}

.history-details {
  display: grid;
  gap: 8px;
}

.history-toggle {
  cursor: pointer;
  color: var(--accent);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  user-select: none;
}

.history-toggle::marker {
  content: "";
}

.history-toggle::-webkit-details-marker {
  display: none;
}

.history-details[open] .history-toggle::after {
  content: " Less";
}

.history-details:not([open]) .history-toggle::after {
  content: " details";
}

.history-code {
  display: block;
}

.history-code-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.history-details[open] .history-code-collapsed {
  display: block;
  -webkit-line-clamp: unset;
}

code {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
}

.deal-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: stretch;
  min-width: 0;
}

.deal-card {
  display: grid;
  gap: 0;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 241, 225, 0.96));
  border: 1px solid rgba(125, 100, 55, 0.16);
  box-shadow: 0 14px 28px rgba(62, 45, 17, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(62, 45, 17, 0.14);
  border-color: rgba(163, 58, 27, 0.28);
}

.deal-card img,
.set-cell img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 2.65;
  background: #fbf6eb;
}

.deal-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.deal-card-body {
  display: grid;
  gap: 7px;
  padding: 11px;
  align-content: start;
  min-width: 0;
}

.deal-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.deal-card-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.deal-card-head h3 {
  font-size: 0.94rem;
  line-height: 1.18;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.deal-meta,
.link-row,
.table-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.deal-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.set-id-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.set-id-link:hover {
  color: var(--accent-dark);
}

.deal-badge {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 68px;
  max-width: 92px;
  padding: 6px 8px;
  border-radius: 14px;
  text-align: center;
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}

.deal-badge small {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.deal-badge strong {
  font-size: 1rem;
  font-weight: 800;
}

.deal-badge-good {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.18), rgba(122, 199, 120, 0.1));
  color: var(--good);
}

.deal-badge-bad {
  background: linear-gradient(135deg, rgba(180, 35, 24, 0.18), rgba(224, 111, 102, 0.08));
  color: var(--bad);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(163, 58, 27, 0.1);
  color: var(--accent-dark);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.pill-muted {
  background: rgba(125, 100, 55, 0.12);
  color: var(--muted);
}

.pill-good,
.metric-good {
  color: var(--good);
}

.pill-good {
  background: rgba(46, 125, 50, 0.1);
}

.pill-bad,
.metric-bad {
  color: var(--bad);
}

.pill-bad {
  background: rgba(180, 35, 24, 0.1);
}

.deal-pricing {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0;
  padding-top: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.3;
}

.deal-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-width: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(248, 241, 222, 0.8);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  min-width: 0;
}

.price-row-compact {
  padding: 5px 8px;
  font-size: 0.76rem;
}

.price-row-wide {
  grid-column: 1 / -1;
}

.price-row-availability {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: start;
  gap: 4px;
}

.price-row span {
  min-width: 0;
  flex: 0 1 auto;
}

.price-row strong {
  font-size: 0.88rem;
  min-width: 0;
  flex: 0 1 auto;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.deal-actions {
  margin-top: auto;
  padding-top: 2px;
}

.deal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 100, 55, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.deal-link-primary {
  background: linear-gradient(135deg, var(--accent), #d85e21);
  color: white;
  border-color: transparent;
}

.deal-link-store {
  min-width: auto;
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
}

.deal-link-lego {
  background: linear-gradient(135deg, #c71f25, #e53935);
  color: #fff7d6;
  border-color: rgba(120, 12, 18, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 245, 204, 0.22);
}

.deal-link-target {
  background: linear-gradient(135deg, #ffffff, #fff6f7);
  color: #cc0000;
  border-color: rgba(204, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.deal-link-walmart {
  background: linear-gradient(135deg, #0b62d6, #004fba);
  color: #ffe082;
  border-color: rgba(0, 50, 140, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.deal-link-amazon {
  background: linear-gradient(135deg, #191f28, #0f141a);
  color: #ffcc66;
  border-color: rgba(255, 153, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 214, 102, 0.14);
}

.deal-link-bestbuy {
  background: linear-gradient(135deg, #0d4fe3, #1541af);
  color: #fff0a8;
  border-color: rgba(8, 30, 96, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.deal-link-entertainmentearth {
  background: linear-gradient(135deg, #4f2d7f, #2f184f);
  color: #ffe6a8;
  border-color: rgba(47, 24, 79, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.deal-link-share {
  gap: 6px;
  background: linear-gradient(135deg, #fff7ea, #f3e4c6);
  color: var(--accent-dark);
  border-color: rgba(163, 58, 27, 0.22);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(125, 100, 55, 0.18);
  background: rgba(255, 253, 247, 0.94);
}

.dashboard-alert-good {
  border-color: rgba(46, 125, 50, 0.28);
  color: var(--good);
}

.dashboard-alert-bad {
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--bad);
}

.deal-link-share::before {
  content: "↗";
  font-size: 0.95rem;
  line-height: 1;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.deals-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.deals-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 12px 10px;
}

.deals-sidebar-inner {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.deals-results {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.deals-results > .panel,
.deals-results > .pagination-bar {
  min-width: 0;
}

.sidebar-heading {
  display: grid;
  gap: 6px;
}

.deals-sidebar .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.deals-sidebar h1 {
  font-size: clamp(1.05rem, 1.9vw, 1.75rem);
  line-height: 0.95;
}

.deals-sidebar .hero-copy {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.mobile-sidebar-toggle {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(125, 100, 55, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(163, 58, 27, 0.08), rgba(216, 94, 33, 0.14));
  color: var(--accent-dark);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-form {
  display: grid;
  gap: 8px;
}

.sidebar-block {
  display: grid;
  gap: 5px;
}

.sidebar-block-card {
  padding: 7px 9px;
  border-radius: 14px;
  background: rgba(255, 251, 242, 0.9);
  border: 1px solid rgba(125, 100, 55, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.sidebar-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sidebar-label,
.sidebar-label-row {
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-label-inline {
  justify-content: flex-start;
}

.info-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(163, 58, 27, 0.14);
  border: 1px solid rgba(163, 58, 27, 0.18);
  color: var(--accent-dark);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.deals-sidebar input,
.deals-sidebar select {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 0.88rem;
}

.deals-sidebar input::placeholder {
  color: rgba(98, 76, 53, 0.62);
}

.deals-sidebar .sidebar-label,
.deals-sidebar .sidebar-label-row {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  min-height: 26px;
}

.results-toolbar-combined {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.results-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.results-summary {
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.86rem;
  white-space: nowrap;
  justify-self: end;
  text-align: right;
}

.results-summary strong {
  color: var(--ink);
}

.toolbar-select-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.92);
  border: 1px solid rgba(125, 100, 55, 0.18);
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.toolbar-select-group select {
  min-height: 30px;
  padding: 4px 28px 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.92);
  border: 1px solid rgba(125, 100, 55, 0.18);
}

.view-toggle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.view-toggle-link input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.view-toggle-link.is-active {
  background: linear-gradient(135deg, var(--accent), #d85e21);
  color: white;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.theme-checklist {
  display: grid;
  gap: 4px;
  padding: 0;
  border-radius: 16px;
  max-height: 220px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.theme-checklist-compact {
  grid-template-columns: 1fr;
}

.theme-checklist-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1.25;
}

.theme-option-compact {
  min-height: 0;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(125, 100, 55, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.15;
  align-items: flex-start;
  min-width: 0;
  flex-wrap: nowrap;
}

.theme-option-compact input {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 13px;
  min-height: 13px;
  margin: 0;
  flex: 0 0 auto;
}

.theme-option-compact span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.theme-option-compact:has(input:checked) {
  background: rgba(163, 58, 27, 0.08);
  border-color: rgba(163, 58, 27, 0.26);
  color: var(--accent-dark);
}

.theme-option-compact.is-selected {
  background: rgba(163, 58, 27, 0.08);
  border-color: rgba(163, 58, 27, 0.26);
  color: var(--accent-dark);
}

.theme-option-compact small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.js-theme-section .theme-option-compact {
  padding: 5px 7px;
  min-height: 24px;
  font-size: 0.8rem;
  color: #5f4a32;
  background: rgba(255, 252, 246, 0.98);
  border-color: rgba(188, 163, 128, 0.38);
  align-items: center;
  overflow: visible;
}

.js-theme-section .theme-option-compact span {
  display: block;
  font-weight: 700;
  line-height: 1.28;
}

.js-theme-section .theme-option-all {
  color: var(--accent-dark);
}

.js-theme-section .theme-option-compact input {
  align-self: center;
  accent-color: #c96c33;
  width: 14px;
  min-height: 14px;
}

.js-theme-section .theme-option-compact:has(input:checked) {
  background: rgba(244, 233, 216, 0.88);
  border-color: rgba(201, 108, 51, 0.34);
  color: #4f3b27;
}

.js-theme-section .theme-option-compact.is-selected {
  background: rgba(244, 233, 216, 0.88);
  border-color: rgba(201, 108, 51, 0.34);
  color: #4f3b27;
}

.theme-option-all {
  background: rgba(163, 58, 27, 0.08);
  color: var(--accent-dark);
  font-weight: 700;
}

.js-theme-section.is-hidden {
  display: none;
}

.pagination-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.pagination-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-summary-results {
  justify-self: end;
  text-align: right;
}

.pagination-summary-page {
  justify-self: start;
}

.pagination-bar-top {
  margin-top: 8px;
  margin-bottom: 14px;
  grid-template-columns: 1fr;
  justify-items: center;
}

.results-toolbar-combined .pagination-links {
  justify-self: center;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 100, 55, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.pagination-link.is-active {
  background: linear-gradient(135deg, var(--accent), #d85e21);
  color: white;
  border-color: transparent;
}

.list-table-wrap {
  overflow-x: auto;
}

.deal-table {
  width: 100%;
  border-collapse: collapse;
}

.deal-table th,
.deal-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(125, 100, 55, 0.16);
  text-align: left;
  vertical-align: top;
}

.deal-table th {
  white-space: nowrap;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.table-sort-link::after {
  content: "↕";
  font-size: 0.84em;
  opacity: 0.5;
}

.table-sort-link.is-active {
  color: var(--ink);
}

.table-sort-link.is-active::after {
  opacity: 1;
}

.table-sort-link.is-asc::after {
  content: "↑";
}

.table-sort-link.is-desc::after {
  content: "↓";
}

.deal-table tbody tr:hover {
  background: rgba(248, 241, 222, 0.45);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.availability-in-stock {
  background: rgba(46, 125, 50, 0.12);
  color: var(--good);
}

.availability-sold-out {
  background: rgba(180, 35, 24, 0.12);
  color: var(--bad);
}

.availability-preorder {
  background: rgba(163, 58, 27, 0.12);
  color: var(--accent-dark);
}

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

.availability-neutral {
  background: rgba(125, 100, 55, 0.1);
  color: var(--muted);
}

.availability-card {
  font-weight: 700;
  text-align: left;
  white-space: normal;
  line-height: 1.15;
  max-width: 100%;
}

.availability-card.availability-in-stock {
  color: var(--good);
}

.availability-card.availability-sold-out {
  color: var(--bad);
}

.availability-card.availability-preorder {
  color: var(--accent-dark);
}

.availability-card.availability-unknown {
  font-weight: 400;
  font-style: italic;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 7, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: calc(100vw - 32px);
  width: min(1200px, calc(100vw - 32px));
  height: min(86vh, 900px);
  margin: min(6vh, 48px) auto;
  padding: 20px 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(86vh - 120px);
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.lightbox-caption {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  color: #fff6e2;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.lightbox-caption strong {
  font-size: 1rem;
}

.lightbox-caption span {
  font-size: 0.84rem;
  color: rgba(255, 246, 226, 0.78);
}

.lightbox-swipe-hint {
  display: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.12);
  border: 1px solid rgba(255, 246, 226, 0.12);
  color: rgba(255, 246, 226, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.lightbox-set {
  font-size: 1.2rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff6e2 !important;
}

.lightbox-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(720px, 100%);
}

.lightbox-metrics span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.12);
  border: 1px solid rgba(255, 246, 226, 0.12);
}

.lightbox-metrics small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 246, 226, 0.72);
}

.lightbox-metrics strong {
  font-size: 0.98rem;
  color: #fffdf7;
}

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

.lightbox-store-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lightbox-discount-good {
  color: #92e29b !important;
}

.lightbox-discount-neutral {
  color: #fffdf7 !important;
}

.lightbox-discount-bad {
  color: #ff9b93 !important;
}

.lightbox-close,
.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 226, 0.24);
  background: rgba(255, 253, 247, 0.12);
  color: #fff6e2;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  line-height: 1;
}

.deal-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.set-cell {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.metric-muted,
.empty-state {
  color: var(--muted);
}

.detail-panel {
  padding: 22px;
}

.deal-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.deal-detail-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(248, 241, 222, 0.88));
  border: 1px solid rgba(125, 100, 55, 0.14);
}

.deal-detail-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.deal-detail-copy {
  display: grid;
  gap: 14px;
}

.deal-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-filter-jump {
  position: fixed;
  right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #d85e21);
  box-shadow: 0 16px 28px rgba(127, 45, 21, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mobile-filter-jump.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-filter-jump-icon {
  position: relative;
  width: 20px;
  height: 18px;
  transform: translateY(1px);
}

.mobile-filter-jump-icon::before,
.mobile-filter-jump-icon::after,
.mobile-filter-jump-icon span {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-filter-jump-icon::before {
  top: 0;
  width: 20px;
  height: 11px;
  background: #fff7ea;
  clip-path: polygon(0 0, 100% 0, 66% 56%, 57% 100%, 43% 100%, 34% 56%);
}

.mobile-filter-jump-icon::after {
  top: 11px;
  width: 7px;
  height: 6px;
  border-radius: 0 0 2px 2px;
  background: #fff7ea;
}

.mobile-filter-jump-icon span {
  top: 5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(216, 94, 33, 0.85);
}

@media (max-width: 980px) {
  .site-header-inner {
    align-items: flex-start;
    gap: 16px;
  }

  .brand-updates {
    gap: 6px 8px;
  }

  .brand-update-item {
    white-space: normal;
  }

  .brand-meta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-digest-stack {
    justify-items: start;
  }

  .header-digest-form {
    width: 100%;
  }

  .header-digest-form input[type="email"] {
    width: 100%;
    flex: 1 1 auto;
  }

  .panel-grid,
  .hero-card,
  .page-heading,
  .deals-workspace {
    grid-template-columns: 1fr;
  }

  .deals-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .deals-sidebar-inner {
    max-height: none;
    overflow: visible;
  }

  .sidebar-field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pagination-bar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pagination-summary-results,
  .pagination-summary-page {
    justify-self: center;
    text-align: center;
  }

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

  .deal-detail-layout {
    grid-template-columns: 1fr;
  }

  .lightbox-dialog {
    width: calc(100vw - 24px);
    width: min(900px, calc(100vw - 24px));
    padding: 18px 58px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 14px);
    width: min(100%, calc(100% - 14px));
  }

  .mobile-filter-jump {
    display: inline-flex;
  }

  .page-shell {
    padding: 18px 0 42px;
  }

  .legal-copy {
    gap: 14px;
  }

  .legal-copy section {
    padding: 15px 14px;
    border-radius: 16px;
  }

  .legal-copy h2 {
    font-size: 1.02rem;
    margin-bottom: 6px;
  }

  .legal-copy p,
  .legal-copy li {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .legal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-actions .button {
    width: 100%;
  }

  .site-header {
    position: static;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header-inner,
  .hero-card,
  .compact-form,
  .action-controls,
  .page-heading,
  .pagination-bar,
  .results-toolbar {
    display: grid;
  }

  .site-header-inner {
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text strong {
    font-size: 1.1rem;
  }

  .brand-text small {
    font-size: 0.78rem;
  }

  .brand-updates {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    font-size: 10px;
  }

  .brand-update-item {
    padding: 3px 7px;
  }

  .brand-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .header-digest-stack {
    justify-items: start;
    gap: 3px;
  }

  .header-digest-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .header-digest-form input[type="email"] {
    min-width: 0;
    width: 100%;
    min-height: 32px;
    font-size: 0.8rem;
  }

  .header-digest-button {
    min-height: 32px;
    padding: 0 12px;
  }

  .header-digest-note {
    font-size: 0.68rem;
    text-align: left;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .deals-sidebar {
    padding: 14px 12px;
    border-radius: 22px;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-form {
    display: none;
    padding-top: 4px;
  }

  .deals-sidebar.is-open .sidebar-form {
    display: grid;
  }

  .theme-checklist {
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
  }

  .results-toolbar {
    gap: 10px;
    align-items: stretch;
  }

  .results-toolbar-combined {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .results-summary,
  .view-toggle,
  .results-toolbar-left {
    width: 100%;
  }

  .results-toolbar-left {
    display: grid;
    gap: 8px;
  }

  .results-toolbar-combined .pagination-links,
  .results-toolbar-combined .results-summary {
    justify-self: center;
    text-align: center;
  }

  .view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-field-grid,
  .sidebar-actions {
    grid-template-columns: 1fr;
  }

  .view-toggle-link {
    justify-content: center;
  }

  .set-cell {
    grid-template-columns: 1fr;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    padding: 16px;
  }

  .deal-detail-metrics {
    grid-template-columns: 1fr;
  }

  .deal-card {
    border-radius: 24px;
  }

  .deal-image-button img,
  .deal-card img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .deal-card-body {
    padding: 14px 12px 12px;
    gap: 10px;
  }

  .deal-card-head h3 {
    font-size: 0.94rem;
    line-height: 1.2;
  }

  .deal-card-head p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .deal-card img,
  .set-cell img {
    max-width: none;
  }

  .deal-metrics-grid {
    grid-template-columns: 1fr;
  }

  .price-row,
  .price-row-compact {
    gap: 2px;
    padding: 10px 11px;
  }

  .price-row-wide {
    grid-column: auto;
  }

  .deal-topline {
    flex-wrap: wrap;
    gap: 8px;
  }

  .deal-badge {
    margin-left: auto;
    min-width: 92px;
  }

  .deal-actions,
  .table-links,
  .lightbox-store-links {
    gap: 8px;
  }

  .deal-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .list-table-wrap {
    border-radius: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .deal-table {
    min-width: 760px;
  }

  .deal-table thead {
    display: table-header-group;
  }

  .deal-table tbody {
    display: table-row-group;
  }

  .deal-table tr {
    display: table-row;
  }

  .deal-table td {
    display: table-cell;
    padding: 9px 8px;
    border-bottom: 1px solid rgba(125, 100, 55, 0.16);
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .deal-table th {
    padding: 9px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    white-space: nowrap;
  }

  .deal-table td::before {
    display: none;
  }

  .deal-table td[data-label="Item Name"] {
    min-width: 210px;
    white-space: normal;
    font-size: 0.84rem;
    line-height: 1.25;
    font-weight: 700;
  }

  .deal-table td[data-label="Category"],
  .deal-table td[data-label="Year"],
  .deal-table td[data-label="Market"] {
    color: var(--muted);
    font-size: 0.82rem;
  }

  .deal-table td[data-label="Store Price"],
  .deal-table td[data-label="Retail Price"],
  .deal-table td[data-label="Below"] {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .deal-table td[data-label="Store Links"] .table-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .deal-table .empty-state {
    text-align: center;
    padding: 14px 10px;
  }

  .deal-table .empty-state::before {
    display: none;
  }

  .pagination-bar {
    gap: 10px;
  }

  .pagination-summary {
    text-align: center;
  }

  .pagination-links {
    justify-content: center;
    gap: 6px;
  }

  .pagination-link {
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .lightbox-dialog {
    width: calc(100vw - 12px);
    height: auto;
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    padding: 54px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .lightbox-close {
    top: 6px;
    right: 6px;
  }

  .lightbox-nav {
    display: none;
  }

  .lightbox-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .lightbox-figure {
    gap: 8px;
  }

  .lightbox-figure img {
    max-height: 34vh;
    width: 100%;
    object-fit: contain;
  }

  .lightbox-caption {
    width: 100%;
    gap: 8px;
  }

  .lightbox-swipe-hint {
    display: inline-flex;
  }

  .lightbox-caption strong {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .lightbox-set {
    font-size: 0.98rem !important;
  }

  .lightbox-metrics span {
    gap: 3px;
    padding: 8px 8px 7px;
    border-radius: 12px;
  }

  .lightbox-metrics small {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .lightbox-metrics strong {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .lightbox-actions {
    position: sticky;
    bottom: calc(-8px - env(safe-area-inset-bottom, 0px));
    width: 100%;
    padding: 8px 0 2px;
    background: linear-gradient(180deg, rgba(15, 11, 7, 0), rgba(15, 11, 7, 0.82) 32%, rgba(15, 11, 7, 0.96) 100%);
  }

  .lightbox-store-links {
    width: 100%;
    justify-content: center;
  }

  .lightbox-store-links .deal-link {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 920px) and (orientation: landscape) and (max-height: 540px) {
  .site-header {
    position: static;
    backdrop-filter: none;
  }

  .site-header-inner {
    display: grid;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    gap: 10px;
    align-items: flex-start;
  }

  .brand-mark,
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    gap: 1px;
  }

  .brand-text strong {
    font-size: 1rem;
    line-height: 1.05;
  }

  .brand-text small {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .brand-updates {
    display: flex;
    gap: 4px 8px;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.15;
  }

  .site-nav {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .site-nav a {
    min-height: 34px;
    padding: 0 12px;
  }

  .page-shell {
    padding-top: 14px;
  }

  .mobile-filter-jump {
    display: inline-flex;
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }

  .lightbox-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 8px);
    margin: 4px auto;
    padding: 42px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }

  .lightbox-close {
    top: 4px;
    right: 4px;
    min-width: 40px;
    min-height: 40px;
  }

  .lightbox-figure {
    gap: 6px;
  }

  .lightbox-figure img {
    max-height: 22vh;
  }

  .lightbox-caption {
    gap: 6px;
  }

  .lightbox-swipe-hint {
    display: inline-flex;
    font-size: 0.64rem;
    padding: 5px 9px;
  }

  .lightbox-caption strong {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .lightbox-set {
    font-size: 0.88rem !important;
  }

  .lightbox-metrics {
    gap: 5px;
  }

  .lightbox-metrics span {
    padding: 7px 7px 6px;
  }

  .lightbox-metrics small {
    font-size: 0.56rem;
  }

  .lightbox-metrics strong {
    font-size: 0.78rem;
  }

  .lightbox-actions {
    bottom: calc(-6px - env(safe-area-inset-bottom, 0px));
    padding: 6px 0 2px;
  }

  .lightbox-store-links {
    gap: 6px;
  }

  .lightbox-store-links .deal-link {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }
}
