/* Doorprice styles. Storefront patterns follow Amazon's layout (dense tiles, square-ish
   corners, a dark header, warm buttons) in Doorprice's own palette. Also follows Sam's
   interface rules: balanced headings, smoothed text, tabular numbers, concentric radii,
   hairline shadow rings instead of solid borders, faint image outlines, transitions for
   interactions and one staggered enter animation. Light theme only: product photos are
   shot on white. */

:root {
  --bg: #ffffff;
  --bg-feed: #e9edf0;
  --surface: #ffffff;
  --surface-2: #f3f5f7;
  --surface-3: #e5e9ed;
  --text: #0f1419;
  --muted: #545b63;
  --faint: #7b838c;
  --header: #13202b;
  --header-2: #1f3242;
  --header-3: #2a4153;
  --header-text: #ffffff;
  --accent: #ffb020;
  --accent-ink: #1a1300;
  --accent-hover: #f5a50c;
  --yellow: #ffd65c;
  --yellow-hover: #f7cb45;
  --link: #0b6a8a;
  --link-hover: #b4510a;
  --deal: #c8102e;
  --good: #0a7a42;
  --good-bg: #e3f4ea;
  --warn: #8a5300;
  --warn-bg: #fff3d6;
  --bad: #b42318;
  --bad-bg: #fde8e5;
  --info-bg: #e5f1f6;
  --svc: #1f6f78;
  --svc-bg: #e3f1f2;
  --stars: #f29f05;
  --ring: rgb(15 20 25 / 0.12);
  --shadow-1: 0 0 0 1px rgb(15 20 25 / 0.1);
  --shadow-2: 0 0 0 1px rgb(15 20 25 / 0.14), 0 2px 6px rgb(15 20 25 / 0.1);
  --shadow-pop: 0 0 0 1px rgb(15 20 25 / 0.12), 0 8px 28px rgb(15 20 25 / 0.18);
  --shadow-inset: inset 0 0 0 1px rgb(15 20 25 / 0.16);
  --img-outline: rgb(0 0 0 / 0.06);
  --pad: 6px;
  --r-inner: 2px;
  --r-card: calc(var(--r-inner) + var(--pad)); /* 8px: outer = inner + padding */
  --r-input: 6px;
  --r-btn: 999px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.home { background: var(--bg-feed); }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.22; margin: 0 0 0.4em; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 650; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img, .ph { outline: 1px solid var(--img-outline); outline-offset: -1px; }
code, pre, .mono { font-family: var(--mono); font-size: 0.86em; }
.num, .price, .score, table td, .tnum, .amz-price, .lscore b { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.76rem; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

/* ---------- Header ---------- */
.hdr { background: var(--header); color: var(--header-text); position: relative; z-index: 40; }
.hdr-main { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 60px; }
.hdr a, .hdr button { color: var(--header-text); }
.hdr-main > a, .hdr-main > button { border-radius: 2px; padding: 6px 8px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.15s; text-decoration: none; }
.hdr-main > a:hover, .hdr-main > button:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.75); text-decoration: none; }
.hdr button { background: none; border: 0; font: inherit; cursor: pointer; }
.hdr-burger { display: none; padding: 6px; }
.hdr-logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; flex: none; }
.hdr-logo img { outline: none; border-radius: 7px; }
.hdr-deliver { display: flex; align-items: flex-end; gap: 2px; text-align: left; line-height: 1.15; flex: none; }
.hdr-deliver svg { margin-bottom: 2px; }
.hdr-deliver small, .hdr-link small { display: block; font-size: 0.74rem; color: #c9d3dc; }
.hdr-deliver b, .hdr-link b { font-size: 0.86rem; white-space: nowrap; }
.hdr-search { flex: 1; min-width: 0; display: flex; height: 40px; border-radius: var(--r-input); background: #fff; position: relative; margin: 0 8px; }
.hdr-search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.hdr-search select { flex: none; max-width: 150px; border: 0; background: var(--surface-3); color: var(--text); font: inherit; font-size: 0.78rem; padding: 0 6px 0 10px; border-radius: var(--r-input) 0 0 var(--r-input); cursor: pointer; }
.hdr-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 0.98rem; padding: 0 10px; color: var(--text); background: transparent; }
.hdr-search input:focus { outline: none; }
.hdr-search > button { flex: none; width: 48px; border-radius: 0 var(--r-input) var(--r-input) 0; background: var(--accent) !important; color: var(--accent-ink) !important; display: grid; place-items: center; transition: background 0.15s; }
.hdr-search > button:hover { background: var(--accent-hover) !important; }
.hdr-link { line-height: 1.15; flex: none; }
.hdr-cmp { position: relative; display: flex; align-items: flex-end; gap: 4px; flex: none; }
.hdr-cmp b { font-size: 0.86rem; padding-bottom: 2px; }
.hdr-cmp-n { position: absolute; left: 21px; top: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; font-variant-numeric: tabular-nums; }

.subnav { background: var(--header-2); }
.subnav-in { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 0 10px; height: 39px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav-in > a, .subnav-all, .mega-trigger { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 31px; padding: 0 9px; font-size: 0.86rem; white-space: nowrap; border-radius: 2px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.15s; }
.subnav-in > a:hover, .subnav-all:hover, .mega-trigger:hover, .mega-item.open > .mega-trigger { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.75); text-decoration: none; color: #fff; }
.subnav-all { font-weight: 700; }
.mega-trigger.on { box-shadow: inset 0 -2px 0 var(--accent); }
.subnav-r { margin-left: auto; color: var(--yellow) !important; font-weight: 600; }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--text); box-shadow: var(--shadow-pop); padding: 18px 0 22px; z-index: 60; }
.mega-panel-in { max-width: 1500px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.mega-pop h3 { font-size: 0.95rem; margin: 0 0 8px; }
.mega-pop a, .mega-col a { display: block; color: var(--text); padding: 3px 0; font-size: 0.88rem; }
.mega-pop a:hover, .mega-col a:hover { color: var(--link-hover); }
.mega-cols { columns: 4 190px; column-gap: 24px; }
.mega-col { break-inside: avoid; margin-bottom: 14px; }
.mega-col .mega-h { font-weight: 700; }
.mega-col .mega-k { color: var(--muted); font-size: 0.84rem; }
.mega-all { display: inline-block; margin-top: 6px; font-weight: 600; }
.deliver-bar { display: none; }

/* Suggestions under the search box */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; color: var(--text); border-radius: var(--r-input); box-shadow: var(--shadow-pop); padding: 6px 0; z-index: 70; max-height: 70vh; overflow: auto; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--surface-2); color: var(--text); }
.suggest img { width: 34px; height: 34px; object-fit: contain; flex: none; border-radius: 2px; }
.suggest .s-ic { width: 34px; flex: none; display: grid; place-items: center; color: var(--faint); }
.suggest .s-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-h { color: var(--muted); font-size: 0.78rem; flex: none; }
.suggest b { font-weight: 700; }

/* Drawer (All departments) */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.55); opacity: 0; transition: opacity 0.2s var(--ease); }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(365px, 86vw); background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform 0.25s var(--ease); }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { position: sticky; top: 0; background: var(--header-2); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 700; font-size: 1.1rem; }
.drawer-head button { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.drawer-body { padding: 8px 0 24px; }
.drawer-body h3 { font-size: 1.05rem; padding: 12px 22px 6px; margin: 0; }
.drawer-body a, .drawer-body button.dr-item { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 11px 22px; color: var(--text); font: inherit; font-size: 0.95rem; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none; }
.drawer-body a:hover, .drawer-body button.dr-item:hover { background: var(--surface-2); }
.drawer-body hr { border: 0; border-top: 1px solid var(--ring); margin: 6px 0; }
.drawer-back { font-weight: 700; }
.drawer-loading { padding: 12px 22px; color: var(--muted); }

/* ZIP dialog */
.zipdlg { width: min(380px, 92vw); }
.zip-form { padding: 20px 22px 22px; position: relative; }
.zip-form h2 { font-size: 1.1rem; margin-bottom: 4px; }
.zip-form p { color: var(--muted); font-size: 0.86rem; margin: 0 0 14px; }
.zip-form label { font-size: 0.84rem; font-weight: 600; }
.zip-row { display: flex; gap: 8px; margin-top: 6px; }
.zip-row input { flex: 1; min-width: 0; height: 36px; border-radius: var(--r-input); border: 0; box-shadow: var(--shadow-inset); padding: 0 10px; font: inherit; font-size: 1rem; letter-spacing: 0.04em; }
.zip-close { position: absolute; right: 10px; top: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }

.banner { background: var(--warn-bg); color: var(--warn); font-size: 0.82rem; text-align: center; padding: 6px 12px; }
.banner a { color: inherit; text-decoration: underline; }

@media (max-width: 900px) {
  .hdr-main { flex-wrap: wrap; gap: 4px; padding: 6px 10px 10px; }
  .hdr-burger { display: grid; place-items: center; order: 0; }
  .hdr-logo { order: 1; margin-right: auto; font-size: 1.22rem; }
  .hdr-cmp { order: 2; }
  .hdr-search { order: 3; flex-basis: 100%; margin: 4px 0 0; height: 44px; }
  .hdr-search select { display: none; }
  .hdr-search input { padding-left: 12px; }
  .hdr-deliver, .hdr-link, .hide-sm { display: none !important; }
  .subnav-all { display: none; }
  .deliver-bar { display: flex; width: 100%; align-items: center; gap: 6px; background: var(--header-3); color: #fff; border: 0; font: inherit; font-size: 0.86rem; padding: 9px 14px; text-align: left; cursor: pointer; }
  .deliver-bar b { font-weight: 700; }
  .deliver-bar svg:last-child { margin-left: auto; opacity: 0.8; }
  .mega-panel { display: none !important; }
}

/* ---------- Layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 48px; }
.grid { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 10px; }
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  padding: 16px;
  transition: box-shadow 0.2s var(--ease);
}
a.card:hover, .card.hover:hover { box-shadow: var(--shadow-2); text-decoration: none; }
.card.flush { padding: var(--pad); }
.panel { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-btn);
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-inset);
  transition: transform 0.12s var(--ease), box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; background: var(--surface-3); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgb(0 0 0 / 0.08), inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.dark { background: var(--header); color: #fff; box-shadow: none; }
.btn.svc { background: var(--svc); color: #fff; box-shadow: none; }
.btn.small { padding: 6px 10px; font-size: 0.84rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.icon-left { padding-left: 13px; } /* optical alignment: icon side a little tighter */
.btn svg { flex: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--link); }
.chip.svc { background: var(--svc-bg); color: var(--svc); }
.chip.dark { background: var(--header); color: #fff; }

/* ---------- Score badge ---------- */
.score {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: #3a8f5c;
  letter-spacing: -0.02em;
}
.score.sm { min-width: 36px; height: 30px; font-size: 0.9rem; border-radius: 8px; }
.score.great { background: #11744a; }
.score.good { background: #3a8f5c; }
.score.ok { background: #8a7a14; }
.score.meh { background: #b26b10; }
.score.bad { background: #b42318; }
.score.live { background: #5b616a; }
.conf { font-size: 0.74rem; color: var(--muted); }

/* ---------- Product cards ---------- */
.pcard { display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.pcard .ph { aspect-ratio: 1; border-radius: var(--r-inner); overflow: hidden; background: var(--surface-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; outline: none; }
.pcard .body { padding: 2px 6px 6px; display: grid; gap: 6px; }
.pcard .name { font-weight: 650; line-height: 1.25; }
.pcard .price { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; }
.pcard .price small { font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pcard .meta { font-size: 0.8rem; color: var(--muted); }
.cmp { display: inline-flex; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--muted); cursor: pointer; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.car-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--r-card);
  scrollbar-width: none;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { scroll-snap-align: start; position: relative; padding: var(--pad); }
.car-slide img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-inner); display: block; }
.car-label { position: absolute; left: 18px; bottom: 18px; }
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #111;
  transition: transform 0.12s var(--ease), opacity 0.2s;
}
.car-btn:active { transform: translateY(-50%) scale(0.94); }
.car-btn.prev { left: 14px; }
.car-btn.next { right: 14px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 64px; height: 64px; padding: 3px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); cursor: pointer; transition: box-shadow 0.15s; }
.thumbs button img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; display: block; } /* 9 + 3 = 12 concentric */
.thumbs button[aria-current="true"] { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Buy box / offers ---------- */
.buybox .big { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--ring); margin: 12px 0; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.8rem; padding: 8px 10px; }
table.t td { padding: 10px; border-top: 1px solid var(--ring); vertical-align: top; }
table.t td.r, table.t th.r { text-align: right; }
table.t tr.hl td { background: color-mix(in srgb, var(--good-bg) 55%, transparent); }
.scroll-x { overflow-x: auto; }
.best { font-weight: 750; color: var(--good); }
.cmp-table td.bestcell { background: color-mix(in srgb, var(--good-bg) 70%, transparent); font-weight: 700; color: var(--good); }
.cmp-table th { position: sticky; top: 0; background: var(--surface); }
.cmp-table td:first-child { color: var(--muted); white-space: nowrap; }

/* ---------- Score breakdown ---------- */
.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--good); }
.bar.warn > i { background: #d08a12; }
.bar.bad > i { background: var(--bad); }
.range { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3); }
.range .band { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--good) 35%, transparent); }
.range .pt { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--good); transform: translateX(-2px); }
.bd-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: 0.86rem; }
.bd-row + .bd-row { margin-top: 10px; }
.callout { border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; }
.callout.warn { background: var(--warn-bg); color: var(--warn); }
.callout.info { background: var(--info-bg); }
.callout.bad { background: var(--bad-bg); color: var(--bad); }
.callout.good { background: var(--good-bg); color: var(--good); }
.src { display: inline-block; font-size: 0.72rem; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; margin: 2px 4px 0 0; }

/* ---------- Video cards ---------- */
.vcard { color: var(--text); display: grid; gap: 8px; }
.vcard .thumb { position: relative; border-radius: var(--r-inner); overflow: hidden; aspect-ratio: 16 / 9; }
.vcard .thumb img { width: 100%; height: 100%; display: block; object-fit: cover; outline: none; }
.vcard .dur { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / 0.8); color: #fff; font-size: 0.74rem; padding: 2px 6px; border-radius: 6px; }
.vcard .tag { position: absolute; left: 8px; top: 8px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 4px; font-size: 0.84rem; }
.field label { color: var(--muted); font-weight: 600; }
.input, select.input {
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-inset);
  transition: box-shadow 0.15s;
}
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.filters { display: grid; gap: 14px; align-content: start; }
.layout-2 { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 12px; gap: 2px; }
.seg a, .seg button { padding: 6px 12px; border-radius: 9px; font-size: 0.84rem; color: var(--muted); border: 0; background: none; font: inherit; cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); font-weight: 600; } /* 9 + 3 = 12 */

/* ---------- Copy button with animated icon swap ---------- */
.copy { position: relative; }
.copy .ic { display: grid; place-items: center; width: 16px; height: 16px; position: relative; }
.copy .ic svg { position: absolute; transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), filter 0.2s var(--ease); }
.copy .ic .ok { opacity: 0; transform: scale(0.5); filter: blur(4px); }
.copy.done .ic .cp { opacity: 0; transform: scale(0.5); filter: blur(4px); }
.copy.done .ic .ok { opacity: 1; transform: scale(1); filter: blur(0); }
.codebox { display: flex; gap: 8px; align-items: center; background: var(--header); color: #e6e8eb; border-radius: 12px; padding: 6px 6px 6px 12px; font-family: var(--mono); font-size: 0.82rem; overflow: hidden; }
.codebox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.codebox .btn { background: #2a3038; color: #fff; box-shadow: none; padding: 6px 10px; border-radius: 8px; } /* 8 + ~6 = concentric-ish 12+ */
pre.code { background: var(--header); color: #e6e8eb; border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 0.8rem; line-height: 1.55; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.hero .card { padding: 22px; }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.cat { display: flex; gap: 12px; align-items: center; color: var(--text); }
.cat img { width: 64px; height: 64px; border-radius: 12px; }
.stat { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Services ---------- */
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { border: 0; padding: 7px 10px; border-radius: 9px; background: var(--svc-bg); color: var(--svc); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: transform 0.12s var(--ease), background 0.15s, color 0.15s; }
.slot:active { transform: scale(0.96); }
.slot[aria-pressed="true"] { background: var(--svc); color: #fff; }
.day { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin: 10px 0 6px; }

/* ---------- Timeline ---------- */
.tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tl li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; background: var(--surface-3); box-shadow: var(--shadow-inset); }
.tl li.done .dot { background: var(--good); box-shadow: none; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 14px; }
.kpi .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 0.78rem; color: var(--muted); }
.kpi .s { font-size: 0.76rem; color: var(--faint); }
.chart svg { width: 100%; height: auto; display: block; }
.chart svg text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 3.6rem; gap: 10px; align-items: center; font-size: 0.84rem; }
.hbar + .hbar { margin-top: 8px; }
.hbar .track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; }
.hbar .track i { height: 100%; display: block; }
.insight { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 0.9rem; }
.insight + .insight { margin-top: 10px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--ring); color: var(--muted); font-size: 0.82rem; }
footer .in { max-width: 1240px; margin: 0 auto; padding: 22px 16px 36px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: enter 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 100ms); }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
}

/* Compare tray */
.tray {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 140%);
  opacity: 0;
  background: var(--header);
  color: #fff;
  border-radius: 16px;
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  z-index: 30;
  font-size: 0.88rem;
}
.tray.show { transform: translate(-50%, 0); opacity: 1; }
.tray .btn { border-radius: 10px; } /* 10 + 6ish padding */

dialog { border: 0; border-radius: 18px; padding: 0; box-shadow: var(--shadow-2); background: var(--surface); color: var(--text); max-width: min(560px, 92vw); }
dialog::backdrop { background: rgb(0 0 0 / 0.45); }

/* ---------- Charts (palette validated with the dataviz validator, light + dark) ---------- */
.viz {
  --series-1: #2a78d6; /* blue */
  --series-2: #eb6834; /* orange */
  --series-3: #1baf7a; /* aqua */
  --series-4: #eda100; /* yellow */
  --ord-1: #86b6ef; --ord-2: #5598e7; --ord-3: #2a78d6; --ord-4: #1c5cab; --ord-5: #104281;
  --grid: rgb(17 20 24 / 0.08);
  --axis-text: var(--muted);
}
@media (prefers-color-scheme: dark) {
  .viz {
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --ord-1: #184f95; --ord-2: #1c5cab; --ord-3: #2a78d6; --ord-4: #5598e7; --ord-5: #86b6ef;
    --grid: rgb(255 255 255 / 0.09);
  }
}
.viz svg text { fill: var(--axis-text); font-size: 11px; font-family: var(--font); }
.viz .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--header); color: #fff; font-size: 0.78rem; padding: 6px 9px; border-radius: 8px; box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s; max-width: 260px; }
.tip.on { opacity: 1; transform: none; }
.hbar .track i + i { margin-left: 2px; }
.viz [data-tip] { cursor: default; }
.viz rect[data-tip]:hover { opacity: 0.85; }

/* ---------- Product grid: two columns on phones, like a store app ---------- */
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 560px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pgrid .pcard { gap: 6px; }
  .pgrid .pcard .body { padding: 0 2px 4px; gap: 4px; }
  .pgrid .pcard .name { font-size: 0.88rem; }
  .pgrid .pcard .price { font-size: 1.1rem; }
  .pgrid .pcard .meta { font-size: 0.74rem; }
  .pgrid .pcard .chip { font-size: 0.68rem; }
}

/* ---------- Offers: table on desktop, stacked cards on phones ---------- */
@media (max-width: 640px) {
  table.offers thead { display: none; }
  table.offers, table.offers tbody { display: block; }
  table.offers tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 10px; border-top: 1px solid var(--ring); }
  table.offers tr:first-child { border-top: 0; }
  table.offers tr.hl { background: color-mix(in srgb, var(--good-bg) 55%, transparent); border-radius: var(--r-inner); }
  table.offers tr.hl td { background: none; }
  table.offers td { display: block; padding: 0; border: 0; text-align: left !important; }
  table.offers td.o-store { grid-column: 1; }
  table.offers td.o-total { grid-column: 2; grid-row: 1; text-align: right !important; font-size: 1.15rem; }
  table.offers td.o-parts { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); }
  table.offers td.o-parts::before { content: attr(data-label); }
  table.offers td.o-parts .o-desk { display: none; }
  table.offers td.o-hide { display: none; }
  table.offers td.o-when { grid-column: 1 / -1; font-size: 0.8rem; }
  table.offers td.o-when .tiny { display: inline; margin-left: 6px; }
  table.offers td.o-act { grid-column: 1 / -1; display: flex; gap: 8px; }
  table.offers td.o-act form { flex: 1; display: flex !important; }
  table.offers td.o-act .btn { flex: 1; justify-content: center; }
}

/* Score breakdown rows: label + number on one line, full-width bar below on phones */
@media (max-width: 560px) {
  .bd-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .bd-row > .bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.hbar > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .hbar { grid-template-columns: minmax(0, 7.2rem) minmax(0, 1fr) 3.2rem; } }
.hbar.funnel-row { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 5.8rem; }
@media (max-width: 560px) { .hbar.funnel-row { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) 5.4rem; } }
.sm-only { display: none !important; }
@media (max-width: 640px) { .sm-only { display: inline-flex !important; } }

/* Early scores (low confidence) look tentative, not like a verdict */
.score.tentative { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--ring-strong, #c9c6bd); border: 0; }
/* Phones: results before filters */
@media (max-width: 860px) { .layout-2 > .filters { order: 2; } }
.pcard .name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   Storefront (Amazon-style patterns, Doorprice palette)
   ===================================================================== */
main { max-width: 1500px; padding: 12px 14px 40px; }
body.home main { padding-top: 10px; }
dialog { border-radius: 10px; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 16px; border-radius: var(--r-btn); border: 0; font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; background: #fff; color: var(--text); box-shadow: var(--shadow-inset); text-decoration: none; transition: background 0.15s, box-shadow 0.15s; }
.pill:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.pill.amber { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.pill.amber:hover { background: var(--accent-hover); }
.pill.yellow { background: var(--yellow); color: var(--accent-ink); box-shadow: none; }
.pill.yellow:hover { background: var(--yellow-hover); }
.pill.block { display: flex; width: 100%; }
.pill.small { min-height: 29px; padding: 0 12px; font-size: 0.8rem; }
.pill[aria-pressed="true"] { background: var(--good-bg); color: var(--good); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-align: left; }
.linkish:hover { color: var(--link-hover); text-decoration: underline; }
form.inline { display: inline; }

/* Ratings: five stars filled to the value with a mask */
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 0.84rem; color: var(--text); white-space: nowrap; }
.rating .rv { font-weight: 500; }
.rating .rc { color: var(--link); }
.rating.none { color: var(--faint); font-size: 0.78rem; }
.stars { --size: 15px; display: inline-block; width: calc(var(--size) * 5); height: var(--size); flex: none;
  background: linear-gradient(90deg, var(--stars) calc(var(--v) / 5 * 100%), #d3d8dd 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.95-4.7 4.6 1.1 6.5L12 17.5l-5.8 3.05 1.1-6.5-4.7-4.6 6.5-.95z'/%3E%3C/svg%3E") repeat-x left center / var(--size) var(--size);
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.95-4.7 4.6 1.1 6.5L12 17.5l-5.8 3.05 1.1-6.5-4.7-4.6 6.5-.95z'/%3E%3C/svg%3E") repeat-x left center / var(--size) var(--size); }
.rating.sm .stars { --size: 13px; }
.rating.sm .rv { display: none; }

/* Prices: superscript dollar sign and cents */
.amz-price { display: inline-flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; color: var(--text); line-height: 1; }
.amz-price .p { display: inline-flex; align-items: flex-start; }
.amz-price .sym, .amz-price .f { font-size: 0.78rem; margin-top: 0.18em; }
.amz-price .w { font-size: 1.62rem; font-weight: 500; letter-spacing: -0.01em; }
.amz-price .save { color: var(--deal); font-size: 1.35rem; font-weight: 300; }
.amz-price .list { flex-basis: 100%; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.amz-price.lg .w { font-size: 2.1rem; }
.amz-price.lg .save { font-size: 1.75rem; }
.amz-price.lg .sym, .amz-price.lg .f { font-size: 0.9rem; }

/* Doorprice Score chip */
.lscore { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.lscore b { min-width: 27px; height: 20px; padding: 0 5px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 0.78rem; font-weight: 800; background: #0a7a42; }
.lscore.good b, .lscore-xl.good { background: #3b8a4d; }
.lscore.ok b, .lscore-xl.ok { background: #86760f; }
.lscore.meh b, .lscore-xl.meh { background: #b4660a; }
.lscore.bad b, .lscore-xl.bad { background: #b42318; }
.lscore.early b { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--faint); }
.pdp-score-link:hover { text-decoration: none; }

/* Badges with Amazon's notched edge */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 700; padding: 3px 14px 3px 8px; line-height: 1.2; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%); }
.badge.choice { background: var(--header); color: #fff; }
.badge.choice span { color: var(--accent); }
.badge.value { background: #c4570b; color: #fff; }

/* Product tiles */
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 10px 12px 14px; }
.tile-img { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 8px; border-radius: var(--r-inner); overflow: hidden; background: #fff; }
.tile-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; outline: none; }
.tile-body { display: grid; gap: 5px; align-content: start; min-width: 0; }
.tile-title { color: var(--text); font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-title:hover { color: var(--link-hover); text-decoration: none; }
.tile-price { margin-top: 2px; }
.tile-meta { font-size: 0.78rem; color: var(--muted); }
.tile-why { font-size: 0.76rem; color: var(--link); }
.tile .cmp { margin-top: 4px; }

/* Shelves (horizontal rows) */
.shelf { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 16px 18px 12px; margin-top: 16px; }
.shelf-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.shelf-h h2 { margin: 0; font-size: 1.22rem; }
.shelf-h a { font-size: 0.86rem; }
.shelf-sub { color: var(--faint); font-size: 0.78rem; }
.shelf-wrap { position: relative; }
.shelf-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.mini { flex: none; width: 168px; scroll-snap-align: start; display: grid; gap: 4px; align-content: start; color: var(--text); text-decoration: none; }
.mini:hover { color: var(--text); text-decoration: none; }
.mini:hover .mini-title { color: var(--link-hover); }
.mini-img { height: 168px; display: grid; place-items: center; }
.mini-img img { max-width: 100%; max-height: 100%; object-fit: contain; outline: none; }
.mini-title { font-size: 0.86rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .amz-price .w { font-size: 1.3rem; }
.shelf-btn { position: absolute; top: 46px; width: 42px; height: 88px; border: 0; border-radius: 4px; background: rgb(255 255 255 / 0.94); box-shadow: var(--shadow-2); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.15s; z-index: 2; }
.shelf-btn.prev { left: -6px; }
.shelf-btn.next { right: -6px; }
.shelf:hover .shelf-btn { opacity: 1; }
@media (hover: none) { .shelf-btn { display: none; } }

/* Home */
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 10px 16px; font-size: 0.9rem; }
.home-intro p { margin: 0; }
.bubbles { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; }
.bubbles::-webkit-scrollbar { display: none; }
.bubbles a { flex: none; display: grid; justify-items: center; gap: 6px; width: 92px; text-align: center; font-size: 0.78rem; color: var(--text); line-height: 1.2; }
.bubbles a:hover { text-decoration: none; color: var(--link-hover); }
.bubble-img { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-1); overflow: hidden; }
.bubble-img img { max-width: 72%; max-height: 72%; object-fit: contain; outline: none; }
.quads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.quad { background: #fff; padding: 18px 18px 14px; display: flex; flex-direction: column; border-radius: var(--r-card); box-shadow: var(--shadow-1); min-width: 0; }
.quad h2 { font-size: 1.18rem; margin-bottom: 10px; }
.quad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; flex: 1; }
.quad-cell { color: var(--text); font-size: 0.8rem; display: grid; gap: 4px; align-content: start; line-height: 1.25; }
.quad-cell:hover { color: var(--link-hover); text-decoration: none; }
.quad-img { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); border-radius: var(--r-inner); overflow: hidden; }
.quad-img img { max-width: 84%; max-height: 84%; object-fit: contain; outline: none; mix-blend-mode: multiply; }
.quad-more { margin-top: 12px; font-size: 0.86rem; }
.feed { margin-top: 16px; }
.feed-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 2px 10px; }
.feed-h h2 { margin: 0; font-size: 1.32rem; }
.feed-sub { color: var(--muted); font-size: 0.84rem; }
.feed-more { text-align: center; margin: 16px 0 0; }
.agent-strip { margin-top: 16px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--header); color: #fff; border-radius: var(--r-card); padding: 18px 22px; }
.agent-strip h2 { margin: 0 0 4px; font-size: 1.1rem; }
.agent-strip p { margin: 0; color: #c9d3dc; font-size: 0.9rem; max-width: 60ch; }
.agent-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.agent-actions code { background: var(--header-2); padding: 8px 10px; border-radius: 4px; color: #fff; font-size: 0.82rem; }
@media (max-width: 1100px) { .quads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Search results */
.srp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 2px 12px; border-bottom: 1px solid var(--ring); margin-bottom: 14px; }
.srp-count { font-size: 0.92rem; }
.srp-count b { color: #b4510a; }
.srp-sort { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; }
.srp-sort select { font: inherit; border-radius: 8px; padding: 5px 8px; background: var(--surface-2); border: 0; box-shadow: var(--shadow-inset); color: var(--text); }
.srp-cols { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.facets-d > summary { display: none; }
.facet { margin-bottom: 18px; }
.facet h3 { font-size: 0.9rem; margin-bottom: 6px; }
.facet ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.facet a { color: var(--text); font-size: 0.86rem; }
.facet a.on { font-weight: 700; }
.facet a:hover { color: var(--link-hover); }
.facet .n { color: var(--faint); font-size: 0.76rem; }
.price-form { display: flex; gap: 6px; margin-top: 8px; }
.price-form input { width: 70px; height: 30px; border: 0; box-shadow: var(--shadow-inset); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 0.84rem; }
.srp-cat { background: var(--info-bg); border-radius: var(--r-card); padding: 10px 14px; font-size: 0.86rem; margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.srp-cat svg { color: var(--good); }
.pager { display: flex; justify-content: center; gap: 4px; margin: 22px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 4px; justify-content: center; border-radius: 8px; box-shadow: var(--shadow-inset); color: var(--text); font-size: 0.88rem; }
.pager a:hover { background: var(--surface-2); text-decoration: none; }
.pager .cur { box-shadow: inset 0 0 0 1.5px var(--text); font-weight: 700; }
.pager .off, .pager .gap { color: var(--faint); box-shadow: none; }
.srp-foot { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 18px; padding: 14px; background: var(--surface-2); border-radius: var(--r-card); font-size: 0.88rem; }
.srp-empty { max-width: 640px; margin: 28px auto; text-align: center; }
.srp-empty p { color: var(--muted); }
.srp-empty .row { justify-content: center; margin-top: 14px; }
@media (max-width: 900px) {
  .srp-cols { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .facets-d > summary { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px; box-shadow: var(--shadow-inset); font-weight: 600; cursor: pointer; list-style: none; }
  .facets-d > summary::-webkit-details-marker { display: none; }
  .facets-d[open] > summary { margin-bottom: 12px; }
}

/* Product page */
.crumbs { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 0 10px; }
.crumbs a { color: var(--muted); }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 262px; gap: 26px; align-items: start; }
.pdp-media { position: sticky; top: 12px; z-index: 5; }
.pdp-title-sm { display: none; }
.gallery { display: flex; gap: 10px; position: relative; }
.g-thumbs { display: flex; flex-direction: column; gap: 8px; flex: none; }
.g-thumb { width: 46px; height: 56px; padding: 3px; border: 0; background: #fff; border-radius: 6px; box-shadow: var(--shadow-1); cursor: pointer; display: grid; place-items: center; transition: box-shadow 0.15s; }
.g-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; outline: none; }
.g-thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--link), 0 0 5px 1px rgb(11 106 138 / 0.35); }
.g-main { flex: 1; min-width: 0; position: relative; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: none; width: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; cursor: zoom-in; }
.g-slide img { max-width: 100%; max-height: 100%; object-fit: contain; outline: none; }
.g-dots { display: none; }
.g-lens { position: absolute; width: 150px; height: 150px; background: rgb(255 255 255 / 0.3); box-shadow: 0 0 0 1px rgb(15 20 25 / 0.35); pointer-events: none; }
.g-zoom { position: absolute; left: calc(100% + 16px); top: 0; width: 118%; aspect-ratio: 1; background-color: #fff; background-repeat: no-repeat; box-shadow: var(--shadow-pop); z-index: 30; border-radius: var(--r-card); }
.g-hint { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 0.76rem; color: var(--faint); pointer-events: none; }
@media (hover: none), (max-width: 900px) { .g-hint, .g-lens, .g-zoom { display: none !important; } }
.pdp-info h1 { font-size: 1.45rem; font-weight: 500; line-height: 1.3; margin: 2px 0 6px; }
.pdp-store { font-size: 0.86rem; }
.pdp-rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp-badge { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.pdp-info hr { border: 0; border-top: 1px solid var(--ring); margin: 12px 0; }
.pdp-sub { color: var(--muted); font-size: 0.84rem; margin-top: 6px; }
.pdp-opt { margin-top: 10px; font-size: 0.86rem; }
.pdp-opt .opt { display: inline-block; padding: 4px 10px; border-radius: 6px; box-shadow: var(--shadow-inset); margin: 4px 4px 0 0; font-size: 0.8rem; }
.pdp-specs { border-collapse: collapse; margin-top: 12px; font-size: 0.88rem; }
.pdp-specs th { text-align: left; font-weight: 700; padding: 4px 18px 4px 0; vertical-align: top; }
.pdp-specs td { padding: 4px 0; }
.pdp-specs.wide { width: 100%; max-width: 760px; }
.pdp-specs.wide th { width: 34%; background: var(--surface-2); padding: 8px 12px; border-bottom: 1px solid #fff; }
.pdp-specs.wide td { padding: 8px 12px; border-bottom: 1px solid var(--ring); }
.about-h { font-size: 1.05rem; margin: 0 0 6px; }
.about { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9rem; }
.pdp-why { margin-top: 14px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-card); font-size: 0.86rem; }
.buy { box-shadow: var(--shadow-1); border-radius: var(--r-card); padding: 16px; display: grid; gap: 10px; font-size: 0.86rem; position: sticky; top: 12px; }
.buy-price .amz-price .w { font-size: 1.9rem; }
.buy-line { display: flex; gap: 6px; align-items: flex-start; }
.buy-line svg { flex: none; margin-top: 1px; color: var(--muted); }
.buy-ship { margin: 0; text-wrap: pretty; }
.buy > * { min-width: 0; }
.stock { font-size: 1.05rem; font-weight: 500; }
.stock.in { color: var(--good); }
.stock.out { color: var(--bad); }
.buy-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 4px 0 0; font-size: 0.8rem; }
.buy-facts dt { color: var(--muted); }
.buy-facts dd { margin: 0; display: flex; gap: 4px; align-items: center; }
.buy-note { margin: 0; color: var(--muted); font-size: 0.76rem; }
.pdp-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ring); }
.pdp-sec h2 { font-size: 1.3rem; margin-bottom: 12px; }
.pdp-sec h3 { margin-top: 18px; }
.cmp-wrap { overflow-x: auto; }
.cmp-grid { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.86rem; }
.cmp-grid th, .cmp-grid td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ring); }
.cmp-grid thead th { vertical-align: bottom; font-weight: 500; }
.cmp-grid thead a { display: grid; gap: 6px; }
.cmp-grid thead img { width: 120px; height: 120px; object-fit: contain; outline: none; }
.cmp-grid thead span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-grid thead em { display: block; font-style: normal; font-weight: 700; color: var(--text); }
.cmp-grid tbody th { white-space: nowrap; font-weight: 700; width: 1%; }
.cmp-grid .cur { background: #fff9eb; }
.cmp-grid .best { color: var(--good); font-size: 0.76rem; font-weight: 700; margin-top: 3px; }
.tag-best { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--good); margin-top: 2px; }
.t.sellers tr.hl td { background: #fff9eb; }
.score-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.score-big { display: flex; gap: 14px; align-items: flex-start; }
.score-big p { margin: 4px 0 6px; color: var(--muted); font-size: 0.86rem; }
.lscore-xl { flex: none; width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: #0a7a42; font-variant-numeric: tabular-nums; }
.bd { display: grid; grid-template-columns: minmax(0, 1fr) 140px 32px; gap: 10px; align-items: center; font-size: 0.86rem; padding: 4px 0; }
.bd-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: var(--stars); }
.sources { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 22px; font-size: 0.84rem; }
.sources li { display: flex; gap: 8px; align-items: center; }
.sources .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--faint); flex: none; }
.sources li.ok .dot { background: var(--good); box-shadow: none; }
.sources li.zero .dot { background: var(--stars); box-shadow: none; }
.sources li span:last-child { color: var(--muted); margin-left: auto; }
.evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ev { box-shadow: var(--shadow-1); border-radius: var(--r-card); padding: 12px 14px; display: grid; gap: 6px; font-size: 0.86rem; align-content: start; }
.ev-src { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.ev-type { color: var(--faint); font-weight: 500; font-size: 0.76rem; text-transform: capitalize; }
.ev-n { color: var(--muted); font-size: 0.8rem; }
.ev-x { margin: 0; color: var(--muted); }
.desc { max-height: 9.6em; overflow: hidden; position: relative; font-size: 0.9rem; }
.desc p { white-space: pre-line; margin: 0; }
.desc.open { max-height: none; }
.desc:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgb(255 255 255 / 0), #fff); }
.desc-more { margin-top: 6px; }
.pdp-agents { margin-top: 26px; font-size: 0.78rem; color: var(--faint); }
.cmp-h { font-size: 1.4rem; margin: 6px 0 14px; }
@media (max-width: 1100px) {
  .pdp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp-buy { grid-column: 2; }
}
@media (max-width: 760px) {
  .pdp-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pdp-media { position: static; }
  .pdp-title-sm { display: block; }
  .pdp-title-sm h1 { font-size: 0.98rem; font-weight: 400; line-height: 1.35; margin: 6px 0 10px; }
  .pdp-info > h1, .pdp-info > .pdp-rating, .pdp-store { display: none; }
  .g-thumbs { display: none; }
  .g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
  .g-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); transition: background 0.15s; }
  .g-dots span.on { background: var(--text); }
  .buy { position: static; }
  .pdp-buy { grid-column: auto; }
  .score-grid { grid-template-columns: minmax(0, 1fr); }
  .bd { grid-template-columns: minmax(0, 1fr) 90px 28px; }
}

/* Footer */
.ftr { margin-top: 36px; background: var(--header-2); color: #d5dde4; font-size: 0.86rem; border-top: 0; }
.ftr-top { display: block; text-align: center; padding: 14px; background: var(--header-3); color: #fff !important; font-size: 0.84rem; }
.ftr-top:hover { background: #35506a; text-decoration: none; }
.ftr-cols { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 32px 20px 26px; }
.ftr h3 { color: #fff; font-size: 0.95rem; margin: 0 0 8px; }
.ftr a { display: block; color: #d5dde4; padding: 3px 0; }
.ftr a:hover { color: #fff; }
.ftr-cols span { color: #aab6c1; font-size: 0.82rem; }
.ftr-base { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; background: var(--header); color: #aab6c1; font-size: 0.8rem; }
.ftr-base img { outline: none; border-radius: 5px; }

/* ---------- Interactions added by app.js ---------- */
.mega-panel[hidden] { display: none; }
.mega-scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 0.38); z-index: 35; opacity: 0; pointer-events: none; transition: opacity 0.18s var(--ease); }
.mega-scrim.on { opacity: 1; }
@media (max-width: 900px) { .mega-scrim { display: none; } }
.hdr-cmp-n.zero { background: var(--header-3); color: #c9d3dc; }
[data-cmp-toggle].on { background: var(--good-bg); color: var(--good); box-shadow: inset 0 0 0 1px rgb(10 122 66 / 0.35); }
[data-cmp-toggle] .ic-swap { display: inline-grid; place-items: center; }
.shelf-btn:disabled { opacity: 0 !important; pointer-events: none; }
.shelf.no-scroll .shelf-btn { display: none; }
.g-track:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .mega-panel { animation: mega-in 0.16s var(--ease) both; }
  [data-cmp-toggle] .ic-swap { animation: icon-in 0.25s var(--ease) both; }
  @keyframes mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  @keyframes icon-in { from { opacity: 0; transform: scale(0.5); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
}

/* Full-screen photo viewer */
dialog.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; background: #fff; padding: 0; overflow: hidden; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / 0.6); }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; z-index: 2; pointer-events: none; }
.lb-top > * { pointer-events: auto; }
.lb-n { color: var(--muted); font-size: 0.86rem; }
.lb-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; transition: background 0.15s; }
.lb-close:hover { background: var(--surface-3); }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: none; width: 100%; height: 100%; margin: 0; display: grid; place-items: center; padding: 64px 16px 24px; scroll-snap-align: center; }
.lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; outline: none; touch-action: pinch-zoom; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-2); color: var(--text); cursor: pointer; }
.lb-btn.prev { left: 16px; }
.lb-btn.next { right: 16px; }
@media (hover: none) { .lb-btn { display: none; } }

/* ---------- Live research ---------- */
.rs { display: grid; gap: 14px; }
.rs-hero { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 22px 22px 20px; }
.rs-hero h1 { font-size: 1.6rem; margin-bottom: 6px; }
.rs-hero p { color: var(--muted); max-width: 70ch; margin: 0 0 14px; }
.rs-form { display: flex; gap: 8px; max-width: 760px; }
.rs-form input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: var(--r-input); box-shadow: var(--shadow-inset); padding: 0 12px; font: inherit; font-size: 1rem; }
.rs-form input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.rs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.rs-list, .rs-side { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 16px 18px; }
.rs-list h2, .rs-side h2 { font-size: 1.05rem; }
.rs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--ring); color: var(--text); }
.rs-row:first-of-type { border-top: 0; }
.rs-row:hover { text-decoration: none; background: var(--surface-2); }
.rs-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-n { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.rs-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.rs-pill.good { background: var(--good-bg); color: var(--good); }
.rs-pill.info { background: var(--info-bg); color: var(--link); }
.rs-pill.warn { background: var(--warn-bg); color: var(--warn); }
.rs-pill.bad { background: var(--bad-bg); color: var(--bad); }
.rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 16px 18px; }
.rs-head h1 { margin: 0 0 4px; }
.rs-status { margin: 0; color: var(--muted); }
.rs-progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin: 10px 0 2px; }
.rs-progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.6s var(--ease); }
.rs-grid { margin-top: 12px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; }
.tile.sk { pointer-events: none; }
.sk-img { aspect-ratio: 1; border-radius: var(--r-inner); background: var(--surface-2); }
.sk-line { height: 12px; border-radius: 6px; background: var(--surface-2); margin-top: 10px; }
.sk-line.short { width: 60%; }
.sk-line.tiny { width: 35%; }
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin 0.9s linear infinite; }
  .sk-img, .sk-line { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
}
@media (max-width: 900px) { .rs-cols { grid-template-columns: minmax(0, 1fr); } .rs-form { flex-direction: column; } }

/* Phones */
@media (max-width: 640px) {
  main { padding: 8px 10px 28px; }
  .home-intro { font-size: 0.84rem; padding: 9px 12px; }
  .quads { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 12px -10px 0; padding: 0 10px 4px; scrollbar-width: none; }
  .quad { flex: none; width: 80vw; scroll-snap-align: start; padding: 14px 14px 12px; }
  .grid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 8px 10px 12px; }
  .tile-title { font-size: 0.88rem; }
  .tile .lscore span { display: none; }
  .srp .grid-tiles { grid-template-columns: minmax(0, 1fr); }
  .srp .tile { flex-direction: row; gap: 12px; padding: 10px; }
  .srp .tile-img { width: 38%; flex: none; margin: 0; align-self: start; }
  .srp .tile .lscore span { display: inline; }
  .shelf { padding: 14px 12px 10px; }
  .mini { width: 140px; }
  .mini-img { height: 140px; }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-h h2 { font-size: 1.15rem; }
}

/* ---- research: the named product first, then alternatives */
.from { font-size: 12px; color: var(--muted, #565959); margin-right: 4px; }
.rs-lead { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px; margin: 8px 0 20px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(15, 17, 17, 0.06), 0 2px 10px rgba(15, 17, 17, 0.06); }
.rs-lead-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f7f7f7; }
.rs-lead-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; outline: 1px solid rgba(0, 0, 0, 0.04); outline-offset: -1px; }
.rs-lead h2 { font-size: 24px; line-height: 1.2; margin: 2px 0 10px; text-wrap: balance; }
.rs-lead h2 a { color: inherit; text-decoration: none; }
.rs-eyebrow { margin: 0; font-size: 13px; color: var(--muted, #565959); }
.rs-lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rs-lead-price { margin: 12px 0; font-size: 15px; }
.rs-lead-price b { font-size: 22px; }
.rs-builds { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.rs-build { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: #f6f7f7; color: inherit; text-decoration: none; box-shadow: 0 0 0 1px rgba(15, 17, 17, 0.08); transition: box-shadow 0.15s ease, background-color 0.15s ease; }
.rs-build:hover { background: #fff; box-shadow: 0 0 0 1px rgba(15, 17, 17, 0.2), 0 2px 6px rgba(15, 17, 17, 0.08); }
.rs-build span { font-size: 13px; }
.rs-build b { font-size: 14px; }
.rs-lead-cta { margin-top: 14px; }
.rs-h2 { font-size: 20px; margin: 8px 0 12px; }
.rs-cmp { margin: 16px 0 4px; }
@media (max-width: 720px) {
  .rs-lead { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .rs-lead-img { max-width: 280px; margin: 0 auto; width: 100%; }
  .rs-lead h2 { font-size: 20px; }
}

/* ---- product page: options (builds, colors, sizes, listing variants) */
.opts { display: grid; gap: 12px; margin: 14px 0 6px; }
.opt-k { font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.opt-k b { color: var(--text); font-weight: 600; }
.opts .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 36px; padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--text); font-size: 0.86rem; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-inset); cursor: pointer; border: 0; font-family: inherit; transition: box-shadow 0.15s ease, background-color 0.15s ease; }
.opts .chip small { font-size: 0.76rem; color: var(--muted); font-weight: 400; }
.opts .chip:hover { box-shadow: inset 0 0 0 1px rgb(15 20 25 / 0.4); text-decoration: none; }
.opts .chip.on { box-shadow: inset 0 0 0 2px var(--link); background: #f2f8fa; }
.opts .chip.off { color: var(--faint); background: repeating-linear-gradient(135deg, #fff 0 6px, var(--surface-2) 6px 7px); }
.opts .chip.size { min-width: 44px; align-items: center; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--sw, #ddd); box-shadow: inset 0 0 0 1px rgb(15 20 25 / 0.18); position: relative; transition: box-shadow 0.15s ease, transform 0.15s ease; display: inline-block; }
.sw:hover { transform: scale(1.06); }
.sw.on { box-shadow: inset 0 0 0 1px rgb(15 20 25 / 0.18), 0 0 0 2px #fff, 0 0 0 4px var(--link); }
.sw.off::after { content: ""; position: absolute; inset: 15px -1px; height: 2px; background: rgb(15 20 25 / 0.55); transform: rotate(-45deg); }
.pm { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgb(15 20 25 / 0.06); margin: 8px 0 2px; }
.pm-b { border: 0; background: transparent; font: inherit; font-size: 0.78rem; padding: 4px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.pm-b[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgb(15 20 25 / 0.12), 0 0 0 1px rgb(15 20 25 / 0.06); }
.pdp-pm-note { font-size: 0.78rem; color: var(--muted); margin-left: 6px; }
.tag-cur { font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--info-bg); color: var(--link); }
.t.stores tr.cur td { background: #f6fafb; }

/* ---- gallery: review videos alongside photos, and where the photos come from */
.g-thumb.vid { position: relative; }
.g-thumb.vid img { object-fit: cover; }
.g-play { position: absolute; inset: 0; display: grid; place-items: center; }
.g-play::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: rgb(15 20 25 / 0.72); }
.g-play::after { content: ""; position: absolute; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.g-video { position: relative; background: #0f1419; display: grid; place-items: center; }
.g-video img { width: 100%; height: auto; object-fit: cover; opacity: 0.92; }
.g-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.g-vplay { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.play { width: 64px; height: 64px; border-radius: 50%; background: rgb(15 20 25 / 0.72); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25); position: relative; display: block; transition: transform 0.15s ease, background-color 0.15s ease; }
.play::after { content: ""; position: absolute; left: 50%; top: 50%; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; transform: translate(-35%, -50%); }
.g-vplay:hover .play, .rv-thumb:hover .play { transform: scale(1.06); background: rgb(15 20 25 / 0.85); }
.g-video figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; font-size: 0.82rem; text-shadow: 0 1px 2px rgb(0 0 0 / 0.6); pointer-events: none; }
.g-src { position: absolute; left: 10px; top: 10px; font-size: 0.72rem; color: var(--muted); background: rgb(255 255 255 / 0.9); padding: 3px 8px; border-radius: 999px; box-shadow: 0 0 0 1px rgb(15 20 25 / 0.06); pointer-events: none; }

/* ---- score card */
.ring .ring-track { fill: none; stroke: var(--surface-3); }
.ring .ring-fill { fill: none; stroke-linecap: round; stroke: #0a7a42; transition: stroke-dasharray 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring.good .ring-fill { stroke: #3b8a4d; }
.ring.ok .ring-fill { stroke: #86760f; }
.ring.meh .ring-fill { stroke: #b4660a; }
.ring.bad .ring-fill { stroke: #b42318; }
.ring text { font-weight: 800; fill: var(--text); font-variant-numeric: tabular-nums; }
.sc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sc-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sc-main h2 { margin: 0 0 2px; }
.sc-label { margin: 0; }
.sc-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; text-wrap: pretty; }
.sc-you { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #f2f8fa; box-shadow: inset 0 0 0 1px rgb(11 106 138 / 0.15); }
.sc-you p { margin: 2px 0 0; max-width: 220px; }
.sc-pri { margin: 18px 0 6px; }
.sc-pri p { margin: 0 0 8px; font-size: 0.9rem; }
.pri-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pri { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: #fff; font: inherit; font-size: 0.86rem; color: var(--text); box-shadow: var(--shadow-inset); cursor: pointer; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.pri:hover { box-shadow: inset 0 0 0 1px rgb(15 20 25 / 0.4); }
.pri[data-w="1"], .pri[data-w="2"] { background: #f2f8fa; box-shadow: inset 0 0 0 1.5px var(--link); }
.pri-dots { display: inline-flex; gap: 3px; }
.pri-dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); transition: background-color 0.15s ease; }
.pri[data-w="1"] .pri-dots b:first-child, .pri[data-w="2"] .pri-dots b { background: var(--link); }
.sc-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 18px; }
.sc-cols h3 { font-size: 0.95rem; margin: 0 0 8px; }
.fxs { display: grid; gap: 2px; }
.fx > summary, .fx:not(details) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 1.1fr) 36px; align-items: center; gap: 12px; padding: 7px 4px; border-radius: 8px; list-style: none; }
.fx > summary { cursor: pointer; transition: background-color 0.15s ease; }
.fx > summary::-webkit-details-marker { display: none; }
.fx > summary:hover { background: var(--surface-2); }
.fx-l { display: flex; flex-direction: column; font-size: 0.9rem; min-width: 0; }
.fx-l small { font-size: 0.74rem; color: var(--muted); }
.fx-why { color: var(--link); }
.fx[open] .fx-why { color: var(--muted); }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: #2a4153; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.empty { background: repeating-linear-gradient(90deg, var(--surface-3) 0 4px, transparent 4px 8px); }
.fx-v { text-align: right; font-size: 0.95rem; }
.fx-q { margin: 2px 4px 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.fx-q li { font-size: 0.86rem; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); text-wrap: pretty; }
.fx-q li.pos { box-shadow: inset 3px 0 0 #3b8a4d; }
.fx-q li.neg { box-shadow: inset 3px 0 0 #b4660a; }
.fx-q .by { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.sc-flags { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); }
.sc-flags h3 { margin: 0 0 6px; color: var(--warn); }
.sc-flags ul { margin: 0; padding-left: 18px; font-size: 0.86rem; }
.srcs summary { cursor: pointer; font-weight: 600; }
@media (max-width: 760px) {
  .sc-cols { grid-template-columns: 1fr; gap: 18px; }
  .sc-main { gap: 12px; }
  .sc-main .ring { width: 72px; height: 72px; }
}

/* ---- reviews and videos */
.rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rv-head h2 { margin: 0; }
.rv-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rv-tab { border: 0; font: inherit; font-size: 0.84rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease; }
.rv-tab[aria-selected="true"] { background: var(--header); color: #fff; }
.rv-tab .num { opacity: 0.7; margin-left: 2px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rv-card { display: flex; flex-direction: column; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(15 20 25 / 0.08), 0 1px 3px rgb(15 20 25 / 0.06); overflow: hidden; }
.rv-card.more, .rv-card[hidden] { display: none; }
.rv.all-shown .rv-card.more:not([hidden]) { display: flex; }
.rv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #0f1419; cursor: pointer; overflow: hidden; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; }
.rv-thumb:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.rv-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dur { position: absolute; right: 8px; bottom: 8px; font-size: 0.72rem; color: #fff; background: rgb(0 0 0 / 0.75); padding: 1px 6px; border-radius: 4px; }
.rv-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rv-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.86rem; }
.rv-badge { font-size: 0.68rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.rv-badge.trusted { background: var(--good-bg); color: var(--good); }
.rv-badge.sponsored { background: var(--warn-bg); color: var(--warn); }
.rv-meta { font-size: 0.76rem; color: var(--muted); }
.rv-score { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.rv-score span { font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.rv-q { margin: 0; font-size: 0.9rem; text-wrap: pretty; }
.rv-flag { margin: 0; font-size: 0.8rem; color: var(--warn); }
.rv-link { margin-top: auto; font-size: 0.8rem; color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-stars { display: flex; align-items: center; gap: 6px; }
.rv-more { margin-top: 14px; }
.rv-official { margin-top: 22px; }
.rv-official h3 { font-size: 0.95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ring .ring-fill, .bar i, .sw, .play { transition: none; } }

.sc-you[hidden] { display: none; }
.t.stores tr.more { display: none; }
.t.stores.all tr.more { display: table-row; }
.stores-more { margin-top: 10px; }

.rs-srcs { margin: 22px 0 8px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.rs-srcs summary { cursor: pointer; font-weight: 600; }
.rs-srcs .sources { margin-top: 10px; columns: 2; column-gap: 24px; }
@media (max-width: 640px) { .rs-srcs .sources { columns: 1; } }

/* ---- compare: the rows that matter, lined up */
.cmpv { padding: 8px 0 24px; }
.cmpv-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.cmpv-top h1 { margin: 0 0 4px; font-size: 1.5rem; }
.cmpv-top p { margin: 0; max-width: 62ch; }
.cmpv-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmpv-ctl .pm { margin: 0; }
.cmpv-ctl .pill.on { background: #f2f8fa; box-shadow: inset 0 0 0 1.5px var(--link); }
.cmpv-rows { position: relative; }
.cmpv-rows > summary { list-style: none; cursor: pointer; }
.cmpv-rows > summary::-webkit-details-marker { display: none; }
.cmpv-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(92vw, 520px); max-height: 70vh; overflow: auto; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px rgb(15 20 25 / 0.08), 0 12px 32px rgb(15 20 25 / 0.18); display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.cmpv-pop fieldset { border: 0; margin: 0 0 6px; padding: 0; }
.cmpv-pop legend { font-weight: 600; font-size: 0.86rem; margin-bottom: 4px; }
.cmpv-pop label { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; padding: 3px 0; }
.cmpv-pop-act { grid-column: 1 / -1; display: flex; gap: 8px; padding-top: 6px; position: sticky; bottom: -14px; background: #fff; padding-bottom: 4px; }
.cmpv-wrap { overflow-x: auto; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(15 20 25 / 0.08), 0 1px 3px rgb(15 20 25 / 0.06); }
.cmpv-t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: calc(150px + var(--n) * 190px); }
.cmpv-t th, .cmpv-t td { padding: 10px 14px; text-align: left; vertical-align: top; font-size: 0.9rem; }
.cmpv-k { width: 150px; }
.cmpv-t thead th { padding-top: 14px; vertical-align: bottom; }
.cmpv-t tbody th { position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 500; color: var(--muted); box-shadow: 1px 0 0 rgb(15 20 25 / 0.06); }
.cmpv-t tbody tr:not(.grp) > * { border-top: 1px solid rgb(15 20 25 / 0.06); }
.cmpv-t .k { display: block; color: var(--text); }
.cmpv-t .k-hint { display: block; font-size: 0.72rem; color: var(--faint); font-weight: 400; margin-top: 2px; }
.cmpv-t tr.grp th { position: static; background: var(--surface-2); color: var(--text); font-size: 0.78rem; font-weight: 700; padding: 6px 14px; text-transform: none; }
.cmpv-t tr.same td { color: var(--muted); }
.cmpv-t td small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.cmpv-t td.best { background: #f3faf6; }
.best-tag { display: inline-block; margin-left: 6px; font-size: 0.66rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--good-bg); color: var(--good); vertical-align: 1px; }
.cmpv-t td .best-tag { margin: 4px 0 0; }
.cv { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 8px; }
.row-x { float: right; margin: -2px -6px 0 4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--faint); text-decoration: none; opacity: 0; transition: opacity 0.15s ease, background-color 0.15s ease; }
.cmpv-t tbody tr:hover .row-x, .row-x:focus-visible { opacity: 1; }
.row-x:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.cmpv-p { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.cmpv-img { display: grid; place-items: center; aspect-ratio: 1; max-width: 140px; border-radius: 10px; background: #f7f7f7; overflow: hidden; }
.cmpv-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cmpv-n { font-weight: 600; font-size: 0.9rem; line-height: 1.3; text-wrap: balance; }
.cmpv-rm { display: inline-block; margin-top: 4px; font-size: 0.76rem; color: var(--muted); }
.cmpv-foot { margin-top: 12px; }
.cmpv-paste { display: flex; gap: 8px; max-width: 560px; margin: 12px 0 16px; }
.cmpv-paste input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 8px; border: 0; box-shadow: var(--shadow-inset); font: inherit; }
@media (hover: none) { .row-x { opacity: 1; } }
@media (max-width: 640px) {
  .cmpv-k { width: 112px; }
  .cmpv-t { min-width: calc(112px + var(--n) * 150px); }
  .cmpv-t th, .cmpv-t td { padding: 8px 10px; font-size: 0.84rem; }
}

/* ---- what the specs mean: ladders and plain-language terms */
.ex { margin: 12px 0 4px; }
.ex > details { border-radius: 12px; background: #f6f9fb; box-shadow: inset 0 0 0 1px rgb(11 106 138 / 0.12); padding: 10px 14px; }
.ex > details > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; font-size: 0.92rem; }
.ex > details > summary::-webkit-details-marker { display: none; }
.ex > details > summary > span::before { content: "▸"; display: inline-block; margin-right: 6px; color: var(--link); transition: transform 0.15s ease; }
.ex > details[open] > summary > span::before { transform: rotate(90deg); }
.ex-off { display: flex; justify-content: flex-end; }
.kl { display: inline-flex; padding: 2px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(15 20 25 / 0.08); }
.kl-b { border: 0; background: transparent; font: inherit; font-size: 0.72rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; color: var(--muted); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.kl-b[aria-pressed="true"] { background: var(--header); color: #fff; }
.lad { margin-top: 12px; }
.lad-h { font-size: 0.86rem; margin-bottom: 6px; }
.lad-steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lad-steps li { flex: 1 1 0; min-width: 0; position: relative; padding: 8px 6px 6px; border-radius: 6px; background: #e3ebf0; font-size: 0.74rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lad-steps li:first-child { border-radius: 10px 6px 6px 10px; }
.lad-steps li:last-child { border-radius: 6px 10px 10px 6px; }
.lad-steps li.this { background: var(--header); color: #fff; font-weight: 600; }
.lad-steps li.option { background: #fff; box-shadow: inset 0 0 0 1.5px var(--header-3); }
.lad-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lad-tag { font-size: 0.62rem; font-weight: 600; opacity: 0.85; white-space: nowrap; }
.lad-note { margin: 8px 0 2px; font-size: 0.84rem; font-weight: 600; }
.lad-about { margin: 0; font-size: 0.82rem; color: var(--muted); text-wrap: pretty; }
.terms { margin: 12px 0 2px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 0.84rem; }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: var(--muted); text-wrap: pretty; }
@media (max-width: 640px) { .terms { grid-template-columns: 1fr; gap: 2px; } .terms dd { margin-bottom: 8px; } .lad-steps li { font-size: 0.68rem; padding: 7px 3px 5px; } }
.cmpv-foot code, .rs-srcs code { word-break: break-all; }
.cmpv-t .k-hint { font-size: 0.7rem; }

.pri-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.pri-preset { border: 0; font: inherit; font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text); cursor: pointer; transition: background-color 0.15s ease; }
.pri-preset:hover { background: var(--surface-3); }
.cmpv-verdict { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #f2f8fa; font-size: 0.92rem; text-wrap: pretty; }

/* ---- admin: the storefront's look */
.adm { padding: 0 0 32px; }
.adm-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter, 14px)) 18px; padding: 0 var(--gutter, 14px); background: var(--header-2); }
.adm-tabs a { flex: none; color: #fff; text-decoration: none; font-size: 0.88rem; padding: 10px 12px; border-bottom: 2px solid transparent; opacity: 0.85; transition: opacity 0.15s ease, border-color 0.15s ease; }
.adm-tabs a:hover { opacity: 1; text-decoration: none; }
.adm-tabs a[aria-current="page"] { opacity: 1; border-bottom-color: var(--accent); font-weight: 600; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adm-head h1 { margin: 0; font-size: 1.6rem; }
.adm-eyebrow { margin: 0; font-size: 0.8rem; color: var(--muted); }
.adm-flash { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--good-bg); color: var(--good); font-size: 0.9rem; }
.adm .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.adm .kpi { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 0 0 1px rgb(15 20 25 / 0.08), 0 1px 3px rgb(15 20 25 / 0.06); border: 0; }
.adm .kpi .l { font-size: 0.8rem; color: var(--muted); }
.adm .kpi .v { font-size: 1.7rem; font-weight: 800; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.adm .kpi .v.bad { color: var(--bad); }
.adm .kpi .v.warn { color: var(--warn); }
.adm .kpi .s { font-size: 0.76rem; color: var(--muted); }
.adm .panel { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 0 0 1px rgb(15 20 25 / 0.08), 0 1px 3px rgb(15 20 25 / 0.06); border: 0; }
.adm .panel h2 { font-size: 1.05rem; margin: 0 0 10px; }
.adm .grid.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.adm .section { margin-top: 14px; }
.adm table.t { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.adm table.t th { text-align: left; font-weight: 600; font-size: 0.78rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid rgb(15 20 25 / 0.08); }
.adm table.t td { padding: 9px 10px; border-bottom: 1px solid rgb(15 20 25 / 0.05); vertical-align: top; }
.adm table.t tr:last-child td { border-bottom: 0; }
.adm .input, .adm select.input, .adm textarea { border: 0; box-shadow: var(--shadow-inset); border-radius: 8px; padding: 6px 10px; font: inherit; background: #fff; }
.adm .btn { border-radius: 999px; }
.adm .seg { display: none; }
.adm-login { max-width: 420px; margin: 40px auto; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 0 0 1px rgb(15 20 25 / 0.08), 0 8px 24px rgb(15 20 25 / 0.08); }
.adm-login h1 { margin: 0 0 6px; }
.adm-login-f { display: flex; gap: 8px; }
.adm-login-f .input { flex: 1; min-width: 0; height: 38px; }
@media (max-width: 640px) { .adm-head h1 { font-size: 1.3rem; } }
