:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #152521;
  background: #f3f6f4;
  --ink: #152521;
  --muted: #495e54;
  --green: #175c47;
  --border: #d1ded6;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
.top { background: #102e26; color: #fff; }
.top-inner, main { width: min(100%, 42rem); margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; }
.brand { font-size: .95rem; font-weight: 780; letter-spacing: .14em; text-decoration: none; }
.text-button { min-height: 2.75rem; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: .875rem; }
main { padding-block: clamp(1.75rem, 6vw, 3.25rem) 3rem; }
.intro { margin-bottom: 1.25rem; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.9rem, 7vw, 2.65rem); letter-spacing: -.045em; line-height: 1.08; }
.intro p { color: var(--muted); margin-top: .6rem; }
.warehouse-code { margin-left: .35rem; font-size: .875rem; font-weight: 650; }
.card { background: #fff; padding: 1rem; border: 1px solid var(--border); border-radius: .875rem; }
.card + .card, .card + .notice { margin-top: 1rem; }
.search label { display: block; margin-bottom: .45rem; font-weight: 650; }
.search-controls { display: flex; gap: .5rem; }
.search input:not([type=hidden]) { flex: 1; min-width: 0; min-height: 3rem; border: 1px solid #9bafa5; border-radius: .5rem; padding: .6rem .7rem; color: var(--ink); }
.search input::placeholder { color: #61736a; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1rem; border: 1px solid var(--green); border-radius: .5rem; background: var(--green); color: white; text-decoration: none; font-weight: 700; cursor: pointer; }
.primary:hover { background: #104a38; }
:focus-visible { outline: 3px solid #166ba2; outline-offset: 3px; }
.sign-in p { margin-bottom: 1rem; }
.notice { margin-block: .7rem; padding: .75rem; border: 1px solid #e6cf98; border-radius: .5rem; background: #fff8e8; color: #583b0f; overflow-wrap: anywhere; }
.product-head { margin-bottom: 1rem; }
.sku { color: var(--green); font-family: ui-monospace, monospace; font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
h2 { margin-block: .25rem .4rem; font-size: clamp(1.2rem, 4.5vw, 1.55rem); line-height: 1.2; overflow-wrap: anywhere; }
.product-head p, footer, small { color: var(--muted); }
.available { display: grid; gap: .2rem; background: #e5f2eb; border-radius: .65rem; padding: .9rem 1rem; }
.available span { font-weight: 650; }
.available strong { font-size: clamp(2.35rem, 9vw, 3.5rem); color: #104a38; line-height: 1.05; font-variant-numeric: tabular-nums; }
.available small, .order-list small { font-size: .875rem; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.summary > div { border: 1px solid var(--border); border-radius: .55rem; padding: .7rem; }
.summary dt { font-size: .9rem; color: var(--muted); }
.summary dd { font-weight: 750; font-size: 1.35rem; margin-top: .2rem; }
details { border-top: 1px solid var(--border); }
summary { cursor: pointer; padding-block: .85rem; font-weight: 650; color: var(--green); }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list li { display: flex; justify-content: space-between; gap: .65rem; padding-block: .65rem; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.order-list small, .match small { display: block; margin-top: .25rem; }
.order-list li > span { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
footer { border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .65rem; font-size: .875rem; }
.related-formats { margin: .75rem 0 0; padding: 0; list-style: none; }
.related-formats li { border-top: 1px solid var(--border); padding: .9rem 0 0; }
.related-formats h3 { margin: .25rem 0; font-size: 1rem; overflow-wrap: anywhere; }
.related-formats p { color: var(--muted); }
.related-formats .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.related-formats .summary > div { padding: .55rem .4rem; }
.related-formats .summary dt { font-size: .875rem; overflow-wrap: anywhere; }
.related-formats .related-available { background: #e5f2eb; color: var(--green); }
.match { width: 100%; text-align: left; padding: .7rem; margin-top: .45rem; cursor: pointer; border-radius: .5rem; border: 1px solid var(--border); color: var(--ink); background: #f5faf7; }
@media (max-width: 360px) { .search-controls { flex-direction: column; } .order-list li { flex-direction: column; } }
