* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:#f5f7fa;
  color:#203148;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
}
.header {
  background:white;
  border-bottom:1px solid #dce3eb;
  padding:20px max(24px,calc((100% - 1080px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:20px;
  font-weight:700;
  white-space:nowrap;
}
.mark {
  background:#234b55;
  color:white;
  border-radius:9px;
  padding:7px 10px;
  font-size:16px;
}
.version {
  font-weight:400;
  color:#5a687a;
}
.environment {
  font-size:12px;
  background:#f0f3f6;
  color:#526074;
  border:1px solid #dce3eb;
  border-radius:20px;
  padding:4px 12px;
}
main {
  max-width:1080px;
  margin:auto;
  padding:55px 24px;
}
h1 {
  font-size:clamp(30px,5vw,48px);
  letter-spacing:-1.5px;
  line-height:1.2;
  margin:12px 0 20px;
}
h2 {
  font-size:23px;
  line-height:1.3;
}
h3 {
  font-size:19px;
  margin:16px 0 8px;
}
p {
  margin:12px 0;
}
.eyebrow {
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  color:#376b72;
}
.lead {
  max-width:620px;
  font-size:18px;
  color:#526074;
}
.panel {
  margin:36px 0 40px;
  padding:28px 32px;
  background:white;
  border:1px solid #dce3eb;
  border-left:4px solid #376b72;
  border-radius:10px;
}
.badge {
  font-size:12px;
  font-weight:600;
  color:#275d4e;
  background:#eaf4ef;
  border-radius:5px;
  padding:5px 9px;
}
.muted {
  color:#5a687a;
  font-size:14px;
}
.section-title {
  font-size:20px;
}
.cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.cards article {
  padding:24px;
  background:white;
  border:1px solid #dce3eb;
  border-radius:10px;
}
.cards p {
  font-size:15px;
  color:#526074;
}
.number {
  font-size:12px;
  font-weight:700;
  color:#376b72;
}
.roadmap {
  margin-top:16px;
}
footer {
  max-width:1080px;
  margin:auto;
  padding:0 24px 30px;
  font-size:12px;
  color:#5a687a;
}
.skip-link {
  position:absolute;
  left:20px;
  top:-100px;
  background:white;
  padding:10px;
  color:#203148;
}
.skip-link:focus {
  top:8px;
  z-index:1;
}
a:focus-visible {
  outline:3px solid #376b72;
  outline-offset:3px;
}
@media(max-width:700px) {
  main {
    padding-top:32px;
  }
  .cards {
    grid-template-columns:1fr;
  }
  .panel {
    padding:24px;
  }
  .header {
    padding:16px 20px;
  }
  .environment {
    font-size:11px;
  }
}
a {
  color:#285c67;
}
a.brand {
  text-decoration:none;
  color:#203148;
}
nav {
  display:flex;
  align-items:center;
  gap:16px;
  font-size:14px;
}
nav form {
  margin:0;
}
button,.button {
  display:inline-block;
  background:#234b55;
  color:#fff;
  border:1px solid #234b55;
  border-radius:6px;
  padding:10px 16px;
  text-decoration:none;
  font:inherit;
  font-weight:600;
  cursor:pointer;
}
.secondary {
  background:white;
  color:#234b55;
  border-color:#bacbd1;
}
.form-panel {
  max-width:560px;
  background:white;
  border:1px solid #dce3eb;
  border-radius:10px;
  padding:32px;
  margin:0 auto;
}
.form-panel h1 {
  font-size:32px;
}
.form-panel label {
  display:block;
  font-weight:600;
  margin-bottom:6px;
}
.form-panel input:not([type=checkbox]),.form-panel select {
  width:100%;
  padding:11px;
  border:1px solid #9aaabc;
  border-radius:5px;
  font:inherit;
  background:white;
}
.form-panel input[type=checkbox] {
  width:20px;
  height:20px;
}
.helptext {
  display:block;
  color:#526074;
  font-size:13px;
  margin-top:5px;
}
.form-panel ul {
  font-size:13px;
  padding-left:20px;
}
.errorlist {
  color:#9c2630;
}
.notice {
  padding:14px 20px;
  background:#eaf4ef;
  border:1px solid #bfd7ca;
  border-radius:6px;
  margin-bottom:24px;
}
.actions {
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  margin:24px 0;
}
.table-wrap {
  overflow-x:auto;
  background:white;
  border:1px solid #dce3eb;
  border-radius:8px;
  margin-top:28px;
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
}
th,td {
  padding:16px;
  border-bottom:1px solid #e7ebef;
}
th {
  background:#eef3f6;
  font-size:14px;
}
td {
  font-size:14px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
dt {
  font-weight:600;
}
dd {
  margin:0 0 18px;
}
input:focus-visible,select:focus-visible,button:focus-visible {
  outline:3px solid #376b72;
  outline-offset:3px;
}
@media(max-width:700px) {
  .header {
    flex-wrap:wrap;
  }
  nav {
    gap:12px;
  }
  .form-panel {
    padding:24px;
  }
  th,td {
    padding:12px;
  }
}

nav { flex-wrap: wrap; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-heading h1 { margin-top: 0; }
.inventory-summary { display: flex; gap: 20px; margin: 28px 0; }
.inventory-summary > div { display: flex; align-items: center; gap: 18px; padding: 18px 24px; background: white; border: 1px solid #dce3eb; border-radius: 8px; }
.summary-number { font-size: 32px; font-weight: 700; line-height: 1.2; color: #234b55; }
.filter-panel { padding: 22px; background: white; border: 1px solid #dce3eb; border-radius: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.filter-field label, .inventory-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.filter-field input:not([type=checkbox]), .filter-field select, .inventory-field input:not([type=checkbox]), .inventory-field select, .inventory-field textarea { width: 100%; border: 1px solid #9aaabc; border-radius: 5px; padding: 10px 12px; font: inherit; background: white; }
.checkbox-field input[type=checkbox] { width: 20px; height: 20px; accent-color: #234b55; }
.filter-actions { display: flex; gap: 16px; align-items: center; }
.item-link { font-weight: 600; }
.cell-note { display: block; font-size: 12px; color: #526074; margin-top: 4px; }
.stock-cell { white-space: nowrap; }
.status-tag { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #eaf4ef; color: #275d4e; font-size: 12px; font-weight: 600; margin: 2px 4px 2px 0; white-space: nowrap; }
.status-tag.warning { background: #fff2d7; color: #805300; }
.status-tag.danger { background: #fbecef; color: #9c2630; }
.status-tag.neutral { background: #edf0f4; color: #526074; }
.empty-state { padding: 28px; text-align: center; }
.empty-state h2 { margin: 0 0 12px; font-size: 20px; }
.pagination { justify-content: center; gap: 24px; margin: 24px 0; }
.inventory-form { max-width: 900px; }
.form-section { border: 1px solid #dce3eb; background: white; padding: 24px; border-radius: 8px; margin: 28px 0; }
.form-section legend { font-size: 20px; font-weight: 600; padding: 0 8px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.inventory-field { min-width: 0; }
.required-label { display: block; font-size: 11px; color: #526074; margin-bottom: 6px; }
.stock-overview { display: flex; align-items: center; gap: 36px; padding: 24px; border: 1px solid #dce3eb; border-radius: 8px; background: white; margin: 28px 0; }
.stock-overview > div { display: flex; flex-direction: column; gap: 5px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.detail-grid dd { margin-bottom: 0; }
.record-text, td { overflow-wrap: anywhere; }
.record-history { padding-left: 20px; color: #526074; }
.archive-notice { background: #edf0f4; border-color: #dce3eb; }
@media (max-width: 700px) {
  .page-heading, .inventory-summary { flex-direction: column; align-items: stretch; }
  .filter-panel, .field-grid, .detail-grid { grid-template-columns: 1fr; }
  .stock-overview { flex-wrap: wrap; gap: 24px; }
  .header { align-items: flex-start; }
  .header nav { width: 100%; }
}
