:root {
  --paper: #f3eee2;
  --paper-deep: #e5dccb;
  --paper-soft: #faf6eb;
  --forest: #173b2d;
  --forest-2: #0d2a20;
  --forest-3: #285642;
  --lime: #d8e98e;
  --lime-hot: #ebff9f;
  --rust: #9e4a2f;
  --amber: #c8832d;
  --ink: #172a22;
  --muted: #637168;
  --line: rgba(23, 59, 45, .2);
  --line-light: rgba(243, 238, 226, .18);
  --panel: #fbf8ef;
  --shadow: 0 18px 60px rgba(13, 42, 32, .12);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--forest-2);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 59, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 59, 45, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
p, h1, h2, h3, h4, h5, ul, ol, dl { margin-top: 0; }
ul, ol { padding-left: 1.2em; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
code {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: .86em;
  letter-spacing: -.02em;
}

::selection { color: var(--forest-2); background: var(--lime-hot); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--forest-2);
  background: var(--lime-hot);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.kicker {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.console-header {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 233, 142, .14), transparent 28%),
    linear-gradient(115deg, var(--forest-2), var(--forest));
  border-bottom: 1px solid var(--line-light);
}

.console-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(216, 233, 142, .28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 233, 142, .28) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, transparent 8%, black 70%, transparent);
}

.console-header__bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid var(--line-light);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.back-link {
  justify-self: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
  opacity: .76;
}
.back-link:hover { opacity: 1; color: var(--lime); }

.demo-stamp {
  padding: 6px 13px;
  color: var(--forest-2);
  background: var(--lime-hot);
  font-weight: 800;
  letter-spacing: .12em;
}

.header-clock { justify-self: end; opacity: .74; }
.header-clock strong { color: var(--lime); font-weight: 600; }

.console-header__hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .82fr) 210px;
  gap: clamp(28px, 4vw, 70px);
  align-items: end;
  max-width: 1440px;
  min-height: 300px;
  margin: 0 auto;
  padding: 48px clamp(24px, 4vw, 58px) 40px;
}

.hero-identity .kicker { color: var(--lime); }
.hero-identity h1 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.2vw, 96px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: .98;
}
.hero-identity h1 em { color: var(--lime); font-style: normal; }

.hero-thesis {
  align-self: center;
  max-width: 480px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.hero-thesis > p {
  margin-bottom: 24px;
  color: rgba(243, 238, 226, .78);
  font-size: 16px;
  line-height: 1.85;
}
.premise-row { display: flex; flex-wrap: wrap; gap: 7px; }
.premise {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--line-light);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.premise--active { color: var(--forest-2); background: var(--lime); border-color: var(--lime); }
.premise--boundary { color: #f1b69e; border-color: rgba(241, 182, 158, .55); }

.hero-seal {
  position: relative;
  align-self: center;
  padding: 18px 18px 16px;
  color: var(--lime);
  border: 1px solid rgba(216, 233, 142, .5);
  box-shadow: inset 0 0 0 4px var(--forest), inset 0 0 0 5px rgba(216, 233, 142, .28);
  font-family: var(--mono);
  text-align: center;
  transform: rotate(-1.8deg);
}
.hero-seal span { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: .24em; }
.hero-seal strong { display: block; font-family: var(--serif); font-size: 27px; line-height: 1.25; letter-spacing: .08em; }
.hero-seal small { display: block; margin-top: 12px; color: rgba(243, 238, 226, .56); font-size: 10px; }

.ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  min-height: 42px;
  padding: 7px clamp(20px, 4vw, 58px);
  color: rgba(23, 42, 34, .75);
  background: var(--lime);
  border-bottom: 1px solid var(--forest);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
}
.ticker span { white-space: nowrap; }
.ticker__label { padding-right: 16px; border-right: 1px solid rgba(23, 42, 34, .35); color: var(--forest-2); font-weight: 800; }
.ticker__right { margin-left: auto; color: var(--rust); }
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 59, 45, .16);
  animation: status-pulse 2.8s ease-in-out infinite;
}

/* Operations wall: dense overview first, detailed control room below. */
.monitor-wall {
  position: relative;
  padding: 34px clamp(24px, 4vw, 58px) 38px;
  color: var(--paper);
  background:
    linear-gradient(rgba(216, 233, 142, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 233, 142, .055) 1px, transparent 1px),
    radial-gradient(circle at 76% 0%, rgba(216, 233, 142, .12), transparent 27%),
    #071e17;
  background-size: 48px 48px, 48px 48px, auto, auto;
  border-bottom: 1px solid rgba(216, 233, 142, .28);
}
.monitor-wall::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--amber) 58%, var(--rust));
}
.wall-head,
.wall-dashboard { width: 100%; max-width: 1600px; margin-inline: auto; }
.wall-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.wall-head .kicker { margin-bottom: 7px; color: var(--lime); }
.wall-head h2 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.wall-head > div > p:last-child { margin: 0; color: rgba(243, 238, 226, .66); font-size: 17px; }
.wall-health {
  flex: 0 0 auto;
  min-width: 260px;
  padding: 14px 17px;
  border: 1px solid rgba(216, 233, 142, .5);
  background: rgba(216, 233, 142, .07);
  box-shadow: inset 4px 0 0 var(--lime);
}
.wall-health__signal { display: flex; align-items: center; gap: 8px; color: var(--lime); font-family: var(--mono); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.wall-health__signal i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(216, 233, 142, .13); animation: status-pulse 2.8s ease-in-out infinite; }
.wall-health strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.wall-health small { display: block; margin-top: 3px; color: rgba(243, 238, 226, .62); font-family: var(--mono); font-size: 14px; }

.wall-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(560px, 1.75fr) minmax(280px, .85fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(216, 233, 142, .24);
  border: 1px solid rgba(216, 233, 142, .24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
.wall-summary,
.wall-processes,
.wall-actions { min-width: 0; background: rgba(7, 30, 23, .94); }
.wall-summary { display: flex; flex-direction: column; padding: 22px; }
.wall-summary__title > span { color: rgba(243, 238, 226, .62); font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.wall-summary__title > strong {
  display: block;
  margin: 3px 0 7px;
  color: var(--lime-hot);
  font-family: var(--mono);
  font-size: clamp(45px, 4.2vw, 68px);
  font-weight: 650;
  letter-spacing: -.08em;
  line-height: 1;
  white-space: nowrap;
}
.wall-summary__title > strong small { color: rgba(243, 238, 226, .58); font-size: 16px; letter-spacing: -.02em; white-space: normal; }
.wall-summary__title > p { margin: 6px 0 0; color: rgba(243, 238, 226, .57); font-size: 15px; line-height: 1.5; }
.wall-progress { height: 8px; margin-top: 14px; background: rgba(243, 238, 226, .12); }
.wall-progress i { display: block; width: 85.2%; height: 100%; background: linear-gradient(90deg, var(--lime), var(--lime-hot)); transform-origin: left; animation: bar-draw .8s ease both; }

.wall-stats { display: grid; gap: 1px; margin: 20px 0 0; background: rgba(216, 233, 142, .16); border: 1px solid rgba(216, 233, 142, .16); }
.wall-stats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 10px 12px; background: rgba(13, 42, 32, .92); }
.wall-stats dt { color: rgba(243, 238, 226, .65); font-size: 15px; }
.wall-stats dd { margin: 0; color: var(--paper); font-family: var(--mono); font-size: 25px; font-weight: 650; letter-spacing: -.05em; }
.wall-stats dd small { color: rgba(243, 238, 226, .6); font-size: 14px; letter-spacing: 0; }
.wall-stats div > span { grid-column: 1 / -1; color: rgba(243, 238, 226, .44); font-family: var(--mono); font-size: 14px; }
.wall-stats__alarm dd { color: #ffb392; }
.wall-summary__footer { display: grid; gap: 7px; margin-top: auto; padding-top: 18px; color: rgba(243, 238, 226, .7); font-size: 14px; }
.wall-summary__footer span { display: flex; align-items: center; gap: 8px; }
.wall-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.wall-dot--warn { background: var(--amber); }
.wall-jump { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-top: 15px; padding: 9px 12px; color: var(--forest-2); background: var(--lime); font-family: var(--mono); font-size: 14px; font-weight: 800; text-decoration: none; }
.wall-jump:hover { background: var(--lime-hot); }
.wall-jump span { font-size: 20px; }

.wall-processes { padding: 18px 0 0; }
.wall-panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 0 18px 13px; }
.wall-panel-head > div > span { color: rgba(216, 233, 142, .68); font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.wall-panel-head h3 { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.wall-panel-head > p { margin: 0; padding: 4px 7px; color: var(--lime); border: 1px solid rgba(216, 233, 142, .35); font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.wall-flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: rgba(216, 233, 142, .18); border-block: 1px solid rgba(216, 233, 142, .18); }
.wall-process {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 159px;
  padding: 13px 11px 12px;
  overflow: hidden;
  color: var(--paper);
  background: rgba(13, 42, 32, .82);
  border: 0;
  text-align: left;
  transition: background .18s ease, color .18s ease;
}
.wall-process:hover,
.wall-process:focus-visible { color: var(--forest-2); background: var(--paper-soft); }
.wall-process[aria-pressed="true"] { color: var(--forest-2); background: var(--paper-soft); box-shadow: inset 0 -5px 0 var(--lime); }
.wall-process__index { color: rgba(243, 238, 226, .45); font-family: var(--mono); font-size: 14px; }
.wall-process__state { display: inline-flex; align-items: center; gap: 5px; margin: 11px 0 7px; color: var(--lime); font-family: var(--mono); font-size: 14px; font-weight: 750; }
.wall-process__state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wall-process--warn .wall-process__state { color: #ffb392; }
.wall-process--wait .wall-process__state { color: #e5bd7d; }
.wall-process strong { min-height: 39px; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.2; }
.wall-process__reading { margin-top: auto; color: var(--lime); font-family: var(--mono); font-size: 20px; font-weight: 650; line-height: 1.1; letter-spacing: -.04em; }
.wall-process__reading small { display: inline; color: inherit; font-size: 14px; letter-spacing: 0; }
.wall-process:hover .wall-process__index,
.wall-process:hover .wall-process__state,
.wall-process:hover .wall-process__reading,
.wall-process[aria-pressed="true"] .wall-process__index,
.wall-process[aria-pressed="true"] .wall-process__state,
.wall-process[aria-pressed="true"] .wall-process__reading { color: var(--forest-3); }
.wall-processes__hint { margin: 0; padding: 11px 18px 14px; color: rgba(243, 238, 226, .58); font-size: 15px; line-height: 1.55; }

.wall-actions { display: flex; flex-direction: column; padding: 18px; }
.wall-panel-head--actions { padding: 0 0 13px; }
.wall-panel-head--actions > p { color: #ffb392; border-color: rgba(255, 179, 146, .45); }
.wall-alert { display: grid; gap: 3px; padding: 12px 13px; color: var(--paper); background: rgba(158, 74, 47, .17); border: 1px solid rgba(255, 179, 146, .45); border-left: 4px solid #ffb392; text-decoration: none; }
.wall-alert + .wall-alert { margin-top: 8px; }
.wall-alert--notice { background: rgba(200, 131, 45, .13); border-color: rgba(229, 189, 125, .38); border-left-color: #e5bd7d; }
.wall-alert:hover { background: rgba(216, 233, 142, .13); border-color: var(--lime); }
.wall-alert__meta { color: rgba(243, 238, 226, .58); font-family: var(--mono); font-size: 14px; }
.wall-alert strong { font-size: 17px; line-height: 1.4; }
.wall-alert__detail { color: rgba(243, 238, 226, .72); font-size: 14px; }
.wall-alert__state { margin-top: 4px; color: var(--lime); font-family: var(--mono); font-size: 14px; font-weight: 800; }
.wall-batch { display: block; margin-top: 11px; padding: 14px; color: var(--forest-2); background: var(--lime); text-decoration: none; }
.wall-batch:hover { background: var(--lime-hot); }
.wall-batch > span { display: block; font-family: var(--mono); font-size: 14px; font-weight: 750; }
.wall-batch > strong { display: block; margin: 2px 0 9px; font-family: var(--mono); font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.wall-batch > div { display: flex; gap: 8px; align-items: baseline; }
.wall-batch b { font-family: var(--mono); font-size: 27px; letter-spacing: -.06em; }
.wall-batch div span { font-size: 14px; font-weight: 700; }
.wall-batch small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; }
.wall-batch i { display: block; margin-top: 10px; font-family: var(--mono); font-size: 14px; font-style: normal; font-weight: 800; }
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px clamp(24px, 4vw, 58px);
}

.section-rule {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.section-rule .kicker { align-self: center; margin: 0; color: var(--forest-3); }
.section-rule h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.15vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.section-rule__meta { padding-bottom: 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; white-space: nowrap; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.kpi-card {
  min-width: 0;
  min-height: 172px;
  padding: 20px 20px 16px;
  background: var(--panel);
}
.kpi-card__label { margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.kpi-card__value {
  margin-bottom: 15px;
  color: var(--forest);
  font-family: var(--mono);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 650;
  letter-spacing: -.07em;
  line-height: 1;
  white-space: nowrap;
}
.kpi-card__value small { font-size: .36em; letter-spacing: -.02em; }
.kpi-card__note { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.kpi-card--accent { color: var(--paper); background: var(--forest); }
.kpi-card--accent .kpi-card__label,
.kpi-card--accent .kpi-card__note { color: rgba(243, 238, 226, .62); }
.kpi-card--accent .kpi-card__value { color: var(--lime-hot); }
.kpi-card--accent .quality-bar { background: rgba(243, 238, 226, .16); }
.kpi-card--alarm .kpi-card__value { font-family: var(--sans); font-size: clamp(23px, 1.7vw, 30px); letter-spacing: -.05em; }
.quality-bar { width: 100%; height: 4px; background: var(--paper-deep); }
.quality-bar span {
  display: block;
  width: var(--fill);
  height: 100%;
  background: var(--forest-3);
  transform-origin: left;
  animation: bar-draw .7s ease both;
}
.kpi-card--accent .quality-bar span { background: var(--lime); }
.alarm-split { display: flex; gap: 18px; padding-bottom: 6px; color: var(--rust); font-family: var(--mono); font-size: 11px; font-weight: 700; }

.section--process {
  max-width: none;
  width: 100%;
  color: var(--paper);
  background:
    radial-gradient(circle at 75% 8%, rgba(216, 233, 142, .08), transparent 24%),
    var(--forest-2);
  border-block: 1px solid var(--forest);
}
.section--process > * { max-width: 1324px; margin-inline: auto; }
.section-rule--light { border-color: var(--line-light); }
.section-rule--light .kicker { color: var(--lime); }
.section-rule--light h2 { color: var(--paper); }
.section-rule--light .section-rule__meta { color: rgba(243, 238, 226, .46); }

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 16px;
  align-items: stretch;
}
.process-zone {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-light);
  background: rgba(243, 238, 226, .035);
}
.process-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  margin-bottom: 12px;
  color: rgba(243, 238, 226, .64);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
}
.process-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.process-legend__hint { margin-left: auto; }
.legend-mark { display: inline-block; width: 14px; height: 2px; background: var(--lime); }
.legend-mark--wait { background: rgba(243, 238, 226, .4); }
.legend-mark--warn { background: var(--rust); }

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(134px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-color: var(--lime) rgba(243, 238, 226, .12);
  scrollbar-width: thin;
}
.process-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 38px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime) 9%, var(--lime) 91%, transparent);
  opacity: .52;
}
.process-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 188px;
  padding: 11px 11px 13px;
  overflow: hidden;
  color: var(--paper);
  background: var(--forest);
  border: 1px solid var(--line-light);
  text-align: left;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.process-node:hover { color: var(--forest-2); background: var(--paper-soft); border-color: var(--lime); transform: translateY(-3px); }
.process-node[aria-pressed="true"] { color: var(--forest-2); background: var(--paper-soft); border-color: var(--lime); box-shadow: inset 0 -5px 0 var(--lime); }
.process-node:focus-visible { outline-color: var(--lime-hot); }
.node-index { align-self: flex-start; margin-bottom: 5px; color: rgba(243, 238, 226, .46); font-family: var(--mono); font-size: 11px; }
.process-node:hover .node-index,
.process-node[aria-pressed="true"] .node-index { color: var(--forest-3); }
.node-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 9px; color: var(--lime); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.process-node:hover .node-state,
.process-node[aria-pressed="true"] .node-state { color: var(--forest-3); }
.node-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.process-node--warn .node-state { color: #f0a98d; }
.process-node--wait .node-state { color: rgba(243, 238, 226, .52); }
.process-node strong { min-height: 38px; margin-bottom: 12px; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.node-reading { margin-top: auto; color: var(--lime); font-family: var(--mono); font-size: 21px; font-weight: 650; letter-spacing: -.04em; line-height: 1.1; }
.process-node:hover .node-reading,
.process-node[aria-pressed="true"] .node-reading { color: var(--forest); }
.node-reading small { font-size: 11px; letter-spacing: 0; }
.node-meta { margin-top: 4px; color: rgba(243, 238, 226, .48); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.process-node:hover .node-meta,
.process-node[aria-pressed="true"] .node-meta { color: var(--muted); }
.quality-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  margin-top: 9px;
  padding: 2px 5px;
  color: var(--forest-3);
  border: 1px solid rgba(40, 86, 66, .26);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.quality-tag::before { content: ""; width: 4px; height: 4px; background: currentColor; }
.quality-tag--ok { color: #dceca6; }
.quality-tag--warn { color: #ffb392; border-color: rgba(255, 179, 146, .3); }
.quality-tag--delay { color: #e5bd7d; border-color: rgba(229, 189, 125, .3); }
.process-node:hover .quality-tag,
.process-node[aria-pressed="true"] .quality-tag { color: var(--forest-3); border-color: rgba(40, 86, 66, .3); }
.process-note {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  margin-top: 5px;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--line-light);
}
.process-note span { color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.process-note p { margin: 0; color: rgba(243, 238, 226, .54); font-size: 12px; line-height: 1.6; }

.detail-rail {
  min-width: 0;
  padding: 23px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--lime);
  box-shadow: 11px 11px 0 rgba(216, 233, 142, .11);
}
.detail-rail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-rail .quality-tag { margin: 0; }
.detail-rail h3 { margin: 18px 0 10px; font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.detail-summary { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.detail-grid { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.detail-grid div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail-grid dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.detail-grid dd { margin: 0; font-size: 13px; line-height: 1.5; }
.boundary-callout { padding: 13px; color: var(--paper); background: var(--forest); border-left: 4px solid var(--amber); }
.boundary-callout span { color: var(--lime); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.boundary-callout p { margin: 7px 0 0; color: rgba(243, 238, 226, .72); font-size: 12px; line-height: 1.6; }

.section--operations { padding-top: 58px; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: start; }
.event-panel,
.batch-panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 21px 23px 17px; border-bottom: 1px solid var(--line); }
.panel-head .kicker { color: var(--forest-3); }
.panel-head h3 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.035em; }
.panel-count { padding: 4px 7px; color: var(--paper); background: var(--forest); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.alarm-list { padding: 12px 12px 0; }
.alarm-row {
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 67px;
  margin-bottom: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid transparent;
  border-left: 4px solid var(--amber);
  text-align: left;
}
.alarm-row--info { border-left-color: var(--forest-3); }
.alarm-row:hover { border-color: var(--forest-3); }
.alarm-row[aria-pressed="true"] { background: #fffdf7; border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.alarm-row[data-state="closed"] { opacity: .56; }
.alarm-severity { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--rust); }
.alarm-row--info .alarm-severity { color: var(--forest-3); }
.alarm-copy { display: flex; flex-direction: column; min-width: 0; }
.alarm-copy strong { font-size: 14px; line-height: 1.4; }
.alarm-copy small { color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; }
.alarm-state { padding: 3px 6px; color: var(--rust); border: 1px solid rgba(158, 74, 47, .35); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.panel-instruction { margin: 0; padding: 2px 23px 13px; color: var(--muted); font-size: 11px; }
.alarm-detail { padding: 18px 23px 23px; border-top: 1px solid var(--line); }
.alarm-detail__top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.severity-label { color: var(--rust); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.alarm-detail h4 { margin: 6px 0 0; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.alarm-status { padding: 5px 8px; color: var(--paper); background: var(--rust); font-family: var(--mono); font-size: 10px; font-weight: 700; white-space: nowrap; }
.alarm-status[data-state="acknowledged"] { color: var(--forest); background: var(--amber); }
.alarm-status[data-state="closed"] { color: var(--paper); background: var(--forest-3); }
.alarm-reading { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 19px 0 14px; background: var(--line); border: 1px solid var(--line); }
.alarm-reading div { min-width: 0; padding: 10px; background: var(--paper-soft); }
.alarm-reading span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.alarm-reading strong { color: var(--forest); font-family: var(--mono); font-size: 19px; letter-spacing: -.05em; }
.alarm-reading strong small { font-size: 10px; }
.trend { position: relative; height: 82px; margin: 0 0 18px; overflow: hidden; background: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 20px; border-bottom: 1px solid var(--forest); }
.trend span { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 3px rgba(158, 74, 47, .12); transform: translate(-50%, -50%); }
.trend span + span::before { content: ""; position: absolute; top: 2px; right: 5px; width: 18px; height: 1px; background: var(--rust); transform: rotate(calc(var(--slope, 0) * 1deg)); transform-origin: right center; }
.trend__threshold { position: absolute; z-index: 1; top: 18%; left: 0; right: 0; display: block; height: 1px; background: var(--rust); border-top: 1px dashed rgba(158, 74, 47, .62); }
.trend__threshold b { position: absolute; right: 0; top: -14px; color: var(--rust); font-family: var(--mono); font-size: 9px; font-style: normal; }
.alarm-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.alarm-detail-grid section { min-width: 0; padding: 11px; background: var(--paper); border-top: 2px solid var(--forest-3); }
.alarm-detail-grid h5 { margin-bottom: 6px; color: var(--forest); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.alarm-detail-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.event-timeline { margin: 17px 0; padding: 0; list-style: none; }
.event-timeline li { position: relative; display: grid; grid-template-columns: 61px minmax(0, 1fr); gap: 10px; padding: 6px 0 6px 15px; color: var(--muted); font-size: 11px; }
.event-timeline li::before { content: ""; position: absolute; top: 11px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--forest-3); }
.event-timeline time { color: var(--forest); font-family: var(--mono); font-size: 10px; }
.alarm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alarm-actions button {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--forest);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}
.alarm-actions button:first-child { color: var(--paper); background: var(--forest); }
.alarm-actions button:hover:not(:disabled) { color: var(--forest-2); background: var(--lime); border-color: var(--forest); }
.alarm-actions button:disabled { cursor: not-allowed; opacity: .38; }

.batch-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 12px; background: var(--line); }
.batch-switcher button { min-width: 0; min-height: 67px; padding: 9px; color: var(--ink); background: var(--paper-soft); border: 1px solid transparent; text-align: left; }
.batch-switcher button:hover { border-color: var(--forest-3); }
.batch-switcher button[aria-selected="true"] { color: var(--paper); background: var(--forest); border-color: var(--forest); }
.batch-switcher span { display: block; margin-bottom: 5px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.batch-switcher button[aria-selected="true"] span { color: var(--lime); }
.batch-switcher strong { display: block; overflow-wrap: anywhere; font-family: var(--mono); font-size: 11px; line-height: 1.35; }
.batch-detail { padding: 0 20px 21px; }
.batch-score { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 20px 3px 17px; border-bottom: 1px solid var(--line); }
.batch-score p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.batch-score strong { display: block; margin: 3px 0 1px; color: var(--forest); font-family: var(--mono); font-size: 49px; font-weight: 650; letter-spacing: -.08em; line-height: 1; }
.batch-score strong small { font-size: 19px; }
.batch-score span { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.batch-status { text-align: right; }
.batch-status span { display: inline-block; padding: 3px 6px; color: var(--forest); background: var(--lime); font-weight: 800; }
.batch-status p { margin-top: 7px; }
.batch-route { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 17px 0; }
.batch-stop { position: relative; min-width: 0; padding-top: 15px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.batch-stop::before { content: ""; position: absolute; top: 3px; left: 0; width: 7px; height: 7px; border: 1px solid var(--forest-3); border-radius: 50%; background: var(--paper-soft); }
.batch-stop::after { content: ""; position: absolute; top: 6px; left: 8px; right: -3px; height: 1px; background: var(--line); }
.batch-stop:last-child::after { display: none; }
.batch-stop small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 9px; }
.batch-stop--done { color: var(--forest); }
.batch-stop--done::before { background: var(--forest); }
.batch-stop--current { color: var(--rust); font-weight: 700; }
.batch-stop--current::before { border: 2px solid var(--rust); background: var(--paper-soft); box-shadow: 0 0 0 3px rgba(158, 74, 47, .13); }
.trace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trace-grid section { min-width: 0; padding: 11px; background: var(--paper); border-top: 2px solid var(--forest-3); }
.trace-grid section > span { color: var(--forest-3); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.trace-grid h5 { margin: 5px 0; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.25; }
.trace-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.trace-grid .trace-gap { border-top-color: var(--amber); background: #f8ecd8; }
.trace-grid .trace-gap > span { color: var(--rust); }
.batch-event { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; margin-top: 9px; padding: 11px; color: var(--paper); background: var(--forest); }
.batch-event span { color: var(--lime); font-family: var(--mono); font-size: 10px; font-weight: 800; }
.batch-event p { margin: 0; color: rgba(243, 238, 226, .72); font-size: 11px; line-height: 1.55; }

.section--boundary {
  max-width: none;
  width: 100%;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(216, 233, 142, .035) 1px, transparent 1px),
    var(--forest);
  background-size: 80px 100%;
  border-top: 1px solid var(--forest-2);
}
.section--boundary > * { max-width: 1324px; margin-inline: auto; }
.boundary-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding: 8px 0 22px; border-bottom: 1px solid var(--line-light); }
.boundary-intro p { max-width: 760px; margin: 0; color: rgba(243, 238, 226, .72); font-family: var(--serif); font-size: clamp(19px, 2vw, 26px); line-height: 1.65; }
.boundary-intro > span { color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.capability-column { min-width: 0; background: rgba(13, 42, 32, .44); border: 1px solid var(--line-light); }
.capability-column header { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-bottom: 1px solid var(--line-light); }
.capability-column header > span { color: var(--lime); font-family: var(--mono); font-size: 12px; }
.capability-column header p { margin: 0 0 3px; color: rgba(243, 238, 226, .46); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.capability-column h3 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.capability-column ul { margin: 0; padding: 16px 18px 19px 36px; }
.capability-column li { margin-bottom: 9px; padding-left: 4px; color: rgba(243, 238, 226, .7); font-size: 13px; line-height: 1.6; }
.capability-column li::marker { color: var(--lime); font-family: var(--mono); font-size: 11px; }
.capability-column--deliver { border-top: 4px solid var(--lime); }
.capability-column--depends { border-top: 4px solid var(--amber); }
.capability-column--exclude { border-top: 4px solid var(--rust); }
.capability-column--depends header > span { color: #e5bd7d; }
.capability-column--exclude header > span { color: #f1b69e; }
.capability-column--exclude li::marker { color: #f1b69e; }
.scope-note { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-top: 20px; padding: 16px 0 0; border-top: 1px solid var(--line-light); }
.scope-note__label { color: var(--rust); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.scope-note p { margin: 0; color: rgba(243, 238, 226, .62); font-size: 12px; }
.scope-note p strong { color: var(--lime); }
.scope-note a { min-height: 44px; display: inline-flex; align-items: center; color: var(--lime); font-family: var(--mono); font-size: 10px; text-decoration: none; white-space: nowrap; }
.scope-note a:hover { color: var(--lime-hot); text-decoration: underline; }

.console-footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 30px;
  align-items: center;
  padding: 25px clamp(24px, 4vw, 58px);
  color: var(--ink);
  background: var(--lime);
  border-top: 1px solid var(--forest);
}
.footer-mark { font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.console-footer p { margin: 3px 0 0; font-size: 11px; line-height: 1.55; }
.footer-warning { border-left: 1px solid rgba(23, 42, 34, .35); padding-left: 24px; }
.footer-warning strong { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.console-footer > a { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; }

@keyframes status-pulse {
  0%, 100% { opacity: .42; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes bar-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1080px) {
  .console-header__hero { grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); }
  .hero-seal { display: none; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-card:nth-child(4), .kpi-card:nth-child(5) { min-height: 145px; }
  .operations-grid { grid-template-columns: 1fr; }
  .process-layout { grid-template-columns: 1fr; }
  .detail-rail { display: grid; grid-template-columns: minmax(0, .65fr) minmax(300px, 1fr); gap: 0 25px; }
  .detail-rail__head, .detail-rail h3, .detail-summary { grid-column: 1; }
  .detail-grid { grid-column: 2; grid-row: 1 / span 3; margin-bottom: 0; }
  .boundary-callout { grid-column: 1 / -1; margin-top: 19px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  body { font-size: 16px; }
  .console-header__bar { grid-template-columns: 1fr auto; gap: 7px 12px; padding-block: 8px; }
  .back-link { min-height: 32px; }
  .demo-stamp { justify-self: end; }
  .header-clock { grid-column: 1 / -1; justify-self: start; }
  .console-header__hero { display: block; min-height: 0; padding: 33px 20px 29px; }
  .hero-identity h1 { font-size: clamp(49px, 15.5vw, 68px); }
  .hero-thesis { max-width: none; margin-top: 28px; padding-top: 19px; }
  .hero-thesis > p { font-size: 14px; }
  .premise { white-space: normal; }
  .ticker { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; padding: 10px 20px; }
  .ticker__label { border-right: 0; }
  .ticker__right { margin-left: 0; grid-column: 1 / -1; }
.section { padding: 35px 18px; }
  .section-rule { grid-template-columns: 1fr auto; gap: 7px 12px; margin-bottom: 19px; }
  .section-rule .kicker { grid-column: 1 / -1; }
  .section-rule h2 { font-size: 34px; }
  .section-rule__meta { font-size: 9px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card, .kpi-card:nth-child(4), .kpi-card:nth-child(5) { min-height: 135px; padding: 15px; }
  .kpi-card:last-child { grid-column: 1 / -1; min-height: 120px; }
  .kpi-card__value { font-size: 30px; }
  .kpi-card--alarm .kpi-card__value { font-size: 25px; }
  .process-layout { display: block; }
  .process-zone { padding: 10px; }
  .process-legend__hint { display: none !important; }
  .process-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .process-node { flex: 0 0 230px; min-width: 230px; scroll-snap-align: start; }
  .process-track::before { display: none; }
  .process-note { grid-template-columns: 1fr; gap: 4px; }
  .detail-rail { display: block; margin-top: 12px; padding: 18px; box-shadow: 6px 6px 0 rgba(216, 233, 142, .12); }
  .detail-rail h3 { font-size: 30px; }
  .detail-grid { margin-bottom: 18px; }
  .detail-grid div { grid-template-columns: 82px minmax(0, 1fr); }
  .boundary-callout { margin-top: 0; }
  .panel-head { padding: 17px 15px 14px; }
  .panel-head h3 { font-size: 24px; }
  .alarm-list { padding: 9px 9px 0; }
  .alarm-row { grid-template-columns: 57px minmax(0, 1fr); gap: 8px; padding: 9px; }
  .alarm-state { grid-column: 2; justify-self: start; }
  .panel-instruction { padding-inline: 15px; }
  .alarm-detail { padding: 15px; }
  .alarm-detail__top { display: block; }
  .alarm-detail h4 { font-size: 23px; }
  .alarm-status { display: inline-block; margin-top: 8px; }
  .alarm-reading { grid-template-columns: 1fr 1fr; }
  .alarm-detail-grid { grid-template-columns: 1fr; }
  .alarm-actions { grid-template-columns: 1fr; }
  .batch-switcher { grid-template-columns: 1fr; padding: 9px; }
  .batch-switcher button { min-height: 52px; }
  .batch-detail { padding-inline: 14px; }
  .batch-score { gap: 10px; }
  .batch-score strong { font-size: 42px; }
  .batch-route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 4px; }
  .batch-stop:nth-child(4)::after { display: none; }
  .trace-grid { grid-template-columns: 1fr; }
  .batch-event { grid-template-columns: 1fr; gap: 2px; }
  .boundary-intro { grid-template-columns: 1fr; gap: 14px; }
  .boundary-intro > span { white-space: normal; }
  .capability-grid { grid-template-columns: 1fr; }
  .scope-note { grid-template-columns: 1fr; gap: 10px; }
  .console-footer { grid-template-columns: 1fr; gap: 15px; padding: 22px 20px; }
  .footer-warning { padding-left: 0; padding-top: 12px; border-left: 0; border-top: 1px solid rgba(23, 42, 34, .3); }
}

@media (max-width: 390px) {
.section { padding-inline: 14px; }
  .console-header__hero { padding-inline: 16px; }
  .ticker { padding-inline: 16px; }
  .kpi-card__value { font-size: 27px; }
  .section-rule h2 { font-size: 31px; }
  .hero-thesis .premise-row { display: grid; grid-template-columns: 1fr; }
  .premise { justify-content: center; }
  .batch-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .batch-stop:nth-child(3n)::after { display: none; }
}

/* Typography is intentionally restrained; hierarchy comes from spacing, weight and contrast. */
body { font-size: 17px; }
code { font-size: .9em; }

.kicker,
.console-header__bar,
.ticker,
.premise,
.hero-seal span,
.hero-seal small,
.section-rule__meta,
.kpi-card__label,
.kpi-card__note,
.alarm-split,
.process-legend,
.node-index,
.node-state,
.node-reading small,
.node-meta,
.quality-tag,
.detail-grid dt,
.boundary-callout span,
.panel-count,
.alarm-severity,
.alarm-state,
.severity-label,
.alarm-status,
.alarm-reading span,
.alarm-reading strong small,
.trend__threshold b,
.alarm-detail-grid h5,
.event-timeline time,
.batch-switcher span,
.batch-score p,
.batch-score span,
.batch-stop,
.batch-stop small,
.trace-grid section > span,
.batch-event span,
.boundary-intro > span,
.capability-column header p,
.scope-note__label,
.scope-note a,
.footer-mark,
.console-footer > a { font-size: 13px; }

.console-header__hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .82fr) 180px;
  min-height: 214px;
  padding-top: 30px;
  padding-bottom: 28px;
}
.hero-identity h1 { font-size: clamp(46px, 5vw, 68px); }
.hero-thesis { padding-top: 20px; }
.hero-thesis > p { margin-bottom: 18px; font-size: 15px; line-height: 1.7; }
.hero-seal strong { font-size: 22px; }
.hero-seal small { line-height: 1.45; }
.hero-seal span { font-size: 11px; }

.kpi-card { min-height: 166px; }
.process-node { min-height: 206px; }
.process-node strong { font-size: 20px; }
.node-reading { font-size: 23px; }
.quality-tag { min-height: 27px; white-space: normal; line-height: 1.25; }
.process-note p,
.detail-summary,
.detail-grid dd,
.boundary-callout p { font-size: 15px; }
.alarm-copy strong { font-size: 17px; }
.alarm-copy small { font-size: 14px; }
.panel-instruction,
.alarm-detail-grid p,
.event-timeline li,
.alarm-actions button { font-size: 14px; }
.alarm-reading strong { font-size: 23px; }
.batch-switcher button { min-height: 72px; }
.trace-grid h5 { font-size: 18px; }
.trace-grid p,
.batch-event p { font-size: 14px; }
.capability-column li { font-size: 15px; }
.scope-note p { font-size: 14px; }
.console-footer p,
.footer-warning strong { font-size: 14px; }

/* Command wall: a bounded 16:9-style operations screen rather than another content section. */
.monitor-wall {
  padding: 24px clamp(18px, 3vw, 46px) 34px;
  background:
    linear-gradient(rgba(216, 233, 142, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 233, 142, .035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(84, 142, 99, .16), transparent 42%),
    #041510;
  background-size: 40px 40px, 40px 40px, auto, auto;
}
.monitor-wall::before { height: 3px; background: linear-gradient(90deg, #6f9874, var(--lime) 34%, var(--amber) 76%, var(--rust)); }
.wall-screen {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  background: #061d16;
  border: 1px solid rgba(216, 233, 142, .38);
  box-shadow:
    0 0 0 5px rgba(4, 21, 16, .78),
    0 0 0 6px rgba(216, 233, 142, .12),
    0 30px 90px rgba(0, 0, 0, .42),
    inset 0 0 80px rgba(58, 107, 71, .08);
}
.wall-screen::before,
.wall-screen::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 24px;
  height: 24px;
  pointer-events: none;
  border-color: var(--lime);
  opacity: .75;
}
.wall-screen::before { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.wall-screen::after { right: 8px; bottom: 8px; border-right: 2px solid; border-bottom: 2px solid; }

.wall-consolebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 7px 18px;
  color: rgba(243, 238, 226, .68);
  background: rgba(11, 44, 33, .92);
  border-bottom: 1px solid rgba(216, 233, 142, .22);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.wall-brand { display: flex; align-items: center; gap: 10px; }
.wall-brand strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 32px;
  color: var(--forest-2);
  background: var(--lime);
  font-size: 17px;
  letter-spacing: -.04em;
}
.wall-brand span { color: var(--lime); font-size: 11px; line-height: 1.25; letter-spacing: .12em; }
.wall-consolebar__status { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; }
.wall-consolebar__status > span { white-space: nowrap; }
.wall-live { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); font-weight: 800; }
.wall-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(216, 233, 142, .12), 0 0 14px var(--lime); animation: status-pulse 2.4s ease-in-out infinite; }
.wall-consolebar__clock { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 10px; justify-items: end; }
.wall-consolebar__clock span { color: rgba(243, 238, 226, .46); font-size: 11px; }
.wall-consolebar__clock strong { color: var(--paper); font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.wall-consolebar__clock small { grid-column: 1 / -1; color: rgba(243, 238, 226, .46); font-size: 11px; }

.wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 15px 20px 14px;
  background: linear-gradient(90deg, rgba(13, 52, 38, .95), rgba(6, 29, 22, .88));
  border-bottom: 1px solid rgba(216, 233, 142, .22);
}
.wall-head .kicker { margin-bottom: 4px; font-size: 11px; color: rgba(216, 233, 142, .72); }
.wall-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(25px, 2.8vw, 37px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.wall-head > div > p:last-child { margin: 4px 0 0; color: rgba(243, 238, 226, .58); font-size: 13px; }
.wall-health {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
  align-items: center;
  min-width: 218px;
  padding: 9px 12px;
  background: rgba(216, 233, 142, .055);
  border: 1px solid rgba(216, 233, 142, .35);
  box-shadow: inset 3px 0 0 var(--lime);
}
.wall-health__signal { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 7px; color: var(--lime); font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.wall-health__signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(216, 233, 142, .12); animation: status-pulse 2.8s ease-in-out infinite; }
.wall-health strong { grid-column: 2; grid-row: 1 / span 2; justify-self: end; color: var(--lime-hot); font-family: var(--sans); font-size: 25px; line-height: 1; }
.wall-health small { grid-column: 1; grid-row: 2; color: rgba(243, 238, 226, .48); font-family: var(--mono); font-size: 11px; }

.wall-dashboard {
  display: grid;
  grid-template-columns: 240px minmax(500px, 1fr) 286px;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: rgba(216, 233, 142, .18);
  border: 0;
  box-shadow: none;
}
.wall-summary,
.wall-processes,
.wall-actions { min-width: 0; background: rgba(5, 27, 20, .98); }
.wall-panel-label {
  margin-bottom: 14px;
  color: rgba(216, 233, 142, .6);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.wall-summary { display: flex; flex-direction: column; padding: 17px; }
.wall-load { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 13px; align-items: center; }
.wall-load__gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) 0 85.2%, rgba(243, 238, 226, .11) 85.2% 100%);
  box-shadow: 0 0 24px rgba(216, 233, 142, .1);
}
.wall-load__gauge::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #09261c; border: 1px solid rgba(216, 233, 142, .18); }
.wall-load__gauge > span { position: relative; display: flex; align-items: baseline; color: var(--lime-hot); font-family: var(--mono); font-size: 24px; font-weight: 650; letter-spacing: -.07em; }
.wall-load__gauge small { margin-left: 1px; font-size: 11px; letter-spacing: 0; }
.wall-load__copy strong { display: block; color: var(--paper); font-family: var(--mono); font-size: 23px; line-height: 1.1; letter-spacing: -.06em; white-space: nowrap; }
.wall-load__copy strong small { display: block; margin-top: 4px; color: rgba(243, 238, 226, .48); font-size: 11px; letter-spacing: 0; }
.wall-load__copy p { margin: 5px 0 0; color: rgba(243, 238, 226, .46); font-size: 11px; line-height: 1.45; }
.wall-progress { height: 4px; margin-top: 9px; background: rgba(243, 238, 226, .1); }
.wall-progress i { display: block; width: 85.2%; height: 100%; background: linear-gradient(90deg, #7fa57b, var(--lime-hot)); transform-origin: left; animation: bar-draw .8s ease both; }

.wall-stats { display: grid; gap: 1px; margin: 16px 0 0; background: rgba(216, 233, 142, .13); border: 1px solid rgba(216, 233, 142, .13); }
.wall-stats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; align-items: baseline; padding: 8px 10px; background: rgba(9, 40, 30, .96); }
.wall-stats dt { color: rgba(243, 238, 226, .66); font-size: 12px; }
.wall-stats dd { margin: 0; color: var(--paper); font-family: var(--mono); font-size: 19px; font-weight: 650; letter-spacing: -.05em; }
.wall-stats dd small { color: rgba(243, 238, 226, .54); font-size: 11px; letter-spacing: 0; }
.wall-stats div > span { grid-column: 1 / -1; color: rgba(243, 238, 226, .38); font-family: var(--mono); font-size: 11px; }
.wall-stats__alarm dd { color: #ffb392; }
.wall-summary__footer { display: grid; gap: 5px; margin-top: auto; padding-top: 13px; color: rgba(243, 238, 226, .62); font-size: 11px; }
.wall-summary__footer span { display: flex; align-items: center; gap: 7px; }
.wall-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.wall-dot--warn { background: var(--amber); }
.wall-jump { display: flex; justify-content: space-between; align-items: center; min-height: 36px; margin-top: 12px; padding: 7px 10px; color: var(--forest-2); background: var(--lime); font-family: var(--mono); font-size: 11px; font-weight: 800; text-decoration: none; }
.wall-jump:hover { background: var(--lime-hot); }
.wall-jump span { font-size: 16px; }

.wall-processes { padding: 0; }
.wall-panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 15px 16px 10px; }
.wall-panel-head > div > span { color: rgba(216, 233, 142, .62); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.wall-panel-head h3 { margin: 2px 0 0; font-family: var(--sans); font-size: clamp(18px, 1.8vw, 23px); font-weight: 650; line-height: 1.18; letter-spacing: -.03em; }
.wall-panel-head > p { margin: 0; padding: 3px 6px; color: var(--lime); border: 1px solid rgba(216, 233, 142, .32); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.wall-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 0 8px;
  background: linear-gradient(180deg, rgba(12, 47, 35, .94), rgba(6, 28, 21, .96));
  border-block: 1px solid rgba(216, 233, 142, .17);
}
.wall-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 32px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 233, 142, .22), rgba(216, 233, 142, .55), rgba(216, 233, 142, .22));
}
.wall-process {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 150px;
  padding: 12px 7px 11px;
  overflow: visible;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(216, 233, 142, .08);
  text-align: center;
  transition: background .18s ease, box-shadow .18s ease;
}
.wall-process:first-child { border-left: 0; }
.wall-process::after {
  content: "›";
  position: absolute;
  z-index: 3;
  top: 17px;
  right: -6px;
  width: 12px;
  color: rgba(216, 233, 142, .48);
  background: #08251b;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 28px;
}
.wall-process:last-child::after { display: none; }
.wall-process:hover,
.wall-process:focus-visible { color: var(--paper); background: rgba(216, 233, 142, .055); }
.wall-process[aria-pressed="true"] { color: var(--paper); background: rgba(216, 233, 142, .075); box-shadow: inset 0 -2px 0 var(--lime); }
.wall-process__index {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--forest-2);
  background: var(--lime);
  border: 5px solid #09271d;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(216, 233, 142, .45);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}
.wall-process__state { display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 3px; color: var(--lime); font-family: var(--mono); font-size: 11px; font-weight: 750; }
.wall-process__state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.wall-process--warn .wall-process__index { color: #2b1b11; background: #ffb392; box-shadow: 0 0 0 1px rgba(255, 179, 146, .7), 0 0 24px rgba(255, 140, 92, .34); animation: wall-alert-pulse 2.2s ease-in-out infinite; }
.wall-process--warn .wall-process__state { color: #ffb392; }
.wall-process--wait .wall-process__index { color: #31230f; background: #e5bd7d; box-shadow: 0 0 0 1px rgba(229, 189, 125, .5); }
.wall-process--wait .wall-process__state { color: #e5bd7d; }
.wall-process strong { min-height: 36px; margin-top: 2px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.22; }
.wall-process__reading { margin-top: auto; padding-top: 7px; color: var(--lime); font-family: var(--mono); font-size: 18px; font-weight: 650; line-height: 1.1; letter-spacing: -.04em; }
.wall-process__reading small { display: inline; color: rgba(243, 238, 226, .48); font-size: 11px; letter-spacing: 0; }
.wall-process:hover .wall-process__reading,
.wall-process[aria-pressed="true"] .wall-process__reading { color: var(--lime-hot); }

.wall-signal-board { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(240px, 1.15fr) minmax(190px, .8fr); background: rgba(216, 233, 142, .13); border-top: 1px solid rgba(216, 233, 142, .13); }
.wall-focus,
.wall-trend,
.wall-microgrid { min-width: 0; background: rgba(7, 31, 24, .97); }
.wall-focus { padding: 13px 14px; border-right: 1px solid rgba(216, 233, 142, .13); }
.wall-focus__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: rgba(216, 233, 142, .54); font-family: var(--mono); font-size: 11px; letter-spacing: .07em; }
.wall-focus__quality { padding: 2px 5px; border: 1px solid rgba(216, 233, 142, .24); color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.wall-focus__quality--warn { color: #ffb392; border-color: rgba(255, 179, 146, .4); }
.wall-focus__quality--delay { color: #e5bd7d; border-color: rgba(229, 189, 125, .4); }
.wall-focus h4 { margin: 7px 0 2px; font-size: 15px; line-height: 1.25; }
.wall-focus__reading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wall-focus__reading strong { color: var(--lime-hot); font-family: var(--mono); font-size: 22px; letter-spacing: -.06em; }
.wall-focus__reading span { color: rgba(243, 238, 226, .42); font-family: var(--mono); font-size: 11px; }
.wall-focus p { max-width: 34em; margin: 5px 0 0; color: rgba(243, 238, 226, .56); font-size: 11px; line-height: 1.5; }
.wall-trend { padding: 12px 14px 9px; border-right: 1px solid rgba(216, 233, 142, .13); }
.wall-trend__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: rgba(216, 233, 142, .54); font-family: var(--mono); font-size: 11px; }
.wall-trend__head strong { color: #ffb392; font-size: 15px; letter-spacing: -.04em; }
.wall-trend svg { display: block; width: 100%; height: 70px; overflow: visible; }
.wall-trend__grid { fill: none; stroke: rgba(216, 233, 142, .08); stroke-width: 1; }
.wall-trend__threshold { fill: none; stroke: rgba(255, 179, 146, .45); stroke-width: 1; stroke-dasharray: 4 4; }
.wall-trend__area { fill: rgba(216, 233, 142, .07); }
.wall-trend__line { fill: none; stroke: var(--lime); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wall-trend__point { fill: #ffb392; stroke: #10281f; stroke-width: 2; }
.wall-trend__axis { display: flex; justify-content: space-between; gap: 5px; color: rgba(243, 238, 226, .34); font-family: var(--mono); font-size: 11px; }
.wall-trend__axis b { color: rgba(255, 179, 146, .7); font-weight: 600; }
.wall-microgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall-microgrid > div { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 7px 10px; border-left: 1px solid rgba(216, 233, 142, .08); border-bottom: 1px solid rgba(216, 233, 142, .08); }
.wall-microgrid > div:nth-child(2n + 1) { border-left: 0; }
.wall-microgrid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.wall-microgrid span { color: rgba(243, 238, 226, .4); font-size: 11px; }
.wall-microgrid strong { color: var(--lime); font-family: var(--mono); font-size: 11px; line-height: 1.45; }
.wall-microgrid strong.is-warn { color: #ffb392; }
.wall-processes__hint { margin: 0; padding: 8px 14px 9px; color: rgba(243, 238, 226, .44); font-family: var(--mono); font-size: 11px; line-height: 1.45; }

.wall-actions { display: flex; flex-direction: column; padding: 15px; }
.wall-panel-head--actions { padding: 0 0 10px; }
.wall-panel-head--actions > p { display: grid; place-items: center; width: 27px; height: 27px; color: #ffb392; border-color: rgba(255, 179, 146, .4); font-size: 11px; }
.wall-alert { display: grid; gap: 2px; padding: 9px 10px; color: var(--paper); background: rgba(158, 74, 47, .16); border: 1px solid rgba(255, 179, 146, .4); border-left: 3px solid #ffb392; text-decoration: none; }
.wall-alert + .wall-alert { margin-top: 7px; }
.wall-alert--notice { background: rgba(200, 131, 45, .11); border-color: rgba(229, 189, 125, .32); border-left-color: #e5bd7d; }
.wall-alert:hover { background: rgba(216, 233, 142, .1); border-color: var(--lime); }
.wall-alert__meta { color: rgba(243, 238, 226, .5); font-family: var(--mono); font-size: 11px; }
.wall-alert strong { font-size: 13px; line-height: 1.35; }
.wall-alert__detail { color: rgba(243, 238, 226, .58); font-size: 11px; }
.wall-alert__state { margin-top: 2px; color: var(--lime); font-family: var(--mono); font-size: 11px; font-weight: 800; }
.wall-alert[data-state="closed"] { opacity: .55; }
.wall-batch { display: block; margin-top: 9px; padding: 10px; color: var(--forest-2); background: var(--lime); text-decoration: none; }
.wall-batch:hover { background: var(--lime-hot); }
.wall-batch > span { display: block; font-family: var(--mono); font-size: 11px; font-weight: 750; }
.wall-batch > strong { display: block; margin: 1px 0 6px; font-family: var(--mono); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.wall-batch > div { display: flex; gap: 7px; align-items: baseline; }
.wall-batch b { font-family: var(--mono); font-size: 24px; letter-spacing: -.06em; }
.wall-batch div span { font-size: 11px; font-weight: 700; }
.wall-batch small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; }
.wall-batch i { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; font-style: normal; font-weight: 800; }
.wall-actions__note { margin-top: auto; padding-top: 11px; border-top: 1px solid rgba(216, 233, 142, .13); }
.wall-actions__note span { color: rgba(216, 233, 142, .56); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.wall-actions__note p { margin: 3px 0 0; color: rgba(243, 238, 226, .46); font-size: 11px; line-height: 1.45; }

.wall-screenfoot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 38px;
  padding: 7px 15px;
  color: rgba(243, 238, 226, .45);
  background: rgba(10, 39, 29, .95);
  border-top: 1px solid rgba(216, 233, 142, .18);
  font-family: var(--mono);
  font-size: 11px;
}
.wall-screenfoot > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; }
.wall-screenfoot > div > i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(216, 233, 142, .7); }
.wall-screenfoot p { margin: 0; color: rgba(255, 179, 146, .58); letter-spacing: .06em; }
.wall-screenfoot a { min-height: 30px; display: inline-flex; align-items: center; color: var(--lime); text-decoration: none; white-space: nowrap; }
.wall-screenfoot a:hover { color: var(--lime-hot); }

@keyframes wall-alert-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 179, 146, .7), 0 0 16px rgba(255, 140, 92, .2); }
  50% { box-shadow: 0 0 0 1px rgba(255, 179, 146, 1), 0 0 30px rgba(255, 140, 92, .48); }
}

@media (max-width: 1180px) {
  .wall-dashboard { grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr); }
  .wall-processes { grid-column: 1 / -1; grid-row: 1; }
  .wall-summary { grid-column: 1; grid-row: 2; }
  .wall-actions { grid-column: 2; grid-row: 2; }
  .wall-consolebar__status { justify-content: flex-start; }
  .wall-flow { grid-template-columns: repeat(7, minmax(118px, 1fr)); overflow-x: auto; scrollbar-color: var(--lime) rgba(243, 238, 226, .08); }
}

@media (max-width: 900px) {
  .console-header__hero { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); }
  .hero-seal { display: none; }
  .wall-signal-board { grid-template-columns: minmax(190px, .9fr) minmax(260px, 1.1fr); }
  .wall-microgrid { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(216, 233, 142, .1); }
  .wall-microgrid > div { border-left: 1px solid rgba(216, 233, 142, .08); border-bottom: 1px solid rgba(216, 233, 142, .08); }
  .wall-microgrid > div:nth-child(2n + 1) { border-left: 1px solid rgba(216, 233, 142, .08); }
  .wall-microgrid > div:nth-child(3n + 1) { border-left: 0; }
  .wall-microgrid > div:nth-last-child(-n + 3) { border-bottom: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .console-header__hero { display: block; min-height: 0; padding: 24px 18px 25px; }
  .hero-identity h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-thesis { margin-top: 23px; padding-top: 17px; }
  .hero-thesis > p { font-size: 14px; }
  .ticker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 9px 18px; font-size: 11px; }
  .ticker__label { border-right: 0; }
  .ticker__right { margin-left: 0; grid-column: 1 / -1; }
  .monitor-wall { padding: 15px 10px 22px; }
  .wall-screen { box-shadow: 0 0 0 3px rgba(4, 21, 16, .78), 0 0 0 4px rgba(216, 233, 142, .1), 0 20px 45px rgba(0, 0, 0, .35); }
  .wall-consolebar { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 8px 12px; }
  .wall-consolebar__status { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 6px 12px; font-size: 11px; }
  .wall-consolebar__status > span:nth-child(2) { display: none; }
  .wall-consolebar__clock { justify-items: end; }
  .wall-consolebar__clock strong { font-size: 14px; }
  .wall-head { display: block; padding: 14px 13px; }
  .wall-head h2 { font-size: 28px; }
  .wall-head > div > p:last-child { font-size: 12px; }
  .wall-health { width: 100%; min-width: 0; margin-top: 12px; }
  .wall-dashboard { grid-template-columns: 1fr; gap: 8px; overflow: visible; background: transparent; }
  .wall-processes,
  .wall-summary,
  .wall-actions { grid-column: auto; grid-row: auto; }
  .wall-processes { order: 0; }
  .wall-summary { order: 1; }
  .wall-actions { order: 2; }
  .wall-panel-head { padding-inline: 12px; }
  .wall-panel-head h3 { font-size: 19px; }
  .wall-panel-head > p { font-size: 11px; }
  .wall-flow { grid-template-columns: repeat(7, minmax(158px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .wall-process { min-height: 158px; scroll-snap-align: start; }
  .wall-signal-board { grid-template-columns: 1fr; }
  .wall-focus, .wall-trend { border-right: 0; border-bottom: 1px solid rgba(216, 233, 142, .1); }
  .wall-microgrid { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .wall-microgrid > div:nth-child(3n + 1) { border-left: 1px solid rgba(216, 233, 142, .08); }
  .wall-microgrid > div:nth-child(2n + 1) { border-left: 0; }
  .wall-microgrid > div:nth-last-child(-n + 3) { border-bottom: 1px solid rgba(216, 233, 142, .08); }
  .wall-microgrid > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .wall-summary { padding: 14px; }
  .wall-actions { padding: 14px; }
  .wall-screenfoot { grid-template-columns: 1fr auto; gap: 7px 12px; padding: 8px 12px; }
  .wall-screenfoot > div { gap: 5px 12px; }
  .wall-screenfoot p { grid-column: 1 / -1; grid-row: 2; }
  .section-rule h2 { font-size: 32px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card,
  .kpi-card:nth-child(4),
  .kpi-card:nth-child(5),
  .kpi-card:last-child { grid-column: auto; min-height: 0; padding: 18px; }
  .kpi-card__value { font-size: 34px; }
  .kpi-card--alarm .kpi-card__value { font-size: 28px; }
  .alarm-row { grid-template-columns: 1fr; gap: 6px; }
  .alarm-state { grid-column: auto; justify-self: start; }
  .alarm-reading { grid-template-columns: 1fr 1fr; }
  .alarm-detail-grid { grid-template-columns: 1fr; }
  .batch-switcher { grid-template-columns: 1fr; }
  .batch-route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .batch-stop:nth-child(2n)::after { display: none; }
  .batch-stop:nth-child(3n)::after { display: block; }
  .trace-grid { grid-template-columns: 1fr; }
  .detail-grid div { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (max-width: 390px) {
  .monitor-wall { padding-inline: 7px; }
  .wall-head h2 { font-size: 25px; }
  .wall-flow { grid-template-columns: repeat(7, minmax(150px, 1fr)); }
  .section-rule h2 { font-size: 30px; }
  .kpi-card__value { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body { color: #111; background: #fff; }
  .console-header, .section--process, .section--boundary, .console-footer { color: #111; background: #fff; }
  .skip-link, .back-link, .alarm-actions, .process-legend__hint { display: none !important; }
  .section { break-inside: avoid; padding-block: 20px; }
  .process-track { overflow: visible; }
  .process-node { color: #111; background: #fff; border-color: #111; }
  .monitor-wall, .wall-screen, .wall-summary, .wall-processes, .wall-actions, .wall-focus, .wall-trend, .wall-microgrid { color: #111; background: #fff; }
  .wall-process, .wall-alert, .wall-batch { color: #111; background: #fff; border-color: #777; }
}
