:root {
  --ink: #10120e;
  --muted: #62675f;
  --paper: #f3f5ef;
  --surface: #fbfcf8;
  --line: rgba(16, 18, 14, .13);
  --line-strong: rgba(16, 18, 14, .25);
  --lime: #a7ed78;
  --lime-soft: #e1f6d2;
  --forest: #173500;
  --orange: #f06a38;
  --yellow: #f5d95c;
  --red: #b33a35;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-ring: 0 0 0 1px var(--line);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  min-width: 320px;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(23, 53, 0, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 53, 0, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  align-content: center;
  justify-content: center;
  gap: 4px;
  transform: rotate(45deg);
}
.brand-mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.header-meta { display: flex; align-items: center; gap: 24px; }
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #4f9e36; box-shadow: 0 0 0 4px rgba(79,158,54,.12); }
.text-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
}

main { overflow: clip; }
.hero {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 68px;
  text-align: center;
  position: relative;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}
.hero::before { width: 540px; height: 360px; left: -370px; top: 95px; background: radial-gradient(ellipse, rgba(167,237,120,.33), transparent 70%); }
.hero::after { width: 440px; height: 340px; right: -310px; top: 200px; background: radial-gradient(ellipse, rgba(240,106,56,.11), transparent 72%); }
.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.eyebrow span {
  color: var(--forest);
  background: var(--lime-soft);
  padding: 7px 10px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 8.2vw, 100px);
  line-height: .88;
  letter-spacing: -.078em;
  font-weight: 700;
}
.hero h1 em { color: var(--forest); font-style: normal; }
.hero-copy {
  max-width: 680px;
  margin: 30px auto 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -.015em;
}

.search-console {
  position: relative;
  z-index: 5;
  max-width: 930px;
  margin: 0 auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #11140f;
  color: #f6f8f1;
  text-align: left;
  box-shadow: 0 24px 60px rgba(16,18,14,.16), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.console-topline {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 13px;
}
.mode-switch { display: flex; gap: 4px; }
.mode {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #8e948a;
  font-size: 12px;
  font-weight: 700;
}
.mode.active { color: var(--forest); background: var(--lime); }
#input-counter { color: #7e847a; font: 400 11px/1 var(--mono); }
.query-field {
  position: relative;
  background: #fdfefb;
  color: var(--ink);
  border-radius: 17px;
  padding: 18px 20px 12px;
}
.search-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid #d9ddd4;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 13, 8, .24);
}
.search-suggestion {
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #eceee9;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover,
.search-suggestion.active { background: var(--lime-soft); }
.search-suggestion span { font-size: 14px; font-weight: 700; }
.search-suggestion small { flex: none; color: var(--forest); font: 700 9px/1 var(--mono); text-transform: uppercase; }
.query-field label,
.setting > span {
  display: block;
  font: 700 10px/1.2 var(--mono);
  color: #777c73;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.query-field textarea {
  display: block;
  width: 100%;
  min-height: 74px;
  max-height: 260px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.36;
  font-weight: 600;
  letter-spacing: -.03em;
}
.query-field textarea::placeholder { color: #a7aba4; }
.query-hint {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #858a81;
  font-size: 11px;
}
.query-hint span:first-child { margin-right: auto; }
kbd {
  border: 1px solid #d8dbd4;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 5px;
  background: #f5f6f2;
  font: 700 9px/1.2 var(--mono);
}
.search-settings {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(160px, .8fr) minmax(210px, 1fr);
  align-items: end;
  gap: 10px;
  padding-top: 12px;
}
.setting { position: relative; }
.setting > span { color: #777e74; margin: 0 0 7px 11px; }
.setting select,
.store-filter {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  color: #f2f5ed;
  background: #20241d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  outline: 0;
  font-size: 13px;
  font-weight: 600;
}
.setting select:focus,
.store-filter:focus-visible { box-shadow: 0 0 0 3px rgba(167,237,120,.23); border-color: var(--lime); }
.setting select option { background: #20241d; }
.store-filter { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.store-filter b { color: var(--lime); }
.store-filter i { width: 8px; height: 8px; border-right: 1px solid #aeb3aa; border-bottom: 1px solid #aeb3aa; transform: rotate(45deg) translateY(-2px); }
.store-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  min-width: 310px;
  padding: 9px;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 54px rgba(0,0,0,.25), var(--shadow-ring);
}
.store-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 9px; font-size: 12px; }
.store-panel-head button { border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; }
.store-option {
  display: grid;
  grid-template-columns: auto 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 10px;
  cursor: pointer;
}
.store-option:hover { background: #f1f3ed; }
.store-option input { position: absolute; opacity: 0; pointer-events: none; }
.store-swatch {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--store-color);
  font: 700 11px/1 var(--mono);
}
.store-option span:nth-child(3) { display: flex; flex-direction: column; min-width: 0; }
.store-option strong { font-size: 12px; }
.store-option small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-option i { width: 17px; height: 17px; border: 1px solid #b9bdb6; border-radius: 5px; }
.store-option input:checked ~ i { border-color: var(--forest); background: var(--lime); box-shadow: inset 0 0 0 4px var(--lime), inset 0 0 0 6px var(--forest); }
.search-button {
  height: 52px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #eaf2e6;
  background: #315b43;
  font-size: 13px;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease;
}
.search-button:hover { transform: translateY(-1px); background: #3c6b50; }
.search-button:active { transform: translateY(1px); }
.search-button:disabled { opacity: .55; cursor: wait; transform: none; }
.search-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.form-error { margin: 12px 5px 0; color: #ffc7b7; font-size: 12px; }
.examples { margin-top: 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.examples > span { margin-right: 2px; color: var(--muted); font: 700 10px/1 var(--mono); text-transform: uppercase; }
.examples button {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.47);
  color: #3f443c;
  font-size: 11px;
}
.examples button:hover { border-color: var(--forest); background: #fff; }

.category-browser {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
}
.category-intro { padding: 20px 0; }
.category-intro .eyebrow { justify-content: flex-start; margin-bottom: 16px; }
.category-intro h2 { margin: 0; font-size: 46px; line-height: .96; letter-spacing: -.06em; }
.category-intro h2 em { color: var(--lime); font-style: normal; }
.category-intro > p:last-child { color: var(--muted); font-size: 13px; max-width: 270px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.category-card {
  min-height: 210px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 7px 7px 0 rgba(167,237,120,.05);
}
.category-card.featured { grid-row: span 2; min-height: 430px; background: #11150f; color: #f1f8ed; border-color: rgba(167,237,120,.35); }
.category-card-top { display: flex; justify-content: space-between; color: var(--muted); font: 700 10px/1 var(--mono); }
.category-card-top i { padding: 6px; border: 1px solid currentColor; font-style: normal; color: var(--lime); }
.category-card h3 { margin: auto 0 5px; font-size: 24px; letter-spacing: -.04em; }
.category-card.featured h3 { margin-top: 62px; font-size: 44px; }
.category-card p { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.category-models { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.category-models button { padding: 7px 9px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #dbe5d6; font: 600 10px/1 var(--mono); }
.category-models button:hover { color: #0d110d; background: var(--lime); }
.browse-all { width: 100%; padding: 11px 0 4px; display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; text-align: left; font: 700 10px/1.2 var(--mono); }
.featured .browse-all { border-color: rgba(255,255,255,.16); color: var(--lime); }

.cost-ribbon {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 70px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.48);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.35fr;
  align-items: center;
  gap: 17px;
}
.cost-ribbon > div { display: flex; align-items: center; gap: 12px; }
.cost-ribbon > i { color: #9ca097; font-style: normal; }
.ribbon-index { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e4e7df; font: 700 10px/1 var(--mono); }
.cost-ribbon p { margin: 0; display: flex; flex-direction: column; }
.cost-ribbon strong { font-size: 12px; }
.cost-ribbon small { color: var(--muted); font-size: 10px; }
.ribbon-total { padding: 11px 14px; border-radius: 13px; background: var(--lime-soft); }
.ribbon-total .ribbon-index { color: var(--forest); background: var(--lime); font-size: 13px; }

.loading-state {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 100px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.loading-state > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.loading-state strong { font-size: 15px; }
.loading-state span { color: var(--muted); font-size: 12px; }
.scanner { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.scanner::before, .scanner::after { content:''; position:absolute; background: var(--line-strong); }
.scanner::before { width:1px; height:100%; left:50%; }
.scanner::after { height:1px; width:100%; top:50%; }
.scanner i { position:absolute; inset:4px; border-radius:50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(167,237,120,.8)); animation: scan 1.2s linear infinite; }
@keyframes scan { to { transform: rotate(360deg); } }

.results {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 100px;
  padding-top: 18px;
}
.results-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.results-heading .eyebrow { justify-content: flex-start; margin-bottom: 10px; }
.results-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.06em; }
.results-meta { display: flex; align-items: center; gap: 13px; color: var(--muted); font: 400 10px/1 var(--mono); }
.results-meta button { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 8px 11px; font: 700 10px/1 var(--mono); }
.status-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.product-selection {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(167,237,120,.35);
  border-radius: 16px;
  background: #c9ff8f;
  color: #102108;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-selection > div { display: flex; flex-direction: column; gap: 3px; }
.product-selection small { font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.product-selection strong { font-size: 14px; }
.product-selection span { font-size: 11px; opacity: .75; }
.product-selection button, .compare-product {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 10px;
  color: inherit;
  background: transparent;
  font: 700 9px/1 var(--mono);
  white-space: nowrap;
}
.status-card { min-width: 0; padding: 13px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-ring); }
.status-card-top { display: flex; justify-content: space-between; gap: 7px; align-items: center; }
.status-card strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.status-card i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #9fa39c; }
.status-card p { margin: 7px 0 0; color: var(--muted); font: 400 9px/1.4 var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.status-card.available i { background: #3c9b50; box-shadow: 0 0 0 3px rgba(60,155,80,.12); }
.status-card.empty i { background: #a8aaa5; }
.status-card.blocked i { background: var(--yellow); }
.status-card.error i { background: var(--red); }
.results-layout { display: grid; grid-template-columns: 335px minmax(0, 1fr); gap: 18px; align-items: start; }
.basket-plan { position: sticky; top: 18px; border-radius: 24px; background: #11140f; color: #f7f8f4; overflow: hidden; }
.basket-head { padding: 23px 23px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.basket-head span { color: #8d9388; font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.basket-head h3 { margin: 7px 0 0; font-size: 24px; line-height: 1.1; letter-spacing: -.04em; }
.basket-total { padding: 22px 23px; background: var(--lime); color: var(--forest); }
.basket-total small { display: block; font: 700 9px/1 var(--mono); text-transform: uppercase; }
.basket-total strong { display: block; margin-top: 6px; font-size: 41px; line-height: 1; letter-spacing: -.055em; }
.basket-total p { margin: 8px 0 0; font-size: 10px; opacity: .7; }
.basket-stores { padding: 10px 17px 17px; }
.basket-store { padding: 13px 6px; border-bottom: 1px solid rgba(255,255,255,.09); }
.basket-store:last-child { border: 0; }
.basket-store-top, .basket-breakdown { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.basket-store-top strong { font-size: 12px; }
.basket-store-top span { font: 700 12px/1 var(--mono); color: var(--lime); }
.basket-breakdown { margin-top: 6px; color: #8d9388; font-size: 9px; }
.basket-lines { padding: 0 23px 20px; }
.basket-line { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 7px 0; align-items: start; font-size: 10px; }
.basket-line b { color: var(--lime); font: 700 9px/1.5 var(--mono); }
.basket-line span { color: #c1c5bd; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.basket-line strong { font: 700 10px/1.5 var(--mono); }
.basket-warning { margin: 17px; padding: 15px; border-radius: 13px; background: rgba(245,217,92,.12); color: #f4e7a5; font-size: 11px; }
.recommendation-detail { padding: 20px 23px 24px; }
.recommendation-detail > span { color: var(--lime); font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.recommendation-detail > strong { display: block; margin: 9px 0 8px; color: #fff; font-size: 15px; line-height: 1.4; letter-spacing: -.01em; }
.recommendation-detail > p { margin: 0 0 17px; color: #aeb8aa; font-size: 11px; line-height: 1.55; }
.recommendation-detail button { width: 100%; padding: 12px; display: flex; justify-content: space-between; border: 1px solid var(--lime); background: transparent; color: var(--lime); font: 700 10px/1 var(--mono); }
.item-results { display: grid; gap: 14px; }
.item-group { border-radius: 22px; background: #fff; box-shadow: var(--shadow-ring); overflow: hidden; }
.item-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.item-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.item-number { width: 35px; height: 35px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #ecefe7; font: 700 10px/1 var(--mono); }
.item-title p { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.item-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-title small { color: var(--muted); font-size: 10px; }
.offer-count { flex: none; padding: 6px 9px; border-radius: 999px; background: var(--lime-soft); color: var(--forest); font: 700 9px/1 var(--mono); }
.offer-list { padding: 4px 12px 10px; }
.offer-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 115px 125px auto; gap: 13px; align-items: center; min-height: 78px; padding: 9px 6px; border-bottom: 1px solid #eef0eb; }
.offer-row.is-out { opacity: .66; }
.offer-row:last-child { border-bottom: 0; }
.offer-image { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #f2f4ef; }
.offer-image.placeholder { display: grid; place-items: center; color: #a3a79e; font: 700 12px/1 var(--mono); }
.offer-main { min-width: 0; }
.offer-main strong { display: block; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-main p { margin: 5px 0 0; display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 9px; }
.store-name { color: var(--ink); font-weight: 700; }
.stock { display: inline-flex; align-items: center; gap: 4px; }
.stock::before { content:''; width: 5px; height: 5px; border-radius: 50%; background: #3c9b50; }
.stock.out::before { background: var(--red); }
.stock.unknown::before { background: #d6a91f; }
.offer-native { color: var(--muted); font: 400 9px/1.45 var(--mono); }
.offer-price { text-align: right; }
.offer-price strong { display: block; font-size: 17px; letter-spacing: -.04em; }
.offer-price small { display: block; color: var(--muted); font-size: 8px; }
.offer-link { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: var(--lime); text-decoration: none; font-weight: 700; }
.offer-link:hover { transform: scale(1.07); }
.offer-actions { display: flex; align-items: center; gap: 7px; }
.compare-product { color: var(--forest); border-color: var(--line-strong); }
.compare-product:hover { background: var(--lime-soft); }
.no-offers { padding: 25px 20px; color: var(--muted); font-size: 12px; }
.no-offers strong { color: var(--ink); }

footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 110px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}
footer div { display: flex; gap: 12px; align-items: baseline; }
footer strong { color: var(--ink); font-size: 14px; }
footer p { text-align: right; }

dialog {
  width: min(850px, calc(100% - 32px));
  border: 0;
  border-radius: 28px;
  padding: 33px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
}
dialog::backdrop { background: rgba(11,14,9,.72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 20px; }
dialog .eyebrow { justify-content: flex-start; margin-bottom: 12px; }
dialog h2 { max-width: 570px; margin: 0 0 26px; font-size: 38px; line-height: 1; letter-spacing: -.055em; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.method-grid article > span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); font: 700 10px/1 var(--mono); }
.method-grid h3 { margin: 14px 0 5px; font-size: 14px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef4e9;
  --muted: #9ca69a;
  --paper: #0d110d;
  --surface: #151a14;
  --line: rgba(224,240,216,.13);
  --line-strong: rgba(224,240,216,.26);
  --lime-soft: #243b1c;
  --forest: #d6ffc0;
  --shadow-ring: 0 0 0 1px var(--line);
}
html[data-theme="dark"] .grid-noise { opacity: .55; }
html[data-theme="dark"] .query-field { background: #171d16; }
html[data-theme="dark"] .query-field textarea { color: var(--ink); }
html[data-theme="dark"] .query-field textarea::placeholder { color: #687166; }
html[data-theme="dark"] kbd { border-color: #3b4439; background: #20271f; }
html[data-theme="dark"] .store-panel,
html[data-theme="dark"] .loading-state,
html[data-theme="dark"] .status-card,
html[data-theme="dark"] .item-group { background: var(--surface); }
html[data-theme="dark"] .store-option:hover { background: #20271f; }
html[data-theme="dark"] .examples button,
html[data-theme="dark"] .cost-ribbon { background: rgba(255,255,255,.035); color: var(--muted); }
html[data-theme="dark"] .examples button:hover { background: #1b211a; }
html[data-theme="dark"] .ribbon-index,
html[data-theme="dark"] .item-number { background: #242b22; }
html[data-theme="dark"] .offer-row { border-bottom-color: rgba(224,240,216,.08); }
html[data-theme="dark"] .offer-image { background: #20271f; }
html[data-theme="dark"] .basket-plan,
html[data-theme="dark"] .search-console { background: #080b08; }
html[data-theme="dark"] dialog { background: var(--surface); }

@media (max-width: 1000px) {
  .status-board { grid-template-columns: repeat(3, 1fr); }
  .results-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .offer-row { grid-template-columns: 45px minmax(0,1fr) 105px 31px; }
  .offer-native { display: none; }
  .cost-ribbon { grid-template-columns: 1fr 1fr; }
  .cost-ribbon > i { display:none; }
}

@media (max-width: 760px) {
  .site-header, .hero, .cost-ribbon, .results, footer { width: min(100% - 28px, 100%); }
  .site-header { height: 66px; }
  .header-meta .live-dot { display:none; }
  .hero { padding-top: 55px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-copy { font-size: 15px; margin-top: 24px; }
  .search-console { padding: 11px; border-radius: 23px; }
  .query-field { padding: 16px 15px 10px; }
  .query-field textarea { font-size: 18px; min-height: 88px; }
  .query-hint kbd, .query-hint kbd + span { display:none; }
  .search-settings { grid-template-columns: 1fr 1fr; }
  .search-button { grid-column: 1 / -1; }
  .store-panel { right: 0; left: auto; width: min(340px, calc(100vw - 36px)); }
  .examples { justify-content: flex-start; }
  .category-browser { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 8px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card.featured { grid-row: auto; min-height: 350px; }
  .cost-ribbon { grid-template-columns: 1fr; margin-bottom: 50px; }
  .cost-ribbon > div:not(.ribbon-total) { display:none; }
  .results-heading { align-items:flex-start; gap: 17px; flex-direction: column; }
  .status-board { display: flex; overflow-x: auto; padding: 1px 1px 8px; scroll-snap-type:x mandatory; }
  .status-card { flex: 0 0 145px; scroll-snap-align:start; }
  .results-layout { grid-template-columns: 1fr; }
  .basket-plan { position:relative; top:auto; }
  .basket-stores { display:grid; grid-template-columns:repeat(2,1fr); gap:0 12px; }
  .offer-row { grid-template-columns: 42px minmax(0,1fr) 90px 29px; gap:9px; }
  .offer-image { width:40px; height:40px; }
  .offer-price strong { font-size:14px; }
  footer { padding: 25px 0; flex-direction:column; align-items:flex-start; }
  footer p { text-align:left; margin:0; }
  .method-grid { grid-template-columns:1fr; }
}

@media (max-width: 440px) {
  .header-meta .text-button { font-size: 11px; }
  .hero { width: calc(100% - 20px); padding-top: 42px; }
  .hero h1 { letter-spacing:-.07em; }
  .search-settings { grid-template-columns:1fr; }
  .search-button { grid-column:auto; }
  .store-panel { left:0; right:auto; }
  .examples button:nth-of-type(2) { display:none; }
  .results { width:calc(100% - 20px); }
  .basket-stores { grid-template-columns:1fr; }
  .offer-row { grid-template-columns: 38px minmax(0,1fr) 29px; }
  .offer-price { grid-column:2; text-align:left; margin-top:-13px; }
  .offer-link { grid-column:3; grid-row:1 / span 2; }
  .item-header { padding:13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
