:root {
  color-scheme: dark;
  --font-body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-ui: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", "PingFang SC", sans-serif;
  --font-display: "Iowan Old Style", "Palatino", "Times New Roman", "Songti SC", serif;
  --font-map-label: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "Kaiti SC", serif;
  --bg: #211c16;
  --bg-raised: #3b2c1b;
  --ink: #efe4d2;
  --paper: #e8dfcf;
  --paper-deep: #332517;
  --line-dark: rgba(240, 221, 184, 0.2);
  --accent: #b9553f;
  --accent-bright: #d98556;
  --pressure: #b9553f;
  --pressure-dark: #7f2f25;
  --gold: #d7aa51;
  --gold-soft: #f4db9a;
  --gold-deep: #8d6124;
  --shadow: rgba(4, 3, 2, 0.48);
  --chrome-bg: rgba(78, 64, 48, 0.88);
  --chrome-border: rgba(215, 170, 81, 0.32);
  --chrome-shadow: 0 10px 28px rgba(4, 3, 2, 0.28);
  --control-shell-bg: rgba(26, 23, 19, 0.72);
  --control-border: rgba(215, 170, 81, 0.3);
  --control-ink: rgba(255, 242, 210, 0.7);
  --control-active-ink: #f4db9a;
  --control-focus: rgba(215, 170, 81, 0.5);
  --map-border: rgba(215, 170, 81, 0.42);
  --map-edge: rgba(244, 219, 154, 0.16);
  --scroll-frame-line: rgba(246, 211, 137, 0.54);
  --scroll-frame-shadow: rgba(56, 35, 18, 0.36);
  --scroll-corner-line: rgba(245, 203, 111, 0.66);
  --viewport-bg: #2b2015;
  --scrollbar-thumb: rgba(244, 200, 103, 0.52);
  --scrollbar-track: rgba(32, 21, 12, 0.94);
  --map-filter: saturate(1.08) contrast(1.08) brightness(0.86) sepia(0.2);
  --map-power-band-shift-y: 8.8889%;
  --map-tint: rgba(42, 26, 12, 0.14);
  --map-vignette:
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(32, 21, 11, 0.04) 22%, rgba(32, 21, 11, 0.035) 72%, rgba(5, 5, 5, 0.17)),
    linear-gradient(90deg, rgba(10, 8, 6, 0.3), rgba(35, 24, 13, 0.12) 8%, rgba(79, 52, 22, 0.04) 24%, rgba(62, 40, 18, 0.05) 50%, rgba(79, 52, 22, 0.04) 76%, rgba(35, 24, 13, 0.13) 92%, rgba(10, 8, 6, 0.34));
  --map-node-rim: rgba(73, 45, 26, 0.86);
  --map-node-fill: #b88734;
  --map-node-fill-soft: #d0a24f;
  --map-node-important-rim: rgba(58, 34, 21, 0.86);
  --map-node-important-fill: #bb8935;
  --map-node-important-fill-soft: #d4a852;
  --map-node-power-rim: rgba(67, 31, 23, 0.94);
  --map-node-power-fill: #8f3e2c;
  --map-node-power-core: #b45a3f;
  --map-node-hover-rim: rgba(57, 31, 18, 0.98);
  --map-node-active-fill: #d39d43;
  --map-node-display-scale: 1;
  --map-flow-silt: rgba(18, 36, 37, 0.34);
  --map-flow-body: rgba(77, 178, 200, 0.66);
  --map-flow-highlight: rgba(169, 232, 236, 0.76);
  --map-pressure-line: rgba(224, 95, 61, 0.66);
  --map-node-glow: rgba(255, 195, 70, 0.78);
  --map-node-glow-soft: rgba(255, 199, 91, 0.42);
  --map-power-glow: rgba(226, 86, 58, 0.68);
  --map-label-ink: rgba(255, 236, 190, 0.95);
  --map-label-stroke: rgba(12, 9, 6, 0.9);
  --map-time-ink: rgba(236, 193, 105, 0.88);
  --map-time-rule: rgba(229, 171, 70, 0.42);
  --bubble-border: rgba(139, 96, 48, 0.5);
  --bubble-bg: rgba(225, 201, 157, 0.96);
  --bubble-ink: #3c2818;
  --bubble-muted: rgba(67, 48, 31, 0.78);
  --bubble-shadow: 0 18px 42px rgba(4, 3, 2, 0.34);
  --bubble-inner: rgba(92, 59, 28, 0.14);
  --minimap-border: rgba(255, 215, 134, 0.58);
  --minimap-shadow: 0 24px 52px rgba(4, 3, 2, 0.48);
  --minimap-mask: rgba(12, 9, 7, 0.52);
  --minimap-view-fill: rgba(255, 200, 76, 0.12);
  --minimap-view-border: rgba(255, 214, 122, 0.86);
  --pioneer-bg: #d8c8a9;
  --pioneer-paper: #f0e5cf;
  --pioneer-paper-deep: #e6d6b9;
  --pioneer-ink: #2e2218;
  --pioneer-muted: rgba(55, 39, 27, 0.64);
  --pioneer-line: rgba(75, 50, 31, 0.24);
  --pioneer-card: rgba(246, 237, 218, 0.96);
  --pioneer-card-deep: #f7edd9;
  --pioneer-accent: #aa4937;
  --pioneer-link: #7b402f;
  --pioneer-brass: #9d722f;
  --pioneer-sidebar: #30251c;
  --pioneer-sidebar-ink: #f2e5ce;
  --pioneer-sidebar-muted: rgba(242, 229, 206, 0.62);
  --pioneer-shadow: 0 18px 42px rgba(62, 40, 24, 0.13);
  --pioneer-control-bg: rgba(255, 248, 232, 0.06);
  --pioneer-control-bg-strong: rgba(255, 248, 232, 0.11);
  --pioneer-filter-selected-bg: rgba(180, 76, 54, 0.22);
  --pioneer-search-bg: rgba(249, 239, 219, 0.78);
  --pioneer-count-bg: rgba(136, 91, 50, 0.08);
  --pioneer-card-hover: #fbf2df;
  --pioneer-photo-bg: #d7c39f;
  --pioneer-placeholder-ink: rgba(96, 54, 35, 0.82);
  --pioneer-placeholder-ring: rgba(96, 54, 35, 0.32);
  --pioneer-placeholder-bg: #a94b37;
  --pioneer-tag-border: rgba(91, 58, 34, 0.24);
  --pioneer-tag-bg: rgba(105, 66, 37, 0.06);
  --pioneer-category-tag-border: rgba(170, 73, 55, 0.3);
  --pioneer-category-tag-bg: rgba(170, 73, 55, 0.09);
  --pioneer-history-link-bg: rgba(255, 250, 236, 0.58);
  --pioneer-history-link-hover: rgba(170, 73, 55, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #2a2118 0%, var(--bg) 48%, #17120d 100%);
  font-family: var(--font-body);
}

button {
  font: inherit;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-bottom: 1px solid var(--chrome-border);
  padding: 0 14px;
  color: var(--ink);
  background: var(--chrome-bg);
  backdrop-filter: blur(12px) saturate(112%);
  box-shadow:
    var(--chrome-shadow),
    inset 0 -1px 0 rgba(244, 219, 154, 0.14);
}

.brand-lockup {
  position: absolute;
  left: 16px;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-lockup strong {
  display: block;
  font-size: 23px;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0;
}

.product-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  align-self: stretch;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.product-tab {
  position: relative;
  display: grid;
  min-width: 104px;
  min-height: 38px;
  align-content: center;
  border: 0;
  padding: 0 8px;
  color: var(--control-ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.product-tab.is-active {
  color: var(--control-active-ink);
  background: transparent;
}

.product-tab.is-active::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 112px;
  height: 2px;
  background: var(--gold-soft);
  content: "";
  transform: translateX(50%);
}

.product-tab--soon {
  color: rgba(239, 228, 210, 0.38);
  cursor: default;
}

.product-tab--soon span,
.product-tab--soon small {
  display: block;
}

.product-tab--soon small {
  margin-top: 3px;
  color: rgba(217, 133, 86, 0.72);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-tab:focus-visible {
  outline: 3px solid var(--control-focus);
  outline-offset: 2px;
}

.prototype-shell {
  height: calc(100vh - 54px);
  padding: 10px;
}

body[data-active-view="pioneer"] {
  overflow: hidden;
  color: var(--pioneer-ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 248, 228, 0.42), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(113, 72, 39, 0.1), transparent 30%),
    repeating-linear-gradient(0deg, rgba(70, 44, 26, 0.018) 0 1px, transparent 1px 5px),
    var(--pioneer-bg);
  font-family: var(--font-body);
}

body[data-active-view="pioneer"] .prototype-shell {
  height: calc(100vh - 54px);
  min-height: 0;
  padding: 14px;
}

body[data-active-view="pioneer"] .topbar {
  border-bottom-color: var(--chrome-border);
  background: var(--chrome-bg);
  box-shadow: var(--chrome-shadow);
}

body[data-active-view="pioneer"] .product-tab.is-active {
  color: var(--control-active-ink);
  background: transparent;
}

.view-panel {
  height: 100%;
}

.history-view {
  min-width: 0;
}

.map-workspace {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--map-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(116, 82, 38, 0.38), rgba(52, 37, 21, 0.86)),
    var(--bg-raised);
  box-shadow:
    0 28px 70px var(--shadow),
    0 0 0 1px var(--map-edge),
    inset 0 0 0 1px rgba(255, 238, 190, 0.08);
}

.map-workspace::before {
  position: absolute;
  inset: 6px;
  z-index: 4;
  border: 1px solid var(--scroll-frame-line);
  border-radius: 7px;
  background:
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) left 12px top 12px / 46px 1px no-repeat,
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) left 12px top 12px / 1px 46px no-repeat,
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) right 12px top 12px / 46px 1px no-repeat,
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) right 12px top 12px / 1px 46px no-repeat,
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) left 12px bottom 12px / 46px 1px no-repeat,
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) left 12px bottom 12px / 1px 46px no-repeat,
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) right 12px bottom 12px / 46px 1px no-repeat,
    linear-gradient(var(--scroll-corner-line), var(--scroll-corner-line)) right 12px bottom 12px / 1px 46px no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(64, 39, 19, 0.42),
    inset 0 0 0 6px var(--scroll-frame-shadow);
  content: "";
  pointer-events: none;
}

.pioneer-view {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
}

.pioneer-sidebar {
  min-height: 0;
  border: 1px solid var(--pioneer-line);
  border-radius: 8px;
  background: var(--pioneer-card);
  backdrop-filter: blur(16px) saturate(116%);
  box-shadow: var(--pioneer-shadow);
}

.pioneer-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.pioneer-sidebar-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pioneer-line);
}

.section-kicker {
  display: block;
  color: var(--pioneer-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pioneer-sidebar h2,
.pioneer-toolbar h1 {
  margin: 4px 0 0;
  color: var(--pioneer-ink);
  letter-spacing: 0;
}

.pioneer-sidebar h2 {
  font-size: 22px;
  line-height: 1.2;
}

.text-control {
  margin-top: 14px;
  border: 1px solid var(--pioneer-tag-border);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--pioneer-link);
  background: var(--pioneer-control-bg);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.text-control:hover,
.text-control:focus-visible {
  color: #fff;
  background: var(--pioneer-brass);
  outline: none;
}

.pioneer-filters {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  overflow-y: auto;
}

.pioneer-filter {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid var(--pioneer-line);
  border-radius: 8px;
  padding: 8px 9px;
  background: var(--pioneer-control-bg);
  cursor: pointer;
}

.pioneer-filter:hover {
  border-color: var(--pioneer-tag-border);
  background: var(--pioneer-control-bg-strong);
}

.pioneer-filter input {
  width: 16px;
  height: 16px;
  accent-color: var(--pioneer-accent);
}

.pioneer-filter:has(input:checked) {
  border-color: var(--pioneer-tag-border);
  background: var(--pioneer-filter-selected-bg);
}

.filter-label {
  min-width: 0;
  overflow: hidden;
  color: var(--pioneer-ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-count {
  min-width: 28px;
  color: var(--pioneer-muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.pioneer-library {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pioneer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--pioneer-line);
  padding: 2px 2px 16px;
}

.pioneer-toolbar h1 {
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
}

.pioneer-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(520px, 50%);
}

.pioneer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
  border: 1px solid var(--pioneer-line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--pioneer-muted);
  background: var(--pioneer-search-bg);
  font-size: 12px;
  font-weight: 850;
  box-shadow: var(--pioneer-shadow);
}

.pioneer-search span {
  color: var(--pioneer-accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pioneer-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--pioneer-ink);
  background: transparent;
  font: inherit;
  outline: none;
}

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

.pioneer-count {
  border: 1px solid var(--pioneer-line);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--pioneer-muted);
  background: var(--pioneer-count-bg);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.pioneer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  padding: 16px 2px 2px;
  overflow-y: auto;
}

.pioneer-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: max-content;
  min-height: 154px;
  border: 1px solid var(--pioneer-line);
  border-left: 3px solid var(--pioneer-tag-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  background: var(--pioneer-card);
  backdrop-filter: blur(10px) saturate(112%);
  box-shadow: var(--pioneer-shadow);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.pioneer-card:hover {
  border-color: var(--pioneer-tag-border);
  border-left-color: var(--pioneer-accent);
  background: var(--pioneer-card-hover);
  box-shadow: var(--pioneer-shadow);
  transform: translateY(-1px);
}

.pioneer-photo {
  position: relative;
  align-self: flex-start;
  flex: 0 0 92px;
  width: 92px;
  height: 124px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--pioneer-line);
  border-radius: 6px;
  background: var(--pioneer-photo-bg);
}

.pioneer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.02);
}

.pioneer-photo-placeholder {
  display: grid;
  height: 100%;
  min-height: 0;
  place-items: center;
  padding: 12px;
  color: var(--pioneer-placeholder-ink);
  text-align: center;
}

.pioneer-photo-placeholder span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--pioneer-placeholder-ring);
  border-radius: 50%;
  color: #fff8e8;
  background: var(--pioneer-placeholder-bg);
  font-size: 23px;
  font-weight: 900;
}

.pioneer-photo-placeholder small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 850;
}

.pioneer-card-body {
  display: flex;
  height: max-content;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.pioneer-identity-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(190px, 0.88fr);
  gap: 8px;
  align-items: start;
}

.pioneer-card-head {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pioneer-card h2 {
  margin: 0;
  color: var(--pioneer-ink);
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: 0;
}

.pioneer-meta-line {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--pioneer-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pioneer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pioneer-identity-tags {
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-top: 0;
  max-height: 21px;
  overflow: hidden;
}

.pioneer-tags span {
  flex: 0 0 auto;
  border: 1px solid var(--pioneer-tag-border);
  border-radius: 999px;
  padding: 3px 6px;
  color: var(--pioneer-link);
  background: var(--pioneer-tag-bg);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.15;
}

.pioneer-tags span.is-category {
  border-color: var(--pioneer-category-tag-border);
  color: var(--pioneer-accent);
  background: var(--pioneer-category-tag-bg);
}

.pioneer-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--pioneer-ink);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.42;
}

.pioneer-node-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 8px;
}

.history-node-link {
  display: inline;
  appearance: none;
  max-width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--pioneer-link);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: normal;
}

.history-node-link:hover,
.history-node-link:focus-visible {
  color: var(--pressure-dark);
  background: transparent;
  outline: none;
}

.history-node-link:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 3px;
}

.pioneer-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--pioneer-line);
  border-radius: 8px;
  padding: 24px;
  color: var(--pioneer-muted);
  background: var(--pioneer-search-bg);
  font-size: 14px;
  font-weight: 760;
  text-align: center;
}

/* AI Pioneer: current editorial field-index skin. */
body[data-active-view="pioneer"] .pioneer-view {
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 12px;
}

body[data-active-view="pioneer"] .pioneer-sidebar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 204, 158, 0.2);
  border-radius: 4px;
  padding: 20px 18px 16px;
  color: var(--pioneer-sidebar-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7px),
    var(--pioneer-sidebar);
  box-shadow: 0 20px 44px rgba(51, 32, 19, 0.2);
}

body[data-active-view="pioneer"] .pioneer-sidebar::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(233, 203, 153, 0.08);
  content: "";
  pointer-events: none;
}

.pioneer-sidebar-mark {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 18px;
  color: rgba(244, 218, 174, 0.44);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

body[data-active-view="pioneer"] .pioneer-sidebar-head {
  position: relative;
  z-index: 1;
  border-bottom: 0;
  padding-bottom: 18px;
}

body[data-active-view="pioneer"] .pioneer-sidebar h2 {
  margin: 5px 0 0;
  color: var(--pioneer-sidebar-ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
}

.pioneer-sidebar-head p {
  margin: 10px 0 0;
  color: var(--pioneer-sidebar-muted);
  font-size: 12px;
  line-height: 1.65;
}

.pioneer-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(237, 209, 166, 0.16);
  border-bottom: 1px solid rgba(237, 209, 166, 0.16);
  padding: 15px 0;
}

.pioneer-stats div {
  min-width: 0;
  border-right: 1px solid rgba(237, 209, 166, 0.12);
  padding: 0 9px;
}

.pioneer-stats div:first-child {
  padding-left: 0;
}

.pioneer-stats div:last-child {
  border-right: 0;
  padding-right: 0;
}

.pioneer-stats dt {
  color: var(--pioneer-sidebar-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pioneer-stats dd {
  margin: 5px 0 0;
  color: var(--pioneer-sidebar-ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.pioneer-filter-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  color: rgba(244, 218, 174, 0.68);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body[data-active-view="pioneer"] .text-control {
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(242, 229, 206, 0.28);
  border-radius: 0;
  padding: 2px 0;
  color: var(--pioneer-sidebar-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

body[data-active-view="pioneer"] .text-control:hover,
body[data-active-view="pioneer"] .text-control:focus-visible {
  border-bottom-color: var(--pioneer-accent);
  color: var(--pioneer-sidebar-ink);
  background: transparent;
}

body[data-active-view="pioneer"] .pioneer-filters {
  position: relative;
  z-index: 1;
  gap: 0;
  padding-top: 9px;
  scrollbar-color: rgba(230, 199, 151, 0.26) transparent;
  scrollbar-width: thin;
}

body[data-active-view="pioneer"] .pioneer-filter {
  grid-template-columns: 16px minmax(0, 1fr) auto;
  min-height: 39px;
  border: 0;
  border-bottom: 1px solid rgba(239, 213, 173, 0.1);
  border-radius: 0;
  padding: 8px 3px;
  background: transparent;
  transition: background 150ms ease, padding 150ms ease;
}

body[data-active-view="pioneer"] .pioneer-filter:hover,
body[data-active-view="pioneer"] .pioneer-filter:has(input:checked) {
  padding-left: 7px;
  background: var(--pioneer-control-bg-strong);
}

body[data-active-view="pioneer"] .pioneer-filter:has(input:checked) {
  background: var(--pioneer-filter-selected-bg);
}

body[data-active-view="pioneer"] .pioneer-filter input {
  display: grid;
  width: 13px;
  height: 13px;
  appearance: none;
  place-content: center;
  border: 1px solid rgba(239, 213, 173, 0.42);
  border-radius: 50%;
  background: transparent;
}

body[data-active-view="pioneer"] .pioneer-filter input::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pioneer-accent);
  content: "";
  transform: scale(0);
  transition: transform 120ms ease;
}

body[data-active-view="pioneer"] .pioneer-filter input:checked::before {
  transform: scale(1);
}

body[data-active-view="pioneer"] .filter-label {
  color: var(--pioneer-sidebar-ink);
  font-size: 13px;
  font-weight: 760;
}

body[data-active-view="pioneer"] .filter-count {
  color: var(--pioneer-sidebar-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
}

.pioneer-filter-note {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding-top: 12px;
  color: rgba(242, 229, 206, 0.38);
  font-size: 9px;
  line-height: 1.45;
}

.pioneer-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--pioneer-line);
  border-radius: 4px 4px 0 0;
  padding: 20px 34px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.42), transparent 48%),
    repeating-linear-gradient(0deg, rgba(79, 48, 29, 0.025) 0 1px, transparent 1px 6px),
    var(--pioneer-paper);
  box-shadow: var(--pioneer-shadow);
}

.pioneer-hero::before {
  position: absolute;
  top: -90px;
  right: 150px;
  width: 1px;
  height: 420px;
  background: rgba(125, 75, 42, 0.12);
  content: "";
  transform: rotate(21deg);
}

.pioneer-hero::after {
  position: absolute;
  right: -55px;
  bottom: -74px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(169, 75, 56, 0.13);
  border-radius: 50%;
  content: "";
}

.pioneer-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.pioneer-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--pioneer-muted);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pioneer-hero-meta .section-kicker {
  display: inline;
}

.pioneer-hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22em;
  margin: 8px 0 0;
  color: var(--pioneer-ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 3.1vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.pioneer-hero h1 em {
  color: var(--pioneer-accent);
  font-weight: 500;
}

.pioneer-hero-copy > p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--pioneer-muted);
  font-size: 12.5px;
  font-weight: 580;
  line-height: 1.5;
}

.pioneer-hero-index {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: center;
  justify-self: center;
  width: 122px;
  height: 122px;
  place-content: center;
  border: 2px solid rgba(163, 68, 51, 0.72);
  border-radius: 50%;
  color: var(--pioneer-accent);
  text-align: center;
  transform: rotate(4deg);
}

.pioneer-hero-index::after {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(163, 68, 51, 0.46);
  border-radius: inherit;
  content: "";
}

.pioneer-hero-index strong {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.76;
}

.pioneer-hero-index span,
.pioneer-hero-index small {
  margin-top: 7px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.22;
}

.pioneer-hero-index small {
  margin-top: 5px;
  color: var(--pioneer-muted);
  font-size: 8px;
}

body[data-active-view="pioneer"] .pioneer-toolbar {
  gap: 16px;
  border: 1px solid var(--pioneer-line);
  border-top: 0;
  padding: 12px 16px;
  background: rgba(239, 228, 206, 0.78);
  backdrop-filter: blur(12px);
}

.pioneer-result-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pioneer-result-heading > span {
  color: var(--pioneer-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-active-view="pioneer"] .pioneer-tools {
  min-width: min(480px, 48%);
}

body[data-active-view="pioneer"] .pioneer-search {
  min-width: 340px;
  border: 0;
  border-bottom: 1px solid rgba(93, 59, 36, 0.36);
  border-radius: 0;
  padding: 7px 2px;
  background: transparent;
  box-shadow: none;
}

body[data-active-view="pioneer"] .pioneer-search span {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

body[data-active-view="pioneer"] .pioneer-count {
  border: 0;
  border-left: 2px solid var(--pioneer-accent);
  border-radius: 0;
  padding: 0 0 0 9px;
  color: var(--pioneer-ink);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
}

body[data-active-view="pioneer"] .pioneer-grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 10px;
  padding: 12px 2px 2px 0;
  scrollbar-color: rgba(111, 72, 40, 0.38) transparent;
  scrollbar-width: thin;
}

body[data-active-view="pioneer"] .pioneer-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  min-height: 248px;
  border: 1px solid var(--pioneer-line);
  border-top: 3px solid rgba(138, 88, 49, 0.24);
  border-radius: 3px;
  padding: 14px;
  background: var(--pioneer-card);
  animation: pioneer-card-in 420ms both;
  animation-delay: calc(var(--pioneer-order) * 28ms);
}

body[data-active-view="pioneer"] .pioneer-card:hover {
  border-color: rgba(150, 73, 51, 0.42);
  border-top-color: var(--pioneer-accent);
  background: var(--pioneer-card-hover);
  box-shadow: 0 24px 48px rgba(62, 40, 24, 0.18);
  transform: translateY(-2px);
}

body[data-active-view="pioneer"] .pioneer-photo {
  width: 108px;
  height: 146px;
  border: 1px solid rgba(78, 49, 30, 0.32);
  border-radius: 2px;
  background: var(--pioneer-photo-bg);
  box-shadow: 4px 5px 0 rgba(93, 60, 35, 0.09);
}

body[data-active-view="pioneer"] .pioneer-photo::after {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255, 247, 228, 0.14);
  content: "";
  pointer-events: none;
}

.pioneer-photo-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

body[data-active-view="pioneer"] .pioneer-photo img {
  filter: sepia(0.18) saturate(0.72) contrast(1.07);
  transition: filter 180ms ease, transform 240ms ease;
}

body[data-active-view="pioneer"] .pioneer-card:hover .pioneer-photo img {
  filter: sepia(0.04) saturate(0.98) contrast(1.04);
  transform: scale(1.025);
}

.pioneer-photo-source {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 1;
  max-width: calc(100% - 10px);
  overflow: hidden;
  padding: 3px 4px;
  color: rgba(255, 247, 228, 0.82);
  background: rgba(45, 31, 22, 0.66);
  font-family: var(--font-ui);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-active-view="pioneer"] .pioneer-photo-placeholder span {
  width: 50px;
  height: 50px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  transform: rotate(-3deg);
}

body[data-active-view="pioneer"] .pioneer-card-body {
  min-height: 218px;
}

body[data-active-view="pioneer"] .pioneer-card-head {
  display: grid;
  gap: 0;
}

.pioneer-card-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 7px;
  color: var(--pioneer-muted);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pioneer-card-register span:first-child {
  color: var(--pioneer-accent);
}

body[data-active-view="pioneer"] .pioneer-card h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.018em;
}

.pioneer-name-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.pioneer-name-link:hover,
.pioneer-name-link:focus-visible {
  color: var(--pioneer-accent);
}

.pioneer-name-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.pioneer-name-link-mark {
  font-family: var(--font-ui);
  font-size: 0.52em;
  font-weight: 900;
  transform: translateY(-0.28em);
}

.pioneer-zh-name {
  margin: 4px 0 0;
  color: var(--pioneer-accent);
  font-size: 11px;
  font-weight: 720;
}

body[data-active-view="pioneer"] .pioneer-meta-line {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  overflow: visible;
  font-size: 9.5px;
  line-height: 1.3;
  white-space: normal;
}

.pioneer-meta-line strong {
  color: rgba(48, 34, 24, 0.82);
  font-size: 10.5px;
  font-weight: 800;
}

.pioneer-meta-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-view="pioneer"] .pioneer-identity-tags {
  justify-content: flex-start;
  margin-top: 9px;
  max-height: 43px;
}

body[data-active-view="pioneer"] .pioneer-tags span {
  padding: 3px 7px;
}

body[data-active-view="pioneer"] .pioneer-summary {
  -webkit-line-clamp: 4;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 590;
  line-height: 1.52;
}

body[data-active-view="pioneer"] .pioneer-node-links {
  display: grid;
  gap: 5px;
  margin-top: auto;
  border-top: 1px solid rgba(83, 53, 33, 0.13);
  padding-top: 8px;
}

.pioneer-node-label {
  color: var(--pioneer-muted);
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pioneer-node-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 11px;
}

body[data-active-view="pioneer"] .history-node-link {
  font-size: 9.5px;
  font-weight: 620;
}

.history-node-link > span {
  margin-right: 4px;
  color: var(--pioneer-accent);
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 900;
  text-decoration: none;
}

.pioneer-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px;
  color: var(--pioneer-muted);
  font-family: var(--font-display);
  font-size: 20px;
  text-align: center;
}

@keyframes pioneer-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-active-view="pioneer"] .pioneer-card {
    animation: none;
  }
}

.map-viewport {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--viewport-bg);
  outline: none;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

.map-viewport:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(215, 170, 81, 0.42);
}

.map-canvas {
  position: relative;
  height: 100%;
  min-width: 100%;
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--map-tint);
  pointer-events: none;
}

.map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--map-vignette);
  pointer-events: none;
}

.map-raster-layer,
.node-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-raster-layer {
  z-index: 0;
  overflow: hidden;
  filter: var(--map-filter);
}

.map-background {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.map-power-band-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.map-power-band-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: translateY(var(--map-power-band-shift-y));
  transform-origin: top left;
  user-select: none;
  -webkit-user-drag: none;
}

.node-overlay {
  z-index: 3;
  pointer-events: none;
}

.map-flow-lines,
.map-river-labels,
.map-pressure-lines,
.map-time-axis {
  pointer-events: none;
}

.map-flow-stroke,
.map-pressure-line,
.map-time-tick line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.map-flow-stroke {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-flow-silt {
  stroke: var(--map-flow-silt);
  stroke-width: 9.2;
  opacity: 0.2;
  mix-blend-mode: multiply;
  filter: blur(0.34px);
}

.map-flow-body {
  stroke: var(--map-flow-body);
  stroke-width: 2.4;
  opacity: 0.44;
  mix-blend-mode: screen;
  filter: none;
}

.map-flow-highlight {
  stroke: var(--map-flow-highlight);
  stroke-width: 1.05;
  stroke-dasharray: 24 28;
  stroke-dashoffset: var(--flow-offset);
  opacity: 0.58;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 2px rgba(68, 189, 218, 0.42))
    drop-shadow(0 0 5px rgba(79, 196, 218, 0.2));
}

.map-flow-line.is-line-primary-river .map-flow-silt,
.map-flow-line.is-line-downstream-river .map-flow-silt {
  stroke-width: 12.6;
  opacity: 0.24;
}

.map-flow-line.is-line-primary-river .map-flow-body,
.map-flow-line.is-line-downstream-river .map-flow-body {
  stroke-width: 3.25;
  opacity: 0.5;
}

.map-flow-line.is-line-downstream-river .map-flow-highlight,
.map-flow-line.is-route-generative .map-flow-highlight,
.map-flow-line.is-route-world .map-flow-highlight {
  opacity: 0.64;
}

.map-flow-line.is-route-generative .map-flow-body,
.map-flow-line.is-route-world .map-flow-body {
  opacity: 0.52;
}

.map-flow-line.is-line-internal-branch .map-flow-silt {
  stroke-width: 6.8;
  opacity: 0.18;
}

.map-flow-line.is-line-internal-branch .map-flow-body {
  stroke-width: 1.95;
  opacity: 0.4;
}

.map-flow-line.is-line-shared-region .map-flow-silt {
  stroke-width: 9.2;
  opacity: 0.2;
}

.map-flow-line.is-line-shared-region .map-flow-body {
  stroke: rgba(79, 167, 188, 0.5);
  stroke-width: 2.25;
}

.map-flow-line.is-line-undercurrent {
  opacity: 0.68;
}

.map-flow-line.is-line-undercurrent .map-flow-silt {
  stroke: rgba(27, 22, 18, 0.28);
  stroke-width: 4.3;
  opacity: 0.22;
}

.map-flow-line.is-line-undercurrent .map-flow-body {
  stroke: rgba(95, 122, 123, 0.38);
  stroke-width: 1.28;
  stroke-dasharray: 18 24 5 30;
  stroke-dashoffset: var(--flow-offset);
  opacity: 0.3;
}

.map-flow-line.is-line-undercurrent .map-flow-highlight {
  stroke: rgba(169, 210, 202, 0.34);
  stroke-width: 0.58;
  stroke-dasharray: 8 38 4 48;
  opacity: 0.26;
}

.map-flow-line.is-line-technology-flow {
  opacity: 1;
}

.map-flow-line.is-line-technology-flow .map-flow-silt {
  stroke: var(--map-flow-silt);
  stroke-width: 9.2;
  opacity: 0.2;
}

.map-flow-line.is-line-technology-flow .map-flow-body {
  stroke: var(--map-flow-body);
  stroke-width: 2.4;
  opacity: 0.44;
}

.map-flow-line.is-line-technology-flow .map-flow-highlight {
  stroke: var(--map-flow-highlight);
  stroke-width: 1.05;
  stroke-dasharray: 24 28;
  opacity: 0.58;
}

.map-flow-line.is-line-internal-branch .map-flow-highlight {
  stroke-width: 0.76;
  stroke-dasharray: 20 24;
  opacity: 0.48;
}

.map-river-label-wrap {
  opacity: 0.68;
}

.map-river-label-panel {
  fill: rgba(69, 47, 25, 0.24);
  stroke: rgba(226, 184, 104, 0.34);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  filter:
    drop-shadow(0 2px 2px rgba(13, 9, 5, 0.16))
    drop-shadow(0 0 6px rgba(231, 177, 73, 0.08));
}

.map-river-label-rule {
  stroke: rgba(244, 205, 126, 0.27);
  stroke-linecap: round;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.map-river-label {
  fill: rgba(244, 217, 154, 0.82);
  font-family: var(--font-map-label);
  font-size: 27px;
  font-weight: 760;
  letter-spacing: 0;
  paint-order: stroke fill;
  stroke: rgba(30, 20, 10, 0.74);
  stroke-linejoin: round;
  stroke-width: 2.8px;
  text-anchor: middle;
}

.map-river-label-wrap.is-line-shared-region .map-river-label {
  fill: rgba(235, 220, 171, 0.9);
}

.map-river-label-wrap.is-line-internal-branch {
  opacity: 0.72;
}

.map-river-label-wrap.is-line-internal-branch .map-river-label-panel {
  fill: rgba(54, 44, 26, 0.28);
  stroke: rgba(222, 194, 122, 0.34);
}

.map-river-label-wrap.is-line-internal-branch .map-river-label {
  fill: rgba(232, 216, 166, 0.88);
  font-size: 25px;
  stroke-width: 2.6px;
}

.map-river-label-wrap.is-line-downstream-river .map-river-label {
  fill: rgba(255, 235, 174, 0.88);
}

.map-power-layer-label-wrap {
  opacity: 0.78;
}

.map-power-layer-label-wrap .map-river-label-panel {
  fill: rgba(91, 33, 24, 0.22);
  stroke: rgba(234, 119, 84, 0.32);
}

.map-power-layer-label-wrap .map-river-label-rule {
  stroke: rgba(255, 178, 136, 0.38);
}

.map-power-layer-label-wrap .map-river-label {
  fill: rgba(255, 203, 176, 0.88);
  font-size: 26px;
  stroke: rgba(42, 12, 8, 0.88);
  stroke-width: 2.8px;
}

.map-pressure-line {
  stroke: var(--map-pressure-line);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 10;
  opacity: 0.58;
  filter:
    drop-shadow(0 0 2px rgba(255, 166, 111, 0.72))
    drop-shadow(0 0 8px rgba(205, 67, 43, 0.42));
  mix-blend-mode: screen;
}

.map-time-axis {
  color: var(--map-time-ink);
  opacity: 0.94;
}

.map-time-tick line {
  stroke: var(--map-time-ink);
  stroke-width: 1.25;
}

.map-time-tick text {
  fill: rgba(242, 203, 124, 0.96);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  text-anchor: middle;
  paint-order: stroke fill;
  stroke: rgba(48, 31, 15, 0.78);
  stroke-width: 2.8px;
  filter: drop-shadow(0 1px 1px rgba(20, 12, 7, 0.58));
}

.map-time-tick.is-cutoff text {
  font-size: 30px;
  font-weight: 820;
}

.map-time-climate-marker {
  color: rgba(246, 207, 130, 0.98);
}

.map-time-climate-label,
.map-time-climate-date {
  fill: currentColor;
  paint-order: stroke fill;
  stroke: rgba(35, 23, 12, 0.9);
  stroke-linejoin: round;
  text-anchor: middle;
  filter:
    drop-shadow(0 1px 1px rgba(19, 11, 5, 0.48))
    drop-shadow(0 0 2px rgba(255, 214, 132, 0.16));
}

.map-time-climate-label {
  cursor: pointer;
  fill: rgba(246, 207, 130, 0.98);
  font-family: var(--font-ui);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
  pointer-events: auto;
  stroke-width: 2.65px;
}

.map-time-climate-date {
  fill: rgba(249, 220, 157, 0.98);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.015em;
  stroke-width: 2.35px;
}

.map-time-climate-tick,
.map-time-climate-span {
  stroke: rgba(246, 207, 130, 0.98);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.map-time-climate-tick {
  stroke-width: 1.25px;
}

.map-time-climate-span {
  stroke-width: 1px;
  stroke-dasharray: 10 11;
  opacity: 0.76;
}

.map-time-climate-marker.is-winter {
  color: rgba(188, 222, 226, 0.98);
}

.map-time-climate-marker.is-revival {
  color: rgba(236, 221, 151, 0.98);
}

.map-time-climate-marker.is-expansion {
  color: rgba(179, 222, 224, 0.98);
}

.map-time-climate-label:hover,
.map-time-climate-label:focus-visible,
.map-time-climate-marker.is-active .map-time-climate-label {
  fill: rgba(255, 229, 162, 1);
  filter:
    drop-shadow(0 0 3px rgba(255, 220, 137, 0.66))
    drop-shadow(0 1px 1px rgba(18, 10, 4, 0.62));
  outline: none;
}

.map-time-climate-marker.is-active .map-time-climate-tick,
.map-time-climate-marker.is-active .map-time-climate-span {
  stroke: rgba(255, 211, 111, 0.98);
  opacity: 1;
}

.map-node {
  --node-rim: var(--map-node-rim);
  --node-fill: var(--map-node-fill);
  --node-fill-soft: var(--map-node-fill-soft);
  cursor: pointer;
  pointer-events: auto;
}

.node-hit {
  fill: transparent;
}

.node-mark,
.node-bitmap {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.node-mark {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(var(--map-node-display-scale));
}

.node-bitmap {
  opacity: 0.96;
  filter:
    drop-shadow(0 0 2px var(--map-node-glow))
    drop-shadow(0 0 7px var(--map-node-glow-soft));
  pointer-events: none;
}

.map-node.is-important .node-bitmap {
  filter:
    drop-shadow(0 0 3px rgba(255, 218, 103, 0.88))
    drop-shadow(0 0 10px rgba(255, 188, 58, 0.46));
}

.map-node.is-power .node-bitmap {
  filter:
    drop-shadow(0 0 2px var(--map-power-glow))
    drop-shadow(0 0 8px rgba(201, 59, 42, 0.38));
}

.node-label-wrap {
  pointer-events: none;
}

.node-label {
  fill: rgba(255, 229, 168, 0.94);
  font-family: var(--font-map-label);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
  paint-order: stroke fill;
  pointer-events: none;
  stroke: rgba(31, 19, 9, 0.86);
  stroke-linejoin: round;
  stroke-width: 3.35px;
  filter:
    drop-shadow(0 1px 1px rgba(20, 12, 6, 0.42))
    drop-shadow(0 0 3px rgba(255, 199, 82, 0.18));
}

.node-label.is-important {
  fill: #ffd36f;
  font-size: 24px;
  font-weight: 760;
  stroke-width: 3.35px;
  filter:
    drop-shadow(0 1px 1px rgba(20, 12, 6, 0.42))
    drop-shadow(0 0 5px rgba(244, 164, 43, 0.48));
}

.node-label-date {
  fill: rgba(255, 222, 143, 0.9);
  font-size: 23.4px;
  font-weight: 800;
}

.node-label.is-power {
  fill: rgba(255, 214, 190, 0.92);
  font-size: 21.6px;
  font-weight: 780;
  filter:
    drop-shadow(0 1px 1px rgba(30, 12, 8, 0.46))
    drop-shadow(0 0 4px rgba(204, 70, 48, 0.24));
}

.node-label-leader-wrap {
  pointer-events: none;
}

.node-label-leader {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.node-label-leader-hit {
  stroke: transparent;
  stroke-width: 15px;
  pointer-events: stroke;
}

.node-label-leader-shadow {
  stroke: rgba(73, 45, 13, 0.72);
  stroke-width: 3.4px;
  opacity: 0.43;
}

.node-label-leader-core {
  stroke: rgba(255, 218, 126, 0.96);
  stroke-width: 1.65px;
  opacity: 0.66;
  filter:
    drop-shadow(0 0 2px rgba(255, 217, 126, 0.32))
    drop-shadow(0 0 5px rgba(255, 186, 66, 0.17));
}

.node-label-leader-handle {
  display: none;
  fill: rgba(255, 220, 132, 0.88);
  stroke: rgba(78, 46, 12, 0.92);
  stroke-width: 1px;
  cursor: grab;
  opacity: 0;
  pointer-events: auto;
  vector-effect: non-scaling-stroke;
}

body.is-label-editor .node-label-leader-wrap {
  pointer-events: auto;
}

body.is-label-editor .node-label-leader-handle {
  display: block;
}

body.is-label-editor .node-label-leader-wrap:hover .node-label-leader-core,
body.is-label-editor .node-label-leader-wrap.is-selected .node-label-leader-core,
body.is-label-editor .node-label-leader-wrap.is-dragging-leader .node-label-leader-core {
  stroke: rgba(255, 225, 139, 1);
  stroke-width: 1.9px;
  opacity: 0.7;
  filter:
    drop-shadow(0 0 3px rgba(255, 221, 126, 0.43))
    drop-shadow(0 0 7px rgba(255, 186, 66, 0.24));
}

body.is-label-editor .node-label-leader-wrap:hover .node-label-leader-handle,
body.is-label-editor .node-label-leader-wrap.is-selected .node-label-leader-handle,
body.is-label-editor .node-label-leader-wrap.is-dragging-leader .node-label-leader-handle {
  opacity: 0.72;
}

body.is-label-editor .node-label-leader-wrap.is-dragging-leader .node-label-leader-handle {
  cursor: grabbing;
  opacity: 0.95;
}

.map-node:hover .node-mark,
.map-node:focus-visible .node-mark {
  transform: scale(calc(var(--map-node-display-scale) * 1.1));
}

.map-node:hover .node-bitmap,
.map-node:focus-visible .node-bitmap,
.map-node.is-active .node-bitmap {
  opacity: 1;
}

.map-node.is-active .node-mark {
  transform: scale(calc(var(--map-node-display-scale) * 1.14));
}

.node-detail-bubble {
  --detail-anchor-y: 50%;
  position: absolute;
  z-index: 6;
  width: min(470px, 38vw);
  max-height: min(560px, calc(100% - 28px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--bubble-border);
  border-radius: 6.5px;
  padding: 14px 17px;
  color: var(--bubble-ink);
  background:
    repeating-linear-gradient(11deg, rgba(99, 67, 35, 0.028) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(101deg, rgba(255, 246, 210, 0.035) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 18% 10%, rgba(250, 231, 187, 0.38), transparent 36%),
    radial-gradient(circle at 88% 86%, rgba(127, 86, 43, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(238, 220, 179, 0.98), var(--bubble-bg) 58%, rgba(209, 178, 125, 0.96));
  font-family: var(--font-map-label);
  backdrop-filter: blur(5px) saturate(112%);
  box-shadow:
    var(--bubble-shadow),
    inset 0 0 0 1px rgba(255, 246, 214, 0.42),
    inset 0 0 0 4px rgba(126, 86, 42, 0.08),
    inset 0 0 34px var(--bubble-inner);
}

.node-detail-bubble.is-timeline-period-detail {
  width: fit-content;
  min-width: 220px;
  max-width: min(380px, 32vw);
}

.node-detail-bubble::before {
  position: absolute;
  top: var(--detail-anchor-y);
  left: -8px;
  width: 14px;
  height: 14px;
  border-bottom: 1px solid var(--bubble-border);
  border-left: 1px solid var(--bubble-border);
  background:
    linear-gradient(135deg, rgba(235, 216, 174, 0.98), rgba(208, 176, 123, 0.96));
  box-shadow:
    -7px 7px 18px rgba(4, 3, 2, 0.16),
    inset 1px -1px 0 rgba(255, 246, 214, 0.48);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.node-detail-bubble.is-anchor-right::before {
  right: -8px;
  left: auto;
  border: 0;
  border-top: 1px solid var(--bubble-border);
  border-right: 1px solid var(--bubble-border);
  box-shadow:
    7px -7px 18px rgba(4, 3, 2, 0.14),
    inset -1px 1px 0 rgba(255, 246, 214, 0.46);
}

.node-detail-bubble::after {
  position: absolute;
  inset: 4px;
  z-index: 0;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at 16% 28%, rgba(112, 75, 37, 0.075), transparent 18%),
    radial-gradient(ellipse at 76% 14%, rgba(255, 244, 209, 0.1), transparent 16%),
    radial-gradient(ellipse at 68% 78%, rgba(104, 69, 34, 0.06), transparent 20%);
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.32;
  pointer-events: none;
}

.node-detail-bubble > * {
  position: relative;
  z-index: 1;
}

.node-detail-bubble h2 {
  margin: 0;
  color: var(--bubble-ink);
  font-size: 16.5px;
  font-weight: 760;
  line-height: 1.32;
  letter-spacing: 0;
}

.node-detail-rule {
  height: 1px;
  margin: 7px 0;
  background: linear-gradient(90deg, transparent, rgba(139, 94, 44, 0.36) 12%, rgba(139, 94, 44, 0.34) 88%, transparent);
}

.node-detail-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.node-detail-meta div {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2px;
  align-items: start;
  min-width: 0;
}

.node-detail-meta dt,
.node-detail-meta dd {
  margin: 0;
  min-width: 0;
  font-size: 12.2px;
  line-height: 1.58;
}

.node-detail-meta dt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8a3f29;
  font-weight: 780;
  white-space: nowrap;
}

.node-detail-meta dd {
  overflow: visible;
  color: rgba(58, 37, 22, 0.78);
  font-weight: 620;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.node-detail-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: rgba(116, 83, 51, 0.78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transform: translateY(1px);
}

body.is-label-editor .map-river-labels,
body.is-label-editor .node-label-wrap,
body.is-label-editor .map-river-label-wrap,
body.is-label-editor .node-label,
body.is-label-editor .node-label-leader-handle,
body.is-label-editor .map-river-label,
body.is-label-editor .map-river-label-panel,
body.is-label-editor .map-river-label-rule {
  pointer-events: auto;
}

body.is-label-editor .map-node {
  cursor: grab;
}

body.is-label-editor .node-label-wrap,
body.is-label-editor .map-river-label-wrap {
  cursor: grab;
}

body.is-label-editor .map-node.is-dragging-node,
body.is-label-editor .node-label-wrap.is-dragging-label,
body.is-label-editor .map-river-label-wrap.is-dragging-label {
  cursor: grabbing;
  opacity: 0.98;
}

body.is-label-editor .map-node:hover .node-bitmap,
body.is-label-editor .map-node.is-dragging-node .node-bitmap {
  filter:
    drop-shadow(0 0 4px rgba(130, 209, 255, 0.9))
    drop-shadow(0 0 12px rgba(75, 178, 255, 0.48));
}

body.is-label-editor .node-label-wrap:hover .node-label,
body.is-label-editor .map-river-label-wrap:hover .map-river-label {
  filter:
    drop-shadow(0 0 3px rgba(255, 219, 132, 0.4))
    drop-shadow(0 1px 1px rgba(18, 10, 4, 0.42));
}

body.is-label-editor .map-time-axis {
  pointer-events: auto;
}

body.is-label-editor .map-time-tick {
  pointer-events: none;
}

body.is-label-editor .map-time-climate-marker {
  cursor: ew-resize;
  pointer-events: all;
}

body.is-label-editor .map-time-climate-label {
  cursor: ew-resize;
}

body.is-label-editor .map-time-climate-marker.is-dragging-label {
  cursor: ew-resize;
}

body.is-label-editor .map-time-climate-marker:hover text,
body.is-label-editor .map-time-climate-marker.is-selected text {
  filter:
    drop-shadow(0 0 3px rgba(255, 220, 137, 0.72))
    drop-shadow(0 1px 1px rgba(18, 10, 4, 0.5));
}

body.is-label-editor .map-time-climate-marker.is-selected .map-time-climate-tick,
body.is-label-editor .map-time-climate-marker.is-selected .map-time-climate-span {
  stroke: rgba(255, 211, 111, 0.96);
  stroke-width: 2px;
}

body.is-label-editor .map-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

body.is-label-editor .map-viewport {
  grid-row: 1;
  height: auto;
  min-height: 0;
}

.label-editor-toolbar {
  grid-row: 2;
  justify-self: end;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: min(980px, calc(100% - 18px));
  margin: 0 9px 9px;
  border: 1px solid rgba(221, 181, 105, 0.36);
  border-radius: 7px;
  padding: 9px 10px;
  color: rgba(255, 235, 184, 0.94);
  background:
    linear-gradient(180deg, rgba(64, 42, 22, 0.94), rgba(34, 24, 15, 0.96));
  box-shadow:
    0 18px 46px rgba(4, 3, 2, 0.42),
    inset 0 0 0 1px rgba(255, 236, 185, 0.08);
  font-family: var(--font-ui);
  font-size: 12px;
}

.label-editor-toolbar strong {
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.label-editor-toolbar span {
  min-width: 190px;
  color: rgba(234, 210, 160, 0.82);
  white-space: nowrap;
}

.label-editor-toolbar button {
  border: 1px solid rgba(224, 183, 102, 0.34);
  border-radius: 5px;
  padding: 5px 8px;
  color: rgba(255, 234, 184, 0.94);
  background: rgba(106, 72, 34, 0.58);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.label-editor-toolbar button:hover {
  background: rgba(143, 99, 47, 0.72);
}

.node-label-line-editor[hidden] {
  display: none;
}

.node-label-line-editor {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 21;
  width: min(420px, calc(100vw - 36px));
  color: rgba(255, 235, 184, 0.94);
  font-family: var(--font-ui);
}

.node-label-line-editor-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(221, 181, 105, 0.38);
  border-radius: 7px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(66, 43, 23, 0.97), rgba(34, 24, 15, 0.98));
  box-shadow:
    0 18px 46px rgba(4, 3, 2, 0.46),
    inset 0 0 0 1px rgba(255, 236, 185, 0.08);
}

.node-label-line-editor strong {
  color: rgba(255, 239, 197, 0.96);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.node-label-line-editor p {
  margin: 0;
  color: rgba(234, 210, 160, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.node-label-line-editor select,
.node-label-line-editor textarea {
  min-height: 118px;
  border: 1px solid rgba(224, 183, 102, 0.34);
  border-radius: 6px;
  padding: 8px 9px;
  color: rgba(255, 242, 205, 0.96);
  background: rgba(24, 17, 10, 0.72);
  font: 13px/1.5 var(--font-ui);
  outline: none;
}

.node-label-line-editor select {
  min-height: 34px;
  font-weight: 760;
}

.node-label-line-editor textarea {
  resize: vertical;
}

.node-label-line-editor select:focus,
.node-label-line-editor textarea:focus {
  border-color: rgba(255, 216, 135, 0.68);
  box-shadow: 0 0 0 2px rgba(255, 200, 94, 0.14);
}

.node-label-line-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.node-label-line-editor button {
  border: 1px solid rgba(224, 183, 102, 0.34);
  border-radius: 5px;
  padding: 5px 8px;
  color: rgba(255, 234, 184, 0.94);
  background: rgba(106, 72, 34, 0.58);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.node-label-line-editor button:hover {
  background: rgba(143, 99, 47, 0.72);
}

.timeline-marker-text-editor[hidden] {
  display: none;
}

.timeline-marker-text-editor {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 22;
  width: min(360px, calc(100vw - 36px));
  color: rgba(255, 235, 184, 0.94);
  font-family: var(--font-ui);
}

.timeline-marker-text-editor-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(221, 181, 105, 0.38);
  border-radius: 7px;
  padding: 11px;
  background: linear-gradient(180deg, rgba(66, 43, 23, 0.97), rgba(34, 24, 15, 0.98));
  box-shadow:
    0 18px 46px rgba(4, 3, 2, 0.46),
    inset 0 0 0 1px rgba(255, 236, 185, 0.08);
}

.timeline-marker-text-editor strong {
  color: rgba(255, 239, 197, 0.96);
  font-size: 13px;
  font-weight: 850;
}

.timeline-marker-text-editor p {
  margin: 0;
  color: rgba(234, 210, 160, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.timeline-marker-text-editor select,
.timeline-marker-text-editor input {
  min-height: 34px;
  border: 1px solid rgba(224, 183, 102, 0.34);
  border-radius: 6px;
  padding: 7px 9px;
  color: rgba(255, 242, 205, 0.96);
  background: rgba(24, 17, 10, 0.72);
  font: 13px/1.4 var(--font-ui);
  outline: none;
}

.timeline-marker-text-editor select:focus,
.timeline-marker-text-editor input:focus {
  border-color: rgba(255, 216, 135, 0.68);
  box-shadow: 0 0 0 2px rgba(255, 200, 94, 0.14);
}

.timeline-marker-text-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.timeline-marker-text-editor button {
  border: 1px solid rgba(224, 183, 102, 0.34);
  border-radius: 5px;
  padding: 5px 8px;
  color: rgba(255, 234, 184, 0.94);
  background: rgba(106, 72, 34, 0.58);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.timeline-marker-text-editor button:hover {
  background: rgba(143, 99, 47, 0.72);
}

.minimap {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  width: 292px;
  height: 164px;
  overflow: hidden;
  border: 1px solid var(--minimap-border);
  border-radius: 7px;
  background: var(--paper-deep);
  box-shadow:
    var(--minimap-shadow),
    inset 0 0 0 1px rgba(244, 219, 154, 0.1);
  cursor: grab;
  touch-action: none;
}

.minimap:active {
  cursor: grabbing;
}

.minimap:focus-visible {
  outline: 3px solid var(--control-focus);
  outline-offset: 3px;
}

.minimap-raster-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: saturate(1) contrast(1.03) brightness(0.9) sepia(0.18);
}

.minimap img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.minimap-power-band {
  transform: translateY(var(--map-power-band-shift-y));
  transform-origin: top left;
}

.minimap-viewport {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border: 2px solid rgba(244, 219, 154, 0.96);
  background: var(--minimap-view-fill);
  box-shadow:
    inset 0 0 0 1px var(--minimap-view-border),
    0 0 0 999px var(--minimap-mask);
}

@media (max-width: 1040px) {
  body {
    overflow: auto;
  }

  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 12px;
  }

  .prototype-shell {
    height: auto;
    min-height: calc(100vh - 54px);
  }

  .map-workspace {
    min-height: 620px;
  }

  .map-viewport {
    height: 620px;
  }

  .node-detail-bubble {
    width: min(390px, calc(100vw - 40px));
  }

  .pioneer-view {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 0;
  }

  .pioneer-sidebar {
    padding: 14px;
  }

  .pioneer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pioneer-tools {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .pioneer-search {
    min-width: 0;
    flex: 1 1 auto;
  }

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

  .pioneer-identity-tags {
    justify-content: flex-start;
  }

  .pioneer-filters {
    overflow-y: auto;
  }

  .pioneer-grid {
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .prototype-shell {
    padding: 10px;
  }

  .topbar {
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .brand-lockup {
    position: static;
  }

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

  .product-tabs {
    width: 100%;
    height: 46px;
    gap: 0;
  }

  .product-tab {
    flex: 1;
  }

  .product-tab.is-active::after {
    width: min(112px, 74%);
  }

  .pioneer-view {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
  }

  body[data-active-view="pioneer"] {
    overflow: auto;
  }

  body[data-active-view="pioneer"] .prototype-shell {
    height: auto;
    min-height: calc(100vh - 54px);
  }

  .pioneer-sidebar,
  .pioneer-library {
    min-height: auto;
  }

  .map-workspace {
    min-height: 560px;
  }

  .map-viewport {
    height: 560px;
  }

  .minimap {
    left: 14px;
    bottom: 14px;
    width: 220px;
    height: 124px;
  }

  .pioneer-toolbar {
    align-items: start;
    flex-direction: column;
    padding: 16px;
  }

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

  .pioneer-search {
    width: 100%;
  }

  .pioneer-toolbar h1 {
    font-size: 28px;
  }

  .pioneer-filters,
  .pioneer-grid {
    grid-template-columns: 1fr;
  }

  .pioneer-grid {
    padding: 10px;
    overflow: visible;
  }

  .pioneer-card {
    flex-direction: column;
    min-height: 0;
  }

  .pioneer-photo,
  .pioneer-photo-placeholder {
    flex-basis: auto;
    width: 100%;
    height: 220px;
    min-height: 0;
  }

  .pioneer-card h2 {
    font-size: 24px;
  }

  .pioneer-summary {
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  body[data-active-view="pioneer"] .pioneer-view {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  body[data-active-view="pioneer"] .pioneer-sidebar {
    padding: 16px 14px 14px;
  }

  .pioneer-hero {
    grid-template-columns: minmax(0, 1fr) 120px;
    min-height: 154px;
    padding: 18px 28px;
  }

  .pioneer-hero-index {
    width: 104px;
    height: 104px;
  }

  .pioneer-hero-index strong {
    font-size: 39px;
  }

  .pioneer-hero-index span {
    font-size: 8.5px;
  }

  .pioneer-hero-index small {
    font-size: 7.5px;
  }

  body[data-active-view="pioneer"] .pioneer-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-active-view="pioneer"] .pioneer-view {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .pioneer-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pioneer-stats div,
  .pioneer-stats div:first-child,
  .pioneer-stats div:last-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-right: 0;
    padding: 0;
  }

  .pioneer-stats dd {
    font-size: 20px;
  }

  .pioneer-hero {
    grid-template-columns: 1fr;
  }

  .pioneer-hero-index {
    display: none;
  }

  body[data-active-view="pioneer"] .pioneer-tools {
    min-width: 0;
  }

  body[data-active-view="pioneer"] .pioneer-search {
    min-width: 260px;
  }
}

@media (max-width: 720px) {
  body[data-active-view="pioneer"] .prototype-shell {
    padding: 8px;
  }

  body[data-active-view="pioneer"] .pioneer-view {
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
  }

  body[data-active-view="pioneer"] .pioneer-sidebar {
    min-height: auto;
    padding: 18px;
  }

  .pioneer-sidebar-mark,
  .pioneer-filter-note {
    display: none;
  }

  body[data-active-view="pioneer"] .pioneer-sidebar-head {
    padding-bottom: 13px;
  }

  body[data-active-view="pioneer"] .pioneer-sidebar h2 {
    font-size: 24px;
  }

  .pioneer-sidebar-head p {
    max-width: 540px;
    font-size: 11px;
  }

  .pioneer-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 11px 0;
  }

  .pioneer-stats div,
  .pioneer-stats div:first-child,
  .pioneer-stats div:last-child {
    display: block;
    border-right: 1px solid rgba(237, 209, 166, 0.12);
    padding: 0 10px;
  }

  .pioneer-stats div:first-child {
    padding-left: 0;
  }

  .pioneer-stats div:last-child {
    border-right: 0;
  }

  body[data-active-view="pioneer"] .pioneer-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .pioneer-hero {
    min-height: 0;
    padding: 24px 22px;
  }

  .pioneer-hero h1 {
    display: block;
    font-size: clamp(40px, 12vw, 54px);
  }

  .pioneer-hero h1 em {
    display: block;
  }

  .pioneer-hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  body[data-active-view="pioneer"] .pioneer-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  body[data-active-view="pioneer"] .pioneer-tools,
  body[data-active-view="pioneer"] .pioneer-search {
    width: 100%;
    min-width: 0;
  }

  body[data-active-view="pioneer"] .pioneer-grid {
    grid-template-columns: 1fr;
    padding: 8px 0 0;
    overflow: visible;
  }

  body[data-active-view="pioneer"] .pioneer-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  body[data-active-view="pioneer"] .pioneer-photo,
  body[data-active-view="pioneer"] .pioneer-photo-placeholder {
    width: 96px;
    height: 130px;
  }

  body[data-active-view="pioneer"] .pioneer-card-body {
    min-height: 0;
  }

  body[data-active-view="pioneer"] .pioneer-summary {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body[data-active-view="pioneer"] .pioneer-filters {
    grid-template-columns: 1fr;
  }

  .pioneer-hero-copy > p {
    font-size: 12px;
  }

  body[data-active-view="pioneer"] .pioneer-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  body[data-active-view="pioneer"] .pioneer-photo,
  body[data-active-view="pioneer"] .pioneer-photo-placeholder {
    width: 82px;
    height: 112px;
  }

  body[data-active-view="pioneer"] .pioneer-card h2 {
    font-size: 19px;
  }

  body[data-active-view="pioneer"] .pioneer-summary {
    -webkit-line-clamp: 3;
  }
}
