:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d687b;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --border: #d9e1ec;
  --primary: #0b5cab;
  --primary-dark: #08467f;
  --notice: #edf6ff;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Arial, sans-serif; line-height: 1.45; }
button, input { font: inherit; }
.site-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.25rem max(1.25rem, calc((100% - 1180px) / 2)); background: var(--surface); border-bottom: 1px solid var(--border); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.45rem; }
h2 { margin-bottom: 0; font-size: 1.2rem; }
h3 { margin: 1.5rem 0 .75rem; font-size: 1rem; }
.eyebrow { margin-bottom: .2rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.account-actions { display: flex; align-items: center; gap: .75rem; }
main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.panel, .notice { margin-bottom: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: .65rem; }
.notice { background: var(--notice); }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.inline-form { display: grid; grid-template-columns: auto minmax(15rem, 1fr) auto; gap: .75rem; align-items: center; margin-top: 1rem; }
label { font-weight: 700; }
input { min-width: 0; padding: .65rem .75rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: .4rem; }
button { padding: .65rem .9rem; cursor: pointer; border: 1px solid transparent; border-radius: .4rem; font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .6; }
.primary { color: #fff; background: var(--primary); }
.primary:hover { background: var(--primary-dark); }
.secondary { color: var(--primary); background: #fff; border-color: var(--primary); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; margin-top: 1rem; border-collapse: collapse; min-width: 720px; }
th, td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
td.serials, td.description { white-space: pre-line; }
dl.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
dt { color: var(--muted); font-size: .82rem; }
dd { margin: .2rem 0 0; white-space: pre-line; }
.error { color: var(--danger); }

@media (max-width: 720px) {
  .site-header, .section-heading, .account-actions { align-items: flex-start; flex-direction: column; }
  .inline-form { grid-template-columns: 1fr; }
  dl.facts { grid-template-columns: 1fr; }
}
