:root {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #172539;
  background: #f2f5f9;
  --line: #d6deea;
  --muted: #4a5b70;
  --blue: #084c9b;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #142741; color: #fff; border-bottom: 4px solid #ca2339; }
.bar, main { width: min(96%, 1500px); margin-inline: auto; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: .8rem 0; }
.brand { color: #fff; font-weight: 750; text-decoration: none; }
header nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
header nav a { color: #e5eefc; }
main { padding: clamp(1.15rem, 3vw, 2.4rem) 0 2.5rem; }
.home { max-width: 1000px; }
h1, h2, h3 { line-height: 1.16; }
h1 { margin: 0 0 .45rem; font-size: clamp(1.65rem, 4vw, 2.45rem); }
h2 { font-size: 1.3rem; margin-top: 0; }
h3 { font-size: 1.08rem; }
p { margin: .55rem 0 .95rem; }
a { color: var(--blue); text-underline-offset: .15em; }
.panel, .table-scroll { background: white; border: 1px solid var(--line); border-radius: .75rem; }
.panel { padding: clamp(.85rem, 2vw, 1.35rem); margin-block: 1.25rem; }
.muted, small { color: var(--muted); }
.grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fields { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem 1.05rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
.toggle { display: flex; align-items: center; gap: .45rem; font-weight: 500; }
input, select, button { font: inherit; }
select, input[type="search"] { width: 100%; min-width: 9rem; border: 1px solid #8494aa; border-radius: .4rem; min-height: 2.65rem; background: #fff; color: inherit; padding: .38rem .55rem; }
input[type="search"] { min-width: min(16rem, 100%); }
button, .button { display: inline-block; font: inherit; font-weight: 650; color: white; background: var(--blue); border: 1px solid var(--blue); border-radius: .45rem; padding: .45rem .8rem; cursor: pointer; text-decoration: none; }
button:disabled, select:disabled { opacity: .55; cursor: default; }
.secondary { background: white; color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: .9rem; }
.table-scroll { overflow: auto; max-height: 70vh; margin-block: .6rem 1rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .91rem; }
th, td { padding: .48rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { position: sticky; top: 0; background: #e5edf7; z-index: 1; }
tbody tr:nth-child(even) { background: #f8fafc; }
tbody tr.changed { background: #fff4bd; }
tbody tr:hover { background: #e9f2ff; }
.number { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.center { text-align: center; }
.accessories td:nth-child(2) { min-width: 14rem; }
.accessories td:last-child, .parts td:last-child { min-width: 11rem; }
.accessories td:nth-child(2) small, .jp { display: block; padding-top: .14rem; }
.jp { color: var(--muted); font-size: .83em; overflow-wrap: anywhere; }
[hidden], .jp[hidden] { display: none; }
.docs { min-width: 8.5rem; }
.doc { display: inline-block; padding: .1rem .25rem; white-space: nowrap; }
details { border-top: 1px solid var(--line); padding: .65rem 0; }
summary { cursor: pointer; font-weight: 650; }
.diagram { display: block; max-width: 100%; max-height: 29rem; margin: .6rem 0; }
.doc-preview { max-width: 28rem; width: 100%; }
.noscript { border-left: 4px solid #ca2339; padding-left: 1rem; }
@media print {
  header, .actions, .fields, .toolbar, .toggle { display: none; }
  body, .panel, .table-scroll { background: white; border: 0; }
  .table-scroll { overflow: visible; max-height: none; }
  thead th { position: static; }
  main { width: 100%; padding: 0; }
}
.disk-query { flex: 1 1 16rem; }
.disk-kit { display: block; }
#disk-status:empty { margin: 0; }
#disk-results td:first-child { min-width: 10rem; }
#disk-results td:last-child { min-width: 13rem; }
#disk-results .doc { display: block; width: fit-content; white-space: normal; }
