:root {
  color-scheme: light;
  --canvas: #eef3f8;
  --canvas-top: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-strong: #ffffff;
  --ink: #1f2a37;
  --ink-strong: #101828;
  --muted: #617086;
  --muted-soft: #8995a6;
  --border: rgba(148, 163, 184, 0.3);
  --border-strong: rgba(31, 42, 55, 0.16);
  --brand: #5b57d9;
  --brand-strong: #403ca9;
  --brand-deep: #242052;
  --brand-soft: #eeedff;
  --brand-softer: #f7f6ff;
  --success: #0f6b3c;
  --success-bg: #daf4e7;
  --warning: #9a5b00;
  --warning-bg: #fff0cf;
  --danger: #a52e35;
  --danger-bg: #fde7e7;
  --info: #176b87;
  --info-bg: #daf2f7;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 28px rgba(15, 23, 42, 0.06);
  --sidebar-width: 16.75rem;
  --topbar-height: 4.5rem;
  --radius-sm: 0.4rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --font: "Segoe UI Variable Text", Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --editorial: "Segoe UI Variable Display", "Aptos Display", Aptos, "Segoe UI", system-ui, sans-serif;
  --font-sans: var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

[data-lang="nl"] {
  display: none !important;
}

html[lang="nl"] [data-lang="en"] {
  display: none !important;
}

html[lang="nl"] [data-lang="nl"] {
  display: revert !important;
}

:focus-visible {
  outline: 3px solid rgba(91, 87, 217, 0.42);
  outline-offset: 3px;
}

::selection {
  color: var(--ink-strong);
  background: #dcd9ff;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--ink-strong);
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell,
.layout {
  width: 100%;
  height: 100vh;
  min-height: 0;
}

.layout {
  display: flex;
  overflow: hidden;
}

.sidebar {
  position: relative;
  z-index: 50;
  display: flex;
  width: var(--sidebar-width);
  min-width: 0;
  height: 100%;
  flex: none;
  flex-direction: column;
  gap: 0.8rem;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 14px 0 38px rgba(15, 23, 42, 0.04);
  overscroll-behavior: contain;
  padding: 0.85rem;
}

.sidebar__head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 24px rgba(91, 87, 217, 0.28);
}

.brand__mark::before,
.brand__mark::after,
.brand__mark span {
  position: absolute;
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border: 2px solid #fff;
  border-radius: 999px;
  content: "";
}

.brand__mark::before {
  top: 0.63rem;
  left: 0.59rem;
}

.brand__mark::after {
  top: 0.63rem;
  right: 0.59rem;
}

.brand__mark span:first-child {
  bottom: 0.55rem;
  left: 1.16rem;
}

.brand__mark span:nth-child(2),
.brand__mark span:nth-child(3) {
  width: 1rem;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  transform-origin: left center;
}

.brand__mark span:nth-child(2) {
  top: 1.15rem;
  left: 0.8rem;
  transform: rotate(49deg);
}

.brand__mark span:nth-child(3) {
  top: 1.15rem;
  right: 0.68rem;
  transform: rotate(131deg);
}

.brand__text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand__text strong {
  overflow: hidden;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__text small {
  margin-top: 0.18rem;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.icon-button svg,
.button svg,
.nav-item svg,
.privacy-note svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar__close {
  display: none;
}

.sidebar__intro {
  margin: 0;
  border-left: 3px solid var(--brand);
  color: var(--muted);
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.navigation {
  display: grid;
  gap: 0.24rem;
  margin-top: 0.25rem;
}

.nav-label {
  margin: 0.35rem 0 0.2rem;
  color: var(--muted);
  padding: 0 0.72rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  min-height: 2.75rem;
  min-width: 0;
  align-items: center;
  gap: 0.67rem;
  border-radius: 0.58rem;
  color: var(--muted);
  padding: 0.62rem 0.72rem;
  font-size: 0.87rem;
  font-weight: 680;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-item svg {
  width: 1.08rem;
  height: 1.08rem;
  flex: none;
}

.nav-item:hover {
  background: var(--surface-soft);
  color: var(--ink);
  transform: translateX(2px);
}

.nav-item.is-active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: inset 3px 0 0 var(--brand);
}

.sidebar__foot {
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.session-status,
.profile-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.session-status {
  border-radius: 0.55rem;
  background: var(--surface-soft);
  padding: 0.65rem 0.7rem;
}

.session-status > span:last-child,
.profile-link > span:last-child {
  display: grid;
  min-width: 0;
}

.session-status strong,
.profile-link strong {
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-status small,
.profile-link small {
  color: var(--muted);
  font-size: 0.7rem;
}

.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  flex: none;
  border-radius: 999px;
  background: var(--muted);
}

[data-tone="success"] .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(15, 107, 60, 0.1);
}

.profile-link {
  border-radius: 0.55rem;
  padding: 0.45rem;
  text-decoration: none;
}

.profile-link:hover {
  background: var(--brand-soft);
}

.avatar {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--ink-strong);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 40, 0.5);
  cursor: pointer;
}

.main {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% -10%, rgba(91, 87, 217, 0.1), transparent 25rem),
    linear-gradient(180deg, var(--canvas-top), var(--canvas));
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  min-height: var(--topbar-height);
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(16px);
  padding: 0 1.25rem;
}

.topbar__left,
.topbar__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
}

.topbar__left {
  flex: 1;
}

.breadcrumbs {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
  white-space: nowrap;
}

.breadcrumbs a,
.breadcrumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-strong);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.menu-button {
  display: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 0.55rem;
  background: var(--surface);
  padding: 0.18rem;
}

.language-switch button {
  min-width: 2.2rem;
  min-height: 2.1rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.language-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(91, 87, 217, 0.22);
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  border: 1px solid var(--brand);
  border-radius: 0.58rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  padding: 0.61rem 0.92rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 87, 217, 0.16);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(91, 87, 217, 0.22);
}

.button:active {
  transform: translateY(0);
}

.button--secondary,
.button--quiet {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.button--secondary:hover,
.button--quiet:hover {
  border-color: rgba(91, 87, 217, 0.36);
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: none;
}

.button--quiet {
  min-height: 2.48rem;
  padding: 0.45rem 0.72rem;
  font-size: 0.78rem;
}

.button--small {
  min-height: 2.35rem;
  padding: 0.42rem 0.72rem;
  font-size: 0.76rem;
}

.button--danger {
  border-color: var(--danger);
  background: var(--surface);
  color: var(--danger);
  box-shadow: none;
}

.button--danger:hover {
  background: var(--danger-bg);
  box-shadow: none;
}

.button:disabled,
.gate-button:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.48;
  transform: none;
}

.content-scroll {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.content {
  width: min(100%, 94rem);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
}

.hero,
.section,
.footer {
  scroll-margin-top: 1rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(43rem, calc(100vh - 8rem));
  grid-template-columns: minmax(0, 1.06fr) minmax(24rem, 0.94fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: 38%;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(91, 87, 217, 0.12);
  border-radius: 999px;
  content: "";
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5.25rem);
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.7rem;
  font-weight: 880;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.version-pill,
.object-pill,
.count-pill,
.relation-pill,
.live-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0.28rem 0.58rem;
  font-size: 0.67rem;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 12ch;
  margin: 1.15rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: clamp(3.05rem, 7vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.062em;
  line-height: 0.92;
}

.hero__tagline {
  margin: 1.45rem 0 0;
  color: var(--brand-strong);
  font-size: clamp(1.1rem, 2.1vw, 1.42rem);
  font-weight: 760;
  letter-spacing: -0.022em;
}

.hero__lead {
  max-width: 62ch;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.privacy-note {
  display: flex;
  max-width: 62ch;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.privacy-note svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  margin-top: 0.1rem;
  color: var(--success);
}

.hero__visual {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(122, 116, 255, 0.42), transparent 14rem),
    linear-gradient(155deg, #26225c 0%, #19172f 55%, #101521 100%);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.hero__visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 3rem 3rem;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero-thread {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 24rem;
  align-content: center;
  gap: 1rem;
}

.hero-thread__line {
  position: absolute;
  top: 13%;
  bottom: 13%;
  left: 1.35rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), #a9a5ff, rgba(255,255,255,0.2));
}

.hero-node {
  position: relative;
  display: flex;
  min-height: 4.45rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.72rem;
  background: rgba(255,255,255,0.075);
  backdrop-filter: blur(9px);
  padding: 0.72rem 1rem 0.72rem 0.68rem;
}

.hero-node span {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: #38337d;
  color: #d9d7ff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.hero-node strong {
  font-size: 0.9rem;
}

.hero-node--2,
.hero-node--3 {
  margin-left: 2.5rem;
}

.hero-node--3 span,
.hero-node--4 span {
  background: var(--brand);
  color: #fff;
}

.hero-quote {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 1.2rem;
}

.hero-quote .quote-mark {
  position: absolute;
  top: 0.5rem;
  left: -0.1rem;
  color: #9d99ff;
  font-family: var(--editorial);
  font-size: 3.6rem;
  line-height: 1;
}

.hero-quote blockquote {
  max-width: 35ch;
  margin: 0 0 0 1.65rem;
  color: rgba(255,255,255,0.92);
  font-family: var(--editorial);
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero-quote cite {
  display: block;
  margin: 0.7rem 0 0 1.65rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3.3rem, 7vw, 6.75rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.62fr);
  align-items: end;
  gap: 2rem;
  padding: 0 0.15rem;
}

.section-heading h2 {
  max-width: 22ch;
  margin: 0.35rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-heading > p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.lens-tabs,
.thread-explorer,
.readiness-panel,
.authority-panel,
.sequence-panel,
.peer-panel,
.ucf-runner,
.trust-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.55rem;
}

.lens-tab {
  display: flex;
  min-width: 0;
  min-height: 4.4rem;
  align-items: center;
  gap: 0.72rem;
  border: 0;
  border-radius: 0.62rem;
  background: transparent;
  color: var(--muted);
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.lens-tab:hover {
  background: var(--surface);
  color: var(--ink);
}

.lens-tab.is-active {
  background: var(--surface);
  color: var(--brand-strong);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07), inset 0 -3px 0 var(--brand);
}

.tab-index {
  display: inline-grid;
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.7rem;
  font-weight: 850;
}

.lens-tab > span:last-child {
  display: grid;
  min-width: 0;
}

.lens-tab strong {
  overflow: hidden;
  color: currentColor;
  font-size: 0.87rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lens-tab small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.lens-panels {
  min-width: 0;
}

.lens-panel {
  display: grid;
  min-height: 24rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.35rem, 4vw, 3.5rem);
}

html.js .lens-panel:not(.is-active) {
  display: none;
}

.lens-panel__copy {
  min-width: 0;
}

.object-pill {
  border-color: #d9d7ff;
  background: var(--brand-soft);
  color: var(--brand-strong);
  text-transform: uppercase;
}

.lens-panel h3 {
  max-width: 25ch;
  margin: 0.85rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lens-panel p {
  max-width: 65ch;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.layer-flow {
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.layer-flow span {
  display: grid;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.58rem;
  background: var(--surface-soft);
  padding: 0.65rem;
}

.layer-flow strong {
  font-size: 0.75rem;
}

.layer-flow small {
  color: var(--muted);
  font-size: 0.63rem;
}

.layer-flow b {
  color: var(--brand);
}

.pillar-cloud {
  position: relative;
  display: flex;
  min-height: 18rem;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at center, rgba(91,87,217,0.15), transparent 55%),
    var(--surface-soft);
  padding: 2rem;
}

.pillar-cloud span {
  border: 1px solid rgba(91,87,217,0.2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  padding: 0.5rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 760;
  box-shadow: 0 5px 16px rgba(15,23,42,0.06);
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.check-list li > span:first-child {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.72rem;
}

.mini-thread {
  position: relative;
  display: grid;
  min-height: 18rem;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #26225c, #15192a);
  color: #fff;
  padding: 2rem 1.2rem;
}

.mini-thread span {
  display: grid;
  min-width: 4.6rem;
  min-height: 4.6rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  padding: 0.5rem;
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
}

.mini-thread span:nth-of-type(3) {
  border-color: #aaa6ff;
  background: var(--brand);
}

.mini-thread i {
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.2), #aaa6ff);
}

.peer-orbit {
  position: relative;
  display: grid;
  min-height: 19rem;
  grid-template-columns: 1fr 1fr;
  place-content: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  padding: 2rem;
}

.peer-orbit span {
  display: grid;
  min-height: 5rem;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.peer-orbit small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
}

.peer-orbit > strong {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0.35rem solid var(--surface-soft);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  text-align: center;
}

.principle-line strong {
  color: var(--brand-strong);
  font-family: var(--editorial);
  font-size: 1.1rem;
  font-weight: 600;
}

.thread-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(8.5rem, 1fr));
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.72rem;
  scrollbar-color: #c8c5f3 transparent;
  scrollbar-width: thin;
}

.thread-track::before {
  position: absolute;
  top: 2.08rem;
  right: 5rem;
  left: 5rem;
  height: 2px;
  background: #d7dce6;
  content: "";
}

.thread-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem;
  cursor: pointer;
  text-align: center;
}

.thread-step span {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 2px solid #d7dce6;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.thread-step strong {
  max-width: 9rem;
  font-size: 0.68rem;
  line-height: 1.25;
}

.thread-step:hover span {
  border-color: var(--brand);
  transform: scale(1.06);
}

.thread-step.is-active {
  color: var(--brand-strong);
}

.thread-step.is-active span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(91,87,217,0.12);
}

.thread-details {
  min-width: 0;
}

.thread-detail {
  display: grid;
  min-height: 19rem;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

html.js .thread-detail:not(.is-active) {
  display: none;
}

.step-kicker {
  color: var(--brand-strong);
  font-size: 0.65rem;
  font-weight: 880;
  letter-spacing: 0.12em;
}

.thread-detail h3 {
  max-width: 25ch;
  margin: 0.55rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.thread-detail p {
  max-width: 62ch;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.thread-detail dl,
.peer-detail dl {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.thread-detail dl > div,
.peer-detail dl > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  border-bottom: 1px solid var(--border);
}

.thread-detail dl > div:last-child,
.peer-detail dl > div:last-child {
  border-bottom: 0;
}

.thread-detail dt,
.thread-detail dd,
.peer-detail dt,
.peer-detail dd {
  margin: 0;
  padding: 0.68rem 0.75rem;
  font-size: 0.73rem;
}

.thread-detail dt,
.peer-detail dt {
  color: var(--muted);
  font-weight: 780;
}

.thread-detail dd,
.peer-detail dd {
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

.release-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(22rem, 0.72fr);
  gap: 1rem;
}

.source-column,
.release-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.source-column {
  overflow: hidden;
}

.panel-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.9rem 1rem;
}

.panel-heading > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
}

.panel-heading > div:first-child > div {
  min-width: 0;
}

.panel-heading h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.panel-heading p {
  margin: 0.06rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.panel-index {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.7rem;
  font-weight: 850;
}

.count-pill strong {
  color: var(--brand-strong);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.source-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 13.5rem;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.9rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.source-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91,87,217,0.3);
  box-shadow: var(--shadow-soft);
}

.source-card.is-pinned {
  border-color: rgba(15,107,60,0.34);
  background: linear-gradient(180deg, #fff, #fbfffd);
  box-shadow: inset 0 3px 0 var(--success);
}

.source-card__head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.source-icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.48rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.62rem;
  font-weight: 850;
}

.state-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
  font-size: 0.63rem;
  font-weight: 790;
  line-height: 1.25;
}

.state-chip--neutral {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--muted);
}

.state-chip--success {
  border-color: rgba(15,107,60,0.16);
  background: var(--success-bg);
  color: var(--success);
}

.state-chip--warning {
  border-color: rgba(154,91,0,0.15);
  background: var(--warning-bg);
  color: var(--warning);
}

.state-chip--danger {
  border-color: rgba(165,46,53,0.15);
  background: var(--danger-bg);
  color: var(--danger);
}

.source-card h4 {
  margin: 0.75rem 0 0;
  color: var(--ink-strong);
  font-size: 0.82rem;
  line-height: 1.35;
}

.source-card p {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.source-card p strong {
  color: var(--ink);
}

.source-card > small {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.pin-button,
.gate-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91,87,217,0.28);
  border-radius: 0.48rem;
  background: var(--brand-softer);
  color: var(--brand-strong);
  padding: 0.42rem 0.65rem;
  font-size: 0.67rem;
  font-weight: 780;
  cursor: pointer;
}

.pin-button {
  width: 100%;
  margin-top: auto;
}

.pin-button:hover,
.gate-button:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.source-card.is-pinned .pin-button {
  border-color: rgba(15,107,60,0.23);
  background: var(--success-bg);
  color: var(--success);
}

.release-card {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  padding: 1.1rem;
}

.release-card__halo {
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 17rem;
  height: 17rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91,87,217,0.2), transparent 68%);
  pointer-events: none;
}

.release-card__head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.72rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.9rem;
}

.cube-mark {
  position: relative;
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: none;
  place-items: center;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
}

.cube-mark::before {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #fff;
  transform: rotate(30deg) skew(-8deg, -8deg);
  content: "";
}

.release-card__head h3 {
  margin: 0.12rem 0 0;
  color: var(--ink-strong);
  font-size: 0.92rem;
}

.release-card__lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.manifest-list {
  display: grid;
  gap: 0.42rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.manifest-list li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.48rem;
  background: var(--surface-soft);
  padding: 0.48rem 0.55rem;
}

.manifest-list li.is-pinned {
  border-color: rgba(15,107,60,0.2);
  background: #f5fcf8;
}

.manifest-list span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.manifest-list code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifest-list .is-pinned code {
  color: var(--success);
  font-weight: 720;
}

.release-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  border-left: 3px solid var(--warning);
  border-radius: 0.4rem;
  background: var(--warning-bg);
  padding: 0.7rem;
}

.release-rule > span {
  display: inline-grid;
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: var(--warning);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.release-rule p {
  margin: 0;
  color: #714600;
  font-size: 0.67rem;
  line-height: 1.5;
}

.readiness-panel,
.authority-panel,
.sequence-panel,
.peer-panel,
.ucf-runner,
.trust-panel {
  margin-top: 0.2rem;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.gate-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 17rem;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.gate-card.is-ready {
  border-color: rgba(91,87,217,0.38);
  box-shadow: 0 8px 24px rgba(91,87,217,0.1);
}

.gate-card.is-passed {
  border-color: rgba(15,107,60,0.32);
  box-shadow: inset 0 3px 0 var(--success);
}

.gate-card__number {
  position: absolute;
  top: -0.3rem;
  right: 0.6rem;
  color: var(--muted-soft);
  font-family: var(--editorial);
  font-size: 4.8rem;
  line-height: 1;
}

.gate-icon {
  position: relative;
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.62rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 850;
}

.gate-card h4 {
  position: relative;
  margin: 0.8rem 0 0;
  color: var(--ink-strong);
  font-size: 0.94rem;
}

.gate-card p {
  position: relative;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.gate-card > small {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.gate-button {
  width: 100%;
  margin-top: auto;
}

.gate-card.is-passed .gate-button {
  border-color: rgba(15,107,60,0.2);
  background: var(--success-bg);
  color: var(--success);
}

.gate-status {
  display: block;
  width: 100%;
  margin-top: 0.48rem;
  color: var(--muted);
  font-size: 0.62rem;
  text-align: center;
}

.gate-card.is-passed .gate-status {
  color: var(--success);
  font-weight: 750;
}

.readiness-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
  scrollbar-color: #c8c5f3 transparent;
}

.readiness-table {
  width: 100%;
  min-width: 50rem;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.readiness-table caption {
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
  color: var(--muted);
  padding: 0.62rem 1rem;
  font-size: 0.66rem;
  text-align: left;
}

.readiness-table th,
.readiness-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.72rem 0.8rem;
  text-align: left;
}

.readiness-table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.readiness-table tbody tr:last-child th,
.readiness-table tbody tr:last-child td {
  border-bottom: 0;
}

.readiness-table tbody th {
  color: var(--ink);
}

.matrix-state {
  display: inline-flex;
  min-width: 5.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  padding: 0.3rem 0.48rem;
  font-size: 0.61rem;
  font-weight: 800;
}

.matrix-state--pending {
  background: var(--danger-bg);
  color: var(--danger);
}

.matrix-state--complete {
  background: var(--success-bg);
  color: var(--success);
}

.matrix-state--na {
  background: #eef1f5;
  color: #526175;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.authority-grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.85rem;
}

.authority-icon {
  display: inline-grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 850;
}

.authority-grid h4 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.82rem;
}

.authority-grid p {
  margin: 0.1rem 0 0;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 650;
}

.authority-grid small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.relation-pill {
  grid-column: 2;
  border-color: rgba(91,87,217,0.18);
  background: var(--brand-softer);
  color: var(--brand-strong);
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.sequence-grid article {
  display: flex;
  min-width: 0;
  min-height: 18rem;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.sequence-grid .sequence-card--featured {
  border-color: rgba(91,87,217,0.32);
  background: linear-gradient(155deg, #fff, var(--brand-softer));
  box-shadow: inset 0 3px 0 var(--brand);
}

.sequence-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sequence-title > span {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--editorial);
  font-size: 1.25rem;
  font-weight: 600;
}

.sequence-title > div {
  display: grid;
  min-width: 0;
}

.sequence-title strong {
  color: var(--ink-strong);
  font-size: 0.8rem;
}

.sequence-title small {
  color: var(--muted);
  font-size: 0.63rem;
}

.sequence-grid ol {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding-left: 1.55rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.sequence-grid li::marker {
  color: var(--brand);
  font-weight: 800;
}

.sequence-grid a {
  width: fit-content;
  margin-top: auto;
  color: var(--brand-strong);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.sequence-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.peer-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  min-height: 24rem;
}

.peer-tabs {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.8rem;
}

.peer-card {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.62rem;
  border: 1px solid transparent;
  border-radius: 0.58rem;
  background: transparent;
  color: var(--muted);
  padding: 0.7rem;
  text-align: left;
  cursor: pointer;
}

.peer-card:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.peer-card.is-active {
  border-color: rgba(91,87,217,0.24);
  background: var(--surface);
  color: var(--brand-strong);
  box-shadow: inset 3px 0 0 var(--brand), var(--shadow-soft);
}

.peer-card__index {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  grid-row: 1 / 4;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.63rem;
  font-weight: 850;
}

.peer-card strong {
  font-size: 0.8rem;
}

.peer-card small,
.peer-card > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peer-detail {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(1.3rem, 4vw, 3.2rem);
}

.peer-detail article {
  width: min(100%, 48rem);
}

html.js .peer-detail article:not(.is-active) {
  display: none;
}

.peer-detail h4 {
  max-width: 25ch;
  margin: 0.48rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.peer-detail p {
  margin: 0.7rem 0 1rem;
  color: var(--muted);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.capability-list code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(91,87,217,0.18);
  border-radius: 0.4rem;
  background: var(--brand-softer);
  color: var(--brand-strong);
  padding: 0.42rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.run-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0.25rem 0.52rem;
  font-size: 0.63rem;
  font-weight: 750;
}

.run-meta strong {
  color: var(--brand-strong);
}

.stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(9rem, 1fr));
  gap: 0.55rem;
  overflow-x: auto;
  margin: 0;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  list-style: none;
  scrollbar-color: #c8c5f3 transparent;
}

.stage-track li {
  display: grid;
  min-width: 9rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 0.72rem;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.stage-track li.is-current {
  border-color: var(--brand);
  background: var(--brand-softer);
  box-shadow: 0 0 0 3px rgba(91,87,217,0.08);
  transform: translateY(-2px);
}

.stage-track li.is-complete {
  border-color: rgba(15,107,60,0.28);
  background: #f5fcf8;
}

.stage-track li.is-rejected {
  border-color: rgba(165,46,53,0.26);
  background: #fff8f8;
}

.stage-number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 0.48rem;
  background: #e9ecf2;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 850;
}

.stage-track li.is-current .stage-number {
  background: var(--brand);
  color: #fff;
}

.stage-track li.is-complete .stage-number {
  background: var(--success);
  color: #fff;
}

.stage-track strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-track small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-state {
  grid-column: 2;
  color: var(--muted-soft);
  font-size: 0.56rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.is-current .stage-state {
  color: var(--brand-strong);
}

.is-complete .stage-state {
  color: var(--success);
}

.is-rejected .stage-state {
  color: var(--danger);
}

.run-console {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  min-height: 22rem;
}

.run-console__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  padding: clamp(1.2rem, 3vw, 2.3rem);
}

.run-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.run-status__mark {
  display: inline-grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 1.25rem;
  font-weight: 850;
}

.run-status h4 {
  max-width: 24ch;
  margin: 0.4rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.run-status p {
  max-width: 58ch;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.evidence-log {
  min-width: 0;
  background: #171b27;
  color: #fff;
  padding: 1rem;
}

.evidence-log__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 0.7rem;
}

.evidence-log__head h4 {
  margin: 0;
  font-size: 0.76rem;
}

.live-pill {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #aaa6ff;
  font-size: 0.54rem;
}

.evidence-log ol {
  display: grid;
  gap: 0.45rem;
  max-height: 18rem;
  margin: 0;
  overflow-y: auto;
  padding: 0.8rem 0 0;
  list-style: none;
  scrollbar-color: #4c4f62 transparent;
}

.evidence-log li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  color: #c6cad5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.63rem;
  line-height: 1.5;
}

.evidence-log time {
  color: #817de8;
  font-weight: 800;
}

.trust-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(7rem, 1fr) auto) minmax(10rem, 1.25fr);
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 1rem;
  scrollbar-color: #c8c5f3 transparent;
}

.trust-chain > div {
  display: grid;
  min-width: 7rem;
  min-height: 6.2rem;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0.65rem;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.trust-chain > div.is-trusted {
  border-color: rgba(15,107,60,0.28);
  background: var(--success-bg);
  color: var(--success);
  transform: translateY(-2px);
}

.trust-chain > i {
  color: var(--muted-soft);
  font-style: normal;
}

.trust-chain span {
  font-size: 0.58rem;
  font-weight: 850;
}

.trust-chain strong {
  color: currentColor;
  font-size: 0.7rem;
}

.trust-chain small {
  margin-top: 0.2rem;
  color: currentColor;
  font-size: 0.57rem;
  opacity: 0.78;
}

.trust-chain > div[data-trust-step].is-trusted small {
  color: #0a4d2b;
  opacity: 1;
}

.trust-chain .trust-lkg {
  min-width: 11rem;
  background: #f2f1f7;
}

.trust-chain .trust-lkg.is-trusted {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15,107,60,0.2);
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.paper-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 21rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.paper-card--featured {
  border-color: rgba(91,87,217,0.34);
  background: linear-gradient(155deg, #fff 0%, #f4f2ff 100%);
}

.paper-number {
  position: absolute;
  top: -0.6rem;
  right: 0.8rem;
  color: #e8eaf0;
  font-family: var(--editorial);
  font-size: 6.5rem;
  line-height: 1;
}

.paper-card--featured .paper-number {
  color: #dfddff;
}

.paper-card > div {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.paper-kicker {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.paper-card h3 {
  max-width: 14ch;
  margin: 0.5rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.paper-card p:not(.paper-kicker) {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.paper-card > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.paper-card > a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 1.5rem 0.25rem 0.4rem;
  font-size: 0.7rem;
}

.footer > div:first-child {
  display: grid;
}

.footer strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 0.85rem;
}

.footer a {
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand-strong);
}

.domain-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: min(52rem, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 24px 80px rgba(15,23,42,0.28);
}

.domain-dialog::backdrop {
  background: rgba(16,24,40,0.58);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.dialog-head h2 {
  margin: 0.35rem 0 0;
  color: var(--ink-strong);
  font-family: var(--editorial);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.domain-dialog > p {
  max-width: 78ch;
  margin: 1rem 0 0;
  color: var(--muted);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.rule-grid article {
  position: relative;
  min-height: 8.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 0.85rem;
}

.rule-grid article > span {
  position: absolute;
  top: -0.3rem;
  right: 0.45rem;
  color: #e4e7ec;
  font-family: var(--editorial);
  font-size: 3.6rem;
  line-height: 1;
}

.rule-grid h3 {
  position: relative;
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.8rem;
}

.rule-grid p {
  position: relative;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.dialog-callout {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  border-left: 4px solid var(--brand);
  border-radius: 0.48rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
}

.dialog-close-button {
  margin-top: 1rem;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: min(31rem, calc(100vw - 2rem));
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(15,107,60,0.24);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.8rem;
  box-shadow: 0 18px 54px rgba(15,23,42,0.2);
  animation: toast-in 180ms ease-out;
}

.toast__icon {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.58rem;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 900;
}

.toast strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.77rem;
}

.toast p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.toast > a {
  color: var(--brand-strong);
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: none;
}

.toast > a:hover {
  text-decoration: underline;
}

@keyframes toast-in {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 78rem) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.8fr);
  }

  .release-workbench {
    grid-template-columns: 1fr;
  }

  .release-card {
    min-height: 0;
  }

  .trust-chain {
    grid-template-columns: repeat(13, minmax(7rem, auto));
  }
}

@media (max-width: 64rem) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sidebar-width), calc(100vw - 3rem));
    max-width: 100%;
    transform: translateX(-103%);
    transition: transform 180ms ease;
  }

  .layout.is-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar__close,
  .menu-button {
    display: inline-grid;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 35rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .section-heading > p {
    max-width: 68ch;
  }

  .lens-panel {
    grid-template-columns: 1fr;
  }

  .pillar-cloud,
  .mini-thread,
  .peer-orbit {
    min-height: 15rem;
  }

  .thread-detail {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .run-console {
    grid-template-columns: 1fr;
  }

  .run-console__main {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .paper-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sequence-grid {
    grid-template-columns: 1fr;
  }

  .sequence-grid article {
    min-height: 0;
  }

  .paper-card:last-child {
    grid-column: 1 / -1;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer p {
    display: none;
  }
}

@media (max-width: 50rem) {
  .topbar {
    padding: 0 0.75rem;
  }

  .reset-button span {
    display: none !important;
  }

  .reset-button {
    width: 2.48rem;
    padding: 0;
  }

  .tab-list {
    display: flex;
    overflow-x: auto;
    scrollbar-color: #c8c5f3 transparent;
  }

  .lens-tab {
    min-width: 14rem;
  }

  .layer-flow {
    grid-template-columns: 1fr;
  }

  .layer-flow b {
    transform: rotate(90deg);
    justify-self: center;
  }

  .source-grid,
  .authority-grid,
  .gate-grid,
  .rule-grid {
    grid-template-columns: 1fr;
  }

  .peer-layout {
    grid-template-columns: 1fr;
  }

  .peer-tabs {
    grid-template-columns: repeat(4, minmax(11rem, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    scrollbar-color: #c8c5f3 transparent;
  }

  .paper-grid {
    grid-template-columns: 1fr;
  }

  .paper-card:last-child {
    grid-column: auto;
  }

  .paper-card {
    min-height: 17rem;
  }
}

@media (max-width: 36rem) {
  :root {
    --topbar-height: 4rem;
  }

  .content {
    padding: 0.75rem;
  }

  .topbar__actions {
    gap: 0.3rem;
  }

  .breadcrumbs a,
  .breadcrumbs > span:not([aria-current="page"]) {
    display: none;
  }

  .breadcrumbs [aria-current="page"] {
    max-width: 8.5rem;
  }

  .hero__copy {
    padding: 1.45rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .hero__visual {
    min-height: 31rem;
    padding: 1.15rem;
  }

  .hero-node--2,
  .hero-node--3 {
    margin-left: 1rem;
  }

  .section {
    margin-top: 3.5rem;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

  .lens-panel {
    padding: 1rem;
  }

  .mini-thread {
    grid-template-columns: 1fr;
  }

  .mini-thread i {
    width: 2px;
    height: 1rem;
    justify-self: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), #aaa6ff);
  }

  .peer-orbit {
    padding: 1rem;
  }

  .thread-detail {
    padding: 1rem;
  }

  .thread-detail dl > div,
  .peer-detail dl > div {
    grid-template-columns: 5.2rem 1fr;
  }

  .source-grid,
  .authority-grid,
  .gate-grid {
    padding: 0.75rem;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading > .state-chip,
  .panel-heading > .count-pill {
    margin-left: 3rem;
  }

  .release-card__head {
    grid-template-columns: auto 1fr;
  }

  .release-card__head .state-chip {
    grid-column: 1 / -1;
  }

  .manifest-list li {
    grid-template-columns: 1fr;
  }

  .manifest-list code {
    white-space: normal;
  }

  .authority-grid article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .relation-pill {
    grid-column: 1 / -1;
    margin-left: 3rem;
  }

  .run-status {
    flex-direction: column;
  }

  .run-actions .button {
    width: 100%;
  }

  .evidence-log {
    min-height: 16rem;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer__links {
    flex-wrap: wrap;
  }

  .dialog-callout {
    flex-direction: column;
  }

  .toast {
    right: 0.6rem;
    bottom: 0.6rem;
    width: calc(100vw - 1.2rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .toast > a {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    overflow: visible;
    background: #fff;
  }

  .app-shell,
  .layout,
  .main,
  .content-scroll {
    display: block;
    height: auto;
    overflow: visible;
  }

  .sidebar,
  .topbar,
  .hero__actions,
  .run-actions,
  .toast,
  dialog {
    display: none !important;
  }

  .content {
    width: 100%;
    padding: 0;
  }

  .hero,
  .section,
  .lens-tabs,
  .thread-explorer,
  .readiness-panel,
  .authority-panel,
  .peer-panel,
  .ucf-runner,
  .trust-panel,
  .paper-card {
    break-inside: avoid;
    box-shadow: none;
  }

  html.js .lens-panel,
  html.js .thread-detail,
  html.js .peer-detail article {
    display: grid;
  }
}

/* Quiet three-chapter reading path: UCF → VDT → Workplace Vision. */

.main {
  width: 100%;
}

.topbar {
  display: grid;
  min-height: 5rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.96);
}

.topbar-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-strong);
  text-decoration: none;
}

.topbar-brand > span:last-child {
  display: grid;
  line-height: 1.15;
}

.topbar-brand strong {
  font-size: 0.86rem;
}

.topbar-brand small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.topbar-brand .brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 0.65rem;
  box-shadow: none;
}

.topbar-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.topbar-nav a {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.38rem;
  border-radius: 0.55rem;
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-nav a > span:first-child:not([data-lang]) {
  color: var(--brand-strong);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.topbar-nav a:hover,
.topbar-nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.content {
  width: min(100%, 76rem);
  padding: clamp(1rem, 3vw, 2.5rem);
}

.hero--simple {
  display: block;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: none;
}

.hero--simple::before,
.hero--simple::after {
  display: none;
}

.hero--simple .hero__copy {
  max-width: none;
  border: 0;
  padding: clamp(2rem, 6vw, 5rem);
}

.hero--simple h1 {
  max-width: 15ch;
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.98;
}

.hero--simple .hero__tagline {
  max-width: 50rem;
  margin-top: 1.7rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero--simple .hero__intro {
  max-width: 66ch;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.chapter-path {
  display: grid;
  margin-top: 2.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.chapter-path a {
  display: grid;
  min-height: 7.2rem;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  color: var(--ink-strong);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.chapter-path a:hover {
  border-color: rgba(91, 87, 217, 0.45);
  background: var(--brand-soft);
}

.chapter-path a > span {
  color: var(--brand-strong);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.chapter-path a > strong {
  margin-top: 0.45rem;
  font-size: 0.86rem;
}

.chapter-path a > small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.hero--simple .session-note {
  max-width: 58rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.section {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(5rem, 9vw, 8rem);
}

.section > *,
.section-heading,
.section-heading > div,
.section-heading h2,
.chapter-disclosure,
.disclosure-body {
  min-width: 0;
  max-width: 100%;
}

.section-heading {
  gap: 2rem;
}

.section-heading h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.03;
}

.section-heading > p {
  max-width: 46ch;
  font-size: 0.9rem;
  line-height: 1.65;
}

.peer-panel,
.ucf-runner,
.thread-explorer,
.release-workbench,
.readiness-panel,
.authority-panel,
.sequence-panel,
.trust-panel,
.workplace-board,
.paper-row {
  border-color: var(--border);
  background: #fff;
  box-shadow: none;
}

.peer-panel,
.ucf-runner,
.thread-explorer {
  margin-top: 1.5rem;
}

.panel-index {
  display: none;
}

.panel-heading > div {
  gap: 0;
}

.peer-panel .panel-heading > .state-chip {
  display: none;
}

html.js .ucf-runner:not(.has-started) .run-console {
  grid-template-columns: 1fr;
}

html.js .ucf-runner:not(.has-started) .evidence-log {
  display: none;
}

.chapter-disclosure {
  margin-top: 1rem;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #fff;
}

.chapter-disclosure > summary {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.chapter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.chapter-disclosure > summary > span:first-child {
  display: grid;
  min-width: 0;
}

.chapter-disclosure > summary strong {
  color: var(--ink-strong);
  font-size: 0.86rem;
}

.chapter-disclosure > summary small {
  max-width: 72ch;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.chapter-disclosure > summary > span:last-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--brand-strong);
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.chapter-disclosure[open] > summary {
  border-bottom: 1px solid var(--border);
}

.chapter-disclosure[open] > summary > span:last-child {
  transform: rotate(45deg);
}

.disclosure-body {
  padding: 1rem;
}

.disclosure-body > :first-child {
  margin-top: 0;
}

.product-release-disclosure {
  margin-top: 1.5rem;
}

.product-release-disclosure .release-workbench,
.product-release-disclosure .readiness-panel,
.product-release-disclosure .authority-panel {
  box-shadow: none;
}

.gate-record {
  display: grid;
  margin: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 0.55rem;
  gap: 0.25rem;
}

.gate-record[hidden] {
  display: none;
}

.gate-record > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.62rem;
}

.gate-record dt {
  color: var(--muted);
}

.gate-record dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.customer-evidence {
  margin: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
}

.customer-evidence > div:first-child h4 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.85rem;
}

.customer-evidence > div:first-child p {
  max-width: 72ch;
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.customer-evidence__controls {
  display: grid;
  margin-top: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.customer-evidence__controls button {
  display: grid;
  min-height: 5.5rem;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.7rem;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.customer-evidence__controls button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.customer-evidence__controls button.is-recorded {
  border-color: rgba(15, 107, 60, 0.35);
  background: var(--success-bg);
}

.customer-evidence__controls button.is-recorded > small {
  color: #0a4d2b;
}

.customer-evidence__controls button > span {
  color: var(--brand-strong);
  font-size: 0.58rem;
  font-weight: 850;
}

.customer-evidence__controls button > strong {
  margin-top: 0.28rem;
  font-size: 0.7rem;
}

.customer-evidence__controls button > small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.35;
}

.customer-evidence__note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.trust-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.workplace-board {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.workplace-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.workplace-flow > div {
  display: grid;
  min-height: 7rem;
  align-content: center;
  border-left: 2px solid var(--brand);
  padding: 1rem 1.15rem;
  background: #f7f8fb;
}

.workplace-flow > div > span {
  color: var(--brand-strong);
  font-size: 0.62rem;
  font-weight: 850;
}

.workplace-flow > div > strong {
  margin-top: 0.35rem;
  color: var(--ink-strong);
  font-size: 0.9rem;
}

.workplace-flow > div > small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.workplace-flow > span {
  color: var(--muted-soft);
}

.workplace-pillars {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  list-style: none;
}

.workplace-pillars li {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  gap: 0.65rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
}

.workplace-pillars li > span {
  color: var(--brand-strong);
  font-size: 0.6rem;
  font-weight: 850;
}

.workplace-pillars li > strong {
  font-size: 0.76rem;
}

.workplace-conclusion {
  max-width: 72ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.paper-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #fff;
}

.paper-row {
  display: grid;
  min-height: 5.75rem;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem 1.25rem;
  color: var(--ink-strong);
  text-decoration: none;
}

.paper-row:last-child {
  border-bottom: 0;
}

.paper-row:hover {
  background: var(--brand-soft);
}

.paper-row > span,
.paper-row > strong {
  color: var(--brand-strong);
  font-size: 0.68rem;
  font-weight: 850;
}

.paper-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.paper-row h3 {
  margin: 0.18rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

@media (max-width: 70rem) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 1rem;
  }

  .topbar-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .chapter-path {
    grid-template-columns: 1fr;
  }

  .chapter-path a {
    min-height: 5.75rem;
  }

  .customer-evidence__controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 50rem) {
  .topbar {
    padding: 0.55rem 0.75rem;
  }

  .topbar-brand small {
    display: none !important;
  }

  .topbar-nav a {
    padding-inline: 0.6rem;
  }

  .hero--simple .hero__copy {
    padding: 1.5rem;
  }

  .hero--simple h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .workplace-flow {
    grid-template-columns: 1fr;
  }

  .workplace-flow > span {
    transform: rotate(90deg);
    justify-self: center;
  }

  .workplace-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .trust-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 24rem) {
  .topbar-brand strong {
    font-size: 0.76rem;
  }

  .topbar-brand .brand__mark {
    width: 2rem;
    height: 2rem;
  }

  .topbar-nav a {
    padding-inline: 0.35rem;
    font-size: 0.67rem;
  }

  .topbar-nav a > span:first-child:not([data-lang]),
  .topbar-nav a:last-child {
    display: none;
  }

  .workplace-pillars {
    grid-template-columns: 1fr;
  }

  .customer-evidence__controls {
    grid-template-columns: 1fr;
  }
}

/* Rich architecture companion restored after the three-chapter simplification. */

.main {
  width: auto;
}

.topbar {
  display: flex;
  min-height: var(--topbar-height);
  grid-template-columns: none;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(247, 249, 252, 0.9);
}

.content {
  width: min(100%, 94rem);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.section {
  margin-top: clamp(3.3rem, 7vw, 6.75rem);
}

.section-heading {
  gap: 2rem;
}

.hero h1,
.section-heading h2,
.run-status h4,
.thread-detail h3,
.lens-panel h3,
.paper-card h3 {
  font-weight: 720;
  letter-spacing: -0.045em;
}

.hero h1 {
  line-height: 0.94;
}

.section-heading h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.04;
}

.section-heading > p {
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-quote blockquote {
  font-weight: 560;
  letter-spacing: -0.012em;
}

.paper-number {
  font-weight: 720;
}

.peer-panel,
.ucf-runner,
.thread-explorer,
.release-workbench,
.readiness-panel,
.authority-panel,
.sequence-panel,
.trust-panel,
.workplace-board,
.paper-card {
  box-shadow: var(--shadow-soft);
}

.product-release-disclosure .release-workbench,
.product-release-disclosure .readiness-panel,
.product-release-disclosure .authority-panel {
  box-shadow: var(--shadow-soft);
}

.panel-index {
  display: inline-grid;
}

.panel-heading > div {
  gap: 0.72rem;
}

.peer-panel .panel-heading > .state-chip {
  display: inline-flex;
}

html.js .ucf-runner:not(.has-started) .run-console {
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

html.js .ucf-runner:not(.has-started) .evidence-log {
  display: block;
}

.nav-item--sub {
  margin-left: 1.2rem;
  border-left: 1px solid var(--border);
  border-radius: 0 0.58rem 0.58rem 0;
  font-size: 0.8rem;
}

.breadcrumb-title-short {
  display: none;
}

.eyebrow,
.nav-label {
  font-size: 0.73rem;
}

.version-pill,
.object-pill,
.count-pill,
.relation-pill,
.state-chip {
  font-size: 0.72rem;
}

.panel-heading p,
.source-card p,
.gate-card p,
.customer-evidence > div:first-child p,
.workplace-flow > div > small,
.paper-card p:not(.paper-kicker),
.privacy-note {
  font-size: 0.78rem;
}

.live-pill,
.customer-evidence__controls button > span,
.customer-evidence__controls button > small,
.trust-chain small {
  font-size: 0.72rem;
}

.customer-evidence__controls button > strong,
.workplace-pillars li > strong,
.paper-kicker {
  font-size: 0.72rem;
}

.gate-record > div,
.customer-evidence__note {
  font-size: 0.69rem;
}

@media (max-width: 70rem) {
  .topbar {
    grid-template-columns: none;
  }
}

@media (max-width: 64rem) {
  .topbar {
    padding: 0 0.9rem;
  }

  html.js .ucf-runner:not(.has-started) .run-console {
    grid-template-columns: 1fr;
  }

  .lens-tab strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.2;
  }

  html:not(.js) body {
    overflow: auto;
  }

  html:not(.js) .app-shell,
  html:not(.js) .layout {
    height: auto;
    min-height: 100vh;
  }

  html:not(.js) .layout {
    display: block;
    overflow: visible;
  }

  html:not(.js) .sidebar {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 1rem;
    box-shadow: none;
    transform: none;
  }

  html:not(.js) .sidebar__intro,
  html:not(.js) .sidebar__foot,
  html:not(.js) .nav-label,
  html:not(.js) .sidebar__close,
  html:not(.js) .topbar {
    display: none;
  }

  html:not(.js) .navigation {
    display: flex;
    margin-top: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-color: #c8c5f3 transparent;
  }

  html:not(.js) .nav-item {
    min-height: 2.5rem;
    flex: 0 0 auto;
  }

  html:not(.js) .nav-item--sub {
    margin-left: 0;
    border-left: 0;
    border-radius: 0.58rem;
  }

  html:not(.js) .main {
    height: auto;
    overflow: visible;
  }

  html:not(.js) .content-scroll {
    overflow: visible;
  }
}

@media (max-width: 50rem) {
  .topbar {
    padding: 0 0.75rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.7rem);
  }

  .breadcrumb-title-full {
    display: none;
  }

  .breadcrumb-title-short {
    display: inline;
  }

  .nav-item--sub {
    margin-left: 0.75rem;
  }

  .tab-list {
    scroll-snap-type: x proximity;
  }

  .lens-tab {
    scroll-snap-align: start;
  }

  html:not(.js) .nav-item--sub {
    margin-left: 0;
  }
}
