:root {
  color-scheme: light;
  --ink: #17232c;
  --muted: #667782;
  --line: #dbe4e8;
  --canvas: #f4f7f8;
  --panel: #fff;
  --accent: #007f73;
  --alert: #a75000;
  --danger-bg: #fff2e5;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
header { background: #102a30; color: #fff; padding: 18px 0; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #102a30; background: #a3e4dc; }
nav { display: flex; gap: 18px; margin-top: 13px; font-size: 14px; }
nav a { color: #c7dcdd; text-decoration: none; }
nav a[aria-current="page"] { color: #fff; font-weight: 700; }
main { padding: 28px 0 48px; }
h1 { font-size: 28px; letter-spacing: -.035em; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0; }
.lede, .muted { color: var(--muted); }
.toolbar, .grid { display: grid; gap: 14px; }
.toolbar { grid-template-columns: 1.15fr 1fr 1fr auto; margin: 24px 0 16px; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 650; }
select, input { border: 1px solid #becdd3; border-radius: 7px; background: #fff; color: var(--ink); padding: 8px 10px; font: inherit; }
button { border: 0; border-radius: 7px; background: var(--accent); color: #fff; padding: 9px 14px; font: inherit; font-weight: 700; cursor: not-allowed; opacity: .6; }
.notice { border: 1px solid #efc18d; border-radius: 9px; background: var(--danger-bg); color: #713c09; padding: 13px 15px; margin: 16px 0; }
.notice strong { display: block; }
.grid { grid-template-columns: repeat(4, 1fr); }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.card { padding: 15px; }
.card dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.card dd { margin: 4px 0 0; font-size: 23px; font-weight: 750; letter-spacing: -.03em; }
.panel { margin-top: 16px; overflow: hidden; }
.panel-title { padding: 15px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.badge { display: inline-block; border-radius: 99px; padding: 3px 9px; font-size: 12px; font-weight: 750; background: #e5f3f1; color: #005b52; }
.badge.incomplete { background: #fff0df; color: #9b4b00; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #fbfcfc; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.product { font-weight: 700; }
.small { font-size: 12px; }
.actions { display: flex; gap: 9px; align-items: center; }
.ghost { background: #e7efef; color: #284246; }
.placeholder { margin-top: 16px; color: var(--muted); font-size: 13px; }
.footnote { margin-top: 14px; color: var(--muted); font-size: 12px; }
.row-link { color: var(--accent); font-weight: 750; text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.clickable-row:hover td { background: #f2faf8; }
.clickable-row { cursor: pointer; }
.clickable-row:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--accent); font-weight: 700; text-decoration: none; }
.notice.info { border-color: #a8d8d2; background: #edf9f7; color: #174f49; }
.detail-stats { grid-template-columns: repeat(2, minmax(180px, 280px)); margin-top: 16px; }
.detail-search { display: grid; gap: 6px; max-width: 440px; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.minmax { font-weight: 750; color: #244d4a; }
.recommended { font-weight: 800; color: var(--accent); }
tr[hidden] { display: none; }
@media (max-width: 780px) {
  .toolbar, .grid { grid-template-columns: 1fr 1fr; }
  .panel { overflow-x: auto; }
  table { min-width: 760px; }
}
@media (max-width: 500px) { .toolbar, .grid { grid-template-columns: 1fr; } }
