:root {
  color-scheme: light;
  /* Maxwell Color Palette, MISC / 08 Brand & Design */
  --surface: #FFFFFF;
  --blue: #1F41F5;
  --paper: #F2F2F7;
  --ink: #000000;
  --blue-tint: #E9EDFF;
  --deep-blue: #1834C4;
  --line: #D9DCE5;
  --muted: #626776;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font: 100%/1.52 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, select, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
a { color: var(--blue); text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { color: var(--deep-blue); }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .5rem 1rem; border-radius: .35rem; color: var(--surface); background: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 13.75rem minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 2.1rem .85rem; border-right: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.brand { display: flex; align-items: center; gap: .8rem; padding: 0 .75rem 1.85rem; margin-bottom: 1.45rem; border-bottom: 1px solid var(--line); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.35rem; font-weight: 680; line-height: 1.2; letter-spacing: -.045em; }
.brand small { margin-top: .12rem; color: var(--muted); font-size: .8rem; }
.brandmark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border: 1px solid var(--blue); border-radius: .38rem; background: var(--blue); }
.brandmark i { display: block; width: 1.25rem; height: .85rem; background: var(--surface); clip-path: polygon(0 100%,0 0,19% 0,50% 52%,81% 0,100% 0,100% 100%,80% 100%,80% 34%,50% 83%,20% 34%,20% 100%); }
.nav { display: grid; gap: .3rem; }
.nav button { position: relative; display: flex; align-items: center; gap: .72rem; min-height: 2.78rem; padding: .48rem .72rem; border: 1px solid transparent; border-radius: .45rem; background: transparent; color: var(--muted); font-size: .94rem; font-weight: 500; text-align: left; white-space: nowrap; }
.nav button:hover { background: var(--paper); color: var(--ink); }
.nav button.active, .nav button[aria-current="page"], .nav button[aria-selected="true"] { color: var(--deep-blue); font-weight: 620; background: var(--blue-tint); border-color: var(--blue-tint); box-shadow: inset 3px 0 var(--blue); }
.navicon { display: inline-block; position: relative; width: 1.08rem; height: 1.08rem; flex: none; color: currentColor; opacity: .95; }
.icon-library { border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor,currentColor) 35% 50% / 1px 100%, linear-gradient(currentColor,currentColor) 50% 40% / 100% 1px; background-repeat: no-repeat; }
.icon-planner { border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; background: linear-gradient(currentColor,currentColor) 15% 84%/2px 28%, linear-gradient(currentColor,currentColor) 50% 70%/2px 48%, linear-gradient(currentColor,currentColor) 86% 50%/2px 70%; background-repeat: no-repeat; }
.icon-inventory { background: currentColor; clip-path: polygon(0 49%,22% 49%,36% 14%,56% 75%,67% 38%,82% 49%,100% 49%,100% 60%,81% 60%,71% 53%,55% 100%,34% 42%,28% 61%,0 61%); }
.icon-boards { border: 1.5px solid currentColor; border-radius: 2px; }
.icon-boards::before, .icon-boards::after { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid currentColor; }
.icon-boards::before { top: 2px; left: 2px; } .icon-boards::after { bottom: 2px; right: 2px; }
.icon-standards { border: 1.5px solid currentColor; border-radius: 3px; }
.icon-standards::after { content: ""; position: absolute; top: 3px; left: 3px; width: 8px; height: 5px; transform: rotate(-45deg); border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
main { min-width: 0; width: 100%; max-width: 112rem; margin: 0 auto; padding: clamp(1.6rem,3.1vw,3.7rem) clamp(1.1rem,3.25vw,4.2rem) 3.7rem; }
#hero { margin: 0 0 1.55rem; }
#hero:empty, #stats:empty, #controls:empty, #notice:empty { display: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; }
h1 { margin: .35rem 0 .5rem; font-size: clamp(2rem, 3.15vw, 3.15rem); font-weight: 665; letter-spacing: -.055em; }
h2 { margin: 0 0 .85rem; font-size: 1.38rem; font-weight: 650; letter-spacing: -.032em; }
h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 650; letter-spacing: -.015em; }
h4 { margin-bottom: .4rem; }
.eyebrow { margin: 0 0 .38rem; color: var(--blue); font: 650 .76rem/1.5 var(--mono); letter-spacing: .065em; text-transform: uppercase; }
.lead { color: var(--muted); max-width: 70ch; margin-bottom: 0; }
.hero-head, .sectionhead, .detailhead { display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem 1.5rem; flex-wrap: wrap; }
.sectionhead { align-items: baseline; margin: .4rem 0 .7rem; }
.sectionhead h2, .detailhead h2 { margin: 0; }
.stats, #stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(10.5rem,100%),1fr)); gap: .8rem; margin: 0 0 1.4rem; }
.stat, .card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; }
.stat { display: flex; flex-direction: column; align-items: flex-start; padding: 1.05rem 1.15rem; }
.stat .label, .stat label, .stat .sub { display: block; color: var(--muted); }
.stat .label, .stat label { font-size: .87rem; font-weight: 580; }
.stat .number, .stat > strong { display: block; margin: .22rem 0 .14rem; color: var(--ink); font-size: clamp(1.65rem,2.4vw,2.2rem); font-weight: 625; line-height: 1.18; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; }
.toolbar, #controls { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
#controls { margin-bottom: .95rem; }
#controls > .toolbar { width: 100%; }
label, .field { font-size: .9rem; font-weight: 550; }
.field { display: grid; align-content: end; gap: .24rem; min-width: 0; }
input, select, textarea { min-width: 0; min-height: 2.5rem; padding: .49rem .68rem; border: 1px solid var(--muted); border-radius: .36rem; background: var(--surface); font-size: .9rem; line-height: 1.35; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="search"] { width: min(21rem,100%); }
input[type="number"] { max-width: 8rem; font-family: var(--mono); }
input[type="checkbox"] { min-height: auto; accent-color: var(--blue); }
select { appearance: none; padding-right: 2.25rem; background: linear-gradient(45deg,transparent 50%,var(--muted) 50%) calc(100% - .96rem) center/.28rem .28rem no-repeat, linear-gradient(135deg,var(--muted) 50%,transparent 50%) calc(100% - .70rem) center/.28rem .28rem no-repeat, var(--surface); }
.primary, .secondary, .close { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent; border-radius: .4rem; padding: .52rem .9rem; min-height: 2.5rem; font-size: .9rem; font-weight: 620; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.primary { color: var(--surface); background: var(--blue); border-color: var(--blue); }
.primary:hover { color: var(--surface); background: var(--deep-blue); }
.secondary, .close { color: var(--ink); background: var(--surface); border-color: var(--line); }
.secondary:hover, .close:hover { color: var(--ink); background: var(--blue-tint); border-color: var(--blue); }
.mono, code { font-family: var(--mono); font-size: .9em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; white-space: nowrap; padding: .17rem .55rem; border: 1px solid transparent; border-radius: .32rem; font-size: .815rem; line-height: 1.35; font-weight: 570; }
.pill.good { background: var(--paper); color: var(--muted); border-color: var(--line); }
.pill.warn { background: var(--blue-tint); color: var(--deep-blue); border-color: var(--blue); }
.pill.bad { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pill.neutral, .pill:not(.good):not(.warn):not(.bad) { background: var(--surface); color: var(--muted); border-color: var(--line); border-style: dashed; }
.tablewrap { overflow: auto; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: .58rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: .91rem; line-height: 1.45; }
th, td { padding: .64rem .8rem; text-align: left; vertical-align: middle; }
th { position: sticky; z-index: 1; top: 0; background: var(--paper); color: var(--muted); font-size: .795rem; font-weight: 640; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td, tbody tr:focus-within td { background: var(--blue-tint); }
tbody tr[data-id], tbody tr[data-part] { cursor: pointer; }
th.numeric, td.numeric, .numeric { text-align: right; font-variant-numeric: tabular-nums; }
td .part, button.part { font-weight: 630; color: var(--blue); }
button.part { border: 0; padding: 0; background: none; text-align: left; }
button.part:hover { text-decoration: underline; }
.part { overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(21rem,100%),1fr)); gap: .85rem; }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
.card { padding: 1.15rem 1.25rem; }
.card p:last-child { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.stockbar { overflow: hidden; display: block; width: 100%; height: .38rem; margin-top: .3rem; border-radius: .5rem; background: var(--line); }
.stockbar > * { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
#notice { margin: .8rem 0; padding: .62rem .8rem; background: var(--blue-tint); border-left: 3px solid var(--blue); font-size: .9rem; }
.empty { padding: 2.3rem 1.25rem; text-align: center; color: var(--muted); }
dialog { width: min(44rem,calc(100% - 2rem)); max-height: 87vh; padding: 1.7rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 16px 65px rgb(0 0 0 / 18%); }
dialog::backdrop { background: rgb(0 0 0 / 45%); }
dialog .close { float: right; position: sticky; top: 0; z-index: 2; margin: -.45rem -.45rem .4rem .75rem; width: 2.1rem; height: 2.1rem; min-height: 0; padding: 0; font-size: 1.35rem; font-weight: 400; }
.detailhead { margin-bottom: 1rem; }
dl { display: grid; grid-template-columns: minmax(6rem,auto) 1fr; gap: .5rem .8rem; font-size: .92rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 1580px) { .shell { grid-template-columns: 15rem minmax(0,1fr); } }
@media (max-width: 1030px) and (min-width: 761px) { .shell { grid-template-columns: 11.8rem minmax(0,1fr); } .rail { padding-inline: .6rem; } }
@media (max-width: 760px) {
  .shell { display: block; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem .8rem .6rem; }
  .brand { padding: 0 .25rem .7rem; margin: 0; border: 0; gap: .5rem; }
  .brandmark { width: 1.8rem; height: 1.8rem; }
  .brand > span:last-child { display: flex; align-items: baseline; gap: .45rem; }
  .brand strong { font-size: 1.16rem; }
  .brand small { font-size: .825rem; }
  .nav { display: flex; overflow-x: auto; gap: .22rem; padding: .14rem 0; scrollbar-width: thin; }
  .nav button { flex: none; min-height: 2.2rem; padding: .3rem .58rem; gap: .36rem; font-size: .85rem; }
  .navicon { width: .88rem; height: .88rem; }
  main { padding: 1.4rem .9rem 2.3rem; }
  .stats, #stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .stat { padding: .8rem .82rem; }
  .split { grid-template-columns: 1fr; }
  .card { padding: .95rem; }
  th, td { padding: .57rem .64rem; }
  dialog { padding: 1.1rem; }
  #controls .field:has(input[type="search"]) { flex: 1 1 100%; }
  #controls input[type="search"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
#hero, .sectionline {display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap}
.sectionline {margin:1.1rem 0 .65rem}
.sectionline h2 {margin:0}
.partlink {border:0; background:none; padding:0; color:var(--blue); font-weight:650; text-align:left; overflow-wrap:anywhere}
.partlink:hover {text-decoration:underline}
td small,.planboard small {display:block; color:var(--muted); font-size:.8rem; margin-top:.15rem; max-width:38ch}
.footnote {font-size:.83rem; color:var(--muted); margin:.8rem 0}
.plan-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(19rem,100%),1fr));gap:.6rem}
.planboard {display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.7rem .9rem;background:var(--surface);border:1px solid var(--line);border-radius:.55rem}
.planboard input {width:5.1rem}
.qualification {padding-top:.7rem;border-top:1px solid var(--line);color:var(--muted)}
.tablewrap a {white-space:normal}
dialog h3 {margin-top:1.3rem}
.stock-history {max-height: 16rem; overflow: auto;}

.private-link { display: block; padding: 14px 12px; color: var(--ink, #182135); font-size: .88rem; }
