:root {
  --bg: #100c0b;
  --bg-deep: #070505;
  --bg-soft: #1a1312;
  --panel: rgba(19, 14, 14, 0.82);
  --panel-strong: rgba(26, 18, 17, 0.94);
  --panel-glow: rgba(249, 182, 95, 0.12);
  --line: rgba(216, 171, 118, 0.18);
  --line-strong: rgba(243, 185, 103, 0.34);
  --text: #f6eee4;
  --muted: #d1bda9;
  --accent: #d7863f;
  --accent-strong: #f3bf74;
  --accent-alt: #c6573b;
  --good: #9ee2b0;
  --warn: #f7d585;
  --bad: #ffad9e;
  --paper: #f3e5ce;
  --paper-line: rgba(141, 92, 44, 0.2);
  --ink: #2f1f13;
  --ink-soft: #5f4736;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.3);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(199, 71, 42, 0.18), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(245, 186, 105, 0.16), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(116, 44, 24, 0.22), transparent 28%),
    linear-gradient(180deg, #070505 0%, #120d0c 38%, #0a0808 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.03), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(255, 215, 162, 0.05), transparent 10%),
    radial-gradient(circle at 72% 24%, rgba(255, 199, 111, 0.04), transparent 12%),
    linear-gradient(rgba(214, 171, 104, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 171, 104, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 120px 120px, 120px 120px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  opacity: 0.6;
}

body.mission-app {
  background:
    radial-gradient(circle at 18% 14%, rgba(124, 46, 30, 0.22), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(236, 140, 67, 0.16), transparent 18%),
    linear-gradient(180deg, #0a0707 0%, #110d0d 38%, #0b0909 100%);
}

body.page-kind-planet {
  background:
    radial-gradient(circle at 15% 14%, rgba(80, 115, 99, 0.24), transparent 20%),
    radial-gradient(circle at 82% 10%, rgba(241, 176, 105, 0.16), transparent 18%),
    linear-gradient(180deg, #080807 0%, #111211 42%, #0a0909 100%);
}

body.page-kind-character {
  background:
    radial-gradient(circle at 18% 14%, rgba(146, 84, 61, 0.28), transparent 20%),
    radial-gradient(circle at 82% 10%, rgba(255, 195, 129, 0.14), transparent 18%),
    linear-gradient(180deg, #090b12 0%, #131019 42%, #090b12 100%);
}

body.page-kind-people,
body.page-kind-group,
body.page-kind-fauna {
  background:
    radial-gradient(circle at 18% 14%, rgba(105, 145, 87, 0.25), transparent 20%),
    radial-gradient(circle at 82% 10%, rgba(234, 175, 104, 0.12), transparent 18%),
    linear-gradient(180deg, #080b11 0%, #10151a 42%, #090c11 100%);
}

body.page-kind-artifact,
body.page-kind-concept {
  background:
    radial-gradient(circle at 18% 14%, rgba(102, 78, 40, 0.3), transparent 20%),
    radial-gradient(circle at 82% 10%, rgba(237, 140, 67, 0.14), transparent 18%),
    linear-gradient(180deg, #090705 0%, #120e0b 42%, #090705 100%);
}

.shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.shell-atlas {
  width: min(1320px, calc(100vw - 32px));
}

.brand-masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 12px 4px 0;
}

.brand-masthead-compact {
  margin-bottom: 14px;
}

.brand-overline {
  margin: 0 0 8px;
  color: rgba(243, 191, 116, 0.84);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-lockup-has-wordmark {
  gap: 16px;
}

.brand-wordmark {
  display: block;
  max-width: min(320px, 42vw);
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 225, 183, 0.75))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.brand-lockup-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(243, 191, 116, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 229, 169, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(110, 50, 27, 0.92), rgba(39, 22, 16, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 248, 235, 0.16);
  color: #fff1dc;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-lockup-text {
  display: grid;
  gap: 3px;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-family: "Baskerville Old Face", "Garamond", "Palatino Linotype", serif;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: rgba(230, 209, 188, 0.74);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-aside {
  max-width: 30rem;
  margin: 0;
  color: rgba(224, 204, 180, 0.8);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: right;
}

.brand-aside-stack {
  display: grid;
  gap: 10px;
}

.brand-aside-stack p {
  margin: 0;
}

.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.masthead-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(248, 205, 133, 0.16);
  border-radius: 999px;
  color: rgba(245, 232, 219, 0.9);
  background: rgba(8, 12, 20, 0.42);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.masthead-link:hover,
.masthead-link:focus-visible {
  color: #fff6ea;
  border-color: rgba(245, 200, 124, 0.32);
  background: rgba(64, 36, 31, 0.44);
  transform: translateY(-1px);
}

.masthead-link-featured {
  border-color: rgba(245, 200, 124, 0.28);
  background:
    linear-gradient(135deg, rgba(225, 154, 82, 0.22), rgba(167, 74, 45, 0.22)),
    rgba(16, 12, 18, 0.68);
  color: #fff4e6;
  box-shadow: 0 10px 24px rgba(122, 53, 34, 0.18);
}

.masthead-link-featured:hover,
.masthead-link-featured:focus-visible {
  border-color: rgba(245, 200, 124, 0.42);
  background:
    linear-gradient(135deg, rgba(225, 154, 82, 0.3), rgba(167, 74, 45, 0.3)),
    rgba(22, 15, 20, 0.76);
  box-shadow: 0 14px 30px rgba(122, 53, 34, 0.24);
}

.brand-lockup-has-wordmark .brand-title {
  font-size: 1rem;
  letter-spacing: 0.24em;
}

.brand-lockup-has-wordmark .brand-subtitle {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
}

.brand-intake-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.brand-intake-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intake-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(18, 13, 12, 0.42);
}

.intake-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 196, 127, 0.08);
  border-radius: 14px;
  pointer-events: none;
}

.intake-card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.25;
}

.intake-list {
  margin-top: 10px;
}

.intake-note {
  margin-top: 16px;
}

.panel,
.hero-copy,
.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(25, 18, 17, 0.96), rgba(13, 10, 10, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before,
.hero-copy::before,
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at top right, rgba(243, 191, 116, 0.08), transparent 24%);
  pointer-events: none;
}

.panel::after,
.hero-copy::after,
.hero-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(214, 171, 104, 0.08);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.panel {
  padding: 26px;
}

.panel-hero {
  padding: 0;
}

.panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.hero,
.grid,
.review-grid,
.wiki-grid,
.page-layout,
.atlas-band-grid,
.atlas-support-grid {
  display: grid;
  gap: 22px;
}

.hero {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

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

.hero-copy,
.hero-card {
  padding: 30px;
}

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 520px;
}

.atlas-hero-copy,
.page-cinematic-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 38px;
}

.atlas-hero-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(175, 91, 52, 0.26), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(243, 191, 116, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(30, 20, 18, 0.94), rgba(16, 12, 12, 0.98));
}

.atlas-hero-art,
.page-cinematic-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.atlas-hero-art::before,
.page-cinematic-art::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(248, 222, 180, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(44, 27, 20, 0.5),
    0 0 0 1px rgba(9, 7, 7, 0.6);
  pointer-events: none;
}

.atlas-hero-art::after,
.page-cinematic-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 10, 10, 0.14), rgba(13, 10, 10, 0.74)),
    linear-gradient(180deg, rgba(13, 10, 10, 0.04), rgba(13, 10, 10, 0.26));
}

.page-cinematic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  min-height: 500px;
}

.page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(175, 91, 52, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(26, 19, 18, 0.94), rgba(14, 11, 11, 0.98));
}

.page-kind-character .page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(155, 88, 59, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(24, 14, 16, 0.93), rgba(13, 12, 20, 0.96));
}

.page-kind-planet .page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(97, 137, 110, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(15, 20, 18, 0.93), rgba(10, 14, 13, 0.96));
}

.page-kind-people .page-cinematic-copy,
.page-kind-group .page-cinematic-copy,
.page-kind-fauna .page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 138, 79, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(14, 21, 18, 0.93), rgba(10, 14, 15, 0.96));
}

.page-kind-artifact .page-cinematic-copy,
.page-kind-concept .page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(122, 94, 44, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(21, 17, 13, 0.93), rgba(12, 10, 9, 0.96));
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
}

.hero-art-band {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid rgba(244, 198, 131, 0.16);
  border-bottom: 1px solid rgba(244, 198, 131, 0.16);
  background: rgba(19, 15, 14, 0.48);
  backdrop-filter: blur(8px);
}

.hero-art-band-center {
  bottom: 24%;
}

.hero-art-band-page {
  left: 10%;
  right: 10%;
  bottom: 14%;
}

.hero-band-wordmark {
  display: block;
  max-width: min(620px, 78%);
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 226, 185, 0.8))
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.32));
}

.hero-band-title {
  display: block;
  color: #f1c27b;
  font-family: "Baskerville Old Face", "Palatino Linotype", serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-indent: 0.26em;
  text-shadow: 0 0 18px rgba(241, 194, 123, 0.2);
}

.hero-band-subtitle {
  display: block;
  color: rgba(241, 226, 204, 0.84);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-image-fallback {
  background:
    radial-gradient(circle at 50% 50%, rgba(243, 191, 116, 0.18), transparent 26%),
    radial-gradient(circle at 50% 55%, rgba(198, 87, 59, 0.16), transparent 20%),
    linear-gradient(180deg, #271913 0%, #110d0c 100%);
}

.hero-art-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(18, 13, 12, 0.8);
  backdrop-filter: blur(10px);
}

.hero-art-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-art-note {
  display: block;
  margin-top: 8px;
  color: rgba(232, 218, 200, 0.82);
  line-height: 1.55;
}

.hero-metrics,
.page-stat-grid,
.bridge-strip,
.planet-dossier,
.character-dossier {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.dossier-item,
.bridge-chip {
  position: relative;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(18, 13, 12, 0.5);
}

.metric-card-link {
  display: block;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.metric-card-link:hover,
.metric-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(237, 140, 67, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

.metric-value,
.hero-stat {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1;
  font-weight: 700;
  color: #fff7ee;
}

.metric-label,
.dossier-label,
.bridge-label,
.hero-stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dossier-item strong,
.bridge-chip strong {
  color: #f9efe3;
  font-size: 1.02rem;
}

.atlas-band-grid {
  margin-top: 22px;
}

.atlas-band {
  padding-top: 28px;
}

.atlas-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.atlas-card-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atlas-card {
  position: relative;
  display: grid;
  grid-template-rows: 210px minmax(0, 1fr);
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(17, 12, 11, 0.46);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.atlas-card:hover,
.featured-card:hover,
.list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 140, 67, 0.26);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.atlas-card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 40%, rgba(243, 191, 116, 0.18), transparent 22%),
    linear-gradient(180deg, #2c1c17 0%, #130f0e 100%);
}

.atlas-card-art-placeholder {
  display: block;
}

.atlas-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.atlas-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.atlas-card-summary {
  color: #d6e0eb;
  line-height: 1.6;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.featured-grid-single {
  grid-template-columns: 1fr;
}

.featured-card,
.list-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(14, 11, 10, 0.4);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.list-block {
  display: grid;
  gap: 12px;
}

.atlas-list-item {
  gap: 10px;
}

.wiki-grid,
.review-grid,
.atlas-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.console-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.wiki-landing-grid {
  align-items: start;
}

.explorer-panel,
.filter-panel,
.updates-panel {
  margin-top: 22px;
}

.filter-form,
.atlas-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(220px, 0.65fr)) auto;
  gap: 16px;
  align-items: end;
}

.atlas-filter-form-public {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.7fr) auto;
}

.atlas-filter-form {
  padding: 20px;
  border: 1px solid rgba(237, 140, 67, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(243, 191, 116, 0.08), transparent 28%),
    rgba(17, 12, 11, 0.46);
}

.atlas-search-panel {
  position: sticky;
  top: 14px;
  z-index: 24;
  backdrop-filter: blur(16px);
  transition: box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.atlas-search-panel .panel-head,
.atlas-search-panel .atlas-filter-form,
.atlas-search-panel .item-meta,
.atlas-search-panel .field span,
.atlas-search-panel .primary-btn,
.atlas-search-panel .secondary-btn {
  transition: opacity 160ms ease, transform 160ms ease, padding 160ms ease, gap 160ms ease, font-size 160ms ease;
}

.atlas-search-panel.is-condensed {
  border-color: rgba(237, 140, 67, 0.24);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(237, 140, 67, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 14, 14, 0.96), rgba(14, 11, 11, 0.98)),
    rgba(16, 12, 11, 0.94);
}

.atlas-search-panel.is-condensed .panel-head {
  margin-bottom: 10px;
}

.atlas-search-panel.is-condensed .panel-head .item-meta {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
}

.atlas-search-panel.is-condensed .atlas-filter-form {
  padding: 16px 18px;
  gap: 12px;
}

.atlas-search-panel.is-condensed input[type="text"],
.atlas-search-panel.is-condensed select {
  padding-top: 12px;
  padding-bottom: 12px;
}

.atlas-search-panel.is-condensed .primary-btn,
.atlas-search-panel.is-condensed .secondary-btn {
  padding: 12px 16px;
}

.compact-field {
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #f2dfcb;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field small,
.item-meta,
.item-path,
.empty,
.hero-substat,
.hero-path,
.lede,
.review-summary,
.plain-list,
textarea,
input,
button,
select {
  font-size: 0.98rem;
  line-height: 1.6;
}

.item-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.1;
}

.item-title {
  font-size: 1.08rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero-kicker {
  margin: 0;
  color: rgba(243, 191, 116, 0.72);
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-invocation {
  max-width: 42rem;
  margin: -4px 0 0;
  color: rgba(234, 216, 196, 0.76);
  font-style: italic;
  line-height: 1.7;
}

.lede {
  max-width: 42rem;
  margin: 0;
  color: #e8d8c8;
  font-size: 1.08rem;
}

.item-meta,
.item-path,
.empty,
.field small,
.hero-substat,
.hero-path {
  margin: 0;
  color: var(--muted);
}

.item-summary,
.review-summary {
  margin: 0;
  color: var(--text);
}

.muted-block {
  margin-top: 2px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row-utility .secondary-btn {
  padding: 10px 14px;
}

.filter-actions,
.review-action-row {
  margin-top: 0;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.primary-btn {
  border: 0;
  color: #fff8f2;
  background: linear-gradient(135deg, #e19a52 0%, #a74a2d 100%);
  box-shadow: 0 16px 34px rgba(167, 74, 45, 0.34);
}

.primary-btn.is-active-nav {
  box-shadow:
    0 16px 34px rgba(167, 74, 45, 0.24),
    0 0 0 1px rgba(246, 200, 122, 0.26);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(20, 14, 13, 0.5);
}

.danger-btn {
  border: 1px solid rgba(255, 173, 158, 0.28);
  color: #fff4f0;
  background: rgba(104, 29, 29, 0.66);
}

.inline-link,
.wiki-link,
.footnote-back,
.citation-mark a {
  color: var(--accent-strong);
  text-decoration: none;
}

.list-link:hover,
.secondary-btn:hover,
.inline-link:hover,
.primary-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled,
.progress-action-pill:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  filter: none;
  box-shadow: none;
}

input[type="text"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: var(--text);
  background: rgba(14, 10, 10, 0.56);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input[type="file"] {
  padding: 12px 14px;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(237, 140, 67, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: #f6e8d9;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.codex-prompt {
  min-height: 320px;
  font-family: Consolas, "Courier New", monospace;
}

.mini-meta,
.wiki-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.mini-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.76rem;
  text-transform: lowercase;
}

.mini-chip-neutral,
.meta-chip-neutral {
  color: var(--muted);
  background: rgba(11, 9, 8, 0.52);
}

.mini-chip-canon-backed,
.meta-chip-canon-backed {
  color: var(--good);
  background: rgba(40, 81, 51, 0.4);
  border-color: rgba(158, 226, 176, 0.26);
}

.mini-chip-mixed,
.meta-chip-mixed {
  color: var(--warn);
  background: rgba(89, 66, 28, 0.42);
  border-color: rgba(247, 213, 133, 0.24);
}

.mini-chip-note-derived,
.meta-chip-note-derived {
  color: #f0a98e;
  background: rgba(80, 33, 24, 0.42);
  border-color: rgba(198, 92, 62, 0.28);
}

.mini-chip-draft,
.mini-chip-review,
.mini-chip-rejected,
.meta-chip-draft,
.meta-chip-review,
.meta-chip-rejected {
  color: #d8c3ba;
  background: rgba(69, 44, 39, 0.54);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 12, 11, 0.76);
}

.flash-success {
  color: var(--good);
  border-color: rgba(158, 226, 176, 0.24);
}

.flash-warning {
  color: var(--warn);
  border-color: rgba(247, 213, 133, 0.24);
}

.flash-error {
  color: var(--bad);
  border-color: rgba(255, 173, 158, 0.24);
}

.flash-info {
  color: var(--accent-strong);
  border-color: rgba(237, 140, 67, 0.24);
}

.page-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.48fr);
  align-items: start;
  margin-top: 22px;
}

.wiki-page {
  max-width: 100%;
  padding: 34px 40px 32px;
  border-color: rgba(134, 97, 61, 0.28);
  background:
    linear-gradient(180deg, rgba(246, 234, 211, 0.985), rgba(236, 218, 191, 0.985)),
    linear-gradient(180deg, rgba(102, 60, 35, 0.09), rgba(102, 60, 35, 0.02));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(124, 84, 50, 0.05);
}

.wiki-page::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  pointer-events: none;
}

.wiki-content,
.wiki-footnotes {
  position: relative;
  z-index: 1;
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4,
.wiki-content h5,
.wiki-content h6,
.wiki-footnotes h2 {
  color: var(--ink);
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4,
.wiki-content h5,
.wiki-content h6 {
  margin: 24px 0 12px;
}

.wiki-content h2 {
  padding-top: 12px;
  border-top: 1px solid rgba(128, 86, 48, 0.14);
}

.wiki-content h3 {
  color: #5f3f28;
}

.wiki-content p,
.wiki-content li,
.wiki-footnotes li,
.footnote-entry {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.86;
}

.wiki-content strong {
  color: var(--ink);
}

.wiki-content ul,
.wiki-footnotes ol,
.plain-list {
  padding-left: 20px;
}

.wiki-footnotes ol {
  padding-left: 0;
  list-style: none;
}

.footnote-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.wiki-link {
  color: #8a4b20;
  border-bottom: 1px solid rgba(138, 75, 32, 0.2);
}

.wiki-link:hover {
  color: #653212;
}

.wiki-content pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid rgba(128, 86, 48, 0.16);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(126, 90, 58, 0.08);
}

.wiki-rule {
  border: 0;
  border-top: 1px solid rgba(128, 86, 48, 0.14);
  margin: 22px 0;
}

.wiki-footnotes {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(128, 86, 48, 0.16);
}

.wiki-footnotes li,
.footnote-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.footnote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  color: var(--ink);
  font-weight: 700;
}

.footnote-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.8rem;
  border-radius: 999px;
  background: rgba(210, 138, 70, 0.14);
  color: #8a4b20;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.footnote-back:hover {
  background: rgba(210, 138, 70, 0.24);
  color: #653212;
}

.citation-mark {
  margin-left: 0.18rem;
  vertical-align: super;
  font-size: 0.8em;
}

.citation-mark,
.citation-mark a {
  scroll-margin-top: 9rem;
}

.citation-mark a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  padding: 0.08em 0.34em;
  border-radius: 999px;
  background: rgba(210, 138, 70, 0.18);
  color: #9a541f;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.citation-mark a:hover {
  background: rgba(210, 138, 70, 0.28);
  color: #6f3712;
}

.side-rail {
  display: grid;
  gap: 16px;
}

.side-panel {
  position: sticky;
  top: 18px;
}

.subdued-panel {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(20, 15, 14, 0.92), rgba(13, 10, 10, 0.94)),
    rgba(15, 11, 11, 0.88);
}

.subdued-panel h2 {
  font-size: 1.05rem;
  color: #f6eadf;
}

.compact-item {
  gap: 6px;
  padding: 12px 14px;
}

.page-outline {
  display: grid;
  gap: 8px;
}

.outline-link {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 8, 8, 0.24);
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.outline-level-3 {
  margin-left: 12px;
}

.outline-link.is-active,
.outline-link:hover {
  color: #fff2e2;
  border-color: rgba(237, 140, 67, 0.22);
  background: rgba(72, 36, 22, 0.34);
}

.review-card form {
  margin: 0;
}

.review-card {
  align-content: start;
}

.plain-list {
  margin: 0;
  color: var(--muted);
}

.plain-list li {
  margin-bottom: 10px;
}

.empty {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .atlas-hero,
  .page-cinematic-hero,
  .page-layout,
  .grid,
  .wiki-grid,
  .review-grid,
  .atlas-support-grid,
  .console-grid {
    grid-template-columns: 1fr;
  }

  .atlas-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-intake-grid,
  .brand-intake-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-form,
  .atlas-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .atlas-filter-form-public {
    grid-template-columns: 1fr 1fr;
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .side-panel {
    position: static;
  }

  .progress-drawer {
    width: min(920px, calc(100vw - 16px));
  }

  .progress-drawer-toolbar {
    grid-template-columns: 1fr;
  }

  .progress-group-grid {
    grid-template-columns: 1fr;
  }

  .progress-strip {
    grid-template-columns: 1fr;
  }

  .progress-strip-controls {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .brand-masthead {
    align-items: start;
    flex-direction: column;
  }

  .brand-aside {
    text-align: left;
  }

  .masthead-nav {
    justify-content: flex-start;
  }

  .brand-wordmark {
    max-width: min(260px, 70vw);
    max-height: 48px;
  }

  .hero-art-band,
  .hero-art-band-center,
  .hero-art-band-page {
    left: 6%;
    right: 6%;
    bottom: 18%;
    padding: 12px 16px;
  }

  .hero-band-wordmark {
    max-width: 84%;
    max-height: 54px;
  }

  .hero-band-title {
    font-size: clamp(1.3rem, 7vw, 2.3rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .hero-band-subtitle {
    font-size: 0.64rem;
    letter-spacing: 0.22em;
  }

  .shell,
  .shell-atlas {
    width: min(100vw - 16px, 1320px);
    padding-top: 14px;
  }

  .panel,
  .hero-copy,
  .hero-card,
  .wiki-page {
    padding: 18px;
  }

  .atlas-hero-copy,
  .page-cinematic-copy {
    padding: 22px;
  }

  .hero-metrics,
  .page-stat-grid,
  .bridge-strip,
  .planet-dossier,
  .character-dossier,
  .brand-intake-grid,
  .brand-intake-grid-compact,
  .atlas-card-grid,
  .atlas-card-grid-compact,
  .featured-grid,
  .wiki-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .atlas-card {
    grid-template-rows: 180px minmax(0, 1fr);
  }

  .filter-form,
  .atlas-filter-form {
    grid-template-columns: 1fr;
  }

  .atlas-filter-form-public {
    grid-template-columns: 1fr;
  }

  .progress-drawer {
    width: 100vw;
    padding: 18px;
  }

  .progress-drawer-head {
    flex-direction: column;
  }

  .progress-drawer-close {
    width: 100%;
  }

  .progress-tab-list {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 4px;
  }

  .progress-tab {
    flex: 0 0 auto;
  }

  .progress-group-list {
    max-height: 220px;
  }

  .progress-strip {
    gap: 14px;
  }

  .atlas-search-panel {
    position: static;
  }

  .atlas-search-panel.is-condensed .panel-head .item-meta {
    opacity: 1;
    max-height: none;
    overflow: visible;
    transform: none;
  }

  .button-row .primary-btn,
  .button-row .secondary-btn,
  .button-row .danger-btn {
    width: 100%;
  }

  .wiki-page::after {
    inset: 10px;
  }
}

/* Phantom Epoch brand-alignment overrides */

:root {
  --bg: #050812;
  --bg-deep: #02040a;
  --bg-soft: #0b1220;
  --panel: rgba(8, 11, 18, 0.84);
  --panel-strong: rgba(10, 14, 24, 0.94);
  --panel-glow: rgba(239, 176, 93, 0.1);
  --line: rgba(212, 162, 94, 0.22);
  --line-strong: rgba(246, 190, 111, 0.42);
  --text: #f4eee5;
  --muted: #cbbda9;
  --accent: #d48a46;
  --accent-strong: #f2c57a;
  --accent-alt: #c95f4d;
  --paper: #efe2cb;
  --paper-line: rgba(127, 86, 44, 0.22);
  --ink: #2f2319;
  --ink-soft: #5f4b3a;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 14% 18%, rgba(124, 80, 213, 0.22), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(218, 74, 96, 0.16), transparent 20%),
    radial-gradient(circle at 52% 82%, rgba(241, 118, 64, 0.14), transparent 26%),
    linear-gradient(180deg, #03050d 0%, #070b13 40%, #05070f 100%);
}

body::before {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.08), transparent 8%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.07), transparent 7%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(rgba(212, 162, 94, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 162, 94, 0.02) 1px, transparent 1px);
  background-size: auto, auto, auto, 120px 120px, 120px 120px;
  opacity: 0.75;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 52%, rgba(1, 2, 5, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 4, 9, 0.16), rgba(3, 4, 9, 0.04));
}

body.mission-app {
  background:
    radial-gradient(circle at 16% 16%, rgba(128, 75, 166, 0.18), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(219, 98, 70, 0.14), transparent 18%),
    linear-gradient(180deg, #05070d 0%, #090d15 48%, #060810 100%);
}

body.page-kind-planet,
body.display-style-planet {
  background:
    radial-gradient(circle at 16% 16%, rgba(96, 170, 189, 0.18), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(182, 109, 220, 0.16), transparent 18%),
    linear-gradient(180deg, #040814 0%, #09111c 46%, #060b14 100%);
}

body.page-kind-character,
body.display-style-character {
  background:
    radial-gradient(circle at 16% 16%, rgba(182, 68, 92, 0.18), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(104, 175, 223, 0.14), transparent 18%),
    linear-gradient(180deg, #06070f 0%, #0b0f17 46%, #070811 100%);
}

body.display-style-dossier,
body.page-kind-people,
body.page-kind-group,
body.page-kind-fauna,
body.page-kind-artifact,
body.page-kind-concept {
  background:
    radial-gradient(circle at 16% 16%, rgba(118, 90, 34, 0.18), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(124, 92, 184, 0.14), transparent 18%),
    linear-gradient(180deg, #05070d 0%, #0a0f17 46%, #060810 100%);
}

.shell,
.shell-atlas {
  padding-top: 20px;
}

.brand-masthead {
  position: relative;
  margin-bottom: 24px;
  padding: 16px 8px 18px;
  border-bottom: 1px solid rgba(210, 166, 96, 0.18);
}

.brand-masthead::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 196, 118, 0.45), transparent);
}

.masthead-ornament {
  display: block;
  width: min(420px, 48vw);
  height: 16px;
  margin-top: 10px;
  object-fit: contain;
  opacity: 0.42;
  filter: drop-shadow(0 0 8px rgba(246, 197, 122, 0.16));
}

.brand-overline,
.eyebrow,
.hero-kicker,
.hero-band-subtitle,
.brand-subtitle,
.metric-label,
.dossier-label,
.bridge-label,
.hero-stat-label {
  letter-spacing: 0.24em;
}

.brand-wordmark {
  max-width: min(420px, 48vw);
  max-height: 72px;
  filter:
    drop-shadow(0 0 2px rgba(255, 230, 186, 0.84))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.34));
}

.panel,
.hero-copy,
.hero-card {
  border-color: rgba(208, 160, 96, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(10, 14, 24, 0.96), rgba(7, 10, 18, 0.96));
}

.panel::before,
.hero-copy::before,
.hero-card::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 44%),
    radial-gradient(circle at top right, rgba(242, 197, 122, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(150, 82, 214, 0.06), transparent 22%);
}

.panel::after,
.hero-copy::after,
.hero-card::after {
  inset: 10px;
  border-radius: calc(var(--radius-lg) - 10px);
  border-color: rgba(214, 171, 104, 0.12);
}

.atlas-hero,
.page-cinematic-hero {
  min-height: 560px;
}

.atlas-hero-copy,
.page-cinematic-copy {
  gap: 20px;
  padding: 42px;
}

.atlas-hero-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(146, 89, 220, 0.18), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(244, 145, 94, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(12, 16, 27, 0.96), rgba(8, 11, 19, 0.98));
}

.page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(154, 98, 219, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(92, 174, 214, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(12, 15, 25, 0.96), rgba(9, 12, 20, 0.98));
}

.display-style-character .page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 84, 108, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(94, 170, 220, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(12, 14, 22, 0.96), rgba(8, 10, 18, 0.98));
}

.display-style-dossier .page-cinematic-copy {
  background:
    radial-gradient(circle at 0% 0%, rgba(182, 122, 58, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(139, 90, 201, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(12, 14, 22, 0.96), rgba(8, 10, 18, 0.98));
}

.atlas-hero-art::before,
.page-cinematic-art::before {
  inset: 12px;
  border-color: rgba(246, 201, 122, 0.28);
}

.atlas-hero-art::after,
.page-cinematic-art::after {
  background:
    linear-gradient(90deg, rgba(7, 10, 17, 0.14), rgba(7, 10, 17, 0.68)),
    linear-gradient(180deg, rgba(7, 10, 17, 0.04), rgba(7, 10, 17, 0.32));
}

.hero-image {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.hero-art-band {
  left: 8%;
  right: 8%;
  bottom: 14%;
  gap: 12px;
  padding: 18px 28px;
  border: 1px solid rgba(245, 200, 124, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 14, 24, 0.78), rgba(10, 14, 24, 0.6)),
    rgba(10, 14, 24, 0.6);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.hero-band-wordmark {
  max-height: 92px;
}

.hero-band-title {
  letter-spacing: 0.3em;
}

.hero-band-subtitle {
  padding: 6px 16px;
  border: 1px solid rgba(245, 200, 124, 0.22);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.42);
}

.hero-art-caption {
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-color: rgba(247, 204, 130, 0.18);
  background: rgba(8, 12, 20, 0.76);
}

.atlas-hero-compact {
  min-height: 460px;
}

.atlas-hero-compact .atlas-hero-copy {
  gap: 16px;
  padding: 34px;
}

.atlas-hero-compact h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
}

.atlas-hero-compact .hero-metrics {
  gap: 10px;
}

.atlas-hero-compact .metric-card {
  padding: 12px 14px;
}

.atlas-hero-compact .hero-art-band {
  bottom: 10%;
}

.metric-card,
.dossier-item,
.bridge-chip,
.featured-card,
.list-item,
.atlas-card,
.intake-card {
  border-color: rgba(215, 170, 103, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 12, 20, 0.52);
}

.metric-card::before,
.dossier-item::before,
.bridge-chip::before,
.featured-card::before,
.list-item::before,
.atlas-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 48%);
}

.atlas-card,
.featured-card,
.list-item {
  overflow: hidden;
}

.atlas-card-title,
.item-title {
  color: #f5ebdd;
}

.atlas-card-summary,
.item-summary,
.review-summary,
.brand-aside,
.item-meta,
.item-path,
.hero-invocation,
.lede {
  color: rgba(230, 219, 205, 0.84);
}

.primary-btn {
  background: linear-gradient(135deg, #f0b55f 0%, #a4493b 100%);
  box-shadow: 0 18px 36px rgba(161, 73, 59, 0.34);
}

.secondary-btn {
  border-color: rgba(248, 205, 133, 0.18);
  background: rgba(8, 12, 20, 0.64);
}

.wiki-page {
  padding: 34px 42px 36px;
  border-color: rgba(132, 98, 61, 0.32);
  background:
    linear-gradient(180deg, rgba(244, 232, 210, 0.985), rgba(234, 218, 192, 0.985)),
    linear-gradient(180deg, rgba(88, 63, 42, 0.08), rgba(88, 63, 42, 0.02));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 0 0 1px rgba(126, 88, 56, 0.08);
}

.wiki-page::after {
  inset: 12px;
  border-radius: 18px;
}

.wiki-content h2 {
  position: relative;
  padding-top: 16px;
  border-top-color: rgba(126, 88, 46, 0.18);
}

.wiki-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 1px;
  background: rgba(126, 88, 46, 0.56);
}

.wiki-content p,
.wiki-content li,
.wiki-footnotes li,
.footnote-entry {
  line-height: 1.9;
}

.wiki-content blockquote,
.wiki-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(128, 86, 48, 0.18);
  border-left: 3px solid rgba(192, 132, 62, 0.8);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(130, 95, 61, 0.08), rgba(130, 95, 61, 0.03)),
    rgba(255, 248, 238, 0.28);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.wiki-callout ul {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}

.wiki-callout li {
  margin: 0;
  color: var(--ink);
  font-style: italic;
}

.wiki-spoiler {
  margin: 22px 0;
  border: 1px solid rgba(128, 86, 48, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(124, 92, 62, 0.08), rgba(124, 92, 62, 0.03)),
    rgba(255, 248, 238, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.wiki-spoiler summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 700;
}

.wiki-spoiler summary::-webkit-details-marker {
  display: none;
}

.spoiler-summary-badge,
.spoiler-summary-meta {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(128, 86, 48, 0.18);
  background: rgba(255, 248, 238, 0.46);
  color: #70411e;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spoiler-summary-label {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.spoiler-body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(128, 86, 48, 0.14);
}

.spoiler-body > :first-child {
  margin-top: 18px;
}

.wiki-spoiler-auto-open {
  border-color: rgba(192, 132, 62, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(192, 132, 62, 0.08);
}

.side-rail {
  gap: 18px;
}

.progress-panel {
  position: static;
  top: auto;
}

.progress-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.progress-strip-head {
  margin-bottom: 10px;
}

.progress-strip-kicker {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(237, 140, 67, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(216, 137, 71, 0.18), rgba(126, 55, 35, 0.14)),
    rgba(30, 18, 16, 0.56);
  color: #ffd9b4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-strip-copy {
  min-width: 0;
}

.progress-strip-explainer {
  margin: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 11, 18, 0.28);
  overflow: hidden;
}

.progress-strip-explainer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  color: #f2dfcb;
  font-weight: 700;
}

.progress-strip-explainer summary::-webkit-details-marker {
  display: none;
}

.progress-strip-explainer summary::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1;
}

.progress-strip-explainer[open] summary::after {
  content: "\2212";
}

.progress-strip-explainer-body {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-strip-explainer-body p {
  margin: 0;
}

.progress-strip-controls {
  display: grid;
  justify-items: end;
}

.progress-summary {
  margin-bottom: 12px;
}

.progress-family-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.progress-summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.38);
  color: #f1e4d5;
  font-size: 0.8rem;
}

.progress-summary-chip.is-empty {
  color: var(--muted);
  background: rgba(7, 10, 18, 0.2);
}

.progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.progress-drawer-open {
  overflow: hidden;
}

.progress-drawer-shell[hidden],
.progress-tab-panel[hidden] {
  display: none !important;
}

.progress-drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 96;
}

.progress-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 5, 13, 0.66);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.progress-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 18px;
  width: min(1040px, calc(100vw - 24px));
  height: 100%;
  padding: 24px;
  border-left: 1px solid rgba(246, 201, 122, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(7, 10, 18, 0.98)),
    rgba(7, 10, 18, 0.98);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.progress-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.progress-drawer-copy {
  display: grid;
  gap: 8px;
}

.progress-drawer-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress-drawer-head h2 {
  color: #fff2e2;
}

.progress-drawer-close {
  flex-shrink: 0;
}

.progress-drawer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 16px;
  align-items: end;
}

.progress-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.36);
  color: #f1e4d5;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.progress-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(237, 140, 67, 0.24);
  background: rgba(44, 24, 20, 0.4);
}

.progress-tab.is-active {
  border-color: rgba(237, 140, 67, 0.34);
  background:
    linear-gradient(135deg, rgba(216, 137, 71, 0.22), rgba(126, 55, 35, 0.24)),
    rgba(27, 18, 18, 0.56);
  color: #fff6ed;
}

.progress-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 7, 12, 0.34);
  color: var(--muted);
  font-size: 0.76rem;
}

.progress-search-field {
  margin: 0;
}

.progress-search-field span {
  color: #f2dfcb;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.progress-drawer-summary {
  margin: 0;
}

.progress-drawer-body {
  min-height: 0;
  overflow: auto;
}

.progress-tab-panel {
  min-height: 0;
}

.progress-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  overflow: visible;
  padding-right: 4px;
  align-content: start;
  align-items: start;
}

.progress-group-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 12, 18, 0.82);
}

.progress-group-head {
  display: grid;
  gap: 12px;
}

.progress-group-title {
  display: grid;
  gap: 4px;
}

.progress-group-title h3 {
  font-size: 1rem;
  color: #fff2e2;
}

.progress-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.progress-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.34);
  color: #f1e4d5;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.progress-action-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(237, 140, 67, 0.24);
  background: rgba(45, 24, 19, 0.44);
}

.progress-group-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.progress-option {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 10, 18, 0.28);
  color: #f1e4d5;
}

.progress-option-text {
  display: block;
  line-height: 1.45;
}

.progress-option input {
  width: auto;
  margin: 3px 0 0;
}

.subdued-panel {
  border: 1px solid rgba(215, 170, 103, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 14, 24, 0.95), rgba(7, 10, 18, 0.96)),
    rgba(10, 14, 24, 0.9);
}

.outline-link {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 18, 0.3);
}

.outline-link.is-active,
.outline-link:hover {
  background: rgba(81, 44, 34, 0.36);
}

.mission-app .masthead-link {
  background: rgba(8, 12, 20, 0.56);
}

.mission-app .hero-copy,
.mission-app .hero-card,
.mission-app .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(12, 15, 24, 0.94), rgba(9, 12, 18, 0.96));
}

.codex-prompt {
  border-color: rgba(248, 205, 133, 0.18);
  background: rgba(6, 10, 17, 0.76);
}

@media (max-width: 1100px) {
  .masthead-ornament {
    width: min(320px, 68vw);
  }

  .atlas-hero,
  .page-cinematic-hero {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .masthead-ornament {
    width: min(240px, 72vw);
  }

  .atlas-hero-copy,
  .page-cinematic-copy {
    padding: 24px;
  }

  .hero-art-band {
    bottom: 12%;
    padding: 14px 18px;
  }

  .wiki-page {
    padding: 20px;
  }
}

@media (max-width: 1200px), (max-height: 760px) {
  .progress-drawer-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .progress-group-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) {
  .progress-drawer {
    gap: 14px;
    padding: 18px;
    overflow: auto;
  }

  .progress-drawer-head {
    gap: 12px;
  }

  .progress-drawer-body {
    overflow: visible;
  }

  .progress-group-list {
    max-height: none;
  }
}

.progress-inline-link {
  display: inline-flex;
  margin-top: 2px;
}

.progress-flow-link {
  margin-top: 6px;
  width: fit-content;
}

.mission-flow-surface .progress-strip {
  margin-bottom: 18px;
}

.mission-flow-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.mission-flow-shell {
  display: grid;
  gap: 22px;
}

.mission-flow-meta-grid,
.mission-flow-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mission-flow-callout,
.mission-flow-legend-group,
.mission-flow-detail {
  border: 1px solid rgba(245, 200, 124, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(7, 10, 18, 0.72);
}

.mission-flow-callout,
.mission-flow-legend-group {
  padding: 18px 20px;
}

.mission-flow-callout h2 {
  margin-bottom: 8px;
}

.mission-flow-callout-disclaimer {
  background:
    radial-gradient(circle at top left, rgba(242, 197, 122, 0.1), transparent 34%),
    rgba(7, 10, 18, 0.74);
}

.mission-flow-legend-group {
  display: grid;
  gap: 10px;
}

.mission-flow-legend-title {
  color: #fff2e2;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mission-flow-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mission-flow-legend-chip,
.mission-flow-legend-line,
.mission-flow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 200, 124, 0.14);
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.58);
  color: #f4e8d9;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-flow-legend-chip.is-main {
  background: rgba(47, 82, 129, 0.48);
  border-color: rgba(130, 181, 244, 0.28);
}

.mission-flow-legend-chip.is-shared {
  background: rgba(82, 58, 126, 0.48);
  border-color: rgba(178, 150, 236, 0.28);
}

.mission-flow-legend-chip.is-side {
  background: rgba(42, 87, 54, 0.48);
  border-color: rgba(147, 212, 153, 0.24);
}

.mission-flow-legend-chip.is-class {
  background: rgba(108, 58, 41, 0.5);
  border-color: rgba(239, 162, 122, 0.24);
}

.mission-flow-legend-line::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 0;
  margin-right: 10px;
  border-top: 2px solid rgba(245, 200, 124, 0.5);
}

.mission-flow-legend-line.is-main::before {
  border-top-style: solid;
}

.mission-flow-legend-line.is-possible::before {
  border-top-style: dashed;
}

.mission-flow-legend-line.is-choice::before {
  border-top-style: dashed;
  border-top-color: rgba(183, 156, 240, 0.58);
}

.mission-flow-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.78fr);
  gap: 20px;
  align-items: start;
}

.mission-flow-map {
  position: relative;
  display: grid;
  gap: 24px;
}

.mission-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.mission-flow-edge {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.82;
}

.mission-flow-edge-main {
  stroke: rgba(124, 178, 244, 0.52);
}

.mission-flow-edge-possible {
  stroke: rgba(245, 200, 124, 0.44);
  stroke-dasharray: 8 8;
}

.mission-flow-edge-choice_branch {
  stroke: rgba(183, 156, 240, 0.5);
  stroke-dasharray: 11 9;
}

.mission-flow-chapter,
.mission-flow-lane {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(245, 200, 124, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(7, 10, 18, 0.48);
}

.mission-flow-chapter-setup {
  background:
    radial-gradient(circle at top left, rgba(106, 146, 209, 0.14), transparent 35%),
    rgba(7, 10, 18, 0.5);
}

.mission-flow-chapter-arcs {
  background:
    radial-gradient(circle at top left, rgba(76, 124, 94, 0.14), transparent 36%),
    rgba(7, 10, 18, 0.48);
}

.mission-flow-chapter-convergence {
  background:
    radial-gradient(circle at top left, rgba(160, 109, 78, 0.14), transparent 34%),
    rgba(7, 10, 18, 0.5);
}

.mission-flow-chapter-head {
  display: grid;
  gap: 8px;
}

.mission-flow-chapter-head h2,
.mission-flow-lane-copy h3,
.mission-flow-detail h2 {
  margin: 0;
}

.mission-flow-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
}

.mission-flow-spotlight {
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(46, 84, 132, 0.28), rgba(32, 39, 58, 0.18)),
    rgba(8, 11, 18, 0.58);
  border: 1px solid rgba(130, 181, 244, 0.18);
}

.mission-flow-spotlight-copy {
  display: grid;
  gap: 12px;
}

.mission-flow-entry-grid,
.mission-flow-shared-band,
.mission-flow-crosslane-band,
.mission-flow-cluster-grid,
.mission-flow-route-grid {
  display: grid;
  gap: 14px;
}

.mission-flow-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-flow-shared-band,
.mission-flow-crosslane-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-flow-crosslane-band {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(245, 200, 124, 0.1);
  background: rgba(8, 11, 18, 0.32);
}

.mission-flow-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mission-flow-lane-berkav {
  background:
    radial-gradient(circle at top center, rgba(204, 88, 69, 0.12), transparent 32%),
    rgba(8, 11, 18, 0.4);
}

.mission-flow-lane-thespara {
  background:
    radial-gradient(circle at top center, rgba(88, 177, 117, 0.12), transparent 32%),
    rgba(8, 11, 18, 0.4);
}

.mission-flow-lane-orbos {
  background:
    radial-gradient(circle at top center, rgba(89, 146, 215, 0.12), transparent 32%),
    rgba(8, 11, 18, 0.4);
}

.mission-flow-lane-head {
  display: grid;
  gap: 14px;
}

.mission-flow-lane-art {
  width: min(136px, 42%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(245, 200, 124, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mission-flow-lane-copy {
  display: grid;
  gap: 6px;
}

.mission-flow-rail {
  display: grid;
  gap: 12px;
}

.mission-flow-rail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mission-flow-rail-row.is-branch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-flow-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(245, 200, 124, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(5, 8, 15, 0.9);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.mission-flow-card:hover,
.mission-flow-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 200, 124, 0.26);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.mission-flow-card.is-selected {
  border-color: rgba(245, 200, 124, 0.38);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(245, 200, 124, 0.14);
}

.mission-flow-card.is-complete {
  border-color: rgba(143, 220, 144, 0.34);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(143, 220, 144, 0.12);
}

.mission-flow-card-main_step {
  min-height: 150px;
}

.mission-flow-card-cluster,
.mission-flow-card-route {
  min-height: 164px;
}

.mission-flow-card-spotlight {
  min-height: 220px;
  padding: 20px;
  background:
    linear-gradient(160deg, rgba(39, 65, 99, 0.42), rgba(16, 22, 35, 0.18)),
    rgba(6, 9, 15, 0.86);
}

.mission-flow-card-finale {
  min-height: 188px;
}

.mission-flow-card-kicker {
  color: #f2c57a;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mission-flow-card-title {
  color: #fff2e2;
  font-family: "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.12;
}

.mission-flow-card-summary {
  color: rgba(232, 220, 204, 0.86);
  line-height: 1.5;
}

.mission-flow-card-chip-row,
.mission-flow-detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mission-flow-chip-content {
  background: rgba(43, 77, 120, 0.46);
  border-color: rgba(130, 181, 244, 0.26);
}

.mission-flow-card-cluster .mission-flow-chip-content,
.mission-flow-card-spotlight .mission-flow-chip-content {
  background: rgba(78, 57, 121, 0.46);
  border-color: rgba(178, 150, 236, 0.24);
}

.mission-flow-card-route .mission-flow-chip-content {
  background: rgba(101, 72, 27, 0.46);
  border-color: rgba(245, 205, 122, 0.24);
}

.mission-flow-chip-source {
  background: rgba(35, 81, 47, 0.46);
  border-color: rgba(145, 214, 154, 0.22);
}

.mission-flow-chip-progress {
  background: rgba(12, 17, 27, 0.72);
  border-color: rgba(245, 200, 124, 0.12);
}

.mission-flow-convergence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.mission-flow-convergence-leads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mission-flow-convergence-core {
  display: grid;
  gap: 14px;
}

.mission-flow-route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-flow-detail {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.mission-flow-detail-media {
  aspect-ratio: 1.15;
  border-bottom: 1px solid rgba(245, 200, 124, 0.12);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 45%),
    rgba(8, 11, 18, 0.82);
}

.mission-flow-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mission-flow-detail-copy {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.mission-flow-detail-kicker {
  margin: 0;
  color: #f2c57a;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mission-flow-detail-summary {
  margin: 0;
  line-height: 1.6;
}

.mission-flow-detail-progress {
  min-height: 20px;
  color: #d9c7ae;
  font-size: 0.88rem;
}

.mission-flow-detail-list-shell {
  display: grid;
  gap: 10px;
}

.mission-flow-detail-list-shell h3 {
  margin: 0;
  color: #fff2e2;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-flow-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #ddd0be;
}

.mission-flow-detail-list li {
  line-height: 1.45;
}

.mission-flow-detail-list strong {
  color: #fff2e2;
}

@media (max-width: 1240px) {
  .mission-flow-atlas {
    grid-template-columns: 1fr;
  }

  .mission-flow-detail {
    position: static;
  }
}

@media (max-width: 1120px) {
  .mission-flow-meta-grid,
  .mission-flow-legend,
  .mission-flow-lanes,
  .mission-flow-setup-grid,
  .mission-flow-convergence-grid {
    grid-template-columns: 1fr;
  }

  .mission-flow-entry-grid,
  .mission-flow-shared-band,
  .mission-flow-crosslane-band,
  .mission-flow-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mission-flow-canvas {
    display: none;
  }
}

@media (max-width: 760px) {
  .mission-flow-meta-grid,
  .mission-flow-legend,
  .mission-flow-entry-grid,
  .mission-flow-shared-band,
  .mission-flow-crosslane-band,
  .mission-flow-lanes,
  .mission-flow-route-grid,
  .mission-flow-convergence-leads,
  .mission-flow-rail-row.is-branch {
    grid-template-columns: 1fr;
  }

  .mission-flow-chapter,
  .mission-flow-lane {
    padding: 18px;
  }

  .mission-flow-lane-art {
    width: min(116px, 46%);
  }

  .mission-flow-card,
  .mission-flow-card-main_step,
  .mission-flow-card-cluster,
  .mission-flow-card-route,
  .mission-flow-card-spotlight,
  .mission-flow-card-finale {
    min-height: 0;
  }
}

.shell-mission-chart {
  width: min(1820px, calc(100vw - 24px));
}

.mission-chart-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(187, 69, 52, 0.12), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(77, 126, 195, 0.1), transparent 20%),
    radial-gradient(circle at 88% 12%, rgba(65, 132, 129, 0.12), transparent 18%),
    linear-gradient(180deg, #090b10 0%, #0c1119 44%, #07090f 100%);
}

.mission-chart-page::before {
  opacity: 0.42;
  background-size: auto, auto, auto, 96px 96px, 96px 96px;
}

.mission-chart-header,
.mission-chart-toolbar,
.mission-chart-legend-strip,
.mission-chart-panel {
  margin-bottom: 16px;
}

.mission-chart-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 4px 4px 0;
}

.mission-chart-header-actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  justify-self: end;
}

.mission-chart-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
}

.mission-chart-toolbar-copy {
  display: grid;
  gap: 6px;
}

.mission-chart-toolbar-copy p {
  margin: 0;
}

.mission-chart-toolbar-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.mission-chart-family-summary,
.mission-chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mission-chart-legend-strip {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
}

.mission-chart-legend-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mission-chart-legend-title {
  margin: 0;
  color: #f7c879;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mission-chart-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mission-chart-legend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(245, 200, 124, 0.14);
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.72);
  color: #f7edde;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-chart-legend-chip-main,
.mission-chart-node-role-main {
  background:
    linear-gradient(180deg, rgba(84, 134, 214, 0.46), rgba(20, 34, 59, 0.3)),
    rgba(10, 16, 28, 0.96);
  border-color: rgba(145, 194, 255, 0.36);
}

.mission-chart-legend-chip-side,
.mission-chart-node-role-side {
  background:
    linear-gradient(180deg, rgba(77, 148, 92, 0.38), rgba(17, 35, 23, 0.3)),
    rgba(9, 15, 21, 0.96);
  border-color: rgba(160, 222, 164, 0.3);
}

.mission-chart-legend-chip-flashback,
.mission-chart-node-role-flashback {
  background:
    linear-gradient(180deg, rgba(177, 139, 59, 0.38), rgba(55, 42, 12, 0.3)),
    rgba(16, 13, 7, 0.96);
  border-color: rgba(251, 217, 144, 0.3);
}

.mission-chart-legend-chip-advanced,
.mission-chart-node-role-advanced {
  background:
    linear-gradient(180deg, rgba(151, 91, 60, 0.36), rgba(45, 24, 16, 0.3)),
    rgba(18, 11, 9, 0.96);
  border-color: rgba(236, 171, 133, 0.3);
}

.mission-chart-legend-chip-final,
.mission-chart-node-role-final {
  background:
    linear-gradient(180deg, rgba(113, 162, 228, 0.42), rgba(26, 42, 77, 0.34)),
    rgba(10, 17, 31, 0.97);
  border-color: rgba(181, 214, 255, 0.42);
}

.mission-chart-legend-chip-edge,
.mission-chart-legend-chip-source {
  position: relative;
  background: rgba(8, 12, 20, 0.72);
}

.mission-chart-legend-chip-edge::before {
  content: "";
  width: 20px;
  height: 0;
  margin-right: 8px;
  border-top: 2px solid var(--mission-edge-stroke, rgba(157, 201, 255, 0.72));
  border-top-style: var(--mission-edge-border-style, solid);
  opacity: 0.72;
}

.mission-chart-legend-chip-edge-side::before {
  width: 28px;
  height: 8px;
  border-top: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(232, 214, 166, 0.76) 0 7px,
    transparent 7px 11px
  );
  clip-path: polygon(0 36%, 68% 36%, 68% 10%, 100% 50%, 68% 90%, 68% 64%, 0 64%);
  opacity: 0.86;
}

.mission-chart-panel {
  padding: 14px 20px 20px;
}

.mission-chart-scroll {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.mission-chart-map {
  position: relative;
  width: calc(var(--artboard-width) * 1px);
  min-width: calc(var(--artboard-width) * 1px);
  height: calc(var(--artboard-height) * 1px);
  min-height: calc(var(--artboard-height) * 1px);
  overflow: hidden;
  border: 1px solid rgba(245, 200, 124, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 6%, rgba(93, 129, 202, 0.12), transparent 18%),
    radial-gradient(circle at 18% 84%, rgba(110, 62, 51, 0.08), transparent 18%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 16, 25, 0.98), rgba(8, 11, 18, 0.99));
  background-size: auto, auto, 108px 108px, 108px 108px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 32px 68px rgba(0, 0, 0, 0.3);
}

.mission-chart-region,
.mission-chart-shelf,
.mission-chart-annotation,
.mission-chart-canvas,
.mission-chart-node {
  position: absolute;
}

.mission-chart-region {
    left: calc(var(--region-x) * 1px);
    top: calc(var(--region-y) * 1px);
    width: calc(var(--region-width) * 1px);
    height: calc(var(--region-height) * 1px);
    box-sizing: border-box;
    z-index: 0;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(245, 200, 124, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.12), rgba(7, 11, 18, 0.78)),
    rgba(7, 10, 16, 0.18);
}

.mission-chart-region img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    filter: saturate(0.8) brightness(0.82);
}

.mission-chart-region-berkav::after,
.mission-chart-region-thespara::after,
.mission-chart-region-orbos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.02), rgba(7, 10, 16, 0.78));
}

.mission-chart-region-berkav {
  box-shadow: inset 0 0 120px rgba(106, 37, 32, 0.18);
}

.mission-chart-region-thespara {
  box-shadow: inset 0 0 120px rgba(39, 94, 76, 0.16);
}

.mission-chart-region-orbos {
  box-shadow: inset 0 0 120px rgba(39, 74, 120, 0.16);
}

.mission-chart-shelf {
    left: calc(var(--shelf-x) * 1px);
    top: calc(var(--shelf-y) * 1px);
    width: calc(var(--shelf-width) * 1px);
    height: calc(var(--shelf-height) * 1px);
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid rgba(245, 200, 124, 0.06);
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0)),
      rgba(7, 10, 18, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.016);
    transition: opacity 140ms ease, visibility 140ms ease;
}

.mission-chart-shelf-label {
  position: absolute;
  left: 20px;
  top: 16px;
  color: rgba(247, 200, 121, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mission-chart-shelf-expedition {
    background:
      linear-gradient(180deg, rgba(47, 79, 65, 0.15), rgba(255, 255, 255, 0)),
      rgba(7, 10, 18, 0.28);
}

.mission-chart-shelf-advanced {
    background:
      linear-gradient(180deg, rgba(94, 57, 36, 0.15), rgba(255, 255, 255, 0)),
      rgba(7, 10, 18, 0.28);
}

.mission-chart-shelf-palace {
    background:
      linear-gradient(180deg, rgba(34, 63, 92, 0.15), rgba(255, 255, 255, 0)),
      rgba(7, 10, 18, 0.28);
}

.mission-chart-shelf-side-arc {
    background:
      linear-gradient(180deg, rgba(51, 84, 63, 0.15), rgba(255, 255, 255, 0)),
      rgba(7, 10, 18, 0.28);
}

.mission-chart-shelf-orb {
    background:
      linear-gradient(180deg, rgba(84, 68, 25, 0.15), rgba(255, 255, 255, 0)),
      rgba(7, 10, 18, 0.28);
}

.mission-chart-shelf-bandit {
    background:
      linear-gradient(180deg, rgba(59, 102, 70, 0.15), rgba(255, 255, 255, 0)),
      rgba(7, 10, 18, 0.28);
}

.mission-chart-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.mission-chart-edge {
    fill: none;
    stroke: var(--mission-edge-stroke, rgba(157, 201, 255, 0.72));
    stroke-width: 2.4;
    stroke-dasharray: var(--mission-edge-dasharray, none);
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.64;
    transition: opacity 140ms ease, stroke 140ms ease, stroke-width 140ms ease;
}

.mission-chart-edge-main,
.mission-chart-legend-chip-edge-main {
    --mission-edge-stroke: rgba(157, 201, 255, 0.72);
}

.mission-chart-edge-choice,
.mission-chart-legend-chip-edge-choice {
    --mission-edge-stroke: rgba(197, 169, 255, 0.7);
    --mission-edge-dasharray: 10 8;
    --mission-edge-border-style: dashed;
}

.mission-chart-edge-side,
.mission-chart-legend-chip-edge-side {
  --mission-edge-stroke: rgba(232, 214, 166, 0.68);
  --mission-edge-dasharray: 8 10;
  --mission-edge-border-style: dashed;
}

.mission-chart-edge-side.mission-chart-edge-routed {
  stroke-width: 2.55;
  opacity: 0.8;
}

.mission-chart-edge-final,
.mission-chart-legend-chip-edge-final {
    --mission-edge-stroke: rgba(206, 223, 255, 0.84);
}

.mission-chart-edge.is-related {
    opacity: 0.92;
    stroke-width: 3;
}

.mission-chart-edge.is-muted {
    opacity: 0.1;
}

.mission-chart-annotation {
  left: calc(var(--annotation-x) * 1px);
  top: calc(var(--annotation-y) * 1px);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
    min-height: 22px;
    padding: 3px 9px;
  border: 1px solid rgba(245, 200, 124, 0.14);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.76);
  color: rgba(247, 200, 121, 0.88);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.mission-chart-node {
    z-index: 4;
    box-sizing: border-box;
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 200, 124, 0.16);
    border-radius: 20px;
  color: #fff5e8;
    text-align: left;
    cursor: pointer;
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease,
    filter 140ms ease,
    visibility 140ms ease;
}

.mission-chart-node-desktop {
  left: calc(var(--node-x) * 1px);
  top: calc(var(--node-y) * 1px);
  transform: translate(-50%, -50%);
}

.mission-chart-node-mobile {
  position: relative;
  min-height: 0;
}

.mission-chart-node:hover,
.mission-chart-node:focus-visible,
.mission-chart-node.is-hovered,
.mission-chart-node.is-selected {
  transform: translate(-50%, -50%) translateY(-3px);
  border-color: rgba(245, 200, 124, 0.34);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(245, 200, 124, 0.08);
}

.mission-chart-node-mobile:hover,
.mission-chart-node-mobile:focus-visible,
.mission-chart-node-mobile.is-hovered,
.mission-chart-node-mobile.is-selected {
  transform: translateY(-3px);
}

.mission-chart-node.is-related {
  border-color: rgba(245, 200, 124, 0.26);
}

.mission-chart-node.is-muted {
  opacity: 0.32;
  filter: saturate(0.74);
}

.mission-chart-shelf.is-collapsed,
.mission-chart-annotation.is-collapsed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mission-chart-node.is-collapsed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: none;
  box-shadow: none;
  border-color: transparent;
}

.mission-chart-node-desktop.is-collapsed {
  transform: translate(-50%, -50%) scale(0.96);
}

.mission-chart-node-mobile.is-collapsed {
  display: none;
}

.mission-chart-node.is-complete {
  border-color: rgba(151, 216, 154, 0.48);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(151, 216, 154, 0.12);
}

.mission-chart-node.is-complete::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9ee2b0;
  box-shadow: 0 0 12px rgba(158, 226, 176, 0.55);
}

.mission-chart-node-size-hero {
    width: 200px;
    min-height: 104px;
}

.mission-chart-node-size-side {
    width: 148px;
    min-height: 88px;
}

.mission-chart-node-size-final {
    width: 212px;
    min-height: 100px;
}

.mission-chart-node-code {
    color: #fff7ea;
    font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.08;
}

.mission-chart-node-has-title .mission-chart-node-code {
    color: rgba(245, 201, 124, 0.94);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mission-chart-node-title {
  display: block;
  color: #fffaf0;
  font-family: "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.06;
}

.mission-chart-node-size-side .mission-chart-node-title {
    font-size: 0.92rem;
}

.mission-chart-node-size-final .mission-chart-node-code {
    font-size: 1.08rem;
}

.mission-chart-node-size-final .mission-chart-node-title {
    font-size: 1rem;
}

.mission-chart-node-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 9, 15, 0.4);
  color: rgba(245, 235, 223, 0.94);
    font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission-chart-node-role-main .mission-chart-node-pill,
.mission-chart-node-role-final .mission-chart-node-pill {
  display: none;
}

.mission-chart-mobile {
  display: none;
  margin-top: 16px;
}

.mission-chart-mobile-section + .mission-chart-mobile-section {
  margin-top: 18px;
}

.mission-chart-mobile-section.is-collapsed {
  display: none;
}

.mission-chart-mobile-section h2 {
  margin: 0 0 12px;
  color: #fff3e3;
  font-size: 1rem;
}

.mission-chart-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1300px) {
  .mission-chart-header,
  .mission-chart-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mission-chart-header-actions,
  .mission-chart-toolbar-controls,
  .mission-chart-family-summary,
  .mission-chart-actions {
    justify-content: flex-start;
    justify-items: start;
  }

  .mission-chart-legend-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mission-chart-panel {
    padding-top: 16px;
  }
}

@media (max-width: 1040px) {
  .mission-chart-scroll {
    display: none;
  }

  .mission-chart-mobile {
    display: block;
  }
}

@media (max-width: 760px) {
  .shell-mission-chart {
    width: min(100vw - 16px, 100%);
  }

  .mission-chart-panel,
  .mission-chart-toolbar,
  .mission-chart-legend-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mission-chart-mobile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .progress-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .progress-strip-controls {
    justify-items: start;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .progress-strip {
    gap: 14px;
  }

  .progress-strip-copy {
    display: grid;
    gap: 12px;
  }

  .progress-strip-head {
    margin-bottom: 0;
  }

  .progress-strip-head .item-meta,
  .progress-summary {
    max-width: none;
  }

  .progress-strip-explainer {
    margin-bottom: 0;
  }

  .progress-strip-explainer summary,
  .progress-strip-explainer-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .progress-strip-controls {
    gap: 12px;
  }

  .progress-family-summary {
    width: 100%;
    margin-bottom: 0;
    justify-content: flex-start;
  }

  .progress-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .progress-actions .primary-btn,
  .progress-actions .secondary-btn,
  .progress-actions .danger-btn,
  .progress-flow-link {
    width: 100%;
    justify-content: center;
  }
}
