:root {
  color-scheme: light;
  --sticky-header-offset: 64px;
  --background: #fbfbfa;
  --foreground: #171717;
  --card: #ffffff;
  --card-foreground: #171717;
  --popover: #ffffff;
  --popover-foreground: #171717;
  --primary: #0f8f72;
  --primary-foreground: #ffffff;
  --secondary: #ecebea;
  --secondary-foreground: #171717;
  --muted: #f3f2f0;
  --muted-foreground: #66635f;
  --accent: #315f86;
  --accent-foreground: #ffffff;
  --border: #dedbd6;
  --input: #c7c3bd;
  --ring: #0f8f72;
  --radius: 10px;
  --warning: #d8b34a;
  --danger: #a84d4d;
  --primary-soft: #f2fbf7;
  --accent-soft: #f3f8fb;
  --hover: #f7fbf9;
  --elevated-shadow: 0 18px 48px rgba(23, 23, 23, .12);
  --floating-shadow: 0 14px 34px rgba(23, 23, 23, .18);
  --font-sans: "Satoshi", "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", "Courier New", Courier, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #101514;
  --foreground: #eef4f1;
  --card: #16201e;
  --card-foreground: #eef4f1;
  --popover: #16201e;
  --popover-foreground: #eef4f1;
  --primary: #4fd6b2;
  --primary-foreground: #07120f;
  --secondary: #1d2a27;
  --secondary-foreground: #eef4f1;
  --muted: #1c2825;
  --muted-foreground: #9fb1aa;
  --accent: #8bbde8;
  --accent-foreground: #08131c;
  --border: #2d3b37;
  --input: #3b4b46;
  --ring: #4fd6b2;
  --primary-soft: rgba(79, 214, 178, .13);
  --accent-soft: rgba(139, 189, 232, .14);
  --hover: rgba(79, 214, 178, .08);
  --elevated-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  --floating-shadow: 0 16px 42px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
html {
  background: var(--background);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 143, 114, .08), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(49, 95, 134, .08), transparent 24rem),
    var(--background);
  font-family: var(--font-sans);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 214, 178, .12), transparent 26rem),
    radial-gradient(circle at 86% 10%, rgba(139, 189, 232, .12), transparent 24rem),
    var(--background);
}
button, input, select { font: inherit; }
svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
a { color: inherit; }
.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  padding: 34px 0 32px;
  border-bottom: 1px solid var(--border);
}
.topbar {
  position: relative;
  z-index: 30;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, padding .18s ease;
}
.topbar.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  margin-left: 0;
  border-bottom-color: color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--background) 78%, transparent);
  box-shadow: 0 10px 34px rgba(23, 23, 23, .08);
  backdrop-filter: blur(20px) saturate(1.2);
}
.brand {
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: flex-end;
}
.nav-menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
}
.toolbar label, .filters label {
  display: grid;
  gap: 6px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
select, input {
  min-width: 0;
  border: 1px solid var(--input);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--card);
  color: var(--foreground);
  outline: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
select:focus, input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(15, 143, 114, .12);
}
.theme-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  align-self: end;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
button:active, select:active { transform: translateY(1px); }
.eyebrow {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0;
}
.hero-copy p {
  max-width: 640px;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid var(--foreground);
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.hero-cta:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.stat, .model-card, .feature-panel, aside, .list-section, dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.stat { padding: 16px; }
.stat strong {
  display: block;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}
.stat span {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.app-status {
  margin: 24px 0;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.app-status[hidden] { display: none; }
.scope-filter, .collection-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scope-filter {
  margin: 18px 0 16px;
}
.scope-button, .collection-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--card);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.scope-button.is-active, .collection-button.is-active {
  border-color: rgba(15, 143, 114, .34);
  background: var(--primary-soft);
  color: var(--primary);
}
.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  width: 100%;
  padding-top: 0;
  margin-bottom: 20px;
  align-items: stretch;
}
.feature-panel {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.market-grid > aside {
  min-width: 0;
}
.market-grid .section-title {
  margin-top: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 22px 0 14px;
}
.section-title h2, aside h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
}
.model-card:nth-child(n + 5) {
  display: block;
}
.model-card {
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
  animation: tile-in .26s ease both;
}
.model-card:hover {
  border-color: var(--primary);
  background: var(--hover);
}
.model-card:active { transform: translateY(1px); }
.model-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.12;
  letter-spacing: 0;
}
.model-card p {
  color: var(--muted-foreground);
  font-size: .9rem;
  line-height: 1.45;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.price-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted);
  padding: 11px;
}
.price-box span {
  display: block;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.price-box strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .92rem;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted-foreground);
  background: var(--background);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
.compare-button, .row-compare-button, .load-all-button, .clear-compare-button, .remove-compare-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.compare-button {
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
}
.compare-button:hover, .row-compare-button:hover, .clear-compare-button:hover, .remove-compare-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.compare-button.is-compared, .row-compare-button.is-compared, .dialog-action-primary.is-compared {
  border-color: rgba(15, 143, 114, .34);
  background: var(--primary-soft);
  color: var(--primary);
}
aside {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.aside-note {
  margin: 10px 0 0;
  color: var(--muted-foreground);
  font-size: .86rem;
  line-height: 1.5;
}
.watch-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  grid-template-rows: repeat(5, 1fr);
  height: 100%;
}
.watch-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.watch-item:hover {
  border-color: var(--primary);
  background: var(--hover);
}
.watch-item strong {
  display: block;
  line-height: 1.2;
}
.watch-item span {
  display: block;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.35;
  text-transform: uppercase;
}
.watch-item em {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}
.list-section {
  margin: 24px 0 18px;
  padding: 20px;
  scroll-margin-top: 86px;
}
.collection-tabs {
  margin: -4px 0 14px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 150px) 120px;
  gap: 10px;
  margin-bottom: 16px;
}
.reset-button {
  align-self: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--foreground);
  color: var(--background);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.reset-button:hover { background: var(--primary); color: var(--primary-foreground); }
.model-list { display: grid; }
.compare-panel {
  margin: 0 0 20px;
  scroll-margin-top: 86px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.compare-panel.is-focused {
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px rgba(15, 143, 114, .16), var(--elevated-shadow);
  transform: translateY(-2px);
}
.compare-empty {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted-foreground);
}
.compare-empty strong, .compare-header strong {
  color: var(--foreground);
}
.compare-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.compare-header div {
  display: grid;
  gap: 2px;
}
.compare-header span, .compare-table span {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
}
.compare-scroll {
  overflow-x: auto;
}
.compare-table {
  min-width: 720px;
}
.clear-compare-button, .remove-compare-button {
  padding: 7px 10px;
}
.active-context {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  border: 1px solid rgba(15, 143, 114, .24);
  border-radius: var(--radius);
  background: var(--primary-soft);
  padding: 10px 12px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.active-context[hidden] { display: none; }
.active-context button {
  border: 1px solid rgba(15, 143, 114, .34);
  border-radius: 999px;
  background: var(--card);
  color: var(--primary);
  padding: 7px 10px;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.active-context button:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}
.model-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) .62fr .72fr .62fr minmax(150px, .85fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 6px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.list-header {
  position: sticky;
  top: var(--sticky-header-offset);
  z-index: 25;
  border-top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(10px);
  color: var(--muted-foreground);
  cursor: default;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.list-header:hover {
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--card) 90%, transparent);
}
.row-compare-button {
  justify-self: end;
  padding: 7px 10px;
}
.load-all-button {
  justify-self: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
}
.model-row:hover {
  color: var(--primary);
  background: var(--hover);
}
.model-row span { overflow-wrap: anywhere; }
.model-main {
  display: grid;
  gap: 5px;
}
.model-main strong {
  line-height: 1.2;
}
.model-main span {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .7rem;
  line-height: 1.35;
  text-transform: uppercase;
}
.state-pill {
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted-foreground);
  background: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.state-available {
  border-color: rgba(15, 143, 114, .28);
  color: var(--primary);
  background: var(--primary-soft);
}
.state-channel_only {
  border-color: rgba(49, 95, 134, .28);
  color: var(--accent);
  background: var(--accent-soft);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.model-row .tag-list {
  align-items: center;
}
.tag-empty {
  color: var(--muted-foreground);
}
.model-row .badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trust-footer {
  color: var(--muted-foreground);
  padding: 28px 0 42px;
  line-height: 1.7;
}
.footer-intro {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-intro strong {
  color: var(--foreground);
  font-size: 1rem;
}
.footer-intro p {
  max-width: 760px;
  margin: 8px 0 0;
}
.footer-powered {
  margin: 18px 0 0;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.footer-intro a, .footer-powered a {
  color: var(--primary);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.trust-badges span, .trust-badges em {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.trust-badges span {
  border: 1px solid rgba(15, 143, 114, .28);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.trust-badges em {
  font-style: normal;
}
.trust-badges svg { font-size: .9rem; }
.source-credit a {
  color: var(--primary);
  font-weight: 700;
}
.footer-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
}
.footer-grid h2 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
}
.footer-grid p, .footer-disclaimer {
  margin: 0;
  font-size: .88rem;
}
dialog {
  width: min(820px, calc(100% - 32px));
  padding: 22px;
  color: var(--foreground);
  background: var(--popover);
  box-shadow: var(--elevated-shadow);
}
dialog::backdrop { background: rgba(23, 23, 23, .32); }
:root[data-theme="dark"] dialog::backdrop { background: rgba(0, 0, 0, .62); }
dialog button {
  float: right;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--foreground);
  width: 34px;
  height: 34px;
}
.dialog-eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.series-summary, .series-picks, .dialog-actions {
  display: grid;
  gap: 10px;
}
.series-summary {
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
}
.series-summary span, .series-pick {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted);
  padding: 12px;
}
.series-summary span, .series-pick span {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.series-picks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 16px;
}
.series-pick strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--foreground);
}
.series-pick p, .dialog-note {
  margin: 0;
  color: var(--muted-foreground);
  font-size: .88rem;
  line-height: 1.5;
}
.dialog-actions {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 14px 0 18px;
}
.dialog-actions form { margin: 0; }
dialog .dialog-action-primary, dialog .dialog-action-secondary {
  float: none;
  width: auto;
  height: auto;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
dialog .dialog-action-primary {
  background: var(--foreground);
  color: var(--background);
}
dialog .dialog-action-secondary {
  background: var(--card);
  color: var(--foreground);
}
table { width: 100%; border-collapse: collapse; }
th, td {
  border-top: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  overflow-wrap: anywhere;
}
.floating-actions {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  gap: 10px;
  justify-items: end;
}
.floating-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--foreground);
  box-shadow: var(--floating-shadow);
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.floating-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.floating-button[hidden] { display: none; }
.floating-button em {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-style: normal;
}
@keyframes tile-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .shell { width: min(100% - 40px, 1060px); }
  .market-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 16px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .model-card:nth-child(n + 5) {
    display: none;
  }
  .model-card {
    padding: 15px;
  }
  .price-row {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }
  .price-box {
    padding: 10px;
  }
  .watch-item {
    padding: 10px;
  }
  .aside-note {
    font-size: .8rem;
  }
}
@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero {
    padding-top: 18px;
  }
  .topbar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }
  .topbar.is-stuck { box-shadow: 0 10px 30px rgba(23, 23, 23, .1); }
  .nav-menu-toggle {
    display: grid;
  }
  h1 { font-size: 2rem; }
  .toolbar {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
  .toolbar.is-open {
    display: grid;
  }
  .toolbar label:first-child, .toolbar label:nth-child(3), .theme-toggle { grid-column: span 2; }
  .footer-intro { display: grid; }
  .market-grid { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .filters, .price-row, .footer-grid, .footer-intro, .series-summary, .series-picks, .dialog-actions { grid-template-columns: 1fr; }
  .model-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(78px, .68fr) auto;
    gap: 8px;
    padding: 11px 4px;
    margin-bottom: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }
  .list-header {
    display: grid;
    top: var(--sticky-header-offset);
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .list-header span:nth-child(2),
  .list-header span:nth-child(4),
  .list-header span:nth-child(5) {
    display: none;
  }
  .model-row .state-pill,
  .model-row > span:nth-of-type(3),
  .model-row .tag-list {
    display: none;
  }
  .model-main span {
    font-size: .65rem;
  }
  .row-compare-button {
    width: 36px;
    height: 36px;
    justify-self: end;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .row-compare-button::before {
    content: "+";
    color: var(--foreground);
    font-size: 1rem;
    line-height: 1;
  }
  .row-compare-button.is-compared::before {
    content: "✓";
    color: var(--primary);
  }
  .compare-empty, .compare-header, .active-context { display: grid; }
  .cards, .watch-list { height: auto; }
  .watch-list { grid-template-rows: none; }
  .scope-filter, .collection-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .scope-button, .collection-button { white-space: nowrap; }
  .compare-panel { margin-bottom: 14px; }
  .floating-actions {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .floating-button {
    width: 46px;
    height: 46px;
    justify-content: center;
    padding: 0;
  }
  .floating-button span { display: none; }
  .floating-button em {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    font-size: .66rem;
  }
  dialog {
    width: min(100% - 18px, 820px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 18px;
  }
}
