:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --ink: #111827;
  --muted: #5d6678;
  --panel: #ffffff;
  --line: #d9dee8;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b42318;
  --warning: #9a6700;
  --success: #047857;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  background:
    linear-gradient(90deg, rgba(12, 20, 33, 0.86), rgba(12, 20, 33, 0.58)),
    url("https://images.unsplash.com/photo-1556745757-8d76bdb6984b?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  font-weight: 780;
}

.brand {
  margin-right: auto;
  font-size: 1.05rem;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow,
.section-label {
  color: #7dd3c7;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.lookup-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  padding: clamp(22px, 4vw, 34px);
}

.lookup-panel label {
  display: block;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 10px;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.lookup-row input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  padding: 0 16px;
  text-transform: uppercase;
}

.lookup-row button {
  min-height: 58px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 22px;
}

.sheet-status {
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0;
  padding: 12px;
  background: #eef1f6;
}

.sheet-status.success {
  background: #ecfdf5;
  color: var(--success);
}

.sheet-status.warning {
  background: #fffbeb;
  color: var(--warning);
}

.sheet-status.error {
  background: #fef3f2;
  color: var(--danger);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.result-shell {
  margin-top: -72px;
  position: relative;
}

.result-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.1);
  min-height: 260px;
  padding: clamp(24px, 5vw, 42px);
}

.result-card.found {
  border-top: 7px solid var(--success);
}

.result-card.not-found {
  border-top: 7px solid var(--danger);
}

.result-card.empty {
  border-top: 7px solid var(--accent);
}

.result-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.result-note {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.result-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.code-pill,
.category-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  font-weight: 900;
}

.code-pill {
  background: #dff7f3;
  color: var(--accent-strong);
}

.category-pill {
  background: #eef1f6;
  color: var(--muted);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}

.price-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
}

.price-box span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.price-box strong {
  display: block;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
}

.price-box.official {
  background: #ecfdf5;
}

.price-box.official strong {
  color: var(--success);
}

.price-box.promoter {
  background: #fff7ed;
}

.price-box.promoter strong {
  color: #c2410c;
}

.quote-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ed;
  padding: clamp(18px, 4vw, 28px);
}

.quote-box label {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.quote-row input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 850;
  min-height: 54px;
  padding: 0 12px;
  width: 100%;
}

.quote-row button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 54px;
  padding: 0 16px;
}

.quote-result {
  border-radius: 8px;
  display: grid;
  gap: 6px;
  line-height: 1.45;
  margin-bottom: 28px;
  padding: 16px;
}

.quote-result.empty {
  background: #eef1f6;
  color: var(--muted);
}

.quote-result.ok {
  background: #ecfdf5;
  color: var(--success);
}

.quote-result.caution {
  background: #fffbeb;
  color: var(--warning);
}

.quote-result.danger {
  background: #fef3f2;
  color: var(--danger);
}

.details {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}

.details div {
  display: contents;
}

.details dt {
  color: var(--muted);
  font-weight: 850;
}

.details dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.recent {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.recent h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.recent-list {
  display: grid;
  gap: 10px;
}

.recent-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  text-align: left;
}

.recent-item span {
  color: var(--accent-strong);
  font-weight: 900;
}

.recent-item strong {
  overflow-wrap: anywhere;
}

.recent-item em {
  color: var(--success);
  font-style: normal;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .result-shell {
    margin-top: -28px;
  }

  .lookup-row,
  .quote-row,
  .recent,
  .recent-item {
    grid-template-columns: 1fr;
  }

  .lookup-row button,
  .quote-row button {
    width: 100%;
  }

  .details,
  .price-grid {
    grid-template-columns: 1fr;
  }
}
