:root {
  --ink: #05090a;
  --ink-2: #0b1416;
  --panel: #0a1113;
  --paper: #101a1c;
  --muted: #849497;
  --line: rgba(185, 221, 221, 0.14);
  --accent: #d54a41;
  --accent-dark: #9f302c;
  --water: #55c7c5;
  --water-bright: #84f6f1;
  --white: #edf5f2;
  --night-glass: rgba(5, 12, 14, 0.82);
  --night-glass-soft: rgba(8, 17, 19, 0.7);
  --night-cyan-soft: rgba(85, 199, 197, 0.16);
  --night-red-soft: rgba(213, 74, 65, 0.18);
  --topbar-height: 64px;
  --timeline-height: 72px;
}

html,
body {
  color: var(--white);
  background: var(--ink);
}

body {
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: screen;
}

.app-shell {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  background: var(--ink);
  overflow: hidden;
}

button,
input {
  letter-spacing: 0;
}

button {
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

button:active {
  transform: scale(0.98);
}

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

/* Observatory header */

.topbar {
  z-index: 70;
  grid-template-columns: 218px auto minmax(260px, 1fr) auto;
  gap: 18px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(3, 8, 9, 0.96);
  border-bottom: 1px solid rgba(85, 199, 197, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(85, 199, 197, 0.72) 18%, transparent 72%);
  pointer-events: none;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  box-shadow:
    0 0 0 4px rgba(213, 74, 65, 0.08),
    0 0 24px rgba(213, 74, 65, 0.18);
}

.brand-copy strong {
  font-size: 19px;
}

.brand-copy small {
  color: rgba(237, 245, 242, 0.48);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 8px;
}

.view-switcher {
  height: 36px;
  padding: 3px;
  background: rgba(237, 245, 242, 0.04);
  border-color: rgba(237, 245, 242, 0.1);
  border-radius: 3px;
}

.view-button {
  min-width: 78px;
  color: rgba(237, 245, 242, 0.48);
  border-radius: 2px;
  font-size: 11px;
}

.view-button:hover {
  color: var(--white);
}

.view-button.active {
  color: var(--white);
  background: rgba(85, 199, 197, 0.12);
  box-shadow: inset 0 -1px var(--water);
}

.search-wrap input {
  height: 38px;
  padding: 0 42px 0 14px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(85, 199, 197, 0.05), transparent 32%),
    rgba(237, 245, 242, 0.035);
  border-color: rgba(185, 221, 221, 0.16);
  border-radius: 3px;
  font-size: 11px;
}

.search-wrap::after {
  content: "⌕";
  position: absolute;
  right: 14px;
  top: 7px;
  color: var(--water);
  font-size: 18px;
  pointer-events: none;
}

.search-wrap input::placeholder {
  color: rgba(237, 245, 242, 0.34);
}

.search-results {
  inset: calc(100% + 8px) 0 auto;
  padding: 5px;
  color: var(--white);
  background: rgba(5, 12, 14, 0.96);
  border-color: rgba(85, 199, 197, 0.26);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.search-results button {
  color: var(--white);
  border-radius: 2px;
}

.search-results button:hover {
  background: var(--night-cyan-soft);
}

.search-results small,
.search-results .search-message {
  color: var(--muted);
}

.search-results .result-type {
  color: var(--water);
  border-color: rgba(85, 199, 197, 0.25);
}

.exhibit-tools {
  gap: 5px;
}

.dataset-count {
  color: rgba(237, 245, 242, 0.72);
  border-right: 1px solid rgba(237, 245, 242, 0.1);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--water);
  box-shadow:
    0 0 0 3px rgba(85, 199, 197, 0.1),
    0 0 12px rgba(85, 199, 197, 0.65);
}

.dataset-count.is-offline .status-dot {
  background: #7e898a;
  box-shadow: 0 0 0 3px rgba(126, 137, 138, 0.12);
}

.tool-button {
  height: 32px;
  min-width: 48px;
  color: rgba(237, 245, 242, 0.5);
  border-color: rgba(237, 245, 242, 0.1);
  border-radius: 2px;
}

.tool-button:hover {
  color: var(--white);
  border-color: rgba(85, 199, 197, 0.4);
  background: rgba(85, 199, 197, 0.07);
}

.tool-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--night-red-soft);
  border-color: rgba(213, 74, 65, 0.58);
}

/* Spatial workspace */

.workspace {
  min-height: 0;
  grid-template-columns: 112px minmax(0, 1fr) 348px;
  background: var(--ink);
}

.filter-rail {
  z-index: 40;
  padding: 16px 12px 92px;
  color: rgba(237, 245, 242, 0.68);
  background:
    linear-gradient(180deg, rgba(85, 199, 197, 0.05), transparent 28%),
    rgba(4, 10, 11, 0.95);
  border-right: 1px solid rgba(85, 199, 197, 0.16);
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 199, 197, 0.28) transparent;
}

.workspace:not(.graph-active) .filter-rail {
  padding-bottom: 16px;
}

.rail-heading {
  padding: 0 3px 13px;
  color: var(--white);
  border-bottom-color: rgba(185, 221, 221, 0.12);
  font-size: 11px;
}

.rail-heading > span small {
  color: var(--accent);
}

.explore-index button {
  color: rgba(185, 221, 221, 0.46);
  border-left-color: transparent;
}

.explore-index button:hover,
.explore-index button:focus-visible {
  color: var(--white);
  background: rgba(85, 199, 197, 0.055);
}

.explore-index button.active {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(213, 74, 65, 0.13), transparent 84%);
  border-left-color: var(--accent);
}

.explore-index button > span {
  color: rgba(185, 221, 221, 0.56);
  background: rgba(3, 10, 12, 0.6);
  border-color: rgba(85, 199, 197, 0.17);
}

.explore-index button.active > span {
  color: var(--white);
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 14px rgba(213, 74, 65, 0.2);
}

.explore-index button small {
  color: rgba(185, 221, 221, 0.3);
}

.layer-intensity {
  color: rgba(185, 221, 221, 0.42);
  border-top-color: rgba(85, 199, 197, 0.12);
}

.layer-intensity input {
  accent-color: var(--accent);
}

.topic-fieldset.is-mode-focus {
  border-top-color: rgba(213, 74, 65, 0.54);
}

.clear-button {
  min-height: 28px;
  color: rgba(237, 245, 242, 0.38);
}

.clear-button:hover {
  color: var(--accent);
}

.map-rail-close {
  color: rgba(237, 245, 242, 0.46);
  border-color: rgba(85, 199, 197, 0.18);
}

.map-rail-close:hover,
.map-rail-close:focus-visible {
  color: var(--white);
  border-color: rgba(85, 199, 197, 0.56);
}

.filter-rail fieldset {
  margin-top: 12px;
  padding: 0;
  border: 0;
}

.filter-rail legend {
  margin-bottom: 6px;
  color: rgba(237, 245, 242, 0.3);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 8px;
}

.graph-rail-heading {
  border-bottom: 1px solid rgba(85, 199, 197, 0.14);
}

.graph-rail-close {
  color: rgba(237, 245, 242, 0.46);
  border-color: rgba(85, 199, 197, 0.18);
}

.graph-rail-close:hover,
.graph-rail-close:focus-visible {
  color: var(--white);
  border-color: rgba(85, 199, 197, 0.56);
}

.graph-rail-center {
  background:
    linear-gradient(90deg, rgba(85, 199, 197, 0.08), transparent 72%),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 19px,
      rgba(85, 199, 197, 0.035) 20px
    );
  border-bottom-color: rgba(85, 199, 197, 0.16);
}

.graph-rail-center::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 20px;
  width: 22px;
  height: 1px;
  background: var(--water);
  box-shadow:
    28px 0 rgba(85, 199, 197, 0.28),
    56px 0 rgba(85, 199, 197, 0.14);
}

.graph-rail-sigil {
  color: var(--water-bright);
  background: rgba(4, 15, 17, 0.82);
  border-color: rgba(85, 199, 197, 0.46);
  box-shadow:
    0 0 0 5px rgba(85, 199, 197, 0.045),
    inset 0 0 18px rgba(85, 199, 197, 0.12);
}

.graph-rail-center small,
.graph-rail-status span {
  color: rgba(185, 221, 221, 0.42);
}

.graph-rail-center p,
.graph-rail-status small {
  color: rgba(185, 221, 221, 0.46);
}

.graph-family-fieldset {
  border-bottom: 0;
}

.graph-family-list button {
  color: rgba(185, 221, 221, 0.48);
  border-bottom-color: rgba(85, 199, 197, 0.08);
}

.graph-family-list button:hover,
.graph-family-list button:focus-visible {
  color: var(--white);
  background: rgba(85, 199, 197, 0.055);
}

.graph-family-list button.active {
  color: rgba(237, 245, 242, 0.92);
  background:
    linear-gradient(90deg, rgba(85, 199, 197, 0.1), transparent 82%);
}

.graph-family-list button.active::after {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 14px;
  background: var(--water);
  box-shadow: 0 0 8px rgba(85, 199, 197, 0.54);
}

.graph-family-list button {
  position: relative;
}

.graph-family-list [data-graph-family="authorship"] i {
  border-top-color: rgba(237, 245, 242, 0.8);
}

.graph-family-list [data-graph-family="place"] i {
  border-top-color: rgba(85, 199, 197, 0.9);
}

.graph-family-list [data-graph-family="evidence"] i {
  border-top-color: var(--water);
  box-shadow: 0 0 7px rgba(85, 199, 197, 0.45);
}

.graph-family-list [data-graph-family="source"] i {
  border-top-color: rgba(85, 199, 197, 0.92);
  box-shadow: 0 0 6px rgba(85, 199, 197, 0.32);
}

.graph-family-list [data-graph-family="peer"] i {
  border-top-color: rgba(237, 245, 242, 0.78);
}

.graph-rail-status {
  border-top-color: rgba(85, 199, 197, 0.14);
}

.graph-rail-status strong {
  color: var(--water-bright);
}

.graph-minimap {
  border-top-color: rgba(85, 199, 197, 0.14);
}

.graph-minimap header {
  color: rgba(185, 221, 221, 0.46);
}

.graph-minimap header small,
#graph-minimap-status {
  color: rgba(185, 221, 221, 0.38);
}

.graph-minimap-control {
  background:
    linear-gradient(rgba(85, 199, 197, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 197, 0.055) 1px, transparent 1px),
    rgba(2, 8, 10, 0.72);
  background-size: 16px 16px;
  border-color: rgba(85, 199, 197, 0.18);
}

.graph-minimap-control:hover,
.graph-minimap-control:focus-visible,
.graph-minimap-control.is-dragging {
  border-color: rgba(85, 199, 197, 0.54);
  background-color: rgba(85, 199, 197, 0.045);
}

.graph-minimap-edge {
  stroke: rgba(185, 221, 221, 0.34);
}

.graph-minimap-edge.relation-place,
.graph-minimap-edge.relation-evidence,
.graph-minimap-edge.relation-source {
  stroke: rgba(85, 199, 197, 0.72);
}

.graph-minimap-node {
  fill: rgba(185, 221, 221, 0.62);
  stroke: #03090b;
}

.graph-minimap-node.node-place,
.graph-minimap-node.node-source,
.graph-minimap-node.node-category,
.graph-minimap-node.node-collection,
.graph-minimap-node.node-volume {
  fill: var(--water);
}

.graph-minimap-node.is-center {
  fill: var(--water-bright);
  stroke: rgba(237, 245, 242, 0.94);
  filter: drop-shadow(0 0 3px rgba(85, 199, 197, 0.72));
}

.graph-minimap-node.is-selected {
  stroke: var(--white);
  filter: drop-shadow(0 0 3px rgba(237, 245, 242, 0.56));
}

.graph-minimap-viewport {
  fill: rgba(213, 74, 65, 0.035);
  stroke: rgba(213, 74, 65, 0.62);
}

.graph-minimap-corners {
  stroke: var(--accent);
  filter: drop-shadow(0 0 2px rgba(213, 74, 65, 0.62));
}

.check-row {
  min-height: 36px;
  padding: 0 4px;
  color: rgba(237, 245, 242, 0.58);
  border-bottom-color: rgba(185, 221, 221, 0.07);
  font-size: 10px;
}

.check-row:hover {
  color: var(--white);
}

.check-row b {
  display: none;
}

.check-mark {
  border-color: rgba(85, 199, 197, 0.35);
  border-radius: 2px;
}

.check-row input:checked + .check-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.topic {
  width: 100%;
  min-height: 34px;
  padding: 0 6px 0 11px;
  color: rgba(237, 245, 242, 0.48);
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(85, 199, 197, 0.14);
  border-radius: 0;
  font-size: 10px;
}

.topic:hover {
  color: var(--white);
  background: rgba(85, 199, 197, 0.06);
}

.topic.active {
  color: var(--white);
  background: linear-gradient(90deg, rgba(213, 74, 65, 0.18), transparent);
  border-left-color: var(--accent);
}

.legend {
  color: rgba(237, 245, 242, 0.38);
  border-top-color: rgba(185, 221, 221, 0.1);
  font-size: 8px;
}

.poem-dot {
  background: var(--water);
  box-shadow: 0 0 8px rgba(85, 199, 197, 0.55);
}

.poet-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(213, 74, 65, 0.55);
}

.legend-line {
  border-color: var(--water);
}

.map-stage {
  background: #061012;
}

.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(85, 199, 197, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 197, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 74%);
}

.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(85, 199, 197, 0.08);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.48),
    inset 0 -90px 90px rgba(0, 0, 0, 0.4);
}

.historical-place-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.historical-place-layer .map-marker {
  pointer-events: auto;
}

.map-image {
  object-position: 50% 50%;
  filter:
    saturate(0.82)
    contrast(1.08)
    brightness(var(--map-intensity, 0.78));
  transform: scale(1.045);
}

.map-tint {
  background:
    linear-gradient(90deg, rgba(2, 7, 8, 0.48), transparent 18%, transparent 77%, rgba(2, 7, 8, 0.44)),
    linear-gradient(180deg, rgba(2, 7, 8, 0.18), transparent 46%, rgba(2, 7, 8, 0.5));
  mix-blend-mode: normal;
}

.route {
  stroke: rgba(85, 199, 197, 0.38);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  opacity: 0.75;
  filter: drop-shadow(0 0 4px rgba(85, 199, 197, 0.45));
}

.route.active-route {
  stroke: var(--accent);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 6px rgba(213, 74, 65, 0.72));
}

.poem-evidence-path {
  stroke: var(--water);
  filter: drop-shadow(0 0 6px rgba(85, 199, 197, 0.8));
  animation: evidenceRouteFlow 1.8s linear infinite;
}

.poem-evidence-origin {
  fill: var(--accent);
  stroke: var(--white);
}

.poem-evidence-target {
  fill: var(--water);
  stroke: var(--white);
  filter: drop-shadow(0 0 5px rgba(85, 199, 197, 0.9));
}

@keyframes evidenceRouteFlow {
  to {
    stroke-dashoffset: -24;
  }
}

.map-marker {
  width: 36px;
  height: 36px;
}

.marker-core {
  inset: 14px;
  background: var(--water);
  border: 1px solid var(--white);
  box-shadow:
    0 0 0 4px rgba(85, 199, 197, 0.1),
    0 0 16px rgba(85, 199, 197, 0.75);
}

.map-marker:hover .marker-core,
.map-marker.active .marker-core {
  background: var(--accent);
  box-shadow:
    0 0 0 5px rgba(213, 74, 65, 0.12),
    0 0 20px rgba(213, 74, 65, 0.78);
}

.map-marker.evidence-active .marker-core {
  background: var(--water);
  box-shadow:
    0 0 0 7px rgba(85, 199, 197, 0.12),
    0 0 24px rgba(85, 199, 197, 0.92);
}

.marker-pulse {
  inset: 7px;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(213, 74, 65, 0.35);
}

.marker-label {
  left: 28px;
  top: 1px;
  max-width: 154px;
  gap: 3px;
  padding: 7px 9px;
  color: var(--white);
  background: rgba(4, 11, 13, 0.9);
  border: 1px solid rgba(85, 199, 197, 0.18);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.marker-label small {
  color: var(--muted);
}

.poetry-field {
  opacity: 0.84;
  mix-blend-mode: screen;
}

.focus-bloom {
  border-color: rgba(213, 74, 65, 0.9);
  background: radial-gradient(circle, rgba(213, 74, 65, 0.2), rgba(85, 199, 197, 0.06) 38%, transparent 66%);
  mix-blend-mode: screen;
}

.presence-cursor {
  border-color: rgba(85, 199, 197, 0.78);
  box-shadow:
    0 0 0 8px rgba(85, 199, 197, 0.05),
    0 0 24px rgba(85, 199, 197, 0.2);
  mix-blend-mode: screen;
}

.scene-status {
  left: 14px;
  top: 14px;
  min-width: 140px;
  color: rgba(237, 245, 242, 0.58);
  background: var(--night-glass-soft);
  border-color: rgba(85, 199, 197, 0.2);
  border-radius: 2px;
  box-shadow: inset 2px 0 var(--water);
  backdrop-filter: blur(14px);
}

.scene-status span i {
  background: var(--water);
  box-shadow: 0 0 12px rgba(85, 199, 197, 0.8);
}

.scene-status b {
  color: var(--white);
}

.scene-status small {
  color: rgba(237, 245, 242, 0.38);
}

.map-meta {
  left: 14px;
  bottom: 92px;
  gap: 14px;
  color: rgba(237, 245, 242, 0.5);
  background: rgba(4, 11, 13, 0.72);
  border: 1px solid rgba(85, 199, 197, 0.12);
  backdrop-filter: blur(12px);
}

.zoom-control {
  right: 14px;
  bottom: 92px;
  color: var(--white);
  background: rgba(4, 11, 13, 0.82);
  border-color: rgba(85, 199, 197, 0.2);
  border-radius: 2px;
  backdrop-filter: blur(12px);
}

.zoom-control button:hover {
  color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.zoom-control span {
  color: rgba(237, 245, 242, 0.52);
  border-color: rgba(85, 199, 197, 0.14);
}

/* Knowledge dossier */

.knowledge-panel {
  z-index: 45;
  padding: 18px 18px 96px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(85, 199, 197, 0.045), transparent 26%),
    rgba(5, 12, 14, 0.97);
  border-left: 1px solid rgba(85, 199, 197, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 199, 197, 0.28) transparent;
}

.panel-toolbar {
  color: rgba(237, 245, 242, 0.38);
}

.record-index {
  color: var(--water);
}

.panel-toolbar button,
.dialog-close {
  color: rgba(237, 245, 242, 0.54);
  border-color: rgba(185, 221, 221, 0.15);
  border-radius: 2px;
}

.panel-toolbar button:hover,
.dialog-close:hover {
  color: var(--white);
  background: var(--night-red-soft);
  border-color: rgba(213, 74, 65, 0.5);
}

.place-dossier-heading > div:first-child > span,
.place-dossier-heading p,
.place-dossier-status,
.place-dossier-section > header,
.place-dossier-coordinate span,
.place-dossier-coordinate small {
  color: rgba(185, 221, 221, 0.42);
}

.place-dossier-heading h1 {
  color: var(--white);
  text-shadow: 0 0 24px rgba(85, 199, 197, 0.1);
}

.place-dossier-sigil {
  color: var(--water);
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.12), transparent 46%),
    #0b1719;
  border-color: rgba(85, 199, 197, 0.28);
  box-shadow: inset 0 0 24px rgba(85, 199, 197, 0.08);
}

#place-dossier-return {
  color: rgba(237, 245, 242, 0.48);
  border-color: rgba(185, 221, 221, 0.15);
}

#place-dossier-return:hover,
#place-dossier-return:focus-visible {
  color: var(--white);
  background: var(--night-red-soft);
  border-color: rgba(213, 74, 65, 0.5);
}

.place-dossier-boundary {
  color: #c7d4d2;
  background: rgba(85, 199, 197, 0.055);
  border-left-color: var(--accent);
}

.place-dossier-stats,
.place-dossier-stats div,
.place-dossier-coordinate,
.place-dossier-author-list,
.place-dossier-work-list,
.place-dossier-author-list button,
.place-dossier-work-list button,
.place-dossier-empty {
  border-color: rgba(185, 221, 221, 0.11);
}

.place-dossier-stats dt {
  color: rgba(237, 245, 242, 0.38);
}

.place-dossier-stats dd,
.place-dossier-coordinate strong {
  color: var(--water);
}

.place-dossier-author-list button,
.place-dossier-work-list button {
  color: var(--white);
}

.place-dossier-author-list button:hover,
.place-dossier-author-list button:focus-visible,
.place-dossier-work-list button:hover,
.place-dossier-work-list button:focus-visible {
  background: rgba(85, 199, 197, 0.065);
}

.place-dossier-author-list button small,
.place-dossier-author-list button span,
.place-dossier-work-list button > span:first-child,
.place-dossier-work-list button small,
.place-dossier-work-list button q,
.place-dossier-empty {
  color: rgba(185, 221, 221, 0.4);
}

.place-dossier-actions button {
  color: var(--white);
  background: rgba(85, 199, 197, 0.055);
  border-color: rgba(85, 199, 197, 0.2);
}

.place-dossier-actions button:hover,
.place-dossier-actions button:focus-visible {
  border-color: rgba(85, 199, 197, 0.55);
  background: rgba(85, 199, 197, 0.11);
}

.place-dossier-actions button:first-child {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.place-dossier[data-state="fallback"] .place-dossier-status {
  color: var(--accent);
}

.person-heading {
  grid-template-columns: 1fr 74px;
  margin: 18px 0 16px;
}

.dynasty-stamp {
  min-width: 30px;
  color: var(--white);
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(213, 74, 65, 0.22);
}

.person-heading h1 {
  color: var(--white);
  font-size: 40px;
  text-shadow: 0 0 24px rgba(85, 199, 197, 0.1);
}

.person-heading p {
  color: var(--muted);
}

.portrait {
  color: var(--water);
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.12), transparent 46%),
    #0b1719;
  border: 1px solid rgba(85, 199, 197, 0.28);
  border-radius: 2px;
  box-shadow:
    inset 0 0 24px rgba(85, 199, 197, 0.08),
    0 0 24px rgba(0, 0, 0, 0.24);
}

blockquote {
  display: -webkit-box;
  overflow: hidden;
  color: #c7d4d2;
  background: rgba(85, 199, 197, 0.055);
  border-left-color: var(--accent);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.person-stats {
  border-color: rgba(185, 221, 221, 0.12);
}

.person-stats div {
  border-color: rgba(185, 221, 221, 0.1);
}

.person-stats dt {
  color: rgba(237, 245, 242, 0.38);
}

.person-stats dd {
  color: var(--white);
}

.panel-tabs {
  border-bottom-color: rgba(185, 221, 221, 0.12);
}

.panel-tab {
  color: rgba(237, 245, 242, 0.42);
}

.panel-tab:hover {
  color: var(--white);
}

.panel-tab.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.featured-poem {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.065), transparent 36%),
    rgba(237, 245, 242, 0.025);
  border-color: rgba(185, 221, 221, 0.14);
  border-radius: 3px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.featured-poem h2 {
  color: var(--white);
}

.featured-poem header span,
.featured-poem footer button {
  min-height: 30px;
  color: var(--water);
}

.featured-poem header button {
  min-height: 30px;
  color: rgba(237, 245, 242, 0.48);
  border-color: rgba(185, 221, 221, 0.14);
}

.featured-poem header button:hover {
  color: var(--white);
  border-color: rgba(213, 74, 65, 0.5);
}

.featured-poem header button.saved {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.featured-poem > p {
  color: #d2ddda;
}

.featured-poem footer {
  color: var(--muted);
  border-color: rgba(185, 221, 221, 0.1);
}

.poem-place-evidence {
  border-top-color: rgba(85, 199, 197, 0.16);
}

.poem-place-evidence header span,
.poem-place-evidence header button {
  color: var(--water);
}

.poem-place-evidence strong {
  color: var(--white);
}

.poem-place-evidence q {
  color: #c8d9d6;
}

.poem-place-evidence small {
  color: rgba(185, 221, 221, 0.45);
}

.context-list button {
  color: var(--white);
  border-color: rgba(185, 221, 221, 0.09);
}

.context-list button:hover {
  background: rgba(85, 199, 197, 0.055);
}

.sequence,
.context-list small,
.context-list i {
  color: var(--muted);
}

.mini-graph {
  background:
    linear-gradient(rgba(85, 199, 197, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 197, 0.06) 1px, transparent 1px),
    rgba(4, 11, 13, 0.82);
  background-size: 24px 24px;
  border-color: rgba(85, 199, 197, 0.16);
}

.mini-node {
  color: var(--white);
  background: #0b1719;
  border-color: rgba(85, 199, 197, 0.32);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(85, 199, 197, 0.08);
}

.mini-node small,
.graph-caption {
  color: var(--muted);
}

.mini-node.center {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(213, 74, 65, 0.28);
}

.mini-line {
  background: rgba(85, 199, 197, 0.55);
  box-shadow: 0 0 8px rgba(85, 199, 197, 0.35);
}

/* Orbital graph */

.graph-layer {
  background:
    radial-gradient(circle at 50% 50%, rgba(85, 199, 197, 0.1), transparent 30%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 94px, rgba(85, 199, 197, 0.1) 95px 96px),
    linear-gradient(rgba(85, 199, 197, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 197, 0.045) 1px, transparent 1px),
    rgba(3, 9, 11, 0.9);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  backdrop-filter: blur(7px) saturate(0.7);
}

.graph-title {
  left: 24px;
  top: 24px;
}

.graph-title small {
  color: var(--water);
}

.graph-title strong {
  color: var(--white);
  font-size: 25px;
}

.graph-title span {
  color: rgba(185, 221, 221, 0.42);
}

.graph-toolbar {
  background: rgba(4, 11, 13, 0.74);
  border-color: rgba(85, 199, 197, 0.18);
  backdrop-filter: blur(12px);
}

.graph-toolbar button {
  color: rgba(237, 245, 242, 0.45);
}

.graph-toolbar button:hover {
  color: var(--white);
  background: rgba(85, 199, 197, 0.08);
}

.graph-toolbar button.active {
  color: var(--white);
  background: var(--accent);
}

.graph-navigation {
  color: rgba(185, 221, 221, 0.56);
  background: rgba(4, 11, 13, 0.8);
  border-color: rgba(85, 199, 197, 0.2);
  box-shadow:
    inset 0 1px rgba(132, 246, 241, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.graph-navigation-label {
  color: rgba(85, 199, 197, 0.68);
}

.graph-navigation button,
.graph-navigation output {
  border-left-color: rgba(85, 199, 197, 0.14);
}

.graph-navigation output {
  color: var(--water-bright);
  text-shadow: 0 0 10px rgba(85, 199, 197, 0.34);
}

.graph-navigation button:hover,
.graph-navigation button:focus-visible {
  color: var(--white);
  background: rgba(85, 199, 197, 0.1);
}

.graph-navigation button.is-altered {
  color: var(--white);
  background: var(--accent);
  box-shadow: inset 2px 0 rgba(255, 255, 255, 0.16);
}

.is-camera-dragging .graph-camera {
  filter: saturate(1.08);
}

.graph-edge-path {
  stroke: rgba(85, 199, 197, 0.42);
  filter: url("#edge-glow");
}

.graph-geo-path {
  stroke: rgba(132, 246, 241, 0.56);
  filter: drop-shadow(0 0 4px rgba(85, 199, 197, 0.38));
}

.graph-geo-origin {
  fill: var(--accent);
}

.graph-geo-target > circle:first-child {
  fill: rgba(85, 199, 197, 0.04);
  stroke: rgba(132, 246, 241, 0.82);
  filter: drop-shadow(0 0 6px rgba(85, 199, 197, 0.52));
}

.graph-geo-target > circle:nth-child(2) {
  fill: rgba(3, 9, 11, 0.94);
  stroke: var(--water);
}

.graph-geo-target > path {
  stroke: rgba(132, 246, 241, 0.56);
}

.graph-geo-label {
  text-shadow: 0 0 10px rgba(3, 9, 11, 0.98);
}

.graph-geo-label > span {
  color: rgba(132, 246, 241, 0.68);
}

.graph-geo-label > strong {
  color: var(--white);
}

.graph-geo-label > small {
  color: rgba(185, 221, 221, 0.5);
}

.graph-orbit-axis {
  stroke: rgba(85, 199, 197, 0.11);
}

.graph-orbit-ring {
  stroke: rgba(85, 199, 197, 0.14);
}

.graph-orbit-ring-inner {
  stroke: rgba(237, 245, 242, 0.18);
}

.graph-orbit-core {
  fill: rgba(213, 74, 65, 0.2);
  stroke: rgba(213, 74, 65, 0.72);
  filter: url("#edge-glow");
}

.graph-orbit-label {
  fill: rgba(185, 221, 221, 0.34);
}

.graph-orbit-label.is-active {
  fill: var(--water);
}

.graph-edge-path.is-active {
  stroke: rgba(132, 246, 241, 0.92);
  filter: url("#edge-glow");
}

.graph-edge-path.is-dimmed,
.graph-edge-label.is-dimmed {
  opacity: 0.06;
}

.graph-edge-path.is-contextual {
  opacity: 0.5;
  filter: drop-shadow(0 0 3px rgba(85, 199, 197, 0.12));
}

.graph-edge-label.is-contextual {
  opacity: 0.38;
}

.graph-edge-path.edge-place {
  stroke: rgba(85, 199, 197, 0.72);
  stroke-dasharray: 4 6;
}

.graph-edge-path.edge-poem {
  stroke: rgba(237, 245, 242, 0.46);
}

.graph-edge-path.edge-peerauthor {
  stroke: rgba(237, 245, 242, 0.58);
  stroke-dasharray: 2 7;
}

.graph-edge-path.relation-authorship {
  stroke: rgba(237, 245, 242, 0.56);
  stroke-dasharray: none;
}

.graph-edge-path.relation-place {
  stroke: rgba(85, 199, 197, 0.76);
  stroke-dasharray: 5 7;
}

.graph-edge-path.relation-evidence {
  stroke: rgba(132, 246, 241, 0.92);
  stroke-width: 1.6;
  stroke-dasharray: none;
}

.graph-edge-path.relation-time {
  stroke: rgba(134, 158, 157, 0.54);
  stroke-dasharray: 1 9;
}

.graph-edge-path.relation-form {
  stroke: rgba(185, 221, 221, 0.48);
  stroke-dasharray: 3 6;
}

.graph-edge-path.relation-source {
  stroke: rgba(85, 199, 197, 0.72);
  stroke-dasharray: 8 3 1 3;
}

.graph-edge-path.relation-peer {
  stroke: rgba(237, 245, 242, 0.7);
  stroke-dasharray: 2 7 9 7;
}

.graph-edge-path.is-active {
  stroke: rgba(132, 246, 241, 0.92);
}

.graph-edge-path.relation-authorship.is-active {
  stroke: rgba(237, 245, 242, 0.96);
}

.graph-edge-path.relation-time.is-active,
.graph-edge-path.relation-form.is-active,
.graph-edge-path.relation-source.is-active {
  stroke: rgba(185, 221, 221, 0.9);
}

.graph-edge-path.relation-peer.is-active {
  stroke: rgba(237, 245, 242, 0.96);
  filter: drop-shadow(0 0 5px rgba(213, 74, 65, 0.42));
}

.graph-edge-path.is-trail,
.graph-edge-path.is-trail.is-active {
  stroke: var(--accent);
  filter:
    drop-shadow(0 0 3px rgba(213, 74, 65, 0.72))
    drop-shadow(0 0 9px rgba(85, 199, 197, 0.24));
}

.graph-edge-label.is-trail {
  fill: rgba(237, 245, 242, 0.88);
}

.graph-edge-path.is-evidence-selected,
.graph-edge-path.is-evidence-selected.is-active,
.graph-edge-path.is-evidence-selected.is-dimmed {
  opacity: 1;
  stroke: var(--water-bright);
  stroke-width: 3;
  filter: url("#edge-glow");
}

.graph-edge-label.is-evidence-selected,
.graph-edge-label.is-evidence-selected.is-dimmed {
  opacity: 1;
  fill: var(--water-bright);
}

.graph-node.is-evidence-endpoint,
.graph-node.is-evidence-endpoint.is-dimmed {
  opacity: 1;
  border-color: rgba(132, 246, 241, 0.92);
  box-shadow:
    0 0 0 1px rgba(132, 246, 241, 0.2),
    0 0 26px rgba(85, 199, 197, 0.24),
    inset 0 0 20px rgba(85, 199, 197, 0.06);
}

.graph-edge-label {
  fill: rgba(185, 221, 221, 0.52);
  paint-order: stroke;
  stroke: rgba(3, 9, 11, 0.94);
  stroke-width: 4px;
}

.graph-node {
  width: 108px;
  min-height: 60px;
  color: var(--white);
  background: rgba(8, 19, 21, 0.94);
  border-color: rgba(85, 199, 197, 0.35);
  border-radius: 2px;
  box-shadow:
    0 0 0 5px rgba(85, 199, 197, 0.035),
    0 0 26px rgba(85, 199, 197, 0.12);
  backdrop-filter: blur(12px);
}

.graph-node::after {
  color: rgba(185, 221, 221, 0.36);
}

.graph-node:hover {
  border-color: var(--water);
  box-shadow:
    0 0 0 6px rgba(85, 199, 197, 0.06),
    0 0 34px rgba(85, 199, 197, 0.2);
}

.graph-node:focus-visible,
.graph-node.selected {
  border-color: var(--white);
  box-shadow:
    0 0 0 5px rgba(85, 199, 197, 0.08),
    0 0 34px rgba(85, 199, 197, 0.22);
}

.graph-node.is-related {
  border-color: rgba(132, 246, 241, 0.78);
  box-shadow:
    0 0 0 4px rgba(85, 199, 197, 0.055),
    0 0 24px rgba(85, 199, 197, 0.16);
}

.graph-node.is-dimmed {
  opacity: 0.16;
}

.graph-node.is-contextual {
  opacity: 0.68;
  filter: saturate(0.76);
}

.graph-node.is-trail {
  border-color: rgba(213, 74, 65, 0.92);
  box-shadow:
    0 0 0 4px rgba(213, 74, 65, 0.08),
    0 0 28px rgba(85, 199, 197, 0.14);
}

.graph-node.is-trail.is-dimmed {
  opacity: 0.68;
}

.graph-trail-badge {
  background: var(--accent);
  border-color: #03090b;
  box-shadow:
    0 0 0 4px rgba(213, 74, 65, 0.1),
    0 0 12px rgba(213, 74, 65, 0.42);
}

.graph-node small {
  color: var(--muted);
}

.graph-node-author {
  width: 132px;
  height: 132px;
  min-height: 132px;
  color: var(--white);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(213, 74, 65, 0.3), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(85, 199, 197, 0.08), transparent 68%),
    rgba(5, 14, 16, 0.98);
  border-color: rgba(237, 245, 242, 0.7);
  box-shadow:
    inset 0 0 0 8px rgba(85, 199, 197, 0.025),
    0 0 0 8px rgba(213, 74, 65, 0.045),
    0 0 42px rgba(85, 199, 197, 0.2);
}

.graph-node-author::after {
  color: rgba(132, 246, 241, 0.62);
}

.graph-node-author.selected,
.graph-node-author:hover,
.graph-node-author:focus-visible {
  border-color: var(--white);
  box-shadow:
    inset 0 0 0 8px rgba(85, 199, 197, 0.04),
    0 0 0 8px rgba(213, 74, 65, 0.08),
    0 0 48px rgba(85, 199, 197, 0.28);
}

.graph-author-sigil {
  color: rgba(185, 221, 221, 0.2);
  text-shadow: 0 0 22px rgba(85, 199, 197, 0.2);
}

.graph-node-author.is-secondary {
  background:
    radial-gradient(circle at 50% 30%, rgba(213, 74, 65, 0.18), transparent 33%),
    rgba(8, 19, 21, 0.96);
  box-shadow:
    0 0 0 5px rgba(237, 245, 242, 0.035),
    0 0 26px rgba(85, 199, 197, 0.12);
}

.graph-node-author.is-secondary .graph-author-sigil {
  color: rgba(185, 221, 221, 0.3);
}

.graph-node-poem.is-center {
  color: var(--white);
  border-color: rgba(132, 246, 241, 0.78);
  background:
    radial-gradient(circle at 50% 28%, rgba(85, 199, 197, 0.24), transparent 31%),
    radial-gradient(circle at 50% 50%, rgba(213, 74, 65, 0.08), transparent 68%),
    rgba(5, 14, 16, 0.98);
  box-shadow:
    inset 0 0 0 8px rgba(85, 199, 197, 0.03),
    0 0 0 8px rgba(85, 199, 197, 0.045),
    0 0 44px rgba(85, 199, 197, 0.24);
}

.graph-node-poem.is-center.selected,
.graph-node-poem.is-center:hover,
.graph-node-poem.is-center:focus-visible {
  border-color: var(--white);
  box-shadow:
    inset 0 0 0 8px rgba(85, 199, 197, 0.05),
    0 0 0 8px rgba(213, 74, 65, 0.06),
    0 0 50px rgba(85, 199, 197, 0.3);
}

.graph-poem-sigil {
  color: rgba(132, 246, 241, 0.2);
  text-shadow: 0 0 22px rgba(85, 199, 197, 0.24);
}

.graph-node-place.is-center {
  color: var(--white);
  border-color: rgba(132, 246, 241, 0.82);
  background:
    radial-gradient(circle at 50% 28%, rgba(85, 199, 197, 0.3), transparent 31%),
    radial-gradient(circle at 50% 50%, rgba(213, 74, 65, 0.06), transparent 68%),
    rgba(5, 14, 16, 0.98);
  box-shadow:
    inset 0 0 0 8px rgba(85, 199, 197, 0.035),
    0 0 0 8px rgba(85, 199, 197, 0.05),
    0 0 46px rgba(85, 199, 197, 0.28);
}

.graph-node-place.is-center::before {
  border-color: rgba(132, 246, 241, 0.18);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(132, 246, 241, 0.14) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(132, 246, 241, 0.14) 50%, transparent 50.5%);
}

.graph-node-place.is-center.selected,
.graph-node-place.is-center:hover,
.graph-node-place.is-center:focus-visible {
  border-color: var(--white);
  box-shadow:
    inset 0 0 0 8px rgba(85, 199, 197, 0.055),
    0 0 0 8px rgba(213, 74, 65, 0.055),
    0 0 52px rgba(85, 199, 197, 0.34);
}

.graph-place-sigil {
  color: rgba(132, 246, 241, 0.22);
  text-shadow: 0 0 24px rgba(85, 199, 197, 0.26);
}

.graph-focus-halo {
  border-color: rgba(85, 199, 197, 0.24);
  box-shadow:
    inset 0 0 34px rgba(85, 199, 197, 0.025),
    0 0 36px rgba(85, 199, 197, 0.07);
}

.graph-focus-halo::before {
  border-color: rgba(85, 199, 197, 0.2);
}

.graph-focus-halo::after {
  border-color: rgba(237, 245, 242, 0.1);
}

.graph-focus-ring {
  border-top-color: rgba(132, 246, 241, 0.72);
  border-right-color: rgba(213, 74, 65, 0.36);
}

.graph-focus-degree,
.graph-focus-kind {
  color: rgba(185, 221, 221, 0.68);
  background: rgba(3, 9, 11, 0.94);
}

.graph-node-peerauthor {
  color: var(--white);
  border-color: rgba(237, 245, 242, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(213, 74, 65, 0.22), transparent 34%),
    rgba(8, 19, 21, 0.96);
  box-shadow:
    0 0 0 5px rgba(237, 245, 242, 0.035),
    0 0 26px rgba(85, 199, 197, 0.12);
}

.graph-node-peerauthor::before {
  color: rgba(185, 221, 221, 0.34);
}

.graph-node-peerauthor:hover,
.graph-node-peerauthor.selected {
  border-color: var(--white);
  box-shadow:
    0 0 0 6px rgba(213, 74, 65, 0.07),
    0 0 34px rgba(85, 199, 197, 0.2);
}

.graph-node-place {
  color: #d9ffff;
  border-color: rgba(85, 199, 197, 0.68);
  background:
    linear-gradient(145deg, rgba(85, 199, 197, 0.13), transparent 62%),
    rgba(8, 19, 21, 0.94);
}

.graph-node-place::after {
  color: rgba(132, 246, 241, 0.58);
}

.graph-node-poem {
  border-color: rgba(237, 245, 242, 0.35);
}

.graph-node-genre,
.graph-node-dynasty {
  width: 88px;
  min-height: 50px;
  background: rgba(8, 19, 21, 0.82);
}

.graph-node-source,
.graph-node-category,
.graph-node-collection,
.graph-node-volume {
  color: #d9ffff;
  border-color: rgba(85, 199, 197, 0.52);
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.1), transparent 58%),
    rgba(8, 19, 21, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(132, 246, 241, 0.025),
    0 0 24px rgba(85, 199, 197, 0.1);
}

.graph-inspector {
  color: var(--white);
  background: linear-gradient(90deg, rgba(8, 19, 21, 0.88), rgba(8, 19, 21, 0.2));
  border-left-color: var(--accent);
  backdrop-filter: blur(10px);
}

.graph-inspector.edge-lens-open {
  background:
    linear-gradient(90deg, rgba(85, 199, 197, 0.1), transparent 42%),
    rgba(5, 13, 15, 0.96);
  border-left-color: var(--water);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(132, 246, 241, 0.08);
}

.graph-evidence-identity > span,
.graph-evidence-relation > span,
.graph-evidence-proof > span {
  color: rgba(185, 221, 221, 0.46);
  font-family: ui-monospace, "SFMono-Regular", monospace;
}

.graph-evidence-identity > small,
.graph-evidence-relation > span,
.graph-evidence-proof > span {
  color: var(--water);
}

.graph-evidence-relation {
  border-left-color: rgba(85, 199, 197, 0.5);
}

.graph-evidence-relation > small,
.graph-evidence-proof > small {
  color: rgba(185, 221, 221, 0.5);
}

.graph-evidence-proof q {
  color: rgba(237, 245, 242, 0.9);
}

.graph-evidence-actions button {
  border-color: rgba(85, 199, 197, 0.2);
}

.graph-evidence-actions button:hover,
.graph-evidence-actions button:focus-visible {
  border-color: var(--water);
}

#graph-evidence-traverse {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

#graph-evidence-traverse:hover,
#graph-evidence-traverse:focus-visible {
  border-color: #ef6a60;
  background: #e3564d;
}

.graph-trail {
  border-left: 1px solid rgba(85, 199, 197, 0.14);
  border-right: 1px solid rgba(85, 199, 197, 0.1);
  padding-inline: 9px;
}

.graph-trail-heading {
  color: rgba(185, 221, 221, 0.48);
}

.graph-trail-step {
  color: rgba(237, 245, 242, 0.62);
  border-bottom-color: rgba(85, 199, 197, 0.18);
}

.graph-trail-step:hover,
.graph-trail-step:focus-visible,
.graph-trail-step.is-current {
  color: var(--white);
  border-bottom-color: var(--accent);
  background: rgba(85, 199, 197, 0.06);
}

.graph-trail-connector::after {
  color: rgba(85, 199, 197, 0.52);
}

.graph-trail-actions button {
  border-color: rgba(85, 199, 197, 0.16);
}

.graph-relation-link {
  background: rgba(85, 199, 197, 0.035);
  border-left-color: rgba(85, 199, 197, 0.22);
}

.graph-relation-link:hover,
.graph-relation-link:focus-visible {
  background: rgba(85, 199, 197, 0.1);
  border-left-color: var(--water);
}

.graph-relation-direction {
  color: var(--water);
}

.graph-inspector-actions button {
  border-color: rgba(85, 199, 197, 0.2);
}

.graph-inspector-actions button:hover,
.graph-inspector-actions button:focus-visible {
  border-color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.graph-inspector[data-kind="Place"] {
  border-left-color: var(--water);
}

.graph-inspector[data-kind="PeerAuthor"] {
  border-left-color: rgba(237, 245, 242, 0.74);
}

#graph-inspector-excerpt {
  color: rgba(237, 245, 242, 0.68);
}

.graph-reading-aperture {
  background:
    linear-gradient(rgba(85, 199, 197, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 197, 0.035) 1px, transparent 1px),
    #050d0f;
  background-size: 36px 36px;
  border-top-color: rgba(132, 246, 241, 0.4);
  border-bottom-color: rgba(85, 199, 197, 0.14);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.64),
    inset 0 1px rgba(237, 245, 242, 0.025);
}

.graph-reading-aperture > header {
  background: rgba(3, 9, 11, 0.86);
  border-bottom-color: rgba(85, 199, 197, 0.14);
}

.graph-reading-aperture > header span {
  color: var(--water);
}

#graph-reading-close {
  border-color: rgba(85, 199, 197, 0.2);
}

#graph-reading-close:hover,
#graph-reading-close:focus-visible {
  border-color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.graph-reading-work {
  background:
    linear-gradient(90deg, rgba(213, 74, 65, 0.055), transparent 34%),
    rgba(4, 11, 13, 0.56);
}

#graph-reading-rank {
  color: var(--accent);
}

.graph-reading-work h2 {
  text-shadow: 0 0 26px rgba(85, 199, 197, 0.14);
}

.graph-reading-poem {
  color: rgba(237, 245, 242, 0.92);
}

.graph-reading-work > footer {
  border-top-color: rgba(85, 199, 197, 0.12);
}

.graph-reading-evidence {
  background: rgba(3, 9, 11, 0.72);
  border-left-color: rgba(85, 199, 197, 0.18);
}

.graph-reading-evidence > strong {
  color: var(--water);
}

.graph-reading-evidence-item {
  border-top-color: rgba(85, 199, 197, 0.12);
}

.graph-reading-evidence-item[data-kind="place"] {
  padding-left: 9px;
  border-left: 2px solid var(--water);
}

.graph-reading-evidence-item[data-kind="place"] > span,
.graph-reading-evidence-item[data-kind="place"] > strong {
  color: var(--water);
}

.graph-reading-evidence dl > div {
  border-top-color: rgba(85, 199, 197, 0.12);
  border-right-color: rgba(85, 199, 197, 0.08);
}

.graph-reading-evidence dd {
  color: var(--water);
}

.graph-reading-actions button {
  border-color: rgba(85, 199, 197, 0.18);
}

.graph-reading-actions button:last-child {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.graph-reading-actions button:hover,
.graph-reading-actions button:focus-visible {
  border-color: var(--water);
}

.graph-legend {
  color: rgba(185, 221, 221, 0.46);
}

.graph-legend span.is-active {
  color: var(--white);
}

.graph-legend [data-family="authorship"]::before {
  border-top-color: rgba(237, 245, 242, 0.8);
}

.graph-legend [data-family="place"]::before {
  border-top-color: rgba(85, 199, 197, 0.9);
}

.graph-legend [data-family="evidence"]::before {
  border-top-color: var(--water);
  box-shadow: 0 0 7px rgba(85, 199, 197, 0.45);
}

.graph-legend [data-family="peer"]::before {
  border-top-color: rgba(237, 245, 242, 0.82);
}

.graph-legend [data-family="source"]::before {
  border-top-color: rgba(85, 199, 197, 0.92);
  border-top-style: dashed;
  box-shadow: 0 0 7px rgba(85, 199, 197, 0.38);
}

.graph-comparison {
  background:
    linear-gradient(90deg, rgba(213, 74, 65, 0.08), transparent 34%),
    linear-gradient(270deg, rgba(85, 199, 197, 0.08), transparent 38%),
    rgba(5, 13, 15, 0.97);
  border-top-color: rgba(132, 246, 241, 0.5);
  border-bottom-color: rgba(85, 199, 197, 0.18);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.58),
    0 0 30px rgba(85, 199, 197, 0.08);
  backdrop-filter: blur(18px);
}

.graph-comparison > header {
  background: rgba(3, 9, 11, 0.58);
  border-right-color: rgba(85, 199, 197, 0.18);
}

.graph-comparison > header span {
  color: var(--water);
}

.graph-comparison > header small {
  color: rgba(185, 221, 221, 0.52);
}

#graph-comparison-close {
  border-color: rgba(85, 199, 197, 0.22);
}

#graph-comparison-close:hover,
#graph-comparison-close:focus-visible {
  border-color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.graph-comparison-work {
  border-right-color: rgba(85, 199, 197, 0.14);
}

.graph-comparison-work:first-child {
  box-shadow: inset 0 2px rgba(213, 74, 65, 0.82);
}

.graph-comparison-work:last-child {
  box-shadow: inset 0 2px rgba(132, 246, 241, 0.68);
}

.graph-comparison-work:hover,
.graph-comparison-work:focus-visible {
  background: rgba(85, 199, 197, 0.08);
  box-shadow: inset 0 2px var(--water);
}

.graph-comparison-work > span small {
  color: var(--accent);
}

.graph-comparison-work:last-child > span small {
  color: var(--water);
}

.graph-comparison-work > p {
  color: rgba(237, 245, 242, 0.7);
}

.graph-comparison-work > small {
  color: rgba(185, 221, 221, 0.46);
}

.classic-workbench {
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.055), transparent 34%),
    rgba(4, 11, 13, 0.985);
  border-top-color: rgba(132, 246, 241, 0.52);
  border-bottom-color: rgba(85, 199, 197, 0.18);
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.64),
    0 0 36px rgba(85, 199, 197, 0.08);
  backdrop-filter: blur(20px);
}

.classic-workbench > header {
  background:
    linear-gradient(90deg, rgba(85, 199, 197, 0.08), transparent 32%),
    rgba(3, 9, 11, 0.64);
  border-bottom-color: rgba(85, 199, 197, 0.18);
}

.classic-workbench > header span,
.classic-queue > span,
.classic-audit-heading > span,
.classic-method > span {
  color: var(--water);
}

#classic-workbench-close {
  border-color: rgba(85, 199, 197, 0.22);
}

#classic-workbench-close:hover,
#classic-workbench-close:focus-visible {
  border-color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.review-export-button {
  color: rgba(185, 221, 221, 0.68);
  border-color: rgba(85, 199, 197, 0.22);
}

.review-export-button:hover,
.review-export-button:focus-visible {
  color: var(--white);
  border-color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.classic-queue,
.classic-method,
.classic-audit-heading,
.classic-audit-item,
.classic-method > small,
.classic-method dl,
.classic-method dl div {
  border-color: rgba(85, 199, 197, 0.12);
}

.classic-queue-item:hover,
.classic-queue-item:focus-visible,
.classic-queue-item.active {
  background: rgba(85, 199, 197, 0.07);
  border-left-color: var(--accent);
}

.classic-queue-item > span {
  color: var(--accent);
}

.classic-audit-item[data-status="exact"] > header > i,
.classic-audit-item[data-status="prefix"] > header > i {
  color: var(--water);
}

.classic-audit-item[data-status="ambiguous"] > header > i,
.classic-audit-item[data-status="missing"] > header > i {
  color: var(--accent);
}

.classic-audit-evidence span {
  color: rgba(185, 221, 221, 0.52);
  border-color: rgba(85, 199, 197, 0.16);
}

.classic-candidate {
  background: rgba(85, 199, 197, 0.025);
  border-left-color: rgba(85, 199, 197, 0.22);
}

.classic-candidate:hover,
.classic-candidate:focus-visible {
  background: rgba(85, 199, 197, 0.09);
  border-left-color: var(--water);
}

.classic-candidate > span strong,
.classic-score-components i {
  color: var(--water);
}

.classic-audit-empty {
  border-left-color: rgba(213, 74, 65, 0.38);
}

.classic-method > strong {
  color: var(--accent);
}

.classic-method-meter span {
  background: var(--water);
  box-shadow: 0 0 12px rgba(85, 199, 197, 0.35);
}

.place-audit-workbench {
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.075), transparent 36%),
    rgba(4, 11, 13, 0.985);
  border-top-color: rgba(132, 246, 241, 0.66);
  border-bottom-color: rgba(85, 199, 197, 0.18);
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.66),
    0 0 42px rgba(85, 199, 197, 0.1);
  backdrop-filter: blur(20px);
}

.place-audit-workbench > header {
  background:
    linear-gradient(90deg, rgba(85, 199, 197, 0.11), transparent 34%),
    rgba(3, 9, 11, 0.64);
  border-bottom-color: rgba(85, 199, 197, 0.2);
}

.place-audit-workbench > header span,
.place-audit-queue > span,
.place-audit-heading > span,
.place-audit-method > span {
  color: var(--water);
}

#place-audit-workbench-close {
  border-color: rgba(85, 199, 197, 0.24);
}

#place-audit-workbench-close:hover,
#place-audit-workbench-close:focus-visible {
  border-color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.place-audit-queue,
.place-audit-method,
.place-audit-heading,
.place-audit-relation,
.place-audit-method dl,
.place-audit-method dl div {
  border-color: rgba(85, 199, 197, 0.13);
}

.place-audit-queue-item:hover,
.place-audit-queue-item:focus-visible,
.place-audit-queue-item.active {
  background: rgba(85, 199, 197, 0.075);
  border-left-color: var(--water);
}

.place-audit-relation > header span,
.place-audit-method > strong,
.place-audit-sample i {
  color: var(--water);
}

.place-audit-relation[data-status="rejected"] > header span,
.place-audit-relation[data-status="rejected"] > header i {
  color: var(--accent);
}

.place-audit-evidence span {
  color: rgba(185, 221, 221, 0.52);
  border-color: rgba(85, 199, 197, 0.17);
}

.place-audit-sample {
  background: rgba(85, 199, 197, 0.025);
  border-left-color: rgba(85, 199, 197, 0.24);
}

.place-audit-sample:hover,
.place-audit-sample:focus-visible {
  background: rgba(85, 199, 197, 0.09);
  border-left-color: var(--water);
}

#place-audit-map-focus {
  border-color: rgba(85, 199, 197, 0.32);
}

#place-audit-map-focus:hover,
#place-audit-map-focus:focus-visible {
  border-color: var(--water);
}

.identity-workbench {
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.055), transparent 34%),
    rgba(4, 11, 13, 0.985);
  border-top-color: rgba(132, 246, 241, 0.52);
  border-bottom-color: rgba(85, 199, 197, 0.18);
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.64),
    0 0 36px rgba(85, 199, 197, 0.08);
  backdrop-filter: blur(20px);
}

.identity-workbench > header {
  background:
    linear-gradient(90deg, rgba(213, 74, 65, 0.08), transparent 28%),
    rgba(3, 9, 11, 0.64);
  border-bottom-color: rgba(85, 199, 197, 0.18);
}

.identity-workbench > header span,
.identity-queue > span,
.identity-cluster-heading > span,
.identity-evidence > span {
  color: var(--water);
}

#identity-workbench-close {
  border-color: rgba(85, 199, 197, 0.22);
}

#identity-workbench-close:hover,
#identity-workbench-close:focus-visible {
  border-color: var(--water);
  background: rgba(85, 199, 197, 0.08);
}

.identity-queue,
.identity-evidence {
  border-color: rgba(85, 199, 197, 0.14);
}

.identity-queue-item:hover,
.identity-queue-item:focus-visible,
.identity-queue-item.active {
  background: rgba(85, 199, 197, 0.07);
  border-left-color: var(--accent);
}

.identity-queue-item > span {
  color: var(--accent);
}

.identity-cluster-heading,
.identity-cluster,
.identity-evidence > small {
  border-color: rgba(85, 199, 197, 0.12);
}

.identity-cluster[data-risk="canonical"] .identity-cluster-meter span,
.identity-cluster[data-risk="orthographic_variant"] .identity-cluster-meter span {
  background: var(--water);
}

.identity-cluster[data-risk="source_dynasty_conflict"] .identity-cluster-meter span,
.identity-cluster[data-risk="pending_mapping"] .identity-cluster-meter span {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(213, 74, 65, 0.4);
}

.identity-cluster[data-risk="orthographic_variant"] > header i {
  color: var(--water);
}

.identity-cluster-sources span {
  color: rgba(185, 221, 221, 0.52);
  border-color: rgba(85, 199, 197, 0.16);
}

.identity-cluster-samples button {
  background: rgba(85, 199, 197, 0.025);
  border-left-color: rgba(85, 199, 197, 0.22);
}

.identity-cluster-samples button:hover,
.identity-cluster-samples button:focus-visible {
  background: rgba(85, 199, 197, 0.09);
  border-left-color: var(--water);
}

.identity-evidence > strong {
  color: var(--accent);
}

.graph-legend {
  color: rgba(185, 221, 221, 0.45);
}

/* Floating dynasty rail */

.timeline-bar {
  position: absolute;
  z-index: 60;
  left: 128px;
  right: 364px;
  bottom: 12px;
  height: var(--timeline-height);
  grid-template-columns: 112px minmax(0, 1fr) 178px;
  color: var(--white);
  background: rgba(4, 11, 13, 0.88);
  border: 1px solid rgba(85, 199, 197, 0.18);
  border-radius: 3px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
}

.timeline-copy {
  padding: 0 13px;
  border-color: rgba(185, 221, 221, 0.1);
}

.timeline-copy small {
  color: rgba(237, 245, 242, 0.34);
}

.timeline-copy strong {
  color: var(--white);
  font-size: 12px;
}

.timeline-scroll button {
  min-width: 64px;
  color: rgba(237, 245, 242, 0.44);
}

.timeline-scroll button:hover {
  color: var(--white);
  background: rgba(85, 199, 197, 0.05);
}

.timeline-scroll button.active {
  color: var(--white);
  background: linear-gradient(180deg, rgba(85, 199, 197, 0.1), rgba(85, 199, 197, 0.02));
}

.timeline-scroll button.active::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(213, 74, 65, 0.65);
}

.timeline-scroll small {
  color: rgba(237, 245, 242, 0.28);
  font-size: 7px;
}

.timeline-stats {
  gap: 12px;
  padding: 0 12px;
  color: rgba(237, 245, 242, 0.36);
  border-color: rgba(185, 221, 221, 0.1);
}

.timeline-stats b {
  color: var(--water);
  font-size: 11px;
}

/* Reading layer */

dialog {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(85, 199, 197, 0.07), transparent 32%),
    #081113;
  border: 1px solid rgba(85, 199, 197, 0.22);
  border-radius: 3px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.72);
}

dialog::backdrop {
  background: rgba(1, 5, 6, 0.84);
}

.dialog-kicker {
  color: var(--water);
}

dialog h2,
.dialog-author,
.dialog-poem {
  color: var(--white);
}

.dialog-author {
  color: var(--muted);
}

/* Responsive collapse */

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 190px auto minmax(220px, 1fr) auto;
    gap: 12px;
  }

  .dataset-count {
    display: none;
  }

  .exhibit-tools {
    display: flex;
  }

  .workspace {
    grid-template-columns: 96px minmax(0, 1fr) 320px;
  }

  .timeline-bar {
    left: 112px;
    right: 336px;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .timeline-stats {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 60px;
    --timeline-height: 64px;
  }

  .topbar {
    grid-template-columns: auto 132px minmax(0, 1fr);
    gap: 12px;
    padding-inline: 11px;
  }

  .brand-copy small,
  .exhibit-tools {
    display: none;
  }

  .view-switcher {
    display: grid;
  }

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

  .filter-rail {
    display: none;
  }

  .workspace:not(.graph-active) .filter-rail {
    display: block;
    background: rgba(4, 10, 11, 0.97);
  }

  .map-filter-toggle {
    color: rgba(237, 245, 242, 0.68);
    background: rgba(4, 11, 13, 0.88);
    border-color: rgba(85, 199, 197, 0.22);
    backdrop-filter: blur(12px);
  }

  .map-filter-toggle:hover,
  .map-filter-toggle:focus-visible,
  .map-filter-toggle[aria-expanded="true"] {
    color: var(--white);
    border-color: rgba(213, 74, 65, 0.62);
  }

  .knowledge-panel {
    left: 8px;
    right: 8px;
    bottom: 82px;
    max-height: 45%;
    padding: 12px 14px 16px;
    background: rgba(5, 12, 14, 0.94);
    border: 1px solid rgba(85, 199, 197, 0.2);
    border-radius: 3px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(18px);
  }

  .knowledge-panel.collapsed {
    transform: translateY(calc(100% + 92px));
  }

  .timeline-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: var(--timeline-height);
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-copy,
  .timeline-stats {
    display: none;
  }

  .timeline-scroll {
    grid-template-columns: repeat(8, minmax(62px, 1fr));
  }

  .map-meta {
    display: none;
  }

  .zoom-control {
    right: 10px;
    bottom: 82px;
  }

  .scene-status {
    left: 10px;
    top: 10px;
  }

  .graph-title {
    left: 16px;
    top: 16px;
  }

  .graph-toolbar {
    top: 16px;
    right: 16px;
  }

  .graph-node {
    width: 88px;
    min-height: 52px;
    padding: 7px 8px;
  }

  .graph-node b {
    font-size: 12px;
  }

  .graph-node-author {
    width: 112px;
    height: 112px;
    min-height: 112px;
  }

  .graph-node-author b {
    margin-top: 38px;
    font-size: 17px;
  }

  .graph-author-sigil {
    top: 12px;
    font-size: 48px;
  }

  .graph-node-author.is-secondary {
    width: 78px;
    height: 78px;
    min-height: 78px;
    padding: 19px 6px 6px;
  }

  .graph-node-author.is-secondary b {
    margin-top: 15px;
    font-size: 12px;
  }

  .graph-node-author.is-secondary .graph-author-sigil {
    top: 5px;
    font-size: 25px;
  }

  .graph-node-poem.is-center {
    width: 112px;
    height: 112px;
    min-height: 112px;
    padding: 39px 10px 11px;
  }

  .graph-poem-sigil {
    top: 9px;
    font-size: 42px;
  }

  .graph-focus-halo {
    --focus-size: 158px;
    --focus-radius: 79px;
  }

  .graph-node-genre,
  .graph-node-dynasty {
    width: 72px;
    min-height: 44px;
  }

  .graph-inspector {
    left: 16px;
    bottom: 82px;
    width: min(760px, calc(100% - 32px));
  }

  .graph-reading-aperture {
    inset: 8px 8px 72px;
  }

  .graph-legend {
    right: 16px;
    bottom: 88px;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 8px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .search-wrap input {
    height: 36px;
    font-size: 11px;
  }

  .topbar {
    grid-template-columns: 32px 112px minmax(0, 1fr);
    gap: 8px;
  }

  .view-switcher button {
    padding-inline: 6px;
    font-size: 9px;
  }

  .map-image {
    width: 145%;
    max-width: none;
    object-position: 54% 50%;
    transform: translateX(-15%) scale(1.05);
  }

  .map-marker {
    margin-left: -6%;
  }

  .small-marker {
    display: none;
  }

  .knowledge-panel {
    max-height: 43%;
  }

  .place-dossier-actions {
    bottom: -16px;
    background: rgba(5, 12, 14, 0.98);
  }

  .person-heading {
    grid-template-columns: 1fr 58px;
    margin-block: 8px 12px;
  }

  .person-heading h1 {
    font-size: 30px;
  }

  .featured-poem > p {
    font-size: 12px;
    line-height: 1.7;
  }

  .graph-title strong {
    font-size: 19px;
  }

  .graph-title span {
    display: none;
  }

  .graph-toolbar {
    top: 66px;
    left: 12px;
    right: 12px;
    grid-template-columns: repeat(4, 1fr);
  }

  .graph-layer[data-graph-center="poem"] .graph-toolbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .graph-layer[data-graph-center="place"] .graph-toolbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .graph-node {
    width: 78px;
    min-height: 48px;
    padding: 6px;
  }

  .graph-node-author {
    width: 96px;
    height: 96px;
    min-height: 96px;
    padding: 13px 7px 10px;
  }

  .graph-node-author b {
    margin-top: 31px;
    font-size: 15px;
  }

  .graph-node-author small {
    font-size: 6px;
  }

  .graph-node-author::after {
    bottom: 6px;
  }

  .graph-author-sigil {
    top: 10px;
    font-size: 40px;
  }

  .graph-node-author.is-secondary {
    width: 72px;
    height: 72px;
    min-height: 72px;
    padding: 17px 5px 5px;
  }

  .graph-node-author.is-secondary b {
    margin-top: 13px;
    font-size: 11px;
  }

  .graph-node-author.is-secondary small {
    font-size: 6px;
  }

  .graph-node-author.is-secondary .graph-author-sigil {
    top: 4px;
    font-size: 23px;
  }

  .graph-node-poem.is-center {
    width: 96px;
    height: 96px;
    min-height: 96px;
    padding: 34px 8px 9px;
  }

  .graph-node-poem.is-center b {
    font-size: 12px;
  }

  .graph-node-poem.is-center small {
    font-size: 6px;
  }

  .graph-poem-sigil {
    top: 7px;
    font-size: 36px;
  }

  .graph-node-place.is-center {
    width: 96px;
    height: 96px;
    min-height: 96px;
    padding: 34px 7px 9px;
  }

  .graph-node-place.is-center::before {
    inset: 10px;
  }

  .graph-node-place.is-center b {
    font-size: 15px;
  }

  .graph-node-place.is-center small {
    font-size: 6px;
  }

  .graph-place-sigil {
    top: 7px;
    font-size: 36px;
  }

  .graph-focus-halo {
    --focus-size: 124px;
    --focus-radius: 62px;
  }

  .graph-geo-label {
    width: 112px;
    gap: 2px;
    padding-left: 13px;
  }

  .graph-geo-label.is-east {
    padding-right: 13px;
  }

  .graph-geo-label > strong {
    font-size: 13px;
  }

  .graph-geo-label > small:first-of-type {
    display: none;
  }

  .graph-geo-path-label {
    display: none;
  }

  .graph-node-peerauthor {
    width: 72px;
    height: 72px;
    min-height: 72px;
    padding: 19px 5px 5px;
  }

  .graph-node-peerauthor::before {
    top: 4px;
    font-size: 22px;
  }

  .graph-node-peerauthor b {
    font-size: 11px;
  }

  .graph-node-genre,
  .graph-node-dynasty {
    width: 64px;
    min-height: 42px;
  }

  .graph-node-source,
  .graph-node-category,
  .graph-node-collection,
  .graph-node-volume {
    width: 78px;
    min-height: 44px;
  }

  .graph-edge-label,
  .graph-legend {
    display: none;
  }

  .graph-orbit-label {
    display: none;
  }

  #graph-inspector-excerpt {
    display: none;
  }

  .graph-inspector {
    left: 12px;
    bottom: 80px;
    width: calc(100% - 24px);
    min-height: 92px;
    padding: 6px 7px 6px 9px;
    grid-template-columns: minmax(88px, 112px) minmax(0, 1fr) auto;
    grid-template-rows: auto 34px;
    gap: 6px;
  }

  .graph-inspector-entity {
    grid-column: 1;
    grid-row: 1;
  }

  .graph-relation-probe {
    grid-column: 2;
    grid-row: 1;
  }

  .graph-inspector-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .graph-trail {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 3px 0 0;
    border-right: 0;
    border-left: 0;
    border-top: 1px solid rgba(85, 199, 197, 0.12);
  }

  .graph-trail-heading {
    display: none;
  }

  .graph-trail-step {
    min-width: 40px;
    max-width: 68px;
    height: 28px;
    padding-inline: 4px;
  }

  .graph-trail-connector {
    flex-basis: 12px;
  }

  .graph-trail-actions button {
    width: 27px;
    height: 27px;
  }

  .graph-reading-aperture {
    grid-template-rows: 48px minmax(0, 1fr);
  }

  .graph-reading-aperture > header {
    padding-inline: 12px 10px;
  }

  .graph-reading-aperture > header > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .graph-reading-aperture > header small {
    display: none;
  }

  .graph-reading-layout {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .graph-reading-work {
    min-height: 410px;
    padding: 22px 18px 18px;
    display: block;
    overflow: visible;
  }

  .graph-reading-work h2 {
    margin-top: 9px;
    font-size: 26px;
  }

  .graph-reading-poem {
    margin-top: 18px;
    padding: 0;
    overflow: visible;
    font-size: 15px;
    line-height: 1.9;
  }

  .graph-reading-work > footer {
    margin-top: 22px;
  }

  .graph-reading-evidence {
    min-height: 360px;
    padding: 22px 18px 24px;
    overflow: visible;
    border-top: 1px solid rgba(85, 199, 197, 0.18);
    border-left: 0;
  }

  .graph-reading-evidence dl {
    margin-top: 20px;
  }

  .graph-inspector-entity > small,
  #graph-probe-count {
    display: none;
  }

  .graph-inspector-entity > strong {
    font-size: 14px;
  }

  .graph-relation-probe {
    gap: 0;
  }

  .graph-relation-link {
    min-width: 92px;
    max-width: 112px;
    height: 30px;
    padding-inline: 4px 6px;
  }

  #graph-inspector-action {
    width: 30px;
    padding: 0;
  }

  #graph-inspector-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  #graph-inspector-action b {
    margin: 0;
  }

  .classic-queue-item:hover,
  .classic-queue-item:focus-visible,
  .classic-queue-item.active,
  .place-audit-queue-item:hover,
  .place-audit-queue-item:focus-visible,
  .place-audit-queue-item.active,
  .identity-queue-item:hover,
  .identity-queue-item:focus-visible,
  .identity-queue-item.active {
    border-top-color: var(--water);
    border-left-color: transparent;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .search-results,
  .scene-status,
  .map-meta,
  .zoom-control,
  .timeline-bar,
  .knowledge-panel,
  .graph-layer,
  .graph-trail,
  .graph-reading-aperture,
  .graph-comparison,
  .classic-workbench,
  .place-audit-workbench,
  .identity-workbench {
    backdrop-filter: none;
    background: #071012;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route.active-route,
  .marker-pulse,
  .graph-mode .graph-layer,
  .graph-reading-aperture,
  .graph-edge-path.is-active,
  .graph-edge-path.is-trail,
  .graph-focus-ring,
  .graph-geo-target > circle:first-child {
    animation: none;
  }

  .graph-node {
    animation: none;
    transition: none;
  }

  .graph-camera {
    transition: none;
  }

  .poem-evidence-path {
    animation: none;
  }
}
