:root {
  --bg: #111210;
  --panel: #1b1c18;
  --line: #3b3c31;
  --paper: #fefacd;
  --muted: #aeae95;
  --yellow: #ffd60b;
  --sun: #ffec46;
  --amber: #feb41f;
  --orange: #fe6a00;
  --mono: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-family: Arial,Helvetica,sans-serif;
  color: var(--paper);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,input,select {
  font: inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--yellow);
  color: #111;
  z-index: 99;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.mast {
  height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4.2vw;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .13em;
}
.brand img {
  height: 39px;
  width: 36px;
  animation: forge .85s cubic-bezier(.2,.8,.2,1) both;
}
.brand small {
  display: block;
  font: 10px var(--mono);
  letter-spacing: .19em;
  color: var(--muted);
  margin-top: 4px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.status,.eyebrow,.label,.mono,.foot,.key,.dock,.tag {
  font: 11px var(--mono);
  letter-spacing: .09em;
}
.status {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}
.key,.action,.subtle,.chip {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 11px 14px;
  transition: .2s;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.key:hover,.subtle:hover,.chip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
kbd {
  color: var(--muted);
  margin-left: 12px;
  font: 12px var(--mono);
}
.action {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  background: var(--yellow);
  color: #121310;
  border-color: var(--yellow);
  font-weight: 800;
  padding: 14px 19px;
}
.action:after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-125%) skewX(-22deg);
  background: linear-gradient(90deg,transparent,#ffffff85,transparent);
  transition: transform .65s;
}
.action:hover:after {
  transform: translateX(125%) skewX(-22deg);
}
button:active {
  transform: scale(.97);
}
.dock {
  position: fixed;
  z-index: 8;
  bottom: 39px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 6px;
  background: #20211cef;
  border: 1px solid #555641;
  box-shadow: 0 12px 50px #0008;
  backdrop-filter: blur(18px);
  border-radius: 4px;
  gap: 3px;
  max-width: 96vw;
}
.dock a {
  padding: 12px 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: .2s;
}
.dock a.active {
  background: var(--yellow);
  color: #111;
  font-weight: bold;
}
.dock a:hover:not(.active) {
  color: var(--yellow);
  background: #34352b;
}
.dock .divider {
  height: 25px;
  width: 1px;
  background: var(--line);
}
.foot {
  padding: 12px 4.2vw;
  display: flex;
  justify-content: space-between;
  color: #858571;
  border-top: 1px solid var(--line);
  gap: 12px;
  font-size: 9px;
  margin-top: 50px;
}
#workspace {
  min-height: calc(100vh - 175px);
  padding-bottom: 65px;
  outline: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0,1.07fr);
  min-height: 690px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: clamp(48px,8vw,122px) 0 70px 4.2vw;
  z-index: 2;
  position: relative;
}
.eyebrow {
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow:before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--yellow);
}
h1,h2,h3,p {
  margin: 0;
}
h1 {
  font-size: clamp(58px,7.5vw,124px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.085em;
}
h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 450px;
  margin: 30px 0 25px;
}
.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 52px;
  display: flex;
  gap: 34px;
  color: var(--muted);
  font: 11px var(--mono);
  line-height: 1.6;
}
.hero-meta b {
  display: block;
  color: var(--paper);
  font-size: 24px;
  font-weight: 500;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center,#363417 0%,transparent 68%);
  overflow: hidden;
}
.hero-art:before,.canvas:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#69694d 0.7px,transparent .7px);
  background-size: 22px 22px;
  opacity: .22;
  mask-image: radial-gradient(ellipse,#000,transparent 75%);
  pointer-events: none;
}
.art-label {
  position: absolute;
  font: 10px var(--mono);
  letter-spacing: .16em;
  color: var(--muted);
  top: 30px;
  right: 4vw;
}
.art-bottom {
  position: absolute;
  bottom: 28px;
  right: 4vw;
  color: var(--muted);
  font: 10px var(--mono);
}
.orbital {
  width: 100%;
  height: auto;
  max-width: 700px;
  overflow: visible;
}
.orbit {
  transform-origin: 350px 330px;
  animation: spin 90s linear infinite;
}
.orbit-rev {
  transform-origin: 350px 330px;
  animation: spin 65s linear infinite reverse;
}
.draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2s ease forwards;
}
.reveal {
  animation: reveal .65s cubic-bezier(.2,.7,.2,1) both;
}
.reveal:nth-child(2) {
  animation-delay: .08s;
}
.reveal:nth-child(3) {
  animation-delay: .16s;
}
.reveal:nth-child(4) {
  animation-delay: .24s;
}
.strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin: 0 4.2vw;
  border-bottom: 1px solid var(--line);
}
.strip a {
  display: block;
  padding: 24px 22px 24px 0;
  border-right: 1px solid var(--line);
  margin-right: 22px;
  transition: .2s;
}
.strip a:last-child {
  border-right: 0;
}
.strip a:hover {
  color: var(--yellow);
  transform: translateY(-3px);
}
.strip b {
  font-size: 22px;
  display: block;
  margin: 12px 0 5px;
  letter-spacing: -.04em;
}
.strip small {
  color: var(--muted);
  font-size: 12px;
}
.page {
  padding: 37px 4.2vw 0;
}
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 25px;
  gap: 20px;
}
.pagehead h1 {
  font-size: clamp(42px,5.5vw,84px);
  line-height: .95;
}
.pagehead p {
  max-width: 450px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  margin-top: 14px;
}
.pagehead .eyebrow {
  margin-bottom: 15px;
}
.page-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 325px;
  border: 1px solid var(--line);
  min-height: 510px;
}
.canvas {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center,#282719,transparent 72%);
}
.canvas svg {
  width: 100%;
  height: auto;
  z-index: 1;
  overflow: visible;
}
.canvas-header {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .08em;
}
.canvas-key {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 2;
  font: 10px var(--mono);
  color: var(--muted);
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 24px;
  background: #181914;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inspector h2 {
  font-size: 28px;
  letter-spacing: -.045em;
}
.inspector p,.muted {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 5px 0;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 12px var(--mono);
  padding: 9px 0;
  border-bottom: 1px solid #303128;
}
.kv span:first-child {
  color: var(--muted);
}
.chip {
  font: 11px var(--mono);
  padding: 9px 10px;
}
.chip.active {
  color: #111;
  background: var(--yellow);
  border-color: var(--yellow);
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.network-node {
  cursor: pointer;
  outline: none;
}
.network-node .node-ring {
  transition: stroke .2s,fill .2s;
}
.network-node:hover .node-ring,.network-node:focus-visible .node-ring {
  stroke: var(--sun);
  fill: #403816;
  stroke-width: 2.5;
}
.network-node.selected .node-ring {
  stroke: var(--yellow);
  stroke-width: 2;
  fill: #35321b;
}
.link {
  stroke: #737356;
  stroke-width: 1.2;
  fill: none;
}
.link.hot {
  stroke: var(--yellow);
  stroke-width: 2.3;
  stroke-dasharray: 7 10;
  animation: flow 1s linear infinite;
}
.panel {
  border: 1px solid var(--line);
  padding: 24px;
  background: #191a16;
  min-width: 0;
}
.panel h2 {
  font-size: 24px;
  letter-spacing: -.045em;
  margin: 8px 0 14px;
}
.panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 18px 0;
}
.metric {
  border-top: 2px solid var(--yellow);
  padding: 17px 0 10px;
}
.metric strong {
  display: block;
  font-size: clamp(35px,5vw,68px);
  font-weight: 500;
  letter-spacing: -.06em;
  color: var(--yellow);
  line-height: 1.1;
}
.metric span {
  color: var(--muted);
  font: 11px var(--mono);
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  margin: 16px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: #20211a;
}
td,th {
  padding: 13px 15px;
  border-bottom: 1px solid #36372d;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #22231a;
}
.tag {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.tag.good {
  color: var(--yellow);
  border-color: #746625;
}
.tag.bad {
  color: #ff9d65;
  border-color: #82462a;
}
.tag.unknown {
  color: #d0cdb0;
}
.matrix td:not(:first-child),.matrix th:not(:first-child) {
  text-align: center;
}
.matrix td.allow {
  color: var(--yellow);
  background: #3b3518;
}
.matrix td.deny {
  color: #b6b39a;
  background: #20211a;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: end;
}
.form-row label {
  display: grid;
  gap: 7px;
  font: 11px var(--mono);
  color: var(--muted);
}
select,input {
  background: #111210;
  color: var(--paper);
  border: 1px solid #545540;
  padding: 11px 12px;
  border-radius: 0;
  min-width: 130px;
}
.output {
  font: 12px/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--paper);
  background: #10110e;
  padding: 16px;
  border-left: 2px solid var(--yellow);
  margin: 14px 0;
}
.timeline {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.timeline li {
  padding: 15px 0 15px 24px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -5px;
  top: 20px;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  transform: rotate(45deg);
}
.timeline b {
  display: block;
  margin-bottom: 6px;
}
.timeline small {
  color: var(--muted);
  font: 11px var(--mono);
}
.riskbar {
  height: 6px;
  background: #38392c;
  margin: 12px 0;
}
.riskbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,var(--yellow),var(--orange));
}
.evidence-note {
  border-left: 2px solid var(--amber);
  padding: 13px 16px;
  background: #242319;
  font: 12px/1.6 var(--mono);
  color: #d7d0a7;
  margin: 15px 0;
}
.section-title {
  font-size: 30px;
  letter-spacing: -.05em;
  margin-top: 30px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 18px;
}
.split>div {
  background: #191a16;
  padding: 22px;
}
.palette,.pal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pal-head button {
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 23px;
}
dialog {
  color: var(--paper);
  background: #20211a;
  border: 1px solid #727052;
  padding: 22px;
  width: min(600px,90vw);
  box-shadow: 0 20px 90px #000b;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
dialog input {
  width: 100%;
  margin: 17px 0;
}
.pal-head {
  font: 11px var(--mono);
  color: var(--yellow);
}
#results a {
  display: flex;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
#results a:hover {
  color: var(--yellow);
}
#toast {
  position: fixed;
  bottom: 110px;
  right: 4vw;
  background: var(--yellow);
  color: #111;
  padding: 12px 18px;
  font: 12px var(--mono);
  z-index: 10;
  opacity: 0;
  transform: translateY(12px);
  transition: .25s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: none;
}
.empty {
  padding: 25px;
  color: var(--muted);
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
    clip-path: inset(0 0 15% 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
}
@keyframes forge {
  from {
    clip-path: polygon(0 0,0 0,0 100%,0 100%);
    transform: translateX(-6px);
  }
  to {
    clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -34;
  }
}
@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 60px 5vw 0;
  }
  .hero-art {
    min-height: 390px;
    max-height: 480px;
  }
  .orbital {
    max-width: 500px;
  }
  .hero-meta {
    margin-top: 25px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .canvas {
    min-height: 340px;
  }
  .grid2,.split {
    grid-template-columns: 1fr;
  }
  .strip {
    grid-template-columns: 1fr 1fr;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-tools {
    justify-content: flex-start;
  }
  .dock {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .dock a {
    padding: 11px 10px;
  }
  .foot {
    flex-wrap: wrap;
  }
  .status {
    font-size: 9px;
  }
  .key {
    font-size: 0;
  }
  .key kbd {
    font-size: 11px;
    margin: 0;
  }
}
@media(max-width:520px) {
  .mast {
    height: 66px;
    padding: 0 4vw;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand img {
    height: 29px;
    width: 27px;
  }
  .brand small {
    font-size: 8px;
  }
  .header-right {
    gap: 10px;
  }
  .status {
    max-width: 110px;
  }
  .hero h1 {
    font-size: 57px;
  }
  .hero-copy {
    padding-top: 45px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-art {
    min-height: 325px;
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .page {
    padding-top: 25px;
  }
  .canvas {
    min-height: 270px;
  }
  .canvas-header,.canvas-key {
    font-size: 8px;
  }
  .dock {
    bottom: 14px;
  }
  .foot {
    padding-bottom: 70px;
  }
  .panel {
    padding: 16px;
  }
  .hero-meta {
    gap: 18px;
  }
  .strip a {
    margin-right: 12px;
  }
  .strip b {
    font-size: 18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
    scroll-behavior: auto!important;
  }
  .draw {
    stroke-dashoffset: 0;
  }
  .link.hot {
    stroke-dasharray: none;
  }
}
.hero h1 {
  letter-spacing: -.075em;
}
.pagehead h1 {
  letter-spacing: -.07em;
}
.dock {
  box-shadow: 0 12px 38px #0008;
}
.inspector .tag {
  align-self: flex-start;
}
.inspector .action {
  margin-top: auto;
}
.hero-art .orbital {
  animation: reveal .9s ease both;
}
@media(max-width:520px) {
  .hero-copy {
    min-width: 0;
  }
  .hero h1 {
    font-size: clamp(43px,14.1vw,57px);
  }
  .pagehead h1 {
    font-size: clamp(38px,10vw,52px);
  }
  .hero-meta b {
    font-size: 20px;
  }
  .hero-meta {
    font-size: 9px;
  }
  .mast {
    gap: 10px;
  }
  .dock {
    width: calc(100% - 20px);
  }
  .dock a {
    flex-shrink: 0;
  }
  .form-row {
    max-width: 100%;
  }
  .canvas svg {
    min-width: 0;
  }
  .strip {
    margin: 0 4vw;
  }
  .strip a {
    padding-right: 8px;
  }
}
/* Engineering RC: high-contrast editorial workspace, restrained warm signal colours. */
:root {
  --bg: #101110;
  --panel: #191b19;
  --line: #353833;
  --paper: #f5f3e7;
  --muted: #a4aba2;
}
.mast {
  height: 74px;
  background: #101110;
}
.brand {
  letter-spacing: .075em;
}
.brand img {
  filter: drop-shadow(0 0 10px #ffd60b24);
}
.dock {
  border-radius: 18px;
  bottom: 24px;
  gap: 4px;
  padding: 7px;
  background: #1c1f1bef;
}
.dock a {
  border-radius: 10px;
  padding: 12px 15px;
}
.hero {
  min-height: 620px;
}
.hero-copy {
  padding-top: 100px;
}
.hero-art {
  background: radial-gradient(ellipse at center,#51430d 0%,#222416 33%,#111310 72%);
}
.hero h1 {
  font-size: clamp(60px,8.2vw,130px);
  line-height: .89;
}
.hero p {
  color: #c2c6b9;
}
.home-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  background: var(--yellow);
  color: #111;
  padding: 15px 4.2vw;
  font: 11px var(--mono);
  font-weight: 800;
  letter-spacing: .06em;
}
.home-band a:hover {
  text-decoration: underline;
}
.panel,.metric,.canvas {
  border-radius: 12px;
}
.panel {
  background: #181a18;
}
.lab-banner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid #615722;
  background: linear-gradient(120deg,#282510,#181b18 68%);
  border-radius: 14px;
  overflow: hidden;
}
.lab-banner>div {
  padding: 26px 30px;
  border-right: 1px solid #514b2c;
  min-width: 0;
}
.lab-banner>div:last-child {
  border-right: 0;
}
.lab-banner strong {
  display: block;
  font-size: clamp(42px,6vw,86px);
  font-weight: 750;
  letter-spacing: -.08em;
  color: var(--yellow);
  line-height: 1.05;
}
.lab-banner strong small {
  font-size: .4em;
  color: #b8b9a9;
  letter-spacing: 0;
}
.lab-banner p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.lab-banner .word-metric {
  font-size: clamp(28px,5vw,66px);
}
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-top: 16px;
}
.lab-card {
  text-align: left;
  background: #1a1d1a;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  position: relative;
  min-height: 135px;
  overflow: hidden;
  transition: transform .25s,background .25s,border .25s;
  animation: reveal .4s both;
}
.lab-card:nth-child(3n) {
  animation-delay: .06s;
}
.lab-card:hover {
  transform: translateY(-3px) perspective(800px) rotateX(2deg);
  border-color: #95872f;
  background: #22261c;
}
.lab-card.chosen {
  border-color: var(--yellow);
  background: linear-gradient(135deg,#3b3517,#1b1e1b);
}
.lab-card h3 {
  font-size: 20px;
  letter-spacing: -.045em;
  margin: 13px 0 14px;
}
.card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--yellow);
}
.stage-detail {
  min-width: 0;
  margin-bottom: 16px;
}
.detail-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.checklist {
  padding: 0;
  list-style: none;
  margin: 18px 0;
}
.checklist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}
.checklist i {
  color: var(--yellow);
  font-style: normal;
  font-weight: 800;
}
.route-controls {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.route-controls label {
  display: grid;
  gap: 7px;
  font: 10px var(--mono);
  color: var(--muted);
}
.route-layout {
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
}
.route-canvas svg {
  width: 100%;
  height: auto;
  max-height: 500px;
}
.route-line {
  stroke: #525b50;
  stroke-width: 2;
  fill: none;
}
.route-line.path-active {
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-dasharray: 12 5;
  animation: flow 1.2s linear infinite;
}
.route-line.down {
  stroke: #fe6a00;
  stroke-dasharray: 4 8;
}
.route-weight {
  fill: #bdc6b8;
  font: 14px var(--mono);
}
.route-point circle {
  fill: #242a22;
  stroke: #6f7869;
}
.route-point circle+circle {
  fill: #1c1f1b;
}
.route-point.path-node circle {
  stroke: var(--yellow);
  filter: drop-shadow(0 0 8px #ffd60b44);
}
.route-point text {
  fill: var(--paper);
  font: 13px var(--mono);
}
.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.failed-link {
  color: #fe6a00;
  border-color: #fe6a00;
}
.group-tabs {
  flex-wrap: wrap;
}
.lab-card .mono {
  color: var(--muted);
  font-size: 10px;
}
.stage-detail .kv {
  overflow-wrap: anywhere;
}
.stage-detail .kv span:last-child {
  min-width: 0;
}
.tag.good {
  color: var(--yellow);
  border-color: #847326;
}
@media(max-width:900px) {
  .lab-layout,.route-layout {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-top: 60px;
  }
  .hero {
    min-height: 0;
  }
  .lab-banner>div {
    padding: 18px 14px;
  }
  .dock a {
    padding: 11px 10px;
  }
}
@media(max-width:520px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .lab-banner strong {
    font-size: 36px;
  }
  .lab-banner .label {
    font-size: 8px;
  }
  .lab-banner p {
    font-size: 10px;
  }
  .lab-banner>div {
    padding: 14px 8px;
  }
  .route-controls label {
    width: 100%;
  }
  .route-controls select {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(43px,14.1vw,57px);
  }
  .home-band {
    font-size: 9px;
  }
  .hero-copy {
    padding-top: 45px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .route-line.path-active {
    animation: none;
    stroke-dasharray: none;
  }
}
/* 009 / Design system — editorial industrial, warm paper / carbon / signal. */
:root {
  --bg: #10161e;
  --panel: #1a222c;
  --line: #35414c;
  --paper: #f4f2e9;
  --muted: #a6b2bf;
  --yellow: #FFD60B;
  --sun: #FFEC46;
  --amber: #FEB41F;
  --orange: #FE6A00;
  --mint: #86d4c2;
  --light: #e8e8de;
  --ease: cubic-bezier(.16,1,.3,1);
  font-family: Arial,Helvetica,sans-serif;
  color-scheme: dark;
}
body {
  background: radial-gradient(ellipse at 100% 0,#203040 0,transparent 42%),var(--bg);
}
.mast {
  height: 76px;
  background: #10161e;
  border-bottom: 1px solid #303b46;
  padding: 0 4vw;
}
.brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand small {
  letter-spacing: .12em;
  font-size: 9px;
}
.brand img {
  height: 36px;
  width: 32px;
  filter: none;
}
.header-right {
  gap: 18px;
}
.status {
  font-size: 10px;
  letter-spacing: .045em;
}
.status i {
  background: var(--mint);
  box-shadow: 0 0 0 4px #86d4c218;
}
.key {
  border: 0;
  background: #232c36;
  border-radius: 7px;
  padding: 12px 15px;
}
.key kbd {
  padding: 3px 6px;
  border: 1px solid #43505c;
  border-radius: 3px;
}
.dock {
  width: max-content;
  max-width: calc(100% - 32px);
  bottom: 19px;
  background: #101820f2;
  border: 1px solid #4e5b65;
  border-radius: 12px;
  padding: 5px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  justify-content: flex-start;
  box-shadow: 0 12px 45px #0007;
}
.dock a {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  padding: 12px 13px;
  border-radius: 7px;
  flex: none;
  transition: background .24s,color .24s,translate .24s;
}
.dock a:hover {
  translate: 0 -2px;
}
.dock a.active {
  background: var(--yellow);
  color: #17202a;
}
.dock a:hover:not(.active) {
  background: #283743;
  color: var(--paper);
}
.foot {
  margin-top: 10px;
  padding: 24px 4vw 85px;
  color: #a1aab4;
  line-height: 1.6;
}
#workspace {
  padding-bottom: 45px;
  overflow: clip;
}
h1,h2,h3 {
  font-family: Arial,Helvetica,sans-serif;
}
.eyebrow,.label,.mono,.tag {
  letter-spacing: .055em;
}
.eyebrow {
  font-size: 10px;
  gap: 10px;
}
.eyebrow:before {
  width: 21px;
}
.label {
  font-size: 10px;
  color: #aab9c7;
}
.mono {
  font-size: 10px;
}
.page {
  padding: 45px 4vw 0;
  max-width: 1800px;
  margin: auto;
}
.pagehead {
  margin: 0 0 28px;
  padding-bottom: 26px;
  align-items: flex-end;
  border-color: #43505c;
}
.pagehead h1 {
  font-size: clamp(42px,5vw,78px);
  letter-spacing: -.065em;
  font-weight: 800;
  line-height: 1;
}
.pagehead p {
  max-width: 540px;
  font-size: 15px;
  line-height: 1.6;
  color: #b4c0ca;
}
.pagehead .eyebrow {
  margin-bottom: 17px;
}
.page-tools {
  align-items: center;
}
.action,.subtle,.chip,.key {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 13px;
  font-weight: 650;
  border-radius: 6px;
  letter-spacing: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background .22s,border-color .22s,color .22s,box-shadow .3s,scale .3s var(--ease);
}
.action {
  padding: 13px 18px;
  color: #18212a;
  background: var(--yellow);
  border-color: var(--yellow);
}
.action:hover {
  background: var(--sun);
  box-shadow: 0 4px 25px #ffd60b28;
}
.subtle {
  background: #202b36;
  border-color: #43515e;
  padding: 11px 15px;
  color: #e8edf0;
}
.subtle:hover,.chip:hover {
  background: #2d3b48;
  border-color: #8a9ba7;
  color: #fff;
}
.chip {
  background: #202a34;
  border-color: #43515e;
  font-size: 12px;
  min-height: 34px;
  padding: 8px 12px;
}
.chip.active {
  background: var(--yellow);
  color: #18212a;
  border-color: var(--yellow);
}
button:active,.action:active,.subtle:active {
  scale: .965;
}
.magnetic {
  translate: var(--mx,0px) var(--my,0px);
}
.editorial-hero {
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  min-height: clamp(620px,calc(100svh - 145px),790px);
  background: #e8e8de;
  color: #17212a;
  border: 0;
  isolation: isolate;
}
.editorial-hero .hero-copy {
  padding: clamp(52px,7vw,100px) 0 50px 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.editorial-hero .eyebrow {
  color: #34414b;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .07em;
  flex-wrap: wrap;
}
.editorial-hero .eyebrow:before {
  background: #fe6a00;
  height: 2px;
}
.issue {
  background: #d5d8d0;
  padding: 4px 7px;
  font-size: 9px;
}
.editorial-hero h1 {
  font-size: clamp(68px,8.7vw,147px);
  line-height: .82;
  letter-spacing: -.094em;
  font-weight: 900;
  color: #18212a;
  position: relative;
  z-index: 2;
}
.editorial-hero h1 em {
  color: #18212a;
  display: inline-block;
  position: relative;
  isolation: isolate;
}
.editorial-hero h1 em:before {
  content: '';
  position: absolute;
  background: var(--yellow);
  height: .35em;
  width: 104%;
  left: -.025em;
  bottom: .02em;
  z-index: -1;
  transform: skewX(-9deg);
  animation: forge .8s var(--ease) both .15s;
}
.editorial-hero h1 em span {
  color: #fe6a00;
}
.editorial-hero p {
  color: #42515d;
  max-width: 350px;
  font-size: clamp(14px,1.35vw,18px);
  line-height: 1.6;
  margin: 26px 0 22px;
}
.editorial-hero .hero-actions {
  gap: 10px;
}
.editorial-hero .action {
  background: #18212a;
  color: #fff;
  border: 1px solid #18212a;
  min-height: 48px;
  padding: 12px 18px;
}
.editorial-hero .action:hover {
  background: #344250;
}
.editorial-hero .subtle {
  color: #18212a;
  background: transparent;
  border: 1px solid #a4aba8;
  min-height: 48px;
}
.editorial-hero .subtle:hover {
  background: #d2d7cf;
}
.editorial-hero .hero-meta {
  margin-top: 34px;
  gap: 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  max-width: 520px;
  color: #53616a;
  font-size: 9px;
  letter-spacing: .05em;
  line-height: 1.5;
}
.editorial-hero .hero-meta>div {
  padding: 10px 12px 0 0;
  border-top: 1px solid #a9b1ac;
}
.editorial-hero .hero-meta>div+div {
  padding-left: 14px;
  border-left: 1px solid #c4c9c1;
}
.editorial-hero .hero-meta b {
  font-family: Arial,Helvetica,sans-serif;
  font-weight: 800;
  color: #17212a;
  font-size: clamp(25px,3vw,43px);
  letter-spacing: -.07em;
  line-height: 1.2;
  margin-bottom: 5px;
}
.hero-art {
  background: radial-gradient(ellipse at 50% 48%,#f9f4d7 0,#e5e7d9 50%,#c9d1c8 100%);
  min-width: 0;
  max-height: none;
  isolation: isolate;
  display: block;
}
.hero-art:before {
  background-image: linear-gradient(#77887b16 1px,transparent 1px),linear-gradient(90deg,#77887b16 1px,transparent 1px);
  background-size: 32px 32px;
  opacity: 1;
  mask-image: none;
}
.hero-art:after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(134deg,transparent 0 76%,#ffd60b 76% 100%);
  opacity: .95;
}
.hero-art canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  transform: translateY(var(--parallax,0px));
  touch-action: pan-y;
}
.art-label,.art-bottom {
  z-index: 2;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px/1.4 var(--mono);
  letter-spacing: .04em;
  color: #34414b;
  pointer-events: none;
}
.art-label {
  top: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid #8e9b8f;
}
.art-bottom {
  bottom: 20px;
  border-top: 1px solid #8e9b8f;
  padding-top: 10px;
}
.art-serial {
  font-size: clamp(75px,11vw,190px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.12em;
  position: absolute;
  right: 5%;
  top: 10%;
  color: #27363b0c;
  pointer-events: none;
}
.art-serial span {
  color: #fe6a0025;
}
.art-callout {
  position: absolute;
  left: 6%;
  bottom: 15%;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 10px/1.5 var(--mono);
  color: #26343d;
  pointer-events: none;
  z-index: 2;
}
.art-callout i {
  width: 8px;
  height: 8px;
  background: #fe6a00;
  transform: rotate(45deg);
}
.art-callout small {
  font-size: 8px;
  color: #5a686b;
}
.home-band {
  overflow: hidden;
  padding: 13px 0;
  background: var(--yellow);
  color: #18212a;
  display: block;
}
.marquee {
  width: max-content;
  display: flex;
  animation: marquee 42s linear infinite;
  gap: 0;
}
.marquee>div {
  display: flex;
  gap: 36px;
  padding-right: 36px;
  white-space: nowrap;
}
.marquee span {
  font: 700 11px var(--mono);
  letter-spacing: .09em;
}
.marquee b {
  margin-left: 36px;
  color: #a04a09;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.chapters {
  padding: 65px 4vw 75px;
  max-width: 1800px;
  margin: auto;
}
.chapter-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  column-gap: 30px;
  margin-bottom: 30px;
}
.chapter-head .eyebrow {
  grid-column: 1/-1;
  margin: 0 0 20px;
}
.chapter-head h2,.proof-story h2 {
  font-size: clamp(42px,6vw,85px);
  letter-spacing: -.075em;
  line-height: .95;
}
.chapter-head h2 em,.proof-story h2 em {
  color: var(--yellow);
  font-style: normal;
}
.chapter-head p {
  max-width: 350px;
  color: #aab9c7;
  line-height: 1.6;
  justify-self: end;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  scroll-snap-type: x proximity;
}
.chapter-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #475560;
  background: #1d2935;
  min-height: 300px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  transform: perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: box-shadow .3s,border-color .3s,translate .4s var(--ease);
  isolation: isolate;
}
.chapter-card:hover {
  border-color: #ffd60b;
  translate: 0 -4px;
  box-shadow: 0 16px 40px #0005;
}
.chapter-index {
  font: 10px var(--mono);
  color: #b1c0c9;
  z-index: 2;
}
.chapter-art {
  position: absolute;
  inset: 0 0 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%,#435261,#1c2834 70%);
  perspective: 550px;
}
.chapter-art i {
  position: absolute;
  display: block;
  width: 42%;
  height: 42%;
  border: 1px solid #ffd60b85;
  transform: rotateX(55deg) rotateZ(45deg);
  background: #ffd60b10;
  box-shadow: 0 0 20px #ffd60b13;
}
.chapter-art i:nth-child(2) {
  translate: 0 -22px;
  background: #c5d9db18;
}
.chapter-art i:nth-child(3) {
  translate: 0 -44px;
}
.chapter-art i:nth-child(4) {
  translate: 0 22px;
}
.chapter-art i:nth-child(5) {
  width: 24%;
  height: 24%;
  background: #ffd60bcc;
  translate: 0 -60px;
}
.chapter-art.policy {
  background: radial-gradient(ellipse,#573e26,#252b30 72%);
}
.chapter-art.policy i {
  transform: rotateY(-32deg) rotateZ(-13deg);
  width: 30%;
  height: 52%;
  border-color: #feb41f;
}
.chapter-art.policy i:nth-child(2) {
  translate: 28px -13px;
}
.chapter-art.policy i:nth-child(3) {
  translate: 56px -26px;
}
.chapter-art.policy i:nth-child(4) {
  translate: -28px 13px;
}
.chapter-art.policy i:nth-child(5) {
  translate: -56px 26px;
  background: #fe6a0066;
}
.chapter-art.evidence {
  background: radial-gradient(ellipse,#315253,#1a2b37 72%);
}
.chapter-art.evidence i {
  border-color: #86d4c2;
  transform: rotateZ(-20deg);
  width: 30%;
  height: 48%;
  background: #86d4c217;
}
.chapter-art.evidence i:nth-child(2) {
  translate: 22px -15px;
}
.chapter-art.evidence i:nth-child(3) {
  translate: 44px -30px;
}
.chapter-art.evidence i:nth-child(4) {
  translate: -22px 15px;
}
.chapter-art.evidence i:nth-child(5) {
  translate: -44px 30px;
  background: #86d4c2aa;
}
.chapter-text {
  z-index: 1;
  position: relative;
  background: linear-gradient(180deg,transparent 0,#1d2935 20%,#1d2935 100%);
  padding: 34px 0 0;
  box-shadow: none;
}
.chapter-text b {
  display: block;
  font-size: 29px;
  letter-spacing: -.05em;
  margin-bottom: 5px;
}
.chapter-text small {
  color: #b8c4cc;
  font-size: 13px;
  line-height: 1.5;
  display: block;
  max-width: 85%;
}
.chapter-text span {
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--yellow);
  font-size: 22px;
}
.proof-story {
  margin: 0 4vw 20px;
  padding: 40px 32px;
  background: #202b36;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid #45515a;
}
.proof-story .eyebrow {
  grid-column: 1/-1;
  margin: 0;
}
.proof-copy {
  justify-self: end;
  max-width: 380px;
}
.proof-number {
  font-size: clamp(65px,10vw,130px);
  line-height: .95;
  letter-spacing: -.09em;
  color: var(--yellow);
  font-weight: 850;
}
.proof-copy p {
  font-size: 14px;
  line-height: 1.6;
  color: #c3cdd5;
  margin: 16px 0;
}
.proof-copy .action {
  display: inline-flex;
}
/* Operational workspaces: fewer outlines, clearer control hierarchy. */
.panel,.canvas,.inspector,.metric,.lab-banner,.lab-card,.workspace-grid {
  border-radius: 8px;
}
.panel,.inspector {
  background: linear-gradient(140deg,#202c37,#19232d);
  border: 1px solid #3b4955;
  min-width: 0;
  padding: 23px;
  position: relative;
}
.panel h2,.inspector h2 {
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.12;
  font-size: 25px;
  margin: 9px 0 17px;
}
.panel p,.inspector p {
  color: #b8c4ce;
  font-size: 14px;
  line-height: 1.6;
}
.panel .action,.panel .subtle {
  margin-top: 12px;
}
.panel .row-actions .action,.panel .row-actions .subtle,.route-controls .action,.route-controls .subtle {
  margin-top: 0;
}
.panel,.canvas,.lab-card,.chapter-card {
  --spot-x: 50%;
  --spot-y: 50%;
}
.panel:before,.canvas:after,.lab-card:before,.chapter-card:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--spot-x) var(--spot-y),#ffe47812,transparent 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  z-index: 0;
}
.panel:hover:before,.canvas:hover:after,.lab-card:hover:before,.chapter-card:hover:before {
  opacity: 1;
}
.panel>* {
  position: relative;
}
.workspace-grid {
  border: 0;
  gap: 12px;
  grid-template-columns: minmax(0,1fr) 330px;
  min-height: 490px;
}
.canvas {
  background: radial-gradient(ellipse at 45% 45%,#263d4b,#141f29 75%);
  border: 1px solid #40505e;
  min-height: 490px;
}
.canvas:before {
  background-image: radial-gradient(#91a9b6 .65px,transparent .65px);
  opacity: .32;
}
.canvas-header,.canvas-key {
  color: #b0bfcb;
  font-size: 10px;
  letter-spacing: .03em;
}
.canvas-key {
  line-height: 1.5;
  right: 18px;
}
.inspector {
  gap: 11px;
}
.inspector h2 {
  margin: 0;
}
.kv {
  font: 13px/1.5 Arial,Helvetica,sans-serif;
  letter-spacing: 0;
  padding: 11px 0;
  border-color: #394753;
  align-items: baseline;
  gap: 16px;
}
.kv span:first-child {
  color: #a9bac8;
  flex: 0 0 auto;
}
.kv span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
  color: #e9edf1;
  font-weight: 600;
}
.inspector .kv {
  padding: 9px 0;
}
.rule {
  border-color: #3b4955;
}
.grid2 {
  gap: 16px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 16px 0 22px;
}
.grid3 {
  gap: 12px;
  margin: 0 0 20px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.metric {
  background: #1d2833;
  padding: 18px 21px 20px;
  border: 1px solid #3b4a57;
  position: relative;
  overflow: hidden;
  min-height: 125px;
}
.metric:after {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 32px;
  height: 3px;
  background: var(--yellow);
}
.metric span {
  color: #a9b9c5;
  font: 10px var(--mono);
  letter-spacing: .055em;
  display: block;
}
.metric strong {
  font-size: clamp(37px,4.2vw,61px);
  line-height: 1;
  letter-spacing: -.075em;
  color: #f4f2e9;
  font-weight: 750;
  margin-top: 13px;
  font-variant-numeric: tabular-nums;
}
.metric:nth-child(2) strong {
  color: var(--yellow);
}
.tablewrap {
  border: 1px solid #42515e;
  border-radius: 6px;
  background: #17212b;
  margin: 16px 0;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  font-size: 13px;
  line-height: 1.4;
}
th {
  background: #253440;
  color: #c0ced9;
  font-size: 10px;
  letter-spacing: .04em;
}
td,th {
  border-color: #354551;
  padding: 12px 14px;
}
td {
  color: #dfe5eb;
}
tbody tr:nth-child(even) td {
  background: #1b2732;
}
tr:hover td {
  background: #2d3e4a!important;
}
.matrix td,.matrix th {
  padding: 13px 8px;
  font-size: 11px;
}
.matrix td.allow,.matrix tr:nth-child(even) td.allow {
  color: #98e5d0;
  background: #1e403c;
}
.matrix td.deny,.matrix tr:nth-child(even) td.deny {
  color: #a2afbb;
  background: #1c2731;
}
.matrix td:first-child {
  font-weight: 600;
}
.tag {
  font: 700 10px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing: .025em;
  border-radius: 4px;
  padding: 5px 8px;
  border: 0;
  background: #2d3b48;
  color: #c4d0db;
}
.tag.good {
  background: #284740;
  color: #9be5d0;
  border: 0;
}
.tag.bad {
  background: #573425;
  color: #ffbc91;
  border: 0;
}
.tag.unknown {
  color: #e0d9b9;
  background: #3d3d35;
}
.form-row,.route-controls {
  gap: 13px;
  align-items: end;
}
.form-row label,.route-controls label {
  color: #acbac7;
  font: 10px var(--mono);
  gap: 8px;
  min-width: 0;
  flex: 1 1 130px;
}
select,input {
  font: 600 14px Arial,Helvetica,sans-serif;
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 10px 34px 10px 12px;
  background: #111c25;
  color: #eaf0f5;
  border: 1px solid #465969;
  border-radius: 6px;
  appearance: auto;
  transition: border-color .2s,box-shadow .2s;
}
select:hover,input:hover {
  border-color: #a0b0b8;
}
select:focus,input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px #ffd60b20;
}
.output {
  background: #111c25;
  border: 1px solid #3a4a56;
  border-left: 3px solid #feb41f;
  border-radius: 5px;
  color: #d5e1e8;
  font-size: 12px;
  padding: 15px;
  line-height: 1.6;
}
.evidence-note {
  font: 13px/1.65 Arial,Helvetica,sans-serif;
  background: #232e38;
  color: #cad4dd;
  border-left: 3px solid #feb41f;
  padding: 13px 16px;
  border-radius: 0 6px 6px 0;
}
.section-title {
  font-size: 30px;
  margin: 32px 0 10px;
}
.split {
  background: transparent;
  border: 0;
  gap: 14px;
}
.split>div {
  background: #1b2732;
  border: 1px solid #40505e;
  border-radius: 7px;
}
.timeline li {
  border-color: #50616e;
}
.timeline small {
  color: #a6b6c2;
}
.lab-banner {
  border: 1px solid #43535f;
  background: linear-gradient(100deg,#1c2935,#2b3e4a);
  border-radius: 8px;
}
.lab-banner>div {
  border-color: #42515f;
  padding: 22px 25px;
}
.lab-banner strong {
  font-size: clamp(38px,5vw,68px);
  letter-spacing: -.075em;
  color: #f2f1e8;
  margin-top: 10px;
}
.lab-banner>div:first-child strong {
  color: var(--yellow);
}
.lab-banner p {
  color: #b6c5ce;
}
.lab-layout {
  gap: 18px;
}
.lab-grid {
  gap: 11px;
}
.lab-card {
  background: linear-gradient(145deg,#243440,#1c2934);
  border-color: #42525f;
  min-height: 132px;
  padding: 18px;
  transform: perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: border-color .3s,background .3s,translate .4s var(--ease);
}
.lab-card:hover {
  transform: perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  translate: 0 -3px;
  background: #2d404d;
  border-color: #899eaa;
}
.lab-card.chosen {
  background: linear-gradient(140deg,#464126,#26323a);
  border-color: #e0c74b;
}
.lab-card h3 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.lab-card .mono {
  color: #bdcad2;
}
.checklist {
  margin: 18px 0 22px;
}
.checklist li {
  border-color: #3c4c58;
  color: #dce5ea;
  line-height: 1.55;
  padding: 10px 0;
  font-size: 13px;
}
.checklist i {
  color: var(--mint);
}
.stage-detail {
  margin-bottom: 0;
}
.detail-status {
  margin: 12px 0 13px;
}
.provenance,details {
  margin-top: 12px;
  border: 1px solid #42515e;
  background: #17232d;
  border-radius: 6px;
  overflow: hidden;
  padding: 0 13px;
}
.provenance summary,details summary {
  font-size: 13px;
  font-weight: 650;
  color: #d9e3eb;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 14px 22px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.provenance summary:after,details summary:after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  font-weight: 400;
  color: #ffd60b;
  transition: rotate .3s;
}
.provenance[open] summary:after,details[open] summary:after {
  rotate: 45deg;
}
.provenance summary::-webkit-details-marker,details summary::-webkit-details-marker {
  display: none;
}
.provenance summary small {
  font: 9px var(--mono);
  color: #a3b4c1;
}
.provenance[open]>*:not(summary),details[open]>*:not(summary) {
  animation: detailIn .28s var(--ease) both;
}
.provenance .output {
  font-size: 11px;
  overflow-wrap: anywhere;
}
@keyframes detailIn {
  from {
    opacity: 0;
    translate: 0 -5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.route-controls {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr)) auto auto;
  align-items: end;
  gap: 12px;
  padding: 17px 19px;
}
.route-controls button {
  min-height: 42px;
  font-size: 13px;
  padding: 9px 14px;
}
.route-controls #route-candidate[aria-pressed=true] {
  background: var(--yellow);
}
.route-layout {
  grid-template-columns: minmax(0,1.27fr) minmax(0,1fr);
  align-items: stretch;
}
.route-canvas {
  min-height: 440px;
}
.route-canvas svg {
  max-height: 460px;
}
.route-line {
  stroke: #718b9c;
  stroke-width: 2;
}
.route-line.path-active {
  stroke: #ffd60b;
  stroke-width: 4;
  filter: drop-shadow(0 0 3px #ffd60b65);
}
.route-line.down {
  stroke: #fe6a00;
  stroke-dasharray: 4 8;
}
.route-point circle {
  fill: #304657;
  stroke: #7794a4;
}
.route-point circle+circle {
  fill: #1b2935;
}
.route-point.path-node circle {
  stroke: #ffd60b;
  filter: drop-shadow(0 0 6px #ffd60b60);
}
.route-point text,.route-weight {
  font: 12px Arial,Helvetica,sans-serif;
  fill: #dce7eb;
}
.decision-panel {
  padding: 24px;
  overflow: hidden;
}
.decision-panel .label span {
  color: #8395a5;
}
.decision-panel .decision-title {
  font-size: clamp(42px,4vw,61px);
  line-height: 1;
  letter-spacing: -.055em;
  margin: 13px 0 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffb385;
}
.decision-panel.is-allowed .decision-title {
  color: #9be5d0;
}
.decision-title:before {
  content: '';
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
  opacity: .8;
}
.decision-note {
  margin: 12px 0 22px;
  font-size: 12px!important;
}
.link-heading {
  padding-top: 15px;
  border-top: 1px solid #3f505e;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.link-heading small {
  font-size: 11px;
  color: #9fb1bf;
}
.link-buttons {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
.link-buttons .chip {
  display: flex;
  justify-content: flex-start;
  gap: 7px;
  font-size: 11px;
  text-align: left;
  padding: 9px;
  min-width: 0;
  background: #1a2833;
  line-height: 1.3;
}
.link-buttons .chip span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.link-buttons .chip small {
  font: 9px var(--mono);
  color: #9cdbca;
}
.link-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #86d4c2;
}
.link-buttons .failed-link {
  border-color: #fe6a00;
  background: #452f29;
  color: #ffbe95;
}
.failed-link .link-dot {
  background: #fe6a00;
}
.failed-link small {
  color: #ffbe95!important;
}
.link-buttons .chip:hover {
  border-color: #94aab5;
}
.decision-panel .kv {
  padding: 10px 0;
}
.stage-detail .kv span:last-child {
  font-family: var(--mono);
  font-size: 10px;
}
.group-tabs {
  gap: 6px;
}
.riskbar {
  background: #3d4a56;
}
.riskbar i {
  background: linear-gradient(90deg,#feb41f,#fe6a00);
}
dialog {
  background: #1b2834;
  color: var(--paper);
  border: 1px solid #657784;
  border-radius: 12px;
  box-shadow: 0 25px 90px #0009;
}
dialog::backdrop {
  background: #0c141dbd;
  backdrop-filter: blur(8px);
}
dialog[open] {
  animation: detailIn .3s var(--ease);
}
.pal-head {
  color: var(--yellow);
}
#results a {
  border-color: #40505e;
}
#results a:hover {
  background: #263845;
  border-radius: 5px;
}
#toast {
  background: var(--yellow);
  color: #18212a;
  border-radius: 7px;
  bottom: 90px;
  z-index: 20;
}
.motion-pending {
  opacity: 0;
  translate: 0 18px;
}
.motion-enter {
  animation: motionEnter .62s var(--ease) var(--delay,0ms) both;
}
@keyframes motionEnter {
  0% {
    opacity: 0;
    translate: 0 18px;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}
.motion-enter:focus-within,.motion-pending:focus-within {
  opacity: 1;
  translate: 0 0;
  animation: none;
}
.action:after {
  background: linear-gradient(90deg,transparent,#ffffff42,transparent);
}
.chapter-card,.lab-card {
  will-change: auto;
}
.canvas svg {
  max-width: 100%;
}
.scroll-reveal {
  scroll-margin-top: 20px;
}
@media(max-width:1100px) {
  .dock a {
    padding: 11px 10px;
  }
  .route-controls {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .route-controls button {
    grid-column: auto;
  }
  .editorial-hero h1 {
    font-size: clamp(68px,9vw,110px);
  }
  .chapter-card {
    min-height: 270px;
  }
}
@media(max-width:900px) {
  .editorial-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .editorial-hero .hero-copy {
    padding: 45px 5vw 28px;
  }
  .editorial-hero h1 {
    font-size: clamp(68px,12vw,112px);
  }
  .hero-art {
    min-height: 440px;
    max-height: 500px;
  }
  .editorial-hero .hero-meta {
    max-width: 100%;
  }
  .editorial-hero p {
    max-width: 440px;
  }
  .chapter-head {
    grid-template-columns: 1fr;
    row-gap: 15px;
  }
  .chapter-head p {
    justify-self: start;
  }
  .chapter-grid {
    grid-template-columns: repeat(3,minmax(240px,1fr));
    overflow: auto;
    padding-bottom: 12px;
  }
  .proof-story {
    padding: 28px;
    grid-template-columns: 1fr 1fr;
  }
  .lab-layout,.route-layout,.workspace-grid,.grid2,.split {
    grid-template-columns: 1fr;
  }
  .workspace-grid {
    min-height: 0;
  }
  .canvas {
    min-height: 390px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .page-tools {
    justify-content: flex-start;
  }
  .route-canvas {
    min-height: 370px;
  }
  .dock {
    width: max-content;
    max-width: calc(100vw - 20px);
  }
  .dock a {
    font-size: 12px;
  }
  .foot {
    padding-bottom: 85px;
  }
  .page {
    padding-top: 30px;
  }
}
@media(max-width:520px) {
  .mast {
    height: 64px;
    gap: 10px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand img {
    height: 28px;
    width: 25px;
  }
  .status {
    font-size: 8px;
    max-width: 100px;
    line-height: 1.3;
  }
  .header-right {
    gap: 8px;
  }
  .key {
    padding: 8px;
    font-size: 0;
    min-height: 33px;
  }
  .key kbd {
    font-size: 10px;
    margin: 0;
  }
  .editorial-hero .hero-copy {
    padding: 38px 5vw 22px;
  }
  .editorial-hero h1 {
    font-size: clamp(60px,17vw,88px);
  }
  .editorial-hero .eyebrow {
    font-size: 9px;
    margin-bottom: 20px;
  }
  .editorial-hero p {
    margin: 20px 0;
    font-size: 15px;
  }
  .editorial-hero .hero-meta {
    margin-top: 24px;
  }
  .editorial-hero .hero-meta>div {
    padding-right: 7px;
  }
  .editorial-hero .hero-meta>div+div {
    padding-left: 8px;
  }
  .editorial-hero .hero-meta b {
    font-size: 28px;
  }
  .hero-art {
    min-height: 335px;
    height: 355px;
  }
  .art-label,.art-bottom {
    font-size: 8px;
    left: 13px;
    right: 13px;
  }
  .art-label {
    top: 15px;
  }
  .art-bottom {
    bottom: 13px;
  }
  .art-callout {
    bottom: 12%;
    font-size: 8px;
  }
  .art-callout small {
    font-size: 7px;
  }
  .chapters {
    padding: 38px 5vw 35px;
  }
  .chapter-grid {
    grid-template-columns: repeat(3,78vw);
    gap: 10px;
  }
  .chapter-card {
    min-height: 260px;
  }
  .chapter-head h2,.proof-story h2 {
    font-size: 43px;
  }
  .proof-story {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .proof-copy {
    justify-self: start;
  }
  .pagehead h1 {
    font-size: clamp(38px,10vw,52px);
  }
  .pagehead p {
    font-size: 13px;
  }
  .page {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .grid3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
  }
  .metric {
    padding: 14px 9px;
    min-height: 101px;
  }
  .metric span {
    font-size: 8px;
    line-height: 1.4;
    min-height: 23px;
  }
  .metric strong {
    font-size: 34px;
    margin-top: 5px;
  }
  .metric:after {
    left: 9px;
    width: 24px;
  }
  .panel,.inspector,.decision-panel {
    padding: 17px;
  }
  .canvas {
    min-height: 290px;
  }
  .canvas-header,.canvas-key {
    font-size: 8px;
    left: 12px;
    right: 12px;
  }
  .route-canvas {
    min-height: 300px;
  }
  .route-controls {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
    padding: 14px;
  }
  .route-controls label:nth-child(3) {
    grid-column: 1/-1;
  }
  .route-controls button {
    font-size: 11px;
    padding: 9px 8px;
  }
  .lab-banner>div {
    padding: 14px 10px;
  }
  .lab-banner strong {
    font-size: 32px;
  }
  .lab-banner .word-metric {
    font-size: 25px;
  }
  .lab-banner p {
    font-size: 10px;
    line-height: 1.4;
  }
  .lab-banner .label {
    font-size: 8px;
  }
  .lab-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
  }
  .lab-card {
    min-height: 120px;
    padding: 12px;
  }
  .lab-card h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .lab-card .mono {
    font-size: 8px;
  }
  .link-buttons .chip {
    font-size: 10px;
    padding: 8px 7px;
  }
  .decision-panel .decision-title {
    font-size: 43px;
  }
  .kv {
    font-size: 12px;
  }
  .group-tabs .chip {
    font-size: 11px;
    padding: 7px 9px;
  }
  .provenance summary {
    font-size: 12px;
  }
  .provenance summary small {
    font-size: 8px;
  }
  .dock {
    bottom: 12px;
    width: calc(100vw - 20px);
  }
  .foot {
    padding-bottom: 88px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .motion-pending {
    opacity: 1;
    translate: 0 0;
  }
  .motion-enter,.marquee,.editorial-hero h1 em:before {
    animation: none!important;
  }
  .magnetic,.chapter-card,.lab-card {
    transform: none!important;
    translate: 0 0!important;
  }
  .hero-art canvas {
    transform: none;
  }
  .action,.subtle,.chip,button {
    transition: none!important;
  }
}
/* Fine pointer embellishments, independent of functional controls. */
.pointer-halo {
  position: fixed;
  z-index: 12;
  width: 22px;
  height: 22px;
  left: 0;
  top: 0;
  border: 1px solid #ffd60b80;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #ffd60b12,0 0 24px #ffd60b18;
  transform: translate(-50%,-50%) scale(.72);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s,transform .26s var(--ease);
}
.pointer-halo.visible {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
body[data-page=home] .mast:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  transform: scaleX(var(--reading-progress,0));
  transform-origin: left;
  height: 2px;
  background: var(--yellow);
  pointer-events: none;
}
.chapter-card:after,.lab-card:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(115deg,transparent 20%,#ffe66d23 49%,transparent 74%);
  transform: translateX(-100%);
  transition: opacity .4s,transform .8s var(--ease);
}
.chapter-card:hover:after,.lab-card:hover:after {
  opacity: 1;
  transform: translateX(100%);
}
.chapter-card:hover,.lab-card:hover {
  box-shadow: 0 12px 42px #0003,0 0 22px #ffd60b13;
}
.route-controls button:active {
  scale: .97;
}
.route-canvas {
  padding-bottom: 40px;
}
.route-canvas svg {
  max-height: 420px;
}
.link-buttons .chip {
  min-height: 36px;
}
.decision-panel .decision-title {
  margin-bottom: 13px;
}
.decision-panel .kv {
  padding: 8px 0;
}
.decision-note {
  margin: 10px 0 15px;
}
.route-layout {
  margin-bottom: 30px;
}
.route-canvas .canvas-key {
  bottom: 15px;
}
.editorial-hero .hero-meta {
  max-width: 480px;
}
.dock a {
  min-height: 40px;
}
.hero-art canvas {
  z-index: 1;
}
@media(prefers-reduced-motion:reduce) {
  .pointer-halo {
    display: none!important;
  }
  .chapter-card:after,.lab-card:after {
    display: none;
  }
  .route-line.path-active {
    stroke-dasharray: none;
    animation: none;
  }
}
.editorial-hero h1 {
  letter-spacing: -.071em;
  font-size: clamp(64px,8.2vw,138px);
}
@media(max-width:900px) {
  .editorial-hero h1 {
    font-size: clamp(66px,12vw,110px);
  }
}
@media(max-width:520px) {
  .editorial-hero h1 {
    font-size: clamp(58px,16.5vw,86px);
  }
}
.hero-art canvas {
  z-index: 1;
  position: relative;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.22));
}
.hero-art canvas:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}
.chapter-card .chapter-text,.lab-card,.panel,.canvas {
  backface-visibility: hidden;
}
.chapter-card .chapter-text b,.chapter-card .chapter-text small,.chapter-card .chapter-text span {
  position: relative;
  z-index: 2;
}
@media(max-width:900px) {
  .lab-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-grid,.lab-layout,.route-layout {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 400px;
  }
}
@media(max-width:680px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .chapter-grid {
    grid-template-columns: 1fr;
  }
  .chapter-card {
    min-height: 240px;
  }
  .hero-art {
    min-height: 320px;
  }
}
/* v1.0.2 refinement pass */
:root {
  font-family: 'Manrope',Inter,'SF Pro Display','Segoe UI',Arial,sans-serif;
  --mono: 'IBM Plex Mono',ui-monospace,SFMono-Regular,Consolas,monospace;
  --page-max: 1420px;
}
body {
  font-family: 'Manrope',Inter,'SF Pro Display','Segoe UI',Arial,sans-serif;
  background: radial-gradient(1200px 680px at 16% -4%,rgba(255,214,11,.08),transparent 56%),
 radial-gradient(1000px 720px at 88% 8%,rgba(120,190,255,.07),transparent 58%),
 linear-gradient(180deg,#09131d 0%,#101b26 100%);
}
#workspace,.page,.chapters,.proof-story,.visual-archive {
  position: relative;
  z-index: 1;
}
.ambient-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
  mix-blend-mode: screen;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(480px circle at 18% 12%,rgba(255,214,11,.05),transparent 62%),
 radial-gradient(420px circle at 82% 24%,rgba(99,190,255,.045),transparent 60%),
 linear-gradient(90deg,transparent,rgba(255,255,255,.01),transparent);
}
.mast {
  z-index: 4;
}
.page,.chapters {
  max-width: var(--page-max);
  margin-inline: auto;
}
.panel,.metric,.chapter-card,.lab-card,.canvas,.inspector,.workspace-grid,.proof-story {
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.marquee {
  animation-duration: 36s;
}
.action,.subtle,.chip,.key {
  border-radius: 10px;
}
.action,.subtle {
  padding-inline: 18px;
}
.action span,.subtle span {
  display: inline-flex;
  align-items: center;
}
select {
  padding-right: 44px;
  background-position: right 14px center;
}
summary {
  padding-right: 28px!important;
}
.summary-tight summary, .provenance summary, details summary {
  line-height: 1.45;
}
.proof-story {
  margin: 0 auto 28px;
  padding: 42px clamp(22px,3vw,40px);
  grid-template-columns: minmax(0,1.12fr) minmax(300px,.88fr);
  gap: 42px;
  align-items: end;
  overflow: hidden;
}
.proof-story:before {
  content: '';
  position: absolute;
  inset: auto auto -80px -40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,214,11,.12),transparent 68%);
  pointer-events: none;
}
.proof-story .eyebrow {
  margin-bottom: 4px;
}
.proof-story h2 {
  max-width: 9ch;
}
.proof-copy {
  justify-self: stretch;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: center;
  max-width: none;
}
.proof-number {
  grid-row: 1 / span 2;
  font-size: clamp(82px,10vw,148px);
}
.proof-copy p {
  margin: 0;
  max-width: 29ch;
}
.proof-copy .action {
  justify-self: start;
  margin-top: 2px;
}
.chapter-grid {
  gap: 18px;
}
.chapter-card {
  min-height: 324px;
  padding: 22px;
  border-color: #4c5966;
  background: linear-gradient(180deg,#21303d 0%,#19232e 100%);
}
.chapter-art {
  inset: 0 0 84px;
  background: radial-gradient(ellipse at 50% 34%,rgba(255,214,11,.08),transparent 52%),radial-gradient(ellipse at 50% 45%,#415364,#1b2733 72%);
}
.chapter-art.policy {
  background: radial-gradient(ellipse at 50% 34%,rgba(254,180,31,.09),transparent 52%),radial-gradient(ellipse,#5b4227,#222b33 74%);
}
.chapter-art.evidence {
  background: radial-gradient(ellipse at 50% 34%,rgba(134,212,194,.08),transparent 52%),radial-gradient(ellipse,#315253,#182833 74%);
}
.chapter-text {
  padding-top: 42px;
}
.chapter-text b {
  font-size: 30px;
  margin-bottom: 9px;
}
.chapter-text small {
  max-width: 92%;
  font-size: 14px;
}
.chapter-text span {
  right: 2px;
  top: 18px;
}
.grid2 {
  gap: 20px;
  align-items: stretch;
}
.panel {
  padding: 26px;
}
.panel h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.panel p {
  max-width: 66ch;
}
.kv {
  gap: 24px;
}
.kv span:last-child {
  max-width: 54%;
  text-align: right;
}
.row-actions {
  align-items: center;
}
/* tighten miscellaneous cards and report modal */
#photo-dialog {
  width: min(1240px,96vw);
  padding: 18px 18px 16px;
}
#photo-dialog .photo-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}
#photo-dialog h2 {
  font-size: clamp(34px,4vw,54px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-top: 4px;
}
#photo-dialog .photo-view {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg,#0e1822,#101922);
  border: 1px solid #31414c;
  border-radius: 10px;
  padding: 14px;
  min-height: 360px;
}
#photo-dialog .photo-full {
  max-width: 100%;
  max-height: min(66svh,760px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
#photo-dialog .photo-bottom {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 14px;
}
#photo-dialog .photo-bottom>div:first-child {
  min-width: 0;
}
#photo-dialog details {
  margin-top: 10px;
}
#photo-dialog code {
  display: block;
  overflow-wrap: anywhere;
}
#photo-dialog .photo-nav {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#photo-dialog .photo-prev,#photo-dialog .photo-next,#photo-dialog .photo-download {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#photo-dialog .photo-close {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #43515d;
  background: #1b2834;
  color: #edf2f5;
  font-size: 28px;
  line-height: 1;
}
#photo-dialog .photo-close:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.release-reports,.archive-grid,.stage-photo-grid {
  display: grid;
  gap: 14px;
}
.release-reports {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
}
.release-report {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid #42515e;
  border-radius: 10px;
  background: linear-gradient(180deg,#1b2732,#17212a);
}
.release-report h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.release-report .subtle {
  align-self: flex-start;
  margin-top: 2px;
}
.release-report details {
  margin-top: auto;
}
.release-report p {
  margin: 0;
}
.provenance,details {
  padding-inline: 14px;
}
.provenance summary,details summary {
  padding-block: 14px;
  min-height: 54px;
}
.stage-photos .photo-heading,.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}
.stage-photo-grid {
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
}
.photo-card {
  appearance: none;
  border: 1px solid #3f4e5b;
  background: linear-gradient(180deg,#17212b,#13202a);
  border-radius: 10px;
  padding: 10px;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
}
.photo-card strong {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.photo-card .photo-kind {
  font: 10px var(--mono);
  color: #9fb2c0;
}
.photo-preview {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0f1821;
  aspect-ratio: 4/3;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-open {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(19,32,42,.84);
  border: 1px solid #50616f;
  border-radius: 9px;
}
.photo-card:hover {
  border-color: var(--yellow);
  translate: 0 -2px;
  box-shadow: 0 10px 32px rgba(0,0,0,.2);
}
/* form and button rhythm */
.form-row,.route-controls,.page-tools {
  align-items: stretch;
}
.route-controls button,.page-tools .action,.page-tools .subtle,.row-actions .action,.row-actions .subtle {
  min-height: 44px;
}
.route-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media(max-width:1100px) {
  .proof-story {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .proof-copy {
    grid-template-columns: auto 1fr;
  }
  .release-reports {
    grid-template-columns: 1fr;
  }
}
@media(max-width:760px) {
  .proof-copy {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .proof-number {
    grid-row: auto;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  #photo-dialog .photo-bottom {
    grid-template-columns: 1fr;
  }
  #photo-dialog .photo-nav {
    justify-content: flex-start;
  }
  .chapter-card {
    min-height: 294px;
  }
}
@media(max-width:520px) {
  .proof-story {
    padding: 22px 18px;
  }
  .chapter-text b {
    font-size: 26px;
  }
  .panel {
    padding: 18px;
  }
  #photo-dialog {
    padding: 12px;
  }
  #photo-dialog .photo-view {
    padding: 10px;
    min-height: 240px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .ambient-particles {
    display: none!important;
  }
}
