:root {
  color-scheme: dark;
  --background: #171713;
  --panel: #201f1a;
  --border: #39362c;
  --text: #f4eee1;
  --muted: #bdb5a5;
  --gold: #e7bc78;
  --green: #9fcba8;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 5; transform: translateY(-160%); padding: 8px; background: var(--panel); }
.skip:focus { transform: none; }
.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--border); background: #1b1a16; }
.top-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 22px Georgia, serif; text-decoration: none; color: var(--text); }
.brand strong { color: var(--gold); font-weight: normal; }
.region { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 30px; font-size: 13px; white-space: nowrap; }
.region span, .city-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.region span { background: var(--green); }
.region small { color: var(--muted); font: 10px ui-monospace, monospace; }
.intro { position: relative; isolation: isolate; padding: 48px 0 35px; overflow: hidden; }
.intro::after { content: ""; position: absolute; inset: 0 -15%; z-index: -2; background: radial-gradient(ellipse at 73% 48%, #30271a 0%, transparent 53%); opacity: .68; }
.ornament { position: absolute; z-index: -1; width: 280px; right: 38px; top: 1px; color: #b48948; stroke: currentColor; stroke-width: 1; opacity: .3; }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .15em; font-weight: 700; margin: 0 0 11px; }
.eyebrow span { display: inline-block; width: 20px; height: 1px; vertical-align: middle; margin-right: 6px; background: var(--gold); }
h1, h2, h3 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(38px, 6.4vw, 74px); line-height: .98; letter-spacing: -.045em; }
h1 em { font-weight: normal; color: var(--gold); }
.subtitle { max-width: 46ch; color: var(--muted); margin: 16px 0 0; line-height: 1.55; }
.panel { border: 1px solid var(--border); background: var(--panel); border-radius: 14px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(148px, .32fr) auto; align-items: end; gap: 13px; padding: 17px 19px 14px; }
.search-block { position: relative; min-width: 0; }
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
input, select { color: var(--text); background: #171713; border: 1px solid #50483a; border-radius: 8px; width: 100%; min-height: 44px; padding: 8px 12px; }
input::placeholder { color: #a59c8a; opacity: 1; }
input:focus, select:focus { outline: 1px solid var(--gold); outline-offset: 0; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 12px; left: 12px; fill: none; stroke: var(--gold); stroke-width: 1.6; pointer-events: none; }
.search-field input { padding-left: 39px; }
.primary { border: 1px solid #ebc587; border-radius: 8px; padding: 0 17px; background: var(--gold); color: #231a0e; min-height: 44px; font-weight: 750; }
.primary:hover:enabled { background: #f2d09d; }
.search-meta { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; min-height: 26px; font-size: 12px; color: var(--muted); }
.shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip, .text-button { border: 1px solid #494031; border-radius: 25px; color: var(--gold); background: #29241c; padding: 3px 9px; font-size: 12px; }
.chip:hover, .text-button:hover { background: #3e3020; }
.suggestions { position: absolute; z-index: 3; inset: 100% 0 auto; margin: 5px 0 0; padding: 5px; max-height: min(310px, 40dvh); overflow: auto; background: #24211a; border: 1px solid #645339; border-radius: 10px; box-shadow: 0 12px 20px #0007; list-style: none; }
.suggestions li { padding: 8px 9px; border-radius: 5px; overflow-wrap: anywhere; }
.suggestions [role=option] { cursor: pointer; }
.suggestions [role=option]:hover, .suggestions [aria-selected=true] { background: #443522; }
.suggestions strong, .suggestions span { display: block; }
.suggestions span, .item-code { color: var(--muted); font: 11px ui-monospace, monospace; margin-top: 4px; }
.empty { margin-top: 22px; padding: 32px 18px; text-align: center; }
.empty-icon { color: var(--gold); font-size: 30px; margin-bottom: 8px; line-height: 1; }
.empty h2 { font-size: 25px; }
.empty p { margin: 9px auto 0; max-width: 45ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
.feedback { padding: 12px 15px; background: #252018; border: 1px solid #574832; border-radius: 9px; color: var(--gold); margin: 18px 0 0; }
.feedback.error { color: #ffc6bc; background: #31211c; border-color: #6d4036; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 32px 0 15px; }
.section-heading h2 { font-size: clamp(27px, 5vw, 40px); }
.section-heading .eyebrow { margin-bottom: 6px; }
.item-code, .checked { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.checked { font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; }
.metric p, .metric span { margin: 0; color: var(--muted); font-size: 13px; }
.metric strong, .net strong { font-size: clamp(19px, 3vw, 28px); line-height: 1.18; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric.accent { background: #2a2318; border-color: #624c2d; }
.accent strong, .net strong { color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 14px; }
.panel-head { padding: 16px 17px 10px; }
.panel-head h3 { font-size: 24px; }
.panel-head p:not(.eyebrow), .table-note { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
thead { color: var(--muted); background: #25231d; }
th, td { padding: 9px 12px; border-bottom: 1px solid #353127; vertical-align: middle; }
tr > :first-child { padding-left: 17px; }
tbody th { font-weight: 600; }
tbody th small, td time { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; font-weight: normal; }
.city-dot { margin-right: 7px; }
.row-price { font-variant-numeric: tabular-nums; font-weight: 650; }
.buy-row { background: #1c1c18; }
.badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.fresh { color: #b5dcb9; background: #26352a; }
.stale, .undated { color: #f1ce98; background: #3b2e20; }
.missing { color: #c2baac; background: #34312b; }
.table-note { padding: 7px 17px 13px; line-height: 1.5; }
.simulator { padding: 0 17px 16px; }
.simulator .panel-head { padding-inline: 0; }
.simulator .eyebrow { margin-bottom: 6px; }
#route { margin: 0 0 13px; font-size: 14px; color: var(--muted); }
.sim-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sim-inputs label { font-size: 12px; }
.net { display: grid; gap: 4px; background: #292419; border: 1px solid #4e4029; border-radius: 8px; padding: 11px; margin-top: 12px; }
.net span, .net small, .fine-print, .warning { font-size: 12px; color: var(--muted); line-height: 1.5; }
.fine-print, .warning { margin: 10px 0 0; }
.warning { color: #f3c886; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px 18px; padding: 17px 0 23px; margin-top: 23px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.footer p { margin: 0; }
.footer p span { color: var(--gold); }
.footer div { display: flex; gap: 12px; }
.footer a { text-underline-offset: 3px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .detail-grid { grid-template-columns: 1fr; }
  .ornament { width: 220px; right: -16px; top: 22px; opacity: .19; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 24px); }
  .top-inner { min-height: 56px; }
  .brand { font-size: 19px; gap: 5px; }
  .crest { width: 30px; height: 30px; }
  .region { font-size: 11px; padding: 5px 7px; gap: 5px; }
  .intro { padding: 30px 2px 23px; }
  .subtitle { font-size: 14px; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; gap: 10px; }
  .search-block { grid-column: 1 / -1; }
  .primary { padding-inline: 5px; font-size: 13px; }
  .empty { margin-top: 14px; padding: 23px 12px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric { padding: 10px; }
  .metric.accent { grid-column: 1 / -1; }
  th, td { padding-inline: 7px; }
  tr > :first-child { padding-left: 9px; }
  .city-dot { width: 6px; height: 6px; margin-right: 4px; }
  td time { font-size: 10px; }
}
