:root {
  --console-bg: #05070b;
  --console-panel: #0f151d;
  --console-panel-2: #161e27;
  --console-channel: #030406;
  --console-border: rgba(145, 184, 206, 0.16);
  --console-shadow: rgba(0, 0, 0, 0.42);
  --console-text: #eef5fd;
  --console-muted: rgba(238, 245, 253, 0.68);
  --console-cyan: #9fd4e2;
  --console-gold: #d8a35a;
  --console-red: #c7837b;
  --console-sand: #dac68c;
  --console-green: #82b398;
  --console-pink: #cfadab;
}

.bridge-shell {
  padding-bottom: 6rem;
}

.bridge-panel {
  display: grid;
  gap: 1.15rem;
}

.bridge-head p {
  max-width: 72ch;
}

.bridge-hero h1 {
  max-width: none;
  margin-bottom: 1.25rem;
}

.entry-stack {
  display: grid;
  gap: 1rem;
}

.entry-card {
  padding: 1.35rem 1.45rem;
  border-radius: 24px;
  border: 1px solid rgba(152, 204, 229, 0.14);
  background:
    linear-gradient(170deg, rgba(16, 28, 40, 0.9), rgba(7, 12, 20, 0.96)),
    linear-gradient(135deg, rgba(105, 205, 252, 0.05), rgba(239, 179, 109, 0.04));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.entry-card h2,
.bridge-head h2,
.console-header h3,
.detail-header h3,
.example-story-card h3 {
  font-family: "Cinzel", Georgia, serif;
}

.entry-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

.entry-question {
  margin: 0 0 0.85rem;
  color: var(--console-text);
  font-size: 1.12rem;
  line-height: 1.6;
}

.bridge-console {
  display: grid;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

.console-frame {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  border-radius: 34px;
  border: 1px solid var(--console-border);
  background:
    linear-gradient(180deg, rgba(13, 18, 26, 0.98), rgba(6, 9, 14, 1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 40%);
  box-shadow: 0 28px 58px var(--console-shadow);
}

.console-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 26%, transparent 74%, rgba(159, 212, 226, 0.035));
  pointer-events: none;
}

.console-rail {
  display: grid;
  grid-template-columns: 1.5fr 0.72fr 0.48fr 1.08fr 1.1fr;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
}

.rail-block {
  display: block;
  min-height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.rail-problem {
  background: linear-gradient(180deg, rgba(207, 173, 171, 0.98), rgba(183, 145, 145, 0.9));
}

.rail-core {
  background: linear-gradient(180deg, rgba(159, 212, 226, 0.98), rgba(123, 175, 194, 0.9));
}

.rail-highlight {
  background: linear-gradient(180deg, rgba(218, 198, 140, 1), rgba(204, 169, 87, 0.92));
}

.rail-doc {
  background: linear-gradient(180deg, rgba(130, 179, 152, 1), rgba(98, 148, 121, 0.92));
}

.phase-readout,
.command-detail-panel,
.example-story-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}

.phase-readout,
.command-detail-panel {
  border: 1px solid rgba(145, 184, 206, 0.12);
  background:
    linear-gradient(180deg, rgba(16, 22, 30, 0.94), rgba(8, 11, 16, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%);
}

.phase-readout::before,
.command-detail-panel::before,
.example-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%, transparent 72%, rgba(159, 212, 226, 0.03));
  pointer-events: none;
}

.console-header,
.detail-header,
.story-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.console-header h3,
.detail-header h3,
.example-story-card h3 {
  margin: 0.25rem 0 0;
}

.detail-copy,
.story-hook {
  color: var(--console-muted);
  line-height: 1.6;
}

.focus-label,
.detail-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.focus-label {
  color: var(--console-gold);
}

.detail-label {
  color: var(--console-cyan);
}

.helm-console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 1rem;
  align-items: stretch;
}

.helm-stage {
  display: grid;
  place-items: center;
  padding: 1rem 0.7rem;
  border-radius: 26px;
  border: 1px solid rgba(145, 184, 206, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 26, 35, 0.94), rgba(8, 11, 16, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%);
}

.helm-shell {
  position: relative;
  width: min(33rem, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 34px;
  background:
    radial-gradient(circle at center, rgba(22, 34, 45, 0.94) 0 25%, rgba(8, 12, 17, 0.98) 25% 100%);
  box-shadow:
    inset 0 0 0 14px var(--console-channel),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 44px rgba(0, 0, 0, 0.28);
}

.helm-shell::before,
.helm-shell::after {
  content: "";
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.helm-shell::before {
  width: 36%;
  height: 36%;
  border: 12px solid var(--console-channel);
}

.helm-shell::after {
  width: 62%;
  height: 62%;
  border: 8px solid rgba(255, 255, 255, 0.03);
}

.phase-helm {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.helm-core {
  position: absolute;
  inset: 50%;
  width: 34%;
  height: 34%;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(25, 38, 50, 0.92), rgba(10, 14, 19, 0.98));
  box-shadow:
    inset 0 0 0 12px var(--console-channel),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.helm-core-title,
.helm-core-sub {
  position: relative;
  z-index: 1;
}

.helm-core-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--console-text);
}

.helm-core-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--console-muted);
}

.phase-node {
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
  transform-origin: center;
  opacity: 0.8;
}

.phase-node path {
  stroke: var(--console-channel);
  stroke-width: 18;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.phase-node text {
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: #15191f;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.phase-node.accent-problem path {
  fill: var(--console-red);
}

.phase-node.accent-core path {
  fill: var(--console-sand);
}

.phase-node.accent-documentation path {
  fill: var(--console-green);
}

.phase-node.is-active {
  opacity: 1;
}

.phase-node.is-active path {
  filter: brightness(1.12) drop-shadow(0 0 12px rgba(159, 212, 226, 0.18));
}

.phase-node.is-complete path {
  filter: brightness(0.98) saturate(0.92);
}

.phase-node:hover,
.phase-node:focus {
  opacity: 1;
  transform: scale(1.016);
}

.phase-node:hover path,
.phase-node:focus path {
  filter: brightness(1.08);
}

.phase-readout,
.command-detail-panel {
  padding: 1.1rem 1.2rem 1.25rem 1.9rem;
}

.phase-readout {
  min-height: 100%;
}

.phase-readout::after,
.command-detail-panel::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  bottom: 1rem;
  width: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(216, 163, 90, 0.95), rgba(159, 212, 226, 0.8));
}

.detail-status,
.meta-pill,
.legend-chip,
.command-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--console-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-status.status-active,
.legend-chip.state-active {
  border-color: rgba(159, 212, 226, 0.32);
  background: rgba(159, 212, 226, 0.14);
  color: var(--console-text);
}

.detail-status.status-complete,
.legend-chip.state-complete {
  border-color: rgba(130, 179, 152, 0.36);
  background: rgba(130, 179, 152, 0.15);
  color: #d4f1e1;
}

.legend-chip.state-hover {
  border-color: rgba(216, 163, 90, 0.34);
  background: rgba(216, 163, 90, 0.14);
  color: #f2d3a1;
}

.legend-chip.state-golden,
.meta-pill-golden,
.command-pill-golden {
  border-color: rgba(242, 191, 88, 0.78);
  background: rgba(244, 193, 82, 0.28);
  color: #ffe8b6;
  box-shadow: 0 0 18px rgba(236, 181, 67, 0.22);
}

.detail-question {
  margin: 0.85rem 0 0.65rem;
  color: var(--console-text);
  font-size: 1.08rem;
  line-height: 1.55;
}

.detail-header-simple {
  justify-content: flex-start;
  align-items: center;
}

.detail-header-simple h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

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

.detail-card,
.example-card {
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.86), rgba(9, 13, 18, 0.96));
}

.detail-card .detail-copy,
.story-block .detail-copy {
  margin: 0.4rem 0 0;
}

.detail-actions,
.state-legend,
.command-meta,
.story-route {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.state-legend {
  margin-top: 1rem;
}

.bridge-button {
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 163, 90, 0.4);
  background: rgba(216, 163, 90, 0.12);
  color: #f0d3a4;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.bridge-button:hover,
.bridge-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(216, 163, 90, 0.18);
  border-color: rgba(216, 163, 90, 0.58);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.1rem 1.2rem 1.25rem 1.9rem;
  border-radius: inherit;
  border: none;
  background:
    linear-gradient(180deg, rgba(16, 22, 30, 0.98), rgba(8, 11, 16, 0.99)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%);
  box-shadow: none;
  overflow: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
  z-index: 3;
}

.preview-overlay::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  bottom: 1rem;
  width: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(216, 163, 90, 0.95), rgba(159, 212, 226, 0.8));
}

.preview-overlay > * {
  position: relative;
  z-index: 1;
}

.preview-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preview-overlay h3 {
  margin: 0;
}

.command-bank {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.6rem, 1fr));
  gap: 0.45rem;
  padding: 0.15rem 0 0;
}

.command-bank-extension {
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.command-bank-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.1rem;
}

.command-bank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.legend-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(145, 184, 206, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.88), rgba(9, 13, 18, 0.96));
  color: var(--console-text);
}

.legend-entry-filter {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 10.5rem;
}

.legend-entry-label {
  color: rgba(238, 245, 253, 0.58);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legend-entry-value {
  color: var(--console-text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-entry-copy {
  display: grid;
  gap: 0.12rem;
  line-height: 1.2;
}

.legend-entry-copy strong {
  color: var(--console-text);
  font-size: 0.8rem;
}

.legend-entry-copy span {
  color: var(--console-muted);
  font-size: 0.75rem;
}

.legend-swatch {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

.legend-swatch-golden {
  background:
    linear-gradient(180deg, rgba(214, 196, 139, 0.98), rgba(186, 160, 88, 0.92));
  box-shadow:
    inset 0 0 0 2px rgba(249, 202, 95, 0.92),
    0 0 10px rgba(239, 186, 71, 0.18);
}

.legend-swatch-cyan {
  background:
    linear-gradient(180deg, rgba(159, 212, 226, 0.98), rgba(130, 185, 205, 0.92));
  box-shadow: inset 0 0 0 2px rgba(159, 212, 226, 0.32);
}

.command-visibility-toggle {
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(159, 212, 226, 0.24);
  background: rgba(159, 212, 226, 0.08);
  color: var(--console-text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.command-visibility-toggle:hover,
.command-visibility-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(159, 212, 226, 0.42);
  background: rgba(159, 212, 226, 0.14);
}

.command-key {
  position: relative;
  min-height: 2.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(214, 196, 139, 0.98), rgba(186, 160, 88, 0.92));
  color: #171d22;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.08;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  opacity: 0.8;
}

.command-key.is-extension {
  background:
    linear-gradient(180deg, rgba(159, 212, 226, 0.78), rgba(113, 160, 177, 0.88));
  border-color: rgba(159, 212, 226, 0.18);
  color: #142028;
  opacity: 0.92;
}

.command-key.is-extension::before {
  border-color: rgba(9, 18, 24, 0.14);
}

.command-key::before {
  content: "";
  position: absolute;
  inset: 0.2rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.command-key.state-problem {
  background: linear-gradient(180deg, rgba(207, 173, 171, 0.98), rgba(186, 139, 139, 0.92));
}

.command-key.state-core {
  background: linear-gradient(180deg, rgba(159, 212, 226, 0.98), rgba(130, 185, 205, 0.92));
}

.command-key.state-doc {
  background: linear-gradient(180deg, rgba(130, 179, 152, 0.98), rgba(102, 154, 127, 0.92));
}

.command-key.is-golden {
  box-shadow:
    inset 0 0 0 2px rgba(249, 202, 95, 0.96),
    0 0 0 1px rgba(255, 232, 171, 0.28),
    0 0 24px rgba(239, 186, 71, 0.32);
  filter: saturate(1.14) brightness(1.08);
}

.command-key.is-golden::before {
  border-color: rgba(255, 232, 171, 0.36);
}

.command-key.is-proposed {
  border-color: rgba(159, 212, 226, 0.38);
  box-shadow: inset 0 0 0 2px rgba(159, 212, 226, 0.22);
}

.command-key.is-proposed::before {
  border-color: rgba(159, 212, 226, 0.24);
}

.command-key.is-active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.26),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.command-key.is-complete {
  opacity: 0.96;
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 2px rgba(130, 179, 152, 0.45);
}

.command-key:hover,
.command-key:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.command-key.is-golden:hover,
.command-key.is-golden:focus-visible,
.command-key.is-golden.is-active {
  box-shadow:
    inset 0 0 0 2px rgba(252, 211, 109, 1),
    0 0 0 1px rgba(255, 238, 188, 0.36),
    0 0 30px rgba(242, 190, 80, 0.48);
}

.command-key.is-golden.is-proposed {
  box-shadow:
    inset 0 0 0 2px rgba(252, 211, 109, 1),
    0 0 0 1px rgba(255, 238, 188, 0.34),
    0 0 28px rgba(242, 190, 80, 0.42);
}

.command-detail-panel {
  margin-top: 0.15rem;
}

.command-extension-panel {
  margin-top: 0.45rem;
  padding: 1rem 1.2rem 1.05rem 1.9rem;
  border-radius: 24px;
  border: 1px solid rgba(145, 184, 206, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 22, 31, 0.94), rgba(7, 11, 16, 0.98)),
    linear-gradient(135deg, rgba(159, 212, 226, 0.04), rgba(216, 163, 90, 0.03));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.command-extension-panel .detail-copy {
  margin: 0.65rem 0 0;
}

.golden-path-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.2rem 1.05rem 1.9rem;
  border-radius: 24px;
  border: 1px solid rgba(216, 163, 90, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 19, 14, 0.94), rgba(10, 10, 8, 0.98)),
    linear-gradient(135deg, rgba(255, 231, 170, 0.05), transparent 44%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 228, 156, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(216, 163, 90, 0.1);
}

.golden-path-panel::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  bottom: 1rem;
  width: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 194, 92, 0.98), rgba(216, 163, 90, 0.76));
}

.golden-path-panel > * {
  position: relative;
  z-index: 1;
}

.golden-path-route {
  margin-top: 0.85rem;
}

.golden-path-route .meta-pill {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.golden-path-route .meta-pill.is-active-route {
  transform: translateY(-1px);
  border-color: rgba(255, 242, 207, 0.92);
  background: rgba(249, 207, 114, 0.42);
  color: #fff4d2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 207, 0.22),
    0 0 26px rgba(244, 193, 82, 0.36);
}

.golden-path-route .meta-pill.is-route-complete {
  border-color: rgba(173, 222, 194, 0.48);
}

.technical-block {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.86), rgba(9, 13, 18, 0.96));
}

.technical-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.technical-label {
  margin: 0;
  color: rgba(238, 245, 253, 0.62);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.technical-value {
  margin: 0;
  color: rgba(238, 245, 253, 0.82);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-line;
}

@keyframes readoutFade {
  from {
    opacity: 0.38;
    transform: translateY(4px);
  }

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

.phase-readout.is-refreshing > :not(.preview-overlay),
.preview-overlay.is-refreshing > *,
.command-bank.is-refreshing > *,
.command-detail-panel.is-refreshing > *,
.golden-path-panel.is-refreshing > * {
  animation: readoutFade 240ms ease;
}

.command-meta {
  margin-top: 0.85rem;
}

.examples-panel {
  margin-top: 1rem;
}

.examples-grid,
.example-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.example-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--console-text);
}

.example-card p {
  margin: 0;
  color: var(--console-muted);
}

.example-story-card {
  padding: 1.25rem;
  background:
    linear-gradient(170deg, rgba(17, 26, 37, 0.94), rgba(8, 11, 16, 0.98)),
    linear-gradient(135deg, rgba(159, 212, 226, 0.04), rgba(216, 163, 90, 0.04));
}

.story-hook {
  margin: 0 0 1rem;
  color: var(--console-text);
}

.story-block + .story-block {
  margin-top: 0.9rem;
}

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

.bridge-content-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(145, 184, 206, 0.14);
  background:
    linear-gradient(170deg, rgba(17, 26, 37, 0.94), rgba(8, 11, 16, 0.98)),
    linear-gradient(135deg, rgba(159, 212, 226, 0.04), rgba(216, 163, 90, 0.04));
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.bridge-content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 30%, transparent 72%, rgba(159, 212, 226, 0.03));
  pointer-events: none;
}

.bridge-content-card > * {
  position: relative;
  z-index: 1;
}

.bridge-content-card h3 {
  margin: 0.2rem 0 0.75rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.08rem;
}

.bridge-content-card p {
  margin: 0;
  color: var(--console-muted);
  line-height: 1.6;
}

.bridge-content-card code {
  color: var(--console-text);
}

.bridge-content-card p + p,
.artifact-list,
.companion-note {
  margin-top: 0.8rem;
}

.concept-list,
.artifact-list {
  display: grid;
  gap: 0.55rem;
}

.concept-line strong,
.artifact-line strong,
.companion-note strong {
  color: var(--console-text);
}

.artifact-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 163, 90, 0.34);
  background: rgba(216, 163, 90, 0.14);
  color: #f3d7aa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-topline .artifact-status {
  margin-top: 0;
}

.coauthor-summary-grid {
  margin-bottom: 0.15rem;
}

.coauthor-flow-board,
.coauthor-lifecycle-board {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(145, 184, 206, 0.14);
  background:
    linear-gradient(170deg, rgba(14, 22, 31, 0.96), rgba(7, 11, 16, 0.98)),
    linear-gradient(135deg, rgba(159, 212, 226, 0.04), rgba(216, 163, 90, 0.05));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.24);
}

.coauthor-flow-board::before,
.coauthor-lifecycle-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 30%, transparent 72%, rgba(159, 212, 226, 0.03));
  pointer-events: none;
}

.coauthor-flow-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coauthor-lifecycle-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coauthor-step,
.coauthor-phase,
.coauthor-command {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.88), rgba(9, 13, 18, 0.96));
}

.coauthor-step-role,
.coauthor-phase-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--console-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-coordinator .coauthor-step-role {
  background: rgba(216, 163, 90, 0.16);
  border-color: rgba(216, 163, 90, 0.34);
  color: #f1d2a0;
}

.role-contributor .coauthor-step-role {
  background: rgba(159, 212, 226, 0.16);
  border-color: rgba(159, 212, 226, 0.34);
  color: #d7f2fb;
}

.role-synthesizer .coauthor-step-role {
  background: rgba(130, 179, 152, 0.16);
  border-color: rgba(130, 179, 152, 0.34);
  color: #d7f1e2;
}

.role-archivar .coauthor-step-role {
  background: rgba(207, 173, 171, 0.16);
  border-color: rgba(207, 173, 171, 0.34);
  color: #f3d6d3;
}

.coauthor-phase-status {
  background: rgba(216, 163, 90, 0.14);
  border-color: rgba(216, 163, 90, 0.28);
  color: #f3d7aa;
}

.coauthor-step h3,
.coauthor-phase h3,
.coauthor-command code {
  margin: 0;
}

.coauthor-step h3,
.coauthor-phase h3 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1rem;
}

.coauthor-step p,
.coauthor-phase p,
.coauthor-command p {
  margin: 0.55rem 0 0;
  color: var(--console-muted);
  line-height: 1.6;
}

.coauthor-board-note {
  margin-top: 0.85rem;
}

.coauthor-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.coauthor-command-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.coauthor-command code {
  display: block;
  color: var(--console-text);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.88rem;
}

@media (max-width: 1060px) {
  .helm-console-layout {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .technical-row,
  .examples-grid,
  .example-story-grid,
  .bridge-content-grid,
  .coauthor-flow-board,
  .coauthor-lifecycle-board,
  .coauthor-prompt-grid {
    grid-template-columns: 1fr;
  }

  .command-bank-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .command-bank {
    grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr));
  }

  .phase-readout,
  .command-detail-panel,
  .example-story-card {
    padding: 1rem;
  }

  .phase-readout,
  .command-detail-panel {
    padding-left: 1.8rem;
  }

  .helm-shell {
    width: min(24rem, 100%);
  }
}
