:root {
  color-scheme: light;
  --pine: #162f28;
  --ink: #1d2b25;
  --paper: #f5f3e9;
  --surface: #fffefa;
  --line: #d9ded2;
  --quiet: #515d53;
  --lime: #d9ed87;
  --warn: #f9eacb;
  --focus: #2f6f54;
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", Verdana, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font: 15px/1.5 var(--body); min-height: 100vh;
  background: radial-gradient(ellipse at top right, #e7ecd8 0, transparent 50%), var(--paper);
}
a { color: var(--pine); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.top :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; top: 8px; left: 8px; transform: translateY(-160%); z-index: 3; padding: .6rem 1rem; background: var(--surface); }
.skip:focus { transform: none; }
.top { color: var(--surface); background: var(--pine); border-bottom: 4px solid var(--lime); }
.bar, .layout, .footer { width: min(100% - 48px, 1340px); margin-inline: auto; }
.bar { min-height: 73px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: bold; letter-spacing: .16em; line-height: 1.1; }
.brand small { display: block; color: #c2d3c3; font: 10px/1.5 var(--mono); letter-spacing: .13em; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--pine); background: var(--lime); font: bold 25px/1 var(--display); border-radius: 0 14px 0 14px; }
.bar nav { display: flex; gap: 4px; align-items: center; }
.bar nav a, .exit button { color: #e0e9dd; display: inline-block; text-decoration: none; padding: .46rem .75rem; }
.bar nav a[aria-current] { color: var(--lime); border-bottom: 2px solid var(--lime); }
.exit { margin-left: auto; }
.exit button { background: none; border: 1px solid #658277; border-radius: 4px; }
.layout { padding-top: clamp(2rem, 5vw, 4.5rem); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 290px); align-items: end; gap: 32px; margin-bottom: 2rem; }
.kicker, .footer { margin: 0; font: 700 12px/1.35 var(--mono); letter-spacing: .105em; }
.kicker { color: var(--quiet); }
h1, h2 { margin: 0; line-height: 1.03; font-family: var(--display); font-weight: 500; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { margin-block: .45rem .55rem; font-size: clamp(2.9rem, 7.4vw, 6.1rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.65rem); }
.lede { margin: 0; color: var(--quiet); max-width: 65ch; }
.snapshot { border-left: 3px solid var(--focus); background: #eef1e3; padding: .8rem 1rem .9rem; overflow-wrap: anywhere; }
.snapshot strong, .snapshot span { display: block; }
.snapshot strong { margin-top: .3rem; font: 700 clamp(.95rem, 2vw, 1.25rem)/1.4 var(--mono); }
.snapshot span { color: var(--quiet); font-size: .8rem; }
.filters {
  display: grid; grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(9rem, 1fr)) auto; gap: .75rem;
  align-items: end; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--pine);
}
.product-filters { grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(9rem, 1fr)) auto auto; }
label { display: block; font-size: .83rem; font-weight: bold; }
input, select, button { font: inherit; }
input:not([type=checkbox]), select { width: 100%; min-width: 0; padding: .64rem .65rem; margin-top: .28rem; border: 1px solid #a6b0a3; border-radius: 4px; background: #fff; color: var(--ink); }
input::placeholder { color: #626c65; }
.check { align-self: end; min-height: 42px; display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.check input { accent-color: var(--pine); }
button { cursor: pointer; }
.button { color: var(--surface); background: var(--pine); border: 1px solid var(--pine); border-radius: 4px; font-weight: bold; padding: .64rem .95rem; }
.button:hover { background: #2c4a3d; }
.filter-actions { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.filter-actions a { font-size: .8rem; }
.results { background: var(--surface); border: 1px solid var(--line); margin-top: 1.3rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #edf0e6; padding: .75rem .95rem; color: #344338; font: bold 12px/1.4 var(--mono); letter-spacing: .05em; }
td { border-top: 1px solid var(--line); padding: .8rem .95rem; vertical-align: top; overflow-wrap: anywhere; }
tr:hover td { background: #f7f8ef; }
.product-link { font-weight: bold; }
.code, .amount, .date { font-family: var(--mono); }
.code, .muted { display: block; color: var(--quiet); font-size: .8rem; }
.amount { font-weight: bold; }
.date { white-space: nowrap; font-size: .8rem; }
.badge { display: inline-block; padding: .12rem .4rem; margin-top: .25rem; color: #244d36; background: #e6efda; border-radius: 4px; font-size: .78rem; }
.date + .badge, .product-link + .badge { display: table; }
.badge.warn { background: var(--warn); color: #69400a; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: .7rem .95rem; border-top: 1px solid var(--line); color: var(--quiet); font: 12px/1.4 var(--mono); gap: 12px; }
.pager div { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.pager a { padding-block: .2rem; }
.empty { margin-top: 1.3rem; padding: 2.1rem 1.5rem; background: var(--surface); border: 1px dashed #899580; }
.empty p { margin-bottom: 0; color: var(--quiet); }
.detail-grid, .gate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.detail, .gate-form { padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); }
.detail h2, .gate-form h2 { margin-top: .5rem; }
.detail dl { display: grid; grid-template-columns: minmax(90px, 42%) 1fr; gap: .55rem 1rem; margin-block: 1.15rem; }
.detail dt { font-weight: bold; font-size: .85rem; }
.detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: .65rem; }
.attention { margin-bottom: 1rem; padding: .9rem 1rem; background: #faf2e1; border-left: 3px solid #9c6615; }
.attention .badge { margin-right: .3rem; }
.gate { max-width: 880px; margin: 1.2rem auto 3rem; align-items: stretch; gap: 0; }
.gate-intro { background: var(--pine); color: var(--surface); padding: clamp(1.4rem, 4vw, 3.2rem); }
.gate-intro .kicker { color: var(--lime); }
.gate-intro h1 { font-size: clamp(3rem, 6vw, 5.7rem); }
.gate-intro p:last-child { color: #d4e0d3; }
.gate-form label { margin-top: .85rem; }
.gate-form .button { margin-top: 1rem; width: 100%; }
.alert { padding: .7rem; background: var(--warn); color: #623d10; }
.footer { display: flex; justify-content: space-between; margin-top: 3rem; padding: 1rem 0 2rem; color: var(--quiet); border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .product-filters { grid-template-columns: minmax(12rem, 2fr) repeat(2, minmax(8rem, 1fr)); }
}
@media (max-width: 760px) {
  .bar, .layout, .footer { width: calc(100% - 28px); }
  .bar { min-height: 62px; gap: .65rem; flex-wrap: wrap; padding-block: .55rem; }
  .brand { gap: .35rem; letter-spacing: .06em; }
  .mark { width: 28px; height: 28px; font-size: 20px; }
  .brand small { display: none; }
  .bar nav a, .exit button { font-size: .82rem; padding: .46rem .42rem; }
  .intro, .detail-grid, .gate { grid-template-columns: 1fr; gap: 1rem; }
  .filters, .product-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters label:first-child { grid-column: 1 / -1; }
  .filter-actions { flex-wrap: wrap; }
  .results table, .results tbody, .results tr, .results td { display: block; }
  .results thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .results tr { padding: .75rem; }
  .results tr + tr { border-top: 1px solid var(--line); }
  .results td { border: none; padding: .22rem 0; }
  .results td:not(:first-child) { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: .4rem; }
  .results td:not(:first-child)::before { content: attr(data-label); color: var(--quiet); font: bold 11px/1.6 var(--mono); }
  .results td:not(:first-child) > * { grid-column: 2; }
  .date + .badge, .product-link + .badge { display: inline-block; justify-self: start; }
  .footer { gap: .75rem; font-size: 10px; }
}
