/* Plotmaniac — coming-soon materials, built to hold more than one plot. */

:root {
  --bg: #0c0b09;
  --ink: #f4efe6;
  --muted: #9b9488;
  --gold: #e8c47a;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.28);
  --panel: rgba(244, 239, 230, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 18%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mast,
.app,
.site-footer {
  position: relative;
  z-index: 1;
}

.mast {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 12px;
  text-align: center;
}

.status,
.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.status {
  margin-bottom: 16px;
}

button.status {
  padding: 0;
}

.eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(4rem, 14vw, 6.4rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mark {
  display: block;
  width: min(420px, 88vw);
  height: auto;
  margin: 22px auto 16px;
}

.mark path.arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 1.8s ease-out forwards;
}

.mark circle {
  fill: var(--gold);
  opacity: 0;
  animation: appear 0.4s ease-out 1.5s forwards;
}

.lede,
.web-note,
.rail-note,
.role,
.detail-names,
.site-footer,
.empty,
.loading {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.lede {
  max-width: 42ch;
  margin: 0 auto;
}

.views {
  display: inline-flex;
  gap: 8px;
  margin-top: 26px;
}

.views button,
.back,
.event-links a,
.event-links button,
.search input {
  border: 1px solid var(--line-strong);
  min-height: 40px;
  padding: 8px 14px;
}

.views button {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.views button.is-active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.plot-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plot-switch select {
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  min-height: 32px;
  padding: 4px 8px;
}

body[data-view="pick"] .views {
  display: none;
}

.plot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  width: min(840px, 100%);
  margin: 28px auto 0;
}

.plot-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 240px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.plot-card .kicker {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.plot-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plot-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.plot-card img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
}

.plot-card.is-person img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.year-bar {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0 0 6px;
}

.year-readout {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.year-hint,
.year-counts {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.year-drag {
  -webkit-appearance: none;
  appearance: none;
  width: min(760px, calc(100% - 24px));
  height: 28px;
  background: transparent;
  cursor: grab;
}

.year-drag:active {
  cursor: grabbing;
}

.year-drag::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(232, 196, 122, 0.85);
}

.year-drag::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #0c0b09;
}

.year-drag::-moz-range-track {
  height: 2px;
  background: rgba(232, 196, 122, 0.85);
  border: 0;
}

.year-drag::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #0c0b09;
}

.year-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  width: min(760px, calc(100% - 24px));
}

.year-marks button {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.year-marks button.is-active {
  color: var(--gold);
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 48px;
}

body[data-view="web"] {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-view="web"] .mast {
  width: min(920px, calc(100% - 28px));
  padding: 12px 0 0;
}

body[data-view="web"] .status {
  margin-bottom: 2px;
  font-size: 0.62rem;
}

body[data-view="web"] h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

body[data-view="web"] .mark,
body[data-view="web"] .lede {
  display: none;
}

body[data-view="web"] .views {
  margin-top: 8px;
}

body[data-view="web"] .views button {
  min-height: 32px;
  padding: 4px 12px;
}

body[data-view="web"] .app {
  flex: 1;
  min-height: 0;
  width: min(1400px, 100%);
  padding: 0 10px 6px;
  display: flex;
  flex-direction: column;
}

body[data-view="web"] .web {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-view="web"] .web-key {
  margin: 6px 0 4px;
}

body[data-view="web"] .web-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

body[data-view="web"] .web-scroll.is-camps {
  overflow: auto;
}

body[data-view="web"] .web-stage {
  width: 100%;
  height: 100%;
}

body[data-view="web"] .site-footer {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: auto;
  padding: 0;
  text-align: right;
}

body[data-view="web"] #footer-note {
  display: none;
}

.web-note,
.web-hint,
.rail-note {
  text-align: center;
  margin: 0 auto 18px;
  max-width: 52ch;
  font-size: 0.75rem;
}

.web-hint {
  display: none;
}

.web-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
}

.web-stage {
  position: relative;
  margin: 0 auto;
}

.web-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.web-lines path {
  fill: none;
  stroke: rgba(244, 239, 230, 0.28);
  stroke-width: 1.15;
  stroke-linecap: round;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}

.web-lines path[data-camp="friend"] {
  stroke: rgba(125, 206, 160, 0.55);
}

.web-lines path[data-camp="enemy"] {
  stroke: rgba(224, 106, 98, 0.55);
}

.web-stage.is-hot .web-lines path {
  opacity: 0.08;
}

.web-stage.is-hot .web-lines path.is-lit {
  opacity: 1;
  stroke: #f4efe6;
  stroke-width: 2.4;
}

.web-key {
  display: flex;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.web-key li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.swatch.camp-friend {
  border-color: #7dcea0;
}

.swatch.camp-enemy {
  border-color: #e06a62;
}

.camp-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 116px;
  animation: rise 0.7s ease both;
  animation-delay: calc(var(--i) * 35ms);
}

.node-name {
  max-width: 112px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.64rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node:hover .avatar,
.node:focus-visible .avatar,
.web-stage.is-hot .node.is-lit .avatar {
  transform: scale(1.05);
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 196, 122, 0.72);
  background: #161410;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-width: 1px;
}

.avatar-md,
.avatar-lg {
  width: 72px;
  height: 72px;
}

.avatar-lg,
.node.is-center .avatar {
  width: 112px;
  height: 112px;
}

.web-stage .node {
  width: calc(var(--node, 72px) + 24px);
}

.web-stage .node:not(.is-center) .avatar {
  width: var(--node, 72px);
  height: var(--node, 72px);
}

.web-stage .node.is-center .avatar {
  width: var(--center, 104px);
  height: var(--center, 104px);
}

.web-stage .node.is-center::before {
  width: calc(var(--center, 104px) + 16px);
  height: calc(var(--center, 104px) + 16px);
  top: -8px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar.is-flag {
  border-radius: 4px;
  background: #161410;
}

.avatar.is-flag img {
  object-fit: contain;
  padding: 6%;
}

.web-stage .node.node-left,
.web-stage .node.node-right {
  width: var(--node, 72px);
}

.web-stage .node.node-left .node-name,
.web-stage .node.node-right .node-name {
  position: absolute;
  top: 50%;
  max-width: 160px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.web-stage .node.node-right .node-name {
  left: calc(100% + 8px);
  text-align: left;
}

.web-stage .node.node-left .node-name {
  right: calc(100% + 8px);
  text-align: right;
}

.web-stage.is-quiet .node {
  animation: none;
}

.monogram {
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.avatar-sm .monogram {
  font-size: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
}

.node.camp-friend .avatar {
  border-color: #7dcea0;
  border-width: 3px;
}

.node.camp-enemy .avatar {
  border-color: #e06a62;
  border-width: 3px;
}

.web-stage.is-hot .node {
  opacity: 0.22;
}

.web-stage.is-hot .node.is-lit {
  opacity: 1;
}

.web-stage.is-hot .node.is-lit.camp-friend .avatar {
  box-shadow: 0 0 0 5px rgba(125, 206, 160, 0.35);
}

.web-stage.is-hot .node.is-lit.camp-enemy .avatar {
  box-shadow: 0 0 0 5px rgba(224, 106, 98, 0.4);
}

.web-stage.is-hot .node.is-lit.is-center .avatar {
  box-shadow: 0 0 0 5px rgba(232, 196, 122, 0.35);
}

.node.is-center::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 130px;
  height: 130px;
  border: 1px dashed rgba(232, 196, 122, 0.45);
  border-radius: 50%;
  pointer-events: none;
  animation: spin-ring 32s linear infinite;
}

.focus {
  width: min(1040px, 100%);
  margin: 8px auto 0;
}

.lane-page {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lane-page .back {
  align-self: flex-start;
  margin: 8px 18px 0;
}

.lane-page .focus-head,
.lane-page .timeline-head {
  width: 100%;
  margin: 0;
  padding: 8px 18px 0;
  flex: 0 0 auto;
}

.lane-page h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.lane-page .focus-head .avatar,
.lane-page .focus-head .avatar img {
  width: 64px;
  height: 64px;
}

.lane-page .role,
.lane-page .ties {
  margin-top: 6px;
}

.back {
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.focus-head,
.timeline-head {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.role {
  margin-top: 8px;
  font-size: 0.78rem;
  max-width: 58ch;
}

.ties {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ties li {
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
  padding: 6px 8px;
}

.ties li.is-now {
  color: var(--ink);
  border-color: var(--gold);
}

.timeline-head {
  align-items: end;
  justify-content: space-between;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(280px, 100%);
}

.search span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search input {
  background: rgba(12, 11, 9, 0.65);
  min-width: 0;
}

.search input::placeholder {
  color: var(--muted);
}

.lane-view {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.lane-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 18px 6px;
}

.lane-tools .rail-note {
  margin: 0;
  text-align: left;
  max-width: none;
  flex: 1;
}

.lane-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lane-button,
.lane-readout {
  border: 1px solid var(--line-strong);
  min-height: 32px;
  color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-button {
  padding: 4px 12px;
}

.lane-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lane-readout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  color: var(--gold);
}

.lane-zoom {
  width: min(180px, 22vw);
  accent-color: var(--gold);
  cursor: pointer;
}

.lane-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  cursor: grab;
}

.lane-scroll.is-panning {
  cursor: grabbing;
}

.lane-sizer {
  position: relative;
}

.lane {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  height: var(--lane-h, 640px);
  width: max-content;
  margin: 0;
  padding: 0 36px;
  list-style: none;
  transform-origin: 0 0;
}

.lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 4px;
  transform: translateY(-50%);
  transform-origin: left center;
  background: linear-gradient(
    to right,
    #e8c47a 0%,
    #c9a36a 32%,
    #9b9488 68%,
    #e8c47a 100%
  );
  animation: lane-grow 1.1s ease-out;
}

.lane-year {
  position: relative;
  z-index: 1;
  flex: 0 0 84px;
}

.lane-year span {
  position: absolute;
  left: 50%;
  top: calc(50% - 28px);
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 2px 8px;
  white-space: nowrap;
}

.lane-event {
  position: relative;
  flex: 0 0 280px;
  height: 100%;
}

.lane-event.is-selected {
  flex-basis: 380px;
}

.lane-card {
  position: absolute;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-height: calc(50% - 28px);
  overflow: auto;
  text-align: center;
}

.side-above .lane-card {
  bottom: calc(50% + 14px);
}

.side-below .lane-card {
  top: calc(50% + 14px);
}

.lane-event::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--gold);
  transform: translateX(-50%);
}

.side-above.lane-event::before {
  top: calc(50% - 18px);
}

.side-below.lane-event::before {
  top: 50%;
}

.lane-mark {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 50%;
}

.lane-mark .avatar {
  width: 76px;
  height: 76px;
  border-width: 3px;
}

.lane-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px var(--bg);
  transform: translate(-50%, -50%);
}

.lane-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.lane-rule {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}

.lane-hit time,
.lane-hit em {
  color: var(--gold);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-hit strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.beat-tease {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.lane-mark:hover .avatar,
.lane-mark:focus-visible .avatar,
.lane-event.is-selected .lane-mark .avatar {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(232, 196, 122, 0.35);
}

.lane-more {
  width: 100%;
}

.lane-more p {
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.55;
}

.lane-more .faces,
.lane-more .event-links {
  justify-content: center;
}

.faces {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.detail-names {
  color: var(--muted) !important;
  font-size: 0.7rem !important;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.event-links a,
.event-links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.66rem;
  text-decoration: none;
}

.event-links a:hover,
.event-links button:hover,
.back:hover,
.views button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.link-type {
  border-left: 1px solid currentColor;
  color: var(--muted);
  padding-left: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.56rem;
}

.empty,
.loading {
  text-align: center;
  padding: 48px 16px;
}

.loading-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1s ease-in-out infinite alternate;
}

.site-footer {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 40px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credits {
  margin-top: 14px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.credits summary {
  cursor: pointer;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.credits ul {
  list-style: none;
  margin-top: 12px;
}

.credits li {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
  margin: 4px 0;
}

.credits a {
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-size: 0.72rem;
  padding: 10px 14px;
}

body[data-view="person"],
body[data-view="timeline"] {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-view="person"] .mast,
body[data-view="timeline"] .mast {
  width: 100%;
  padding: 10px 18px 0;
}

body[data-view="person"] .status,
body[data-view="timeline"] .status {
  margin-bottom: 2px;
  font-size: 0.62rem;
}

body[data-view="person"] h1,
body[data-view="timeline"] h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

body[data-view="person"] .mark,
body[data-view="timeline"] .mark,
body[data-view="person"] .lede,
body[data-view="timeline"] .lede {
  display: none;
}

body[data-view="person"] .views,
body[data-view="timeline"] .views {
  margin-top: 6px;
}

body[data-view="person"] .views button,
body[data-view="timeline"] .views button {
  min-height: 32px;
  padding: 4px 12px;
}

body[data-view="person"] .app,
body[data-view="timeline"] .app {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body[data-view="person"] .site-footer,
body[data-view="timeline"] .site-footer {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: auto;
  padding: 0;
  text-align: right;
  z-index: 2;
}

body[data-view="person"] #footer-note,
body[data-view="timeline"] #footer-note {
  display: none;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin-ring {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes lane-grow {
  from { transform: translateY(-50%) scaleX(0); }
  to { transform: translateY(-50%) scaleX(1); }
}

@keyframes pulse {
  to { opacity: 0.25; }
}

@media (max-width: 900px) {
  .web-hint {
    display: block;
  }
}

@media (max-width: 720px) {
  .mast {
    width: min(760px, calc(100% - 28px));
    padding-top: 40px;
  }

  .focus-head,
  .timeline-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .search,
  .search input {
    width: 100%;
  }

  .lane-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .lane-controls {
    justify-content: flex-end;
  }

  .lane-zoom {
    width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .mark path.arc,
  .mark circle,
  .web-lines path,
  .node,
  .node.is-center::before,
  .lane::before,
  .loading-dot {
    animation: none;
  }

  .mark path.arc,
  .web-lines path {
    stroke-dashoffset: 0;
  }

  .mark circle,
  .node {
    opacity: 1;
  }
}
