/* Precision workspace — graphite, porcelain, cobalt. */
:root {
  --ink:#202a3b;
  --muted:#677386;
  --accent:#315bea;
  --accent-hover:#2447c1;
  --accent-soft:#eef2ff;
  --chart-secondary:#acb9da;
  --bg:#f4f5f8;
  --surface:#fff;
  --line:#e0e4ec;
  --soft:#f7f8fb;
  --amber:#996017;
  --amber-soft:#fff5e7;
  --red:#b84242;
  --nav:#171c28;
  --radius:12px;
  --gutter:32px;
  --control-height:42px;
  --sans:'Avenir Next','PingFang SC','Microsoft YaHei',sans-serif;
  --mono:'SFMono-Regular',Consolas,monospace;
}
* {
  box-sizing:border-box;
}
html {
  scrollbar-gutter:stable;
  scroll-padding-top:90px;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px/1.6 var(--sans);
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input,select,textarea {
  font:inherit;
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:var(--control-height);
  padding:9px 16px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface);
  color:var(--ink);
  font-size:13px;
  line-height:1.5;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s,border-color .15s,box-shadow .15s;
}
button:hover,.button:hover {
  background:var(--soft);
  border-color:#b3bdcd;
}
button.primary,.button.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
  box-shadow:0 3px 6px #315bea14;
}
button.primary:hover,.button.primary:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover);
}
button:disabled {
  opacity:.45;
  cursor:not-allowed;
}
.quiet {
  background:transparent;
  border-color:transparent;
  color:var(--muted);
  box-shadow:none;
}
.iconButton {
  min-width:42px;
  padding:8px;
  font-size:20px;
  line-height:1;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.tableWrap:focus-visible {
  outline:3px solid #758ffd;
  outline-offset:3px;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:30px;
  line-height:1.35;
  letter-spacing:-.6px;
  font-weight:650;
  overflow-wrap:anywhere;
}
h2 {
  font-size:16px;
  line-height:1.6;
  font-weight:650;
}
h3 {
  font-size:14px;
  line-height:1.6;
  font-weight:600;
}
p {
  font-size:13px;
  line-height:1.85;
  color:var(--muted);
  margin-top:8px;
}
.amberText {
  color:var(--amber);
}
.dangerText {
  color:var(--red);
}
/* Navigation and page hierarchy. */
.workspace {
  min-height:100dvh;
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:232px;
  padding:30px 16px 24px;
  background:var(--nav);
  color:#dce1ec;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  overscroll-behavior:contain;
  z-index:25;
}
.brand {
  display:flex;
  gap:11px;
  align-items:center;
  padding:0 10px;
  color:#fff;
  font-size:24px;
  font-weight:650;
  letter-spacing:2px;
  flex-shrink:0;
}
.brandMark {
  width:44px;
  height:44px;
  object-fit:contain;
  flex-shrink:0;
  background:#fff;
  border-radius:11px;
  padding:4px;
}
.brand small {
  display:block;
  font-size:10px;
  font-weight:400;
  letter-spacing:1px;
  color:#a4adbf;
  line-height:1.8;
  margin-top:1px;
}
.workspaceLabel {
  margin:40px 14px 14px;
  font:10px/1.5 var(--mono);
  letter-spacing:1.5px;
  color:#8590a5;
}
nav {
  display:grid;
  gap:5px;
}
nav a {
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 14px;
  min-height:48px;
  border-radius:7px;
  font-size:13px;
  color:#aeb8ca;
  position:relative;
}
nav a>span {
  width:20px;
  flex:0 0 20px;
  text-align:center;
  font-size:19px;
  line-height:1;
  color:#8896b0;
}
nav a>b {
  font:11px var(--mono);
  margin-left:auto;
  background:#343e54;
  border-radius:4px;
  padding:3px 6px;
  color:#dce3f5;
}
nav a:hover {
  background:#232b3b;
  color:#fff;
}
nav a.active {
  background:#2a385c;
  color:#fff;
}
nav a.active:before {
  content:'';
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:3px;
  background:#86a0ff;
  border-radius:2px;
}
nav a.active>span {
  color:#a8bcff;
}
.sideFoot {
  margin-top:auto;
  padding:22px 14px 0;
  border-top:1px solid #303849;
  font-size:12px;
  color:#c2cbdd;
}
.sideFoot p {
  margin:5px 0 16px;
  font-size:11px;
  color:#8e9ab1;
}
.sideFoot a {
  font-size:12px;
  color:#bbc8ee;
}
.liveDot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#92aaff;
  margin-right:9px;
}
.main {
  grid-column:2;
  min-width:0;
}
.topbar {
  position:sticky;
  top:0;
  z-index:20;
  height:72px;
  padding:0 var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#fffffff5;
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.crumb {
  display:flex;
  align-items:center;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
}
.crumb span {
  margin:0 16px;
  color:#a5adbc;
  flex-shrink:0;
}
.crumb strong {
  color:var(--ink);
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
}
.topActions {
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.topActions button {
  font-size:12px;
}
.actionIcon {
  font-size:19px;
  width:18px;
  line-height:1;
  flex-shrink:0;
}
.menuButton {
  display:none;
}
.content {
  max-width:1660px;
  margin:auto;
  padding:32px var(--gutter) 24px;
}
.pageHeading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
  min-height:96px;
}
.pageHeading>div {
  min-width:0;
}
.pageHeading>div:nth-child(2):empty {
  display:none;
}
.pageHeading p {
  max-width:72ch;
  margin-top:10px;
  line-height:1.85;
}
.eyebrow {
  font:10px/1.6 var(--mono);
  letter-spacing:1.8px;
  color:var(--muted);
  margin-bottom:10px;
}
.pageHeading.withArt {
  min-height:140px;
}
.withArt>div:first-child {
  flex:1;
}
.headingArt {
  flex:0 0 280px;
  height:140px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #e4e7ed;
}
.headingArt img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:right center;
}
.demoRibbon {
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 14px;
  border:1px solid var(--line);
  background:#eceff5;
  border-radius:7px;
  margin-bottom:24px;
}
.demoRibbon>span {
  color:#6e7d99;
  font-size:20px;
  line-height:1;
  flex-shrink:0;
}
.demoRibbon p {
  margin:0;
  font-size:11px;
  line-height:1.8;
  flex:1;
  min-width:0;
  color:#58667b;
}
.demoRibbon small {
  font:10px var(--mono);
  color:var(--muted);
  white-space:nowrap;
  flex-shrink:0;
}
/* Status, cards and reports. */
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:500;
  line-height:1.5;
  white-space:nowrap;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--soft);
  color:#627087;
  vertical-align:middle;
}
.badge i {
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  flex-shrink:0;
}
.badge.success {
  background:var(--accent-soft);
  border-color:#d9e1fc;
  color:#3554a1;
}
.badge.warning {
  background:var(--amber-soft);
  border-color:#efdbba;
  color:#915c18;
}
.badge.danger {
  background:#fff0ee;
  border-color:#f0d7d1;
  color:#a53b30;
}
.badge.neutral {
  background:#f3f5f8;
  border-color:#e2e6ed;
  color:#657185;
}
.panel,.metricCard {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  min-width:0;
  box-shadow:0 2px 4px #202a3b03;
}
.panel {
  padding:24px;
}
.panelHead {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px 20px;
  margin-bottom:20px;
}
.panelHead>div {
  min-width:0;
}
.panelHead>div:first-child {
  flex:1 1 220px;
}
.panelHead>h2 {
  flex:1;
}
.panelHead small {
  display:block;
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  max-width:80ch;
  margin-top:5px;
}
.panelHead label {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  max-width:100%;
  min-width:0;
}
.panelHead label select {
  min-width:0;
  max-width:100%;
  margin:0;
}
.panel>h2+.tableWrap {
  margin-top:20px;
}
.spaced {
  margin-top:24px;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px;
}
.metricCard {
  padding:20px 22px;
  min-height:160px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  border-top:3px solid #aebde8;
}
.metricCard:nth-child(3) {
  border-top-color:#d5a057;
}
.metricCard:nth-child(4) {
  border-top-color:#a0a9ba;
}
.metricLabel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  font-size:12px;
  color:var(--muted);
}
.metricLabel>span {
  font:10px var(--mono);
  color:#97a2b6;
}
.metricCard>strong {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px;
  font-size:34px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-1px;
  margin:14px 0 12px;
}
.metricCard>strong small {
  font:11px var(--sans);
  color:var(--muted);
  letter-spacing:0;
}
.metricCard p {
  font-size:11px;
  line-height:1.8;
  margin-top:auto;
}
.dashboardGrid {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);
  gap:24px;
  margin-bottom:24px;
}
.dashboardGrid>.panel {
  display:flex;
  flex-direction:column;
}
.dashboardGrid>.panel>.footnote:last-child {
  margin-top:auto;
  padding-top:16px;
}
.legend {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:11px;
  line-height:24px;
  color:var(--muted);
}
.legend>span {
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.legend i {
  width:8px;
  height:8px;
  border-radius:2px;
  background:var(--accent);
  flex-shrink:0;
}
.legend i.light {
  background:var(--chart-secondary);
}
.forecastChart {
  display:block;
  width:100%;
  height:auto;
  min-height:200px;
  flex:1;
}
.forecastChart text {
  font:10px var(--sans);
  fill:var(--muted);
}
.footnote {
  font-size:12px;
  line-height:1.85;
  margin:12px 0;
  color:var(--muted);
}
.panel>.footnote:last-child {
  margin-bottom:0;
}
.textLink {
  font-size:12px;
  color:var(--accent);
  white-space:nowrap;
}
.textLink:hover,.code:hover {
  text-decoration:underline;
  text-underline-offset:3px;
}
.riskItem {
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 0;
  min-height:76px;
  border-bottom:1px solid var(--line);
}
.riskItem:last-of-type {
  border:0;
}
.riskItem>div {
  min-width:0;
}
.riskItem:hover {
  background:var(--soft);
}
.rank {
  font:11px var(--mono);
  color:#8d99ac;
  flex:0 0 18px;
}
.riskItem strong {
  font:500 12px/1.6 var(--mono);
}
.riskItem small {
  display:block;
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
  margin-top:4px;
}
.riskItem>b {
  font-size:22px;
  line-height:1.3;
  font-weight:600;
  text-align:right;
  color:var(--amber);
  margin-left:auto;
  flex-shrink:0;
}
/* Forms keep native selection behavior with explicit arrow spacing. */
input,select,textarea {
  max-width:100%;
  border:1px solid #d1d8e4;
  background:#fff;
  color:var(--ink);
  border-radius:7px;
  padding:10px 12px;
  font-size:13px;
}
input,select {
  height:var(--control-height);
  line-height:1.5;
}
textarea {
  min-height:112px;
  line-height:1.75;
  resize:vertical;
}
input::placeholder,textarea::placeholder {
  color:#8390a3;
}
input[type=date] {
  min-width:0;
}
select {
  cursor:pointer;
}
select:not([multiple]):not([size]) {
  appearance:none;
  -webkit-appearance:none;
  padding:8px 40px 8px 12px;
  background-image:url('/select-chevron.svg');
  background-position:right 14px center;
  background-size:14px 14px;
  background-repeat:no-repeat;
  text-overflow:ellipsis;
}
select:hover {
  border-color:#95a5bd;
}
select:disabled {
  cursor:not-allowed;
  opacity:.55;
}
form label {
  display:block;
  font-size:12px;
  line-height:1.7;
  color:#566277;
}
form label input,form label select,form label textarea {
  display:block;
  width:100%;
  margin-top:8px;
}
.scenarioBar {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px 24px;
  padding:18px 20px;
  margin-bottom:24px;
  border:1px solid #d8dfea;
  border-left:3px solid var(--accent);
  border-radius:8px;
  background:#eef1f8;
}
.scenarioBar>div {
  margin-right:auto;
}
.scenarioBar strong {
  display:block;
  font-size:13px;
  line-height:1.7;
}
.scenarioBar small {
  display:block;
  font:10px/1.8 var(--mono);
  color:var(--muted);
  margin-top:3px;
}
.scenarioBar label {
  display:inline-grid;
  grid-template-columns:max-content 112px;
  align-items:center;
  flex:0 0 auto;
  gap:12px;
  margin:0;
  white-space:nowrap;
}
.scenarioBar label select {
  min-width:0;
  margin:0;
  width:100%;
}
.scenarioBar>button {
  flex-shrink:0;
}
.filters {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:20px 0;
}
.filters input[type=search] {
  flex:1 1 220px;
  min-width:0;
  max-width:360px;
}
.filters select {
  min-width:150px;
}
.filters button {
  margin-left:auto;
  font-size:12px;
}
.formGrid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px 16px;
  margin:20px 0;
}
.formGrid>* {
  min-width:0;
}
.formGrid+label {
  margin-top:4px;
}
/* Dense data is contained within its own scroll surface. */
.tableWrap {
  position:relative;
  overflow:auto;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  isolation:isolate;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#bbc5d7 #f4f6fa;
}
table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:12px;
  line-height:1.65;
  white-space:nowrap;
}
th {
  text-align:left;
  background:#f1f3f8;
  color:#59667b;
  font-weight:600;
  font-size:11px;
  border-bottom:1px solid #d9dfeb;
  padding:13px 16px;
  vertical-align:middle;
}
td {
  padding:14px 16px;
  border-bottom:1px solid #e9ecf2;
  vertical-align:middle;
}
td small {
  display:block;
  font-size:10px;
  line-height:1.6;
  color:var(--muted);
  margin-top:4px;
}
tbody tr:last-child td {
  border-bottom:0;
}
tbody tr:hover td {
  background:#f6f8fd;
}
.numeric {
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.code {
  font:500 12px/1.6 var(--mono);
  color:#365ba3;
}
.wideTable {
  min-width:1250px;
}
.wideTable td:first-child,.wideTable th:first-child {
  position:sticky;
  left:0;
  background:#fff;
  z-index:1;
  box-shadow:1px 0 0 var(--line);
}
.wideTable th:first-child {
  background:#f1f3f8;
}
.totalRow td,.wideTable .totalRow td:first-child {
  background:#edf1fc;
  font-weight:600;
}
.flowScroller {
  max-height:580px;
}
.flowTable {
  min-width:2450px;
}
.flowTable thead {
  position:sticky;
  top:0;
  z-index:5;
}
.flowTable th {
  text-align:center;
  padding:12px;
  border-right:1px solid #e0e5ef;
}
.flowTable td {
  text-align:right;
  min-width:100px;
  padding:14px 12px;
}
.flowTable td:first-child,.flowTable th:first-child {
  position:sticky;
  left:0;
  background:#f5f7fc;
  text-align:left;
  min-width:188px;
  padding-left:16px;
  box-shadow:1px 0 0 var(--line);
  z-index:1;
}
.flowTable th:first-child {
  z-index:6;
  background:#edf1f9;
}
.flowTable td:first-child .badge {
  margin-top:7px;
}
.flowTable .cycleCell {
  background:#f2f5fc;
  color:#476290;
  text-align:center;
  min-width:112px;
}
.scrollHint {
  font-size:11px;
  line-height:1.8;
  color:var(--muted);
}
.pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
  font-size:12px;
  color:var(--muted);
}
.pagination>div {
  display:flex;
  align-items:center;
  gap:12px;
}
.pagination button {
  min-height:36px;
  padding:7px 12px;
  font-size:11px;
}
.empty {
  text-align:center;
  padding:44px 20px;
  color:var(--muted);
}
.empty h2 {
  font-size:56px;
  letter-spacing:-2px;
  font-weight:500;
  color:#8196bc;
}
.empty .button,.empty button {
  margin-top:16px;
}
/* Planning and workflow components. */
.versionCards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.versionCard {
  display:grid;
  justify-content:stretch;
  justify-items:start;
  align-content:start;
  gap:14px;
  text-align:left;
  white-space:normal;
  padding:24px;
  min-height:156px;
  border:2px solid var(--line);
  border-radius:var(--radius);
}
.versionCard.selected {
  border-color:var(--accent);
  background:var(--accent-soft);
  box-shadow:0 2px 8px #315bea0a;
}
.versionCard>small {
  font:10px var(--mono);
  letter-spacing:1.5px;
  color:var(--muted);
}
.versionCards+.footnote {
  margin:16px 0 24px;
}
.cycleDiagram {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) 20px minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin:24px 0;
}
.parallelNodes {
  display:grid;
  gap:12px;
  min-width:0;
}
.cycleNode {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  min-height:142px;
  padding:16px;
  border:1px solid #dfe5f1;
  border-radius:9px;
  background:#f5f7fc;
}
.cycleNode>small {
  display:block;
  min-height:18px;
  font-size:10px;
  line-height:1.6;
  color:var(--muted);
  margin-bottom:8px;
}
.cycleNode h3 {
  font-size:12px;
  line-height:1.8;
  overflow-wrap:anywhere;
  margin-bottom:12px;
}
.cycleNode strong {
  display:flex;
  align-items:baseline;
  gap:6px;
  font-size:30px;
  line-height:1.2;
  font-weight:500;
  color:#385cb2;
  margin-top:auto;
}
.cycleNode strong span {
  font:11px var(--sans);
  color:var(--muted);
}
.parallelNodes .cycleNode:nth-child(2) {
  background:#f8f6f2;
  border-color:#e8e0d5;
}
.totalCycle {
  background:#eaf0ff;
  border-color:#d3def9;
}
.totalCycle strong {
  font-size:34px;
}
.arrow {
  text-align:center;
  color:#99a7bd;
  font-size:20px;
  font-weight:400;
}
.productSummary {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  margin:0 0 24px;
}
.productSummary>div {
  min-width:0;
}
.productSummary>button {
  margin-left:auto;
}
.productSummary p {
  font-size:12px;
}
.inventoryMetrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  margin:24px 0;
}
.inventoryMetrics>div {
  min-width:0;
  border-right:1px solid var(--line);
  padding-right:16px;
}
.inventoryMetrics>div:last-child {
  border:0;
  padding:0;
}
.inventoryMetrics label {
  display:block;
  font-size:12px;
  line-height:1.8;
  margin-bottom:10px;
  color:var(--muted);
}
.inventoryMetrics strong {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px;
  font-size:30px;
  font-weight:500;
  line-height:1.4;
}
.inventoryMetrics strong small {
  font:11px var(--sans);
  color:var(--muted);
}
.productGrid {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:24px;
}
.riskReadout {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin:24px 0;
}
.riskReadout label {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:8px;
}
.riskReadout strong {
  font-size:28px;
  font-weight:500;
  line-height:1.6;
  white-space:nowrap;
}
.riskReadout strong small {
  font-size:12px;
  color:var(--muted);
}
.callout {
  background:var(--amber-soft);
  border:1px solid #efdfc9;
  border-left:3px solid #c79c59;
  border-radius:7px;
  padding:16px;
  margin:20px 0;
  font-size:13px;
}
.callout b {
  font-weight:600;
  color:#865619;
}
.callout p {
  font-size:12px;
  margin:8px 0 0;
}
.factoryGrid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.factoryCard {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.factoryIcon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:9px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:24px;
  margin-bottom:20px;
}
.factoryCard h2 {
  font-size:15px;
  min-height:24px;
}
.factoryCard>p {
  font-size:12px;
  min-height:22px;
}
.factoryLoad {
  display:block;
  font-size:36px;
  font-weight:500;
  line-height:1.4;
  margin-top:24px;
}
.factoryLoad small {
  font-size:11px;
  color:var(--muted);
  margin-left:6px;
}
.progress {
  width:100%;
  height:5px;
  border-radius:3px;
  background:#e5e9f1;
  overflow:hidden;
  margin:20px 0;
}
.progress i {
  display:block;
  height:100%;
  border-radius:3px;
  background:var(--accent);
}
.definition {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  width:100%;
  font-size:12px;
  margin:8px 0;
  color:var(--muted);
}
.definition b {
  font-weight:500;
  white-space:nowrap;
  color:var(--ink);
}
.taskTabs {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:24px;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
}
.taskTabs button {
  font-size:12px;
  border-color:transparent;
  background:transparent;
  color:var(--muted);
}
.taskTabs b {
  font:11px var(--mono);
  margin-left:3px;
}
.taskTabs button.active {
  color:var(--accent);
  background:#e7edff;
  border-color:#d7e0fa;
}
.taskItem {
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:16px;
  padding:24px 0;
  border-bottom:1px solid var(--line);
  align-items:start;
}
.taskItem:last-child {
  border:0;
}
.taskIndicator {
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  margin-top:2px;
  background:#f3eee7;
  color:#a47838;
  border-radius:50%;
  font-size:17px;
}
.taskIndicator.status2 {
  color:var(--accent);
  background:#e8eeff;
}
.taskBody {
  min-width:0;
}
.taskHeading {
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:10px 14px;
}
.taskHeading h3 {
  font-size:14px;
  overflow-wrap:anywhere;
}
.taskBody p {
  margin:10px 0 12px;
  font-size:13px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.taskMeta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 16px;
  color:var(--muted);
  font-size:11px;
}
.taskButtons {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-self:center;
}
.taskButtons button {
  min-height:36px;
  font-size:12px;
  padding:8px 12px;
}
.sourceGrid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}
.sourceGrid .panel {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
}
.sourceNumber {
  display:block;
  font:24px var(--mono);
  color:#9baecc;
  margin-bottom:20px;
}
.sourceGrid h3 {
  font-size:14px;
  margin-bottom:16px;
}
.sourceGrid .footnote {
  margin-top:auto;
  padding-top:14px;
  font-size:11px;
}
.connectorGrid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}
.connectorGrid>div {
  padding:20px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:9px;
}
.connectorGrid span {
  display:block;
  font-size:24px;
  color:#6d83af;
  margin-bottom:16px;
}
.connectorGrid p {
  font-size:12px;
  line-height:1.85;
}
/* Dialogs and utilities. */
dialog {
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px;
  width:min(570px,calc(100vw - 32px));
  max-height:calc(100dvh - 48px);
  overflow:auto;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  box-shadow:0 24px 90px #111b3a40;
}
dialog::backdrop {
  background:#141c3199;
  backdrop-filter:blur(3px);
}
dialog .panelHead {
  align-items:center;
  margin-bottom:16px;
}
dialog .iconButton {
  flex:0 0 42px;
}
dialog>p {
  margin:14px 0 20px;
}
dialog .footnote {
  margin-bottom:20px;
}
.modalActions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.modalActions button {
  min-width:88px;
}
footer {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  font-size:11px;
  line-height:1.8;
  color:var(--muted);
  margin-top:32px;
  border-top:1px solid var(--line);
  padding:20px 0 0;
}
#toast {
  position:fixed;
  bottom:max(24px,env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100vw - 32px);
  background:#222d44;
  color:#fff;
  padding:12px 20px;
  border-radius:9px;
  box-shadow:0 6px 24px #111b3a30;
  font-size:13px;
  line-height:1.7;
  text-align:center;
  z-index:100;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}
#toast.visible {
  opacity:1;
}
.skip {
  position:fixed;
  left:20px;
  top:-100px;
  z-index:100;
  background:#fff;
  padding:12px;
}
.skip:focus {
  top:10px;
}
.srOnly {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
noscript {
  display:block;
  padding:30px;
}
/* Tablet / narrow desktop. */
@media(min-width:1600px) {
  :root {
    --gutter:44px;
  }
  .content {
    padding-top:36px;
  }
}
@media(max-width:1250px) {
  .workspace {
    grid-template-columns:208px minmax(0,1fr);
  }
  .sidebar {
    width:208px;
    padding:28px 12px;
  }
  .brand {
    font-size:22px;
    padding:0 6px;
    gap:8px;
  }
  .brand small {
    font-size:9px;
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .sourceGrid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .dashboardGrid {
    grid-template-columns:minmax(0,1fr);
  }
  .dashboardGrid>.panel>.footnote:last-child {
    margin-top:16px;
  }
  .topActions .actionLabel {
    display:none;
  }
  .topActions .quiet {
    min-width:42px;
    padding:9px;
  }
  .productGrid {
    grid-template-columns:minmax(0,1fr);
  }
  .cycleDiagram {
    grid-template-columns:minmax(0,1.2fr) 14px minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1fr);
    gap:6px;
  }
  .cycleNode {
    padding:12px;
  }
  .taskItem {
    grid-template-columns:28px minmax(0,1fr);
  }
  .taskButtons {
    grid-column:2;
    justify-content:flex-start;
  }
  .headingArt {
    flex-basis:220px;
    height:130px;
  }
  .pageHeading.withArt {
    min-height:130px;
  }
}
@media(max-width:1000px) {
  :root {
    --gutter:24px;
  }
  .factoryGrid {
    grid-template-columns:minmax(0,1fr);
  }
  .factoryCard {
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:24px;
  }
  .factoryIcon,.factoryCard h2,.factoryCard>p,.factoryCard>.definition {
    grid-column:1/-1;
  }
  .factoryCard .progress {
    align-self:center;
  }
  .cycleDiagram {
    grid-template-columns:1fr;
    gap:12px;
  }
  .parallelNodes {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cycleDiagram>.arrow {
    transform:rotate(90deg);
    height:20px;
    line-height:20px;
  }
  .cycleNode {
    padding:16px;
    min-height:130px;
  }
  .cycleDiagram>.cycleNode {
    min-height:118px;
  }
  .connectorGrid {
    grid-template-columns:1fr;
  }
  .headingArt {
    flex-basis:170px;
    height:120px;
  }
  .demoRibbon small {
    display:none;
  }
}
/* Mobile touch targets and bounded columns. */
@media(max-width:800px) {
  :root {
    --gutter:16px;
    --control-height:44px;
  }
  .workspace {
    display:block;
  }
  .sidebar {
    transform:translateX(-100%);
    width:232px;
    transition:transform .2s;
  }
  .sidebar.open {
    transform:translateX(0);
    top:64px;
    max-height:calc(100dvh - 64px);
    box-shadow:12px 0 40px #111b3a30;
  }
  .main {
    width:100%;
  }
  .topbar {
    height:64px;
    padding:0 12px;
    gap:8px;
  }
  .menuButton {
    display:inline-flex;
    flex-shrink:0;
  }
  .crumb {
    flex:1;
    font-size:11px;
  }
  .crumb span {
    margin:0 8px;
  }
  .topActions {
    gap:2px;
  }
  .topActions>.badge {
    display:none;
  }
  .topActions .quiet {
    min-width:44px;
    min-height:44px;
    padding:10px;
  }
  .content {
    padding-top:24px;
  }
  .pageHeading {
    min-height:0;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:20px;
  }
  .pageHeading h1 {
    font-size:26px;
  }
  .pageHeading p {
    font-size:12px;
    max-width:none;
  }
  .pageHeading.withArt {
    min-height:0;
    flex-wrap:nowrap;
    align-items:center;
  }
  .withArt>div:first-child {
    min-width:0;
  }
  .headingArt {
    flex:0 0 116px;
    height:100px;
    border-radius:8px;
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:1px;
    margin-bottom:8px;
  }
  .demoRibbon {
    padding:10px 12px;
    gap:8px;
    align-items:flex-start;
    margin-bottom:20px;
  }
  .demoRibbon>span {
    line-height:20px;
  }
  .demoRibbon p {
    font-size:10px;
    line-height:1.9;
  }
  .metrics {
    gap:12px;
    margin-bottom:20px;
  }
  .metricCard {
    padding:16px;
    min-height:154px;
  }
  .metricLabel {
    font-size:11px;
    gap:6px;
  }
  .metricCard>strong {
    font-size:28px;
    gap:4px;
  }
  .metricCard>strong small {
    font-size:10px;
  }
  .metricCard p {
    font-size:10px;
  }
  .scenarioBar {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    padding:16px;
    margin-bottom:20px;
  }
  .scenarioBar>div {
    grid-column:1/-1;
    margin:0;
  }
  .scenarioBar label {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-content:start;
    gap:8px;
    min-width:0;
    white-space:normal;
  }
  .scenarioBar label>span {
    display:block;
    line-height:1.6;
  }
  .scenarioBar label select {
    width:100%;
    min-width:0;
    margin:0;
  }
  .scenarioBar>button {
    grid-column:1/-1;
    width:100%;
  }
  .panel {
    padding:18px;
  }
  .panelHead {
    gap:12px;
    margin-bottom:16px;
  }
  .panelHead small {
    font-size:11px;
  }
  .dashboardGrid {
    gap:20px;
    margin-bottom:20px;
  }
  .legend {
    font-size:10px;
  }
  .forecastChart {
    min-height:0;
  }
  .filters {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:16px 0;
  }
  .filters input[type=search] {
    grid-column:1/-1;
    width:100%;
    max-width:none;
  }
  .filters select {
    width:100%;
    min-width:0;
  }
  .filters button {
    grid-column:1/-1;
    margin:0;
    justify-self:end;
    min-height:36px;
  }
  .footnote {
    font-size:11px;
  }
  .tableWrap th,.tableWrap td {
    padding:12px;
  }
  .flowTable td:first-child {
    min-width:168px;
  }
  .flowScroller {
    max-height:65dvh;
  }
  .scrollHint {
    font-size:10px;
  }
  .inventoryMetrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 16px;
  }
  .inventoryMetrics>div:nth-child(even) {
    border:0;
    padding:0;
  }
  .inventoryMetrics strong {
    font-size:26px;
  }
  .inventoryMetrics label {
    font-size:11px;
  }
  .riskReadout {
    gap:16px;
  }
  .riskReadout strong {
    font-size:24px;
  }
  .formGrid {
    gap:16px;
  }
  .productSummary {
    gap:14px;
  }
  .productSummary>button {
    margin-left:0;
  }
  .versionCards {
    gap:12px;
  }
  .versionCard {
    padding:16px;
    min-height:156px;
  }
  .versionCard h2 {
    font-size:15px;
  }
  .pagination {
    font-size:11px;
  }
  .pagination>div {
    width:100%;
    justify-content:space-between;
    gap:8px;
  }
  .pagination button {
    min-height:40px;
  }
  .sourceGrid {
    gap:12px;
  }
  .sourceGrid .badge {
    font-size:10px;
    white-space:normal;
  }
  .sourceGrid h3 {
    font-size:13px;
  }
  .sourceGrid .panel {
    padding:16px;
  }
  .taskItem {
    gap:12px;
    padding:20px 0;
  }
  .taskButtons button {
    min-height:40px;
  }
  .taskMeta .code {
    overflow-wrap:anywhere;
  }
  .spaced {
    margin-top:20px;
  }
  .connectorGrid {
    gap:12px;
  }
  .connectorGrid>div {
    padding:16px;
  }
  .modalActions {
    margin-top:20px;
    padding-top:16px;
  }
  dialog {
    padding:20px;
    max-height:calc(100dvh - 32px);
    width:calc(100% - 24px);
  }
  footer {
    margin-top:24px;
    gap:6px;
    font-size:10px;
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:380px) {
  .crumb {
    font-size:0;
  }
  .crumb strong {
    font-size:11px;
  }
  .crumb span {
    display:none;
  }
  .headingArt {
    display:none;
  }
  .metricCard {
    padding:12px;
  }
  .metricCard>strong {
    font-size:25px;
  }
  .metricLabel>span {
    display:none;
  }
  .versionCards,.formGrid,.riskReadout,.parallelNodes {
    grid-template-columns:1fr;
  }
  .taskTabs {
    gap:4px;
  }
  .taskTabs button {
    padding:8px 10px;
  }
  .scenarioBar {
    grid-template-columns:1fr;
  }
  .scenarioBar label {
    grid-column:1/-1;
  }
  .pagination button {
    padding:7px 9px;
  }
}
@media(forced-colors:active) {
  select:not([multiple]):not([size]) {
    appearance:auto;
    -webkit-appearance:menulist;
    background-image:none;
    padding-right:12px;
  }
  nav a.active {
    outline:2px solid Highlight;
  }
  .brandMark {
    forced-color-adjust:none;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
