:root {
  --bg-color: #000000;
  --bg-alt: #070709;
  --surface: rgba(18, 18, 20, 0.88);
  --surface-strong: rgba(24, 24, 28, 0.94);
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --accent: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.2);
  --glass-bg: rgba(28, 28, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius-lg: 24px;
  --radius: 16px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --z-nav: 100;
  --z-image-layer: 10;
}

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

html {
  background: var(--bg-color);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(41, 151, 255, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #020203 0%, #050507 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg-color);
}

.view {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden {
  display: none !important;
}

.view.hidden {
  display: none !important;
}

.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.overlay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.overlay-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 18, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.overlay-modal-close,
.toolbar-link,
.view-switch-btn,
.landing-mode-link {
  appearance: none;
  border: 0;
  font: inherit;
}

.overlay-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  cursor: pointer;
}

.overlay-modal-body {
  color: var(--text-main);
}

.overlay-modal-body .generation-scores {
  margin-bottom: 1.25rem;
}

.overlay-modal-body .generation-prompt {
  display: block;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.landing-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 3rem);
}

.landing-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.42;
  pointer-events: none;
}

.landing-glow-a {
  width: 44rem;
  height: 44rem;
  top: -16rem;
  left: -10rem;
  background: rgba(41, 151, 255, 0.12);
}

.landing-glow-b {
  width: 36rem;
  height: 36rem;
  bottom: -14rem;
  right: -10rem;
  background: rgba(255, 255, 255, 0.08);
}

.landing-frame {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 3.5rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.landing-exhibit {
  display: grid;
  grid-template-columns: minmax(360px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3.5rem, 6vw, 7.5rem);
  align-items: start;
  padding-top: clamp(1.5rem, 5vh, 4rem);
}

.landing-copy-column {
  max-width: 31rem;
}

.landing-kicker,
.page-kicker {
  margin: 0 0 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.landing-title,
.logo {
  font-family: var(--font-display);
}

.landing-title {
  margin: 0;
  max-width: none;
  font-size: clamp(3.45rem, 5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  white-space: normal;
}

.landing-title span {
  display: block;
}

.landing-lead {
  max-width: 26rem;
  margin: 1.65rem 0 0;
  color: rgba(245, 245, 247, 0.88);
  font-size: clamp(1rem, 1.08vw, 1.14rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.landing-mode-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 2.15rem;
}

.landing-mode-label {
  color: rgba(245, 245, 247, 0.5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-mode-link {
  padding: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.86);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.landing-mode-link:hover,
.landing-mode-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.landing-tableau {
  --landing-reveal-ease: cubic-bezier(0.23, 0.08, 0.1, 1);
  min-height: clamp(24rem, 34vw, 34rem);
  display: grid;
  align-items: stretch;
  padding-top: 1rem;
  position: relative;
  isolation: isolate;
}

.landing-tableau-layer {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: inherit;
  pointer-events: none;
  opacity: 1;
  z-index: 1;
}

.landing-tableau-layer.is-active,
.landing-tableau-layer.is-underlay {
  z-index: 1;
}

.landing-tableau-layer.is-ready,
.landing-tableau-layer.is-ready.is-revealing {
  z-index: 2;
}

.landing-tableau-stage {
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(2rem, 3vw, 3.2rem);
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

.landing-tableau-stage:focus-visible .landing-tableau-reference img,
.landing-tableau-stage:focus-visible .landing-tableau-node img {
  box-shadow: 0 0 0 2px rgba(244, 244, 245, 0.42), 0 34px 72px rgba(0, 0, 0, 0.44);
}

.landing-tableau-item {
  opacity: 1;
  transition-property: opacity;
  transition-duration: var(--landing-item-duration);
  transition-timing-function: var(--landing-reveal-ease);
}

.landing-tableau-item.is-hidden {
  opacity: 0;
}

.landing-tableau-reference {
  margin: 0;
  width: clamp(220px, 22vw, 320px);
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  transform: translateY(0.4rem);
}

.landing-tableau-note {
  position: absolute;
  top: -1.4rem;
  left: 0;
  color: rgba(245, 245, 247, 0.48);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-tableau-reference img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.44);
  background: #050506;
  transform: translateZ(0);
  will-change: auto;
}

.landing-tableau-drift {
  display: flex;
  align-items: center;
  gap: clamp(0.95rem, 1.25vw, 1.3rem);
  flex: 1 1 auto;
  min-width: 0;
  padding: 2.8rem 0 2.2rem;
}

.landing-tableau-node {
  margin: 0;
  width: var(--tableau-width);
  flex: 0 0 auto;
  opacity: 0.97;
  transform: translateY(var(--tableau-shift)) rotate(var(--tableau-rotate));
  transform-origin: center center;
  transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

.landing-tableau-node:hover {
  opacity: 1;
  filter: brightness(1.06);
  transform: translateY(calc(var(--tableau-shift) - 8px)) rotate(var(--tableau-rotate)) scale(1.02);
}

.landing-tableau-node img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  background: #050506;
  transform: translateZ(0);
  will-change: auto;
}

.landing-tableau-node-final {
  z-index: 2;
}

.landing-tableau-node-final img {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.landing-tableau-status {
  max-width: 28rem;
  margin: 0;
  color: rgba(245, 245, 247, 0.62);
  font-size: 1rem;
  line-height: 1.9;
}

.landing-wall-text {
  display: grid;
  grid-template-columns: minmax(140px, 0.22fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(1rem, 2vh, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-wall-label {
  margin: 0.15rem 0 0;
  color: rgba(245, 245, 247, 0.44);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-wall-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.landing-wall-paragraph {
  max-width: 38rem;
  margin: 0;
  color: rgba(245, 245, 247, 0.74);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.95;
  text-wrap: pretty;
}

.page-header {
  width: min(1400px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

.journey-wall-page-header {
  padding-bottom: 0.5rem;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toolbar-link {
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toolbar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.view-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.view-switch-btn {
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 245, 247, 0.76);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.view-switch-btn.is-active {
  background: rgba(41, 151, 255, 0.22);
  color: #fff;
}

.page-heading {
  text-align: center;
}

.logo {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tagline {
  max-width: 48rem;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.main,
.journey-wall-main {
  width: min(1400px, calc(100vw - 2rem));
  margin: 0 auto;
}

.main {
  padding: 1rem 0 3rem;
}

.journey-wall-main {
  padding: 1rem 0 4rem;
}

.runs-grid {
  --run-grid-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--run-grid-columns), minmax(0, 1fr));
  align-items: start;
  gap: 2rem;
  padding: 1rem 0 3rem;
}

.runs-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.runs-grid.runs-grid-staggered .runs-column[data-column-index="1"] {
  margin-top: 2.5rem;
}

.runs-grid.runs-grid-staggered .runs-column[data-column-index="2"] {
  margin-top: 5rem;
}

.run-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  outline: none;
}

.run-card:hover,
.run-card:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.run-gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.run-card:hover .run-gallery-img,
.run-card:focus-visible .run-gallery-img {
  transform: scale(1.05);
}

.run-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.run-card:hover .run-gallery-overlay,
.run-card:focus-visible .run-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.run-card-id {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.run-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.journey-wall-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journey-strip {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.92), rgba(10, 10, 12, 0.9));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.journey-strip:hover,
.journey-strip:focus-visible {
  border-color: rgba(41, 151, 255, 0.42);
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.94), rgba(12, 12, 14, 0.92));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.journey-strip-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
  padding: 0.3rem 0;
}

.journey-strip-track::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.28), rgba(41, 151, 255, 0.35));
  transform: translateY(-50%);
  z-index: 0;
}

.journey-node {
  --journey-thumb-radius: 18px;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  transition: transform 0.22s ease, filter 0.22s ease;
  transform-origin: center center;
}

.journey-node:hover {
  transform: translateY(-4px) scale(1.045);
  z-index: 3;
  filter: brightness(1.04);
}

.journey-node-reference {
  margin-right: 2.1rem;
}

.journey-node-reference-connector::before {
  content: "\2192";
  position: absolute;
  top: 50%;
  left: calc(100% + 0.55rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.journey-thumb-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 4;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(41, 151, 255, 0.92);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(41, 151, 255, 0.2);
  pointer-events: none;
}

.journey-thumb-emoji {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  line-height: 1;
  pointer-events: none;
}

.journey-node-reference::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border-radius: calc(var(--journey-thumb-radius) + 4px);
  border: 1px solid rgba(41, 151, 255, 0.28);
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.12), rgba(41, 151, 255, 0.02));
  z-index: -1;
}

.journey-thumb {
  width: 96px;
  aspect-ratio: 9 / 16;
  border-radius: var(--journey-thumb-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050506;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  display: block;
}

.journey-thumb-reference {
  border-color: rgba(41, 151, 255, 0.64);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(41, 151, 255, 0.26);
}

.journey-thumb-final {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.journey-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: var(--z-nav);
}

.back-btn {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 0.8;
}

.run-info {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.journey-scroll-container {
  width: 100%;
}

.journey-sticky-container {
  position: sticky;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  display: flex;
  overflow: hidden;
}

.journey-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.journey-center > * {
  pointer-events: auto;
}

.dialog-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.glass-panel {
  background: rgba(30, 30, 32, 0.4);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.inner-dialog {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 400;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.dialog-meta {
  font-family: var(--font-mono);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.dialog-step {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dialog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.status-badge[data-kind="state"] {
  background: rgba(41, 151, 255, 0.2);
  border-color: rgba(41, 151, 255, 0.45);
  color: #cfe8ff;
  box-shadow: inset 0 0 0 1px rgba(41, 151, 255, 0.15);
}

.status-badge[data-kind="tone"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(245, 245, 247, 0.86);
}

.emoji-container {
  font-size: 4rem;
  line-height: 1;
  margin-top: 1rem;
  align-self: flex-start;
  transition: opacity 0.4s ease, filter 0.4s ease;
  will-change: opacity, filter, transform;
  animation: floatThinking 4s ease-in-out infinite;
}

@keyframes floatThinking {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
  }

  50% {
    transform: translateY(-6px);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }
}

.journey-right-layer {
  position: relative;
  flex: 1;
  height: 100%;
  z-index: var(--z-image-layer);
  display: flex;
  align-items: center;
  justify-content: center;
}

.generation-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity, transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1.5rem;
}

.generation-frame.active {
  opacity: 1;
  z-index: 2;
}

.split-view {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 350px;
  align-items: center;
  justify-content: center;
}

.split-pane {
  position: relative;
  flex: 1;
  height: 90%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(20, 20, 22, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.split-label {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #fff;
  z-index: 20;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.stack-card {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  background: #000;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.stack-card.ref-card {
  width: 75%;
  height: 75%;
  top: 0;
  left: 0;
  z-index: 1;
}

.stack-card.prev-card {
  width: 55%;
  height: 55%;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.stack-card.ref-card:hover:not(.focused),
.stack-card.prev-card:hover:not(.focused) {
  transform: scale(1.02);
  z-index: 3;
}

.stack-card.focused {
  width: 85%;
  height: 85%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.card-badge {
  position: absolute;
  top: -2.5rem;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  z-index: 5;
}

.generation-media {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.generation-frame.active .generation-media {
  transform: scale(1.02);
}

.generation-frame:not(.active) .generation-media {
  transform: scale(0.95);
}

.generation-overlay {
  background: rgba(20, 20, 22, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  max-width: 800px;
  width: 100%;
  color: var(--text-main);
  opacity: 0.3;
  transition: all 0.4s ease;
  max-height: 12.5rem;
  min-height: 5.5rem;
  overflow: hidden auto;
  cursor: zoom-in;
  outline: none;
  flex-shrink: 0;
}

.generation-media:hover + .generation-overlay,
.generation-overlay:hover {
  opacity: 1;
  background: rgba(20, 20, 22, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.generation-overlay:focus-visible {
  opacity: 1;
  background: rgba(20, 20, 22, 0.8);
  border-color: rgba(41, 151, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(41, 151, 255, 0.18);
}

.generation-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.score-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.score-pill strong {
  margin-right: 0.3rem;
  color: inherit;
}

.generation-prompt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loading,
.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 4rem;
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  .landing-frame {
    width: min(1440px, calc(100vw - 1.75rem));
  }

  .landing-exhibit {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .landing-copy-column {
    max-width: 42rem;
  }

  .landing-wall-text,
  .landing-wall-body {
    grid-template-columns: 1fr;
  }

  .page-toolbar {
    margin-bottom: 2rem;
  }

  .split-view {
    gap: 240px;
  }
}

@media (max-width: 900px) {
  .landing-shell {
    padding: 1rem;
  }

  .landing-frame {
    width: calc(100vw - 2rem);
    gap: 3rem;
  }

  .landing-exhibit {
    padding-top: 1rem;
  }

  .landing-tableau {
    min-height: 0;
  }

  .landing-tableau-stage {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .landing-tableau-reference {
    width: min(50vw, 280px);
    transform: none;
  }

  .landing-tableau-drift {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0 1rem;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .view-switch {
    justify-content: center;
  }

  .runs-grid {
    grid-template-columns: repeat(var(--run-grid-columns), minmax(0, 1fr));
  }

  .journey-thumb {
    width: 84px;
  }

  .split-view {
    flex-direction: column;
    gap: 1rem;
    padding-top: 10rem;
  }

  .split-pane {
    max-width: none;
    width: 100%;
    height: calc(50% - 0.5rem);
  }

  .journey-center {
    top: 2.5rem;
    left: 1.5rem;
    transform: none;
    width: min(320px, calc(100vw - 3rem));
  }
}

@media (max-width: 600px) {
  .page-header,
  .main,
  .journey-wall-main {
    width: calc(100vw - 1.5rem);
  }

  .landing-shell {
    padding: 0.85rem 0.75rem 1.25rem;
  }

  .landing-frame {
    width: calc(100vw - 1.5rem);
    gap: 2.5rem;
  }

  .landing-title {
    font-size: clamp(2.85rem, 13vw, 3.7rem);
  }

  .landing-lead {
    max-width: 100%;
    font-size: 1rem;
  }

  .landing-mode-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .landing-tableau-reference {
    width: min(60vw, 230px);
  }

  .landing-tableau-drift {
    gap: 0.75rem;
  }

  .landing-tableau-node {
    width: calc(var(--tableau-width) * 0.82);
  }

  .landing-tableau-reference img {
    border-radius: 24px;
  }

  .landing-tableau-node img {
    border-radius: 18px;
  }

  .landing-wall-paragraph {
    font-size: 1rem;
    line-height: 1.85;
  }

  .landing-wall-text {
    gap: 1rem;
  }

  .runs-grid {
    grid-template-columns: repeat(var(--run-grid-columns), minmax(0, 1fr));
    gap: 1rem;
  }

  .runs-column {
    gap: 1rem;
  }

  .runs-grid.runs-grid-staggered .runs-column[data-column-index="1"],
  .runs-grid.runs-grid-staggered .runs-column[data-column-index="2"] {
    margin-top: 0;
  }

  .journey-strip {
    padding: 0.9rem 0.8rem;
  }

  .journey-thumb {
    width: 72px;
  }

  .journey-node {
    --journey-thumb-radius: 14px;
  }

  .journey-node-reference {
    margin-right: 1.45rem;
  }

  .journey-node-reference-connector::before {
    left: calc(100% + 0.35rem);
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.78rem;
  }

  .journey-thumb-emoji {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.74rem;
  }

  .journey-nav {
    padding: 1rem;
    gap: 1rem;
  }

  .run-info {
    display: none;
  }

  .journey-center {
    width: calc(100vw - 2rem);
    left: 1rem;
  }

  .glass-panel {
    height: 220px;
    padding: 1.25rem 1.1rem;
  }

  .inner-dialog {
    font-size: 1rem;
  }

  .emoji-container {
    font-size: 3rem;
  }
}

#run-detail-view {
  background:
    radial-gradient(circle at 18% 14%, rgba(16, 60, 116, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(1, 2, 5, 0.98), rgba(1, 1, 3, 1));
}

#run-detail-view .journey-scroll-container {
  width: 100%;
}

#run-detail-view .journey-nav {
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(2, 2, 3, 0.92), rgba(2, 2, 3, 0.58));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#run-detail-view .back-btn {
  color: rgba(245, 245, 247, 0.92);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
}

#run-detail-view .back-btn:hover {
  color: var(--accent);
  transform: translateX(-2px);
}

#run-detail-view .run-info {
  color: rgba(245, 245, 247, 0.42);
}

#run-detail-view .journey-sticky-container {
  position: sticky;
  top: 69px;
  left: 0;
  width: 100%;
  height: calc(100vh - 69px);
  display: block;
  overflow: hidden;
}

#run-detail-view .glass-panel {
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.84), rgba(9, 9, 12, 0.84));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: block;
}

#run-detail-view .journey-stage-shell {
  --journey-accent: #6cc7ff;
  --journey-accent-soft: rgba(108, 199, 255, 0.18);
  --journey-accent-glow: rgba(108, 199, 255, 0.3);
  --journey-accent-haze: rgba(164, 221, 255, 0.18);
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(230px, 18vw) minmax(0, 1fr) minmax(360px, 29vw);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.2rem, 2vw, 2.4rem);
  background:
    radial-gradient(circle at 22% 18%, var(--journey-accent-haze), transparent 26%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(2, 2, 3, 0.98), rgba(4, 5, 8, 0.96));
  isolation: isolate;
}

#run-detail-view .journey-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#run-detail-view .journey-atmosphere-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.72;
}

#run-detail-view .journey-atmosphere-orb-a {
  width: 26vw;
  height: 26vw;
  min-width: 260px;
  min-height: 260px;
  top: 8%;
  left: -4%;
  background: var(--journey-accent-glow);
}

#run-detail-view .journey-atmosphere-orb-b {
  width: 22vw;
  height: 22vw;
  min-width: 220px;
  min-height: 220px;
  right: 8%;
  bottom: -6%;
  background: rgba(255, 224, 170, 0.1);
}

#run-detail-view .journey-atmosphere-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 92%);
}

#run-detail-view .journey-reference-anchor {
  position: relative;
  z-index: 3;
  grid-column: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--journey-accent-soft);
  overflow: hidden;
}

#run-detail-view .journey-reference-kicker,
#run-detail-view .journey-artifact-label,
#run-detail-view .journey-thought-topline,
#run-detail-view .journey-progress-label,
#run-detail-view .journey-progress-count {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

#run-detail-view .journey-reference-kicker {
  color: rgba(245, 245, 247, 0.48);
  font-size: 0.72rem;
}

#run-detail-view .journey-reference-status {
  color: rgba(245, 245, 247, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

#run-detail-view .journey-reference-image {
  width: 100%;
  height: auto;
  max-height: min(48vh, 430px);
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  background: #050506;
}

#run-detail-view .journey-reference-empty,
#run-detail-view .journey-stage-empty,
#run-detail-view .journey-scene-empty {
  color: rgba(245, 245, 247, 0.64);
  line-height: 1.6;
}

#run-detail-view .journey-stage {
  position: relative;
  grid-column: 2;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#run-detail-view .journey-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.965);
  transition: opacity 0.75s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

#run-detail-view .journey-scene.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 2;
}

#run-detail-view .journey-scene.is-before {
  transform: translate3d(0, -24px, 0) scale(1.02);
}

#run-detail-view .journey-scene.is-after {
  transform: translate3d(0, 24px, 0) scale(0.95);
}

#run-detail-view .journey-scene-haze {
  position: absolute;
  inset: 15% 12%;
  background: radial-gradient(circle, var(--scene-glow), transparent 72%);
  filter: blur(80px);
  opacity: 0.88;
}

#run-detail-view .journey-memory-cloud {
  position: absolute;
  inset: 0;
}

#run-detail-view .journey-memory-fragment {
  position: absolute;
  width: clamp(120px, 12vw, 170px);
  margin: 0;
  opacity: 0.62;
  filter: saturate(0.8);
}

#run-detail-view .journey-memory-fragment:nth-child(1) {
  top: 14%;
  left: 4%;
  transform: rotate(-10deg);
}

#run-detail-view .journey-memory-fragment:nth-child(2) {
  bottom: 12%;
  left: 11%;
  transform: rotate(7deg);
}

#run-detail-view .journey-memory-fragment:nth-child(3) {
  top: 56%;
  left: 20%;
  transform: rotate(-5deg);
}

#run-detail-view .journey-memory-fragment img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.66);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

#run-detail-view .journey-memory-fragment figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.42);
}

#run-detail-view .journey-main-figure {
  position: relative;
  z-index: 2;
  width: min(48vw, 700px);
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

#run-detail-view .journey-scene-label {
  align-self: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 8, 10, 0.78);
  color: rgba(245, 245, 247, 0.9);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#run-detail-view .journey-main-image {
  display: block;
  width: auto;
  max-width: min(100%, 700px);
  height: auto;
  max-height: min(78vh, 860px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  object-fit: contain;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48), 0 0 0 1px var(--scene-soft);
}

#run-detail-view .journey-story-column {
  position: relative;
  z-index: 3;
  grid-column: 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding-right: 0.25rem;
  overflow-y: auto;
  scrollbar-width: none;
}

#run-detail-view .journey-story-column::-webkit-scrollbar {
  width: 0;
}

#run-detail-view .journey-progress-panel,
#run-detail-view .journey-thought-panel,
#run-detail-view .journey-artifact-drawer {
  padding: 1rem 1.15rem;
  flex: 0 0 auto;
}

#run-detail-view .journey-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

#run-detail-view .journey-progress-label {
  font-size: 0.72rem;
  color: rgba(245, 245, 247, 0.52);
}

#run-detail-view .journey-progress-count {
  font-size: 0.72rem;
  color: rgba(245, 245, 247, 0.36);
}

#run-detail-view .journey-progress-track {
  margin-top: 0.9rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#run-detail-view .journey-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--journey-accent), rgba(255, 255, 255, 0.92));
  box-shadow: 0 0 18px var(--journey-accent-glow);
  transition: width 0.45s ease;
}

#run-detail-view .journey-thought-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--journey-accent-soft);
  transition: box-shadow 0.45s ease, transform 0.45s ease, border-color 0.45s ease;
  max-height: min(52vh, 34rem);
  overflow-y: auto;
  scrollbar-width: none;
}

#run-detail-view .journey-thought-panel::-webkit-scrollbar {
  width: 0;
}

#run-detail-view .journey-thought-panel.is-refreshing {
  transform: translateY(4px);
}

#run-detail-view .journey-thought-topline {
  font-size: 0.72rem;
  color: rgba(245, 245, 247, 0.52);
}

#run-detail-view .journey-thought-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

#run-detail-view .journey-emoji-container {
  width: 4.2rem;
  height: 4.2rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--journey-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 28px var(--journey-accent-glow);
  font-size: 2rem;
  line-height: 1;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

#run-detail-view .journey-emoji-container.is-refreshing {
  opacity: 0.18;
  transform: translateY(10px) scale(0.92);
  filter: blur(8px);
}

#run-detail-view .journey-thought-copy {
  min-width: 0;
}

#run-detail-view .inner-dialog {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.35vw, 1.7rem);
  line-height: 1.18;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#run-detail-view .journey-thought-panel.is-refreshing .inner-dialog,
#run-detail-view .journey-thought-panel.is-refreshing .journey-analysis,
#run-detail-view .journey-thought-panel.is-refreshing .dialog-badges {
  opacity: 0.2;
  transform: translateY(8px);
}

#run-detail-view .journey-analysis {
  margin-top: 0.95rem;
  color: rgba(245, 245, 247, 0.7);
  font-size: 0.92rem;
  line-height: 1.62;
}

#run-detail-view .dialog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#run-detail-view .status-badge[data-kind="state"] {
  background: var(--journey-accent-soft);
  border-color: var(--journey-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#run-detail-view .journey-artifact-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#run-detail-view .journey-drawer-toggle {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: rgba(245, 245, 247, 0.9);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

#run-detail-view .journey-drawer-toggle:hover {
  color: var(--journey-accent);
}

#run-detail-view .journey-artifact-body {
  display: grid;
  gap: 1rem;
}

#run-detail-view .journey-artifact-section {
  display: grid;
  gap: 0.55rem;
}

#run-detail-view .journey-artifact-label {
  font-size: 0.68rem;
  color: rgba(245, 245, 247, 0.46);
}

#run-detail-view .journey-artifact-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

#run-detail-view .journey-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#run-detail-view .journey-metric-pill strong {
  color: inherit;
}

#run-detail-view .journey-artifact-prompt {
  color: rgba(245, 245, 247, 0.84);
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  #run-detail-view .journey-stage-shell {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }

  #run-detail-view .journey-reference-anchor {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  #run-detail-view .journey-stage {
    grid-column: 2;
    grid-row: 1;
  }

  #run-detail-view .journey-story-column {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
    align-items: end;
  }

  #run-detail-view .journey-memory-fragment:nth-child(3) {
    display: none;
  }

  #run-detail-view .journey-main-figure {
    width: min(54vw, 620px);
  }
}

@media (max-width: 900px) {
  #run-detail-view .journey-stage-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 1rem;
  }

  #run-detail-view .journey-reference-anchor {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: min(34vw, 170px);
    padding: 0.85rem;
  }

  #run-detail-view .journey-stage {
    grid-column: 1;
    grid-row: 1;
  }

  #run-detail-view .journey-story-column {
    grid-column: 1;
    grid-row: 2;
    display: flex;
  }

  #run-detail-view .journey-main-figure {
    width: min(70vw, 520px);
  }

  #run-detail-view .journey-main-image {
    max-height: 60vh;
  }

  #run-detail-view .journey-memory-fragment:nth-child(n+2) {
    display: none;
  }
}

@media (max-width: 600px) {
  #run-detail-view .journey-nav {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }

  #run-detail-view .run-info {
    display: none;
  }

  #run-detail-view .journey-stage-shell {
    padding: 0.85rem;
  }

  #run-detail-view .journey-reference-anchor {
    width: min(36vw, 146px);
    top: 0.85rem;
    left: 0.85rem;
    gap: 0.5rem;
  }

  #run-detail-view .journey-reference-status {
    display: none;
  }

  #run-detail-view .journey-story-column {
    gap: 0.8rem;
    padding-bottom: 5.8rem;
  }

  #run-detail-view .journey-progress-panel,
  #run-detail-view .journey-thought-panel {
    max-height: none;
    padding: 0.9rem 1rem;
  }

  #run-detail-view .journey-thought-row {
    gap: 0.8rem;
  }

  #run-detail-view .journey-emoji-container {
    width: 3.45rem;
    height: 3.45rem;
    font-size: 1.55rem;
  }

  #run-detail-view .inner-dialog {
    font-size: 1.02rem;
    line-height: 1.28;
  }

  #run-detail-view .journey-analysis {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  #run-detail-view .journey-artifact-drawer {
    position: fixed;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 30;
    max-height: 42vh;
    overflow: auto;
  }

  #run-detail-view .journey-main-figure {
    width: min(82vw, 420px);
  }

  #run-detail-view .journey-main-image {
    max-height: 54vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view {
    animation: none;
  }

  .landing-tableau-layer,
  .landing-tableau-item,
  .landing-tableau-reference img,
  .landing-tableau-node img {
    animation: none;
    transition: none;
  }

  .landing-tableau-node,
  .landing-tableau-node:hover,
  .landing-mode-link:hover,
  .landing-mode-link:focus-visible {
    transform: none;
  }

  #run-detail-view .journey-scene,
  #run-detail-view .journey-progress-fill,
  #run-detail-view .journey-thought-panel,
  #run-detail-view .journey-emoji-container,
  #run-detail-view .inner-dialog,
  #run-detail-view .journey-analysis,
  #run-detail-view .dialog-badges {
    animation: none;
    transition: none;
    transform: none;
  }
}
