:root {
  --bg: #767b84;
  --bg-deep: #2e333a;
  --stone: #eff2f6;
  --stone-2: #d9dee5;
  --stone-3: #b9c0ca;
  --panel: rgba(237, 241, 246, 0.8);
  --panel-strong: rgba(250, 252, 255, 0.92);
  --ink: #161a1f;
  --muted: #646b74;
  --line: rgba(72, 79, 89, 0.14);
  --accent: #b88718;
  --accent-2: #d0a53a;
  --accent-3: #8c6410;
  --shadow: 0 28px 70px rgba(10, 9, 7, 0.28);
  --radius: 20px;
  --impact-preview-border: rgba(143, 110, 36, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 84% 4%, rgba(255, 255, 255, 0.09), transparent 18%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #8a9099 0%, #5b6169 28%, var(--bg-deep) 100%);
  background-size: auto, auto, 30px 30px, 30px 30px, auto;
  font: 16px/1.58 "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1520px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 40px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}

.panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.panel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(251, 252, 254, 0.92), rgba(224, 229, 236, 0.88));
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.hero {
  padding: 58px 54px 46px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.99), rgba(223, 228, 235, 0.94));
  overflow: hidden;
  border-radius: 30px;
}

.hero-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 26px;
}

.hero-copy-block {
  max-width: 64ch;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 806px);
  gap: 34px;
  align-items: start;
}

.hero-media {
  position: relative;
  margin: 0;
  margin-top: 52px;
  width: min(100%, 910px);
  min-height: 936px;
  justify-self: center;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(73, 78, 88, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(39, 33, 25, 0.08)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(56, 61, 71, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 26px 60px rgba(14, 12, 9, 0.14);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 936px;
  object-fit: contain;
  object-position: center top;
  background: rgba(255, 255, 255, 0.7);
}

.visit-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(252, 253, 255, 0.88);
  border: 1px solid rgba(76, 82, 91, 0.08);
  text-align: right;
}

.visit-counter-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visit-counter strong {
  font-size: 1.15rem;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(65, 72, 82, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  text-shadow: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(4rem, 7.4vw, 7.6rem);
  max-width: 9ch;
  letter-spacing: -0.07em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
  line-height: 0.84;
  color: #231f1a;
}

.hero-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
}

.hero-title span {
  display: block;
}

.hero-title-archive {
  font-size: 1.18em;
  line-height: 0.78;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  letter-spacing: -0.03em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
}

.hero-copy {
  max-width: 58ch;
  margin: 20px 0 0;
  color: #616872;
  font-size: 1.04rem;
}

.hero-copy-intro,
.hero-copy-blockform {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.82;
  box-shadow: none;
}

.hero-copy-intro {
  text-indent: 0;
}

.hero-copy-blockform {
  text-indent: 0;
  margin-top: 14px;
}

.hero-feature-window {
  width: min(100%, 58ch);
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(120, 43, 30, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 247, 0.9));
  box-shadow:
    inset 5px 0 0 rgba(194, 59, 24, 0.88),
    0 20px 42px rgba(19, 22, 28, 0.14);
}

.hero-feature-head,
.hero-feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-feature-label {
  margin: 0;
  color: rgba(57, 63, 72, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-feature-impact {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(194, 59, 24, 0.1);
  border: 1px solid rgba(194, 59, 24, 0.24);
  color: #9d2f18;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-feature-quote {
  margin: 12px 0 0;
  color: #252a31;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.24rem, 1.75vw, 1.72rem);
  font-weight: 700;
  line-height: 1.22;
}

.hero-feature-context {
  margin: 10px 0 0;
  color: #606873;
  font-size: 0.92rem;
  line-height: 1.54;
}

.hero-feature-footer {
  margin-top: 14px;
  align-items: end;
}

.hero-feature-meta {
  margin: 0;
  color: rgba(83, 91, 102, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-feature-open {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.hero-rumors-window {
  width: min(100%, 54ch);
  max-width: 54ch;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 247, 0.14);
  background:
    linear-gradient(180deg, rgba(69, 78, 90, 0.56), rgba(41, 48, 58, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(18, 23, 31, 0.18);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.hero-rumors-window:hover,
.hero-rumors-window:focus-within {
  background:
    linear-gradient(180deg, rgba(78, 88, 101, 0.61), rgba(48, 56, 67, 0.61));
  border-color: rgba(242, 247, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 32px rgba(14, 19, 26, 0.22);
  transform: translateY(-1px);
}

.hero-rumors-label {
  margin: 0;
  color: rgba(243, 247, 252, 0.92);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
}

.hero-rumors-title {
  margin: 6px 0 0;
  color: rgba(247, 249, 252, 0.96);
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 700;
}

.hero-rumors-text {
  margin: 6px 0 0;
  color: rgba(244, 247, 251, 0.88);
  font-size: 0.86rem;
  line-height: 1.42;
}

.hero-rumors-points {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.hero-rumors-point {
  margin: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: rgba(238, 243, 249, 0.9);
  font-size: 0.78rem;
  line-height: 1.38;
}

.hero-rumors-point-label {
  color: rgba(214, 223, 234, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-rumors-meta {
  margin: 8px 0 0;
  color: rgba(220, 227, 236, 0.72);
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions,
.inline-actions,
.count-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 34px;
  align-items: center;
}

.hero-action-status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.is-hidden {
  display: none !important;
}

.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(83, 89, 99, 0.12);
  border-radius: 999px;
  background: rgba(252, 253, 255, 0.94);
  color: #201b16;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 12px 24px rgba(24, 19, 13, 0.06);
}

.button-primary,
.chip.is-active {
  background: #1f2228;
  border-color: #1f2228;
  color: #f3f5f8;
}

.button:hover,
.chip:hover,
.panel-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(20, 16, 11, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 0;
}

.hero-stats div {
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(249, 251, 253, 0.84);
  border: 1px solid rgba(76, 82, 91, 0.08);
  box-shadow: 0 14px 28px rgba(24, 19, 13, 0.04);
}

.hero-stats dt,
.results-count,
.group-meta,
.group-notes,
.asset-meta,
.field-note {
  color: var(--muted);
}

.hero-stats dt {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  font-weight: 700;
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: 1.85rem;
  font-weight: 700;
}

.timeline-panel {
  margin-top: 22px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(239, 243, 247, 0.86), rgba(208, 214, 222, 0.84)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 24%);
}

.themes-panel {
  margin-top: 22px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(239, 243, 247, 0.86), rgba(208, 214, 222, 0.84)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 28%);
}

.themes-panel.is-collapsed {
  padding-bottom: 16px;
}

.request-panel {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  margin-top: 22px;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(240, 244, 248, 0.94), rgba(208, 214, 223, 0.96));
  border-style: solid;
  box-shadow: 0 18px 40px rgba(19, 15, 10, 0.28);
}

.request-panel.is-collapsed {
  border-radius: 999px;
}

.request-panel.is-collapsed .request-head {
  align-items: center;
}

.request-panel.is-collapsed h2 {
  font-size: 1.18rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.request-panel.is-collapsed .eyebrow {
  margin-bottom: 2px;
}

.request-body {
  margin-top: 14px;
}

.request-panel:not(.is-collapsed) {
  padding: 18px 20px 20px;
  border-radius: 20px;
}

.request-panel:not(.is-collapsed) .request-head {
  align-items: end;
}

.mirrors-panel {
  margin-top: 22px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(239, 243, 247, 0.9), rgba(208, 214, 223, 0.88)),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.16), transparent 26%);
}

.mirrors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mirror-card {
  padding: 18px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  border-radius: 16px;
  background: rgba(250, 252, 254, 0.76);
}

.mirror-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mirror-list {
  display: grid;
  gap: 10px;
}

.mirror-link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24, 19, 13, 0.05);
}

.mirror-link strong,
.mirror-link span {
  display: block;
}

.mirror-link strong {
  font-size: 0.95rem;
}

.mirror-link span {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-word;
}

.mirrors-actions {
  margin-top: 16px;
}

.mirrors-note {
  margin: 16px 0 0;
  color: var(--muted);
}

.request-toggle {
  min-width: 92px;
}

.request-copy {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.request-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.request-template {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(83, 89, 99, 0.14);
  background: rgba(250, 252, 254, 0.84);
  white-space: pre-wrap;
  font-size: 0.92rem;
  color: var(--muted);
  max-height: min(48vh, 420px);
  overflow: auto;
}

.themes-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}

.theme-collapsed-summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.theme-rail {
  position: sticky;
  top: 16px;
}

.theme-list {
  display: grid;
  gap: 10px;
}

.theme-button {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(250, 252, 254, 0.9), rgba(226, 231, 237, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 18px rgba(24, 19, 13, 0.06);
  text-align: left;
  cursor: pointer;
}

.theme-button.is-active {
  border-color: rgba(93, 100, 111, 0.26);
  background:
    linear-gradient(180deg, rgba(207, 214, 223, 0.34), rgba(248, 250, 253, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 28px rgba(36, 28, 16, 0.16);
}

.theme-button-kicker,
.theme-button strong,
.theme-button span {
  display: block;
}

.theme-button-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
}

.theme-button strong {
  margin-top: 8px;
  font-size: 1rem;
}

.theme-button span:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.theme-story {
  min-height: 100%;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  background:
    linear-gradient(180deg, rgba(251, 252, 254, 0.94), rgba(227, 232, 238, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(85, 92, 102, 0.04));
}

.theme-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
}

.theme-summary {
  margin: 14px 0 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 1rem;
}

.theme-update-banner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(214, 220, 228, 0.24), rgba(251, 252, 254, 0.9));
  border: 1px solid rgba(84, 91, 101, 0.14);
  box-shadow: 0 10px 22px rgba(36, 28, 16, 0.1);
  color: rgba(25, 22, 19, 0.82);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.theme-update-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(60, 66, 76, 0.94);
}

.theme-update-date {
  color: rgba(31, 24, 19, 0.7);
}

.theme-content {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.theme-content p {
  margin: 0;
  max-width: 78ch;
  font-size: 1.02rem;
}

.theme-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.theme-content li {
  margin: 0 0 8px;
}

.theme-doc-heading {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: var(--accent-3);
}

.timeline-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.timeline-legend-label {
  color: rgba(56, 62, 70, 0.82);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.timeline-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(74, 57, 32, 0.5);
  box-shadow: 0 0 0 1px rgba(84, 91, 101, 0.12);
  flex: 0 0 auto;
}

.timeline-legend-swatch.is-document {
  background: rgba(74, 57, 32, 0.5);
}

.timeline-legend-swatch.is-image {
  background: #467058;
}

.timeline-legend-swatch.is-audio {
  background: #6c5594;
}

.timeline-legend-swatch.is-video {
  background: #315f86;
}

.timeline-legend-swatch.is-impact {
  background: #c53224;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 4px rgba(197, 50, 36, 0.16);
}

.timeline-panel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-filter-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-filter-menu {
  position: relative;
}

.timeline-filter-menu summary {
  list-style: none;
}

.timeline-filter-menu summary::-webkit-details-marker {
  display: none;
}

.timeline-filter-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 132px;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  border-radius: 14px;
  background: rgba(250, 252, 254, 0.98);
  box-shadow: 0 18px 36px rgba(23, 24, 28, 0.14);
  backdrop-filter: blur(10px);
}

.timeline-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
}

.timeline-filter-option input {
  margin: 0;
}

.timeline-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  border-radius: 999px;
  background: rgba(250, 252, 254, 0.88);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.timeline-toolbar-button.is-wide {
  min-width: 62px;
  padding: 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-toolbar-button:hover,
.timeline-toolbar-button:focus-visible {
  background: rgba(236, 240, 245, 0.96);
  border-color: rgba(84, 91, 101, 0.24);
  outline: none;
  transform: translateY(-1px);
}

.timeline-track {
  position: relative;
  height: 168px;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  background:
    linear-gradient(180deg, rgba(249, 251, 253, 0.86), rgba(225, 230, 236, 0.96)),
    linear-gradient(90deg, rgba(120, 128, 139, 0.08), rgba(81, 88, 98, 0.08));
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.timeline-track.is-dragging {
  cursor: grabbing;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 68px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(87, 94, 104, 0.34), rgba(132, 139, 150, 0.28));
}

.timeline-status-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: rgba(68, 74, 83, 0.72);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.timeline-status-lane {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 38px;
  height: 12px;
  border-radius: 999px;
  background: rgba(86, 94, 104, 0.08);
  box-shadow: inset 0 0 0 1px rgba(84, 91, 101, 0.08);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.timeline-status-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.timeline-status-segment span {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  max-width: min(18vw, 160px);
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(82, 89, 99, 0.12);
  background: rgba(248, 250, 252, 0.92);
  color: rgba(25, 31, 39, 0.74);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(22, 18, 14, 0.06);
  z-index: 1;
}

.timeline-status-segment.is-together {
  background: rgba(46, 58, 72, 0.62);
}

.timeline-status-segment.is-contact {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(171, 151, 101, 0.34) 0,
      rgba(171, 151, 101, 0.34) 8px,
      rgba(171, 151, 101, 0.16) 8px,
      rgba(171, 151, 101, 0.16) 14px
    );
  box-shadow: inset 0 0 0 1px rgba(150, 125, 71, 0.12);
}

.timeline-focus-window {
  position: absolute;
  top: 34px;
  bottom: 28px;
  min-width: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(188, 195, 205, 0.14), rgba(188, 195, 205, 0.24));
  border: 1px solid rgba(84, 91, 101, 0.14);
  transform: translateX(0);
  z-index: 0;
}

.timeline-marker {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.timeline-doc-tick {
  position: absolute;
  top: calc(72px + (var(--tick-row, 0) * 9px));
  width: 2px;
  height: 24px;
  transform: translateX(-50%);
  background: rgba(74, 57, 32, 0.42);
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.timeline-doc-tick span {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  min-height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(84, 91, 101, 0.16);
  background: rgba(250, 252, 254, 0.96);
  color: rgba(25, 22, 19, 0.82);
  box-shadow: 0 8px 18px rgba(24, 19, 13, 0.1);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}

.timeline-doc-tick:hover span,
.timeline-doc-tick:focus-visible span {
  display: inline-flex;
}

.timeline-doc-tick.is-group-lead span {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 9px;
  border-color: rgba(38, 58, 79, 0.24);
  background: rgba(246, 248, 251, 0.98);
  color: rgba(22, 33, 45, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(24, 19, 13, 0.14);
}

.timeline-doc-tick.type-video {
  width: 5px;
  border-radius: 6px;
  background: #315f86;
  box-shadow: 0 0 0 1px rgba(49, 95, 134, 0.24);
}

.timeline-doc-tick.type-video::after {
  width: 11px;
  height: 11px;
  background: #315f86;
}

.timeline-doc-tick.type-audio {
  background: #8a6841;
}

.timeline-doc-tick.type-audio::after {
  background: #8a6841;
}

.timeline-doc-tick.type-image {
  background: #467058;
}

.timeline-doc-tick.type-image::after {
  background: #467058;
}

.timeline-doc-tick::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(74, 57, 32, 0.5);
  transform: translateX(-50%);
}

.timeline-doc-tick.impact-1 {
  width: 3px;
  height: 26px;
  top: calc(70px + (var(--tick-row, 0) * 9px));
  background: #f5f7fb;
  box-shadow: 0 0 0 1px rgba(46, 56, 70, 0.28);
}

.timeline-doc-tick.impact-1::after {
  width: 9px;
  height: 9px;
  top: 23px;
  background: #f5f7fb;
  box-shadow: 0 0 0 1px rgba(46, 56, 70, 0.28);
}

.timeline-doc-tick.impact-2 {
  width: 3px;
  height: 28px;
  top: calc(68px + (var(--tick-row, 0) * 9px));
  background: #f2d77a;
  box-shadow: 0 0 0 1px rgba(126, 94, 10, 0.26);
}

.timeline-doc-tick.impact-2::after {
  width: 10px;
  height: 10px;
  top: 24px;
  background: #f2d77a;
  box-shadow: 0 0 0 1px rgba(126, 94, 10, 0.26);
}

.timeline-doc-tick.impact-3 {
  width: 4px;
  height: 30px;
  top: calc(67px + (var(--tick-row, 0) * 9px));
  background: #f0c419;
  box-shadow: 0 0 0 1px rgba(116, 82, 0, 0.36), 0 0 8px rgba(240, 196, 25, 0.22);
}

.timeline-doc-tick.impact-3::after {
  width: 11px;
  height: 11px;
  top: 25px;
  background: #f0c419;
  box-shadow: 0 0 0 1px rgba(116, 82, 0, 0.36);
}

.timeline-doc-tick.impact-4 {
  width: 4px;
  height: 31px;
  top: calc(66px + (var(--tick-row, 0) * 9px));
  background: #c53224;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 10px rgba(197, 50, 36, 0.24);
}

.timeline-doc-tick.impact-4::after {
  width: 12px;
  height: 12px;
  top: 25px;
  background: #c53224;
}

.timeline-doc-tick.impact-5 {
  width: 4px;
  height: 32px;
  top: calc(66px + (var(--tick-row, 0) * 9px));
  background: #d61f26;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 14px rgba(214, 31, 38, 0.34);
  z-index: 4;
}

.timeline-doc-tick.impact-5::after {
  width: 12px;
  height: 12px;
  top: 26px;
  background: #d61f26;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 0 0 8px rgba(214, 31, 38, 0.22);
}

.timeline-history {
  position: absolute;
  top: calc(104px + (var(--history-row, 0) * 28px));
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.timeline-history::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(25, 50, 56, 0.42);
  transform: translateX(-50%);
}

.timeline-history span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(250, 252, 254, 0.9);
  border: 1px solid rgba(84, 91, 101, 0.14);
  color: rgba(25, 22, 19, 0.74);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.timeline-doc-tick:hover,
.timeline-doc-tick:focus-visible,
.timeline-history:hover,
.timeline-history:focus-visible {
  outline: none;
}

.timeline-doc-tick:hover::after,
.timeline-doc-tick:focus-visible::after {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6), 0 0 0 8px rgba(23, 56, 75, 0.18);
}

.timeline-history:hover span,
.timeline-history:focus-visible span {
  border-color: rgba(120, 127, 138, 0.34);
  box-shadow: 0 0 0 3px rgba(186, 193, 202, 0.18);
}

.timeline-history.is-active span {
  background: rgba(203, 210, 219, 0.24);
  border-color: rgba(84, 91, 101, 0.2);
  color: var(--accent);
}

.timeline-history.is-active::before {
  background: var(--accent);
}

.timeline-focus {
  position: absolute;
  top: 10px;
  left: 50%;
  min-width: 180px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(250, 252, 254, 0.94);
  border: 1px solid rgba(84, 91, 101, 0.14);
  box-shadow: 0 10px 24px rgba(36, 28, 16, 0.14);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 3;
}

.timeline-focus strong,
.timeline-focus span {
  display: block;
}

.timeline-focus strong {
  font-size: 0.84rem;
}

.timeline-focus span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.timeline-marker {
  width: 0;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 70px;
  left: -1px;
  width: 2px;
  background: linear-gradient(180deg, #313741, #69727e);
}

.timeline-marker::after {
  content: "";
  position: absolute;
  top: 64px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #313741, #69727e);
  box-shadow: 0 0 0 5px rgba(185, 191, 201, 0.2);
}

.timeline-ticks {
  position: relative;
  height: 24px;
  margin-top: -10px;
  --timeline-label-scale: 1;
  z-index: 3;
}

.timeline-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%) scale(var(--timeline-label-scale));
  transform-origin: top center;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 3;
}

.timeline-tick::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 10px;
  background: rgba(40, 69, 88, 0.2);
  transform: translateX(-50%);
}

.timeline-tick.is-unlabeled {
  width: 0;
  font-size: 0;
}

.timeline-tick.is-unlabeled::before {
  height: 7px;
  background: rgba(40, 69, 88, 0.12);
}

@media (max-width: 760px) {
  .timeline-panel-meta {
    flex-direction: column;
    align-items: flex-end;
  }

  .timeline-legend {
    gap: 8px 12px;
    font-size: 0.68rem;
  }
}

.library-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.library-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  position: sticky;
  top: 16px;
  align-self: start;
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  z-index: 2;
}

.collection-panel,
.detail-panel,
.reader-panel,
.stage-panel,
.asset-section {
  padding: 18px;
}

.collection-panel {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
}

.challenge-panel {
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.challenge-panel-body {
  margin-top: 6px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  background:
    linear-gradient(180deg, rgba(250, 252, 254, 0.92), rgba(228, 233, 239, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 247, 228, 0.42);
  overflow: auto;
}

#group-notes-title {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.08;
}

.collection-panel .mobile-panel-body {
  display: block;
  overflow: visible;
  padding-right: 0;
}

.panel-head,
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.panel-head-vertical {
  display: block;
}

.field-label {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.82rem;
}

.search-input {
  width: 100%;
  margin-top: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  border-radius: 10px;
  background: rgba(250, 252, 254, 0.9);
  color: var(--ink);
  font-size: 0.8rem;
}

.filter-block {
  margin-top: 8px;
}

.collection-nav-card {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  background: rgba(250, 252, 254, 0.78);
}

#collection-nav-heading {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.08;
}

.priority-context {
  margin-top: 8px;
}

.priority-context[hidden] {
  display: none !important;
}

.priority-context-card {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.95), rgba(232, 237, 243, 0.9));
}

.priority-context-card.is-high {
  border-color: rgba(143, 74, 31, 0.32);
  background: linear-gradient(180deg, rgba(255, 245, 240, 0.98), rgba(248, 223, 209, 0.92));
}

.priority-context-card.is-medium {
  border-color: rgba(170, 131, 50, 0.26);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(244, 234, 207, 0.92));
}

.priority-context-card.is-low {
  border-color: rgba(88, 107, 90, 0.22);
  background: linear-gradient(180deg, rgba(244, 249, 244, 0.98), rgba(220, 235, 223, 0.92));
}

.priority-context-kicker {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.priority-context-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(54, 60, 69, 0.08);
}

.priority-context-badge.is-high {
  background: rgba(135, 55, 16, 0.12);
  color: #6f2d12;
}

.priority-context-badge.is-medium {
  background: rgba(166, 123, 22, 0.14);
  color: #7b5610;
}

.priority-context-badge.is-low {
  background: rgba(70, 112, 76, 0.14);
  color: #365d3c;
}

.priority-context-summary {
  grid-column: 1 / -1;
  margin: 0;
  color: #2d3440;
  font-size: 0.77rem;
  line-height: 1.42;
}

.priority-context-reference {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-weight: 700;
}

.collection-exhibit-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 7px;
  padding: 4px 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(227, 232, 239, 0.84), rgba(197, 205, 216, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.exhibit-nav-button {
  min-height: 30px;
  gap: 4px;
  padding: 0 7px;
  border-width: 1px;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 26px rgba(24, 19, 13, 0.14);
  flex: 1 1 0;
  white-space: nowrap;
  min-width: 0;
}

.exhibit-nav-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  font-size: 0.56rem;
  line-height: 1;
  flex: 0 0 auto;
}

.exhibit-nav-button-prev {
  border-color: rgba(92, 100, 113, 0.24);
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(215, 222, 232, 0.94));
  color: #2c3440;
  box-shadow: 0 12px 24px rgba(55, 64, 76, 0.12);
}

.exhibit-nav-button-prev span {
  background: rgba(44, 52, 64, 0.1);
}

.exhibit-nav-button-next {
  border-color: rgba(76, 86, 100, 0.28);
  background: linear-gradient(180deg, rgba(239, 243, 249, 0.99), rgba(188, 198, 211, 0.98));
  color: #1f2935;
  box-shadow: 0 14px 28px rgba(49, 60, 74, 0.16);
}

.exhibit-nav-button-next span {
  background: rgba(31, 41, 53, 0.12);
}

.exhibit-nav-button:hover,
.exhibit-nav-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(49, 60, 74, 0.18);
}

.exhibit-nav-button:focus-visible {
  outline: 2px solid rgba(96, 108, 123, 0.34);
  outline-offset: 2px;
}

.collection-nav-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  margin-top: 7px;
}

.collection-nav-controls > .button {
  min-width: 0;
  min-height: 26px;
  padding: 0 6px;
  font-size: 0.54rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mobile-exhibit-bar {
  display: none;
}

.mobile-panel-toggle {
  display: none;
}

.mobile-panel-body[hidden] {
  display: none !important;
}

.collection-panel .mobile-panel-body {
  display: block;
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  padding-right: 0;
}

#collection-jump-open {
  grid-column: 1 / -1;
  min-height: 24px;
  padding: 0 6px;
  font-size: 0.5rem;
  letter-spacing: 0.01em;
}

.collection-jump-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 24, 28, 0.34);
  backdrop-filter: blur(4px);
}

.collection-jump-modal[hidden] {
  display: none !important;
}

.collection-jump-dialog {
  width: min(720px, 100%);
  max-height: min(78vh, 860px);
  overflow: auto;
}

.download-gate-form {
  margin-top: 12px;
}

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

.download-gate-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.download-gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.mini-pill,
.group-id,
.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  letter-spacing: 0.04em;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.mini-pill {
  background: rgba(98, 106, 117, 0.1);
  color: var(--accent-3);
}

.group-id {
  background: rgba(203, 210, 219, 0.22);
  color: var(--accent);
}

.viewer-column {
  min-width: 0;
}

.viewer-summary {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.count-row {
  margin-top: 10px;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(245, 240, 231, 0.8);
  border: 1px solid rgba(84, 91, 101, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-reader {
  max-height: 170px;
  overflow: auto;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(84, 91, 101, 0.14);
  background:
    linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(228, 233, 239, 0.94));
  white-space: pre-wrap;
  box-shadow: inset 0 1px 0 rgba(255, 247, 228, 0.52);
  line-height: 1.5;
}

.asset-viewer {
  min-height: calc(100vh - 220px);
  max-height: calc(100vh - 220px);
  margin-top: 10px;
  position: relative;
  border-radius: 16px;
  border: 6px solid var(--impact-preview-border);
  background:
    linear-gradient(180deg, rgba(28, 24, 19, 0.98), rgba(16, 14, 11, 1));
  box-shadow: inset 0 1px 0 rgba(255, 232, 163, 0.08);
  overflow: auto;
}

.impact-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  min-width: 56px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 16, 13, 0.78);
  color: #fff7dd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stage-panel.impact-1 {
  --impact-preview-border: rgba(181, 160, 84, 0.72);
}

.stage-panel.impact-2 {
  --impact-preview-border: rgba(193, 145, 47, 0.78);
}

.stage-panel.impact-3 {
  --impact-preview-border: rgba(214, 143, 20, 0.84);
}

.stage-panel.impact-4 {
  --impact-preview-border: rgba(225, 111, 25, 0.88);
}

.stage-panel.impact-5 {
  --impact-preview-border: rgba(194, 59, 24, 0.92);
}

.asset-viewer img,
.asset-viewer video,
.asset-viewer audio,
.asset-viewer iframe {
  display: block;
  width: 100%;
}

.asset-viewer img {
  max-height: calc(100vh - 220px);
  object-fit: contain;
  background: #111;
}

.image-stage {
  display: grid;
  min-height: calc(100vh - 220px);
  grid-template-rows: auto minmax(0, 1fr);
}

.image-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 20, 28, 0.94);
}

.image-zoom-button,
.image-zoom-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.image-zoom-button {
  min-width: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.image-zoom-button.is-wide {
  min-width: 68px;
}

.image-zoom-level {
  min-width: 72px;
  padding: 0 12px;
  background: rgba(15, 154, 176, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.image-pan-shell {
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(10, 18, 25, 0.96), rgba(7, 13, 18, 1)),
    linear-gradient(90deg, rgba(11, 109, 122, 0.06), rgba(15, 154, 176, 0.04));
  cursor: zoom-in;
}

.image-pan-shell.is-zoomed {
  place-items: start center;
  cursor: grab;
}

.image-pan-shell img {
  width: auto;
  max-width: 100%;
  max-height: none;
  transform-origin: top center;
  transition: transform 140ms ease;
  will-change: transform;
}

.asset-viewer video {
  max-height: calc(100vh - 220px);
  background: #111;
}

.asset-viewer audio {
  margin: 24px auto;
  width: min(92%, 760px);
}

.asset-viewer iframe {
  height: calc(100vh - 220px);
  min-height: calc(100vh - 220px);
  border: 0;
  background: #fff;
}

.pdf-stage {
  display: grid;
  min-height: calc(100vh - 220px);
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 280px);
  min-height: 520px;
  border: 0;
  background: #fff;
}

.pdf-frame-mobile {
  display: none;
}

.pdf-frame-rendered {
  overflow: auto;
  padding: 14px;
}

.pdf-render-status {
  display: grid;
  min-height: 100%;
  place-items: center;
  text-align: center;
  color: rgba(73, 58, 37, 0.82);
  font-size: 0.95rem;
}

.pdf-render-status p {
  max-width: 24rem;
  margin: 0;
}

.pdf-render-status.is-error {
  color: rgba(122, 61, 24, 0.92);
}

.pdf-render-scroll {
  display: grid;
  gap: 16px;
}

.pdf-render-page {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.pdf-render-page-content {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(31, 24, 16, 0.12);
}

.pdf-render-page-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(104, 87, 61, 0.72);
}

.pdf-render-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
}

.pdf-search-highlights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-search-highlight {
  position: absolute;
  border-radius: 3px;
  background: rgba(240, 196, 25, 0.34);
  box-shadow: 0 0 0 1px rgba(166, 123, 8, 0.1);
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  border-top: 1px solid rgba(84, 91, 101, 0.14);
  background: linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(226, 231, 238, 0.96));
}

.pdf-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(84, 91, 101, 0.16);
  background: linear-gradient(180deg, #ffffff, #dfe5ed);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24, 26, 30, 0.12);
}

.stage-text-reader {
  height: 100%;
  min-height: inherit;
  overflow: auto;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(228, 233, 239, 0.94));
  color: var(--ink);
  white-space: pre-wrap;
  line-height: 1.6;
}

.search-highlight {
  padding: 0 0.12em;
  border-radius: 0.22em;
  background: rgba(240, 196, 25, 0.42);
  color: inherit;
  box-shadow: 0 0 0 1px rgba(166, 123, 8, 0.1);
}

.stage-placeholder {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 220px);
  padding: 24px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

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

.detail-panel h2,
.reader-panel h3,
.stage-panel h3 {
  line-height: 1.08;
}

.detail-panel h2 {
  font-size: clamp(1.45rem, 1.85vw, 1.95rem);
}

.group-meta,
.group-notes,
.asset-meta {
  margin-top: 6px;
}

.group-notes {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.52;
}

.detail-panel,
.reader-panel {
  padding: 14px 15px;
}

.detail-panel .eyebrow,
.reader-panel .eyebrow,
.asset-section .eyebrow {
  margin-bottom: 4px;
}

.detail-panel .count-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.reader-panel .panel-head,
.stage-panel .panel-head {
  margin-bottom: 0;
}

.reader-panel .inline-actions,
.stage-panel .inline-actions {
  gap: 10px;
}

.button-quiet {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(250, 252, 254, 0.82);
  font-size: 0.78rem;
}

.button-quiet:disabled {
  opacity: 0.45;
  cursor: default;
}

.stage-panel {
  position: sticky;
  top: 22px;
  z-index: 8;
}

.stage-panel .asset-meta {
  min-height: 1.2em;
  margin-top: 4px;
  font-size: 0.82rem;
}

.stage-panel .eyebrow {
  margin-bottom: 2px;
}

#stage-mode-label {
  margin-bottom: 3px;
  font-size: 0.74rem;
  line-height: 1.2;
}

#stage-title {
  font-size: clamp(1.32rem, 1.55vw, 1.5rem);
  line-height: 1.08;
}

.asset-section {
  padding: 14px 15px;
}

.section-count {
  background: rgba(15, 154, 176, 0.12);
  color: var(--accent);
}

.empty-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.text-link,
.download-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link {
  color: var(--accent);
}

.download-link {
  color: var(--accent-2);
}

.rights-panel {
  margin-top: 28px;
  padding: 20px 24px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(226, 231, 238, 0.86));
}

.rights-panel .panel-head {
  margin-bottom: 10px;
}

.rights-panel .eyebrow {
  margin-bottom: 4px;
  font-size: 0.55rem;
}

.rights-panel h2 {
  font-size: 1rem;
  line-height: 1.15;
}

.rights-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  width: 100%;
  color: rgba(22, 26, 31, 0.86);
  font-size: 0.5rem;
  line-height: 1.45;
}

.rights-copy p {
  margin: 0;
}

.site-footer {
  padding: 22px 8px 0;
  color: rgba(239, 242, 246, 0.82);
  font-size: 0.5rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .hero-main,
  .themes-layout,
  .mirrors-grid,
  .asset-sections {
    grid-template-columns: 1fr;
  }

  .library-shell {
    grid-template-columns: 1fr;
  }

  .viewer-summary {
    grid-template-columns: 1fr;
  }

  .theme-rail,
  .library-sidebar,
  .stage-panel {
    position: static;
  }

  .library-sidebar {
    display: contents;
  }

  .collection-panel {
    order: 1;
    max-height: none;
    overflow: hidden;
  }

  .viewer-column {
    order: 2;
  }

  .challenge-panel {
    order: 3;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .stage-panel {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
    overflow: visible;
  }

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

  .hero-media {
    margin-top: 24px;
    max-width: 806px;
    min-height: 884px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1520px);
    padding-top: 18px;
  }

  .hero,
  .themes-panel,
  .timeline-panel,
  .collection-panel,
  .rights-panel,
  .detail-panel,
  .reader-panel,
  .stage-panel,
  .asset-section {
    padding: 18px;
  }

  .text-reader {
    max-height: 240px;
  }

  .asset-viewer,
  .image-stage,
  .stage-placeholder {
    min-height: 280px;
    max-height: none;
  }

  .asset-viewer iframe {
    min-height: 560px;
  }

  .pdf-stage {
    min-height: 620px;
  }

  .pdf-frame {
    height: 620px;
    min-height: 560px;
  }

  .pdf-frame-native {
    display: none;
  }

  .pdf-frame-mobile {
    display: block;
  }

  .timeline-track {
    height: 178px;
  }

  .timeline-status-segment span {
    max-width: 96px;
    font-size: 0.54rem;
    letter-spacing: 0.05em;
  }

  .hero-stats,
  .panel-head,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head,
  .detail-head {
    display: block;
  }

  .library-sidebar {
    gap: 10px;
    height: auto;
    max-height: none;
  }

  .collection-panel {
    padding: 12px 14px;
    border-radius: 18px;
    display: block;
  }

  .collection-panel .mobile-panel-body {
    display: block;
    overflow: visible;
    padding-right: 0;
  }

  .collection-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }

  .collection-panel .panel-head h2 {
    font-size: 0.98rem;
    line-height: 1.05;
  }

  .collection-panel .panel-head .eyebrow {
    margin-bottom: 2px;
  }

  .mobile-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    min-width: 78px;
    padding: 0 10px;
    font-size: 0.72rem;
    flex: 0 0 auto;
  }

  .collection-panel.is-collapsed {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .collection-panel.is-collapsed .panel-head {
    min-height: 34px;
  }

  .collection-nav-controls {
    position: static;
    padding-top: 0;
    background: transparent;
  }

  .mobile-exhibit-bar {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-exhibit-bar.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-exhibit-bar .exhibit-nav-button {
    min-height: 42px;
    font-size: 0.74rem;
    background: rgba(255, 250, 238, 0.5);
    box-shadow: 0 10px 24px rgba(23, 24, 28, 0.08);
  }

  .mobile-exhibit-label {
    display: none;
  }

  .viewer-column,
  .stage-panel {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    margin-top: 12px;
  }

  .download-gate-grid {
    grid-template-columns: 1fr;
  }
}
