:root {
  color-scheme: light;
  --ink: #13231f;
  --muted: #66736e;
  --paper: #f5f3ed;
  --panel: #fffefa;
  --line: #dcded7;
  --forest: #153c33;
  --forest-soft: #dce8e1;
  --citrus: #d8f06a;
  --warning: #b6472f;
  --shadow: 0 18px 50px rgba(24, 47, 39, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, #e7eee9 0, var(--paper) 360px); }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.page-shell { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 48px; }
.hero { background: var(--forest); color: white; padding: 34px 38px 38px; border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 320px; height: 320px; right: -75px; top: -165px; border: 1px solid rgba(216,240,106,.35); border-radius: 50%; box-shadow: 0 0 0 55px rgba(216,240,106,.045), 0 0 0 110px rgba(216,240,106,.025); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; font-weight: 750; text-transform: uppercase; opacity: .88; }
.eyebrow-mark { width: 26px; height: 6px; background: var(--citrus); display: inline-block; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 56px; position: relative; z-index: 1; }
.status-kicker, .section-label { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--citrus); }
.hero h1 { margin: 0; font-size: clamp(34px, 5vw, 70px); letter-spacing: -.05em; line-height: .98; overflow-wrap: anywhere; }
.hero-subtitle { margin: 18px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }
.event-stamp { min-width: 190px; padding: 17px 18px; border-top: 1px solid rgba(255,255,255,.25); text-align: right; }
.event-stamp span { display: block; font-size: 10px; letter-spacing: .18em; color: var(--citrus); margin-bottom: 6px; }
.event-stamp strong { font-size: 14px; font-weight: 650; }

.summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.summary-card { padding: 24px 26px 22px; min-height: 138px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.summary-card:last-child { border-right: 0; }
.summary-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.summary-value { font-size: 34px; line-height: 1; margin: 15px 0 10px; letter-spacing: -.04em; }
.summary-note { color: #8a938f; font-size: 11px; margin-top: auto; }

.detail-panel { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.section-label { color: #60766d; }
.search-box input { width: min(360px, 40vw); height: 44px; border: 1px solid #ccd2cd; background: #f8f8f4; border-radius: 2px; padding: 0 14px; color: var(--ink); outline: none; }
.search-box input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(21,60,51,.1); }

.store-filters { display: flex; gap: 8px; padding: 18px 30px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; border: 1px solid #cbd2cd; background: transparent; color: #4c5a55; padding: 10px 12px; border-radius: 2px; cursor: pointer; transition: .16s ease; }
.filter-button b { min-width: 24px; padding: 2px 6px; background: #e8ebe7; color: #56615d; font-size: 11px; border-radius: 20px; }
.filter-button:hover { border-color: var(--forest); }
.filter-button.active { background: var(--forest); color: white; border-color: var(--forest); }
.filter-button.active b { background: var(--citrus); color: var(--ink); }
.result-note { padding: 13px 30px; color: var(--muted); font-size: 12px; background: #f8f8f4; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th { color: #72807a; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f8f8f4; }
td { padding: 17px 18px; border-bottom: 1px solid #e6e7e1; vertical-align: middle; font-size: 13px; }
tbody tr:hover { background: #f7f9f5; }
tbody tr:last-child td { border-bottom: 0; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.sku-cell strong { display: block; font-size: 13px; letter-spacing: .01em; }
.product-cell { color: #4d5a55; max-width: 260px; }
.difference { color: var(--warning); font-weight: 750; }
.store-cell { display: flex; flex-wrap: wrap; gap: 6px; min-width: 260px; }
.store-badge, .warning-dot { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; background: var(--forest-soft); color: #29483f; font-size: 10px; font-weight: 750; border-radius: 2px; }
.warning-dot { margin-top: 6px; background: #f8ded8; color: #993923; }
.store-badge-warning { background: #f8ded8; color: #993923; }
.empty-state { padding: 66px 30px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 8px; color: var(--muted); font-size: 13px; }

footer { display: flex; justify-content: space-between; gap: 20px; color: #7b8681; font-size: 11px; padding: 18px 2px 0; }
.landing { width: min(720px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.landing .eyebrow { color: var(--forest); }
.landing h1 { font-size: clamp(40px, 9vw, 74px); letter-spacing: -.055em; line-height: .95; margin: 36px 0 18px; }
.landing p { color: var(--muted); font-size: 16px; }
.error-code { color: #82908a; font-size: 12px; letter-spacing: .2em; font-weight: 800; }

@media (max-width: 980px) {
  .page-shell { width: min(100% - 28px, 900px); padding-top: 18px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-card { border-bottom: 1px solid var(--line); }
  .summary-card:nth-child(even) { border-right: 0; }
  .summary-card:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 680px) {
  body { background: var(--paper); }
  .page-shell { width: 100%; padding: 0 0 32px; }
  .hero { border-radius: 0; padding: 24px 20px 28px; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 45px; gap: 28px; }
  .hero h1 { font-size: 38px; }
  .event-stamp { text-align: left; padding-left: 0; min-width: 0; }
  .summary-grid, .detail-panel { border-left: 0; border-right: 0; }
  .summary-card { min-height: 126px; padding: 21px 20px; }
  .summary-value { font-size: 30px; }
  .panel-heading { align-items: stretch; flex-direction: column; padding: 24px 20px 18px; }
  .search-box input { width: 100%; }
  .store-filters { padding: 14px 20px; }
  .result-note { padding: 11px 20px; }
  .table-wrap { overflow: visible; }
  table, thead, tbody, tr, td { display: block; min-width: 0; }
  thead { display: none; }
  tbody { padding: 0 14px 14px; }
  tbody tr { background: white; border: 1px solid var(--line); margin-top: 12px; padding: 14px 16px; }
  td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #ecece7; text-align: left !important; }
  td::before { content: attr(data-label); color: #7d8883; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
  td:last-child { border-bottom: 0; }
  .store-cell { min-width: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); }
  .store-cell::before { grid-row: 1 / span 20; }
  .store-badge { margin-right: 4px; }
  footer { flex-direction: column; padding: 18px 20px 0; }
}
