:root {
  --wine: #721f37;
  --wine-dark: #3c101c;
  --wine-soft: #f0dde2;
  --ink: #201d1b;
  --muted: #706a64;
  --paper: #f4efe5;
  --card: #fffdf8;
  --line: #ddd3c3;
  --green: #2f684d;
  --shadow: 0 18px 60px rgba(55, 34, 24, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 4%, rgba(114, 31, 55, 0.09), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--wine); }
button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }

.site-header {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(60, 16, 28, 0.14);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50% 50% 45% 55%;
  background: var(--wine-dark);
  color: white;
  font: 700 12px/1 Georgia, serif;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}
.brand-mark + span { transform: translateY(-1px); }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.site-header nav form { margin: 0; }
.site-header nav button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.site-header nav button:hover { color: var(--wine); }
.nav-identity { max-width: 170px; overflow: hidden; color: var(--wine-dark); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

main { min-height: 70vh; }
.landing-page {
  background:
    radial-gradient(circle at 80% 24%, rgba(114, 31, 55, 0.15), transparent 30rem),
    linear-gradient(135deg, #f6f0e6 0%, #f1e8dc 55%, #eadde0 100%);
}
.landing-page main { min-height: auto; }
.landing {
  position: relative;
  width: min(1320px, calc(100% - 40px));
  min-height: calc(100svh - 78px - 86px);
  margin: 0 auto;
  padding: clamp(34px, 5vh, 70px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
}
.landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -9vw;
  bottom: 4%;
  width: 20vw;
  height: 20vw;
  border: 1px solid rgba(114, 31, 55, 0.12);
  border-radius: 50%;
}
.landing h1 {
  max-width: 850px;
  margin: 0;
  font: 600 clamp(54px, 6.2vw, 94px)/0.91 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}
.landing h1 em { color: var(--wine); font-weight: 500; }
.landing-lead {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.45;
}
.landing-points {
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.landing-points li {
  padding: 7px 11px;
  border: 1px solid rgba(114, 31, 55, 0.18);
  border-radius: 100px;
  color: var(--wine-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.access-panel {
  overflow: hidden;
  border: 1px solid rgba(60, 16, 28, 0.16);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 28px 90px rgba(55, 34, 24, 0.14);
  backdrop-filter: blur(12px);
}
.beta-note {
  padding: 17px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  background: rgba(114, 31, 55, 0.05);
}
.beta-note span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.beta-note strong { color: var(--wine); font: 600 29px/1 Georgia, serif; }
.beta-note small { grid-column: 1 / -1; margin-top: 2px; color: var(--muted); }
.access-form { padding: 25px 24px 22px; }
.access-form h2 { margin: -7px 0 21px; font: 600 29px/1 Georgia, serif; letter-spacing: -0.025em; }
.access-hint { margin: -10px 0 18px; color: var(--muted); font-size: 12px; }
.telegram-login { background: #2aabee; }
.telegram-login:hover { background: #229ed9; color: white; }
.legacy-login { border-top: 1px solid var(--line); }
.access-form label, .request-access label { display: block; }
.access-form label > span, .request-access label > span {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.access-form input, .request-access input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #f8f4ed;
}
.access-form input:focus, .request-access input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114, 31, 55, 0.11); }
.access-form button, .request-access button, .button-link {
  width: 100%;
  min-height: 47px;
  margin-top: 12px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: var(--wine);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.access-form button:hover, .request-access button:hover, .button-link:hover { background: var(--wine-dark); color: white; }
.request-access { border-top: 1px solid var(--line); }
.request-access summary {
  padding: 17px 24px;
  color: var(--wine);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style-position: inside;
}
.request-access[open] summary { border-bottom: 1px solid var(--line); }
.request-access form, .request-access > .form-message { margin: 0; padding: 18px 24px 22px; }
.request-access label + label { margin-top: 11px; }
.request-access button { justify-content: center; }
.request-access form > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; text-align: center; }
.form-message { margin: 10px 0 0; font-size: 12px; }
.form-message--error { color: #963d3d; }
.form-message--success { color: var(--green); }
.form-message strong { display: block; margin-bottom: 3px; }
.website-field { position: absolute; left: -10000px; }
.hero {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) 0 clamp(34px, 4.5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: end;
}
.eyebrow { margin: 0 0 14px; color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
.hero h1 {
  max-width: 980px;
  margin: 0;
  white-space: nowrap;
  font: 600 clamp(34px, 5.2vw, 70px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}
.method-hero h1 {
  max-width: 980px;
  margin: 0;
  font: 600 clamp(48px, 7.2vw, 106px)/0.91 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}
.lead { max-width: 730px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }
.hero-stats { margin: 0; display: grid; gap: 14px; }
.hero-stats div { padding: 20px 0; border-top: 1px solid var(--line); }
.hero-stats dt { color: var(--wine-dark); font: 600 clamp(28px, 3vw, 42px)/1 Georgia, serif; }
.hero-stats dd { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.hero-stats-timing { margin-top: 14px; padding-top: 12px; display: grid; gap: 4px; border-top: 1px solid rgba(51, 40, 37, .1); font-size: 10px; line-height: 1.4; }

.catalog { padding: clamp(34px, 5vw, 70px) max(20px, calc((100vw - 1440px) / 2)) 80px; background: rgba(255, 253, 248, 0.64); border-top: 1px solid var(--line); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.catalog-heading h2 { margin: 0; font: 600 clamp(30px, 4vw, 52px)/1 Georgia, serif; letter-spacing: -0.035em; }
.method-link { color: var(--wine); font-size: 14px; font-weight: 700; }
.catalog-tabs {
  display: inline-flex;
  gap: 4px;
  margin: -5px 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 253, 248, .72);
}
.catalog-tabs a {
  padding: 9px 17px;
  border-radius: 100px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.catalog-tabs a:hover { color: var(--wine-dark); }
.catalog-tabs a.is-active {
  background: var(--wine);
  color: white;
  box-shadow: 0 7px 18px rgba(114, 31, 55, .18);
}
.catalog-tabs a:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.filters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.filters label, .filter-field { min-width: 0; }
.filter-field > span, .filter-field > label, .choice-field summary > span {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.filters input:not([type="checkbox"]), .filters select {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  outline: none;
  background: #f5f1e9;
  color: var(--ink);
}
.filters input:focus, .filters select:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114, 31, 55, 0.12); }
.choice-field {
  position: relative;
  min-width: 0;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}
.choice-field summary { list-style: none; cursor: pointer; }
.choice-field summary::-webkit-details-marker { display: none; }
.choice-field summary strong {
  position: relative;
  display: flex;
  width: 100%;
  height: 43px;
  padding: 0 32px 0 11px;
  align-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f5f1e9;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.choice-field summary strong::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}
.choice-field[open] summary strong { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114, 31, 55, 0.12); }
.choice-field[open] summary strong::after { transform: translateY(2px) rotate(225deg); }
.choice-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 7px);
  left: 0;
  width: max(100%, 210px);
  max-height: 270px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(55, 34, 24, 0.16);
}
.choice-menu label {
  display: flex;
  min-height: 38px;
  padding: 7px 8px;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  cursor: pointer;
}
.choice-menu label:hover { background: #f5f1e9; }
.choice-menu input { width: 17px; height: 17px; accent-color: var(--wine); }
.choice-menu label span { color: var(--ink); font-size: 13px; }
.wine-only.is-dissolving { opacity: 0; filter: blur(6px); transform: scale(0.94); pointer-events: none; }
.wine-only[hidden] { display: none; }
.check-field { grid-column: span 2; display: flex; align-items: center; gap: 9px; min-height: 40px; padding-left: 4px; color: var(--muted); font-size: 14px; }
.check-field input { width: 18px; height: 18px; accent-color: var(--wine); }
.filter-actions {
  grid-column: -3 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.filter-actions button {
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: var(--wine);
  color: white;
  font-weight: 750;
}
.filter-actions button:hover { background: var(--wine-dark); }
.filter-actions button:disabled { cursor: wait; opacity: .72; }
.reset-link { align-self: center; justify-self: center; color: var(--muted); font-size: 13px; }
.search-control { position: relative; }
.search-suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  left: 0;
  width: min(520px, 88vw);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(55, 34, 24, 0.16);
}
.search-suggestions[hidden] { display: none; }
.suggestion {
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.suggestion:hover, .suggestion.is-active { background: #f5f1e9; color: var(--wine-dark); }
.suggestion small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.search-summary { min-height: 20px; margin: -10px 2px 20px; color: var(--muted); font-size: 12px; }
.catalog.is-loading [data-results] { opacity: .5; transition: opacity 160ms ease; }

.offer-list { overflow: visible; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.offer-card {
  display: grid;
  grid-template-columns: 112px 145px minmax(280px, 2fr) minmax(165px, 0.9fr) minmax(165px, 0.9fr);
  gap: 18px;
  min-height: 138px;
  padding: 23px 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.offer-card:first-child { border-radius: 19px 19px 0 0; }
.offer-card:last-child { border-bottom: 0; border-radius: 0 0 19px 19px; }
.offer-card:only-child { border-radius: 19px; }
.offer-card:hover { background: #fbf6ed; }
.offer-card--find { background: linear-gradient(90deg, rgba(183, 139, 58, .075), transparent 24%); box-shadow: inset 3px 0 #b78b3a; }
.offer-card--find:hover { background: linear-gradient(90deg, rgba(183, 139, 58, .13), #fbf6ed 35%); }
.deal-cell strong { display: block; color: var(--green); font: 600 30px/1 Georgia, serif; letter-spacing: -0.03em; }
.deal-cell strong.advertised { color: var(--wine); }
.deal-cell span, .price-cell small, .condition-cell small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.price-cell strong { display: block; font-size: 20px; letter-spacing: -0.02em; }
.price-cell s { color: var(--muted); font-size: 13px; }
.fair-price-explainer { position: relative; z-index: 4; display: block; width: fit-content; margin-top: 6px; color: var(--muted); font-size: 11px; }
.fair-price-trigger { display: inline-block; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.fair-price-trigger__label { padding-bottom: 1px; border-bottom: 1px dotted currentColor; }
.fair-price-popover { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: none; width: min(320px, calc(100vw - 54px)); padding: 13px 14px; border: 1px solid rgba(114, 31, 55, .22); border-radius: 11px; background: #fffdf8; box-shadow: 0 16px 42px rgba(55, 34, 24, .2); color: var(--muted); font-size: 11px; line-height: 1.45; }
.fair-price-popover strong, .fair-price-popover span { display: block; }
.fair-price-popover strong { margin-bottom: 7px; color: var(--wine-dark); font: 600 15px/1.1 Georgia, serif; }
.fair-price-popover span + span { margin-top: 6px; }
.fair-price-popover b { color: var(--ink); }
.fair-price-explainer:hover .fair-price-popover, .fair-price-explainer:focus-within .fair-price-popover, .fair-price-explainer.is-open .fair-price-popover { display: block; }
.fair-price-explainer:hover, .fair-price-explainer:focus-within, .fair-price-explainer.is-open { z-index: 30; }
.fair-price-trigger:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; border-radius: 3px; }
.foreign-reference { display: block; margin-top: 10px; color: var(--green); font-size: 11px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.foreign-reference small { margin-top: 2px; font-weight: 400; }
.eu-warning { display: inline-block; margin-top: 7px; padding: 4px 7px; border-radius: 7px; background: #f8e3e3; color: #963d3d; font-size: 10px; font-weight: 750; }
.product-cell { min-width: 0; }
.finding-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.finding-badge { display: inline-flex; min-height: 22px; padding: 4px 8px; align-items: center; border-radius: 100px; font-size: 9px; font-weight: 850; letter-spacing: .055em; line-height: 1.15; text-transform: uppercase; }
.finding-badge--find { background: #f4e5bd; color: #6c4b0f; box-shadow: inset 0 0 0 1px rgba(145, 102, 27, .2); }
.finding-badge--class { background: #e4f1e9; color: var(--green); box-shadow: inset 0 0 0 1px rgba(43, 104, 76, .18); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tags span { padding: 3px 7px; border-radius: 100px; background: var(--wine-soft); color: var(--wine-dark); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.product-cell h3 { margin: 0; font: 600 18px/1.28 Georgia, serif; }
.product-cell h3 a { text-decoration-thickness: 1px; text-decoration-color: rgba(114, 31, 55, 0.3); }
.product-cell p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.product-cell .finding-explanation { max-width: 720px; margin-top: 11px; padding-left: 10px; border-left: 2px solid rgba(183, 139, 58, .55); color: #66594d; font-size: 11px; line-height: 1.5; }
.finding-explanation strong { color: var(--ink); }
.finding-strength-legend { margin: 0 0 24px; overflow: hidden; border: 1px solid rgba(145, 102, 27, .24); border-radius: 18px; background: linear-gradient(135deg, #fffaf0, #fffdf8 62%); box-shadow: 0 12px 35px rgba(73, 50, 25, .06); }
.finding-strength-legend > summary { display: flex; min-height: 72px; padding: 17px 20px; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; }
.finding-strength-legend > summary::-webkit-details-marker { display: none; }
.finding-strength-legend > summary small, .finding-strength-legend > summary strong { display: block; }
.finding-strength-legend > summary small { margin-bottom: 4px; color: #92702d; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.finding-strength-legend > summary strong { font: 600 22px/1.1 Georgia, serif; }
.finding-strength-toggle { position: relative; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: rgba(145, 102, 27, .1); }
.finding-strength-toggle::before, .finding-strength-toggle::after { content: ""; position: absolute; top: 13px; left: 8px; width: 12px; height: 2px; border-radius: 2px; background: #795b20; transition: transform 160ms ease; }
.finding-strength-toggle::after { transform: rotate(90deg); }
.finding-strength-legend[open] .finding-strength-toggle::after { transform: rotate(0); }
.finding-strength-body { padding: 4px 20px 22px; border-top: 1px solid rgba(145, 102, 27, .14); }
.finding-strength-intro { max-width: 880px; margin: 19px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.finding-strength-intro strong { color: var(--ink); }
.finding-strength-equation { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.finding-strength-equation span { padding: 8px 10px; border-radius: 9px; background: #f5ead2; color: #674d1c; font-size: 11px; font-weight: 750; }
.finding-strength-equation b { color: #a4823d; font-size: 18px; }
.finding-strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.finding-strength-grid article { padding: 15px; border: 1px solid rgba(51, 40, 37, .08); border-radius: 12px; background: rgba(255, 255, 255, .62); }
.finding-strength-grid h3 { margin: 0 0 7px; font: 600 16px/1.15 Georgia, serif; }
.finding-strength-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.finding-strength-example { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(280px, 1.35fr); gap: 18px 28px; margin-top: 12px; padding: 18px; border-radius: 13px; background: var(--wine-dark); color: #fff8f4; }
.finding-strength-example .eyebrow { color: #e6bdc9; }
.finding-strength-example h3 { margin: 8px 0 0; font: 600 25px/1 Georgia, serif; }
.finding-strength-example dl { margin: 0; }
.finding-strength-example dl div { display: flex; padding: 6px 0; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.finding-strength-example dt, .finding-strength-example dd { font-size: 10px; line-height: 1.4; }
.finding-strength-example dt { color: rgba(255, 248, 244, .72); }
.finding-strength-example dd { margin: 0; color: #fff; font-weight: 850; white-space: nowrap; }
.finding-strength-example > p { grid-column: 1 / -1; margin: 0; color: rgba(255, 248, 244, .72); font-size: 11px; line-height: 1.45; }
.finding-strength-notes { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 10px; line-height: 1.45; }
.finding-strength-notes li { position: relative; max-width: 340px; padding-left: 12px; }
.finding-strength-notes li::before { content: ""; position: absolute; top: .55em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #b78b3a; }
.profile-shell > .finding-strength-legend { margin-bottom: 22px; }
.rating-reference { margin-top: 9px; font-size: 11px; }
.rating-reference a { color: var(--wine); font-weight: 750; text-decoration: none; }
.rating-reference small { display: block; margin-top: 2px; color: var(--muted); }
.shop-cell strong { display: block; margin-bottom: 7px; }
.shop-cell a { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.store-locations summary { color: var(--wine); font-size: 12px; font-weight: 750; cursor: pointer; }
.store-locations ul { margin: 8px 0 0; padding: 0; list-style: none; }
.store-locations li + li { margin-top: 5px; }
.store-locations small { display: block; color: var(--muted); font-size: 10px; }
.no-store-stock { color: var(--muted); font-size: 12px; }
.shop-cell .availability-source { margin-top: 8px; font-size: 11px; }
.market-offers { margin: 0 0 9px; }
.market-offers summary { color: var(--wine); font-size: 11px; font-weight: 750; cursor: pointer; }
.market-offers ul { margin: 7px 0 0; padding: 0; list-style: none; }
.market-offers li + li { margin-top: 6px; }
.market-offers li a { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; }
.market-offers li a strong { margin: 0; white-space: nowrap; }
.market-offers li small { display: block; color: var(--muted); font-size: 9px; }
.condition { display: inline-block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.condition--public { border-color: #a8c7b7; background: #eaf4ef; color: var(--green); }
.condition--quantity, .condition--bundle { border-color: #d7b98d; background: #f8edda; color: #77501e; }

.empty-state { padding: 80px 30px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.empty-state strong { font: 600 28px/1.2 Georgia, serif; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--wine); font-weight: 750; }

.profile-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(58px, 8vw, 110px) 0 100px; }
.profile-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .65fr); gap: clamp(40px, 8vw, 110px); align-items: end; margin-bottom: 42px; }
.profile-heading h1 { margin: 0; font: 600 clamp(46px, 6vw, 82px)/.94 Georgia, serif; letter-spacing: -.05em; }
.profile-heading h1 em { color: var(--wine); font-weight: 500; }
.profile-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.profile-message, .profile-warning { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.profile-warning { border: 1px solid #d7b98d; background: #fff8e8; color: #77501e; font-size: 13px; line-height: 1.45; }
.profile-warning strong { display: block; margin-bottom: 3px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 22px; align-items: start; }
.profile-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.notification-switch { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.notification-switch > div strong, .notification-switch > div span { display: block; }
.notification-switch > div strong { font: 600 24px/1.1 Georgia, serif; }
.notification-switch > div span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.switch-control { display: grid; grid-template-columns: auto auto; gap: 8px; align-items: center; cursor: pointer; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control > span { position: relative; width: 44px; height: 25px; border-radius: 100px; background: #d8d1c7; transition: background 160ms ease; }
.switch-control > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(51, 40, 37, .2); transition: transform 160ms ease; }
.switch-control input:checked + span { background: var(--wine); }
.switch-control input:checked + span::after { transform: translateX(19px); }
.switch-control input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.switch-control b { color: var(--muted); font-size: 12px; }
.profile-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.profile-fields label > span, .profile-categories legend { display: block; margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.profile-fields input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; outline: none; background: #f5f1e9; color: var(--ink); }
.profile-fields input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(114, 31, 55, .12); }
.profile-fields small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.profile-categories { margin: 26px 0 0; padding: 0; border: 0; }
.profile-categories > p { margin: -2px 0 12px; color: var(--muted); font-size: 11px; }
.profile-categories > div { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-categories label { cursor: pointer; }
.profile-categories input { position: absolute; opacity: 0; pointer-events: none; }
.profile-categories label span { display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 11px; font-weight: 700; }
.profile-categories input:checked + span { border-color: rgba(114, 31, 55, .3); background: var(--wine-soft); color: var(--wine-dark); }
.profile-categories input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.beacon-only { display: flex; gap: 10px; margin-top: 24px; align-items: flex-start; cursor: pointer; }
.beacon-only input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--wine); }
.beacon-only span strong, .beacon-only span small { display: block; }
.beacon-only span strong { font-size: 13px; }
.beacon-only span small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.notification-form > button { width: 100%; min-height: 46px; margin-top: 28px; border: 0; border-radius: 10px; background: var(--wine); color: white; font-weight: 800; }
.notification-form > button:hover { background: var(--wine-dark); }
.delivery-note { position: sticky; top: 88px; background: var(--wine-dark); color: #fff8f4; }
.delivery-note .eyebrow { color: #e6bdc9; }
.delivery-note h2 { margin: 0; font: 600 29px/1.05 Georgia, serif; letter-spacing: -.025em; }
.delivery-note dl { margin: 24px 0; }
.delivery-note dl div { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.delivery-note dt { color: #f0cbd5; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.delivery-note dd { margin: 5px 0 0; color: rgba(255, 248, 244, .72); font-size: 12px; line-height: 1.45; }
.delivery-note > p:not(.eyebrow) { padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .16); }
.delivery-note > p strong, .delivery-note > p span { display: block; }
.delivery-note > p strong { color: #f0cbd5; font-size: 11px; }
.delivery-note > p span { margin-top: 4px; color: rgba(255, 248, 244, .72); font-size: 11px; line-height: 1.4; }
.delivery-note .delivery-error span { color: #ffd1d1; }
.bot-consent { margin-top: 24px; padding: 15px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.bot-consent > strong { font: 600 16px/1 Georgia, serif; }
.bot-consent p { margin: 8px 0 11px; color: rgba(255, 248, 244, .7); font-size: 11px; line-height: 1.45; }
.bot-consent a { color: #ffdbe5; font-size: 12px; font-weight: 800; }

.method-page { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: clamp(65px, 9vw, 126px) 0 100px; }
.method-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .6fr); gap: clamp(44px, 8vw, 110px); align-items: end; }
.method-hero h1 { max-width: 850px; }
.method-hero .lead { max-width: 760px; }
.method-principles { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.method-principles li { padding: 17px 0; display: grid; border-bottom: 1px solid var(--line); }
.method-principles strong { color: var(--wine-dark); font: 600 19px/1.1 Georgia, serif; }
.method-principles span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.method-page h2 { margin: 0; font: 600 clamp(32px, 4.4vw, 56px)/.98 Georgia, serif; letter-spacing: -.035em; }
.method-formula { margin-top: clamp(70px, 10vw, 130px); }
.method-formula-copy { max-width: 720px; margin-bottom: 28px; }
.method-formula-copy > p:last-child { max-width: 600px; color: var(--muted); font-size: 15px; }
.formula-card { padding: clamp(28px, 5vw, 58px); border-radius: 26px; background: var(--wine-dark); color: #fff8f4; box-shadow: 0 28px 80px rgba(60, 16, 28, .2); }
.formula-equation { margin: 0; display: flex; flex-wrap: wrap; gap: .25em .5em; align-items: baseline; font: 500 clamp(25px, 4.4vw, 53px)/1.15 Georgia, serif; letter-spacing: -.035em; }
.formula-equation > span:last-child { color: #f0cbd5; }
.formula-equation b { color: rgba(255, 255, 255, .48); font-weight: 400; }
.formula-equation sub, .benefit-equation sub { font-size: .5em; letter-spacing: 0; }
.formula-legend { margin: 42px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.formula-legend div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.formula-legend dt { color: #f0cbd5; font: 600 17px/1 Georgia, serif; }
.formula-legend dd { margin: 8px 0 0; color: rgba(255, 248, 244, .7); font-size: 12px; line-height: 1.5; }
.formula-notes { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.formula-notes article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 248, .65); }
.formula-notes span, .benefit-label { color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.formula-notes h3 { margin: 28px 0 9px; font: 600 24px/1 Georgia, serif; }
.formula-notes p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.method-explainer, .method-separate { margin-top: clamp(75px, 10vw, 125px); display: grid; grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr); gap: clamp(35px, 7vw, 90px); }
.benefit-comparison { display: grid; gap: 12px; }
.benefit-comparison article { padding: 25px 27px; border: 1px solid rgba(114, 31, 55, .24); border-radius: 17px; background: var(--card); }
.benefit-comparison article + article { border-color: var(--line); background: rgba(255, 253, 248, .45); }
.benefit-label--muted { color: var(--muted); }
.benefit-equation { margin: 23px 0 10px; color: var(--wine-dark); font: 600 clamp(19px, 2.4vw, 28px)/1.15 Georgia, serif; }
.benefit-comparison article > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.method-pipeline { margin-top: clamp(75px, 10vw, 125px); }
.method-section-heading { max-width: 760px; }
.method-section-heading > p:last-child { color: var(--muted); }
.method-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.method-grid article { min-height: 245px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.method-grid article > span { color: var(--wine); font: 600 13px/1 Georgia, serif; }
.method-grid h3 { margin: 66px 0 10px; font: 600 27px/1 Georgia, serif; }
.method-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.separate-grid { display: grid; gap: 14px; }
.separate-grid article { padding: 26px; border-left: 3px solid var(--wine); border-radius: 0 16px 16px 0; background: rgba(255, 253, 248, .65); }
.separate-grid h3 { margin: 0 0 10px; font: 600 25px/1 Georgia, serif; }
.separate-grid p { color: var(--muted); font-size: 14px; }
.separate-grid small { display: block; color: var(--wine-dark); font-size: 11px; font-weight: 700; }
.method-limitations { margin-top: clamp(75px, 10vw, 125px); padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; border-radius: 22px; background: #e9dfd1; }
.method-limitations ul { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.method-limitations li { position: relative; padding-left: 19px; color: var(--muted); font-size: 14px; }
.method-limitations li::before { content: "—"; position: absolute; left: 0; color: var(--wine); }
.status { width: fit-content; padding: 4px 8px; border-radius: 100px; background: #f8e3e3; color: #963d3d; font-size: 11px; font-weight: 750; }
.status--ok { background: #e4f2ea; color: var(--green); }
.back-link { display: inline-block; margin-top: 50px; color: var(--wine); font-weight: 700; }

.admin-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 100px; }
.admin-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.admin-heading h1 { margin: -4px 0 0; font: 600 clamp(44px, 6vw, 76px)/.95 Georgia, serif; letter-spacing: -.045em; }
.admin-heading > p { max-width: 430px; margin: 0; color: var(--muted); }
.admin-subnav { display: flex; gap: 8px; margin-top: 28px; }
.admin-subnav a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.admin-subnav a.active { border-color: var(--wine); background: var(--wine); color: white; }
.admin-subnav strong { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 100px; background: #f8e3e3; color: #963d3d; font-size: 10px; }
.admin-subnav a.active strong { background: white; }
.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 38px 0 18px; }
.admin-stats article { min-height: 112px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.admin-stats strong { color: var(--wine); font: 600 34px/1 Georgia, serif; }
.admin-stats span { color: var(--muted); font-size: 11px; }
.admin-stats--parsing { grid-template-columns: repeat(5, 1fr); }
.admin-stats--matching { grid-template-columns: repeat(6, 1fr); }
.admin-stats--parsing article:last-child { grid-column: span 1; }
.admin-stats--parsing article:last-child strong { font-size: 16px; line-height: 1.15; }
.admin-stat--problem strong { color: #963d3d; }
.admin-card { margin-top: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.admin-section-title { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 22px; }
.admin-section-title h2 { margin: -4px 0 0; font: 600 31px/1 Georgia, serif; }
.admin-section-title > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; }
.matching-queue-help { max-width: 500px; display: grid; justify-items: end; gap: 10px; }
.matching-queue-help p { margin: 0; color: var(--muted); font-size: 12px; }
.invite-form { display: grid; grid-template-columns: 2fr 150px 160px 190px; gap: 10px; align-items: end; }
.invite-form label > span, .invite-result label > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.invite-form input, .invite-result input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8f4ed; }
.invite-form button { height: 44px; border: 0; border-radius: 9px; background: var(--wine); color: white; font-weight: 750; }
.invite-result { margin-bottom: 18px; padding: 16px; border: 1px solid #a8c7b7; border-radius: 12px; background: #eaf4ef; }
.invite-result > strong { display: block; margin-bottom: 10px; color: var(--green); }
.admin-table-wrap { margin-top: 24px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 10px; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 13px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table td > small { margin-top: 3px; color: var(--muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: end; }
.table-action { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--wine); font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-action--danger { color: #963d3d; }
.status--active { background: #e4f2ea; color: var(--green); }
.status--pending { background: #f8edda; color: #77501e; }
.status--used, .status--expired, .status--revoked { background: #f8e3e3; color: #963d3d; }
.status--error { background: #f8e3e3; color: #963d3d; }
.status--completed { background: #e4f2ea; color: var(--green); }
.status--running, .status--idle { background: #f8edda; color: #77501e; }
.status--failed { background: #f8e3e3; color: #963d3d; }
.status--stale, .status--empty, .status--drop { background: #f8edda; color: #77501e; }
.formula-status dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.formula-status dl div { padding: 12px; border-radius: 10px; background: #f8f4ed; }
.formula-status dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.formula-status dd { margin: 5px 0 0; font-size: 13px; }
.formula-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formula-group-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-top: 10px; padding: 10px 2px 2px; border-top: 1px solid var(--line); }
.formula-group-heading:first-child { margin-top: 0; border-top: 0; }
.formula-group-heading strong { color: var(--wine); font-family: var(--display); font-size: 20px; }
.formula-group-heading span { color: var(--muted); font-size: 12px; text-align: right; }
.formula-fields label { display: grid; grid-template-columns: minmax(180px, 1fr) 120px; gap: 6px 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8f2; }
.formula-fields label > span { font-size: 13px; font-weight: 750; }
.formula-fields input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.formula-fields small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.4; }
.formula-form > button { margin-top: 16px; padding: 11px 16px; border: 0; border-radius: 9px; background: var(--wine); color: white; font-weight: 750; }
.formula-form button:disabled, .formula-status button:disabled { cursor: not-allowed; opacity: .5; }
.beacon-form { display: grid; grid-template-columns: 180px minmax(220px, 1fr) 140px; gap: 12px; align-items: end; }
.beacon-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.beacon-form__comment { grid-column: 1 / -1; }
.beacon-form input, .beacon-form select, .beacon-form textarea, .beacon-table input, .beacon-table select, .beacon-table textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.beacon-form textarea, .beacon-table textarea { resize: vertical; }
.beacon-form > button { justify-self: start; padding: 11px 16px; border: 0; border-radius: 9px; background: var(--wine); color: white; font-weight: 750; }
.beacon-table { min-width: 860px; }
.beacon-table td:nth-child(1) { width: 170px; }
.beacon-table td:nth-child(2) { min-width: 300px; }
.beacon-table td:nth-child(3) { width: 110px; }
.beacon-table td:nth-child(4) { width: 100px; }
.beacon-table textarea { display: block; margin-top: 7px; }
.parsing-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.parsing-source { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbf8f2; }
.parsing-source--error { border-color: #dfb8b8; background: #fff7f7; }
.parsing-source--stale, .parsing-source--empty, .parsing-source--drop { border-color: #ddc69f; background: #fffaf1; }
.parsing-source > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.parsing-source dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.parsing-source dl div { min-width: 0; }
.parsing-source dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.parsing-source dd { margin: 4px 0 0; font-size: 12px; }
.parsing-problem { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #963d3d; font-size: 12px; }
.parsing-source--running .parsing-problem { color: var(--muted); }
.parsing-source > small { display: block; margin-top: 8px; color: var(--muted); }
.event-list { margin: 0; padding: 0; list-style: none; }
.event-list li { display: grid; grid-template-columns: 145px 190px 1fr; gap: 14px; padding: 11px 3px; border-top: 1px solid var(--line); font-size: 12px; }
.event-list time, .event-list span { color: var(--muted); }
.matching-list { display: grid; gap: 10px; }
.matching-candidate { display: grid; grid-template-columns: 118px minmax(0, 1fr) minmax(0, 1fr) 140px; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbf8f2; }
.matching-candidate--visual-veto { border-color: #d7b87d; background: #fff9ee; }
.matching-score strong, .matching-score span, .matching-score small { display: block; }
.matching-score strong { color: var(--wine); font: 600 25px/1 Georgia, serif; }
.matching-score span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.matching-score small { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.matching-visual-score { margin: 12px 0 0; display: grid; gap: 3px; }
.matching-visual-score div { display: flex; justify-content: space-between; gap: 6px; padding-top: 3px; border-top: 1px solid var(--line); }
.matching-visual-score dt, .matching-visual-score dd { margin: 0; color: var(--muted); font-size: 9px; }
.matching-visual-score dd { color: var(--ink); font-weight: 750; }
.matching-product { min-width: 0; padding: 12px; border-radius: 10px; background: white; }
.matching-product__visual { min-height: 166px; margin-bottom: 12px; display: grid; place-items: center; }
.matching-image-button { width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: #f8f4ed; color: var(--wine); cursor: zoom-in; }
.matching-image-button:hover, .matching-image-button:focus-visible { border-color: var(--wine); }
.matching-image-button img { width: 100%; height: 142px; object-fit: contain; }
.matching-image-button span { display: block; margin-top: 5px; font-size: 9px; font-weight: 750; }
.matching-image-placeholder { min-height: 142px; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.matching-source { color: var(--wine); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.matching-product h3 { margin: 6px 0; font: 600 17px/1.2 Georgia, serif; }
.matching-product h3 a { text-decoration-thickness: 1px; }
.matching-price { display: block; margin: 9px 0 12px; color: var(--wine-dark); }
.matching-details { margin: 0; display: grid; gap: 3px; }
.matching-details > div { min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 5px 7px; border-radius: 6px; }
.matching-details dt { color: var(--muted); font-size: 9px; }
.matching-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 650; }
.matching-detail--different { background: #fff1d9; }
.matching-detail--vintage dd { color: var(--wine); font-size: 13px; font-weight: 850; }
.matching-product-link { display: inline-block; margin-top: 12px; color: var(--wine); font-size: 10px; font-weight: 750; }
.matching-actions { display: grid; gap: 6px; }
.matching-actions form, .matching-actions button { width: 100%; }
.matching-actions button { padding: 7px 8px; border: 1px solid var(--wine); border-radius: 7px; background: var(--wine); color: white; font-size: 10px; font-weight: 750; }
.matching-actions .table-action { background: transparent; color: var(--wine); }
.matching-actions .table-action--danger { border-color: #dfb8b8; color: #963d3d; }
.matching-image-dialog { width: min(1200px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 24px; border: 0; border-radius: 18px; background: #fffdf8; box-shadow: 0 24px 90px rgba(35, 15, 20, .35); }
.matching-image-dialog::backdrop { background: rgba(24, 10, 14, .84); backdrop-filter: blur(4px); }
.matching-image-dialog__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.matching-image-dialog__header h2 { margin: -4px 0 0; font: 600 34px/1 Georgia, serif; }
.matching-dialog-close { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--wine); font-weight: 750; }
.matching-image-dialog__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.matching-image-dialog figure { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.matching-image-dialog figure > img { width: 100%; height: min(62vh, 680px); object-fit: contain; }
.matching-image-dialog figcaption { margin-top: 12px; display: grid; gap: 4px; }
.matching-image-dialog figcaption span { color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.matching-image-dialog figcaption strong { font: 600 17px/1.25 Georgia, serif; }
.site-footer { padding: 34px max(20px, calc((100vw - 1440px) / 2)); background: var(--wine-dark); color: #f6e9e9; }
.site-footer p { max-width: 900px; margin: 5px 0; font-size: 12px; opacity: .86; }

@media (max-width: 1250px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .search-field { grid-column: span 2; }
  .check-field { grid-column: span 2; }
  .filter-actions { grid-column: span 2; }
  .offer-card { grid-template-columns: 100px 130px minmax(260px, 2fr) minmax(150px, 1fr); }
  .condition-cell { grid-column: 3 / -1; display: flex; gap: 10px; align-items: center; margin-top: -10px; }
  .condition-cell small { margin: 0; }
}

@media (max-width: 800px) {
  .site-header { width: min(100% - 28px, 720px); }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 12px; }
  .site-header nav button { font-size: 12px; }
  .landing { width: min(100% - 28px, 720px); min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 50px 0 60px; }
  .landing h1 { font-size: clamp(50px, 13vw, 76px); }
  .landing-lead { max-width: 620px; }
  .access-panel { width: min(100%, 470px); }
  .hero { width: min(100% - 28px, 720px); grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(34px, 9vw, 54px); }
  .method-hero h1 { font-size: clamp(47px, 14vw, 76px); }
  .hero-stats { width: min(100%, 420px); }
  .hero-stats dt { font-size: 25px; }
  .hero-stats dd { font-size: 12px; }
  .catalog { padding-left: 14px; padding-right: 14px; }
  .catalog-heading { align-items: start; }
  .method-link { max-width: 130px; text-align: right; }
  .filters { grid-template-columns: repeat(2, 1fr); padding: 12px; border-radius: 14px; }
  .search-field { grid-column: 1 / -1; }
  .check-field { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; }
  .offer-list { border: 0; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
  .offer-card {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    margin-bottom: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--card);
    box-shadow: 0 9px 28px rgba(55, 34, 24, 0.06);
  }
  .deal-cell { order: 2; text-align: right; }
  .price-cell { order: 1; }
  .product-cell { order: 3; grid-column: 1 / -1; }
  .shop-cell { order: 4; }
  .condition-cell { order: 5; grid-column: auto; display: block; margin: 0; text-align: right; }
  .condition-cell small { margin-top: 7px; }
  .method-page { width: min(100% - 28px, 720px); }
  .method-hero { grid-template-columns: 1fr; gap: 38px; }
  .method-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 0; }
  .method-principles li { border-top: 1px solid var(--line); }
  .formula-notes { grid-template-columns: 1fr; }
  .formula-notes h3 { margin-top: 20px; }
  .method-explainer, .method-separate { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 190px; }
  .method-grid h3 { margin-top: 42px; }
  .method-limitations { grid-template-columns: 1fr; gap: 30px; }
  .profile-shell { width: min(100% - 28px, 720px); padding-top: 48px; }
  .profile-heading, .profile-layout { grid-template-columns: 1fr; }
  .finding-strength-grid { grid-template-columns: 1fr; }
  .finding-strength-example { grid-template-columns: 1fr; }
  .finding-strength-example > p { grid-column: 1; }
  .profile-heading { gap: 22px; }
  .delivery-note { position: static; }
  .nav-identity { display: none; }
  .admin-shell { width: min(100% - 28px, 720px); padding-top: 42px; }
  .admin-heading, .admin-section-title { display: block; }
  .admin-heading > p, .admin-section-title > p, .matching-queue-help { margin-top: 12px; }
  .matching-queue-help { max-width: none; justify-items: start; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .parsing-source-grid { grid-template-columns: 1fr; }
  .formula-fields { grid-template-columns: 1fr; }
  .formula-group-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .formula-group-heading span { text-align: left; }
  .beacon-form { grid-template-columns: 1fr 1fr; }
  .beacon-form__comment { grid-column: 1 / -1; }
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form label:first-of-type { grid-column: 1 / -1; }
  .event-list li { grid-template-columns: 1fr 1fr; }
  .event-list span { grid-column: 1 / -1; }
  .matching-candidate { grid-template-columns: 108px 1fr 1fr; }
  .matching-actions { grid-column: 2 / -1; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
  .site-header nav { gap: 12px; }
  .landing { padding-top: 38px; }
  .landing h1 { font-size: clamp(45px, 13vw, 62px); }
  .landing-points { gap: 6px; }
  .access-panel { border-radius: 18px; }
  .method-principles { grid-template-columns: 1fr; gap: 0; }
  .formula-card { margin-left: -7px; margin-right: -7px; padding: 25px 22px; border-radius: 18px; }
  .formula-equation { display: grid; }
  .formula-legend { grid-template-columns: 1fr; margin-top: 30px; }
  .benefit-comparison article { padding: 22px 20px; }
  .catalog-heading { display: block; }
  .method-link { display: inline-block; max-width: none; margin-top: 10px; text-align: left; }
  .filters { grid-template-columns: 1fr; }
  .search-field, .check-field { grid-column: 1; }
  .filter-actions { grid-column: 1; }
  .offer-card { grid-template-columns: 1fr; }
  .deal-cell, .condition-cell { text-align: left; }
  .product-cell { grid-column: 1; }
  .condition-cell { grid-column: 1; }
  .site-header nav a[href="/about"] { display: none; }
  .profile-fields { grid-template-columns: 1fr; }
  .finding-strength-legend > summary { min-height: 64px; padding: 14px 15px; }
  .finding-strength-legend > summary strong { font-size: 19px; }
  .finding-strength-body { padding: 2px 14px 17px; }
  .finding-strength-equation { align-items: stretch; flex-direction: column; }
  .finding-strength-equation b { margin: -4px 0; text-align: center; }
  .notification-switch { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-subnav { align-items: stretch; flex-direction: column; }
  .admin-subnav a { justify-content: center; }
  .admin-card { padding: 18px 14px; }
  .formula-status dl { grid-template-columns: 1fr; }
  .formula-fields label { grid-template-columns: 1fr; }
  .formula-fields small { grid-column: 1; }
  .beacon-form { grid-template-columns: 1fr; }
  .beacon-form__comment { grid-column: 1; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form label:first-of-type { grid-column: auto; }
  .matching-candidate { grid-template-columns: 1fr; }
  .matching-actions { grid-column: 1; grid-template-columns: 1fr; }
  .matching-image-dialog { width: calc(100% - 16px); max-height: calc(100% - 16px); padding: 14px; }
  .matching-image-dialog__header { align-items: start; }
  .matching-image-dialog__header h2 { font-size: 27px; }
  .matching-image-dialog__grid { grid-template-columns: 1fr; }
  .matching-image-dialog figure > img { height: min(48vh, 460px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Keep unloaded catalog batches in the scroll geometry without live cards. */
[data-virtual-catalog] { overflow-anchor: none; }
[data-catalog-batch] { display: flow-root; }
[data-virtual-spacer], [data-batch-gap] { pointer-events: none; }
.catalog-progress { position: fixed; bottom: 16px; right: 16px; z-index: 20; max-width: min(90vw, 620px); padding: 8px 16px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; color: var(--muted); }
.catalog-progress button, .catalog-progress a { color: var(--wine); }
.catalog-progress [hidden] { display: none; }

.catalog-progress:has([data-catalog-status]:empty) { display: none; }
