:root {
  color-scheme: dark;
  --bg: #050507;
  --surface: rgba(10, 15, 24, 0.8);
  --surface-strong: rgba(18, 26, 42, 0.92);
  --border: rgba(90, 120, 160, 0.25);
  --border-active: rgba(0, 255, 255, 0.55);
  --text: #e4eef9;
  --muted: #9fb4cc;
  --accent: #54f0ff;
  --accent-soft: rgba(84, 240, 255, 0.18);
  --glyph: #8af2ff;
  --card-gradient: linear-gradient(150deg, rgba(35, 52, 82, 0.45) 0%, rgba(12, 22, 36, 0.92) 100%);
  --card-border-radius: 18px;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Iowan Old Style", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(40, 70, 110, 0.16), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(84, 240, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.page-wrapper {
  max-width: 1260px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.back-link::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.back-link:hover::before {
  opacity: 1;
}

.framework-breadcrumb {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.framework-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.framework-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.framework-breadcrumb li + li::before {
  content: "›";
  color: var(--accent);
  font-size: 0.85em;
}

.framework-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.framework-breadcrumb a:hover,
.framework-breadcrumb a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.governance-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 3rem;
}

.governance-nav {
  position: sticky;
  top: 2rem;
  align-self: start;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.governance-nav:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 1px rgba(84, 240, 255, 0.25), 0 24px 48px rgba(0, 0, 0, 0.35);
}

.nav-title {
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav-noscript {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.nav-structure {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nav-sublist {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-left: 1px solid rgba(84, 240, 255, 0.18);
}

.nav-sublist.nav-level-4 {
  padding-left: 0.9rem;
  border-left: 1px dashed rgba(84, 240, 255, 0.18);
  gap: 0.3rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  transition: border 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(84, 240, 255, 0.25);
  box-shadow: 0 0 8px rgba(84, 240, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  border-color: rgba(84, 240, 255, 0.35);
  background: rgba(84, 240, 255, 0.06);
  color: var(--text);
  outline: none;
}

.nav-item.nav-level-3 {
  font-size: 0.82rem;
  padding: 0.65rem 0.85rem;
}

.nav-item.nav-level-2 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glyph);
  background: linear-gradient(140deg, rgba(84, 240, 255, 0.18), rgba(10, 28, 40, 0.82));
  border-color: rgba(84, 240, 255, 0.38);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(84, 240, 255, 0.18);
  text-shadow: 0 0 14px rgba(84, 240, 255, 0.4);
}

.nav-item-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.nav-item-title {
  display: block;
}

.nav-item-subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(228, 238, 249, 0.8);
}

.nav-item.nav-level-2 .nav-item-subtitle {
  text-shadow: none;
}

.nav-item.nav-level-2:hover,
.nav-item.nav-level-2:focus-visible {
  background: linear-gradient(140deg, rgba(84, 240, 255, 0.32), rgba(10, 28, 40, 0.9));
  border-color: rgba(84, 240, 255, 0.6);
  color: var(--text);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(84, 240, 255, 0.35);
}

.nav-item.nav-level-2.active {
  background: linear-gradient(140deg, rgba(84, 240, 255, 0.38), rgba(10, 28, 40, 0.95));
  border-color: rgba(84, 240, 255, 0.75);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(84, 240, 255, 0.45), 0 18px 36px rgba(0, 0, 0, 0.5);
}

.nav-item.nav-level-2::before {
  width: 10px;
  height: 10px;
  background: rgba(84, 240, 255, 0.85);
  box-shadow: 0 0 16px rgba(84, 240, 255, 0.55);
}

.nav-item.nav-level-2:not(.active) {
  border-color: rgba(84, 240, 255, 0.32);
}

.nav-item.nav-level-4 {
  font-size: 0.78rem;
  padding: 0.55rem 0.8rem;
}

.nav-item.nav-level-3::before {
  width: 6px;
  height: 6px;
  background: rgba(84, 240, 255, 0.35);
}

.nav-item.nav-level-4::before {
  width: 4px;
  height: 4px;
  background: rgba(84, 240, 255, 0.45);
}

.nav-item.active {
  color: var(--text);
  border-color: rgba(84, 240, 255, 0.45);
  background: rgba(84, 240, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(84, 240, 255, 0.25), 0 0 18px rgba(84, 240, 255, 0.15);
}

.nav-item.active::before {
  transform: scale(1.4);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(84, 240, 255, 0.65);
}

.nav-item.active-trail {
  color: var(--glyph);
  border-color: rgba(84, 240, 255, 0.26);
}

.nav-item.read:not(.active) {
  color: rgba(148, 214, 227, 0.85);
}

.global-progress {
  background: linear-gradient(160deg, rgba(4, 18, 28, 0.95), rgba(2, 10, 16, 0.88));
  border: 1px solid rgba(84, 240, 255, 0.22);
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 0 24px rgba(84, 240, 255, 0.18);
}

.progress-label {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glyph);
}

.global-progress-sublabel {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(148, 214, 227, 0.8);
}

.global-progress-value {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(84, 240, 255, 0.45);
}

.global-progress-bar,
.section-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(8, 24, 34, 0.9);
  overflow: hidden;
}

.global-progress-fill,
.section-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(84, 240, 255, 0.95), rgba(84, 240, 255, 0.5));
  box-shadow: 0 0 16px rgba(84, 240, 255, 0.55);
  transition: width 0.6s ease;
}

.global-progress-fill {
  width: var(--global-progress-percent, 0%);
}

.section-progress-fill {
  width: var(--section-progress-percent, 0%);
}

.section-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  background: rgba(5, 16, 24, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(84, 240, 255, 0.16);
  box-shadow: inset 0 0 18px rgba(84, 240, 255, 0.18);
}

.section-progress-counter {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--glyph);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 4px rgba(84, 240, 255, 0.35);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.governance-content {
  min-width: 0;
}

h1, h2, h3, h4 {
  color: #f7fbff;
  margin-top: 2.4rem;
  font-weight: 500;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  text-align: center;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.heading-subtitle {
  font-size: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  position: relative;
  padding-top: 1.2rem;
  text-align: center;
}

.governance-quote {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.85;
  text-transform: none;
  letter-spacing: 0.04em;
}

.governance-quote-signature {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(84, 240, 255, 0) 0%,
    rgba(84, 240, 255, 0.8) 50%,
    rgba(84, 240, 255, 0) 100%
  );
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  margin-top: 2.2rem;
  text-align: center;
}

h4 {
  font-family: var(--sans);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  text-align: center;
}

h5,
h6 {
  text-align: center;
}

p {
  margin: 1.1rem 0;
}

.author-credit {
  text-align: center;
}

.section-tldr,
.mission-title,
.detail-title,
.fractal-detail-title,
.fractal-detail-subtitle,
.cycle-gauges-heading,
.cycle-gauges-title,
.cycle-gauges-summary,
.cycle-gauges-intro,
.cycle-research-label,
.cycle-research-overview,
.timeline-title,
.timeline-subtitle,
.timeline-intro,
.critique-title,
.critique-intro,
.influence-active-label,
.influence-active-title {
  text-align: center;
}

.section-tldr,
.cycle-gauges-summary,
.cycle-gauges-intro,
.cycle-research-overview,
.timeline-intro,
.critique-intro {
  margin-left: auto;
  margin-right: auto;
}

.trust-fabric-diagram .layer {
  align-items: center;
  text-align: center;
}

.trust-fabric-diagram .layer .layer-title,
.trust-fabric-diagram .layer .layer-subtitle {
  display: block;
  width: 100%;
  text-align: center;
}

p > strong:first-child:last-child {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

ul {
  margin: 1rem 0 1.5rem 1.4rem;
}

li {
  margin: 0.6rem 0;
}

blockquote {
  border-left: 3px solid rgba(84, 240, 255, 0.35);
  margin: 1.8rem 0;
  padding: 1rem 1.6rem;
  background: rgba(17, 25, 40, 0.4);
  border-radius: 14px;
  font-style: italic;
  color: var(--muted);
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 3.5rem 0;
}

.quote-block {
  text-align: center;
  color: var(--accent);
  font-family: var(--mono);
  margin: 2.8rem 0 1rem;
  letter-spacing: 0.08em;
}

.quote-label {
  width: 100%;
  max-width: 320px;
  height: 1px;
  margin: 2.8rem auto 1.2rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(84, 240, 255, 0.65),
    transparent
  );
}

.quote-label--breakout,
.quote-block--breakout {
  margin-left: auto;
  margin-right: auto;
}

details {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 18, 28, 0.75);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

details[open] {
  border-color: rgba(84, 240, 255, 0.35);
}

details summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

details summary::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(84, 240, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.4);
  transition: transform 0.3s ease;
}

details[open] summary::before {
  transform: scale(1.2);
}

details summary::-webkit-details-marker {
  display: none;
}

.section-preview {
  margin: 1.2rem 0 2rem;
  padding: 1.2rem 1.4rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background: rgba(11, 20, 32, 0.6);
  font-family: var(--sans);
  color: var(--muted);
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.section-preview:focus-within {
  border-color: rgba(84, 240, 255, 0.3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.section-preview.is-open {
  border-color: rgba(84, 240, 255, 0.28);
  background: rgba(11, 24, 40, 0.75);
}

.section-preview.is-speaking {
  border-color: rgba(84, 240, 255, 0.45);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42);
}

.section-preview-speak {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(84, 240, 255, 0.28);
  background: rgba(84, 240, 255, 0.12);
  color: var(--glyph);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.section-preview-speak::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 240, 255, 0.28) 0%, rgba(84, 240, 255, 0) 70%);
  opacity: 0.35;
  pointer-events: none;
  animation: sectionPreviewPulse 3.2s ease-in-out infinite;
}

.section-preview-speak:hover,
.section-preview-speak:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(84, 240, 255, 0.5);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.35);
}

.section-preview.is-speaking .section-preview-speak::after {
  animation-duration: 1.6s;
  opacity: 0.5;
}

.section-preview--no-speech .section-preview-speak {
  cursor: not-allowed;
  border-color: rgba(84, 240, 255, 0.15);
  background: rgba(84, 240, 255, 0.08);
}

.section-preview--no-speech .section-preview-speak::after {
  animation: none;
  opacity: 0.2;
}

.section-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(84, 240, 255, 0.2);
  color: var(--glyph);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.section-preview-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.section-preview-toggle {
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid rgba(84, 240, 255, 0.32);
  background: rgba(84, 240, 255, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.section-preview-toggle:hover,
.section-preview-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(84, 240, 255, 0.55);
  background: rgba(84, 240, 255, 0.18);
}

.section-preview-toggle[aria-expanded="true"] {
  background: rgba(84, 240, 255, 0.22);
  color: var(--text);
}

.section-preview-text {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.section-preview-text[hidden] {
  display: none;
}

@keyframes sectionPreviewPulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.3;
  }

  50% {
    transform: scale(1);
    opacity: 0.55;
  }
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin: 1.8rem 0 2.4rem;
}

.dimension-card {
  padding: 1.3rem 1.2rem 1.5rem;
  background: var(--card-gradient);
  border-radius: var(--card-border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.dimension-card:hover,
.dimension-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(84, 240, 255, 0.25);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}

.dimension-card header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.dimension-card header span.icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(84, 240, 255, 0.16);
  color: var(--glyph);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.dimension-card p {
  margin: 0.7rem 0 0.7rem;
}

.dimension-card ul {
  list-style: none;
  margin: 0.8rem 0 0.2rem;
  padding: 0;
}

.dimension-card ul li {
  margin: 0.45rem 0;
  padding-left: 1.8rem;
  position: relative;
}

.dimension-card ul li::before {
  content: "•";
  position: absolute;
  left: 0.4rem;
  color: rgba(84, 240, 255, 0.45);
}

.dimension-card[data-dimension="acceptance"] ul li::before,
.checklist-card ul li::before {
  content: "✔";
  color: var(--accent);
  font-size: 0.85rem;
  top: 0.1rem;
}

.dimension-card[data-dimension="metrics"] ul li::before {
  content: "◔";
  color: rgba(84, 240, 255, 0.7);
}

.system-diagram {
  margin: 2.4rem 0;
  padding: 1.5rem 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(84, 240, 255, 0.15);
  background: rgba(10, 18, 32, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.trust-fabric-hud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 2.75rem 0 3.5rem;
  padding: 1.85rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 26px;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.trust-fabric-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(84, 240, 255, 0.12), transparent 55%),
    radial-gradient(circle at 82% 12%, rgba(84, 240, 255, 0.1), transparent 62%),
    linear-gradient(145deg, rgba(12, 18, 32, 0.65), rgba(6, 12, 22, 0.85));
  opacity: 0.92;
  z-index: -2;
}

.trust-fabric-hud::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 24px;
  border: 1px solid rgba(84, 240, 255, 0.08);
  pointer-events: none;
  z-index: -1;
}

.trust-hud-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-hud-mission .mission-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.trust-hud-mission .mission-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.mission-copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.6;
}

.mission-instruction {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.3);
}

.trust-hud-meter {
  gap: 1.25rem;
}

.scoreboard {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(10, 18, 28, 0.72);
  border: 1px solid rgba(84, 240, 255, 0.18);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.scoreboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(84, 240, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.score-label {
  font-size: 0.76rem;
  color: var(--muted);
}

.score-value {
  font-size: 1.8rem;
  color: var(--accent);
}

.score-max {
  font-size: 0.95rem;
  color: rgba(138, 242, 255, 0.75);
}

.progressor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-track {
  position: relative;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background: rgba(8, 14, 24, 0.75);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
}

.progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(84, 240, 255, 0.3), rgba(84, 240, 255, 0.65));
  transform-origin: left center;
  transform: scaleX(var(--progress-scale, 0));
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: var(--progress-opacity, 0.85);
}

.progress-orb {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid rgba(84, 240, 255, 0.35);
  background: rgba(4, 10, 18, 0.9);
  color: rgba(138, 242, 255, 0.6);
  font-family: var(--mono);
  font-size: 0.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.progress-orb.is-active {
  transform: scale(1.1);
  border-color: rgba(84, 240, 255, 0.8);
  color: #05121f;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(84, 240, 255, 0.35);
}

.progress-status {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-hud-log {
  gap: 0.9rem;
  position: relative;
}

.trust-hud-log::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1.4rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0) 0%, rgba(8, 14, 24, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trust-hud-log[data-scrollable="true"]::after {
  opacity: 1;
}

.quest-message {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: rgba(138, 242, 255, 0.85);
}

.quest-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-height: 14rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(84, 240, 255, 0.35) transparent;
}

.quest-entries::-webkit-scrollbar {
  width: 0.35rem;
}

.quest-entries::-webkit-scrollbar-thumb {
  background: rgba(84, 240, 255, 0.35);
  border-radius: 999px;
}

.quest-entries::-webkit-scrollbar-thumb:hover {
  background: rgba(84, 240, 255, 0.5);
}

.quest-entries:focus-visible {
  outline: 2px solid rgba(84, 240, 255, 0.35);
  outline-offset: 2px;
}

.quest-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid rgba(84, 240, 255, 0.12);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quest-entry--tip {
  opacity: 0.8;
  font-style: italic;
}

.quest-entry-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(84, 240, 255, 0.12);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.quest-entry-copy {
  line-height: 1.5;
}

.quest-entry--new {
  border-color: rgba(84, 240, 255, 0.45);
  box-shadow: 0 0 18px rgba(84, 240, 255, 0.2);
}

.trust-fabric-hud[data-state="complete"] {
  box-shadow: 0 30px 70px rgba(0, 30, 40, 0.55), 0 0 0 1px rgba(84, 240, 255, 0.35);
}

.trust-fabric-hud[data-state="complete"] .scoreboard {
  box-shadow: 0 0 18px rgba(84, 240, 255, 0.4);
}

.trust-fabric-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.confetti-piece {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--color, var(--accent));
  opacity: 0;
  transform: translate3d(-50%, -28px, 0) rotate(0deg);
  animation: confetti-fall 1.4s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -28px, 0) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--dx, 0px)), 90px, 0) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--dx, 0px)), 120px, 0) rotate(220deg);
  }
}

@media (max-width: 1080px) {
  .trust-fabric-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .trust-fabric-hud {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .mission-instruction {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    transition: none;
  }

  .quest-entry,
  .progress-orb {
    transition: none;
  }
}

.trust-fabric-diagram {
  position: relative;
  display: grid;
  gap: 2rem;
}

.trust-fabric-path {
  position: relative;
  display: grid;
  gap: 1.1rem;
  isolation: isolate;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-fabric-path > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-fabric-path > li > .layer {
  width: 100%;
}

.trust-fabric-path::before {
  content: "";
  position: absolute;
  left: 2.35rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(84, 240, 255, 0.4), rgba(84, 240, 255, 0));
  opacity: 0.6;
  pointer-events: none;
}

.trust-fabric-diagram .layer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem 1.1rem 4.5rem;
  min-height: 3.6rem;
  border-radius: 18px;
  border: 1px solid rgba(84, 240, 255, 0.2);
  background: linear-gradient(140deg, rgba(20, 32, 48, 0.78) 0%, rgba(10, 18, 32, 0.6) 100%);
  font-family: var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.45s ease, border-color 0.35s ease, background 0.45s ease, box-shadow 0.45s ease, color 0.35s ease;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.trust-fabric-diagram .layer::before {
  content: attr(data-step);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text);
  background: radial-gradient(circle at 30% 30%, rgba(84, 240, 255, 0.8), rgba(12, 26, 44, 0.9));
  border: 1px solid rgba(84, 240, 255, 0.45);
  box-shadow: 0 0 20px rgba(84, 240, 255, 0.35);
}

.trust-fabric-diagram .layer::after {
  content: "";
  position: absolute;
  left: 2.35rem;
  top: calc(100% + 0.2rem);
  width: 2px;
  height: 1.2rem;
  background: linear-gradient(180deg, rgba(84, 240, 255, 0.4), rgba(84, 240, 255, 0));
  opacity: 0.5;
  pointer-events: none;
}

.trust-fabric-diagram .layer:last-child::after {
  display: none;
}

.trust-fabric-diagram .layer .layer-title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--text);
}

.trust-fabric-diagram .layer .layer-subtitle {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(84, 240, 255, 0.7);
  text-transform: none;
}

.trust-fabric-diagram .layer:hover,
.trust-fabric-diagram .layer:focus-visible {
  border-color: rgba(84, 240, 255, 0.5);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(84, 240, 255, 0.35);
  transform: translateY(-2px);
}

.trust-fabric-diagram .layer:focus-visible {
  outline: none;
}

.trust-fabric-diagram .layer:active {
  transform: translateY(0);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(84, 240, 255, 0.45);
}

.trust-fabric-diagram .layer.active {
  border-color: rgba(84, 240, 255, 0.65);
  background: linear-gradient(150deg, rgba(35, 68, 102, 0.95) 0%, rgba(14, 26, 44, 0.85) 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.45), 0 24px 42px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.trust-fabric-diagram .layer.active .layer-subtitle {
  color: rgba(173, 247, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .trust-fabric-diagram .layer {
    transition: none;
  }
}

.trust-fabric-detail {
  padding: 1.2rem 1.4rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background: linear-gradient(160deg, rgba(16, 28, 44, 0.84) 0%, rgba(8, 16, 30, 0.72) 100%);
  font-family: var(--sans);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35);
}

.trust-fabric-detail .detail-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(173, 247, 255, 0.7);
}

.trust-fabric-detail .detail-title {
  margin: 0.6rem 0 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--text);
}

.trust-fabric-detail .detail-summary {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  font-family: var(--serif);
}

.trust-fabric-detail .detail-meta {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.trust-fabric-detail .detail-row {
  display: grid;
  gap: 0.25rem;
}

.trust-fabric-detail dt {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(173, 247, 255, 0.6);
}

.trust-fabric-detail dd {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.55;
}

@media (min-width: 960px) {
  .trust-fabric-diagram {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
    align-items: start;
  }

  .trust-fabric-detail {
    position: sticky;
    top: 2.5rem;
  }
}

@media (max-width: 720px) {
  .trust-fabric-diagram .layer {
    padding-left: 3.6rem;
  }

  .trust-fabric-path::before,
  .trust-fabric-diagram .layer::after {
    left: 1.9rem;
  }

  .trust-fabric-diagram .layer::before {
    left: 0.75rem;
  }

  .fractal-diagram {
    min-height: clamp(240px, 70vw, 340px);
    padding: clamp(1.5rem, 8vw, 2.5rem);
  }

  .fractal-zoom-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .fractal-zoom-button {
    width: 100%;
    height: 2.75rem;
  }

  .fractal-zoom-slider {
    width: 100%;
  }
}

.fractal-explorer {
  display: grid;
  gap: 1.75rem;
  position: relative;
}

.fractal-explorer::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(84, 240, 255, 0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(67, 155, 255, 0.12), transparent 60%);
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.fractal-explorer:is(:hover, :focus-within)::before {
  opacity: 0.75;
}

.fractal-zoom-shell {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.fractal-diagram {
  position: relative;
  min-height: clamp(280px, 48vw, 420px);
  padding: clamp(2rem, 6vw, 3.25rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 18%, rgba(84, 240, 255, 0.18), transparent 60%),
    radial-gradient(circle at 82% 78%, rgba(84, 155, 255, 0.12), transparent 65%),
    linear-gradient(160deg, rgba(10, 18, 32, 0.85), rgba(6, 12, 24, 0.95));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.46);
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  --zoom-depth: 0;
}

.fractal-diagram::before,
.fractal-diagram::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(84, 240, 255, 0.05), rgba(84, 240, 255, 0.18), rgba(84, 240, 255, 0.05));
  z-index: -1;
  transform: rotate(12deg) scale(calc(1 + (var(--zoom-depth) * 0.08)));
  animation: fractal-orbit 32s linear infinite;
}

.fractal-diagram::after {
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(84, 240, 255, 0.22), transparent 74%);
  animation-duration: 48s;
  mix-blend-mode: screen;
  opacity: 0.6;
}

.fractal-diagram .tier {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  transform-origin: center;
  width: 100%;
  max-width: clamp(220px, 58vw, 360px);
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 50%;
  background: none;
  padding: clamp(1.75rem, 6vw, 2.75rem);
  display: grid;
  place-items: center;
  gap: 0;
  color: var(--text);
  font-family: var(--sans);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
}

.fractal-diagram .tier::before {
  content: "";
  position: absolute;
  inset: clamp(0.4rem, 2vw, 0.75rem);
  border-radius: 50%;
  background: radial-gradient(circle, var(--scene-trace, rgba(84, 240, 255, 0.1)), transparent 70%);
  box-shadow: 0 0 0 1px var(--scene-trace, rgba(84, 240, 255, 0.12)), 0 18px 32px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.fractal-diagram .tier::after {
  content: "";
  position: absolute;
  inset: clamp(1.6rem, 6vw, 2.6rem);
  border-radius: 50%;
  border: 1px dashed var(--scene-trace, rgba(84, 240, 255, 0.3));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.fractal-diagram .tier strong,
.fractal-diagram .tier span {
  pointer-events: none;
}

.fractal-diagram .tier > .fractal-scene-label {
  position: absolute;
  bottom: clamp(1.05rem, 3.4vw, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - clamp(3rem, 9vw, 4.75rem));
  max-width: 85%;
  pointer-events: none;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.fractal-diagram .tier > .fractal-scene-label strong,
.fractal-diagram .tier > .fractal-scene-label span {
  pointer-events: none;
}

.fractal-diagram .tier.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
}

.fractal-diagram .tier.active::before,
.fractal-diagram .tier.active::after {
  opacity: 1;
}

.fractal-diagram .tier:focus-visible {
  outline: 2px solid rgba(84, 240, 255, 0.65);
  outline-offset: 6px;
}

.fractal-diagram .tier[data-tier="city"] {
  --scene-hue: 186;
  --scene-color: rgba(84, 240, 255, 0.78);
  --scene-trace: rgba(84, 240, 255, 0.46);
  --scene-glow: rgba(84, 240, 255, 0.65);
  --scene-depth: rgba(8, 24, 40, 0.92);
  --scene-highlight: rgba(188, 255, 255, 0.85);
}

.fractal-diagram .tier[data-tier="region"] {
  --scene-hue: 204;
  --scene-color: rgba(122, 210, 255, 0.78);
  --scene-trace: rgba(122, 210, 255, 0.4);
  --scene-glow: rgba(122, 210, 255, 0.6);
  --scene-depth: rgba(10, 26, 46, 0.92);
  --scene-highlight: rgba(196, 236, 255, 0.82);
}

.fractal-diagram .tier[data-tier="alliance"] {
  --scene-hue: 215;
  --scene-color: rgba(138, 190, 255, 0.76);
  --scene-trace: rgba(138, 190, 255, 0.38);
  --scene-glow: rgba(138, 190, 255, 0.58);
  --scene-depth: rgba(12, 22, 52, 0.9);
  --scene-highlight: rgba(210, 228, 255, 0.78);
}

.fractal-diagram .tier[data-tier="concord"] {
  --scene-hue: 225;
  --scene-color: rgba(148, 180, 255, 0.78);
  --scene-trace: rgba(148, 180, 255, 0.34);
  --scene-glow: rgba(148, 180, 255, 0.55);
  --scene-depth: rgba(14, 20, 56, 0.88);
  --scene-highlight: rgba(220, 226, 255, 0.72);
}

.fractal-diagram .tier[data-tier="federation"] {
  --scene-hue: 234;
  --scene-color: rgba(174, 162, 255, 0.82);
  --scene-trace: rgba(174, 162, 255, 0.42);
  --scene-glow: rgba(174, 162, 255, 0.62);
  --scene-depth: rgba(18, 16, 58, 0.9);
  --scene-highlight: rgba(236, 230, 255, 0.78);
}

.fractal-scene-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 65%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(circle at 50% 50%, var(--scene-depth, rgba(20, 32, 56, 0.92)), rgba(4, 10, 22, 0.88)),
    conic-gradient(from 180deg at 50% 50%, rgba(255, 255, 255, 0.05), transparent 38%, rgba(255, 255, 255, 0.12), transparent 76%, rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 36px rgba(0, 0, 0, 0.55),
    inset 0 0 24px var(--scene-trace, rgba(84, 240, 255, 0.32)),
    0 20px 38px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
  filter: saturate(1.05) brightness(1.02);
}

.fractal-scene-orbit::before {
  content: "";
  position: absolute;
  inset: clamp(0.7rem, 3vw, 1.4rem);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--scene-highlight, rgba(255, 255, 255, 0.24)) 0%, transparent 75%),
    conic-gradient(from 90deg, transparent 20%, var(--scene-highlight, rgba(255, 255, 255, 0.16)) 40%, transparent 60%, var(--scene-highlight, rgba(255, 255, 255, 0.08)) 80%, transparent 100%);
  opacity: 0.85;
  mix-blend-mode: screen;
  filter: blur(0.5px);
  animation: orbit-gloss 12s ease-in-out infinite;
}

.fractal-scene-orbit::after {
  content: "";
  position: absolute;
  inset: clamp(0.25rem, 1.8vw, 0.75rem);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 30% 30%, var(--scene-highlight, rgba(255, 255, 255, 0.2)), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.7;
  filter: blur(0.6px);
}

.fractal-diagram .tier:is(:hover, :focus-visible, .active) .fractal-scene-orbit {
  border-color: var(--scene-glow, rgba(84, 240, 255, 0.6));
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.42),
    inset 0 0 32px var(--scene-glow, rgba(84, 240, 255, 0.55)),
    0 28px 54px rgba(0, 0, 0, 0.55),
    0 0 60px var(--scene-glow, rgba(84, 240, 255, 0.45));
  filter: saturate(1.25) brightness(1.05);
}

.fractal-scene-icon {
  position: relative;
  width: min(60%, 232px);
  max-width: 240px;
  display: block;
  isolation: isolate;
}

.fractal-scene-icon::before,
.fractal-scene-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: -10%;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.fractal-scene-icon::before {
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.25), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.12), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.55;
  filter: blur(0.6px);
}

.fractal-scene-icon::after {
  background: conic-gradient(from 210deg, transparent 0 42%, rgba(255, 255, 255, 0.32) 56%, transparent 76%, rgba(255, 255, 255, 0.24) 90%, transparent 100%);
  opacity: 0.35;
  mix-blend-mode: screen;
  filter: blur(1.2px);
  transform: rotate(-6deg);
}

.fractal-diagram .tier:is(:hover, :focus-visible, .active) .fractal-scene-icon::before {
  opacity: 0.75;
}

.fractal-diagram .tier:is(:hover, :focus-visible, .active) .fractal-scene-icon::after {
  opacity: 0.55;
}

.fractal-scene-illustration {
  width: 100%;
  height: auto;
  display: block;
  stroke: var(--scene-color, rgba(84, 240, 255, 0.78));
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: rgba(255, 255, 255, 0.08);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 24px var(--scene-glow, rgba(84, 240, 255, 0.28)));
  transition: filter 0.5s ease;
  paint-order: stroke fill markers;
}

.fractal-diagram .tier:is(:hover, :focus-visible, .active) .fractal-scene-illustration {
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 38px var(--scene-glow, rgba(84, 240, 255, 0.42)));
}

@keyframes orbit-gloss {
  0%,
  100% {
    transform: rotate(0deg);
    opacity: 0.65;
  }
  40% {
    opacity: 0.9;
  }
  50% {
    transform: rotate(6deg);
  }
  70% {
    opacity: 0.78;
  }
}

.fractal-scene-trace {
  stroke: var(--scene-trace, rgba(84, 240, 255, 0.3));
}

.fractal-scene-illustration .city-halo {
  fill: url(#fractal-city-halo);
  opacity: 0.75;
  mix-blend-mode: screen;
  filter: blur(0.4px);
}

.fractal-scene-illustration .city-halo--inner {
  fill: none;
  stroke: rgba(84, 240, 255, 0.35);
  stroke-width: 1.6;
  filter: blur(0.6px);
  opacity: 0.85;
}

.fractal-scene-illustration .city-grid {
  fill: url(#fractal-city-grid);
  stroke: rgba(60, 210, 255, 0.4);
  stroke-width: 2.4;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.fractal-scene-illustration .city-core {
  fill: url(#fractal-city-core);
  stroke: rgba(150, 255, 255, 0.32);
  stroke-width: 0.8;
  filter: blur(0.4px);
  transform-box: fill-box;
  transform-origin: center;
  animation: city-core-pulse 6s ease-in-out infinite;
}

.fractal-scene-illustration .city-reflection {
  fill: none;
  stroke: rgba(188, 255, 255, 0.45);
  stroke-width: 1.6;
  opacity: 0.6;
  stroke-linecap: round;
  filter: blur(0.3px);
}

.fractal-scene-illustration .city-reflection--lower {
  opacity: 0.42;
  stroke-dasharray: 8 10;
}

.fractal-scene-illustration .city-road {
  fill: url(#fractal-city-road);
  stroke: rgba(168, 255, 255, 0.3);
  stroke-width: 1.8;
  mix-blend-mode: screen;
}

.fractal-scene-illustration .city-road--ring {
  fill: none;
  stroke-dasharray: 12 10;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(84, 240, 255, 0.35));
}

.fractal-scene-illustration .city-building {
  fill: url(#fractal-city-building);
  stroke: rgba(140, 230, 255, 0.42);
  stroke-width: 1.4;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.fractal-scene-illustration .city-tree circle {
  fill: url(#fractal-city-tree);
  stroke: rgba(140, 255, 220, 0.35);
  stroke-width: 0.4;
}

.fractal-scene-illustration .city-tree rect {
  fill: url(#fractal-city-trunk);
  stroke: none;
}

.fractal-scene-illustration .city-cars g {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.fractal-scene-illustration .city-car-body {
  fill: rgba(84, 240, 255, 0.9);
  stroke: none;
  filter: drop-shadow(0 0 6px rgba(84, 240, 255, 0.6));
}

.fractal-scene-illustration .city-car-light {
  fill: rgba(255, 255, 255, 0.9);
  stroke: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.75));
}

.fractal-scene-illustration .city-beacon {
  fill: rgba(188, 255, 255, 0.85);
  stroke: none;
  filter: blur(0.25px);
  transform-box: fill-box;
  transform-origin: center;
  animation: city-beacon-pulse 8s ease-in-out infinite;
}

.fractal-scene-illustration .city-beacon:nth-child(2) {
  animation-delay: 1.2s;
}

.fractal-scene-illustration .city-beacon:nth-child(3) {
  animation-delay: 2.4s;
}

.fractal-scene-illustration .city-beacon:nth-child(4) {
  animation-delay: 3.6s;
}

.fractal-scene-illustration .region-halo {
  fill: url(#fractal-region-halo);
  opacity: 0.7;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}

.fractal-scene-illustration .region-halo--inner {
  fill: none;
  stroke: rgba(122, 210, 255, 0.34);
  stroke-width: 1.6;
  filter: blur(0.6px);
}

.fractal-scene-illustration .region-atmosphere {
  fill: url(#fractal-region-atmosphere);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.fractal-scene-illustration .region-orbit {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}

.fractal-scene-illustration .region-track {
  fill: none;
  stroke: url(#fractal-region-track);
  stroke-width: 1.6;
  stroke-dasharray: 14 12;
  animation: region-track-flow 18s linear infinite;
}

.fractal-scene-illustration .region-track--pulse {
  stroke-dasharray: 6 8;
  animation-duration: 12s;
}

.fractal-scene-illustration .region-node {
  fill: url(#fractal-region-node);
  stroke: rgba(220, 245, 255, 0.42);
  stroke-width: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.fractal-scene-illustration .region-node--mini {
  stroke-width: 0.8;
}

.fractal-scene-illustration .region-network path {
  fill: none;
  stroke: url(#fractal-region-link);
  stroke-width: 1.4;
  stroke-dasharray: 18 12;
  animation: region-network-weave 14s ease-in-out infinite;
}

.fractal-scene-illustration .region-core-ring {
  fill: none;
  stroke: rgba(122, 210, 255, 0.3);
  stroke-width: 1.2;
  stroke-dasharray: 10 6;
  stroke-dashoffset: 0;
  animation: region-core-ring 10s linear infinite;
}

.fractal-scene-illustration .region-core-glow {
  fill: rgba(122, 210, 255, 0.22);
  stroke: none;
  filter: blur(6px);
}

.fractal-scene-illustration .region-core {
  fill: url(#fractal-region-core);
  stroke: rgba(122, 210, 255, 0.6);
  stroke-width: 1.8;
}

.fractal-scene-illustration .region-signal {
  fill: none;
  stroke: rgba(180, 235, 255, 0.45);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
  animation: region-signal-pulse 8s ease-in-out infinite;
}

.fractal-scene-illustration .region-lights {
  mix-blend-mode: screen;
}

.fractal-scene-illustration .region-spark {
  fill: rgba(188, 240, 255, 0.9);
  stroke: none;
  filter: blur(0.3px);
  transform-box: fill-box;
  transform-origin: center;
  animation: region-spark-twinkle 7s ease-in-out infinite;
}

.fractal-scene-illustration .region-spark:nth-child(2) {
  animation-delay: 1.4s;
}

.fractal-scene-illustration .region-spark:nth-child(3) {
  animation-delay: 2.6s;
}

.fractal-scene-illustration .region-spark:nth-child(4) {
  animation-delay: 3.8s;
}

.fractal-scene-illustration .alliance-halo {
  fill: url(#fractal-alliance-halo);
  opacity: 0.72;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}

.fractal-scene-illustration .alliance-halo--inner {
  fill: none;
  stroke: rgba(138, 190, 255, 0.32);
  stroke-width: 1.6;
  filter: blur(0.6px);
}

.fractal-scene-illustration .alliance-ring {
  fill: none;
  stroke: url(#fractal-alliance-ring);
  stroke-width: 1.8;
  stroke-dasharray: 16 18;
  animation: alliance-ring-glow 16s linear infinite;
}

.fractal-scene-illustration .alliance-ring--mid {
  stroke-dasharray: 12 14;
  animation-duration: 12s;
  animation-direction: reverse;
}

.fractal-scene-illustration .alliance-ring--inner {
  stroke-dasharray: 6 8;
  animation: alliance-ring-pulse 6s ease-in-out infinite;
}

.fractal-scene-illustration .alliance-braid {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.fractal-scene-illustration .alliance-arc {
  fill: none;
  stroke: url(#fractal-alliance-arc);
  stroke-width: 2;
  stroke-dasharray: 12 16;
  animation: alliance-thread-flow 10s linear infinite;
}

.fractal-scene-illustration .alliance-arc--horizontal {
  animation-duration: 12s;
}

.fractal-scene-illustration .alliance-arc--diagonal {
  stroke-dasharray: 10 14;
  animation-duration: 8s;
}

.fractal-scene-illustration .alliance-pillar {
  fill: url(#fractal-alliance-pillar);
  stroke: rgba(190, 225, 255, 0.5);
  stroke-width: 1.6;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.fractal-scene-illustration .alliance-beam {
  fill: none;
  stroke: url(#fractal-alliance-thread);
  stroke-width: 2.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(138, 190, 255, 0.4));
}

.fractal-scene-illustration .alliance-thread {
  fill: none;
  stroke: url(#fractal-alliance-thread);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 16 14;
  animation: alliance-thread-flow 12s ease-in-out infinite;
}

.fractal-scene-illustration .alliance-thread--lower {
  animation-duration: 10s;
  animation-direction: reverse;
}

.fractal-scene-illustration .alliance-core {
  fill: rgba(22, 36, 88, 0.88);
  stroke: rgba(210, 230, 255, 0.55);
  stroke-width: 1.6;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.fractal-scene-illustration .alliance-star {
  fill: url(#fractal-alliance-star);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.8;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.fractal-scene-illustration .alliance-lights {
  mix-blend-mode: screen;
}

.fractal-scene-illustration .alliance-beacon {
  fill: rgba(210, 235, 255, 0.82);
  stroke: none;
  filter: blur(0.3px);
  transform-box: fill-box;
  transform-origin: center;
  animation: alliance-beacon-pulse 9s ease-in-out infinite;
}

.fractal-scene-illustration .alliance-beacon:nth-child(2) {
  animation-delay: 1.6s;
}

.fractal-scene-illustration .alliance-beacon:nth-child(3) {
  animation-delay: 3s;
}

.fractal-scene-illustration .alliance-beacon:nth-child(4) {
  animation-delay: 4.4s;
}

.fractal-scene-illustration .planet-glow {
  fill: url(#fractal-planet-glow);
  stroke: none;
  opacity: 0.85;
}

.fractal-scene-illustration .planet-glow--inner {
  fill: rgba(140, 210, 255, 0.18);
  mix-blend-mode: screen;
  filter: blur(2px);
}

.fractal-scene-illustration .planet-orbit-track {
  fill: none;
  stroke: rgba(140, 200, 255, 0.28);
  stroke-width: 1.6;
  stroke-dasharray: 12 10;
  animation: planet-orbit-track 14s linear infinite;
}

.fractal-scene-illustration .planet-orbit {
  transform-box: fill-box;
  transform-origin: center;
}

.fractal-scene-illustration .planet-moon {
  fill: rgba(220, 245, 255, 0.95);
  stroke: rgba(12, 24, 40, 0.75);
  stroke-width: 1;
  filter: drop-shadow(0 0 6px rgba(180, 220, 255, 0.55));
}

.fractal-scene-illustration .planet-atmosphere {
  fill: url(#fractal-planet-glow);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.fractal-scene-illustration .planet-night {
  stroke: none;
  opacity: 0.78;
  filter: drop-shadow(-8px 6px 16px rgba(0, 0, 0, 0.45));
}

.fractal-scene-illustration .planet-highlight {
  fill: url(#fractal-planet-highlight);
  stroke: none;
  opacity: 0.6;
  mix-blend-mode: screen;
  filter: blur(0.6px);
}

.fractal-scene-illustration .planet-clouds {
  animation: planet-cloud-drift 18s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.fractal-scene-illustration .planet-clouds path {
  fill: rgba(255, 255, 255, 0.22);
  stroke: none;
}

.fractal-scene-illustration .planet-aurora {
  fill: none;
  stroke: url(#fractal-planet-aurora);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.65;
  stroke-dasharray: 18 22;
  stroke-dashoffset: 0;
  animation: planet-aurora-wisp 9s ease-in-out infinite;
}

.fractal-scene-illustration .planet-rings {
  fill: none;
  stroke: url(#fractal-planet-rings);
  stroke-width: 1.6;
  stroke-dasharray: 16 18;
  animation: planet-ring-shimmer 10s ease-in-out infinite;
}

.fractal-scene-illustration .planet-core {
  fill: url(#fractal-planet-core);
  stroke: rgba(180, 220, 255, 0.55);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 12px rgba(140, 200, 255, 0.4));
}

.fractal-scene-illustration .planet-core--inner {
  fill: rgba(255, 255, 255, 0.65);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: planet-core-pulse 6s ease-in-out infinite;
}

.fractal-scene-illustration .federation-halo {
  fill: url(#fractal-federation-halo);
  opacity: 0.75;
  mix-blend-mode: screen;
  filter: blur(0.6px);
}

.fractal-scene-illustration .federation-halo--inner {
  fill: none;
  stroke: rgba(174, 162, 255, 0.36);
  stroke-width: 1.6;
  filter: blur(0.7px);
}

.fractal-scene-illustration .federation-galaxy {
  transform-box: fill-box;
  transform-origin: center;
}

.fractal-scene-illustration .federation-arm {
  fill: none;
  stroke: url(#fractal-federation-arm);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 22 18;
  animation: federation-arm-flow 18s linear infinite;
}

.fractal-scene-illustration .federation-arm--counter {
  animation-direction: reverse;
}

.fractal-scene-illustration .federation-boundary {
  transform-box: fill-box;
  transform-origin: center;
}

.fractal-scene-illustration .federation-border {
  fill: none;
  stroke: url(#fractal-federation-border);
  stroke-width: 1.8;
  stroke-dasharray: 24 14;
  animation: federation-boundary-glow 12s linear infinite;
}

.fractal-scene-illustration .federation-window {
  fill: rgba(160, 152, 255, 0.22);
  stroke: rgba(160, 152, 255, 0.4);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 10px rgba(160, 152, 255, 0.4));
}

.fractal-scene-illustration .federation-node {
  fill: rgba(255, 255, 255, 0.3);
  stroke: rgba(174, 162, 255, 0.52);
  stroke-width: 1.2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.fractal-scene-illustration .federation-node--core {
  fill: rgba(200, 190, 255, 0.35);
}

.fractal-scene-illustration .federation-link {
  fill: none;
  stroke: url(#fractal-federation-link);
  stroke-width: 1.6;
  stroke-dasharray: 10 7;
  animation: federation-link-spark 9s linear infinite;
}

.fractal-scene-illustration .federation-link--cross {
  animation-duration: 11s;
}

.fractal-scene-illustration .federation-core-glow {
  fill: rgba(174, 162, 255, 0.28);
  stroke: none;
  filter: blur(8px);
}

.fractal-scene-illustration .federation-core {
  fill: url(#fractal-federation-core);
  stroke: rgba(210, 205, 255, 0.6);
  stroke-width: 2;
}

.fractal-scene-illustration .federation-core--inner {
  fill: rgba(255, 255, 255, 0.7);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: federation-core-pulse 7s ease-in-out infinite;
}

.fractal-scene-illustration .federation-stars circle {
  fill: rgba(255, 255, 255, 0.6);
  stroke: none;
  animation: federation-star-twinkle 5s ease-in-out infinite;
}

.fractal-scene-illustration .federation-beacons {
  mix-blend-mode: screen;
}

.fractal-scene-illustration .federation-spark {
  fill: rgba(210, 200, 255, 0.85);
  stroke: none;
  filter: blur(0.4px);
  transform-box: fill-box;
  transform-origin: center;
  animation: federation-spark-fade 8s ease-in-out infinite;
}

.fractal-scene-illustration .federation-spark:nth-child(2) {
  animation-delay: 1.8s;
}

.fractal-scene-illustration .federation-spark:nth-child(3) {
  animation-delay: 3.2s;
}

.fractal-scene-illustration .federation-stars circle:nth-child(2) {
  animation-delay: 1.2s;
}

.fractal-scene-illustration .federation-stars circle:nth-child(3) {
  animation-delay: 2.4s;
}

.fractal-scene-illustration .federation-stars circle:nth-child(4) {
  animation-delay: 3.4s;
}

.fractal-scene-label {
  text-align: center;
  text-transform: uppercase;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.fractal-scene-label strong {
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  color: var(--text);
}

.fractal-scene-label span {
  font-size: clamp(0.62rem, 1.8vw, 0.75rem);
  color: var(--muted);
  letter-spacing: 0.1em;
}

.fractal-zoom-controls {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.2rem);
  font-family: var(--sans);
}

.fractal-zoom-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 240, 255, 0.25);
  background: rgba(9, 16, 28, 0.9);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.35s ease, border 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.fractal-zoom-button:hover:not(:disabled),
.fractal-zoom-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(84, 240, 255, 0.5);
  background: rgba(12, 24, 40, 0.95);
  color: var(--accent);
}

.fractal-zoom-button:focus-visible {
  outline: 2px solid rgba(84, 240, 255, 0.55);
  outline-offset: 3px;
}

.fractal-zoom-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.fractal-zoom-slider {
  --fractal-thumb-size: 18px;
  flex: 1;
  display: grid;
  gap: 0.65rem;
  padding-inline: calc(var(--fractal-thumb-size) / 2);
}

.fractal-zoom-slider input[type="range"] {
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(84, 240, 255, 0.6), rgba(140, 168, 255, 0.5));
  position: relative;
  outline: none;
  cursor: pointer;
}

.fractal-zoom-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0b1728;
  border: 2px solid rgba(84, 240, 255, 0.8);
  box-shadow: 0 0 0 6px rgba(84, 240, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fractal-zoom-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0b1728;
  border: 2px solid rgba(84, 240, 255, 0.8);
  box-shadow: 0 0 0 6px rgba(84, 240, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fractal-zoom-slider input[type="range"]:is(:hover, :focus-visible)::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(84, 240, 255, 0.18);
}

.fractal-zoom-slider input[type="range"]:is(:hover, :focus-visible)::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(84, 240, 255, 0.18);
}

.fractal-zoom-track {
  position: relative;
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(159, 180, 204, 0.5);
  height: 2.4rem;
}

.fractal-zoom-track span {
  position: absolute;
  inset: auto auto 0;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: max-content;
  transform: translateX(calc(var(--tick-shift, -50%) * 1%));
  left: calc(var(--tick-position, 0) * 1%);
}

.fractal-zoom-track span::before {
  content: "";
  display: block;
  width: 1px;
  height: 6px;
  background: rgba(84, 240, 255, 0.3);
}

.fractal-zoom-track span:nth-child(1) {
  --tick-position: 0;
  --tick-shift: 0;
  align-items: flex-start;
  text-align: left;
}

.fractal-zoom-track span:nth-child(2) {
  --tick-position: 25;
}

.fractal-zoom-track span:nth-child(3) {
  --tick-position: 50;
}

.fractal-zoom-track span:nth-child(4) {
  --tick-position: 75;
}

.fractal-zoom-track span:nth-child(5) {
  --tick-position: 100;
  --tick-shift: -100;
  align-items: flex-end;
  text-align: right;
}

.fractal-zoom-track span:nth-child(n + 2):nth-child(-n + 4) {
  --tick-shift: -50;
  text-align: center;
}

.fractal-zoom-track span.is-active {
  color: var(--accent);
}

.fractal-zoom-track span.is-active::before {
  height: 10px;
  background: rgba(84, 240, 255, 0.85);
}

.fractal-compatibility-note {
  margin: -0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.fractal-detail-panel {
  position: relative;
  padding: 1.6rem 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(84, 240, 255, 0.16);
  background: linear-gradient(165deg, rgba(12, 20, 34, 0.82), rgba(7, 14, 24, 0.9));
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.32);
  font-family: var(--sans);
  transition: border 0.4s ease, background 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

.fractal-detail-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px solid rgba(84, 240, 255, 0.12);
  pointer-events: none;
}

.fractal-detail-panel[data-state="active"] {
  border-color: rgba(84, 240, 255, 0.28);
  background: linear-gradient(165deg, rgba(18, 32, 48, 0.9), rgba(10, 18, 30, 0.92));
  transform: translateY(-2px);
}

.fractal-detail-subtitle {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(84, 240, 255, 0.65);
  display: block;
  margin-bottom: 0.5rem;
}

.fractal-detail-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.fractal-detail-body {
  color: var(--muted);
  display: grid;
  gap: 0.85rem;
}

.fractal-detail-body p {
  margin: 0;
}

.fractal-detail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fractal-detail-metrics li {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(84, 240, 255, 0.16);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.fractal-tier-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fractal-tier-metrics {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus,
.sr-only:active,
.sr-only *:focus,
.sr-only *:active {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
}

.governance-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes fractal-orbit {
  to {
    transform: rotate(372deg);
  }
}

@keyframes region-track-flow {
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes region-network-weave {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes region-signal-pulse {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }

  50% {
    stroke-dashoffset: -20;
    opacity: 1;
  }
}

@keyframes city-core-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes city-beacon-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.24);
    opacity: 1;
  }
}

@keyframes region-core-ring {
  to {
    stroke-dashoffset: -60;
  }
}

@keyframes region-spark-twinkle {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.35;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.95;
  }
}

@keyframes alliance-beacon-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.38;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.98;
  }
}

@keyframes alliance-ring-glow {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes alliance-ring-pulse {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }

  50% {
    stroke-dashoffset: -32;
    opacity: 1;
  }
}

@keyframes alliance-thread-flow {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes alliance-star-shine {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes planet-orbit-track {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes planet-cloud-drift {
  0% {
    transform: rotate(-6deg) translateX(-2px);
  }

  50% {
    transform: rotate(6deg) translateX(2px);
  }

  100% {
    transform: rotate(-6deg) translateX(-2px);
  }
}

@keyframes planet-ring-shimmer {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }

  50% {
    stroke-dashoffset: -32;
    opacity: 1;
  }
}

@keyframes planet-aurora-wisp {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }

  50% {
    stroke-dashoffset: -26;
    opacity: 0.95;
  }
}

@keyframes planet-core-pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes federation-arm-flow {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes federation-boundary-glow {
  to {
    stroke-dashoffset: -320;
  }
}

@keyframes federation-link-spark {
  to {
    stroke-dashoffset: -140;
  }
}

@keyframes federation-star-twinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes federation-core-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes federation-spark-fade {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fractal-diagram::before,
  .fractal-diagram::after,
  .fractal-diagram .tier,
  .fractal-detail-panel {
    animation: none !important;
    transition: none !important;
  }

  .fractal-diagram::before,
  .fractal-diagram::after {
    display: none;
  }

  .fractal-scene-illustration [class*="city-"],
  .fractal-scene-illustration [class*="region-"],
  .fractal-scene-illustration [class*="alliance-"],
  .fractal-scene-illustration [class*="planet-"],
  .fractal-scene-illustration [class*="federation-"] {
    animation: none !important;
  }

  .fractal-scene-illustration animateTransform,
  .fractal-scene-illustration animateMotion {
    display: none !important;
  }
}

.influence-map {
  margin: 2.4rem 0;
  padding: 1.9rem 2.2rem 2.1rem;
  border-radius: 24px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(12, 28, 46, 0.88) 0%, rgba(6, 14, 24, 0.82) 100%),
    radial-gradient(circle at 18% 12%, rgba(84, 240, 255, 0.16), transparent 62%),
    radial-gradient(circle at 80% 8%, rgba(82, 120, 255, 0.12), transparent 64%);
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
  isolation: isolate;
}

.influence-fallback {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-border-radius);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.08);
  font-family: var(--sans);
  overflow-x: auto;
}

.influence-fallback > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.influence-fallback h5 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

.influence-fallback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.influence-fallback-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.influence-fallback-table th,
.influence-fallback-table td {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(84, 240, 255, 0.12);
  text-align: left;
}

.influence-fallback-table th {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(84, 240, 255, 0.08);
}

.influence-fallback-table tbody tr:nth-child(even) {
  background: rgba(84, 240, 255, 0.04);
}

.influence-map::before {
  content: "";
  position: absolute;
  inset: -30% -40% auto;
  height: 220px;
  background: radial-gradient(circle at 20% 20%, rgba(84, 240, 255, 0.22), transparent 65%);
  animation: influencePulse 9s linear infinite;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.influence-map::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 260px;
  background: radial-gradient(circle at 60% 40%, rgba(98, 120, 255, 0.16), transparent 70%);
  filter: blur(0.4px);
  pointer-events: none;
  z-index: -1;
}

@keyframes influencePulse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
  55% {
    transform: translate3d(8%, 18%, 0) scale(1.14);
    opacity: 0.35;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
}

.influence-active {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.8rem;
  padding: 1rem 1.2rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background: rgba(4, 12, 22, 0.7);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.08);
}

.influence-active-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.influence-active-title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text);
  will-change: opacity, transform;
}

.influence-active-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  will-change: opacity, transform;
}

.influence-map header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.influence-heading {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.influence-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.influence-caption {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.influence-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  min-height: 200px;
  height: clamp(220px, 32vh, 320px);
  position: relative;
  padding-bottom: 2.8rem;
}

.influence-bars::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to top,
    rgba(84, 240, 255, 0.08) 0,
    rgba(84, 240, 255, 0.08) 1px,
    transparent 1px,
    transparent 40px
  );
  pointer-events: none;
  opacity: 0.4;
}

.influence-bar {
  flex: 1;
  position: relative;
  appearance: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, rgba(84, 240, 255, 0.18) 0%, rgba(84, 240, 255, 0.04) 100%);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.45s ease;
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.08);
  cursor: pointer;
}

.influence-bar.is-entering {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.influence-bar.is-exiting {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.influence-bar-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.influence-bar-fill {
  position: relative;
  min-height: 6%;
  height: var(--bar-height, 0%);
  background: linear-gradient(180deg, rgba(84, 240, 255, 0.82) 0%, rgba(84, 240, 255, 0.16) 100%);
  border-radius: 16px 16px 12px 12px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  transition: height 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.influence-bar-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.28), transparent 75%);
  mix-blend-mode: screen;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.influence-bar::after {
  content: attr(data-topic);
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.influence-bar-value {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  bottom: calc(var(--bar-height, 0) * 1% + 0.4rem);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 16, 28, 0.8);
  border: 1px solid rgba(84, 240, 255, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  pointer-events: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, bottom 0.65s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.45s ease;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

.influence-bar.has-baseline .influence-bar-value {
  transform: translate(-50%, 30%);
}

.influence-bar-baseline {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: calc(var(--baseline-height, 0) * 1%);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(84, 240, 255, 0.75) 20%, rgba(84, 240, 255, 0.75) 80%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.influence-bar.is-entering .influence-bar-value,
.influence-bar.is-exiting .influence-bar-value {
  opacity: 0;
}

.influence-bar.is-entering .influence-bar-fill::before,
.influence-bar.is-exiting .influence-bar-fill::before {
  opacity: 0;
}

.influence-bar-baseline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(84, 240, 255, 0.85);
  box-shadow: 0 0 12px rgba(84, 240, 255, 0.65);
}

.influence-bar-baseline::after {
  content: attr(data-label);
  position: absolute;
  top: -1.4rem;
  right: 0;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 190, 220, 0.7);
}

.influence-bar.has-baseline .influence-bar-baseline {
  opacity: 1;
}

.influence-bar-baseline[data-trend="up"]::before {
  background: #54f0ff;
  box-shadow: 0 0 12px rgba(84, 240, 255, 0.75);
}

.influence-bar-baseline[data-trend="down"]::before {
  background: #ff7597;
  box-shadow: 0 0 12px rgba(255, 117, 151, 0.55);
}

.influence-bar.is-active,
.influence-bar:focus-visible {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
  outline: none;
}

.influence-bar.is-active .influence-bar-fill::before,
.influence-bar:focus-visible .influence-bar-fill::before {
  opacity: 1;
}

.influence-bar:focus-visible {
  box-shadow: 0 0 0 2px rgba(84, 240, 255, 0.45), 0 24px 48px rgba(0, 0, 0, 0.35);
}

.influence-legend {
  display: flex;
  justify-content: space-between;
  margin: 0.3rem 0 1.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 190, 220, 0.6);
}

.influence-deltas {
  margin-bottom: 2rem;
  padding: 1.1rem 1.3rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(84, 240, 255, 0.16);
  background: rgba(6, 16, 28, 0.72);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.08);
}

.influence-deltas h5 {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.influence-delta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem 1.1rem;
  will-change: opacity, transform;
}

.influence-delta-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(84, 240, 255, 0.08);
  border-radius: 14px;
  padding: 0.55rem 0.7rem 0.5rem 0.75rem;
  border: 1px solid rgba(84, 240, 255, 0.16);
  animation: influenceDeltaEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--item-index, 0) * 70ms);
  will-change: opacity, transform;
}

@keyframes influenceDeltaEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delta-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.delta-indicator {
  width: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.delta-value-text {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.delta-up {
  color: #54f0ff;
}

.delta-down {
  color: #ff7597;
}

.delta-even {
  color: var(--muted);
}

.influence-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
  align-items: center;
}

.influence-controls button {
  border: 1px solid rgba(84, 240, 255, 0.25);
  background: rgba(84, 240, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.influence-controls button.active,
.influence-controls button:focus-visible {
  background: rgba(84, 240, 255, 0.18);
  border-color: rgba(84, 240, 255, 0.45);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.influence-controls button:hover {
  border-color: rgba(84, 240, 255, 0.45);
  background: rgba(84, 240, 255, 0.14);
}

.influence-controls button[data-utility="true"] {
  border-style: dashed;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0.5rem 1.2rem;
  background: rgba(84, 240, 255, 0.05);
}

.influence-controls button[data-utility="true"].is-running {
  background: rgba(84, 240, 255, 0.22);
  border-color: rgba(84, 240, 255, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  color: var(--bg);
}

.influence-tooltip {
  position: absolute;
  left: var(--tooltip-left, 0px);
  top: var(--tooltip-top, 0px);
  min-width: 160px;
  max-width: 220px;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(84, 240, 255, 0.25);
  background: rgba(6, 16, 28, 0.94);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 5;
}

.influence-tooltip[data-visible="true"] {
  opacity: 1;
}

.influence-tooltip[data-placement="below"] {
  transform: translate(-50%, 12px);
}

.influence-tooltip strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.influence-tooltip span {
  display: block;
  color: var(--muted);
}

@media (max-width: 980px) {
  .influence-map {
    padding: 1.6rem 1.6rem 1.9rem;
  }

  .influence-bars {
    gap: 0.75rem;
    height: clamp(200px, 32vh, 280px);
  }

  .influence-deltas {
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 720px) {
  .influence-map {
    padding: 1.4rem 1.3rem 1.6rem;
  }

  .influence-active {
    padding: 0.85rem 1rem;
  }

  .influence-bars {
    min-height: 180px;
    height: clamp(190px, 38vh, 260px);
  }

  .influence-bar::after {
    bottom: -2rem;
  }

  .influence-legend {
    margin-top: 0.6rem;
  }

  .influence-delta-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .influence-map {
    padding: 1.2rem 1.1rem 1.4rem;
  }

  .influence-bars {
    gap: 0.5rem;
    padding-bottom: 2.4rem;
    height: clamp(180px, 40vh, 240px);
  }

  .influence-bar-value {
    font-size: 0.72rem;
  }

  .influence-controls button[data-utility="true"] {
    flex: 1 1 100%;
  }

  .influence-delta-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .influence-bar,
  .influence-bar-fill,
  .influence-bar-value,
  .influence-bar-baseline,
  .influence-controls button,
  .influence-tooltip,
  .influence-delta-list,
  .influence-delta-list li {
    transition: none !important;
    animation: none !important;
  }
}

.cycle-gauges-heading {
  margin: 3.6rem 0 0.4rem;
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  color: rgba(138, 242, 255, 0.85);
}

.cycle-gauges-intro {
  margin: 0 0 2.4rem;
  max-width: 70ch;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(214, 230, 248, 0.78);
}

.cycle-gauges {
  margin: 3.8rem 0 3.4rem;
  padding: 3.1rem 2.8rem 3.4rem;
  border-radius: 32px;
  border: 1px solid rgba(84, 240, 255, 0.28);
  background:
    radial-gradient(circle at 12% -8%, rgba(84, 240, 255, 0.25), transparent 55%),
    radial-gradient(circle at 88% 0%, rgba(130, 255, 213, 0.18), transparent 62%),
    linear-gradient(155deg, rgba(10, 20, 34, 0.94) 0%, rgba(6, 14, 24, 0.78) 56%, rgba(28, 56, 86, 0.68) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.42);
}

.cycle-gauges::before,
.cycle-gauges::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.cycle-gauges::before {
  background:
    linear-gradient(180deg, rgba(6, 16, 28, 0.85) 0%, rgba(6, 12, 22, 0.1) 26%, rgba(6, 16, 28, 0.65) 100%),
    radial-gradient(circle at 18% 12%, rgba(84, 240, 255, 0.32), transparent 58%),
    radial-gradient(circle at 80% 28%, rgba(130, 255, 213, 0.2), transparent 62%);
}

.cycle-gauges::after {
  background:
    linear-gradient(120deg, rgba(84, 240, 255, 0.08) 0%, transparent 45%, rgba(84, 240, 255, 0.14) 100%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85), transparent 72%);
}

.cycle-gauges::before,
.cycle-gauges::after {
  z-index: 0;
}

.cycle-gauges::marker,
.cycle-gauges *::marker {
  color: var(--accent);
}

.cycle-gauges::selection,
.cycle-gauges *::selection {
  background: rgba(84, 240, 255, 0.35);
  color: var(--bg);
}

.cycle-gauges-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 72ch;
}

.cycle-gauges-status {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(138, 242, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 240, 255, 0.25);
  background: rgba(12, 22, 36, 0.55);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.1);
}

.cycle-gauges-status::before {
  content: "●";
  font-size: 0.7rem;
  color: var(--accent);
  animation: statusPulse 2.4s infinite ease-in-out;
}

.cycle-gauges-titlegroup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.8rem;
}

.cycle-gauges-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(84, 240, 255, 0.16);
  color: var(--glyph);
  border: 1px solid rgba(84, 240, 255, 0.35);
  box-shadow: 0 0 22px rgba(84, 240, 255, 0.28);
}

.cycle-gauges-glyph svg {
  width: 1.8rem;
  height: 1.8rem;
}

.cycle-gauges-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.cycle-gauges-summary {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cycle-gauges-overview {
  position: relative;
  z-index: 1;
  margin: 0.8rem 0 1.4rem;
  padding: 1.2rem 1.35rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(84, 240, 255, 0.16);
  background: rgba(5, 14, 24, 0.72);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
}

.cycle-gauges-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 18%, rgba(84, 240, 255, 0.16), transparent 65%),
    radial-gradient(circle at 82% 0%, rgba(255, 198, 102, 0.12), transparent 68%);
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cycle-overview-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.cycle-overview-card {
  position: relative;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(84, 240, 255, 0.14);
  background: rgba(6, 16, 28, 0.68);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--sans);
  min-height: 120px;
}

.cycle-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.cycle-gauges.is-active .cycle-overview-card::after {
  border-color: rgba(84, 240, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.cycle-overview-card--mini {
  min-height: 0;
  justify-content: center;
}

.cycle-overview-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138, 242, 255, 0.75);
}

.cycle-overview-value {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(228, 241, 255, 0.96);
}

.cycle-overview-card--mini .cycle-overview-value {
  font-size: 1.2rem;
}

.cycle-overview-value strong {
  color: var(--glyph);
  font-weight: 700;
}

.cycle-overview-hint {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(180, 220, 242, 0.7);
}

.cycle-overview-footnote {
  position: relative;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(138, 242, 255, 0.68);
  padding-left: 1.2rem;
}

.cycle-overview-footnote::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(84, 240, 255, 0.8);
  box-shadow: 0 0 12px rgba(84, 240, 255, 0.45);
}

.cycle-gauges[data-cycle-overview-state="empty"] .cycle-overview-value,
.cycle-gauges[data-cycle-overview-state="empty"] .cycle-overview-hint {
  color: rgba(138, 242, 255, 0.6);
}

.cycle-gauges-instructions {
  margin: 0.6rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(180, 220, 242, 0.68);
}

.cycle-gauges-research {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.45rem 1.7rem;
  border-radius: 24px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background: rgba(6, 16, 28, 0.82);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow: hidden;
}

.cycle-gauges-research::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(84, 240, 255, 0.16), transparent 62%);
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cycle-research-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cycle-research-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(138, 242, 255, 0.75);
  font-family: var(--sans);
}

.cycle-research-overview {
  margin: 0;
  color: rgba(214, 230, 248, 0.86);
  font-size: 0.92rem;
  line-height: 1.6;
  font-family: var(--sans);
}

.cycle-research-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.cycle-research-card {
  padding: 1rem 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(84, 240, 255, 0.16);
  background: rgba(4, 12, 22, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.06);
}

.cycle-research-card h5 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138, 242, 255, 0.78);
}

.cycle-research-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(214, 230, 248, 0.82);
}

.cycle-research-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cycle-research-placeholder {
  font-style: italic;
  color: rgba(138, 242, 255, 0.6);
}

.cycle-research-link {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 198, 102, 0.25);
  background: rgba(255, 198, 102, 0.08);
  color: rgba(255, 232, 198, 0.95);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  font-family: var(--sans);
}

.cycle-research-link:hover,
.cycle-research-link:focus-visible {
  border-color: rgba(255, 198, 102, 0.6);
  box-shadow: 0 12px 28px rgba(255, 198, 102, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.cycle-research-link-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cycle-research-link-meta {
  font-size: 0.78rem;
  color: rgba(255, 232, 198, 0.7);
  letter-spacing: 0.04em;
}

.cycle-research-footnote {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(138, 242, 255, 0.68);
}

@media (max-width: 900px) {
  .cycle-gauges {
    padding: 2.4rem 1.8rem 2.8rem;
  }

  .cycle-gauges-heading {
    margin-top: 3rem;
    font-size: 0.9rem;
  }

  .cycle-gauges-intro {
    font-size: 0.9rem;
  }

  .cycle-gauges-overview {
    padding: 1rem 1.1rem 1.2rem;
  }

  .cycle-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .cycle-overview-value {
    font-size: 1.45rem;
  }

  .cycle-overview-card--mini .cycle-overview-value {
    font-size: 1.05rem;
  }

  .cycle-gauges-instructions {
    margin-top: 0.45rem;
  }

  .cycle-gauges-research {
    padding: 1.1rem 1.15rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-research-link {
    transition: none !important;
  }

  .cycle-overview-card::after {
    transition: none !important;
  }
}
.cycle-gauges-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.cycle-gauges-toolbar[role="radiogroup"] {
  column-gap: 0.6rem;
  row-gap: 0.6rem;
}

.cycle-gauge-filter {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 240, 255, 0.25);
  background: rgba(9, 18, 30, 0.55);
  color: rgba(180, 220, 242, 0.8);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cycle-gauge-filter:hover,
.cycle-gauge-filter:focus-visible {
  border-color: rgba(84, 240, 255, 0.45);
  color: var(--glyph);
  box-shadow: 0 0 0 2px rgba(84, 240, 255, 0.18);
  outline: none;
}

.cycle-gauge-filter.is-active {
  background: rgba(84, 240, 255, 0.18);
  color: var(--bg);
  border-color: rgba(84, 240, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.4), 0 6px 20px rgba(84, 240, 255, 0.18);
}

.cycle-gauges-metrics {
  position: relative;
  z-index: 1;
  margin: 2.2rem 0 2.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.cycle-gauge-metric {
  position: relative;
  padding: 1.3rem 1.3rem 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background: rgba(6, 14, 24, 0.82);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cycle-gauge-metric.is-active {
  border-color: rgba(84, 240, 255, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(84, 240, 255, 0.12);
}

.cycle-gauge-metric.is-contextual {
  border-color: rgba(255, 198, 102, 0.55);
  box-shadow: 0 18px 36px rgba(255, 198, 102, 0.18), inset 0 0 0 1px rgba(255, 198, 102, 0.2);
}

.cycle-gauge-metric.is-muted {
  opacity: 0.65;
  filter: saturate(0.75);
}

.cycle-gauge-trigger {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
}

.cycle-gauge-trigger:focus-visible {
  outline: 2px solid rgba(84, 240, 255, 0.6);
  outline-offset: 3px;
}

.cycle-gauge-title {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glyph);
}

.cycle-gauge-description {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cycle-gauge-description strong {
  color: var(--accent);
  font-weight: 600;
}

.cycle-gauge-metric strong {
  color: var(--accent);
  font-weight: 600;
}

.cycle-gauge-meter {
  display: block;
  margin-top: 1.1rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(84, 240, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.cycle-gauge-meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(84, 240, 255, 0.0) 0%, rgba(84, 240, 255, 0.45) 40%, rgba(84, 240, 255, 0.8) 100%);
  opacity: 0.4;
  pointer-events: none;
}

.cycle-gauge-meter-fill {
  display: block;
  position: relative;
  z-index: 1;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(84, 240, 255, 0.65) 0%, rgba(84, 240, 255, 0.95) 100%);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 1.4s ease;
}

.cycle-gauge-meter-fill[data-target-fill="92"] {
  --target-fill: 92%;
}

.cycle-gauge-meter-fill[data-target-fill="100"] {
  --target-fill: 100%;
}

.cycle-gauge-meter-fill[data-target-fill="99.98"] {
  --target-fill: 99.98%;
}

.cycle-gauge-meter-label {
  position: absolute;
  right: 1.3rem;
  top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--glyph);
  text-transform: uppercase;
}

.cycle-gauge-metric.is-active .cycle-gauge-meter-label {
  color: var(--accent);
}

.cycle-gauges.is-active .cycle-gauge-meter-fill {
  width: var(--target-fill, 100%);
  filter: drop-shadow(0 0 12px rgba(84, 240, 255, 0.45));
}

.cycle-gauges .timeline {
  margin: 2.4rem 0 0;
}

.timeline {
  margin: 2.8rem 0;
  padding: 2rem 2.2rem;
  border-radius: 24px;
  border: 1px solid rgba(84, 240, 255, 0.22);
  background: linear-gradient(160deg, rgba(12, 22, 36, 0.88) 0%, rgba(9, 18, 30, 0.66) 55%, rgba(23, 44, 68, 0.55) 100%);
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.35);
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(84, 240, 255, 0.22), transparent 55%);
  opacity: 0.45;
  z-index: -1;
}

.timeline::after {
  background: radial-gradient(circle at bottom right, rgba(84, 240, 255, 0.14), transparent 60%);
  opacity: 0.35;
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 60ch;
}

.timeline-track {
  position: relative;
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.4rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(84, 240, 255, 0), rgba(84, 240, 255, 0.45), rgba(84, 240, 255, 0));
  opacity: 0.7;
}

.timeline-event {
  position: relative;
  padding-left: 3.2rem;
  list-style: none;
}

.timeline-event[hidden] {
  display: none;
}

.timeline-event.is-muted .timeline-card {
  opacity: 0.45;
  filter: saturate(0.65);
}

.timeline-event::before {
  content: attr(data-period);
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 240, 255, 0.45);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--glyph);
  background: radial-gradient(circle, rgba(84, 240, 255, 0.22), rgba(12, 22, 36, 0.9) 70%);
  box-shadow: 0 0 0 0 rgba(84, 240, 255, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: timelinePulse 6s infinite;
  animation-play-state: paused;
}

.timeline-event:hover::before,
.timeline-event:focus-within::before,
.timeline-event.is-open::before {
  border-color: rgba(84, 240, 255, 0.85);
  box-shadow: 0 0 0 6px rgba(84, 240, 255, 0.12), 0 0 20px rgba(84, 240, 255, 0.35);
  animation-play-state: running;
}
.timeline-event.is-related::before {
  border-color: rgba(255, 198, 102, 0.85);
  box-shadow: 0 0 0 6px rgba(255, 198, 102, 0.14), 0 0 24px rgba(255, 198, 102, 0.4);
  animation-play-state: running;
}

.timeline-card {
  width: 100%;
  background: rgba(84, 240, 255, 0.08);
  border-radius: 18px;
  padding: 1.05rem 1.2rem 1.05rem 1.5rem;
  border: 1px solid rgba(84, 240, 255, 0.16);
  color: inherit;
  font: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-event.is-related .timeline-card {
  border-color: rgba(255, 198, 102, 0.6);
  background: rgba(255, 198, 102, 0.12);
  box-shadow: 0 18px 32px rgba(255, 198, 102, 0.2);
}

.timeline-card:hover {
  transform: translateX(4px);
  background: rgba(84, 240, 255, 0.14);
  border-color: rgba(84, 240, 255, 0.45);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
}

.timeline-card:focus-visible {
  outline: none;
  transform: translateX(4px);
  border-color: rgba(84, 240, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(84, 240, 255, 0.3), 0 18px 28px rgba(0, 0, 0, 0.35);
}

.timeline-card[aria-expanded="true"] {
  transform: translateX(4px);
  background: linear-gradient(120deg, rgba(84, 240, 255, 0.2), rgba(12, 22, 36, 0.85));
  border-color: rgba(84, 240, 255, 0.6);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.timeline-card[aria-expanded="true"] .timeline-title {
  color: var(--accent);
}

.timeline-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glyph);
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.timeline-card:hover .timeline-icon,
.timeline-card:focus-visible .timeline-icon,
.timeline-card[aria-expanded="true"] .timeline-icon {
  color: var(--accent);
  opacity: 1;
}

.timeline-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.3s ease;
}

.timeline-card[aria-expanded="true"] .timeline-icon svg {
  transform: rotate(180deg);
}

.timeline-detail {
  display: block;
  border: 1px solid rgba(84, 240, 255, 0.25);
  border-top: none;
  border-radius: 0 0 18px 18px;
  margin-top: 0;
  padding: 1rem 1.2rem 1.3rem 1.5rem;
  background: rgba(5, 12, 20, 0.92);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

html.js-enabled .timeline-detail {
  display: none;
}

html.js-enabled .timeline-event.is-open .timeline-detail {
  display: block;
}

.timeline-detail p {
  margin: 0;
}

.timeline-points {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.timeline-points li {
  color: var(--text);
}

.cycle-gauges-detail {
  position: relative;
  z-index: 1;
  margin-top: 2.6rem;
  padding: 1.8rem 2rem;
  border-radius: 22px;
  border: 1px solid rgba(84, 240, 255, 0.22);
  background: rgba(9, 18, 30, 0.72);
  font-family: var(--sans);
  box-shadow: inset 0 0 0 1px rgba(84, 240, 255, 0.08);
}

.cycle-gauges-detail[hidden] {
  display: none;
}

.cycle-gauges-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.cycle-gauges-detail-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--glyph);
}

.cycle-gauges-detail-metric {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(84, 240, 255, 0.6);
}

.cycle-gauges-detail-body {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.cycle-gauges-detail-body ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.cycle-gauges-detail-body li::marker {
  color: rgba(84, 240, 255, 0.65);
}

@media (max-width: 720px) {
  .cycle-gauges {
    padding: 2.4rem 1.6rem 2.8rem;
  }

  .cycle-gauges-metrics {
    margin: 1.8rem 0 2.3rem;
    gap: 1rem;
  }

  .cycle-gauges-toolbar {
    gap: 0.5rem;
  }

  .cycle-gauge-meter-label {
    top: 1.3rem;
  }

  .cycle-gauges-detail {
    padding: 1.5rem 1.4rem;
  }

  .timeline {
    padding: 1.6rem 1.4rem;
  }

  .timeline-track::before {
    left: 1.1rem;
  }

  .timeline-event {
    padding-left: 2.7rem;
  }

  .timeline-event::before {
    width: 2rem;
    height: 2rem;
    top: 1rem;
  }

  .timeline-card {
    padding: 0.95rem 1rem 0.95rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-gauge-meter-fill {
    transition: none !important;
  }

  .timeline-card,
  .timeline-icon svg,
  .timeline-event::before {
    transition: none !important;
    animation: none !important;
  }
}

@keyframes timelinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(84, 240, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(84, 240, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(84, 240, 255, 0.3);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.lineage-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.2rem;
}

.lineage-cell {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(84, 240, 255, 0.18);
  background: rgba(12, 22, 36, 0.7);
  font-family: var(--sans);
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact-link {
  color: #0ff;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .governance-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .governance-nav {
    position: relative;
    top: 0;
    max-height: none;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .governance-nav.collapsed .nav-structure {
    display: none;
  }
}

.critique-section {
  margin-top: 4rem;
}

.critique-intro {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 2rem;
}

.critique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.critique-card {
  position: relative;
  padding: 1.75rem;
  background: var(--card-gradient);
  border: 1px solid rgba(84, 240, 255, 0.18);
  border-radius: var(--card-border-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.critique-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(84, 240, 255, 0.12) 0%, rgba(84, 240, 255, 0) 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.critique-card:hover {
  transform: translateY(-6px);
  border-color: rgba(84, 240, 255, 0.4);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
}

.critique-card:hover::before {
  opacity: 1;
}

.critique-title {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.critique-response {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.critique-reference {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(138, 242, 255, 0.75);
  text-transform: uppercase;
}

.critique-reference span {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--accent);
}

.critique-reflection {
  margin-top: 3.5rem;
  padding: 2.25rem;
  background: var(--surface-strong);
  border-radius: calc(var(--card-border-radius) + 4px);
  border: 1px solid rgba(84, 240, 255, 0.12);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.critique-reflection p {
  margin: 0 0 1.5rem;
}

.critique-reflection p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .critique-card {
    padding: 1.4rem;
  }

  .critique-grid {
    gap: 1.25rem;
  }

  .critique-reflection {
    padding: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .global-progress,
  .section-progress {
    box-shadow: none;
  }

  .global-progress-fill,
  .section-progress-fill {
    transition: none !important;
    box-shadow: none;
  }

  .global-progress-value,
  .section-progress-counter {
    text-shadow: none;
  }

  .influence-map::before {
    animation: none;
  }
}
