@import url("/console/fonts/plex.css?v=1");
/*
 * CertaRail experience layer.
 *
 * This file owns the product shell and visual system. Domain-specific components
 * remain in styles.css so runtime markup and API contracts stay independently
 * maintainable.
 */

:root {
  --shell-sidebar: 248px;
  --bg: #081321;
  --workbench: #0b1422;
  --sidebar: #081321;
  --sidebar-text: #f2f6fb;
  --sidebar-muted: #aebdce;
  --sidebar-faint: #8fa2b8;
  --sidebar-line: rgba(218, 229, 242, .12);
  --sidebar-active: rgba(127, 176, 230, .14);
  --surface: #111e2f;
  --surface-2: #17263a;
  --surface-3: #20324a;
  --line: rgba(218, 229, 242, .12);
  --line-strong: rgba(218, 229, 242, .22);
  --text: #f2f6fb;
  --muted: #aebdce;
  --faint: #8fa2b8;
  --accent: #7fb0e6;
  --accent-2: #4d83bd;
  --accent-fill: #7fb0e6;
  --accent-ink: #0e1929;
  --accent-text: #a9cff4;
  --focus: #8fc0f2;
  --amber: #f2c96d;
  --amber-fill: #f2c96d;
  --amber-ink: #2d2005;
  --red: #ff8791;
  --red-fill: #b91f35;
  --red-ink: #fff7f7;
  --blue: #78bdff;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .3);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, .16);
  --display: "Onest Variable", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --sans: "Onest Variable", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono Variable", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --workbench: #f7f8fa;
  --sidebar: #eef2f6;
  --sidebar-text: #111b29;
  --sidebar-muted: #526477;
  --sidebar-faint: #687b90;
  --sidebar-line: #d2dae5;
  --sidebar-active: #e8f0fb;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-3: #e4eaf0;
  --line: #d2dae5;
  --line-strong: #9dabb9;
  --text: #111b29;
  --muted: #526477;
  --faint: #687b90;
  --accent: #173f6b;
  --accent-2: #0e1929;
  --accent-fill: #173f6b;
  --accent-ink: #ffffff;
  --accent-text: #173f6b;
  --focus: #2563a8;
  --amber: #8a5a0a;
  --amber-fill: #8a5a0a;
  --amber-ink: #ffffff;
  --red: #a23b3f;
  --red-fill: #a23b3f;
  --red-ink: #ffffff;
  --blue: #285d86;
  --shadow: 0 20px 55px rgba(14, 25, 41, .1);
  --shadow-card: 0 10px 30px rgba(14, 25, 41, .06);
}

html {
  background: var(--bg);
  scrollbar-color: var(--line-strong) transparent;
}

body {
  position: relative;
  min-height: 100dvh;
  background: var(--workbench);
  font-size: 15px;
  letter-spacing: -.005em;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon > use {
  pointer-events: none;
}

.icon-button .ui-icon,
.map-play .ui-icon {
  transform-box: fill-box;
  transform-origin: center;
}

body::before {
  content: none;
}

.app-shell {
  position: relative;
  z-index: 1;
}

button,
a,
input,
select,
summary {
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline-color: var(--focus);
  outline-width: 3px;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.route-view h2 {
  scroll-margin-top: 108px;
}

.route-view h2[tabindex="-1"] {
  position: relative;
}

.route-view h2[tabindex="-1"]:focus-visible {
  outline: none;
}

.route-view h2[tabindex="-1"]:focus-visible::before {
  content: "";
  position: absolute;
  top: .08em;
  bottom: .08em;
  left: -16px;
  width: 3px;
  background: var(--focus);
  border-radius: 3px;
}

.skip-link {
  border-radius: var(--radius-sm);
  font-weight: 750;
}

/* App shell */

.sidebar {
  width: var(--shell-sidebar);
  padding: 0;
  overflow: hidden;
  background: var(--sidebar);
  border-right-color: var(--sidebar-line);
  box-shadow: none;
}

.brand {
  height: 64px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--sidebar-line);
  border-radius: 0;
  background: transparent;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -.035em;
}

.brand small {
  margin-top: 1px;
  color: var(--sidebar-faint);
  font-size: 9px;
  letter-spacing: .18em;
}

.brand-mark {
  width: 27px;
  height: 30px;
}

.brand-mark i {
  border-radius: 2px;
}

.nav {
  min-width: 0;
  margin: 0;
  padding: 12px 12px 18px;
}

.nav-group + .nav-group {
  margin-top: 16px;
}

.nav-group-title {
  margin: 0 10px 5px;
  color: var(--sidebar-faint);
  font: 650 9px/1.4 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-group-links {
  display: grid;
  gap: 1px;
}

.nav-link {
  width: 100%;
  min-height: 40px;
  margin: 0;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 0 10px;
  color: var(--sidebar-muted);
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: color .16s ease, background-color .16s ease;
}

.nav-link .nav-icon {
  width: 17px;
  height: 17px;
  color: var(--sidebar-faint);
  transition: color .16s ease;
}

.nav-link .nav-label {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--sidebar-text);
  background: color-mix(in srgb, var(--sidebar-active) 55%, transparent);
}

.nav-link.active {
  color: var(--sidebar-text);
  background: var(--sidebar-active);
  box-shadow: none;
}

.nav-link.active .nav-icon {
  color: var(--sidebar-text);
}

.nav-link::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 2px;
  background: var(--accent-fill);
  border-radius: 0 2px 2px 0;
  content: "";
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .2s var(--ease-out);
}

.nav-link.active::before {
  transform: scaleY(1);
}

.sidebar-bottom {
  margin: auto 0 0;
  padding: 12px 14px 14px;
  border-top-color: var(--sidebar-line);
}

.sidebar-exits {
  display: grid;
  gap: 2px;
  margin: -2px 0 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sidebar-line);
}

.sidebar-exits a {
  display: grid;
  min-height: 44px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  color: var(--sidebar-muted);
  border-radius: var(--radius-xs);
  transition: color .16s ease, background-color .16s ease;
}

.sidebar-exits a:hover,
.sidebar-exits a:focus-visible { color: var(--sidebar-text); background: var(--sidebar-active); }
.sidebar-exits .ui-icon { width: 16px; height: 16px; color: var(--sidebar-faint); }
.sidebar-exits span,
.sidebar-exits strong,
.sidebar-exits small { display: block; min-width: 0; }
.sidebar-exits strong { font-size: 11px; }
.sidebar-exits small { margin-top: 2px; color: var(--sidebar-faint); font-size: 8px; }
.direction-back { transform: rotate(180deg); }

.environment {
  gap: 10px;
}

.environment-code {
  display: grid;
  width: 34px;
  height: 26px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 34%, transparent);
  border-radius: var(--radius-xs);
  font: 750 8px/1 var(--mono);
  letter-spacing: .08em;
}

.environment strong {
  font-size: 11px;
}

.environment small {
  margin-top: 2px;
  color: var(--sidebar-muted);
  font-size: 9px;
}

.navigation-close,
.navigation-toggle,
.navigation-scrim,
.mobile-boundary-mark,
.mobile-runtime-status {
  display: none;
}

main {
  min-width: 0;
  margin-left: var(--shell-sidebar);
  container-name: console-main;
  container-type: inline-size;
}

.topbar {
  container-name: console-topbar;
  container-type: inline-size;
  min-height: 68px;
  padding: 9px clamp(22px, 2.7vw, 48px);
  background: var(--surface);
  border-bottom-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

.topbar-product-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 730;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.topbar-product-link .ui-icon { width: 15px; height: 15px; }
.topbar-product-link:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }

.topbar-context,
.top-actions,
.runtime-cluster,
.runtime-pill {
  display: flex;
  align-items: center;
}

.topbar-context {
  min-width: 170px;
  gap: 10px;
}

.topbar h1 {
  margin-top: 3px;
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -.035em;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
}

.top-actions {
  min-width: 0;
  gap: 8px;
}

.command-trigger {
  display: flex;
  width: clamp(180px, 18vw, 280px);
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 9px 0 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}

.command-trigger:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}

.command-trigger > span {
  color: var(--accent-text);
  font: 18px/1 var(--mono);
}

.command-trigger strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 11px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

kbd {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 5px;
  color: var(--faint);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 5px;
  font: 10px var(--mono);
}

.environment-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 700;
}

.runtime-cluster {
  gap: 4px;
  padding: 4px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.runtime-pill {
  min-height: 30px;
  gap: 7px;
  padding: 0 8px;
  color: var(--muted);
  border-radius: 7px;
  font: 10px var(--mono);
  white-space: nowrap;
}

.runtime-pill i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--faint);
}

.runtime-pill.ok i {
  background: var(--accent-fill);
}

.runtime-pill.error i {
  background: var(--red);
}

.health {
  margin: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.session-button {
  min-width: 174px;
  min-height: 42px;
  padding: 5px 10px 5px 5px;
  border-radius: var(--radius-sm);
}

.session-button > span {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  color: var(--accent-ink);
  background: var(--accent-fill);
  font-size: 10px;
}

.session-button strong {
  font-size: 10px;
}

.session-button small {
  font-size: 9px;
}

/* Content hierarchy */

.section {
  padding: clamp(32px, 4vw, 56px) clamp(22px, 3.2vw, 52px);
}

.cockpit-grid.route-view {
  min-height: auto;
}

/* A locked overview must not imply outcome distribution before data exists. */
.donut {
  background: conic-gradient(var(--line-strong) 0 100%);
}

.lab-scan i,
.radar i {
  animation-iteration-count: 2;
}

.overview {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100dvh - 84px));
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: clamp(48px, 5vw, 96px);
  align-items: center;
  overflow: hidden;
  padding-block: clamp(72px, 7vw, 112px);
  background:
    radial-gradient(circle at 84% 36%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 24rem),
    radial-gradient(circle at 13% 104%, color-mix(in srgb, var(--blue) 5%, transparent), transparent 28rem),
    linear-gradient(128deg, transparent 24%, color-mix(in srgb, var(--surface) 22%, transparent));
}

.overview::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  opacity: .7;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.overview > * {
  min-width: 0;
}

.overview-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  align-items: center;
  margin-bottom: 25px;
  font-size: 10px;
}

.kicker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--accent-text);
  border: 0;
  font-weight: 700;
}

.kicker span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent-fill);
  border-radius: 50%;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-fill) 56%, transparent);
}

.kicker small {
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
}

.overview h2 {
  display: grid;
  max-width: 880px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 5.1vw, 88px);
  font-weight: 630;
  line-height: .92;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.overview h2 span {
  display: block;
}

.overview h2 em {
  color: var(--accent-text);
  font-style: normal;
  font-weight: 590;
}

.overview-copy > p:not(.kicker) {
  max-width: 680px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.hero-actions {
  gap: 16px;
  margin-top: 32px;
}

.hero-actions .primary-button {
  min-height: 52px;
  gap: 22px;
  padding: 0 8px 0 19px;
  border-radius: 999px;
  font-size: 11px;
  transition: transform .18s ease;
}

.hero-actions .primary-button b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform .18s var(--ease-out);
}

.hero-actions .primary-button:hover b {
  transform: translateX(3px);
}

.hero-actions .primary-button:hover:not(:disabled) {
  filter: none;
  transform: translateY(-2px);
}

.hero-actions .text-link {
  min-height: 52px;
  padding-inline: 4px;
  font-size: 12px;
}

.hero-actions .text-link span {
  transition: transform .18s var(--ease-out);
}

.hero-actions .text-link:hover span {
  transform: translateX(3px);
}

.hero-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--faint);
  list-style: none;
  font: 10px var(--mono);
  letter-spacing: .03em;
}

.hero-principles li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-principles i {
  width: 5px;
  height: 5px;
  background: var(--accent-fill);
  border-radius: 50%;
}

.system-map {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 410px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(210px, 1fr) auto;
  overflow: hidden;
  margin: 0;
  padding: 26px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--surface) 96%, white 1%), color-mix(in srgb, var(--surface-2) 86%, transparent)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .025);
  transition: transform .28s var(--ease-out);
}

.system-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.system-map::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 250px;
  height: 250px;
  opacity: .72;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 11%, transparent), transparent 68%);
  border-radius: 50%;
  transition: opacity .28s ease;
  pointer-events: none;
}

.system-map:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .035);
  transform: translateY(-3px);
}

.system-map:hover::after {
  opacity: 1;
}

.system-map-head,
.system-map-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.system-map-head h3 {
  margin: 7px 0 0;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -.035em;
}

.map-status {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line));
  border-radius: 999px;
  font: 9px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.map-status i {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.system-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.map-play {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--accent-text);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s var(--ease-out);
}

.map-play:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  transform: translateY(-1px);
}

.map-play:disabled {
  opacity: .62;
  cursor: wait;
}

.map-play .ui-icon {
  width: 16px;
  height: 16px;
}

.rail-stage {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  align-items: center;
  padding: 46px 0 20px;
}

.rail-line {
  position: absolute;
  z-index: 0;
  top: 67px;
  right: 8%;
  left: 8%;
  width: auto;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--line-strong) 7%, var(--line-strong) 93%, transparent);
}

.rail-signal {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, var(--accent-fill), transparent);
  transform: translateX(-120%);
}

.rail-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rail-node {
  display: grid;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.rail-node::before {
  content: none;
}

.rail-node .rail-node-marker {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--surface) 86%, transparent);
  font: 700 9px var(--mono);
}

.rail-node.verified .rail-node-marker {
  color: var(--accent-ink);
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 6%, var(--surface)), 0 0 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.rail-node.boundary .rail-node-marker {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
}

.rail-node.draft .rail-node-marker {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
}

.rail-node > div {
  display: grid;
  min-width: 0;
  margin-top: 17px;
}

.rail-node strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-node small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--faint);
  font: 9px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-map-foot {
  min-width: 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.system-map-foot span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.system-map-foot span i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--accent-fill);
  border-radius: 50%;
}

.system-map-foot code {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font: 9px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.preset,
.row-actions button,
.row-actions a,
.endpoint-row button,
.endpoint-row a {
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 680;
}

.primary-button {
  color: var(--accent-ink);
  background: var(--accent-fill);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent-fill) 15%, transparent);
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.text-link {
  font-size: 12px;
  font-weight: 650;
}

.metrics-grid {
  gap: 10px;
  padding: 18px clamp(22px, 3.2vw, 52px);
  background: color-mix(in srgb, var(--surface) 38%, transparent);
}

.metric,
.metric:first-child,
.metric:nth-child(n) {
  padding: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.metric span,
.metric > small {
  font-size: 10px;
}

.metric > strong {
  margin-top: 14px;
}

.card {
  overflow: visible;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--surface) 97%, white 1%), var(--surface));
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.card-head {
  min-height: 74px;
  padding: 17px 20px;
}

.card-head h3 {
  font-size: 14px;
}

.card-head small,
.chip {
  font-size: 9px;
}

.chip {
  border-radius: var(--radius-xs);
  font-weight: 700;
}

.chip.live {
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.chip.blocked,
.chip.attention {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 7%, transparent);
}

.chip.design {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
  background: color-mix(in srgb, var(--red) 7%, transparent);
}

.chip.danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
  background: color-mix(in srgb, var(--red) 7%, transparent);
}

.section-heading {
  max-width: 1500px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(34px, 3.8vw, 56px);
}

.section-heading > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.launch-grid {
  margin-top: 18px;
  gap: 12px;
  background: transparent;
  border: 0;
}

.launch-card {
  min-height: 180px;
  padding: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.launch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .2);
}

.launch-card > span,
.launch-card small,
.platform-warnings strong,
.platform-warnings small {
  font-size: 10px;
}

.launch-card strong {
  font-size: 19px;
}

.platform-warnings {
  margin: 0 0 18px;
  gap: 8px;
  background: transparent;
  border: 0;
}

.platform-warnings > div {
  border: 1px solid color-mix(in srgb, var(--amber) 22%, var(--line));
  border-radius: var(--radius-sm);
}

.capability-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
}

.capability-summary-item {
  min-width: 0;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.capability-summary-item span,
.capability-summary-item small {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
}

.capability-summary-item strong {
  display: block;
  margin: 14px 0 6px;
  font: 620 28px/1 var(--mono);
}

.capability-summary-item.live strong { color: var(--accent-text); }
.capability-summary-item.design strong,
.capability-summary-item.future strong { color: var(--red); }

.capability-summary-link {
  grid-column: 1 / -1;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--accent-text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 650;
}

.locked-inline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
}

.locked-inline strong { font-size: 12px; }
.locked-inline p { margin: 0; color: var(--muted); font-size: 11px; }
.locked-inline button { grid-row: 1 / 3; grid-column: 2; }

.queue-stats {
  grid-template-columns: repeat(4, 1fr);
}

.queue-track span,
.queue-stats dt,
.queue-stats dd {
  font-size: 10px;
}

.queue-boundary {
  margin: -11px 28px 22px;
  color: var(--muted);
  font-size: 10px;
}

.sandbox-boundary li,
.lab-progress-wrap > div,
.scenario-index,
.scenario-state,
.scenario-tags span,
.scenario-run,
.lab-summary span,
.lab-event-icon,
.lab-event-copy summary,
.lab-event-meta,
.outcome-row p,
.outcome-row small,
.evidence-strip span,
.evidence-strip code,
.checks-head span,
.proof summary,
.proof dt,
.proof dd,
.advanced-fields summary,
.dialog-note {
  font-size: 10px;
}

.lab-launch-copy > p:last-child,
.scenario-copy p,
.lab-empty p,
.lab-event-copy p,
.check p,
.empty-state p {
  font-size: 11px;
  line-height: 1.55;
}

.lab-event-copy strong,
.check strong,
.checks-head h5 {
  font-size: 10px;
}

.lab-event-copy pre {
  font-size: 10px;
  line-height: 1.6;
}

.scenario {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.scenario-run {
  min-height: 42px;
  padding-inline: 10px;
  border-radius: var(--radius-sm);
}

/* Operational surfaces */

.field span,
fieldset legend,
.journal-filters span,
.catalog-toolbar label span {
  font-size: 10px;
}

.field input,
.field select,
.journal-filters input,
.journal-filters select,
.catalog-toolbar input,
.catalog-toolbar select {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

fieldset,
.compact-form form {
  gap: 14px;
}

.switch-row {
  min-height: 54px;
  border-radius: var(--radius-sm);
}

.switch-row strong,
.switch-row small,
.form-actions p {
  font-size: 10px;
}

th,
td {
  font-size: 11px;
}

th {
  color: var(--muted);
  background: var(--surface-2);
}

tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 2.5%, var(--surface));
}

.table-wrap {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.table-wrap:focus-visible,
.checks:focus-visible,
.warnings-card ul:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.movement-grid {
  grid-template-columns: minmax(580px, 1.25fr) minmax(390px, .75fr);
}

.journal-card .table-wrap {
  min-height: 250px;
}

.reference-boundary,
.sandbox-boundary,
.report-gate,
.contract-note {
  border-radius: var(--radius-sm);
}

.reference-boundary strong,
.reference-boundary small,
.sandbox-boundary strong,
.sandbox-boundary small,
.contract-note strong,
.contract-note p,
.gate-card strong,
.gate-card p {
  font-size: 11px;
}

.registry-summary span,
.registry-summary small,
.readiness-item > small,
.readiness-item p,
.production-gates span,
.production-gates small,
.production-gates b,
.endpoint-row > code,
.endpoint-row strong,
.endpoint-row small,
.probe-actions small,
.identity-card p,
.identity-card strong,
.security-invariants strong,
.security-invariants small,
.report-gate strong,
.report-gate small,
.blocker-list li,
.report-result code,
.report-actions span {
  font-size: 10px;
}

.production-gates b.gate-status.attention { color: var(--amber); }
.production-gates b.gate-status.danger { color: var(--red); }
.production-gates b.gate-status.future { color: var(--red); }
.production-gates b.gate-status.unavailable { color: var(--muted); }

.integration-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.integration-legend > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legend-mark {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform: rotate(45deg);
}

.legend-mark.implementation { border: 2px solid var(--blue); }
.legend-mark.activation { background: var(--amber-fill); }
.integration-legend p { display: grid; margin: 0; }
.integration-legend strong { font-size: 11px; }
.integration-legend small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.integration {
  min-height: 250px;
  border-top-width: 1px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.integration:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.integration h3 {
  font-size: 16px;
}

.integration p {
  font-size: 11px;
  line-height: 1.55;
}

.integration > small,
.capabilities span,
.integration-lab-link,
.catalog-toolbar output,
.state-badge {
  font-size: 10px;
}

.integration-state {
  border-radius: var(--radius-xs);
  font-size: 9px;
}

.integration-state.local-tested {
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.integration-state.sandbox-only {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 42%, transparent);
}

.integration-state.interface-only,
.integration-state.contract-only,
.integration-state.designed,
.integration-state.design-only,
.integration-state.missing {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 42%, transparent);
}

.integration-state.blocked-external {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 42%, transparent);
}

.integration-state.blocked-external.missing {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}

.integration-state.hard-disabled,
.integration-state.disabled {
  color: var(--faint);
  border-color: color-mix(in srgb, var(--faint) 40%, transparent);
}

.locked-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 24px;
}

.locked-state > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 38%, transparent);
  border-radius: var(--radius-sm);
  font: 700 10px var(--mono);
}

.locked-state strong { font-size: 14px; }
.locked-state p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.readiness-score {
  align-content: center;
}

.readiness-score > div:first-child {
  align-items: end;
}

.readiness-score span {
  color: var(--accent-text);
  font-size: 42px;
}

.readiness-breakdown {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px !important;
}

.readiness-breakdown p {
  display: grid;
  margin: 0;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.readiness-breakdown strong { font: 600 17px var(--mono); }
.readiness-breakdown small { margin-top: 2px; font-size: 9px; }
.readiness-score > p,
.warnings-card li { font-size: 10px; }

.readiness-item.design-only {
  border-top-color: var(--red);
}

.readiness-item.future {
  border-top-color: var(--red);
}

.probe-card pre {
  font-size: 11px;
  line-height: 1.65;
}

.current-session,
.identity-card,
.security-invariants article,
.production-gates article,
.registry-summary > div {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.session-orb,
.identity-card > span,
.document-icon,
.dialog-mark {
  border-radius: var(--radius-md);
}

.current-session > p:not(.eyebrow) {
  font-size: 12px;
}

/* Toasts and dialogs */

.toast {
  padding: 14px 16px;
  color: var(--accent-ink);
  background: var(--accent-fill);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.toast.error {
  color: var(--red-ink);
  background: var(--red-fill);
}

dialog {
  border-radius: var(--radius-lg);
}

dialog::backdrop {
  background: rgba(1, 7, 5, .72);
}

.dialog-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.command-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
}

.command-shell {
  display: grid;
  max-height: min(720px, calc(100dvh - 28px));
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.command-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.command-head:focus-within {
  box-shadow: inset 0 0 0 3px var(--focus);
}

.command-head > span {
  color: var(--accent-text);
  font: 24px/1 var(--mono);
}

.command-head input {
  width: 100%;
  min-height: 48px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
  font-weight: 600;
}

.command-head input::placeholder { color: var(--faint); }

.command-close {
  min-width: 44px;
  min-height: 34px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font: 9px var(--mono);
}

.command-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.command-context > span {
  color: var(--muted);
  font-size: 10px;
}

.command-results {
  min-height: 260px;
  overflow-y: auto;
  padding: 9px;
}

.command-item {
  display: grid;
  width: 100%;
  min-height: 60px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}

.command-item:hover,
.command-item.active {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}

.command-item > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 9px;
  font: 700 9px var(--mono);
}

.command-item-copy {
  display: grid;
  min-width: 0;
}

.command-item-copy strong { font-size: 12px; }
.command-item-copy small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.command-item > kbd { justify-self: end; }

.command-empty {
  display: grid;
  min-height: 230px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.command-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 9px;
  flex-direction: row;
}

.command-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Product-led canvas
 *
 * The evidence rail is the visual identity. Decorative atmosphere, floating
 * cards and interchangeable dashboard chrome are deliberately absent.
 */

.overview {
  min-height: min(720px, calc(100dvh - 84px));
  grid-template-columns: minmax(360px, .82fr) minmax(620px, 1.18fr);
  gap: clamp(42px, 4vw, 78px);
  overflow: visible;
  padding-block: clamp(58px, 6vw, 88px);
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.overview::before,
.system-map::before,
.system-map::after {
  content: none;
}

.overview-copy {
  max-width: 650px;
}

.kicker {
  margin-bottom: 22px;
}

.kicker span::before {
  width: 8px;
  height: 8px;
  background: transparent;
  border: 2px solid var(--accent-text);
  border-radius: 1px;
  box-shadow: none;
}

.overview h2 {
  max-width: 700px;
  font-size: clamp(48px, 4.7vw, 74px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.052em;
}

.overview h2 em {
  font-weight: 470;
}

.overview-copy > p:not(.kicker) {
  max-width: 620px;
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.68;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .primary-button {
  min-height: 48px;
  padding: 0 7px 0 17px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.hero-actions .primary-button b {
  width: 34px;
  height: 34px;
  border-radius: 3px;
}

.hero-principles {
  gap: 8px 18px;
  margin-top: 27px;
}

.hero-principles i {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 1px solid var(--accent-text);
  border-radius: 1px;
}

.system-map {
  min-height: 492px;
  grid-template-rows: auto auto minmax(190px, 1fr) auto auto;
  padding: 0;
  background: var(--surface);
  border-color: var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: border-color .2s ease;
}

.system-map:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: none;
  transform: none;
}

.system-map-head {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.system-map-head h3 {
  font-size: 19px;
}

.map-status {
  min-height: 28px;
  border-radius: var(--radius-xs);
}

.map-envelope {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px 22px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  border-bottom: 1px solid var(--line);
  font: 8px var(--mono);
  letter-spacing: .06em;
}

.map-envelope > span {
  color: var(--faint);
}

.map-envelope code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-envelope strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--amber);
  white-space: nowrap;
}

.map-envelope strong i {
  width: 7px;
  height: 7px;
  background: var(--amber-fill);
  border-radius: 1px;
}

.rail-stage {
  padding: 34px 20px 24px;
}

.rail-line {
  top: 57px;
  right: 7%;
  left: 7%;
}

.rail-node .rail-node-marker {
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 5px;
  box-shadow: 0 0 0 6px var(--surface);
}

.rail-node.verified .rail-node-marker {
  color: var(--accent-ink);
  box-shadow: 0 0 0 6px var(--surface);
}

.rail-node.observed .rail-node-marker {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}

.rail-node > div {
  margin-top: 14px;
}

.rail-node strong {
  font-size: 11px;
}

.rail-node small {
  font-size: 9px;
}

.rail-node > b {
  margin-top: 9px;
  color: var(--faint);
  font: 700 9px var(--mono);
  letter-spacing: .06em;
}

.rail-node.verified > b { color: var(--accent-text); }
.rail-node.draft > b { color: var(--amber); }

.overview-proof {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.overview-proof > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 13px 16px;
}

.overview-proof > span + span {
  border-left: 1px solid var(--line);
}

.overview-proof b {
  overflow: hidden;
  font-size: 9px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-proof small {
  color: var(--blue);
  font: 9px var(--mono);
  letter-spacing: .05em;
}

.overview-proof > span:last-child small {
  color: var(--amber);
}

.system-map-foot {
  padding: 13px 22px;
  border-top: 0;
}

.metrics-grid {
  gap: 0;
  padding-block: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.metric,
.metric:first-child,
.metric:nth-child(n) {
  min-height: 132px;
  padding: 22px clamp(16px, 2vw, 28px);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.metric:last-child {
  border-right: 0;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.field input:focus-visible,
.field select:focus-visible,
.catalog-toolbar input:focus-visible,
.catalog-toolbar select:focus-visible,
.journal-filters input:focus-visible,
.journal-filters select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
  box-shadow: none;
}

.launch-section {
  border-top: 1px solid var(--line);
}

.launch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.launch-card {
  min-height: 142px;
  padding: 21px 22px;
  background: transparent;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.launch-card:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  box-shadow: none;
  transform: none;
}

.launch-card strong {
  margin-top: 22px;
  font-size: 18px;
}

#reports {
  max-width: 1680px;
  margin-inline: auto;
}

.report-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  list-style: none;
}

.report-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 16px;
}

.report-flow li + li {
  border-left: 1px solid var(--line);
}

.report-flow span {
  display: grid;
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  place-items: center;
  color: var(--faint);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: 700 8px var(--mono);
}

.report-flow strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-flow small {
  margin-top: 2px;
  color: var(--faint);
  font: 9px var(--mono);
}

.report-flow .verified span {
  color: var(--accent-ink);
  background: var(--accent-fill);
  border-color: var(--accent-fill);
}

.report-flow .review span {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
}

.report-flow .closed span,
.report-flow .closed small {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 42%, var(--line));
}

.report-grid {
  grid-template-columns: minmax(360px, .72fr) minmax(560px, 1.28fr);
  gap: 12px;
}

.report-builder,
.report-preview {
  border-radius: var(--radius-md);
}

.report-preflight {
  display: grid;
  gap: 0;
  margin: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.report-inline-error {
  margin: -8px 20px 18px;
  padding: 10px 12px;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 6%, transparent);
  border-left: 2px solid var(--red);
  font-size: 10px;
}

.report-preflight > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.report-preflight dt {
  color: var(--faint);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.report-preflight dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
}

.report-preview {
  min-height: 500px;
  background:
    linear-gradient(90deg, transparent 47px, color-mix(in srgb, var(--accent) 8%, transparent) 48px, transparent 49px),
    var(--surface);
}

.report-manifest {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-blockers {
  margin-top: 18px;
  padding: 16px;
  background: color-mix(in srgb, var(--amber) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 18%, var(--line));
  border-radius: var(--radius-sm);
}

.report-blockers h4 {
  margin: 0;
  font-size: 12px;
}

.report-blockers .blocker-list {
  margin-top: 10px;
}

.report-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.report-preview .empty-state {
  min-height: 500px;
  align-content: center;
  padding-inline: clamp(34px, 6vw, 96px);
}

/* Motion system */

body.motion-ready .brand-mark i {
  transform-origin: left center;
  animation: brand-rail 1.1s var(--ease-out) 1 backwards;
}

body.motion-ready .brand-mark i:nth-child(1) { animation-delay: .04s; }
body.motion-ready .brand-mark i:nth-child(2) { animation-delay: .11s; }
body.motion-ready .brand-mark i:nth-child(3) { animation-delay: .18s; }

.runtime-pill i {
  position: relative;
}

.runtime-pill.ok i::after {
  content: "";
  position: absolute;
  inset: -5px;
  opacity: 0;
  border: 1px solid var(--accent-text);
  border-radius: 50%;
  animation: status-ring .72s var(--ease-out) .24s 1;
  pointer-events: none;
}

.primary-button,
.ghost-button,
.icon-button,
.command-trigger,
.session-button,
.scenario-run {
  transition: transform .18s var(--ease-out), color .18s ease, background-color .18s ease, border-color .18s ease;
}

.toast:not([hidden]) {
  animation: toast-in .32s var(--ease-out) 1 both;
}

dialog[open] form,
.command-dialog[open] .command-shell {
  animation: dialog-in .3s var(--ease-out) 1 both;
}

/* Regulatory draft choreography */

#reports {
  position: relative;
  isolation: isolate;
}

.report-builder,
.report-preview {
  position: relative;
}

.report-builder::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 20px;
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left;
  pointer-events: none;
}

.report-preview {
  overflow: hidden;
}

.report-preview > * {
  transition: opacity .22s ease, transform .22s var(--ease-out);
}

.report-preview[data-report-state="building"] > * {
  opacity: .38;
  transform: scale(.992);
}

.report-preview.is-rendering::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  opacity: .95;
  background: linear-gradient(90deg, var(--accent-fill), var(--blue));
  transform: scaleX(.18);
  transform-origin: left center;
  animation: evidence-build 1.1s ease-in-out infinite;
  pointer-events: none;
}

.report-preview.is-rendering::after {
  content: "JSON DRAFT · ХЕШИРОВАНИЕ EVIDENCE";
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  min-width: 0;
  padding: 8px 10px;
  color: var(--accent-text);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius-xs);
  text-align: center;
  font: 700 9px var(--mono);
  letter-spacing: .08em;
  pointer-events: none;
}

.report-preview.has-error {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
}

.report-gate {
  position: relative;
  overflow: hidden;
}

.report-gate::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 13px);
  pointer-events: none;
}

#report-form .field > span {
  transition: color .16s ease, transform .16s var(--ease-out);
}

#report-form .field:focus-within > span {
  color: var(--accent-text);
  transform: translateX(2px);
}

.report-proof summary {
  align-items: center;
  list-style: none;
}

.report-proof summary::-webkit-details-marker {
  display: none;
}

.report-proof summary::after {
  content: "+";
  color: var(--accent-text);
  font: 16px/1 var(--mono);
  transition: transform .2s var(--ease-out);
}

.report-proof[open] summary::after {
  transform: rotate(45deg);
}

.report-proof[open] dl {
  animation: report-evidence-open .28s var(--ease-out) 1 both;
}

.report-manifest > div {
  transition: transform .18s var(--ease-out);
}

@keyframes brand-rail {
  from { opacity: 0; transform: translateX(-8px) scaleX(.55); }
  to { opacity: 1; transform: none; }
}

@keyframes status-ring {
  0% { opacity: 0; transform: scale(.5); }
  18% { opacity: .7; }
  72%, 100% { opacity: 0; transform: scale(1.85); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes evidence-build {
  0% { opacity: .42; transform: translateX(-82%) scaleX(.18); }
  55% { opacity: 1; transform: translateX(18%) scaleX(.72); }
  100% { opacity: .42; transform: translateX(82%) scaleX(.18); }
}

@keyframes report-evidence-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .report-manifest > div:hover {
    transform: translateY(-2px);
  }

  #report-form .primary-button:hover:not(:disabled) b {
    transform: translateX(3px);
  }
}

@media (hover: none), (pointer: coarse) {
  .nav-link:hover,
  .system-map:hover,
  .primary-button:hover:not(:disabled),
  .launch-card:hover,
  .integration:hover,
  .scenario:hover {
    filter: none;
    transform: none;
  }
}

/* Bank integration blueprint */

.ecosystem {
  overflow: hidden;
}

.ecosystem-heading h2 {
  max-width: 760px;
}

.blueprint-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--blue) 4%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line));
  border-radius: var(--radius-sm);
}

.blueprint-boundary p,
.blueprint-boundary strong,
.blueprint-boundary small {
  display: block;
  min-width: 0;
  margin: 0;
}

.blueprint-boundary strong {
  color: var(--text);
  font-size: 11px;
}

.blueprint-boundary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.problem-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.problem-equation article {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 22px;
}

.problem-equation article > span {
  color: var(--faint);
  font: 700 9px/1.4 var(--mono);
  letter-spacing: .13em;
}

.problem-equation article > strong {
  max-width: 620px;
  margin-top: 17px;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.problem-equation article > small {
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.problem-side {
  border-right: 1px solid var(--line);
}

.solution-side {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-left: 1px solid var(--line);
}

.solution-side > span,
.solution-side > strong {
  color: var(--accent-text);
}

.equation-operator {
  display: grid;
  place-items: center;
  color: var(--accent-text);
  font: 600 17px var(--mono);
}

.ecosystem:not([hidden]) .equation-operator {
  animation: blueprint-arrow .7s var(--ease-out) .15s 1 backwards;
}

.ecosystem-stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  container-name: ecosystem-stage;
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.ecosystem-stage-head {
  display: flex;
  min-height: 84px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.ecosystem-stage-head p,
.ecosystem-stage-head h3 {
  margin: 0;
}

.ecosystem-stage-head h3 {
  margin-top: 6px;
  font-size: clamp(17px, 1.8vw, 23px);
  letter-spacing: -.035em;
}

.ecosystem-stage-head > span {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--faint);
  font: 700 8px var(--mono);
  letter-spacing: .12em;
}

.ecosystem-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.05fr) minmax(0, 1.38fr) minmax(0, 1.08fr);
  isolation: isolate;
}

.ecosystem-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 56px;
  left: 4%;
  width: 67%;
  height: 1px;
  opacity: .5;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform-origin: left;
}

.ecosystem:not([hidden]) .ecosystem-flow::before {
  animation: blueprint-trace 1.25s var(--ease-out) .24s 1 backwards;
}

.ecosystem-flow > * {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
}

.ecosystem-flow > * + * {
  border-left: 1px solid var(--line);
}

.ecosystem-flow > :not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 3;
  top: 42px;
  right: -14px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font: 700 9px var(--mono);
}

.ecosystem-flow > .certarail-plane::after {
  content: "×";
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  border-style: dashed;
  font-size: 12px;
}

.actor-column.clients {
  background: color-mix(in srgb, var(--blue) 2%, var(--surface));
}

.actor-column.bank {
  background: color-mix(in srgb, var(--blue) 4%, var(--surface));
}

.certarail-plane {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--accent) 70%, transparent);
}

.actor-column.external {
  background: color-mix(in srgb, var(--amber) 2%, var(--surface));
  border-left-color: color-mix(in srgb, var(--amber) 34%, var(--line));
  border-left-style: dashed;
}

.actor-head {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  min-height: 64px;
  align-items: start;
  padding-bottom: 13px;
}

.actor-head > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font: 700 8px var(--mono);
}

.certarail-plane .actor-head > span {
  color: var(--accent-ink);
  background: var(--accent-fill);
  border-color: var(--accent-fill);
}

.actor-head div,
.actor-head h4,
.actor-head small {
  min-width: 0;
  margin: 0;
}

.actor-head small {
  color: var(--faint);
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .1em;
}

.actor-head h4 {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: clamp(14px, 1.35vw, 18px);
  letter-spacing: -.035em;
}

.actor-head > b {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--blue);
  font: 700 10px/1.25 var(--mono);
  letter-spacing: .08em;
}

.certarail-plane .actor-head > b {
  color: var(--accent-text);
}

.external .actor-head > b {
  color: var(--amber);
}

.actor-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.actor-node {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.actor-node > span {
  color: var(--faint);
  font: 700 9px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.actor-node > strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.actor-node > small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.5;
}

.actor-node > b,
.plane-modules article > b {
  justify-self: start;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font: 700 10px/1.3 var(--mono);
  letter-spacing: .035em;
}

.accent-node::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: -8px;
  width: 2px;
  background: var(--blue);
}

.state-live { color: var(--accent-text); }
.state-lab { color: var(--blue); }
.state-design { color: var(--red); }
.state-blocked { color: var(--amber); }
.state-disabled { color: var(--red); }
.state-unavailable { color: var(--faint); }

.boundary-states {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 9px;
}

.boundary-states b {
  overflow-wrap: anywhere;
  font: 700 10px/1.3 var(--mono);
  letter-spacing: .025em;
}

.actor-column > footer {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: auto;
  padding-top: 14px;
}

.actor-column > footer > i {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  background: var(--blue);
  border-radius: 50%;
}

.external > footer > i {
  background: var(--amber);
}

.actor-column > footer strong,
.actor-column > footer small {
  display: block;
  overflow-wrap: anywhere;
}

.actor-column > footer strong {
  font-size: 10px;
  line-height: 1.35;
}

.actor-column > footer small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.plane-modules {
  display: grid;
  flex: 1;
  border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
}

.plane-modules article {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.plane-modules article > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius-xs);
  font: 700 7px var(--mono);
}

.plane-modules article > div {
  min-width: 0;
}

.plane-modules article strong,
.plane-modules article small {
  display: block;
  overflow-wrap: anywhere;
}

.plane-modules article strong {
  font-size: 12px;
}

.plane-modules article small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.plane-modules article > b {
  grid-column: 2;
  margin-top: -4px;
}

.certarail-plane > footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 13px;
  padding: 0;
  color: var(--faint);
  font: 700 8px/1.4 var(--mono);
}

.certarail-plane > footer i {
  width: 13px;
  height: 1px;
  background: var(--line-strong);
}

.certarail-plane > footer small {
  min-width: 0;
  width: 100%;
  flex: 0 0 100%;
  color: var(--muted);
  overflow-wrap: anywhere;
  font: 9px/1.4 var(--sans);
}

.ecosystem-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 13px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 700 10px/1.35 var(--mono);
  letter-spacing: .05em;
}

.ecosystem-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ecosystem-legend i {
  width: 7px;
  height: 7px;
  background: var(--faint);
}

.ecosystem-legend .legend-bank { background: var(--blue); }
.ecosystem-legend .legend-live { background: var(--accent-fill); }
.ecosystem-legend .legend-lab { background: transparent; border: 1px solid var(--blue); }
.ecosystem-legend .legend-design { background: color-mix(in srgb, var(--red) 16%, transparent); border: 1px solid var(--red); }
.ecosystem-legend .legend-blocked { background: transparent; border: 1px dashed var(--amber); }
.ecosystem-legend .legend-disabled { background: var(--faint); }

.integration-proof-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  list-style: none;
}

.integration-proof-rail li {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 18px;
}

.integration-proof-rail li + li {
  border-left: 1px solid var(--line);
}

.integration-proof-rail li > span {
  color: var(--faint);
  font: 700 8px var(--mono);
  letter-spacing: .06em;
}

.integration-proof-rail li > strong {
  margin-top: 16px;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.35;
}

.integration-proof-rail li > small {
  margin-top: 7px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.5;
}

.integration-proof-rail li.verified {
  box-shadow: inset 0 2px 0 var(--accent-fill);
}

.integration-proof-rail li.verified > span {
  color: var(--accent-text);
}

.integration-proof-rail li.closed {
  background: color-mix(in srgb, var(--amber) 4%, var(--surface));
  box-shadow: inset 0 2px 0 var(--amber);
}

.integration-proof-rail li.closed > span,
.integration-proof-rail li.closed > strong {
  color: var(--amber);
}

.responsibility-matrix {
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.responsibility-matrix > header {
  display: flex;
  min-height: 86px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
}

.responsibility-matrix header p,
.responsibility-matrix header h3 {
  margin: 0;
}

.responsibility-matrix header h3 {
  margin-top: 5px;
  font-size: 18px;
  letter-spacing: -.03em;
}

.responsibility-matrix > header > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.responsibility-table {
  overflow-x: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.responsibility-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.responsibility-table th,
.responsibility-table td {
  min-width: 0;
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.responsibility-table th + th,
.responsibility-table th + td,
.responsibility-table td + td {
  border-left: 1px solid var(--line);
}

.responsibility-table thead th {
  color: var(--faint);
  background: var(--surface-2);
  font: 700 9px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.responsibility-table thead th:first-child {
  width: 17%;
}

.responsibility-table tbody th {
  color: var(--text);
  font-size: 10px;
}

.responsibility-table td b,
.responsibility-table td small {
  display: block;
  overflow-wrap: anywhere;
}

.responsibility-table td b {
  color: var(--accent-text);
  font-size: 9px;
}

.responsibility-table td small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.responsibility-table tbody tr:last-child > * {
  border-bottom: 0;
}

@container ecosystem-stage (max-width: 1400px) {
  .ecosystem-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-flow::before {
    display: none;
  }

  .ecosystem-flow > .certarail-plane {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ecosystem-flow > .actor-column.external {
    border-top: 1px dashed color-mix(in srgb, var(--amber) 45%, var(--line));
  }

  .ecosystem-flow > .actor-column.bank::after {
    content: "↙";
    top: auto;
    right: auto;
    bottom: -14px;
    left: 20px;
  }

  .actor-head {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .actor-head > span {
    width: 38px;
    height: 38px;
  }

  .actor-head > b {
    grid-row: 1;
    grid-column: 3;
    max-width: 150px;
    text-align: right;
  }
}

@container ecosystem-stage (max-width: 720px) {
  .ecosystem-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .ecosystem-flow > * + *,
  .ecosystem-flow > .certarail-plane,
  .ecosystem-flow > .actor-column.external {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ecosystem-flow > .actor-column.external {
    border-top-style: dashed;
    border-top-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  }

  .ecosystem-flow > :not(:last-child)::after,
  .ecosystem-flow > .actor-column.bank::after {
    content: "↓";
    top: auto;
    right: 20px;
    bottom: -14px;
    left: auto;
  }

  .ecosystem-flow > .certarail-plane::after {
    content: "×";
  }

  .actor-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .actor-head > b {
    grid-row: auto;
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }
}

@keyframes blueprint-arrow {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes blueprint-trace {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: .5; transform: scaleX(1); }
}

/* Bank-grade light workbench
 *
 * The operator UI reads as an assurance register: paper surfaces, explicit
 * boundaries and dense evidence rows. The evidence rail remains the signature
 * visual; decorative atmosphere and floating-card effects stay disabled.
 */

main,
.workspace {
  background: var(--workbench);
}

:root[data-theme="light"] .sidebar {
  color: var(--sidebar-text);
  background: var(--sidebar);
  border-right: 1px solid var(--sidebar-line);
}

:root[data-theme="light"] .brand {
  color: var(--sidebar-text);
  background: transparent;
}

:root[data-theme="light"] .brand-mark i {
  background: transparent;
  border-color: var(--accent);
}

:root[data-theme="light"] .topbar {
  background: var(--surface);
}

:root[data-theme="light"] .runtime-cluster,
:root[data-theme="light"] .command-trigger,
:root[data-theme="light"] .session-button,
:root[data-theme="light"] .icon-button {
  background: var(--surface);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.section-heading > p {
  max-width: 620px;
  font-size: 12px;
  line-height: 1.58;
}

.overview {
  min-height: auto;
  grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr);
  gap: clamp(34px, 4vw, 64px);
  padding-block: clamp(42px, 4.5vw, 62px);
  background: var(--workbench);
}

.overview-copy {
  max-width: 590px;
}

.overview h2 {
  max-width: 620px;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 680;
  line-height: 1.01;
  letter-spacing: -.048em;
}

.overview h2 em {
  color: var(--accent-text);
  font-weight: 480;
}

.overview-copy > p:not(.kicker) {
  max-width: 580px;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.62;
}

.kicker {
  margin-bottom: 18px;
}

.kicker span::before,
.hero-principles i {
  box-shadow: none;
}

.hero-actions {
  margin-top: 23px;
}

.hero-actions .primary-button {
  min-height: 46px;
  border-radius: var(--radius-sm);
}

.hero-principles {
  gap: 8px 17px;
  margin-top: 22px;
  font-size: 9px;
}

.system-map {
  min-height: 368px;
  grid-template-rows: auto auto minmax(146px, 1fr) auto auto;
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.system-map-head {
  padding: 17px 20px 15px;
}

.system-map-head h3 {
  font-size: 17px;
}

.map-envelope {
  padding: 11px 20px;
  background: var(--surface-2);
  font-size: 9px;
}

.rail-stage {
  padding: 27px 18px 20px;
}

.rail-line {
  top: 48px;
}

.rail-node .rail-node-marker {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px var(--surface);
}

.rail-node.verified .rail-node-marker {
  box-shadow: 0 0 0 5px var(--surface);
}

.rail-node > div {
  margin-top: 11px;
}

.rail-node strong,
.rail-node small,
.rail-node > b,
.overview-proof b,
.overview-proof small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.rail-node strong {
  font-size: 10px;
}

.rail-node small {
  font-size: 9px;
  line-height: 1.35;
}

.rail-node > b {
  font-size: 9px;
}

.overview-proof > span {
  padding: 11px 14px;
}

.overview-proof b {
  font-size: 10px;
}

.overview-proof small {
  font-size: 9px;
}

.system-map-foot {
  padding: 11px 20px;
}

.metrics-grid {
  background: var(--surface);
}

.metric,
.metric:first-child,
.metric:nth-child(n) {
  min-height: 96px;
  padding: 17px clamp(16px, 2vw, 24px);
}

.metric span,
.metric small {
  font-size: 9px;
}

.metric strong {
  margin-top: 12px;
  font-size: 23px;
}

.metric > small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.lab-summary span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.table-wrap td {
  max-width: 240px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

fieldset {
  min-inline-size: 0;
}

.card,
.scenario,
.integration,
.launch-card,
.readiness-item,
.gate-card,
.identity-card,
.current-session {
  box-shadow: none;
}

.card {
  border-color: var(--line);
  border-radius: var(--radius-md);
}

.card-head {
  min-height: 66px;
  padding: 15px 18px;
}

.card-head h3 {
  font-size: 15px;
}

.cockpit-grid {
  gap: 12px;
}

.launch-grid {
  background: var(--surface);
}

.launch-card {
  min-height: 104px;
  padding: 18px 20px;
}

.launch-card strong {
  margin-top: 13px;
  font-size: 16px;
}

.launch-card small {
  font-size: 10px;
}

.workspace-section {
  border-top: 1px solid var(--line);
}

.workspace-directory {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-color: var(--line-strong);
  border-radius: var(--radius-md);
}

.workspace-directory-group {
  display: grid;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
}

.workspace-directory-group + .workspace-directory-group {
  border-top: 1px solid var(--line-strong);
}

.workspace-directory-group > header {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.workspace-directory-group > header h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.workspace-directory-group > header > p:last-child {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.workspace-directory-group > div {
  min-width: 0;
}

.workspace-link {
  display: grid;
  min-height: 68px;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  padding: 11px 18px;
  transition: color .16s ease, background-color .16s ease;
}

.workspace-link + .workspace-link {
  border-top: 1px solid var(--line);
}

.workspace-link > .ui-icon:first-child {
  color: var(--muted);
}

.workspace-link > .ui-icon:last-child {
  width: 15px;
  height: 15px;
  color: var(--faint);
  transition: color .16s ease, transform .16s var(--ease-out);
}

.workspace-link > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.workspace-link strong {
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -.012em;
}

.workspace-link small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-link:hover {
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.workspace-link:hover > .ui-icon:first-child,
.workspace-link:hover > .ui-icon:last-child {
  color: var(--accent-text);
}

@media (hover: hover) and (pointer: fine) {
  .workspace-link:hover > .ui-icon:last-child {
    transform: translateX(2px);
  }
}

.integration {
  min-height: 220px;
  transition: border-color .16s ease, background-color .16s ease;
}

.integration:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.scenario {
  min-height: 176px;
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, background-color .16s ease;
}

.scenario:hover {
  box-shadow: none;
  transform: none;
}

.scenario-copy {
  padding-block: 13px 11px;
}

.scenario-copy p,
.integration p,
.reference-boundary small,
.sandbox-boundary small,
.gate-card p,
.readiness-item p {
  font-size: 11px;
}

.lab-console {
  min-height: 560px;
}

:root[data-theme="light"] .lab-console {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

:root[data-theme="light"] .lab-scan {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

:root[data-theme="light"] .lab-scan::before {
  background: var(--line-strong);
}

.result-card {
  min-height: 520px;
}

.empty-state {
  min-height: 440px;
}

.radar {
  opacity: .64;
}

.outcome-orb,
.session-orb.connected {
  box-shadow: none;
}

table {
  font-variant-numeric: tabular-nums;
}

th,
td {
  font-size: 11px;
}

.integration-legend > div,
.reference-boundary,
.sandbox-boundary,
.report-gate,
.contract-note {
  background: var(--surface);
}

.registry-summary,
.production-gates,
.security-invariants {
  background: var(--line);
}

.registry-summary > div,
.production-gates article,
.security-invariants article {
  background: var(--surface);
}

:root[data-theme="light"] .probe-card pre {
  color: var(--text);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.probe-card pre {
  min-height: 280px;
}

.report-preview {
  min-height: 440px;
  background:
    linear-gradient(90deg, transparent 47px, color-mix(in srgb, var(--accent) 10%, transparent) 48px, transparent 49px),
    var(--surface);
}

.report-preview .empty-state {
  min-height: 440px;
}

.report-preview.is-rendering::before {
  box-shadow: none;
}

.report-preview.is-rendering::after {
  border-radius: var(--radius-sm);
}

.problem-equation,
.ecosystem-stage,
.responsibility-matrix {
  background: var(--surface);
}

.ecosystem-flow > *,
.problem-equation article {
  background: var(--surface);
}

.ecosystem:not([hidden]) .equation-operator,
.ecosystem:not([hidden]) .blueprint-boundary,
.ecosystem:not([hidden]) .problem-side,
.ecosystem:not([hidden]) .solution-side,
.ecosystem:not([hidden]) .ecosystem-stage,
.ecosystem:not([hidden]) .integration-proof-rail,
.ecosystem:not([hidden]) .responsibility-matrix {
  animation: none;
}

.lab-scan i {
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover:not(:disabled),
  .ghost-button:hover:not(:disabled),
  .icon-button:hover:not(:disabled),
  .session-button:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .system-map:hover { transform: translateY(-1px); }
}

/* Responsive shell */

@container console-topbar (max-width: 1560px) {
  .environment-badge { display: none; }
  #snapshot-status { display: none; }
  .command-trigger { width: 180px; }
  .session-button { min-width: 154px; }
  .topbar-context { min-width: 150px; }
  .runtime-pill { padding-inline: 6px; }
  .runtime-pill span { max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
}

@container console-main (max-width: 980px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-heading h2,
  .section-heading > p {
    min-width: 0;
    max-width: 100%;
  }
}

@container console-main (max-width: 740px) {
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar label,
  .catalog-toolbar output {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 1380px) {
  .command-trigger { width: 44px; justify-content: center; padding: 0; }
  .command-trigger strong,
  .command-trigger kbd { display: none; }
  .overview {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-block: 64px;
  }
  .overview-copy { max-width: 860px; }
  .overview h2 { max-width: 760px; font-size: clamp(46px, 6vw, 68px); }
  .system-map { min-height: 390px; }
  .movement-grid,
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .report-preview { min-width: 0; }
}

@media (max-width: 1180px) {
  .sidebar {
    position: fixed;
    z-index: 120;
    inset: 0 auto 0 0;
    width: min(296px, calc(100vw - 24px));
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  .sidebar[inert] {
    visibility: hidden;
    pointer-events: none;
  }

  body.mobile-nav-open { overflow: hidden; }
  body.mobile-nav-open .sidebar { transform: none; }

  .navigation-close {
    position: absolute;
    z-index: 2;
    top: 11px;
    right: 12px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--sidebar-text);
    background: var(--surface);
    border: 1px solid var(--sidebar-line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 20px;
  }

  .navigation-toggle { display: grid; }

  .mobile-boundary-mark {
    display: inline-flex;
    min-width: 72px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding-inline: 6px;
    color: var(--amber);
    background: color-mix(in srgb, var(--amber) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
    border-radius: var(--radius-xs);
    font: 700 9px var(--mono);
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .navigation-scrim {
    position: fixed;
    z-index: 110;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    background: rgba(0, 7, 5, .66);
    border: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  body.mobile-nav-open .navigation-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .brand { flex: 0 0 auto; padding-right: 60px; }
  .nav { display: block; flex: 1; overflow-x: hidden; overflow-y: auto; }
  .nav-group-title { display: block; }
  .nav-group-links { display: grid; }
  .nav-link { display: grid; width: 100%; }
  .nav-link .nav-label,
  .sidebar-bottom { display: flex; }
  .sidebar-bottom { flex-direction: column; }
  .environment > span:last-child { display: grid; }
  main { margin-left: 0; }
  .topbar { top: 0; }
  .overview { grid-template-columns: 1fr; min-height: auto; padding-block: 64px; }
  .system-map { min-height: 390px; }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .topbar-context {
    min-width: 0;
    flex: 1;
  }

  .topbar-context > div { min-width: 0; }

  .topbar h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .topbar {
    position: sticky;
    top: 0;
    min-height: 74px;
    gap: 12px;
    padding: 10px 14px;
  }

  .topbar-context { min-width: 0; flex: 1; }
  header.topbar > div.topbar-context { display: flex; }
  .topbar-context > div { min-width: 0; }
  .system-map-head { align-items: flex-start; flex-direction: column; }
  .system-map-actions { width: 100%; justify-content: flex-start; }
  .topbar h1 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .eyebrow { display: none; }
  .runtime-cluster { display: none; }
  .mobile-runtime-status {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    background: color-mix(in srgb, var(--amber) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--amber) 24%, var(--line));
    border-radius: 50%;
  }
  .mobile-runtime-status b {
    color: var(--amber);
    font: 800 12px/1 var(--mono);
  }
  .mobile-runtime-status.ok {
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  }
  .mobile-runtime-status.ok b {
    color: var(--accent-text);
  }
  .mobile-runtime-status.error {
    background: color-mix(in srgb, var(--red) 7%, transparent);
    border-color: color-mix(in srgb, var(--red) 28%, var(--line));
  }
  .mobile-runtime-status.error b {
    color: var(--red);
  }
  .session-button { min-width: 42px; padding-right: 5px; }
  .session-button div { display: none; }
  .section { padding: 42px 16px; }
  .metrics-grid { padding-inline: 16px; }
  .overview { padding-top: 48px; }
  .overview h2 { font-size: clamp(44px, 9vw, 62px); }
  .map-envelope { grid-template-columns: auto minmax(0, 1fr); }
  .map-envelope strong { grid-column: 1 / -1; }
  .report-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-flow li:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .report-flow li:nth-child(5) { border-top: 1px solid var(--line); }
  .report-manifest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .integration-legend { grid-template-columns: 1fr; }
  .blueprint-boundary { align-items: start; }
  .problem-equation { grid-template-columns: minmax(0, 1fr); }
  .problem-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .solution-side { border-top: 1px solid var(--line); border-left: 0; }
  .equation-operator { min-height: 42px; transform: rotate(90deg); }
  .ecosystem:not([hidden]) .equation-operator { animation: none; }
  .ecosystem-stage-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ecosystem-flow { grid-template-columns: minmax(0, 1fr); }
  .ecosystem-flow::before { display: none; }
  .ecosystem-flow > * { padding: 20px; }
  .ecosystem-flow > * + * { border-top: 1px solid var(--line); border-left: 0; }
  .ecosystem-flow > .actor-column.external { border-top: 1px dashed color-mix(in srgb, var(--amber) 45%, var(--line)); }
  .ecosystem-flow > :not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 20px;
    bottom: -14px;
  }
  .ecosystem-flow > .certarail-plane::after { content: "×"; }
  .actor-head { grid-template-columns: 38px minmax(0, 1fr) auto; align-items: start; }
  .actor-head > span { width: 38px; height: 38px; }
  .actor-head > b { grid-row: 1; grid-column: 3; }
  .actor-head h4 { font-size: 18px; }
  .actor-node > strong,
  .plane-modules article strong { font-size: 11px; }
  .actor-node > small,
  .plane-modules article small { font-size: 11px; }
  .integration-proof-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-proof-rail li:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .integration-proof-rail li:nth-child(4) { border-top: 1px solid var(--line); }
  .responsibility-matrix > header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .queue-stats { grid-template-columns: repeat(2, 1fr); }
  .queue-stats div:nth-child(2) { border-right: 1px solid var(--line); }
  .capability-summary { grid-template-columns: 1fr; }
  .capability-summary-link { grid-column: auto; }
}

@media (max-width: 560px) {
  .top-actions { gap: 5px; }
  #refresh-button { display: none; }
  .command-trigger,
  .icon-button,
  .session-button { width: 42px; height: 42px; }
  .topbar-context .icon-button { width: 42px; }
  .section { padding-block: 36px; }
  .overview { padding-top: 42px; }
  .overview h2 { font-size: clamp(38px, 12vw, 48px); }
  .overview-copy > p:not(.kicker) { font-size: 13px; }
  .kicker { align-items: flex-start; flex-direction: column; }
  .hero-principles { display: grid; gap: 9px; }
  .system-map { min-height: auto; margin-inline: 0; padding: 0; border-radius: var(--radius-md); }
  .system-map-head { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .system-map-head h3 { font-size: 18px; }
  .map-envelope { grid-template-columns: minmax(0, 1fr); padding-inline: 18px; }
  .map-envelope strong { grid-column: auto; white-space: normal; }
  .rail-stage { padding: 24px 0 18px; }
  .rail-line {
    top: 45px;
    right: auto;
    bottom: 45px;
    left: 22px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--line-strong) 7%, var(--line-strong) 93%, transparent);
  }
  .rail-signal { display: none; }
  .rail-nodes { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .rail-node {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
  .rail-node > div { margin-top: 0; }
  .rail-node > b { grid-column: 2; margin-top: -9px; }
  .rail-node strong,
  .rail-node small { overflow: visible; text-overflow: clip; }
  .overview-proof { grid-template-columns: minmax(0, 1fr); }
  .overview-proof > span + span { border-top: 1px solid var(--line); border-left: 0; }
  .system-map-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .system-map-foot code { width: 100%; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric:nth-child(n) { border: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .report-flow { grid-template-columns: minmax(0, 1fr); }
  .report-flow li + li,
  .report-flow li:nth-child(4),
  .report-flow li:nth-child(5) { border-top: 1px solid var(--line); border-left: 0; }
  .report-preview,
  .report-preview .empty-state { min-height: 420px; }
  .report-actions { align-items: stretch; flex-direction: column; }
  .report-action-buttons { justify-content: stretch; }
  .report-action-buttons > * { flex: 1 1 100%; }
  .locked-state { grid-template-columns: auto 1fr; }
  .locked-state > button { grid-column: 2; justify-self: start; }
  .locked-inline { grid-template-columns: 1fr; }
  .locked-inline button { grid-row: auto; grid-column: auto; justify-self: start; }
  .queue-stats { grid-template-columns: 1fr; }
  .report-result-head { align-items: flex-start; flex-direction: column; }
  .blueprint-boundary { grid-template-columns: minmax(0, 1fr); }
  .problem-equation article { padding: 18px; }
  .ecosystem-stage-head { padding: 17px; }
  .ecosystem-stage-head > span { white-space: normal; }
  .ecosystem-flow > * { padding: 17px; }
  .actor-head { grid-template-columns: 34px minmax(0, 1fr); }
  .actor-head > span { width: 34px; height: 34px; }
  .actor-head > b { grid-row: auto; grid-column: 1 / -1; }
  .integration-proof-rail { grid-template-columns: minmax(0, 1fr); }
  .integration-proof-rail li + li,
  .integration-proof-rail li:nth-child(3),
  .integration-proof-rail li:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .responsibility-matrix > header { padding: 17px; }
  .command-context > span { display: none; }
  .command-footer { justify-content: center; }
  .command-footer { flex-direction: row; }
  .command-footer > span:first-child { display: none; }
  .command-item { grid-template-columns: 34px minmax(0, 1fr); }
  .command-item > kbd { display: none; }
}

@media (max-width: 820px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { font-size: 16px; }

  .workspace-directory-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-directory-group > header {
    padding: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-directory-group > header > p:last-child {
    max-width: none;
  }

  .workspace-link {
    min-height: 64px;
    padding: 10px 16px;
  }
}

@media (pointer: coarse) {
  button,
  a.nav-link,
  .row-actions button,
  .row-actions a,
  .endpoint-row button,
  .endpoint-row a,
  summary {
    min-height: 44px;
  }

  .icon-button,
  .navigation-close,
  .command-trigger,
  .session-button {
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .system-map:hover,
  .hero-actions .primary-button:hover:not(:disabled),
  .hero-actions .primary-button:hover b,
  .hero-actions .text-link:hover span,
  .report-manifest > div:hover,
  #report-form .primary-button:hover:not(:disabled) b { transform: none; }
}

/* Buyer-oriented entry point. Technical telemetry lives in a secondary disclosure. */

.nav-group-title { margin-block: 0; }
.environment-code { font-size: 7px; letter-spacing: -.03em; }
.workspace-directory[hidden] { display: none !important; }

.operator-start {
  display: grid;
  gap: 34px;
  padding-top: clamp(46px, 6vw, 82px);
  padding-bottom: clamp(56px, 7vw, 94px);
}

.operator-start-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.operator-start-hero h2 {
  max-width: 900px;
  margin: 20px 0 0;
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.048em;
}

.operator-start-hero h2 em {
  color: var(--accent-text);
  font-style: normal;
  font-weight: 470;
  font-variation-settings: "wght" 470;
}

.operator-start-hero > div > p:last-of-type {
  max-width: 760px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}

.operator-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 30px;
}

.operator-start-actions .primary-button { text-decoration: none; }

.operator-purpose {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}

.operator-purpose > p { padding: 17px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.operator-purpose dl { margin: 0; }
.operator-purpose dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 17px 20px; }
.operator-purpose dl > div + div { border-top: 1px solid var(--line); }
.operator-purpose dt { color: var(--accent-text); font-size: 12px; font-weight: 760; }
.operator-purpose dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.52; }

.operator-story {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.operator-story figcaption {
  display: flex;
  min-height: 84px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.operator-story figcaption h3 { margin: 5px 0 0; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.03em; }
.operator-story ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.operator-story li { position: relative; min-width: 0; padding: 25px 22px 28px; }
.operator-story li + li { border-left: 1px solid var(--line); }
.operator-story li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 34px;
  right: -5px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  content: "";
}
.operator-story li > span { color: var(--accent-text); font: 780 10px var(--mono); }
.operator-story strong,
.operator-story small { display: block; }
.operator-story strong { margin-top: 22px; font-size: 15px; line-height: 1.35; }
.operator-story small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.52; }
.operator-story footer { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 13px 22px; background: var(--surface-2); border-top: 1px solid var(--line); }
.operator-story footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent-text); font-size: 11px; font-weight: 750; }
.operator-story footer a::after { margin-left: 10px; content: "→"; font: 13px var(--mono); }

.operator-tour { padding-top: 20px; }
.operator-tour .compact-heading { margin-bottom: 22px; }
.operator-tour .compact-heading h3 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; }
.operator-tour > ol {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent-2);
  border-radius: var(--radius-md);
  list-style: none;
}
.operator-tour > ol > li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(170px, .24fr);
  gap: 20px;
  align-items: center;
  min-height: 116px;
  padding: 21px 24px;
}
.operator-tour > ol > li + li { border-top: 1px solid var(--line); }
.operator-tour > ol > li:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.operator-tour > ol > li > span { color: var(--accent-text); font: 780 11px var(--mono); }
.operator-tour strong,
.operator-tour small { display: block; }
.operator-tour strong { font-size: 17px; }
.operator-tour small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.operator-tour li > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 750;
}
.operator-tour li > a::after { content: "→"; font: 13px var(--mono); }
.operator-tour li > a:hover,
.operator-tour li > a:focus-visible { color: var(--accent-ink); background: var(--accent-fill); border-color: var(--accent); }
.operator-tour nav { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.operator-tour nav a { display: inline-flex; min-height: 30px; align-items: center; padding: 0 9px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 720; }
.operator-tour nav a:hover,
.operator-tour nav a:focus-visible { color: var(--accent-text); border-color: var(--accent); }

.operator-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.operator-resources > a { display: grid; min-width: 0; min-height: 100px; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; padding: 20px; }
.operator-resources > a + a { border-left: 1px solid var(--line); }
.operator-resources > a > .ui-icon { width: 22px; height: 22px; color: var(--accent-text); }
.operator-resources strong,
.operator-resources small { display: block; }
.operator-resources strong { font-size: 13px; }
.operator-resources small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.operator-resources > a:hover,
.operator-resources > a:focus-visible { background: var(--surface-2); }

.operator-demo {
  width: min(1540px, calc(100% - clamp(32px, 5vw, 84px)));
  margin: 0 auto clamp(56px, 7vw, 96px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.operator-demo > summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 22px;
  cursor: pointer;
  background: var(--surface-2);
  list-style: none;
}
.operator-demo > summary::-webkit-details-marker { display: none; }
.operator-demo > summary span,
.operator-demo > summary strong,
.operator-demo > summary small { display: block; }
.operator-demo > summary strong { font-size: 15px; }
.operator-demo > summary small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.operator-demo > summary > .ui-icon { color: var(--accent-text); transition: transform .18s var(--ease-out); }
.operator-demo[open] > summary { border-bottom: 1px solid var(--line); }
.operator-demo[open] > summary > .ui-icon { transform: rotate(180deg); }
.operator-demo-body { overflow: hidden; }
.operator-demo-body > .overview,
.operator-demo-body > .cockpit-grid,
.operator-demo-body > .operator-demo-status { width: 100%; }
.operator-demo-body > .overview { padding-inline: clamp(20px, 3vw, 44px); }
.operator-demo-body > .metrics-grid { border-inline: 0; }
.operator-demo-body > .cockpit-grid,
.operator-demo-status { padding-inline: clamp(20px, 3vw, 44px); }

@media (max-width: 1180px) {
  .operator-start-hero { grid-template-columns: minmax(0, 1fr); }
  .operator-purpose { max-width: 920px; }
  .operator-story ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-story li:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .operator-story li:nth-child(4) { border-top: 1px solid var(--line); }
  .operator-story li:nth-child(2)::after { content: none; }
  .operator-tour > ol > li { grid-template-columns: 38px minmax(0, 1fr); }
  .operator-tour li > a { grid-column: 2; justify-self: start; min-width: 220px; }
}

@media (max-width: 760px) {
  .operator-start { gap: 25px; padding-top: 34px; }
  .operator-start-hero h2 { font-size: clamp(39px, 12vw, 58px); }
  .operator-start-actions { align-items: stretch; flex-direction: column; }
  .operator-start-actions > * { width: 100%; justify-content: center; }
  .operator-purpose dl > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .operator-story figcaption { align-items: flex-start; flex-direction: column; }
  .operator-story ol { grid-template-columns: minmax(0, 1fr); }
  .operator-story li + li { border-top: 1px solid var(--line); border-left: 0; }
  .operator-story li:not(:last-child)::after { top: auto; right: auto; bottom: -5px; left: 28px; }
  .operator-tour > ol > li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 19px 16px; }
  .operator-tour li > a { width: 100%; min-width: 0; }
  .operator-resources { grid-template-columns: minmax(0, 1fr); }
  .operator-resources > a + a { border-top: 1px solid var(--line); border-left: 0; }
  .operator-demo { width: min(100% - 24px, 1540px); }
  .operator-demo > summary { min-height: 72px; padding: 15px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .operator-demo > summary > .ui-icon { transition-duration: .01ms !important; }
}

/* Engineering Console entry point. Buyer presentation remains at /console/. */

.engineering-home {
  display: grid;
  min-height: min(720px, calc(100dvh - var(--cr-suite-height)));
  gap: clamp(28px, 4vw, 46px);
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(50px, 7vw, 88px);
  background: var(--workbench);
}

.engineering-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .58fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.engineering-home-hero h2 {
  max-width: 920px;
  margin: 18px 0 0;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.047em;
  text-wrap: balance;
}

.engineering-home-hero h2 em { color: var(--accent-text); font-style: normal; font-weight: 470; }
.engineering-home-hero > div > p:last-of-type { max-width: 790px; margin: 25px 0 0; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.62; }
.engineering-home-actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-top: 28px; }
.engineering-home-actions .primary-button,
.engineering-home-actions .ghost-button,
.engineering-home-actions .text-link { min-height: 48px; }
.engineering-home-actions .ghost-button { display: inline-flex; align-items: center; text-decoration: none; }
.engineering-home-actions .text-link { display: inline-flex; padding-inline: 8px; background: transparent; border: 0; cursor: pointer; }

.console-boundary-note {
  overflow: hidden;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.console-boundary-note h3 { margin: 14px 0 0; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -.03em; }
.console-boundary-note > p:last-of-type { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.console-boundary-note a { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; margin-top: 20px; color: var(--accent-text); font-size: 11px; font-weight: 760; }
.console-boundary-note a:hover { color: var(--text); }
.console-boundary-note .ui-icon { width: 15px; height: 15px; }
.console-scope-list { display: grid; margin: 20px 0 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.console-scope-list li { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr); gap: 14px; padding: 10px 0; }
.console-scope-list li + li { border-top: 1px solid var(--line); }
.console-scope-list span { color: var(--muted); font-size: 11px; }
.console-scope-list strong { min-width: 0; overflow-wrap: anywhere; text-align: right; font: 700 11px/1.45 var(--mono); }

.engineering-workflows {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.engineering-workflows > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 21px 23px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.engineering-workflows > header h3 { margin: 7px 0 0; font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.035em; }
.engineering-workflows > header > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.engineering-workflows > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.engineering-workflows article { min-width: 0; padding: 23px 21px 25px; }
.engineering-workflows article + article { border-left: 1px solid var(--line); }
.engineering-workflows article > span { color: var(--accent-text); font: 780 10px var(--mono); }
.engineering-workflows h4 { margin: 18px 0 0; font-size: 18px; letter-spacing: -.025em; }
.engineering-workflows article > p { min-height: 58px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.engineering-workflows nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.engineering-workflows nav a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 730; }
.engineering-workflows nav a:hover,
.engineering-workflows nav a:focus-visible { color: var(--accent-text); border-color: var(--accent); }

[data-role-paths] > div { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); }
[data-role-paths] article,
[data-role-paths] article + article { background: var(--surface); border: 0; }
[data-role-paths] h4 { min-height: 44px; margin-top: 16px; font-size: 16px; line-height: 1.35; }
[data-role-paths] article > p { min-height: 78px; }

.engineering-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.engineering-context > div { min-width: 0; padding: 18px 20px; }
.engineering-context > div + div { border-left: 1px solid var(--line); }
.engineering-context dt { color: var(--text); font-size: 12px; font-weight: 760; }
.engineering-context dd { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.engineering-runtime {
  width: min(1540px, calc(100% - clamp(32px, 5vw, 84px)));
  margin: clamp(42px, 6vw, 72px) auto clamp(58px, 7vw, 96px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.engineering-runtime-head {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 23px clamp(20px, 3vw, 44px);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.engineering-runtime-head h2 { margin: 7px 0 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; }
.engineering-runtime-head p:last-child { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.engineering-runtime-head .ghost-button { flex: 0 0 auto; }
.engineering-runtime-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.engineering-runtime-actions .text-link { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 8px; background: transparent; border: 0; cursor: pointer; }
.engineering-runtime > .overview,
.engineering-runtime > .cockpit-grid,
.engineering-runtime > .operator-demo-status { width: 100%; }
.engineering-runtime > .overview { padding-inline: clamp(20px, 3vw, 44px); }
.engineering-runtime > .metrics-grid { border-inline: 0; }
.engineering-runtime > .cockpit-grid,
.engineering-runtime > .operator-demo-status { padding-inline: clamp(20px, 3vw, 44px); }

@media (max-width: 1380px) {
  .topbar-product-link { width: 42px; justify-content: center; padding: 0; }
  .topbar-product-link span { display: none; }
}

@media (max-width: 1180px) {
  .engineering-home-hero { grid-template-columns: minmax(0, 1fr); }
  .console-boundary-note { max-width: 880px; }
  .engineering-workflows > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering-workflows article:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .engineering-workflows article:nth-child(4) { border-top: 1px solid var(--line); }
  [data-role-paths] > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-role-paths] article,
  [data-role-paths] article + article { border: 0; }
  .engineering-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering-context > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .engineering-context > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .engineering-home { min-height: auto; gap: 24px; padding-top: 34px; }
  .engineering-home-hero h2 { font-size: clamp(36px, 10vw, 44px); }
  .engineering-home-actions { align-items: stretch; flex-direction: column; }
  .engineering-home-actions > * { width: 100%; justify-content: center; }
  .engineering-workflows > header { align-items: flex-start; flex-direction: column; }
  .engineering-workflows > div { grid-template-columns: minmax(0, 1fr); }
  .engineering-workflows article + article { border-top: 1px solid var(--line); border-left: 0; }
  .engineering-workflows article > p { min-height: 0; }
  [data-role-paths] > div { grid-template-columns: minmax(0, 1fr); }
  [data-role-paths] h4,
  [data-role-paths] article > p { min-height: 0; }
  .engineering-context { grid-template-columns: minmax(0, 1fr); }
  .engineering-context > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .engineering-runtime { width: min(100% - 24px, 1540px); }
  .engineering-runtime-head { align-items: flex-start; flex-direction: column; }
  .engineering-runtime-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .engineering-runtime-actions > * { width: 100%; justify-content: center; }
}

/* Action recovery, local demo access and the single executable journey. */

.action-error {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  color: var(--text);
  background: color-mix(in srgb, var(--red) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--red) 42%, var(--line));
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
}

.action-error strong,
.action-error p { display: block; }
.action-error strong { font-size: 12px; }
.action-error p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.action-error .ghost-button { min-height: 38px; color: var(--red); border-color: color-mix(in srgb, var(--red) 34%, var(--line)); }

.production-gap {
  color: var(--red) !important;
  font-weight: 760;
}

.implementation-ok {
  color: var(--accent-text) !important;
  font-weight: 760;
}

.activation-gap {
  color: var(--amber) !important;
  font-weight: 760;
}

.identity-statuses {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

small.production-gap,
.production-gap.status-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--red) 42%, var(--line));
  border-radius: 5px;
  background: color-mix(in srgb, var(--red) 8%, var(--surface));
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.trade-action-error { margin: 0 0 18px; }

.auth-intent {
  margin: 0 0 16px;
  padding: 11px 12px;
  color: var(--text);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: var(--radius-sm);
  font-size: 10px;
  line-height: 1.5;
}

.local-demo-login {
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
}

.auth-manual {
  margin-top: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.auth-manual > summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  list-style: none;
}

.auth-manual > summary::-webkit-details-marker { display: none; }
.auth-manual > summary::after { content: "+"; color: var(--accent-text); font: 700 15px/1 var(--mono); }
.auth-manual[open] > summary::after { content: "−"; }
.auth-manual[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
.auth-manual-fields { padding: 2px 13px 14px; }
.auth-manual-submit { display: flex; width: 100%; justify-content: center; margin-top: 13px; }

.workbench-secondary {
  margin-top: 24px;
}

.workbench-secondary-summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 28px);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
}

.workbench-secondary-summary::-webkit-details-marker { display: none; }
.workbench-secondary-summary > span { display: grid; gap: 4px; min-width: 0; }
.workbench-secondary-summary strong { font-size: 14px; }
.workbench-secondary-summary small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.workbench-secondary-summary > b { flex: 0 0 auto; color: var(--accent-text); font-size: 10px; }
.workbench-secondary-summary .when-open { display: none; }
.workbench-secondary[open] .workbench-secondary-summary .when-closed { display: none; }
.workbench-secondary[open] .workbench-secondary-summary .when-open { display: inline; }
.workbench-secondary[open] .workbench-secondary-summary { border-bottom: 1px solid var(--line); }
.workbench-secondary > .workbench-rail { margin: 0 0 28px; border-top: 0; }

.demo-journey-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .9fr) auto;
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.demo-journey-callout h3 { margin: 8px 0 0; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.035em; }
.demo-journey-callout > div > p:last-child { max-width: 680px; margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.62; }
.demo-journey-callout ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.demo-journey-callout:not(.compact) ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.demo-journey-callout li { min-width: 0; padding: 10px 11px; color: var(--muted); border-left: 1px solid var(--line); font-size: 10px; line-height: 1.4; }
.demo-journey-callout li:first-child { border-left: 0; }
.demo-journey-callout li span { display: block; margin-bottom: 7px; color: var(--accent-text); font: 760 10px var(--mono); }
.demo-journey-callout > a { white-space: nowrap; }
.demo-journey-callout.compact { margin-top: 24px; padding: 20px 22px; }
.demo-journey-callout.compact h3 { font-size: clamp(20px, 2vw, 27px); }

.report-period-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.endpoint-row.optional {
  background: color-mix(in srgb, var(--amber) 4%, transparent);
  border-left: 3px solid var(--amber);
}
.endpoint-row.optional > code { color: var(--amber); }

.capability-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.capability-summary-item.optional strong { color: var(--amber); }
.readiness-breakdown { grid-template-columns: repeat(3, 1fr); }
.readiness-item.optional-disabled {
  background: color-mix(in srgb, var(--amber) 3%, var(--surface));
  border-top-color: var(--amber);
}

@media (max-width: 1180px) {
  .demo-journey-callout { grid-template-columns: minmax(0, 1fr); }
  .demo-journey-callout > a { justify-self: start; }
}

@media (max-width: 760px) {
  .action-error { grid-template-columns: minmax(0, 1fr); }
  .action-error .ghost-button { width: 100%; justify-content: center; }
  .demo-journey-callout { padding: 20px 17px; }
  .demo-journey-callout ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-journey-callout li:nth-child(3),
  .demo-journey-callout li:nth-child(4),
  .demo-journey-callout li:nth-child(5),
  .demo-journey-callout li:nth-child(6) { border-top: 1px solid var(--line); }
  .demo-journey-callout li:nth-child(3),
  .demo-journey-callout li:nth-child(5) { border-left: 0; }
  .demo-journey-callout > a { width: 100%; justify-content: center; white-space: normal; }
  .workbench-secondary-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .capability-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readiness-breakdown { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .topbar { gap: 7px; padding-inline: 10px; }
  .topbar-context { gap: 6px; }
  .topbar-context > div { flex: 1; }
  .topbar-product-link,
  #theme-toggle { display: none; }
  .mobile-boundary-mark {
    display: inline-flex;
    min-width: 72px;
    max-width: 72px;
    flex: 0 0 72px;
    padding-inline: 5px;
    overflow: hidden;
    font-size: 0;
  }
  .mobile-boundary-mark::before {
    content: "ВЫЗОВЫ · 0";
    font: 700 8px var(--mono);
    letter-spacing: .03em;
    white-space: nowrap;
  }
  .topbar h1 {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-actions { flex: 0 0 auto; }
  .report-builder .card-head { align-items: flex-start; flex-direction: column; }
}

@media (pointer: coarse) {
  .engineering-workflows nav a,
  .demo-journey-callout > a,
  .workbench-secondary-summary { min-height: 44px; }
}
