:root {
  --max: 1180px;
  --paper: #f8f2e8;
  --paper-2: #fffaf2;
  --ink: #202018;
  --muted: #6f695f;
  --soft: #9b9284;
  --line: #ded3c1;
  --line-strong: #c8b89f;
  --panel: #fff8ed;
  --panel-2: #f1e6d6;
  --green: #0f766e;
  --green-2: #d7f0ea;
  --amber: #a05a00;
  --amber-2: #f6dfb8;
  --red: #b42318;
  --red-2: #f8d6d3;
  --blue: #305c96;
  --blue-2: #dbe7f6;
  --shadow: 0 14px 34px rgba(61, 44, 22, .10);
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --paper: #151612;
  --paper-2: #1d1e18;
  --ink: #f4eadb;
  --muted: #c2b5a4;
  --soft: #8f8374;
  --line: #39352d;
  --line-strong: #5a5043;
  --panel: #1f201a;
  --panel-2: #29291f;
  --green: #5eead4;
  --green-2: rgba(20, 184, 166, .16);
  --amber: #f7b955;
  --amber-2: rgba(245, 158, 11, .18);
  --red: #ff8d82;
  --red-2: rgba(239, 68, 68, .18);
  --blue: #9bc4ff;
  --blue-2: rgba(59, 130, 246, .18);
  --shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper-2) 78%, transparent), transparent 420px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  min-width: max-content;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
}
.brand-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
}
.brand-tag { color: var(--muted); font-size: 13px; }
.masthead-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.masthead-nav::-webkit-scrollbar { display: none; }
.masthead-nav a {
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 14px;
}
.masthead-nav a:hover {
  color: var(--ink);
  background: var(--panel-2);
  text-decoration: none;
}
.masthead-utils {
  display: flex;
  align-items: center;
  gap: 8px;
}
.issue {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.util-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.paper {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 92px;
}
.lede {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
  padding: 28px 0 18px;
}
.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
}
.lede h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: 58px;
  line-height: 1.02;
  font-weight: 900;
}
.lede-sub {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.lede-sub strong { color: var(--ink); }
.commandbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(760px, 100%);
  margin-top: 26px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.commandbar-label {
  padding: 0 10px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 13px;
}
.commandbar input {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}
.commandbar-submit, .buy, .drawer-actions a {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--paper-2);
  font-weight: 700;
  cursor: pointer;
}
.commandbar-submit {
  height: 42px;
  min-width: 56px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.insight {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.insight-k {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.insight strong {
  display: block;
  margin: 3px 0;
  font-family: var(--display);
  font-size: 30px;
}
.insight span:last-child { color: var(--muted); font-size: 13px; }

.ticker {
  margin-top: 18px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 10px 0;
}
.ticker-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.ticker-pill span, .ticker-pill em {
  color: var(--muted);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-pill strong { color: var(--green); }

.section { margin-top: 54px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
  line-height: 1.1;
}
.section-head span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.product-list, .rank-list, .channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(260px, .72fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.product-item:last-child { border-bottom: 1px solid var(--line); }
.ordinal {
  color: var(--soft);
  font-family: var(--mono);
}
.product-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.product-main strong { font-size: 18px; }
.product-main span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.product-metrics span {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}
.product-metrics b {
  display: block;
  color: var(--green);
  font-size: 19px;
}

.rank-list {
  display: grid;
  gap: 8px;
}
.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.rank-no {
  color: var(--soft);
  font-family: var(--mono);
}
.rank-main {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.rank-main strong, .rank-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-main span { color: var(--muted); font-size: 13px; }
.rank-price {
  color: var(--green);
  font-size: 18px;
  white-space: nowrap;
}

.filters {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chip.active {
  border-color: var(--green);
  background: var(--green-2);
  color: var(--green);
}
.filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(7, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}
.field {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.field span {
  color: var(--muted);
  font-size: 12px;
}
.field input, .field select {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  outline: 0;
  background: var(--paper-2);
  color: var(--ink);
}
.field input:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}
.ghost, .iconish, .admin-item button, .drawer-actions button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.ghost {
  padding: 0 12px;
  color: var(--muted);
}
.ghost:hover, .iconish:hover, .admin-item button:hover, .drawer-actions button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  text-decoration: none;
}

.offer-table {
  margin-top: 12px;
  overflow-x: auto;
}
.offer-row {
  display: grid;
  grid-template-columns: minmax(300px, 2.1fr) minmax(220px, 1.25fr) minmax(170px, .9fr) 130px 176px;
  gap: 12px;
  align-items: center;
  min-width: 940px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin-bottom: 8px;
}
.offer-row--head {
  min-height: auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding-top: 0;
}
.risk-border--high { border-color: color-mix(in srgb, var(--amber) 48%, var(--line)); }
.risk-border--critical { border-color: color-mix(in srgb, var(--red) 52%, var(--line)); }
.offer-titlecell {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.checkline {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.title-button {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.title-button strong, .title-button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title-button strong {
  color: var(--ink);
  white-space: nowrap;
}
.title-button span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.tag-grid, .flag-row, .mobile-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-grid span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
}
.flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--amber-2);
  color: var(--amber);
  font-size: 12px;
}
.mobile-flags { display: none; grid-column: 2; }
.merchant-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.merchant-cell strong, .merchant-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.merchant-cell span, .merchant-cell em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
meter {
  width: 100%;
  height: 8px;
}
.price-cell {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.price-cell strong {
  color: var(--green);
  font-size: 19px;
}
.price-cell span:not(.risk) {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.risk {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.risk--low { background: var(--green-2); color: var(--green); }
.risk--medium { background: var(--blue-2); color: var(--blue); }
.risk--high { background: var(--amber-2); color: var(--amber); }
.risk--critical { background: var(--red-2); color: var(--red); }
.action-cell {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.iconish {
  padding: 0 8px;
  font-size: 13px;
}
.iconish.active {
  border-color: var(--green);
  background: var(--green-2);
  color: var(--green);
}
.buy {
  display: inline-grid;
  place-items: center;
  height: 38px;
  border-radius: 6px;
}
.buy:hover, .drawer-actions a:hover { text-decoration: none; }

.compare-panel, .mini-list, .admin-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-x: auto;
}
.compare-table {
  display: grid;
  grid-template-columns: 120px repeat(var(--cols), minmax(180px, 1fr));
  min-width: 680px;
}
.compare-table > div {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.compare-table > div:nth-last-child(-n + 5) { border-bottom: 0; }
.compare-key {
  color: var(--muted);
  background: var(--panel-2);
  font-weight: 700;
}
.compare-offer strong, .compare-offer span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare-offer span { color: var(--muted); font-size: 12px; }
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.compare-bar a {
  color: var(--green-2);
  font-weight: 700;
}
.compare-bar button {
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mini-list {
  display: grid;
  gap: 0;
}
.mini-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.mini-offer:last-child { border-bottom: 0; }
.mini-offer button {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.mini-offer strong, .mini-offer span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-offer span { color: var(--muted); font-size: 13px; }
.mini-offer > div {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.mini-offer > div button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}
.triggered { color: var(--red) !important; font-weight: 700; }

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.safety-grid article, .channel-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.safety-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}
.channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.channel-item {
  display: grid;
  gap: 4px;
}
.channel-item strong, .channel-item em {
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-item span, .channel-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.admin-tools {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.admin-console {
  padding-top: 44px;
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(18px, 4vw, 44px);
  align-items: end;
  margin-bottom: 26px;
}
.admin-hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 82px);
  line-height: .94;
}
.admin-auth {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.admin-summary {
  margin-bottom: 30px;
}
.field--token { width: min(420px, 100%); }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.admin-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-item:last-child { border-bottom: 0; }
.admin-item > button, .admin-item > div:first-child {
  min-width: 0;
}
.admin-item > button {
  border: 0;
  background: transparent;
  text-align: left;
}
.admin-item strong, .admin-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-item span { color: var(--muted); font-size: 13px; }
.admin-item > div:last-child {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sync-admin .risk {
  white-space: nowrap;
}
.admin-page .drawer-actions {
  grid-template-columns: 1fr 1fr;
}
.about p {
  max-width: 760px;
  color: var(--muted);
}

.colophon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.rule { color: var(--soft); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 12, .42);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 100%);
  height: 100%;
  overflow: auto;
  padding: 28px;
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .22);
}
.drawer-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}
.drawer-head h2 {
  clear: both;
  margin: 12px 0 6px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.16;
}
.drawer-head p {
  margin: 0;
  color: var(--muted);
}
.detail-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.detail-price strong {
  color: var(--green);
  font-size: 30px;
}
.detail-price span { color: var(--muted); }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.detail-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-grid dd {
  margin: 3px 0 0;
  font-weight: 700;
}
.detail-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.detail-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.detail-block p, .detail-block li {
  color: var(--muted);
}
.trust-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.chart-shell {
  height: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.chart-shell p {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
}
.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}
.drawer-actions button, .drawer-actions a {
  display: inline-grid;
  place-items: center;
  height: 42px;
  padding: 0 10px;
}

.empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

@media (max-width: 1060px) {
  .filterbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .field--wide { grid-column: span 2; }
  .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .masthead {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }
  .masthead-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .masthead-utils { margin-left: auto; }
  .paper {
    width: min(100% - 24px, var(--max));
    padding-top: 28px;
  }
  .lede h1 { font-size: 38px; }
  .lede-sub { font-size: 15px; }
  .commandbar {
    grid-template-columns: 1fr auto;
  }
  .commandbar-label { display: none; }
  .insight-grid, .two-col, .channel-list, .safety-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .section-head span { text-align: left; }
  .product-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .product-metrics {
    grid-column: 2;
    grid-template-columns: 1fr;
  }
  .rank-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .rank-price {
    grid-column: 3;
  }
  .rank-item .risk {
    grid-column: 2;
    width: fit-content;
  }
  .filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field--wide { grid-column: 1 / -1; }
  .offer-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .offer-row--head { display: none; }
  .standard-cell .flag-row { display: none; }
  .mobile-flags { display: flex; }
  .merchant-cell meter { max-width: 220px; }
  .price-cell {
    justify-items: start;
  }
  .action-cell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-grid, .drawer-actions {
    grid-template-columns: 1fr;
  }
  .admin-hero {
    grid-template-columns: 1fr;
  }
  .drawer-panel {
    padding: 18px;
  }
  .admin-tools {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .filterbar { grid-template-columns: 1fr; }
  .lede h1 { font-size: 34px; }
  .brand-tag, .issue { display: none; }
}
