:root {
  color-scheme: light;
  --ink: #17343a;
  --mute: #4b676c;
  --surface: #fff;
  --ground: #eef5f4;
  --line: #c4d7d5;
  --accent: #176354;
  --notice: #fff6d9;
  font-family: "Segoe UI", "DejaVu Sans", sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .23em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #936625; outline-offset: 3px; }
.masthead { background: var(--ink); color: #fff; }
.bar, .shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.bar { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 700; white-space: nowrap; }
.mark { width: 1.4rem; height: 1.1rem; border: 2px solid #a7dfca; border-top-width: 4px; position: relative; }
.mark::after { content: ""; display: block; height: 100%; width: 45%; border-right: 1px solid #a7dfca; }
nav { display: flex; gap: clamp(.6rem, 3vw, 1.7rem); align-items: center; flex-wrap: wrap; }
nav a, .exit { color: #daebe8; font-size: .92rem; }
nav a[aria-current] { color: #fff; text-decoration-thickness: 2px; }
.exit { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.shell { padding-block: clamp(1.8rem, 5vw, 3.8rem) 4rem; }
.login-shell { display: grid; justify-content: center; padding-top: clamp(2.5rem, 13vh, 7rem); }
h1, h2 { margin: 0; line-height: 1.15; }
h1 { font-family: "Bahnschrift", "Segoe UI", "DejaVu Sans", sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: 1.05rem; }
.heading { margin-bottom: 1.5rem; }
.heading > p:not(.order) { color: var(--mute); line-height: 1.55; }
.order, .code, .qty, time { font-variant-numeric: tabular-nums; font-family: Consolas, "DejaVu Sans Mono", monospace; }
.order { color: var(--accent); margin: 0 0 .55rem; font-size: .98rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1.1rem, 4vw, 2rem); }
.narrow { width: min(27rem, calc(100vw - 3rem)); }
.input-panel { max-width: 43rem; }
.fields { display: grid; gap: 1.25rem; margin-top: .75rem; }
.narrow .fields { margin-top: 1.5rem; }
.fields label { display: grid; gap: .52rem; font-weight: 600; min-width: 0; }
input:not([type=hidden]) { width: 100%; min-width: 0; }
input:not([type=file], [type=hidden]) { border: 1px solid #91ada9; border-radius: .35rem; padding: .65rem .75rem; }
.upload { border: 1px dashed #91ada9; background: #f3f8f7; border-radius: .45rem; padding: 1rem; }
input::file-selector-button { color: var(--ink); border: 1px solid #91ada9; border-radius: .3rem; background: white; padding: .46rem .55rem; margin-right: .55rem; }
.hint { font-size: .9rem; color: var(--mute); font-weight: 400; }
.primary, .secondary { display: inline-block; width: fit-content; border-radius: .38rem; text-decoration: none; font-weight: 650; padding: .65rem .92rem; }
.primary { color: white; background: var(--accent); border: 1px solid var(--accent); cursor: pointer; }
.primary:hover { background: #124d43; }
.secondary { border: 1px solid #91ada9; color: var(--ink); background: white; }
.secondary:hover { border-color: var(--accent); }
.spec-heading, .downloads { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; justify-content: space-between; }
.spec-heading { gap: 1rem; }
.alert { padding: .92rem 1.1rem; border-radius: .38rem; line-height: 1.5; }
.notes { background: var(--notice); border-left: 4px solid #936625; margin: 0 0 1.25rem; }
.notes ul { padding-left: 1.25rem; margin: .6rem 0 0; }
.notes li + li { margin-top: .32rem; }
.notes h2 span { margin-left: .35rem; color: #6f511b; font-size: .9rem; }
.error { color: #7e2c23; background: #fff0eb; border-left: 4px solid #a84732; }
.table-wrap { overflow: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; min-width: 38rem; font-size: .93rem; }
caption { text-align: left; padding: .75rem 1rem; color: var(--mute); }
th, td { text-align: left; padding: .62rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: white; }
.product { background: #deeeeb; font-weight: 700; }
.code { white-space: nowrap; width: 1%; font-size: .87rem; }
.qty { text-align: right; width: 1%; white-space: nowrap; }
.spec th:last-child { width: 1%; white-space: nowrap; }
.part-name { overflow-wrap: anywhere; }
.depth-1 { padding-left: 1.65rem; }
.depth-2 { padding-left: 2.45rem; }
.depth-3 { padding-left: 3.25rem; }
.depth-4 { padding-left: 4.05rem; }
.depth-5 { padding-left: 4.85rem; }
.depth-6 { padding-left: 5.65rem; }
details { margin-top: .22rem; font-size: .84rem; color: var(--mute); }
summary { width: fit-content; cursor: pointer; color: var(--accent); }
dl { display: grid; grid-template-columns: auto 1fr; gap: .28rem .72rem; margin: .5rem 0 .28rem; }
dt { font-weight: 600; }
dd { margin: 0; }
@media (max-width: 39rem) {
  .bar, .shell { width: calc(100% - 2rem); }
  .bar { flex-direction: column; align-items: start; justify-content: center; gap: .75rem; padding-block: .9rem; }
  .spec-heading { align-items: start; flex-direction: column; }
}
