:root {
  color-scheme: dark;
  --ink: #11100f;
  --ink-soft: #1a1816;
  --panel: rgba(20, 19, 17, 0.78);
  --panel-solid: #181613;
  --cream: #f4efe7;
  --cream-muted: #cfc6b8;
  --film: #8c867d;
  --gold: #c6a15b;
  --gold-soft: rgba(198, 161, 91, 0.24);
  --teal: #65b7aa;
  --rose: #a85d61;
  --blue: #6e91b8;
  --line: rgba(244, 239, 231, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --focus: 0 0 0 3px rgba(101, 183, 170, 0.4);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(17, 16, 15, 0.72), #11100f 58%),
    linear-gradient(115deg, rgba(101, 183, 170, 0.12), transparent 32%),
    linear-gradient(245deg, rgba(168, 93, 97, 0.14), transparent 38%),
    #11100f;
  color: var(--cream);
  font-family:
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.82;
  background:
    linear-gradient(90deg, rgba(198, 161, 91, 0.13), transparent 16%, transparent 84%, rgba(101, 183, 170, 0.1)),
    linear-gradient(180deg, rgba(244, 239, 231, 0.06), transparent 22%, transparent 76%, rgba(168, 93, 97, 0.08));
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.time-device:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  background: #11100f;
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.app-shell {
  min-height: 100vh;
}

.boot-error {
  position: fixed;
  inset: auto 24px 24px 24px;
  z-index: 100;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(168, 93, 97, 0.5);
  border-radius: var(--radius);
  background: rgba(24, 22, 19, 0.96);
  box-shadow: var(--shadow);
}

.boot-error strong,
.boot-error p {
  display: block;
  margin: 0 0 12px;
}

.boot-error p {
  color: var(--cream-muted);
  line-height: 1.5;
}

.screen {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 32px;
}

.screen.is-active {
  display: grid;
  animation: fadeIn 700ms ease both;
}

.opening-screen,
.key-screen {
  text-align: center;
}

.archive-mark,
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-weight: 600;
}

.opening-screen h1 {
  max-width: 980px;
  font-size: 4.9rem;
  line-height: 1;
}

.opening-screen h1 span {
  display: inline-block;
  margin-top: 16px;
  color: var(--cream-muted);
  font-size: 2rem;
}

.opening-line {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--cream-muted);
  font-size: 1.2rem;
}

.opening-line.zh {
  margin-top: 8px;
  color: var(--film);
}

.primary-action,
.secondary-action,
.icon-button,
.rail-button,
.key-card,
.type-option,
.filter-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(244, 239, 231, 0.07);
}

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
}

.primary-action {
  margin-top: 28px;
  border-color: rgba(198, 161, 91, 0.72);
  background: linear-gradient(180deg, rgba(198, 161, 91, 0.26), rgba(198, 161, 91, 0.12));
}

.primary-action small,
.secondary-action small {
  display: none;
}

.secondary-action {
  background: rgba(244, 239, 231, 0.06);
}

.primary-action:hover,
.secondary-action:hover,
.icon-button:hover,
.rail-button:hover,
.key-card:hover,
.type-option:hover,
.filter-button:hover {
  border-color: rgba(244, 239, 231, 0.34);
  background: rgba(244, 239, 231, 0.11);
}

.compact {
  margin-top: 0;
  min-width: 170px;
}

.screen-heading {
  max-width: 760px;
  margin: 0 auto 30px;
}

.screen-heading h2 {
  font-size: 3rem;
  line-height: 1.08;
}

.screen-heading p:not(.eyebrow) {
  color: var(--cream-muted);
}

.key-grid {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.key-card {
  min-height: 180px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(24, 22, 19, 0.74);
  box-shadow: var(--shadow);
}

.key-card svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.key-card span {
  color: var(--cream-muted);
}

.key-card.is-selected {
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.14);
}

.unlock-form {
  width: min(500px, 100%);
  margin: 24px auto 0;
  text-align: left;
}

.unlock-form label {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.pin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 231, 0.08);
  color: var(--cream);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(207, 198, 184, 0.58);
}

.form-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--film);
  font-size: 0.86rem;
}

.archive-workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  position: relative;
}

.archive-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto repeat(8, minmax(52px, 70px)) 1fr;
  gap: 8px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(17, 16, 15, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: inset -1px 0 0 rgba(244, 239, 231, 0.04);
}

.rail-brand {
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.7rem;
}

.rail-button,
.icon-button {
  display: inline-grid;
  place-items: center;
}

.rail-button {
  position: relative;
  gap: 4px;
  padding: 8px 4px;
  font-size: 0.72rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.rail-button svg,
.icon-button svg,
.rail-brand svg {
  width: 21px;
  height: 21px;
}

.rail-button.is-active {
  border-color: rgba(101, 183, 170, 0.58);
  color: var(--teal);
  background: rgba(101, 183, 170, 0.12);
}

.rail-button.is-active::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
}

.workspace-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 32px;
  position: relative;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244, 239, 231, 0.08);
}

.topbar h2 {
  font-size: 2.2rem;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
}

.icon-button.is-on {
  border-color: rgba(101, 183, 170, 0.62);
  color: var(--teal);
  background: rgba(101, 183, 170, 0.16);
  box-shadow: inset 0 0 0 1px rgba(101, 183, 170, 0.2);
}

.view-stage {
  position: relative;
  min-height: 680px;
  height: calc(100vh - 130px);
  overflow: hidden;
  isolation: isolate;
  perspective: 1200px;
}

.view-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(244, 239, 231, 0.07);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(244, 239, 231, 0.025) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, rgba(244, 239, 231, 0.028), rgba(244, 239, 231, 0.008));
}

.view {
  --view-order: 0;
  position: absolute;
  inset: 0;
  display: block;
  overflow: auto;
  padding: 6px 8px 18px;
  opacity: 0;
  pointer-events: none;
  transform:
    translateY(calc((var(--view-order) - var(--active-view-index)) * 106%))
    scale(0.975)
    rotateX(calc((var(--active-view-index) - var(--view-order)) * 1.2deg));
  transform-origin: center;
  transition:
    transform 760ms cubic-bezier(0.2, 0.82, 0.18, 1),
    opacity 520ms ease,
    filter 520ms ease;
  filter: blur(6px);
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 161, 91, 0.5) transparent;
}

.view.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1) rotateX(0);
  filter: blur(0);
}

#view-room {
  --view-order: 0;
}

#view-timeline {
  --view-order: 1;
}

#view-book {
  --view-order: 2;
}

#view-timekeeper {
  --view-order: 3;
}

#view-photos {
  --view-order: 4;
}

#view-node {
  --view-order: 5;
}

.time-room-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: 52px;
}

.time-device {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 430px);
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(198, 161, 91, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 44%, rgba(244, 239, 231, 0.18), transparent 8%),
    linear-gradient(180deg, rgba(244, 239, 231, 0.08), rgba(244, 239, 231, 0.01)),
    radial-gradient(circle at center, rgba(198, 161, 91, 0.18), transparent 48%),
    radial-gradient(circle at 54% 58%, rgba(101, 183, 170, 0.1), transparent 54%);
  box-shadow:
    inset 0 0 90px rgba(198, 161, 91, 0.08),
    inset 0 0 24px rgba(244, 239, 231, 0.04),
    var(--shadow);
  animation: instrumentFloat 9s ease-in-out infinite;
}

.time-device p,
.time-device span {
  margin: 0;
  color: var(--cream-muted);
}

.time-device strong {
  display: block;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.9;
}

.device-ring {
  position: absolute;
  border: 1px solid rgba(244, 239, 231, 0.12);
  border-radius: 50%;
}

.device-ring.outer {
  inset: 22px;
}

.device-ring.inner {
  inset: 68px;
  border-color: rgba(101, 183, 170, 0.18);
}

.device-ring.script {
  inset: 46px;
  border-color: transparent;
  background:
    conic-gradient(from 90deg, transparent 0 18%, rgba(198, 161, 91, 0.52) 20%, transparent 23% 52%, rgba(101, 183, 170, 0.35) 56%, transparent 60% 100%);
  mask: radial-gradient(circle, transparent 64%, #000 65% 67%, transparent 68%);
  animation: slowRotate 18s linear infinite;
}

.room-copy h3 {
  max-width: 720px;
  font-size: 3rem;
  line-height: 1.12;
}

.room-copy p:not(.eyebrow) {
  color: var(--cream-muted);
  font-size: 1.05rem;
}

.room-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 12px;
  margin-top: 22px;
}

.focus-page,
.focus-signal {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(244, 239, 231, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 239, 231, 0.085), rgba(244, 239, 231, 0.018)),
    rgba(24, 22, 19, 0.66);
  box-shadow: inset 0 1px 0 rgba(244, 239, 231, 0.055);
}

.focus-page::after,
.focus-signal::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.focus-signal {
  border-color: rgba(101, 183, 170, 0.22);
}

.focus-signal::after {
  background: linear-gradient(90deg, var(--teal), transparent);
}

.focus-label,
.focus-page strong,
.focus-signal strong,
.focus-page small,
.focus-signal small {
  display: block;
}

.focus-label {
  color: var(--gold);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.focus-page strong,
.focus-signal strong {
  margin-top: 12px;
  color: var(--cream);
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-size: 1.45rem;
  line-height: 1.18;
}

.focus-page small,
.focus-signal small {
  margin-top: 12px;
  color: var(--cream-muted);
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.stat-tile {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 239, 231, 0.065), rgba(244, 239, 231, 0.025)),
    rgba(24, 22, 19, 0.62);
  box-shadow: inset 0 1px 0 rgba(244, 239, 231, 0.05);
}

.stat-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.stat-tile span,
.stat-tile small {
  display: block;
  color: var(--cream-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.stat-tile small {
  margin-top: 4px;
  color: var(--film);
  font-size: 0.8rem;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h3 {
  max-width: 760px;
  font-size: 2rem;
  line-height: 1.2;
}

.segmented,
.type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.search-field {
  width: min(360px, 100%);
}

.search-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.filter-button,
.type-option {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--cream-muted);
}

.filter-button.is-active,
.type-option.is-selected {
  border-color: rgba(198, 161, 91, 0.68);
  color: var(--cream);
  background: rgba(198, 161, 91, 0.14);
}

.constellation-map {
  position: relative;
  min-height: 690px;
  padding-top: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at center, rgba(244, 239, 231, 0.1) 0 2%, rgba(198, 161, 91, 0.08) 6%, transparent 22%),
    repeating-radial-gradient(ellipse at center, transparent 0 78px, rgba(244, 239, 231, 0.032) 79px 80px, transparent 81px 156px),
    linear-gradient(118deg, rgba(198, 161, 91, 0.12), transparent 24%, rgba(101, 183, 170, 0.09) 64%, transparent),
    linear-gradient(180deg, rgba(244, 239, 231, 0.055), rgba(17, 16, 15, 0.34)),
    #11100f;
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.34),
    inset 0 0 140px rgba(101, 183, 170, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.26);
}

.constellation-map::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82%;
  height: 46%;
  transform: translate(-50%, -50%) rotate(-17deg);
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(244, 239, 231, 0.12), rgba(198, 161, 91, 0.06) 22%, rgba(101, 183, 170, 0.04) 44%, transparent 72%);
  filter: blur(3px);
  opacity: 0.74;
}

.constellation-orbit {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.galaxy-chrome {
  position: absolute;
  inset: 24px 24px auto;
  z-index: 4;
  display: grid;
  gap: 12px;
  width: min(100% - 48px, 920px);
  pointer-events: none;
}

.galaxy-chrome > * {
  pointer-events: auto;
}

.galaxy-chrome .galaxy-home-card,
.galaxy-chrome .galaxy-meter {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  width: auto;
  max-width: none;
}

.galaxy-chrome .galaxy-meter {
  justify-content: flex-start;
}

@media (min-width: 981px) {
  .galaxy-chrome {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: start;
  }

  .galaxy-chrome .galaxy-meter {
    justify-content: flex-end;
  }
}

.constellation-map.is-paused .constellation-orbit,
.constellation-map.is-paused .star-spark,
.constellation-map.is-paused .dust-star,
.constellation-map.is-paused .galaxy-arm {
  animation-play-state: paused;
}

.constellation-map::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(244, 239, 231, 0.055);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(244, 239, 231, 0.04) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(244, 239, 231, 0.04) 50%, transparent 50.2%);
  opacity: 0.46;
}

.galaxy-home-card {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  width: min(390px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid rgba(244, 239, 231, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 239, 231, 0.09), rgba(244, 239, 231, 0.02)),
    rgba(17, 16, 15, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.galaxy-home-card strong,
.galaxy-home-card span {
  display: block;
}

.galaxy-home-card strong {
  color: var(--cream);
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-size: 2rem;
  line-height: 1.08;
}

.galaxy-home-card span {
  margin-top: 10px;
  color: var(--cream-muted);
  line-height: 1.5;
}

.galaxy-meter {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(430px, calc(100% - 48px));
}

.galaxy-meter span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(244, 239, 231, 0.13);
  border-radius: var(--radius);
  color: var(--cream-muted);
  background: rgba(17, 16, 15, 0.5);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
}

.galaxy-meter b {
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.constellation-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 182px;
  height: 182px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 161, 91, 0.22);
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(244, 239, 231, 0.12), transparent 34%),
    rgba(17, 16, 15, 0.5);
  box-shadow:
    inset 0 0 42px rgba(198, 161, 91, 0.08),
    0 0 42px rgba(101, 183, 170, 0.08),
    0 0 92px rgba(198, 161, 91, 0.1);
  pointer-events: none;
  z-index: 2;
}

.constellation-core::before,
.constellation-core::after {
  content: "";
  position: absolute;
  inset: -36px;
  border: 1px solid rgba(198, 161, 91, 0.12);
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(18deg);
}

.constellation-core::after {
  inset: -62px;
  border-color: rgba(101, 183, 170, 0.11);
  transform: rotateX(62deg) rotateZ(-34deg);
}

.constellation-core strong,
.constellation-core span,
.constellation-core small {
  display: block;
  text-align: center;
}

.constellation-core strong {
  font-family: Georgia, serif;
  font-size: 4.1rem;
  line-height: 0.9;
}

.constellation-core span {
  margin-top: 4px;
  color: var(--cream-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.constellation-core small {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.galaxy-arm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  height: 34%;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1.6px);
  opacity: 0.38;
  background:
    radial-gradient(ellipse at center, transparent 0 21%, rgba(198, 161, 91, 0.18) 26%, rgba(244, 239, 231, 0.08) 38%, transparent 68%);
  animation: armBreath 8s ease-in-out infinite;
}

.arm-one {
  transform: translate(-50%, -50%) rotate(-18deg);
}

.arm-two {
  width: 70%;
  height: 28%;
  background:
    radial-gradient(ellipse at center, transparent 0 20%, rgba(101, 183, 170, 0.16) 29%, rgba(244, 239, 231, 0.06) 42%, transparent 70%);
  transform: translate(-50%, -50%) rotate(36deg);
  animation-delay: -2.4s;
}

.arm-three {
  width: 58%;
  height: 22%;
  background:
    radial-gradient(ellipse at center, transparent 0 18%, rgba(110, 145, 184, 0.14) 30%, rgba(244, 239, 231, 0.05) 45%, transparent 72%);
  transform: translate(-50%, -50%) rotate(78deg);
  opacity: 0.3;
  animation-delay: -4.8s;
}

.galaxy-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dust-star {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--dust-size, 1px);
  height: var(--dust-size, 1px);
  border-radius: 50%;
  background: var(--dust-color, var(--cream));
  opacity: var(--dust-alpha, 0.45);
  box-shadow: 0 0 10px var(--dust-color, var(--cream));
  animation: dustTwinkle 5.2s ease-in-out infinite;
  animation-delay: var(--dust-delay, 0s);
}

.star-node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  --node-scale: 1;
  transform: translate(-50%, -50%) scale(var(--node-scale));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--cream);
  background: transparent;
  transition: transform 220ms ease, opacity 220ms ease;
}

.star-node::before {
  content: "";
  position: absolute;
  width: var(--halo, 48px);
  height: var(--halo, 48px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 239, 231, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 239, 231, 0.18), transparent 18%),
    radial-gradient(circle, var(--node-color, var(--gold)), transparent 62%);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  filter: blur(0.4px);
}

.star-spark {
  width: var(--star-size, 16px);
  height: var(--star-size, 16px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #fff 0 12%, var(--node-color, var(--gold)) 28%, rgba(17, 16, 15, 0.22) 74%);
  box-shadow:
    0 0 14px var(--node-color, var(--gold)),
    0 0 38px var(--node-color, var(--gold)),
    0 0 3px var(--cream);
  animation: starPulse 2.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.star-node.is-muted {
  opacity: 0.34;
}

.star-node:hover,
.star-node:focus-visible {
  border-color: var(--node-color, var(--gold));
  --node-scale: 1.2;
}

.star-node:hover::before,
.star-node:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.16);
}

.star-preview {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  width: min(360px, calc(100% - 48px));
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(244, 239, 231, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 239, 231, 0.08), rgba(244, 239, 231, 0.025)),
    rgba(17, 16, 15, 0.78);
  color: var(--cream);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.star-preview strong,
.star-preview span,
.star-preview small {
  display: block;
}

.star-preview strong {
  margin-bottom: 8px;
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-size: 1.35rem;
  line-height: 1.18;
}

.star-preview span {
  color: var(--cream-muted);
}

.star-preview small {
  margin-top: 12px;
  color: var(--film);
  line-height: 1.45;
}

.node-detail {
  min-height: calc(100vh - 150px);
}

.book-shelves,
.photo-wall,
.timekeeper-panel,
.gallery-panel {
  display: grid;
  gap: 16px;
}

.photo-wall {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
}

.wall-photo {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 0;
  border: 1px solid rgba(244, 239, 231, 0.13);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(24, 22, 19, 0.66);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.wall-photo-1,
.wall-photo-4 {
  grid-column: span 5;
  min-height: 360px;
}

.wall-photo-2,
.wall-photo-5 {
  grid-column: span 4;
}

.wall-photo-3 {
  grid-column: span 3;
}

.wall-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.82) contrast(0.94);
  transform: scale(1.015);
  transition: transform 700ms ease, filter 700ms ease;
}

.wall-photo:hover .wall-image,
.wall-photo:focus-visible .wall-image {
  filter: saturate(1) contrast(1);
  transform: scale(1.07);
}

.wall-caption {
  position: relative;
  z-index: 1;
  display: block;
  padding: 80px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(17, 16, 15, 0.86));
}

.wall-caption strong,
.wall-caption small {
  display: block;
}

.wall-caption small {
  margin-top: 6px;
  color: var(--cream-muted);
  line-height: 1.4;
}

.photo-backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.photo-lightbox {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 860px);
  overflow: hidden;
  border: 1px solid rgba(244, 239, 231, 0.14);
  border-radius: var(--radius);
  background: rgba(17, 16, 15, 0.9);
  box-shadow: var(--shadow);
}

.photo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(17, 16, 15, 0.72);
  backdrop-filter: blur(12px);
}

.photo-lightbox figure {
  margin: 0;
  display: grid;
}

.photo-lightbox img {
  width: 100%;
  max-height: min(72vh, 720px);
  display: block;
  object-fit: contain;
  background: #0c0b0a;
}

.photo-lightbox figcaption {
  padding: 16px 18px;
  border-top: 1px solid rgba(244, 239, 231, 0.1);
  color: var(--cream-muted);
}

.photo-lightbox figcaption strong,
.photo-lightbox figcaption span {
  display: block;
}

.photo-lightbox figcaption strong {
  color: var(--cream);
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-size: 1.25rem;
}

.timeline-book {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(198, 161, 91, 0.08), transparent 18%),
    rgba(24, 22, 19, 0.66);
}

.timeline-book::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 43px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(198, 161, 91, 0.55), rgba(101, 183, 170, 0.42), transparent);
  opacity: 0.7;
}

.book-chapter {
  position: relative;
  display: grid;
  gap: 10px;
}

.chapter-gap {
  width: fit-content;
  margin-left: 66px;
  padding: 5px 10px;
  border: 1px solid rgba(244, 239, 231, 0.1);
  border-radius: var(--radius);
  color: var(--film);
  background: rgba(17, 16, 15, 0.42);
  font-size: 0.76rem;
}

.chapter-gap span,
.chapter-gap small {
  display: inline;
}

.chapter-gap small::before {
  content: " / ";
}

.book-chapter-main {
  width: 100%;
  min-height: 118px;
  display: grid;
  grid-template-columns: 54px 116px minmax(0, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(244, 239, 231, 0.075), rgba(244, 239, 231, 0.022)),
    rgba(17, 16, 15, 0.56);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(244, 239, 231, 0.045);
}

.book-chapter-main:hover,
.book-chapter-main:focus-visible {
  border-color: var(--chapter-color, var(--gold));
  background:
    linear-gradient(90deg, rgba(244, 239, 231, 0.1), rgba(244, 239, 231, 0.035)),
    rgba(17, 16, 15, 0.66);
}

.chapter-index {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--chapter-color, var(--gold));
  border-radius: 50%;
  color: var(--cream);
  background: rgba(17, 16, 15, 0.9);
  font-family: Georgia, serif;
  font-size: 0.95rem;
  box-shadow: 0 0 26px rgba(198, 161, 91, 0.16);
}

.chapter-thumb {
  width: 116px;
  height: 86px;
  display: block;
  border: 1px solid rgba(244, 239, 231, 0.14);
  border-radius: var(--radius);
  background-color: #27231f;
  background-position: center;
  background-size: cover;
  filter: saturate(0.84) contrast(0.96);
}

.chapter-copy strong,
.chapter-copy small,
.chapter-copy em,
.chapter-mood {
  display: block;
}

.chapter-copy strong {
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.chapter-copy small,
.chapter-copy em,
.chapter-mood {
  color: var(--cream-muted);
  font-size: 0.82rem;
}

.chapter-copy small {
  margin-top: 6px;
}

.chapter-copy em {
  margin-top: 9px;
  max-width: 62ch;
  color: var(--film);
  font-style: normal;
  line-height: 1.45;
}

.chapter-mood {
  justify-self: end;
  min-width: 82px;
  padding: 6px 9px;
  border: 1px solid rgba(244, 239, 231, 0.12);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(244, 239, 231, 0.045);
}

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

.date-card,
.person-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 22, 19, 0.72);
}

.date-card strong,
.person-card strong {
  display: block;
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-size: 1.35rem;
}

.date-card span,
.person-card span,
.date-card small,
.person-card small {
  display: block;
  margin-top: 8px;
  color: var(--cream-muted);
}

.date-card b {
  display: block;
  margin-top: 18px;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 3.3rem;
  line-height: 0.9;
}

.person-card {
  isolation: isolate;
}

.person-orbit {
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 183, 170, 0.16), transparent 62%);
  z-index: -1;
}

.milestone-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 22, 19, 0.66);
}

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

.milestone-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.milestone-row:last-child {
  border-bottom: 0;
}

.milestone-row span,
.milestone-row small {
  color: var(--cream-muted);
}

.danger {
  border-color: rgba(168, 93, 97, 0.5);
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream-muted);
  background: rgba(24, 22, 19, 0.62);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.node-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 24px;
}

.node-title-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 239, 231, 0.07), rgba(244, 239, 231, 0.02)),
    rgba(24, 22, 19, 0.66);
  box-shadow: inset 0 1px 0 rgba(244, 239, 231, 0.06);
}

.node-title-panel h3 {
  font-size: 3rem;
  line-height: 1.08;
}

.node-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream-muted);
  background: rgba(244, 239, 231, 0.05);
  font-size: 0.83rem;
}

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

.photo-panel,
.text-panel,
.special-panel,
.margin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 231, 0.9);
  color: #1b1917;
}

.photo-panel {
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.24);
}

.photo-image {
  min-height: 360px;
  background-color: #2b2a28;
  background-position: center;
  background-size: cover;
  filter: contrast(0.96) saturate(0.86);
  animation: develop 1100ms ease both;
  transform: scale(1.01);
}

.photo-caption {
  margin: 0;
  padding: 16px 18px;
  color: #4b453d;
  font-size: 0.92rem;
}

.node-stack {
  display: grid;
  gap: 14px;
}

.text-panel,
.special-panel,
.margin-panel {
  padding: 18px;
}

.panel-label {
  margin: 0 0 10px;
  color: #71675b;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.poem-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.8;
  font-family:
    "Songti SC",
    "Noto Serif SC",
    Georgia,
    serif;
  font-size: 1.08rem;
}

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

.margin-note {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  color: #38332e;
  line-height: 1.55;
}

.special-panel {
  background: #efe3d2;
}

.special-panel.sealed {
  border-color: rgba(198, 161, 91, 0.46);
}

.special-panel.folded {
  background: #e7e1d7;
}

.special-grid {
  display: grid;
  gap: 10px;
}

.special-grid p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(27, 25, 23, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
}

.bookmark {
  position: absolute;
  top: 0;
  right: 28px;
  width: 38px;
  height: 116px;
  background: linear-gradient(180deg, #d6b36e, #a77a32);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 0 0 26px rgba(198, 161, 91, 0.28);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(420px, 100vw);
  height: 100vh;
  padding: 24px;
  transform: translateX(105%);
  transition: transform 320ms ease;
  border-left: 1px solid var(--line);
  background: rgba(18, 16, 14, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.drawer-head h3 {
  font-size: 1.8rem;
}

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

.drawer-item {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 231, 0.06);
  color: var(--cream);
}

.drawer-item strong,
.drawer-item small {
  display: block;
}

.drawer-item small {
  margin-top: 5px;
  color: var(--cream-muted);
  font-size: 0.88rem;
}

.drawer-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #181613;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-head h2 {
  font-size: 2rem;
}

.create-form {
  display: grid;
  gap: 14px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label span {
  display: block;
  margin-bottom: 7px;
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes develop {
  from {
    filter: blur(10px) contrast(0.74) saturate(0.6);
    opacity: 0.46;
  }
  to {
    filter: blur(0) contrast(0.96) saturate(0.86);
    opacity: 1;
  }
}

@keyframes slowRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes starfieldRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes instrumentFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.55);
  }
}

@keyframes dustTwinkle {
  0%,
  100% {
    opacity: var(--dust-dim, 0.22);
    transform: scale(0.76);
  }
  50% {
    opacity: var(--dust-alpha, 0.45);
    transform: scale(1.18);
  }
}

@keyframes armBreath {
  0%,
  100% {
    opacity: 0.28;
    filter: blur(2.2px);
  }
  50% {
    opacity: 0.46;
    filter: blur(1.2px);
  }
}

@keyframes nodeDrift {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px);
  }
}

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

@media (max-width: 980px) {
  .opening-screen h1 {
    font-size: 3.2rem;
  }

  .archive-workspace {
    grid-template-columns: 1fr;
    padding-bottom: 78px;
  }

  .archive-rail {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 18;
    height: 74px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: column;
    overflow: hidden;
    padding: 8px 6px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .rail-button {
    min-width: 0;
    padding: 7px 2px;
    font-size: 0.66rem;
  }

  .rail-button svg {
    width: 19px;
    height: 19px;
  }

  .rail-button.is-active::after {
    top: -9px;
    left: 18px;
    right: 18px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
  }

  .rail-brand {
    display: none;
  }

  .workspace-inner {
    padding: 22px;
  }

  .view-stage {
    height: calc(100svh - 130px);
    min-height: 620px;
  }

  .time-room-layout,
  .node-cover {
    grid-template-columns: 1fr;
  }

  .room-focus {
    grid-template-columns: 1fr;
  }

  .time-device {
    width: min(420px, 100%);
    margin: 0 auto;
  }

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

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-tools {
    justify-items: stretch;
    width: 100%;
  }

  .search-field {
    width: 100%;
  }

  .node-title-panel {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .screen {
    padding: 20px;
  }

  .opening-screen h1 {
    font-size: 2.5rem;
  }

  .opening-screen h1 span,
  .screen-heading h2,
  .room-copy h3,
  .node-title-panel h3 {
    font-size: 1.85rem;
  }

  .opening-line {
    font-size: 1rem;
  }

  .key-grid,
  .form-grid,
  .folded-fields,
  .timekeeper-grid {
    grid-template-columns: 1fr;
  }

  .pin-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .room-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compact,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar h2 {
    font-size: 1.7rem;
  }

  .constellation-map {
    min-height: 720px;
    padding-top: 220px;
  }

  .galaxy-chrome {
    inset: 14px 14px auto;
    width: calc(100% - 28px);
  }

  .galaxy-home-card {
    padding: 15px;
  }

  .galaxy-home-card strong {
    font-size: 1.55rem;
  }

  .galaxy-meter {
    justify-content: flex-start;
  }

  .constellation-orbit {
    inset: 200px 0 0;
  }

  .constellation-core {
    width: 132px;
    height: 132px;
  }

  .constellation-core strong {
    font-size: 3rem;
  }

  .star-node {
    width: 42px;
    height: 42px;
  }

  .star-preview {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .photo-wall {
    grid-template-columns: 1fr;
  }

  .wall-photo,
  .wall-photo-1,
  .wall-photo-2,
  .wall-photo-3,
  .wall-photo-4,
  .wall-photo-5 {
    grid-column: auto;
    min-height: 280px;
  }

  .book-chapter-main,
  .milestone-row {
    grid-template-columns: 1fr;
  }

  .timeline-book::before {
    left: 40px;
  }

  .chapter-gap {
    margin-left: 0;
  }

  .chapter-gap span,
  .chapter-gap small {
    display: block;
  }

  .chapter-gap small::before {
    content: "";
  }

  .chapter-thumb {
    width: 100%;
    height: 160px;
  }

  .chapter-mood {
    justify-self: start;
    text-align: left;
  }

  .drawer {
    width: 100vw;
  }

  .photo-image {
    min-height: 280px;
  }
}
