:root {
  --ink: #061114;
  --ink-soft: #0a1c1f;
  --ink-panel: rgba(9, 26, 29, 0.88);
  --teal: #16383a;
  --teal-bright: #3e8a84;
  --ivory: #eee5d1;
  --ivory-dim: #a8a390;
  --gold: #c8a76a;
  --gold-light: #e1c589;
  --cinnabar: #bb4e3d;
  --line: rgba(211, 190, 146, 0.16);
  --line-strong: rgba(211, 190, 146, 0.3);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 16% 18%, rgba(41, 91, 88, 0.16), transparent 28%),
    var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.page-width {
  width: min(1440px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid rgba(218, 197, 151, 0.13);
  background: rgba(4, 15, 17, 0.76);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-seal {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 205, 148, 0.46);
  color: var(--gold-light);
  font: 600 21px var(--serif);
  background: rgba(197, 162, 96, 0.09);
  box-shadow: inset 0 0 0 3px rgba(5, 20, 21, 0.7);
  transform: rotate(-2deg);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  letter-spacing: 0.18em;
  font: 600 17px var(--serif);
}

.brand-copy small {
  color: #777e78;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 0 3px;
  color: #92978f;
  background: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ivory);
}

.nav-link.active::after {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 22px;
  height: 2px;
  content: "";
  background: var(--cinnabar);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(187, 78, 61, 0.7);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.archive-status,
.live-dot,
.tiny-status {
  color: #808a84;
  font-size: 11px;
}

.archive-status i,
.tiny-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #67a97f;
  box-shadow: 0 0 8px #67a97f;
}

.primary-button,
.ghost-button,
.text-button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(222, 193, 133, 0.52);
  color: #f2ead9;
  background: linear-gradient(135deg, #8c6d3d, #b28e50);
  box-shadow: 0 10px 30px rgba(110, 79, 37, 0.22), inset 0 1px rgba(255,255,255,.16);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #987947, #c19b5a);
}

.primary-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.primary-button svg,
.text-button svg,
.chat-composer button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button.compact {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 12px;
}

.primary-button.compact svg {
  width: 16px;
}

.primary-button.large {
  min-height: 56px;
  padding: 0 27px;
}

.ghost-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: #c7c1b3;
  background: rgba(255,255,255,.025);
  font-size: 12px;
}

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

.text-button {
  padding: 12px;
  color: #c2bbab;
  background: none;
  font-size: 13px;
}

.text-button:hover {
  color: var(--gold-light);
}

.play-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}

.menu-button {
  display: none;
}

.page-section {
  display: none;
  min-height: 100vh;
  padding-top: 76px;
  animation: pageIn 450ms ease both;
}

.page-section.active {
  display: block;
}

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

.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 720px;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 14, 16, .92) 0%, rgba(3, 14, 16, .75) 29%, rgba(3, 14, 16, .12) 68%, rgba(3, 14, 16, .54) 100%),
    linear-gradient(0deg, #061214 0%, transparent 30%),
    url("assets/ancient-star-chart.png") center / cover no-repeat;
  transform: scale(1.01);
  animation: heroReveal 1.4s ease both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1.01); }
}

.hero::before {
  position: absolute;
  inset: 76px 0 0;
  z-index: -2;
  content: "";
  background: radial-gradient(circle at 73% 49%, rgba(202, 161, 79, 0.11), transparent 26%);
  pointer-events: none;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(205, 172, 103, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before {
  position: absolute;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 11px var(--gold);
}

.orbit-one { width: 610px; height: 610px; right: 7%; top: 18%; animation: orbitSpin 46s linear infinite; }
.orbit-one::before { top: 10%; left: 22%; }
.orbit-two { width: 760px; height: 760px; right: 2%; top: 9%; animation: orbitSpin 66s linear infinite reverse; }
.orbit-two::before { top: 48%; right: -2px; }

@keyframes orbitSpin { to { transform: rotate(360deg); } }

.hero-content {
  height: calc(100vh - 76px);
  min-height: 644px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding-bottom: 22px;
}

.hero-copy {
  width: min(680px, 56vw);
  padding-left: 4vw;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #9a896c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--cinnabar);
  box-shadow: 0 0 8px rgba(187,78,61,.6);
}

.hero h1,
.section-heading h2,
.explore-heading h2,
.dialogue-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(56px, 6.4vw, 94px);
  line-height: 1.12;
  letter-spacing: 0.07em;
  text-shadow: 0 6px 36px rgba(0,0,0,.4);
}

.hero h1 em {
  color: var(--gold-light);
  font-style: normal;
  background: linear-gradient(90deg, #e7d4a6, #ad8550);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 30px 0 0;
  color: #aca89b;
  font: 400 15px/2.05 var(--serif);
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 56px;
}

.hero-metrics div {
  display: grid;
  gap: 5px;
}

.hero-metrics strong {
  color: #ded4bd;
  font: 500 19px var(--serif);
  letter-spacing: 0.06em;
}

.hero-metrics span {
  color: #626c68;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-metrics > i {
  width: 1px;
  height: 29px;
  background: var(--line);
}

.glass-card {
  border: 1px solid rgba(216, 188, 132, 0.2);
  background: linear-gradient(145deg, rgba(9, 26, 28, .73), rgba(5, 17, 19, .82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.night-card {
  width: 320px;
  margin: 175px 4vw 0 0;
  align-self: flex-start;
}

.night-card-head,
.night-meta,
.panel-bar,
.chat-head,
.network-head,
.atlas-toolbar,
.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.night-card-head {
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  font: 500 12px var(--serif);
  letter-spacing: .1em;
}

.live-dot::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 5px 2px 0;
  content: "";
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 8px var(--cinnabar);
}

.mini-sky {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: radial-gradient(circle at 55% 45%, rgba(53, 92, 87, 0.28), transparent 45%);
}

.mini-sky::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .35;
  background-image: radial-gradient(circle, #d2b979 0 1px, transparent 1.4px);
  background-size: 28px 31px;
}

.mini-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.constellation-lines { fill: none; stroke: rgba(206,178,112,.45); stroke-width: .8; }
.constellation-stars { fill: #e3cb91; filter: drop-shadow(0 0 4px #bc9450); }
.sky-label { position: absolute; top: 24px; right: 28px; color: #d9c596; font: 500 19px var(--serif); writing-mode: vertical-rl; letter-spacing: .24em; }

.night-meta {
  padding: 15px 19px;
  border-top: 1px solid var(--line);
}

.night-meta div { display: grid; gap: 4px; }
.night-meta small { color: #6f7974; font-size: 9px; }
.night-meta strong { color: #cfc6b4; font: 500 11px var(--serif); }

.card-link {
  width: 100%;
  justify-content: space-between;
  padding: 13px 19px;
  border-top: 1px solid var(--line);
  color: #aa9670;
  background: rgba(192,153,82,.045);
  font-size: 11px;
}

.card-link:hover { color: var(--gold-light); background: rgba(192,153,82,.08); }

.hero-scroll {
  position: absolute;
  left: 48px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #525e5a;
  font-size: 9px;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
}

.hero-scroll span { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); }

/* Shared inner pages */
.recognition-page,
.explore-page,
.dialogue-page {
  padding-bottom: 80px;
  background: radial-gradient(circle at 50% 0, rgba(36, 77, 74, .13), transparent 35%);
}

.section-heading,
.explore-heading,
.dialogue-heading {
  min-height: 186px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 42px;
  padding-bottom: 30px;
}

.section-heading .eyebrow,
.explore-heading .eyebrow,
.dialogue-heading .eyebrow { margin-bottom: 10px; }

.section-heading h2,
.explore-heading h2,
.dialogue-heading h2 { font-size: 34px; letter-spacing: .12em; }

.section-heading > div > p:last-child,
.dialogue-heading > div > p:last-child {
  margin: 9px 0 0;
  color: #727c76;
  font: 12px var(--serif);
  letter-spacing: .06em;
}

.stepper {
  display: flex;
  gap: 0;
  margin: 0 0 5px;
  padding: 0;
  list-style: none;
}

.stepper li {
  position: relative;
  min-width: 118px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5d58;
  font-size: 10px;
}

.stepper li:not(:last-child)::after {
  position: absolute;
  top: 12px;
  left: 83px;
  width: 28px;
  height: 1px;
  content: "";
  background: #283633;
}

.stepper b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #30413e;
  border-radius: 50%;
  font: 500 8px var(--sans);
}

.stepper .active { color: #c0aa80; }
.stepper .active b { border-color: var(--cinnabar); color: #e4cfaa; background: rgba(177, 70, 52, .13); }
.stepper .done b { border-color: #557d6d; color: #8fc0a5; }

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(9, 27, 29, .82), rgba(6, 19, 21, .92));
  box-shadow: 0 20px 70px rgba(0,0,0,.18);
}

.panel-bar {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.panel-bar > div { display: flex; align-items: center; gap: 9px; }
.panel-bar strong { font: 500 12px var(--serif); letter-spacing: .08em; }
.panel-bar small { margin-left: 5px; color: #56625e; font-size: 9px; }
.panel-mark { width: 3px; height: 14px; background: var(--gold); }
.panel-mark.cinnabar { background: var(--cinnabar); }

.recognition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .72fr);
  gap: 18px;
}

.drop-zone {
  position: relative;
  min-height: 474px;
  margin: 14px;
  overflow: hidden;
  border: 1px dashed rgba(211, 190, 146, .27);
  background:
    radial-gradient(circle at 50% 44%, rgba(54, 93, 87, .12), transparent 29%),
    rgba(0,0,0,.12);
  transition: border-color 180ms ease, background 180ms ease;
}

.drop-zone:hover,
.drop-zone.dragging { border-color: rgba(216, 180, 109, .65); background-color: rgba(188,145,76,.025); }

.upload-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.upload-orbit {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(205, 172, 103, .15);
  border-radius: 50%;
}

.upload-orbit::before,
.upload-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(205, 172, 103, .08);
  border-radius: 50%;
}

.upload-orbit::before { width: 108px; height: 48px; transform: rotate(18deg); }
.upload-orbit::after { width: 48px; height: 108px; transform: rotate(38deg); }
.upload-orbit svg { width: 25px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.upload-empty h3 { margin: 0; color: #ded4be; font: 500 20px var(--serif); letter-spacing: .12em; }
.upload-empty p { margin: 12px 0 5px; color: #818a84; font-size: 12px; }
.upload-empty > span { color: #4e5b57; font-size: 9px; }
.upload-buttons { display: flex; gap: 10px; margin-top: 25px; }

.image-stage { position: absolute; inset: 0; overflow: hidden; background: #020a0c; }
.image-stage > img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: .92; }
.image-stage::after { position: absolute; inset: 0; content: ""; pointer-events: none; box-shadow: inset 0 0 90px rgba(2,11,13,.65); }
.scan-line { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, #d6b56e, transparent); box-shadow: 0 0 18px #d6b56e; }
.scan-line.running { opacity: 1; animation: scanning 1.7s ease-in-out infinite; }
@keyframes scanning { from { top: 2%; } to { top: 97%; } }

.stage-corners i { position: absolute; z-index: 5; width: 18px; height: 18px; border-color: var(--gold); opacity: .55; }
.stage-corners i:nth-child(1) { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.stage-corners i:nth-child(2) { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.stage-corners i:nth-child(3) { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.stage-corners i:nth-child(4) { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }

.detection-box {
  position: absolute;
  z-index: 6;
  border: 1px solid var(--gold-light);
  background: rgba(197, 157, 83, .05);
  box-shadow: 0 0 16px rgba(188, 146, 72, .18), inset 0 0 28px rgba(188, 146, 72, .06);
  animation: boxReveal 400ms ease both;
}

.detection-box::before,
.detection-box::after { position: absolute; width: 7px; height: 7px; content: ""; }
.detection-box::before { top: -2px; left: -2px; border-top: 2px solid #fff0bb; border-left: 2px solid #fff0bb; }
.detection-box::after { right: -2px; bottom: -2px; border-right: 2px solid #fff0bb; border-bottom: 2px solid #fff0bb; }
.detection-label { position: absolute; top: -26px; left: -1px; display: flex; gap: 7px; align-items: center; padding: 5px 8px; color: #111b18; background: var(--gold-light); font: 600 10px var(--serif); white-space: nowrap; }
.detection-label small { opacity: .7; font: 600 8px var(--sans); }
@keyframes boxReveal { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

.detection-layer { position: absolute; z-index: 3; pointer-events: none; }
.detection-layer svg { width: 100%; height: 100%; display: block; overflow: visible; }
.recognition-overlay-layer { animation: overlayReveal 480ms ease both; }
@keyframes overlayReveal { from { opacity: 0; } to { opacity: 1; } }
.layer-points circle { fill: rgba(104, 205, 183, .72); filter: drop-shadow(0 0 2px rgba(92, 226, 195, .9)); }
.layer-constellations { display: none; }
.layer-constellations line { stroke: rgba(171, 190, 202, .62); stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.layer-constellations text { fill: rgba(220, 229, 232, .82); paint-order: stroke; stroke: rgba(4, 17, 20, .9); stroke-width: 4px; font: 500 15px var(--serif); text-anchor: middle; }
.layer-asterisms line { stroke: rgba(230, 184, 92, .93); stroke-width: 1.65; filter: drop-shadow(0 0 3px rgba(224, 166, 64, .45)); vector-effect: non-scaling-stroke; }
.layer-asterisms circle { fill: #f8d58c; stroke: rgba(14, 26, 25, .9); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.layer-asterisms circle.projected { fill: rgba(241, 207, 136, .42); }
.layer-asterisms text { pointer-events: auto; cursor: pointer; fill: #f1cc84; paint-order: stroke; stroke: rgba(5, 16, 18, .96); stroke-width: 5px; font: 600 17px var(--serif); text-anchor: middle; }
.matched-star { pointer-events: auto; cursor: pointer; }
.matched-star circle { fill: #f8f1db; stroke: rgba(76, 157, 143, .9); stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(229, 248, 238, .85)); vector-effect: non-scaling-stroke; }
.matched-star text { fill: #f5ecd8; paint-order: stroke; stroke: rgba(3, 15, 18, .96); stroke-width: 4px; font: 500 12px var(--serif); }
.matched-star.projected-common-star circle { fill: rgba(197,153,72,.12); stroke: #d7ac60; stroke-dasharray: 2 2; }
.matched-star.projected-common-star text { fill: #e5be73; }

.shooting-context { margin: 0 14px 12px; border: 1px solid rgba(189, 157, 92, .14); background: rgba(255,255,255,.012); }
.shooting-context summary { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 13px; cursor: pointer; color: #ac9b78; font: 10px var(--serif); list-style: none; }
.shooting-context summary::-webkit-details-marker { display: none; }
.shooting-context summary::before { content: "＋"; color: var(--gold); font: 12px var(--sans); }
.shooting-context[open] summary::before { content: "－"; }
.shooting-context summary small { color: #65716c; font: 8px var(--sans); }
.shooting-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 12px 13px 8px; border-top: 1px solid rgba(189, 157, 92, .1); }
.shooting-fields label { min-width: 0; display: grid; gap: 6px; color: #7e8983; font-size: 8px; }
.shooting-fields input,
.shooting-fields select { width: 100%; height: 34px; min-width: 0; border: 1px solid rgba(185, 158, 105, .15); outline: none; padding: 0 9px; color: #d6c9ae; background: rgba(7, 25, 27, .78); font: 10px var(--sans); color-scheme: dark; }
.shooting-fields input:focus,
.shooting-fields select:focus { border-color: rgba(211, 172, 94, .48); box-shadow: 0 0 0 2px rgba(190, 148, 67, .06); }
.field-with-unit { position: relative; }
.field-with-unit input { padding-right: 25px; }
.field-with-unit em { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); color: #73684f; font: normal 9px var(--sans); }
.shooting-fields .location-button { align-self: end; height: 34px; }
.shooting-help { margin: 0; padding: 4px 13px 12px; color: #606b66; font-size: 8px; line-height: 1.65; }

.recognition-actions {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 15px 14px;
}

.quality-tips { display: flex; align-items: center; gap: 10px; }
.quality-tips span { padding: 4px 7px; border: 1px solid var(--line); color: #897758; font-size: 8px; }
.quality-tips p { margin: 0; color: #525f5b; font-size: 9px; }

.process-panel { min-height: 610px; }
.process-state { color: #5e6a65; font-size: 9px; }
.process-state.working { color: var(--gold); }
.process-state.done { color: #76aa8d; }
.process-state.error { color: #d18c72; }
.process-content { height: calc(100% - 54px); }
.process-idle { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.process-idle h3 { margin: 26px 0 7px; font: 500 17px var(--serif); letter-spacing: .12em; }
.process-idle p { max-width: 260px; margin: 0; color: #606c67; font: 11px/1.8 var(--serif); }

.radar-visual { position: relative; width: 104px; height: 104px; border: 1px solid rgba(198,166,105,.15); border-radius: 50%; }
.radar-visual::before { position: absolute; inset: 21px; content: ""; border: 1px solid rgba(198,166,105,.12); border-radius: 50%; }
.radar-visual::after { position: absolute; top: 50%; left: 0; right: 0; content: ""; border-top: 1px solid rgba(198,166,105,.1); }
.radar-visual i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 7px var(--gold); }
.radar-visual i:nth-child(1) { top: 25px; left: 45px; }
.radar-visual i:nth-child(2) { top: 58px; right: 20px; }
.radar-visual i:nth-child(3) { bottom: 19px; left: 30px; }
.radar-visual span { position: absolute; top: 50%; left: 50%; width: 50%; height: 1px; transform-origin: left; background: linear-gradient(90deg, rgba(190,155,91,.5), transparent); animation: radar 4s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }

.working-list { padding: 26px 24px; }
.working-orb { width: 88px; height: 88px; display: grid; place-items: center; margin: 12px auto 30px; border: 1px solid rgba(199,165,98,.22); border-radius: 50%; color: var(--gold-light); font: 500 17px var(--serif); animation: pulseOrb 1.4s ease-in-out infinite; }
@keyframes pulseOrb { 50% { box-shadow: 0 0 45px rgba(190,145,70,.18); transform: scale(1.03); } }
.work-step { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); color: #59645f; font-size: 10px; }
.work-step i { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #33433f; border-radius: 50%; font-style: normal; font-size: 8px; }
.work-step b { color: inherit; font-weight: 500; }
.work-step span { font-size: 8px; }
.work-step.active { color: var(--gold-light); }
.work-step.active i { border-color: var(--gold); box-shadow: 0 0 10px rgba(196,157,86,.25); }
.work-step.done { color: #789a88; }
.work-step.done i { border-color: #527866; }
.recognition-diagnostic { padding: 28px 24px; }
.recognition-diagnostic > span { color: #66877a; font-size: 8px; letter-spacing: .18em; }
.recognition-diagnostic h3 { margin: 9px 0 20px; color: #ded3bc; font: 500 18px var(--serif); letter-spacing: .08em; }
.recognition-diagnostic dl { display: grid; gap: 0; margin: 0 0 18px; }
.recognition-diagnostic dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recognition-diagnostic dt { color: #67736d; font-size: 8px; }
.recognition-diagnostic dd { margin: 0; color: #baa981; font-size: 9px; text-align: right; }
.recognition-diagnostic p,
.recognition-diagnostic li { color: #7c8882; font: 9px/1.75 var(--serif); }
.recognition-diagnostic ul { margin: 15px 0 0; padding-left: 18px; }
.recognition-diagnostic.error > span { color: #b76f58; }
.recognition-diagnostic.error h3 { color: #d9b4a4; }

.recognition-results { margin-top: 18px; }
.recognition-layer-switches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-top: 0; background: rgba(8, 28, 29, .72); }
.recognition-layer-switches > span { margin-right: 6px; color: #67736d; font-size: 8px; letter-spacing: .12em; }
.recognition-layer-switches button { padding: 6px 9px; border: 1px solid rgba(183, 154, 96, .13); color: #6d7973; background: rgba(255,255,255,.015); font-size: 8px; }
.recognition-layer-switches button.active { border-color: rgba(205, 166, 91, .35); color: #d9bd83; background: rgba(187, 141, 60, .08); }
.result-summary { padding: 17px 19px; border: 1px solid var(--line); background: rgba(11,31,31,.8); }
.result-summary > div { display: flex; align-items: center; gap: 12px; }
.result-summary > div > div { display: grid; gap: 2px; }
.result-summary small { color: #71907f; font-size: 8px; }
.result-summary strong { font: 500 13px var(--serif); }
.result-summary p { margin: 0; color: #5d6964; font-size: 9px; }
.result-summary p strong { color: var(--gold); font-family: var(--sans); }
.result-check { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #527764; border-radius: 50%; color: #83ae93; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.result-card { padding: 18px; border: 1px solid var(--line); background: rgba(8,24,26,.78); transition: border-color 180ms ease, transform 180ms ease; }
.result-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.result-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.result-card-head > div { display: flex; align-items: center; gap: 11px; }
.result-glyph { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(198,158,85,.3); color: var(--gold-light); font: 500 20px var(--serif); background: rgba(190,145,66,.05); }
.result-card h3 { margin: 0 0 3px; font: 500 15px var(--serif); }
.result-card h3 small { margin-left: 6px; color: #505d58; font: 8px var(--sans); letter-spacing: .14em; }
.result-card p { margin: 0; color: #7b847e; font-size: 9px; }
.confidence { color: #74a187; font-size: 10px; }
.result-card > p { margin: 14px 0; min-height: 32px; line-height: 1.7; }
.result-card .card-link { padding-inline: 0; border-top: 1px solid var(--line); border-bottom: 0; border-left: 0; border-right: 0; background: none; }
.recognition-result-groups { display: grid; gap: 18px; margin-top: 16px; }
.recognition-result-group { border-top: 1px solid rgba(191,153,83,.16); padding-top: 13px; }
.recognition-result-group > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.recognition-result-group > header > div { display: flex; align-items: center; gap: 10px; }
.recognition-result-group > header span { color: #a67d43; font: 8px var(--sans); letter-spacing: .12em; }
.recognition-result-group > header h3 { margin: 0; color: #d7ccb4; font: 500 17px var(--serif); letter-spacing: .08em; }
.recognition-result-group > header p { margin: 0; color: #64716b; font-size: 9px; }
.result-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.constellation-result-card { background: linear-gradient(145deg,rgba(9,28,31,.86),rgba(8,22,25,.78)); }
.constellation-glyph { width: 44px; font: 600 10px var(--sans); letter-spacing: .06em; }
.common-star-group-results .result-glyph { border-radius: 50%; }

/* Atlas */
.explore-heading { min-height: 150px; align-items: center; padding-top: 38px; padding-bottom: 20px; }
.map-search { width: min(400px, 32vw); display: flex; align-items: center; height: 42px; padding: 0 12px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.map-search svg { width: 17px; fill: none; stroke: #68746e; stroke-width: 1.5; }
.map-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 10px; color: #d9d0bd; background: transparent; font-size: 11px; }
.map-search input::placeholder { color: #59635e; }
.map-search kbd { padding: 3px 5px; border: 1px solid var(--line); color: #59635e; background: rgba(255,255,255,.02); font: 8px var(--sans); }

.explore-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 15px; }
.atlas-panel { min-width: 0; }
.atlas-toolbar { min-height: 55px; gap: 20px; padding: 8px 12px 8px 17px; border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.filter-chips button { padding: 7px 11px; border: 1px solid transparent; color: #64706a; background: transparent; font-size: 9px; white-space: nowrap; }
.filter-chips button:hover { color: #a39c8e; }
.filter-chips button.active { border-color: var(--line-strong); color: var(--gold-light); background: rgba(190,151,81,.06); }
.map-controls { display: flex; align-items: center; flex-shrink: 0; border: 1px solid var(--line); }
.map-controls button { width: 30px; height: 28px; color: #87908b; background: transparent; }
.map-controls button:hover { color: var(--gold); background: rgba(255,255,255,.03); }
.map-controls span { min-width: 48px; text-align: center; color: #6e7873; font-size: 8px; }

.mansion-index { min-height: 76px; display: flex; gap: 1px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #061315; scrollbar-width: thin; scrollbar-color: #263b37 transparent; }
.mansion-index-loading { margin: auto; color: #606c66; font: 9px var(--serif); letter-spacing: .12em; }
.mansion-group { min-width: 210px; flex: 1 0 210px; display: grid; grid-template-columns: 44px repeat(7, minmax(21px, 1fr)); align-items: stretch; border-right: 1px solid var(--line); }
.mansion-group:last-child { border-right: 0; }
.mansion-group-label { display: grid; place-content: center; gap: 2px; border-right: 1px solid rgba(187,157,99,.08); color: #807865; text-align: center; font: 8px var(--serif); }
.mansion-group-label b { color: #a89a7c; font: 500 10px var(--serif); }
.mansion-index button { position: relative; min-width: 0; border-right: 1px solid rgba(187,157,99,.055); color: #77827a; background: transparent; font: 500 14px var(--serif); transition: color .18s ease, background .18s ease; }
.mansion-index button::after { position: absolute; left: 50%; bottom: 8px; width: 3px; height: 3px; content: ""; border-radius: 50%; background: currentColor; opacity: .28; transform: translateX(-50%); }
.mansion-index button:hover { color: #d0b985; background: rgba(190,151,81,.05); }
.mansion-index button.active { color: #f0c898; background: linear-gradient(180deg, rgba(212,168,88,.03), rgba(187,81,57,.13)); box-shadow: inset 0 -1px #b8664f; }
.mansion-group[data-region="DF_CANGLONG"] button { color: #77a994; }
.mansion-group[data-region="BF_XUANWU"] button { color: #839db4; }
.mansion-group[data-region="XF_BAIHU"] button { color: #c8ad73; }
.mansion-group[data-region="NF_ZHUQUE"] button { color: #c97969; }
.mansion-group button.active { color: #f0c898; }

.atlas-viewport { position: relative; height: 534px; overflow: hidden; cursor: grab; background: #030c0f; touch-action: none; }
.atlas-viewport.dragging { cursor: grabbing; }
.atlas-content { position: absolute; inset: 0; }
#atlasCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atlas-vignette { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 42%, rgba(2,11,13,.48) 100%), linear-gradient(0deg, rgba(2,11,13,.55), transparent 25%); pointer-events: none; }
.atlas-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 9px; color: #bcae8e; background: rgba(2,10,12,.86); text-align: center; }
.atlas-loading[hidden] { display: none; }
.atlas-loading strong { font: 500 14px var(--serif); letter-spacing: .08em; }
.atlas-loading small { max-width: 390px; color: #6e7971; font-size: 9px; line-height: 1.8; }
.atlas-loading.error strong { color: #d8836e; }
.atlas-loader { width: 24px; height: 24px; display: inline-block; border: 1px solid rgba(205,174,111,.2); border-top-color: var(--gold); border-radius: 50%; animation: atlasSpin 800ms linear infinite; }
@keyframes atlasSpin { to { transform: rotate(360deg); } }
.atlas-coordinate { position: absolute; right: 15px; top: 14px; z-index: 5; padding: 6px 8px; border: 1px solid rgba(189,163,108,.12); color: #77827a; background: rgba(2,11,13,.7); font: 8px var(--sans); pointer-events: none; }

.star-hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 18px; height: 18px; padding: 0; border: 1px solid rgba(221,194,131,.5); border-radius: 50%; background: rgba(5,18,20,.68); transform: translate(-50%,-50%); box-shadow: 0 0 0 7px rgba(194,150,73,.035); }
.star-hotspot i { position: absolute; inset: 5px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 9px var(--gold-light); }
.star-hotspot span { position: absolute; top: -10px; left: 25px; color: #dcc695; font: 500 15px var(--serif); letter-spacing: .15em; text-shadow: 0 2px 8px #000; white-space: nowrap; pointer-events: none; }
.star-hotspot span small { display: block; margin-top: 2px; color: #7f765f; font: 7px var(--sans); letter-spacing: .2em; }
.star-hotspot.subtle { opacity: .62; transform: translate(-50%,-50%) scale(.8); }
.star-hotspot:hover,
.star-hotspot.selected { opacity: 1; z-index: 3; }
.star-hotspot.selected { border-color: #d36a52; box-shadow: 0 0 0 8px rgba(189,72,51,.08), 0 0 18px rgba(189,72,51,.25); }
.star-hotspot.selected i { background: #e27158; box-shadow: 0 0 11px #d15842; }
.star-hotspot.selected::after { position: absolute; inset: -9px; content: ""; border: 1px solid rgba(207,88,66,.3); border-radius: 50%; animation: hotspotPulse 2s ease-out infinite; }
@keyframes hotspotPulse { 80%,100% { transform: scale(1.6); opacity: 0; } }
.map-legend { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 5; display: flex; gap: 16px; align-items: center; color: #737d77; font-size: 8px; pointer-events: none; }
.map-legend span:last-child { margin-left: auto; }
.map-legend i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; }
.map-legend .gold { background: var(--gold); box-shadow: 0 0 5px var(--gold); }
.map-legend .red { background: var(--cinnabar); box-shadow: 0 0 5px var(--cinnabar); }

.knowledge-card { min-height: 666px; max-height: 666px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a403b transparent; }
.knowledge-hero { position: relative; min-height: 153px; padding: 23px 22px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 35%, rgba(190,149,75,.13), transparent 32%); }
.knowledge-hero::after { position: absolute; right: -8px; top: -25px; content: attr(data-glyph); color: rgba(211,184,126,.06); font: 150px var(--serif); }
.knowledge-status { position: absolute; right: 16px; top: 16px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--line); color: #8b8f85; background: rgba(3,13,15,.55); font-size: 7px; }
.knowledge-status i { width: 5px; height: 5px; border-radius: 50%; background: #9b7850; }
.knowledge-status.reviewed i { background: #779682; }.knowledge-status.verified i { background: #64a17d; box-shadow: 0 0 6px #64a17d; }
.knowledge-breadcrumb { color: #726d5f; font-size: 8px; letter-spacing: .12em; }
.knowledge-hero h3 { margin: 21px 0 6px; font: 500 29px var(--serif); letter-spacing: .15em; }
.knowledge-hero h3 small { margin-left: 8px; color: #806d50; font: 8px var(--sans); letter-spacing: .18em; }
.knowledge-hero p { margin: 0; color: #8e9288; font: 10px var(--serif); }
.knowledge-body { padding: 18px 20px; }
.knowledge-tabs { display: flex; border-bottom: 1px solid var(--line); }
.knowledge-tabs button { flex: 1; padding: 0 0 10px; color: #5f6b65; background: transparent; font-size: 9px; }
.knowledge-tabs button.active { color: var(--gold-light); border-bottom: 1px solid var(--cinnabar); }
.knowledge-quote { position: relative; margin: 18px 0; padding: 14px 13px 14px 22px; border-left: 2px solid var(--cinnabar); color: #bcb5a5; background: rgba(255,255,255,.018); font: 12px/1.9 var(--serif); }
.knowledge-quote small { display: block; margin-top: 7px; color: #665e4f; font: 8px var(--sans); }
.knowledge-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.knowledge-facts div { min-height: 58px; display: grid; align-content: center; gap: 5px; padding: 10px 12px; background: #091b1d; }
.knowledge-facts small { color: #58635e; font-size: 8px; }
.knowledge-facts strong { color: #c3baa8; font: 500 10px var(--serif); }
.knowledge-story { margin-top: 18px; }
.knowledge-story > p { margin: 0 0 9px; color: #9b907b; font-size: 9px; }
.knowledge-story article { color: #747e78; font: 10px/1.9 var(--serif); }
.knowledge-story > small { display: block; margin-top: 9px; color: #505c56; font-size: 7px; line-height: 1.6; }
.source-gap { margin: 14px 0 0; padding: 10px 11px; border: 1px solid rgba(202,128,88,.18); color: #9b806e; background: rgba(145,69,45,.06); font: 8px/1.7 var(--sans); }
.research-panel { margin-top: 14px; padding: 12px; border: 1px solid rgba(202,128,88,.2); background: linear-gradient(135deg, rgba(145,69,45,.08), rgba(178,145,78,.025)); }
.research-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.research-heading span { color: #b7a27c; font: 10px var(--serif); }
.research-heading b { padding: 3px 6px; border: 1px solid rgba(203,117,82,.25); color: #ba8068; font: 6px var(--sans); font-weight: 500; }
.research-panel > p { margin: 10px 0 0; color: #8d9289; font: 9px/1.8 var(--serif); }
.research-panel details { margin-top: 9px; color: #666f69; font-size: 7px; }
.research-panel summary { color: #897c68; cursor: pointer; }
.research-panel article { margin-top: 8px; line-height: 1.75; }
.research-panel details > small { display: block; margin-top: 8px; color: #53605a; }
.research-sources { display: grid; gap: 4px; margin-top: 8px; }
.research-sources a, .research-sources span { color: #6d8279; line-height: 1.6; text-decoration: none; }
.research-sources a:hover { color: var(--gold-light); }
.principal-badge { display: inline-block; margin-left: 4px; padding: 1px 4px; border: 1px solid rgba(212,178,105,.25); color: #c3a86f; font: 6px var(--sans); vertical-align: 1px; }
.mapping-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.mapping-list span { padding: 5px 7px; border: 1px solid var(--line); color: #747d77; background: rgba(255,255,255,.01); font: 7px var(--sans); }
.mapping-list span.primary { color: #c5ad7e; border-color: rgba(205,172,104,.22); }
.member-details { margin-top: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.01); }
.member-details summary { display: flex; justify-content: space-between; padding: 10px 11px; color: #918874; font: 9px var(--sans); cursor: pointer; list-style: none; }
.member-details summary::-webkit-details-marker { display: none; }
.member-details summary span { color: #59655f; }
.member-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.member-table { width: 100%; border-collapse: collapse; color: #77817b; font-size: 7px; white-space: nowrap; }
.member-table th { padding: 7px 6px; color: #565f5a; font-weight: 400; text-align: left; }
.member-table td { padding: 8px 6px; border-top: 1px solid rgba(187,157,99,.07); vertical-align: top; }
.member-table td b { display: block; color: #ada490; font: 500 8px var(--serif); }
.member-table td small { display: block; margin-top: 3px; color: #525e58; font-size: 6px; }
.member-table .empty-members { padding: 18px 8px; color: #846f5c; text-align: center; white-space: normal; line-height: 1.7; }
.claim-explainer { padding: 9px 11px; border-top: 1px solid var(--line); color: #766b5c; background: rgba(145,69,45,.035); font: 7px/1.7 var(--sans); }
.claim-table td { max-width: 170px; white-space: normal; line-height: 1.55; }
.claim-table td:nth-child(2), .claim-table td:nth-child(3) { white-space: nowrap; }
.claim-status { display: inline-block; margin-bottom: 3px; padding: 2px 5px; border: 1px solid rgba(153,147,124,.18); color: #8b8d7d; font-size: 6px; white-space: nowrap; }
.claim-status.supported { border-color: rgba(104,159,130,.28); color: #86aa96; }
.claim-status.candidate { border-color: rgba(188,155,88,.26); color: #ad9567; }
.claim-status.conflicted, .claim-status.duplicate_conflict { border-color: rgba(196,104,77,.3); color: #bd7862; }
.claim-status.unresolved { border-color: rgba(124,131,128,.2); color: #777f7b; }
.knowledge-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 17px; }
.knowledge-actions button { font-size: 10px; }
.knowledge-loading, .knowledge-error { min-height: 400px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 28px; color: #7f897f; text-align: center; }
.knowledge-loading p, .knowledge-error p { max-width: 270px; margin: 0; font: 10px/1.8 var(--serif); }
.knowledge-error strong { color: #c48370; font: 500 14px var(--serif); }
.knowledge-error code { color: #b9aa8c; font: 8px var(--mono, monospace); }

.knowledge-network { margin-top: 15px; }
.network-head { min-height: 69px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.network-head p { margin: 0 0 4px; color: #6d766f; font-size: 8px; }
.network-head h3 { margin: 0; font: 500 13px var(--serif); }
.network-legend { display: flex; gap: 14px; color: #626c66; font-size: 8px; }
.network-legend i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; }
.node-star { background: var(--cinnabar); }.node-book { background: var(--gold); }.node-story { background: #6c8f83; }.node-modern { background: #6a7193; }
.network-canvas { position: relative; height: 265px; overflow: hidden; background-image: radial-gradient(circle, rgba(198,173,119,.09) 0 1px, transparent 1px); background-size: 28px 28px; }
.network-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-line { stroke: rgba(192,164,104,.18); stroke-width: 1; stroke-dasharray: 3 3; }
.network-node { position: absolute; min-width: 78px; padding: 9px 10px; border: 1px solid var(--line); color: #b7ae9d; background: rgba(8,24,26,.94); text-align: center; font: 9px var(--serif); transform: translate(-50%,-50%); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.network-node small { display: block; margin-top: 3px; color: #5d6862; font: 7px var(--sans); }
.network-node.center { min-width: 92px; padding: 12px; border-color: rgba(194,85,64,.5); color: #e1c79b; background: #152426; box-shadow: 0 0 32px rgba(182,72,51,.12); }
.network-node.center::before { display: block; content: "✦"; margin-bottom: 3px; color: var(--cinnabar); }
.network-node.book { border-color: rgba(196,158,86,.26); }
.network-node.story { border-color: rgba(93,143,127,.3); }
.network-node.modern { border-color: rgba(111,119,160,.32); }

/* Dialogue */
.dialogue-heading { min-height: 176px; }
.trust-badges { display: flex; gap: 8px; margin-bottom: 4px; }
.trust-badges span { padding: 7px 10px; border: 1px solid var(--line); color: #6f7f76; background: rgba(255,255,255,.015); font-size: 8px; }
.dialogue-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 15px; min-height: 660px; }
.rag-sidebar { min-height: 660px; }
.rag-entity { padding: 20px; border-bottom: 1px solid var(--line); }
.rag-entity > small { color: #56635d; font-size: 8px; }
.entity-title { display: flex; align-items: center; gap: 13px; margin-top: 13px; }
.entity-title > span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(194,153,80,.3); color: var(--gold-light); background: rgba(190,145,68,.05); font: 500 25px var(--serif); }
.entity-title strong { font: 500 15px var(--serif); }
.entity-title p { margin: 5px 0 0; color: #66716b; font-size: 8px; }
.rag-paths { padding: 19px; }
.rag-paths > p { margin: 0 0 10px; color: #7d7463; font-size: 8px; letter-spacing: .12em; }
.rag-paths button { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; }
.rag-paths button > i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); font: 10px var(--serif); font-style: normal; }
.rag-paths button span { display: grid; gap: 4px; min-width: 0; }
.rag-paths button strong { overflow: hidden; color: #aaa393; font: 500 9px var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.rag-paths button small { overflow: hidden; color: #55615c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.rag-paths button b { color: #628472; font-size: 8px; font-weight: 500; }
.rag-note { display: flex; gap: 10px; margin: 8px 18px; padding: 12px; border: 1px solid rgba(98,135,115,.18); color: #68756e; background: rgba(78,121,98,.04); font-size: 8px; line-height: 1.65; }
.rag-note svg { flex: 0 0 auto; width: 20px; fill: none; stroke: #6d957f; stroke-width: 1.4; }
.rag-note p { margin: 0; }.rag-note strong { color: #89968e; font-weight: 500; }

.chat-panel { display: flex; min-width: 0; min-height: 660px; max-height: calc(100vh - 224px); flex-direction: column; }
.chat-head { flex: 0 0 64px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.narrator-avatar { position: relative; width: 38px; height: 38px; display: grid; place-items: center; margin-right: 11px; border: 1px solid rgba(196,157,87,.4); color: var(--gold-light); background: rgba(190,145,68,.06); font: 500 17px var(--serif); }
.narrator-avatar span { position: absolute; right: -4px; top: -4px; color: var(--cinnabar); font-size: 9px; }
.chat-head > div:nth-child(2) { margin-right: auto; }
.chat-head strong { font: 500 12px var(--serif); }
.chat-head p { margin: 4px 0 0; color: #59655f; font-size: 8px; }
.chat-head p i { display: inline-block; width: 4px; height: 4px; margin-right: 5px; border-radius: 50%; background: #67a37d; }
.chat-messages { flex: 1 1 auto; overflow-y: auto; padding: 22px 26px 14px; scrollbar-width: thin; scrollbar-color: #273d38 transparent; }
.message { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 23px; }
.message.user-message { justify-content: flex-end; }
.message-avatar { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(194,155,83,.26); color: var(--gold); font: 10px var(--serif); }
.message-body { max-width: min(680px, 82%); padding: 13px 15px; border: 1px solid var(--line); color: #aaa99f; background: rgba(255,255,255,.022); font: 11px/1.9 var(--serif); }
.message-body p { margin: 0 0 8px; }.message-body p:last-of-type { margin-bottom: 0; }
.user-message .message-body { border-color: rgba(184,143,70,.25); color: #c4bcaa; background: rgba(176,133,62,.08); }
.message-sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.message-sources > span { color: #53605b; font: 7px var(--sans); }
.message-sources button { padding: 5px 7px; border: 1px solid rgba(190,154,86,.18); color: #8f805f; background: rgba(190,154,86,.035); font: 8px var(--sans); }
.message-sources button:hover { color: var(--gold-light); }
.message-explore-links { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 9px; }
.message-explore-links > span { color: #71817b; font: 8px var(--sans); }
.message-explore-links button { padding: 6px 9px; border: 1px solid rgba(111,161,144,.25); color: #a9c9bd; background: rgba(80,139,120,.08); font: 9px var(--sans); }
.message-explore-links button:hover { border-color: rgba(173,205,192,.48); color: #e3f1eb; }
.message-provider { display: block; margin-top: 10px; color: #697873; font: 8px/1.5 var(--sans); letter-spacing: .02em; }
.error-message .message-body { border-color: rgba(180,91,67,.34); background: rgba(137,55,39,.08); }
.error-message .message-body > strong { display: block; margin-bottom: 7px; color: #e2b69f; font: 500 12px var(--serif); }
.error-message .message-body code { display: block; margin-top: 10px; padding: 9px 10px; overflow-wrap: anywhere; color: #d4c6ad; background: rgba(0,0,0,.2); font: 9px/1.6 Consolas, monospace; }
.typing-dots { display: flex; gap: 4px; padding: 5px 2px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: typing 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .25; transform: translateY(-2px); } }
.suggested-prompts { flex: 0 0 auto; display: flex; gap: 7px; align-items: center; padding: 8px 18px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.suggested-prompts span { flex: 0 0 auto; color: #52605a; font-size: 8px; }
.suggested-prompts button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); color: #817d72; background: transparent; font-size: 8px; }
.suggested-prompts button:hover { border-color: var(--line-strong); color: var(--gold-light); }
.chat-composer { flex: 0 0 auto; margin: 8px 18px 17px; border: 1px solid rgba(202,169,103,.27); background: rgba(2,12,14,.45); transition: border-color 180ms ease; }
.chat-composer:focus-within { border-color: rgba(202,169,103,.56); box-shadow: 0 0 20px rgba(172,127,56,.06); }
.chat-composer textarea { width: 100%; min-height: 52px; max-height: 100px; resize: none; border: 0; outline: 0; padding: 13px 14px 5px; color: #d4ccba; background: transparent; font: 11px/1.6 var(--serif); }
.chat-composer textarea::placeholder { color: #4f5b56; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 4px 7px 7px 14px; }
.composer-bottom span { color: #46534e; font-size: 7px; }
.composer-bottom button { width: 34px; height: 34px; display: grid; place-items: center; color: #efe2c6; background: linear-gradient(135deg,#886b3e,#ad874a); }
.composer-bottom button:disabled { cursor: wait; opacity: .5; filter: saturate(.35); }
.composer-bottom button svg { width: 16px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; padding: 10px 16px; border: 1px solid var(--line-strong); color: #d5cbb7; background: rgba(5,19,21,.95); box-shadow: var(--shadow); font-size: 10px; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; transition: all 240ms ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; padding-inline: 24px; }
  .main-nav { justify-self: center; gap: 20px; }
  .archive-status { display: none; }
  .page-width { width: min(100% - 48px, 1200px); }
  .hero-copy { padding-left: 0; }
  .night-card { margin-right: 0; }
  .explore-shell { grid-template-columns: minmax(0,1fr) 300px; }
  .dialogue-shell { grid-template-columns: 290px minmax(0,1fr); }
}

@media (max-width: 860px) {
  .site-header { height: 68px; }
  .brand-copy small, .header-actions > .primary-button { display: none; }
  .menu-button { display: grid; width: 36px; height: 36px; place-content: center; gap: 4px; background: transparent; }
  .menu-button span { display: block; width: 18px; height: 1px; background: #aaa18e; }
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; height: auto; display: none; padding: 15px 24px; border-bottom: 1px solid var(--line); background: rgba(4,15,17,.97); }
  .main-nav.open { display: grid; grid-template-columns: repeat(4,1fr); }
  .nav-link { padding: 14px 4px; }
  .page-section { padding-top: 68px; }
  .hero-content { height: calc(100vh - 68px); }
  .hero-copy { width: 100%; }
  .hero-backdrop { background-position: 63% center; }
  .night-card { display: none; }
  .hero h1 { font-size: clamp(50px, 12vw, 74px); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .stepper { align-self: stretch; justify-content: space-between; }
  .recognition-layout, .explore-shell, .dialogue-shell { grid-template-columns: 1fr; }
  .process-panel { min-height: 380px; }
  .shooting-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-grid, .result-group-grid { grid-template-columns: 1fr; }
  .knowledge-card { min-height: 0; max-height: none; }
  .dialogue-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .rag-sidebar { min-height: 0; }
  .chat-panel { min-height: 620px; max-height: none; }
  .map-search { margin-left: auto; width: min(380px, 50vw); }
}

@media (max-width: 620px) {
  .page-width { width: calc(100% - 28px); }
  .shooting-fields { grid-template-columns: 1fr; }
  .shooting-context summary { align-items: flex-start; flex-direction: column; gap: 3px; padding-block: 10px; }
  .site-header { padding-inline: 14px; }
  .brand-seal { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 14px; }
  .main-nav.open { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: 670px; }
  .hero-content { align-items: flex-start; padding-top: 15vh; }
  .hero-copy { padding: 0 5px; }
  .hero h1 { font-size: 48px; line-height: 1.18; }
  .hero-lead { font-size: 12px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-metrics { gap: 15px; margin-top: 38px; }
  .hero-metrics strong { font-size: 15px; }
  .hero-scroll { display: none; }
  .section-heading, .explore-heading, .dialogue-heading { min-height: auto; padding-top: 40px; padding-bottom: 24px; }
  .section-heading h2, .explore-heading h2, .dialogue-heading h2 { font-size: 27px; }
  .stepper li { min-width: 0; flex: 1; }
  .stepper li:not(:last-child)::after { display: none; }
  .stepper span { display: none; }
  .drop-zone { min-height: 390px; }
  .recognition-actions { align-items: stretch; flex-direction: column; }
  .quality-tips { justify-content: center; }
  .result-summary { align-items: flex-start; flex-direction: column; gap: 12px; }
  .recognition-result-group > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .explore-heading { display: grid; grid-template-columns: 1fr auto; }
  .explore-heading > div:first-child { grid-column: 1 / -1; }
  .map-search { width: 100%; margin: 0; }
  .atlas-toolbar { align-items: flex-start; flex-direction: column; }
  .mansion-index { min-height: 68px; }
  .mansion-group { min-width: 196px; flex-basis: 196px; grid-template-columns: 40px repeat(7, minmax(20px, 1fr)); }
  .atlas-viewport { height: 500px; }
  .map-controls { align-self: flex-end; }
  .network-legend, .map-legend span:last-child { display: none; }
  .network-canvas { height: 310px; }
  .trust-badges { flex-wrap: wrap; }
  .rag-sidebar { display: none; }
  .chat-messages { padding-inline: 14px; }
  .message-body { max-width: 90%; }
  .suggested-prompts { align-items: flex-start; flex-direction: column; }
  .suggested-prompts span { margin-bottom: 2px; }
  .chat-composer { margin-inline: 10px; }
  .composer-bottom span { display: none; }
}

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

/* Immersive real-sky planetarium */
.explore-shell { display: block; }
.planetarium-panel {
  overflow: hidden;
  border-color: rgba(111,143,151,.2);
  background: #02070b;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.planetarium-toolbar {
  min-height: 58px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(122,156,166,.14);
  background: linear-gradient(180deg,rgba(16,28,34,.98),rgba(7,17,22,.98));
}
.projection-switch,
.sky-layer-controls { display: flex; gap: 4px; align-items: center; }
.projection-switch {
  flex: 0 0 auto;
  padding-right: 12px;
  border-right: 1px solid rgba(125,153,159,.15);
}
.projection-switch button,
.sky-layer-controls button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid transparent;
  color: #6d7f85;
  background: transparent;
  font: 8px var(--sans);
  letter-spacing: .04em;
}
.projection-switch button:hover,
.sky-layer-controls button:hover { color: #bcc8c8; background: rgba(255,255,255,.025); }
.projection-switch button.active {
  border-color: rgba(213,174,102,.34);
  color: #e6c383;
  background: rgba(193,143,62,.09);
}
.sky-layer-controls { flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.sky-layer-controls button { position: relative; padding-left: 20px; white-space: nowrap; }
.sky-layer-controls button::before {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  content: "";
  border: 1px solid #4f6369;
  border-radius: 50%;
  transform: translateY(-50%);
}
.sky-layer-controls button.active { color: #a9bbbf; background: rgba(97,141,155,.07); }
.sky-layer-controls button.active::before { border-color: #85b4c5; background: #75abc1; box-shadow: 0 0 6px #75abc1; }
.planetarium-toolbar .map-controls { margin-left: auto; border-color: rgba(121,151,159,.17); }
.planetarium-toolbar .map-controls button { color: #84979b; }

.observer-bar {
  min-height: 45px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(120,151,161,.12);
  color: #728389;
  background: rgba(8,18,23,.96);
  font-size: 8px;
}
.observer-summary { display: flex; gap: 7px; align-items: center; color: #a2b1b2; white-space: nowrap; }
.observer-summary i { width: 6px; height: 6px; border-radius: 50%; background: #d07862; box-shadow: 0 0 8px rgba(208,120,98,.7); }
.observer-bar label { display: flex; gap: 7px; align-items: center; white-space: nowrap; }
.observer-bar input {
  width: 155px;
  height: 29px;
  padding: 0 7px;
  border: 1px solid rgba(115,146,155,.18);
  outline: none;
  color: #9caaac;
  color-scheme: dark;
  background: rgba(255,255,255,.018);
  font: 8px var(--sans);
}
.observer-bar button {
  height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(115,146,155,.17);
  color: #829399;
  background: rgba(255,255,255,.018);
  font-size: 8px;
  white-space: nowrap;
}
.observer-bar button:hover { border-color: rgba(196,159,91,.32); color: #ceb77f; }
.observer-bar > small { margin-left: auto; color: #52666c; white-space: nowrap; }

.planetarium-panel .mansion-index {
  min-height: 64px;
  background: linear-gradient(180deg,rgba(10,20,24,.98),rgba(5,13,17,.98));
}
.planetarium-panel .mansion-group { min-width: 250px; flex-basis: 250px; }
.planetarium-panel .mansion-index button { color: #778585; }
.planetarium-panel .mansion-index button::after { bottom: 6px; }

.planetarium-viewport {
  height: clamp(650px, 73vh, 790px);
  min-height: 650px;
  background: #010407;
  cursor: grab;
  touch-action: none;
}
.planetarium-viewport.dragging { cursor: grabbing; }
.planetarium-viewport canvas { position: absolute; inset: 0; display: block; }
.planetarium-viewport .atlas-vignette {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg,rgba(0,0,0,.13),transparent 18%,transparent 78%,rgba(0,0,0,.32)),
    radial-gradient(ellipse at center,transparent 55%,rgba(0,0,0,.34) 100%);
}
.planetarium-viewport .atlas-loading { z-index: 20; background: rgba(2,8,11,.9); }
.planetarium-viewport .atlas-coordinate {
  z-index: 8;
  right: 16px;
  top: 15px;
  max-width: 48%;
  overflow: hidden;
  border-color: rgba(119,152,163,.18);
  color: #8ca0a5;
  background: rgba(3,10,14,.72);
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.planetarium-viewport .map-legend {
  z-index: 8;
  color: #718187;
  text-shadow: 0 1px 3px #000;
}
.map-navigation-hint {
  position: absolute;
  right: 16px;
  top: 50px;
  z-index: 8;
  display: flex;
  gap: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(119,152,163,.13);
  color: #667a80;
  background: rgba(3,10,14,.6);
  font-size: 7px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.map-navigation-hint span + span::before { margin-right: 10px; color: #3c5057; content: "·"; }
.map-legend .catalog-star { background: #eef3ff; box-shadow: 0 0 6px #c8dbff; }
.map-legend .blue { background: #75abc9; box-shadow: 0 0 5px #75abc9; }

.sky-direction-labels { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.sky-direction-labels.hidden { display: none; }
.sky-direction-labels span {
  position: absolute;
  min-width: 42px;
  color: #ce705f;
  font: 600 11px var(--sans);
  text-align: center;
  text-shadow: 0 0 8px #000,0 1px 2px #000;
  transform: translate(-50%,-50%);
}

.planetarium-viewport .sky-object-card {
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 52px;
  z-index: 12;
  width: min(380px, calc(100% - 28px));
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(132,151,146,.19);
  background: rgba(5,12,13,.86);
  box-shadow: 0 20px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
  scrollbar-color: #334b4e transparent;
  transition: opacity 180ms ease,transform 180ms ease;
}
.planetarium-viewport .sky-object-card.collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22px);
}
.sky-card-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #aeb9b6;
  background: rgba(0,0,0,.18);
  font: 300 22px/1 sans-serif;
}
.sky-card-close:hover { color: #f0d5ad; background: rgba(255,255,255,.05); }
.sky-object-hero { position: relative; padding: 23px 22px 20px; border-bottom: 1px solid rgba(131,155,157,.15); background: radial-gradient(circle at 78% 12%,rgba(102,146,166,.12),transparent 52%); }
.object-kind { display: block; margin-bottom: 16px; color: #6c858d; font: 7px var(--sans); letter-spacing: .13em; }
.object-title { display: flex; gap: 13px; align-items: center; padding-right: 26px; }
.object-title > i {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--star-color,#fff);
  box-shadow: 0 0 10px var(--star-color,#fff),0 0 25px color-mix(in srgb,var(--star-color,#fff) 35%,transparent);
}
.object-title h3 { margin: 0; color: #eef0e9; font: 500 22px var(--serif); }
.object-title p { margin: 5px 0 0; color: #7f9298; font: 9px var(--sans); }
.constellation-glyph { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(112,166,198,.4); color: #8bc0dc; font-size: 25px; }
.visibility-badge { display: inline-block; margin-top: 14px; padding: 4px 7px; border: 1px solid rgba(110,152,124,.25); color: #86aa91; font-size: 7px; }
.visibility-badge.below { border-color: rgba(164,110,99,.24); color: #a77c71; }
.sky-object-body { padding: 17px 20px 22px; }
.sky-fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 15px; border: 1px solid rgba(126,151,154,.13); background: rgba(126,151,154,.09); }
.sky-fact-grid > div { min-height: 61px; padding: 10px; background: rgba(4,12,15,.88); }
.sky-fact-grid small,
.object-relation > small,
.bright-stars > small { display: block; margin-bottom: 6px; color: #61747a; font-size: 7px; }
.sky-fact-grid strong { display: block; color: #b8c0ba; font: 500 9px/1.5 var(--sans); }
.object-relation,
.bright-stars { display: grid; gap: 6px; padding: 13px 0; border-top: 1px solid rgba(126,151,154,.12); }
.object-relation button,
.bright-star-row {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(114,158,178,.16);
  color: #9ab3bd;
  background: rgba(75,122,144,.055);
  text-align: left;
  font: 9px var(--sans);
}
.object-relation button:hover,
.bright-star-row:hover { border-color: rgba(202,167,98,.32); color: #d1bb87; }
.object-note { margin: 12px 0; color: #68787a; font: 8px/1.75 var(--serif); }
.object-source { display: inline-block; margin-top: 4px; color: #8e805e; font-size: 8px; }
.object-source:hover { color: #d1b473; }
.bright-star-row { display: flex; align-items: center; justify-content: space-between; }
.bright-star-row span { display: grid; gap: 3px; }
.bright-star-row small { color: #5f747c; font-size: 7px; }
.bright-star-row b { color: #9b9e94; font-size: 8px; font-weight: 500; }

@media (max-width: 900px) {
  .planetarium-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .projection-switch { order: 1; }
  .sky-layer-controls { order: 3; width: 100%; }
  .planetarium-toolbar .map-controls { order: 2; }
  .observer-bar { flex-wrap: wrap; }
  .observer-bar > small { width: 100%; margin-left: 0; }
  .planetarium-viewport { height: 700px; }
}

@media (max-width: 620px) {
  .explore-heading .primary-button { display: none; }
  .projection-switch button,
  .sky-layer-controls button { padding-inline: 8px; }
  .observer-bar label { width: 100%; }
  .observer-bar input { flex: 1; width: auto; }
  .observer-bar button { flex: 1; }
  .planetarium-panel .mansion-group { min-width: 218px; flex-basis: 218px; }
  .planetarium-viewport { height: 680px; min-height: 680px; }
  .planetarium-viewport .sky-object-card {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 42px;
    width: auto;
    max-height: 47%;
  }
  .planetarium-viewport .sky-object-card.collapsed { transform: translateY(22px); }
  .planetarium-viewport .atlas-coordinate { right: 8px; top: 8px; max-width: calc(100% - 16px); }
  .map-navigation-hint { right: 8px; top: 43px; }
  .planetarium-viewport .map-legend span:nth-child(-n+3) { display: none; }
  .sky-fact-grid { grid-template-columns: 1fr; }
}

/* 2026 exhibition theme — 黛青天幕、鎏金星轨、朱砂题签 */
:root {
  --ink: #10282b;
  --ink-soft: #183a3d;
  --ink-panel: rgba(25, 55, 57, .9);
  --teal: #315f5d;
  --teal-bright: #65a69a;
  --ivory: #fff7e7;
  --ivory-dim: #d2c9b5;
  --gold: #d9b66d;
  --gold-light: #f2d594;
  --cinnabar: #c85e49;
  --line: rgba(229, 207, 160, .24);
  --line-strong: rgba(232, 202, 140, .42);
  --shadow: 0 28px 80px rgba(4, 17, 18, .28);
}

body {
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(14, 41, 44, .74), rgba(23, 51, 52, .82)),
    radial-gradient(circle at 74% 12%, rgba(213, 171, 91, .16), transparent 31%),
    url("星空网页背景图.jpg") center / cover fixed no-repeat;
}
body::before {
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 245, 218, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 218, .025) 1px, transparent 1px);
  background-size: 80px 80px;
}
.paper-noise { opacity: .045; mix-blend-mode: soft-light; }

.site-header {
  border-bottom-color: rgba(225, 200, 145, .24);
  background: rgba(14, 39, 41, .84);
  box-shadow: 0 10px 40px rgba(3, 17, 18, .16);
  backdrop-filter: blur(24px) saturate(115%);
}
.brand-seal {
  border-color: rgba(238, 205, 137, .64);
  color: #f3d895;
  background: linear-gradient(145deg, rgba(216, 174, 92, .18), rgba(105, 69, 26, .1));
  box-shadow: inset 0 0 0 3px rgba(24, 53, 53, .72), 0 8px 24px rgba(12, 25, 25, .2);
}
.brand-copy small,
.archive-status,
.nav-link { color: #a9b3aa; }
.nav-link:hover,
.nav-link.active { color: #fff2d5; }

.recognition-page,
.explore-page,
.dialogue-page {
  position: relative;
  background:
    linear-gradient(180deg, rgba(27, 59, 60, .32), rgba(19, 48, 50, .6)),
    radial-gradient(circle at 50% 0, rgba(222, 187, 116, .14), transparent 37%);
}
.recognition-page::before,
.explore-page::before,
.dialogue-page::before {
  position: fixed;
  inset: 76px 0 0;
  z-index: 0;
  content: "";
  opacity: .11;
  background: url("星空网页背景图.jpg") center / cover no-repeat;
  pointer-events: none;
  mix-blend-mode: screen;
}
.recognition-page > *,
.explore-page > *,
.dialogue-page > * { position: relative; z-index: 1; }

.section-heading h2,
.explore-heading h2,
.dialogue-heading h2 {
  color: #fff5df;
  text-shadow: 0 3px 18px rgba(6, 24, 25, .34);
}
.eyebrow { color: #e0bd78; }
.eyebrow span { background: var(--cinnabar); box-shadow: 0 0 9px rgba(200, 94, 73, .45); }

.panel {
  border-color: rgba(232, 207, 155, .27);
  background: linear-gradient(145deg, rgba(35, 72, 71, .9), rgba(19, 49, 52, .94));
  box-shadow:
    0 24px 70px rgba(4, 20, 21, .25),
    inset 0 1px rgba(255, 247, 225, .055);
  backdrop-filter: blur(16px) saturate(110%);
}
.panel-bar { background: rgba(255, 247, 226, .035); }
.primary-button {
  color: #233032;
  background: linear-gradient(135deg, #f0d38e, #c99b4e);
  box-shadow: 0 10px 25px rgba(124, 84, 25, .2), inset 0 1px rgba(255,255,255,.35);
}
.primary-button:hover:not(:disabled) {
  box-shadow: 0 14px 32px rgba(118, 77, 17, .3), 0 0 0 1px rgba(255,238,190,.3);
}
.ghost-button {
  border-color: rgba(232, 205, 151, .3);
  color: #e2d3b5;
  background: rgba(255, 248, 229, .04);
}
.map-search {
  height: 46px;
  border-color: rgba(232, 207, 155, .32);
  background: rgba(32, 68, 68, .68);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.map-search input { color: #fff2d9; font-size: 13px; }
.map-search input::placeholder { color: #9eaaa2; }
.map-search svg { stroke: #d3bb87; }

.planetarium-panel {
  border-color: rgba(238, 208, 145, .34);
  background: #16373b;
  box-shadow: 0 30px 90px rgba(4,18,19,.32), inset 0 1px rgba(255,246,218,.08);
}
.planetarium-toolbar {
  min-height: 64px;
  padding: 11px 14px;
  border-bottom-color: rgba(230, 205, 153, .23);
  background: linear-gradient(180deg, rgba(43, 82, 80, .98), rgba(29, 63, 65, .98));
}
.projection-switch button,
.sky-layer-controls button { min-height: 34px; font-size: 10px; }
.projection-switch button { padding-inline: 14px; }
.projection-switch button.active {
  border-color: rgba(241, 207, 139, .55);
  color: #ffe4a7;
  background: linear-gradient(180deg, rgba(215, 171, 84, .16), rgba(164, 110, 38, .11));
  box-shadow: inset 0 -1px rgba(238, 193, 106, .3);
}
.sky-layer-controls button { color: #a7b7b3; }
.sky-layer-controls button.active { color: #e1ece5; background: rgba(120, 178, 167, .11); }
.planetarium-toolbar .map-controls {
  border-color: rgba(231, 204, 149, .3);
  background: rgba(12, 40, 43, .38);
}
.map-controls button { width: 36px; height: 33px; font-size: 15px; }
.map-controls span { min-width: 56px; color: #d5cfbd; font-size: 10px; }

.observer-bar {
  min-height: 51px;
  padding: 9px 16px;
  border-bottom-color: rgba(227, 203, 153, .2);
  color: #b1c0bc;
  background: rgba(29, 63, 65, .96);
  font-size: 10px;
}
.observer-summary { color: #e1ded0; }
.observer-bar input {
  height: 32px;
  border-color: rgba(232, 207, 155, .28);
  color: #e2e6dd;
  background: rgba(12, 38, 41, .33);
  font-size: 10px;
}
.observer-bar button {
  height: 32px;
  border-color: rgba(232, 207, 155, .25);
  color: #d3d4c7;
  background: rgba(255, 250, 232, .045);
  font-size: 10px;
}
.observer-bar > small { color: #8da29f; font-size: 9px; }

.planetarium-panel .mansion-index {
  min-height: 70px;
  border-bottom-color: rgba(230, 204, 151, .2);
  background: linear-gradient(180deg, rgba(31, 65, 66, .98), rgba(24, 55, 58, .98));
}
.mansion-group { border-right-color: rgba(234, 211, 164, .18); }
.mansion-group-label { color: #b6ad95; font-size: 10px; }
.mansion-group-label b { color: #e1ca95; font-size: 12px; }
.mansion-index button { font-size: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.mansion-index button:hover { background: rgba(229, 191, 116, .1); }

.planetarium-viewport {
  background: #102c36;
  box-shadow: inset 0 0 90px rgba(5, 21, 25, .3);
}
.planetarium-viewport .atlas-vignette {
  background:
    linear-gradient(180deg, rgba(7, 24, 29, .05), transparent 22%, transparent 75%, rgba(4, 18, 22, .22)),
    radial-gradient(ellipse at center, transparent 60%, rgba(4, 17, 21, .25) 100%);
}
.planetarium-viewport .atlas-coordinate,
.map-navigation-hint {
  border-color: rgba(232, 207, 157, .22);
  color: #c6d1cd;
  background: rgba(18, 48, 53, .76);
}
.planetarium-viewport .atlas-coordinate { padding: 8px 10px; font-size: 10px; }
.map-navigation-hint { padding: 8px 11px; color: #abbdbb; font-size: 9px; }
.sky-direction-labels span { color: #e87861; font-size: 13px; }
.planetarium-viewport .map-legend { color: #b8c5c1; font-size: 10px; }

.planetarium-viewport .sky-object-card {
  width: min(430px, calc(100% - 28px));
  border-color: rgba(238, 209, 149, .38);
  color: #f3ead8;
  background: linear-gradient(155deg, rgba(31, 68, 68, .94), rgba(18, 46, 50, .96));
  box-shadow: 0 24px 70px rgba(2, 17, 19, .36), inset 0 1px rgba(255,246,216,.08);
  backdrop-filter: blur(20px) saturate(115%);
}
.sky-card-close { color: #e4ddcf; font-size: 24px; }
.sky-object-hero {
  padding: 26px 24px 23px;
  border-bottom-color: rgba(233, 207, 154, .24);
  background: radial-gradient(circle at 80% 10%, rgba(216, 174, 91, .16), transparent 50%);
}
.object-kind { color: #b7c5c2; font-size: 9px; }
.object-title h3 { color: #fff5df; font-size: 25px; }
.object-title p { color: #bac6c3; font-size: 11px; }
.visibility-badge { font-size: 9px; }
.sky-object-body { padding: 20px 22px 25px; }
.sky-fact-grid { border-color: rgba(230, 205, 153, .2); background: rgba(230, 205, 153, .16); }
.sky-fact-grid > div { min-height: 69px; padding: 12px; background: rgba(25, 58, 60, .9); }
.sky-fact-grid small,
.object-relation > small,
.bright-stars > small { color: #9eb0ad; font-size: 9px; }
.sky-fact-grid strong { color: #eee7d8; font-size: 12px; }
.object-relation button,
.bright-star-row {
  padding: 11px 12px;
  border-color: rgba(143, 192, 186, .24);
  color: #d5e3df;
  background: rgba(104, 161, 153, .11);
  font-size: 11px;
}
.object-note { color: #b1bfbb; font-size: 11px; line-height: 1.85; }
.object-source { color: #e0bc76; font-size: 10px; }
.bright-star-row small { color: #91a6a3; font-size: 9px; }
.bright-star-row b { color: #d2cdbf; font-size: 10px; }

.knowledge-hero {
  min-height: 166px;
  padding: 27px 25px;
  border-bottom-color: rgba(233, 207, 154, .24);
  background: radial-gradient(circle at 80% 35%, rgba(220, 177, 90, .18), transparent 36%);
}
.knowledge-status { color: #c3c6ba; background: rgba(18,45,48,.7); font-size: 9px; }
.knowledge-breadcrumb { color: #c1b89f; font-size: 10px; }
.knowledge-hero h3 { font-size: 32px; }
.knowledge-hero h3 small { color: #c6a86e; font-size: 10px; }
.knowledge-hero p { color: #c9d0c9; font-size: 12px; }
.knowledge-body { padding: 21px 23px 25px; }
.knowledge-quote {
  margin: 18px 0;
  padding: 16px 15px 16px 23px;
  color: #f0e4ce;
  background: rgba(255, 247, 226, .055);
  font-size: 14px;
}
.knowledge-quote small { color: #b9aa8e; font-size: 10px; }
.knowledge-facts { background: rgba(232, 205, 151, .22); border-color: rgba(232, 205, 151, .22); }
.knowledge-facts div { min-height: 68px; padding: 12px 13px; background: rgba(26, 60, 61, .94); }
.knowledge-facts small { color: #9eafaa; font-size: 10px; }
.knowledge-facts strong { color: #eee5d3; font-size: 12px; line-height: 1.5; }
.knowledge-story > p { color: #dfc994; font-size: 11px; }
.knowledge-story article { color: #d0d8d1; font-size: 13px; line-height: 1.9; }
.knowledge-story > small { color: #9ca9a4; font-size: 9px; line-height: 1.75; }
.culture-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 207, 155, .2);
}
.culture-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.culture-panel > header small {
  display: block;
  margin-bottom: 4px;
  color: #d9b875;
  font-size: 9px;
  letter-spacing: .18em;
}
.culture-panel > header h4 {
  margin: 0;
  color: #f2e7d2;
  font: 500 18px var(--serif);
  letter-spacing: .08em;
}
.culture-panel > header > span {
  color: #9eafa9;
  font-size: 9px;
  white-space: nowrap;
}
.culture-card-list { display: grid; gap: 11px; }
.culture-card {
  position: relative;
  overflow: hidden;
  padding: 15px 15px 14px;
  border: 1px solid rgba(227, 196, 133, .23);
  background:
    linear-gradient(135deg, rgba(220, 189, 126, .10), rgba(255,255,255,.025)),
    rgba(27, 57, 58, .72);
  box-shadow: inset 3px 0 rgba(190, 86, 60, .42);
}
.culture-card::after {
  position: absolute;
  right: -13px;
  top: -22px;
  content: "✦";
  color: rgba(232, 200, 132, .07);
  font-size: 68px;
}
.culture-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.culture-card-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(226, 193, 124, .24);
  color: #efcf8f;
  background: rgba(212, 173, 96, .08);
  font-size: 9px;
}
.culture-card-meta b {
  color: #9eb1aa;
  font-size: 8px;
  font-weight: 500;
}
.culture-card-meta b.status-reviewed,
.culture-card-meta b.reviewed { color: #a8c8b8; }
.culture-card h5 {
  position: relative;
  z-index: 1;
  margin: 12px 0 7px;
  color: #f4e9d5;
  font: 500 15px/1.45 var(--serif);
}
.culture-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #cad5ce;
  font: 12px/1.9 var(--serif);
}
.culture-card blockquote {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid #bd715a;
  color: #f2d9a4;
  background: rgba(20, 44, 47, .58);
  font: 13px/1.8 var(--serif);
}
.culture-card blockquote small {
  display: block;
  margin-top: 4px;
  color: #b8aa91;
  font: 9px var(--sans);
}
.culture-caution {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(202, 122, 86, .18);
  color: #d5b8aa;
  background: rgba(135, 67, 46, .1);
  font: 9px/1.65 var(--sans);
}
.culture-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 11px;
  color: #9eaca7;
  font: 9px/1.65 var(--sans);
}
.culture-card footer span {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 190, 122, .25);
  color: #dbb971;
  font: 10px var(--serif);
}
.source-reading-details {
  margin-top: 17px;
  border: 1px solid rgba(232, 207, 155, .24);
  background: rgba(255,255,255,.025);
}
.source-reading-details > summary {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  color: #e0cc9d;
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}
.source-reading-details > summary::-webkit-details-marker { display: none; }
.source-reading-details > summary span { color: #a9b7b1; }
.source-reading-notice {
  margin: 0;
  padding: 11px 12px;
  border-top: 1px solid rgba(232, 207, 155, .14);
  color: #aebbb5;
  background: rgba(200, 162, 89, .05);
  font-size: 9px;
  line-height: 1.7;
}
.source-reading-details ul {
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}
.source-reading-details li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 207, 155, .12);
}
.source-reading-details li:last-child { border-bottom: 0; }
.source-reading-details li > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.source-reading-details li span {
  padding: 3px 6px;
  color: #e2bd77;
  background: rgba(215, 172, 90, .08);
  font-size: 8px;
}
.source-reading-details li b {
  color: #e6ded0;
  font: 500 11px var(--serif);
}
.source-reading-details li p {
  margin: 7px 0 3px;
  color: #bfcbc6;
  font-size: 10px;
  line-height: 1.65;
}
.source-reading-details li small {
  color: #8fa09a;
  font-size: 8px;
  line-height: 1.6;
}
.source-gap { color: #dfb8a6; background: rgba(151, 75, 50, .13); font-size: 10px; }
.research-panel { padding: 14px; background: linear-gradient(135deg, rgba(156,77,49,.13), rgba(193,156,80,.07)); }
.research-heading span { color: #ecd19b; font-size: 12px; }
.research-heading b { color: #e0a48c; font-size: 9px; }
.research-panel > p { color: #d0d5cc; font-size: 12px; }
.research-panel details { color: #aebbb5; font-size: 10px; }
.research-panel summary { color: #d4bf91; }
.research-sources a,
.research-sources span { color: #b9cdc4; font-size: 10px; }
.mapping-list span { padding: 6px 8px; color: #bbc8c3; background: rgba(255,255,255,.025); font-size: 9px; }
.mapping-list span.primary { color: #efd18e; }
.member-details { border-color: rgba(232, 207, 155, .24); background: rgba(255,255,255,.025); }
.member-details summary { padding: 12px; color: #e0cc9d; font-size: 11px; }
.member-details summary span { color: #a9b7b1; }
.member-table { color: #c0cbc6; font-size: 10px; }
.member-table th { padding: 9px 8px; color: #99aaa5; }
.member-table td { padding: 10px 8px; border-top-color: rgba(232,207,155,.12); }
.member-table td b { color: #eee2ca; font-size: 11px; }
.member-table td small { color: #95a8a3; font-size: 9px; }
.principal-badge { font-size: 8px; }
.claim-explainer { color: #c6b7a3; background: rgba(151,75,50,.08); font-size: 10px; }
.claim-status { font-size: 9px; }
.knowledge-actions button { font-size: 12px; }

.knowledge-network {
  border-color: rgba(232, 207, 155, .3);
  background: linear-gradient(145deg, rgba(33, 70, 69, .92), rgba(20, 51, 54, .94));
}
.network-head { min-height: 78px; }
.network-head p { color: #9baaa5; font-size: 10px; }
.network-head h3 { color: #f1e6d1; font-size: 16px; }
.network-legend { color: #b1bdb8; font-size: 10px; }
.network-canvas {
  height: 300px;
  background-color: rgba(18, 47, 50, .48);
  background-image: radial-gradient(circle, rgba(223,194,133,.15) 0 1px, transparent 1px);
}
.network-line { stroke: rgba(223, 194, 133, .3); }
.network-node {
  min-width: 96px;
  padding: 11px 12px;
  border-color: rgba(232, 207, 155, .26);
  color: #e5ddcc;
  background: rgba(28, 61, 62, .96);
  font-size: 11px;
}
.network-node small { color: #9aaca7; font-size: 9px; }
.network-node.center {
  min-width: 110px;
  padding: 14px;
  color: #ffe2a3;
  background: #285252;
}

.rag-entity > small,
.rag-paths > p,
.chat-head p { font-size: 10px; color: #93a49e; }
.rag-paths button strong { color: #e2d9c8; font-size: 11px; }
.rag-paths button small { color: #95a7a1; font-size: 9px; }
.rag-paths button b { font-size: 10px; }
.rag-empty { padding: 14px 12px; border: 1px dashed rgba(181,154,102,.2); color: #87958f; background: rgba(255,255,255,.025); font-size: 10px; line-height: 1.75; }
.rag-mode-notice {
  margin: 0 0 10px;
  padding: 10px 11px;
  border-left: 2px solid #6f9c84;
  color: #b9d0c3;
  background: rgba(77, 132, 103, .11);
  font-size: 9px;
  line-height: 1.65;
}
.rag-mode-notice.general {
  border-left-color: #c59a52;
  color: #d9c39b;
  background: rgba(190, 145, 69, .1);
}
.tiny-status.warning i { background: #c49a52; box-shadow: 0 0 8px rgba(196,154,82,.7); }
.tiny-status.warning { color: #b8a681; }
.tiny-status.offline i { background: #a86252; box-shadow: 0 0 8px rgba(168,98,82,.65); }
.tiny-status.offline { color: #b78b80; }
.rag-note { color: #b7c3be; font-size: 10px; background: rgba(100,156,143,.09); }
.chat-head strong { font-size: 14px; }
.message-body { color: #e0ddd2; background: rgba(255,255,255,.045); font-size: 13px; line-height: 1.9; }
.answer-mode-banner {
  display: grid;
  gap: 3px;
  margin: -2px 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(102, 155, 127, .24);
  color: #afcbbd;
  background: rgba(64, 122, 93, .1);
  font: 9px/1.6 var(--sans);
}
.answer-mode-banner strong { color: #d9e8df; font: 500 10px/1.5 var(--sans); letter-spacing: .03em; }
.answer-mode-banner.general {
  border-color: rgba(197, 154, 82, .28);
  color: #cdbb99;
  background: linear-gradient(90deg, rgba(178, 127, 52, .13), rgba(178, 127, 52, .045));
}
.answer-mode-banner.general strong { color: #f0d69f; }
.user-message .message-body { color: #fff0cf; background: rgba(194,148,68,.14); }
.message-sources > span { color: #93a39e; font-size: 9px; }
.message-sources button { color: #d8bd83; font-size: 10px; }
.message-explore-links > span,
.message-explore-links button,
.message-provider { font-size: 10px; }
.suggested-prompts span,
.suggested-prompts button { font-size: 10px; }
.chat-composer { background: rgba(17, 46, 49, .62); }
.chat-composer textarea { color: #f6edda; font-size: 13px; }

@media (max-width: 900px) {
  .planetarium-viewport .sky-object-card { width: min(400px, calc(100% - 28px)); }
}

@media (max-width: 620px) {
  .map-navigation-hint span:nth-child(2) { display: inline; }
  .planetarium-viewport .sky-object-card { width: auto; }
  .knowledge-story article,
  .message-body { font-size: 12px; }
  .culture-card > p { font-size: 12px; }
  .culture-panel > header { align-items: flex-start; flex-direction: column; }
}

/* 日夜阅览切换 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 4px 10px 4px 6px;
  border: 1px solid rgba(235, 207, 150, .28);
  color: #d8cdb6;
  background: rgba(255, 249, 229, .035);
  font-size: 12px;
  letter-spacing: .08em;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.theme-toggle:hover { border-color: rgba(241, 208, 139, .58); color: #ffe7af; }
.theme-toggle-track {
  position: relative;
  width: 54px;
  height: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(236, 209, 152, .22);
  border-radius: 20px;
  background: rgba(4, 25, 28, .38);
}
.theme-toggle-track svg {
  z-index: 1;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .52;
}
.theme-toggle-track i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8c979, #b9873e);
  box-shadow: 0 2px 8px rgba(5, 19, 20, .38);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), background .25s ease;
}
.theme-toggle .theme-sun { color: #243b38; opacity: .9; }
.theme-toggle .theme-moon { color: #d8ccad; }

html[data-theme="day"] { color-scheme: light; }
html[data-theme="day"] .theme-toggle-track i {
  transform: translateX(28px);
  background: linear-gradient(145deg, #f8ecd0, #c8af7b);
}
html[data-theme="day"] .theme-toggle .theme-sun { color: #8b612e; opacity: .58; }
html[data-theme="day"] .theme-toggle .theme-moon { color: #514334; opacity: .95; }

/* 日阅模式 — 宣纸、墨线、赭石与朱砂 */
html[data-theme="day"] {
  --ink: #e8d9b4;
  --ink-soft: #dfcca1;
  --ink-panel: rgba(239, 225, 190, .93);
  --teal: #6f8072;
  --teal-bright: #536d61;
  --ivory: #30281e;
  --ivory-dim: #6f6250;
  --gold: #9a6a2e;
  --gold-light: #795125;
  --cinnabar: #a63f30;
  --line: rgba(91, 69, 38, .22);
  --line-strong: rgba(119, 79, 31, .43);
  --shadow: 0 24px 70px rgba(72, 49, 21, .16);
}

html[data-theme="day"] body {
  color: #30281e;
  background:
    radial-gradient(circle at 82% 3%, rgba(255, 250, 230, .7), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(137, 95, 43, .08), transparent 30%),
    repeating-linear-gradient(0deg, rgba(95, 70, 40, .018) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #f0e5c8, #dfcca2 55%, #eadbb7);
}
html[data-theme="day"] body::before {
  opacity: .28;
  background-image:
    linear-gradient(rgba(92, 70, 40, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 70, 40, .035) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(86, 63, 34, .08) 1px, transparent 1.2px);
  background-size: 88px 88px, 88px 88px, 19px 19px;
}
html[data-theme="day"] .paper-noise { opacity: .12; mix-blend-mode: multiply; }

html[data-theme="day"] .site-header {
  border-bottom: 3px double rgba(104, 73, 35, .45);
  background: linear-gradient(90deg, rgba(235, 218, 178, .98), rgba(247, 237, 208, .96) 52%, rgba(225, 204, 158, .98));
  box-shadow: 0 10px 32px rgba(87, 61, 28, .14), inset 0 1px rgba(255,255,255,.55);
}
html[data-theme="day"] .brand { color: #34291d; }
html[data-theme="day"] .brand-seal {
  border-color: #8e3529;
  color: #91382b;
  background: rgba(164, 61, 44, .055);
  box-shadow: inset 0 0 0 4px rgba(236, 220, 181, .9), 0 7px 18px rgba(92, 58, 24, .12);
}
html[data-theme="day"] .brand-copy strong { color: #35291d; }
html[data-theme="day"] .brand-copy small { color: #776853; }
html[data-theme="day"] .nav-link { color: #746653; }
html[data-theme="day"] .nav-link:hover,
html[data-theme="day"] .nav-link.active { color: #35281c; }
html[data-theme="day"] .nav-link.active::after { background: #a23c2d; box-shadow: 0 0 8px rgba(162, 60, 45, .28); }
html[data-theme="day"] .archive-status { color: #736856; }
html[data-theme="day"] .archive-status i,
html[data-theme="day"] .tiny-status i { background: #657a5f; box-shadow: none; }
html[data-theme="day"] .theme-toggle { border-color: rgba(104, 72, 34, .28); color: #5b4934; background: rgba(255, 252, 235, .35); }
html[data-theme="day"] .theme-toggle:hover { border-color: #99672e; color: #6e441f; }
html[data-theme="day"] .theme-toggle-track { border-color: rgba(103, 74, 40, .28); background: rgba(117, 88, 49, .08); }
html[data-theme="day"] .menu-button span { background: #5d4a34; }

html[data-theme="day"] .primary-button {
  border-color: rgba(131, 78, 34, .52);
  color: #fff8e8;
  background: linear-gradient(135deg, #a44a34, #873225);
  box-shadow: 0 10px 24px rgba(112, 49, 32, .18), inset 0 1px rgba(255,255,255,.2);
}
html[data-theme="day"] .primary-button:hover:not(:disabled) { background: linear-gradient(135deg, #ad563c, #91382a); }
html[data-theme="day"] .ghost-button { border-color: rgba(100, 72, 39, .32); color: #564632; background: rgba(255, 251, 232, .32); }
html[data-theme="day"] .ghost-button:hover { border-color: #95652f; color: #7d4f25; }
html[data-theme="day"] .text-button { color: #584834; }
html[data-theme="day"] .play-icon { border-color: rgba(101, 71, 35, .38); color: #8b5b27; }

html[data-theme="day"] .hero-backdrop {
  background:
    linear-gradient(90deg, rgba(242, 231, 204, .98) 0%, rgba(238, 224, 190, .88) 34%, rgba(234, 216, 176, .55) 68%, rgba(226, 204, 157, .62) 100%),
    linear-gradient(0deg, rgba(229, 212, 174, .92), transparent 38%),
    url("assets/ancient-star-chart.png") center / cover no-repeat;
  background-blend-mode: normal, normal, luminosity;
  filter: sepia(.34) saturate(.72) brightness(1.22) contrast(.84);
}
html[data-theme="day"] .hero::before { background: radial-gradient(circle at 73% 49%, rgba(153, 94, 37, .12), transparent 29%); }
html[data-theme="day"] .orbit { border-color: rgba(105, 74, 38, .16); }
html[data-theme="day"] .orbit::before { background: #9b5f28; box-shadow: 0 0 8px rgba(128, 78, 30, .34); }
html[data-theme="day"] .eyebrow { color: #8d5729; }
html[data-theme="day"] .eyebrow span { background: #a33e2e; box-shadow: none; }
html[data-theme="day"] .hero h1,
html[data-theme="day"] .section-heading h2,
html[data-theme="day"] .explore-heading h2,
html[data-theme="day"] .dialogue-heading h2 { color: #302419; text-shadow: 0 2px rgba(255,255,255,.36); }
html[data-theme="day"] .hero h1 em {
  color: #8e5b28;
  background: linear-gradient(90deg, #9b642e, #6d4724);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="day"] .hero-lead { color: #5e503e; }
html[data-theme="day"] .hero-metrics strong { color: #403222; }
html[data-theme="day"] .hero-metrics span { color: #746653; }
html[data-theme="day"] .hero-metrics > i { background: rgba(88, 65, 36, .3); }
html[data-theme="day"] .hero-scroll { color: #786a56; }
html[data-theme="day"] .hero-scroll span { background: linear-gradient(#9c682f, transparent); }

html[data-theme="day"] .glass-card,
html[data-theme="day"] .panel,
html[data-theme="day"] .knowledge-network {
  border: 1px solid rgba(100, 72, 38, .34);
  outline: 1px solid rgba(117, 81, 37, .09);
  outline-offset: -6px;
  color: #352a1e;
  background: linear-gradient(135deg, rgba(255, 250, 230, .8), rgba(226, 207, 165, .9));
  box-shadow: 0 24px 64px rgba(77, 53, 23, .14), inset 0 1px rgba(255,255,255,.6);
  backdrop-filter: blur(13px) saturate(80%);
}
html[data-theme="day"] .night-card-head,
html[data-theme="day"] .panel-bar,
html[data-theme="day"] .chat-head,
html[data-theme="day"] .network-head { border-color: rgba(98, 70, 37, .24); background: rgba(113, 78, 36, .035); }
html[data-theme="day"] .night-meta { border-color: rgba(98, 70, 37, .22); }
html[data-theme="day"] .night-meta small { color: #7d705d; }
html[data-theme="day"] .night-meta strong { color: #423424; }
html[data-theme="day"] .mini-sky { background: radial-gradient(circle at 55% 45%, rgba(144, 101, 46, .14), transparent 48%); }
html[data-theme="day"] .mini-sky::before { opacity: .3; background-image: radial-gradient(circle, #805928 0 1px, transparent 1.4px); }
html[data-theme="day"] .constellation-lines { stroke: rgba(96, 70, 39, .55); }
html[data-theme="day"] .constellation-stars { fill: #9b642c; filter: none; }
html[data-theme="day"] .sky-label { color: #853f2c; }
html[data-theme="day"] .card-link { border-color: rgba(98, 70, 37, .22); color: #7b4d23; background: rgba(125, 81, 32, .04); }

html[data-theme="day"] .recognition-page,
html[data-theme="day"] .explore-page,
html[data-theme="day"] .dialogue-page {
  background: radial-gradient(circle at 48% 0, rgba(255, 250, 231, .65), transparent 38%), linear-gradient(180deg, rgba(231, 216, 182, .58), rgba(240, 230, 204, .78));
}
html[data-theme="day"] .recognition-page::before,
html[data-theme="day"] .explore-page::before,
html[data-theme="day"] .dialogue-page::before {
  opacity: .115;
  background: linear-gradient(rgba(232, 217, 184, .52), rgba(232, 217, 184, .52)), url("古籍星图背景.png") center / cover no-repeat;
  mix-blend-mode: multiply;
  filter: sepia(1) saturate(.45) contrast(.75) brightness(1.26);
}
html[data-theme="day"] .section-heading > div > p:last-child,
html[data-theme="day"] .dialogue-heading > div > p:last-child { color: #6e604c; }
html[data-theme="day"] .stepper li { color: #857765; }
html[data-theme="day"] .stepper li:not(:last-child)::after { background: rgba(91, 67, 37, .25); }
html[data-theme="day"] .stepper b { border-color: rgba(95, 67, 35, .32); }
html[data-theme="day"] .stepper .active { color: #8a3c2d; }
html[data-theme="day"] .stepper .active b { border-color: #a13e2f; color: #913629; background: rgba(160, 58, 43, .06); }
html[data-theme="day"] .panel-bar strong { color: #3c2f20; }
html[data-theme="day"] .panel-bar small { color: #796c59; }
html[data-theme="day"] .panel-mark { background: #9a672f; }
html[data-theme="day"] .panel-mark.cinnabar { background: #a33e2e; }

html[data-theme="day"] .drop-zone { border-color: rgba(103, 73, 37, .38); background: radial-gradient(circle at 50% 44%, rgba(141, 100, 48, .09), transparent 31%), rgba(255, 252, 235, .22); }
html[data-theme="day"] .drop-zone:hover,
html[data-theme="day"] .drop-zone.dragging { border-color: #96642e; background-color: rgba(144, 97, 43, .055); }
html[data-theme="day"] .upload-orbit,
html[data-theme="day"] .upload-orbit::before,
html[data-theme="day"] .upload-orbit::after { border-color: rgba(112, 78, 37, .23); }
html[data-theme="day"] .upload-orbit svg { stroke: #925f29; }
html[data-theme="day"] .upload-empty h3 { color: #3d3021; }
html[data-theme="day"] .upload-empty p { color: #675947; }
html[data-theme="day"] .upload-empty > span { color: #827460; }
html[data-theme="day"] .shooting-context { border-color: rgba(100, 72, 38, .25); background: rgba(255,255,255,.16); }
html[data-theme="day"] .shooting-context summary { color: #684b29; }
html[data-theme="day"] .shooting-context summary small,
html[data-theme="day"] .shooting-help { color: #796e5d; }
html[data-theme="day"] .shooting-fields { border-color: rgba(100, 72, 38, .18); }
html[data-theme="day"] .shooting-fields label { color: #695c49; }
html[data-theme="day"] .shooting-fields input,
html[data-theme="day"] .shooting-fields select,
html[data-theme="day"] .observer-bar input { border-color: rgba(94, 66, 34, .3); color: #3f3223; background: rgba(255, 251, 233, .56); color-scheme: light; }
html[data-theme="day"] .field-with-unit em { color: #84633b; }
html[data-theme="day"] .quality-tips span { color: #815525; }
html[data-theme="day"] .quality-tips p,
html[data-theme="day"] .process-state,
html[data-theme="day"] .process-idle p { color: #746755; }
html[data-theme="day"] .process-idle h3 { color: #443526; }
html[data-theme="day"] .radar-visual,
html[data-theme="day"] .radar-visual::before { border-color: rgba(104, 74, 38, .24); }
html[data-theme="day"] .radar-visual i { background: #9d5f29; box-shadow: none; }
html[data-theme="day"] .recognition-diagnostic > span { color: #667b64; }
html[data-theme="day"] .recognition-diagnostic h3 { color: #453526; }
html[data-theme="day"] .recognition-diagnostic dl > div { border-color: rgba(91, 66, 35, .2); }
html[data-theme="day"] .recognition-diagnostic dt,
html[data-theme="day"] .recognition-diagnostic p,
html[data-theme="day"] .recognition-diagnostic li { color: #6f6251; }
html[data-theme="day"] .recognition-diagnostic dd { color: #74491f; }
html[data-theme="day"] .result-summary,
html[data-theme="day"] .recognition-layer-switches { border-color: rgba(96, 68, 35, .3); color: #3c3022; background: rgba(241, 229, 198, .88); }
html[data-theme="day"] .result-summary small { color: #53715f; }
html[data-theme="day"] .result-summary p,
html[data-theme="day"] .recognition-layer-switches > span { color: #716452; }
html[data-theme="day"] .recognition-layer-switches button { border-color: rgba(101, 72, 37, .2); color: #716451; background: rgba(255,255,255,.14); }
html[data-theme="day"] .recognition-layer-switches button.active { border-color: #9a6a32; color: #77491f; background: rgba(151, 99, 41, .08); }
html[data-theme="day"] .recognition-result-group { border-color: rgba(99, 71, 37, .24); }
html[data-theme="day"] .recognition-result-group > header h3 { color: #3d3022; }
html[data-theme="day"] .recognition-result-group > header span { color: #9a3f30; }
html[data-theme="day"] .recognition-result-group > header p { color: #70624f; }
html[data-theme="day"] .result-card { border-color: rgba(97, 69, 35, .3); color: #352a1d; background: linear-gradient(145deg, rgba(248, 239, 211, .92), rgba(226, 207, 164, .86)); box-shadow: inset 3px 0 rgba(155, 60, 43, .26); }
html[data-theme="day"] .result-card:hover { border-color: #9b6a32; box-shadow: inset 3px 0 rgba(155, 60, 43, .42), 0 12px 28px rgba(77,51,22,.11); }
html[data-theme="day"] .result-glyph { border-color: rgba(127, 79, 32, .38); color: #8a5425; background: rgba(151, 96, 39, .05); }
html[data-theme="day"] .result-card h3 { color: #392d20; }
html[data-theme="day"] .result-card h3 small,
html[data-theme="day"] .result-card p { color: #6d604e; }
html[data-theme="day"] .confidence { color: #4f735e; }
html[data-theme="day"] .result-card .card-link { color: #7c4d22; }

html[data-theme="day"] .map-search { border-color: rgba(99, 70, 36, .36); background: rgba(244, 233, 203, .72); box-shadow: inset 0 1px rgba(255,255,255,.5); }
html[data-theme="day"] .map-search input { color: #3b2e20; }
html[data-theme="day"] .map-search input::placeholder { color: #80735f; }
html[data-theme="day"] .map-search svg { stroke: #8c5c2c; }
html[data-theme="day"] .map-search kbd { border-color: rgba(91,65,35,.27); color: #796b57; }
html[data-theme="day"] .planetarium-panel { border-color: rgba(97, 68, 35, .42); background: #dfcca2; box-shadow: 0 28px 75px rgba(70, 48, 21, .17), inset 0 0 0 6px rgba(115, 79, 36, .055); }
html[data-theme="day"] .planetarium-toolbar,
html[data-theme="day"] .observer-bar,
html[data-theme="day"] .planetarium-panel .mansion-index { border-color: rgba(96, 68, 35, .3); color: #4f412f; background: linear-gradient(180deg, rgba(240, 227, 194, .98), rgba(222, 202, 158, .97)); }
html[data-theme="day"] .projection-switch button,
html[data-theme="day"] .sky-layer-controls button { color: #736550; }
html[data-theme="day"] .projection-switch button.active,
html[data-theme="day"] .sky-layer-controls button.active { border-color: rgba(142, 83, 36, .5); color: #7f3d29; background: rgba(159, 61, 44, .07); box-shadow: inset 0 -1px rgba(159, 61, 44, .24); }
html[data-theme="day"] .planetarium-toolbar .map-controls { border-color: rgba(97, 69, 36, .32); background: rgba(255,255,255,.17); }
html[data-theme="day"] .map-controls button,
html[data-theme="day"] .map-controls span { color: #5e4f3b; }
html[data-theme="day"] .observer-summary { color: #493b2b; }
html[data-theme="day"] .observer-bar button { border-color: rgba(94,66,34,.3); color: #574630; background: rgba(255,255,255,.18); }
html[data-theme="day"] .observer-bar > small { color: #776a56; }
html[data-theme="day"] .mansion-group { border-color: rgba(95,67,34,.24); }
html[data-theme="day"] .mansion-group-label { color: #75664f; }
html[data-theme="day"] .mansion-group-label b { color: #76502a; }
html[data-theme="day"] .mansion-index button { border-color: rgba(95,67,34,.1); color: #5f5749; text-shadow: none; }
html[data-theme="day"] .mansion-index button:hover { color: #873f2c; background: rgba(153, 60, 43, .055); }
html[data-theme="day"] .mansion-index button.active { color: #973b2d; background: linear-gradient(180deg, rgba(160,61,43,.03), rgba(160,61,43,.11)); }
html[data-theme="day"] .mansion-group[data-region="DF_CANGLONG"] button { color: #4f7767; }
html[data-theme="day"] .mansion-group[data-region="BF_XUANWU"] button { color: #5a7081; }
html[data-theme="day"] .mansion-group[data-region="XF_BAIHU"] button { color: #89642f; }
html[data-theme="day"] .mansion-group[data-region="NF_ZHUQUE"] button { color: #9a4d3d; }
html[data-theme="day"] .mansion-group button.active { color: #963b2d; }
html[data-theme="day"] .planetarium-viewport { background: #d5c18f; box-shadow: inset 0 0 80px rgba(102, 76, 42, .17); }
html[data-theme="day"] .planetarium-viewport .atlas-vignette { background: linear-gradient(180deg, rgba(103,77,43,.03), transparent 22%, transparent 74%, rgba(94,68,35,.08)), radial-gradient(ellipse at center, transparent 66%, rgba(99,72,37,.14) 100%); }
html[data-theme="day"] .planetarium-viewport .atlas-coordinate,
html[data-theme="day"] .map-navigation-hint { border-color: rgba(91,66,35,.28); color: #574a38; background: rgba(239, 226, 193, .82); }
html[data-theme="day"] .planetarium-viewport .map-legend { color: #5f5545; }
html[data-theme="day"] .sky-direction-labels span { color: #a13f30; }
html[data-theme="day"] .planetarium-viewport .sky-object-card { border-color: rgba(104, 70, 33, .48); color: #3a2e20; background: linear-gradient(155deg, rgba(245, 234, 202, .97), rgba(219, 199, 157, .98)); box-shadow: 0 22px 58px rgba(70, 47, 20, .2), inset 0 0 0 5px rgba(105,72,36,.045); }
html[data-theme="day"] .sky-card-close { color: #5a4934; }
html[data-theme="day"] .sky-object-hero,
html[data-theme="day"] .knowledge-hero { border-color: rgba(97, 68, 35, .28); background: radial-gradient(circle at 80% 10%, rgba(154, 97, 38, .12), transparent 50%); }
html[data-theme="day"] .object-kind,
html[data-theme="day"] .object-title p,
html[data-theme="day"] .visibility-badge { color: #71634f; }
html[data-theme="day"] .object-title h3 { color: #392b1d; }
html[data-theme="day"] .sky-fact-grid { border-color: rgba(96,68,35,.25); background: rgba(96,68,35,.19); }
html[data-theme="day"] .sky-fact-grid > div { background: rgba(239, 226, 194, .94); }
html[data-theme="day"] .sky-fact-grid small,
html[data-theme="day"] .object-relation > small,
html[data-theme="day"] .bright-stars > small { color: #756955; }
html[data-theme="day"] .sky-fact-grid strong { color: #433526; }
html[data-theme="day"] .object-relation button,
html[data-theme="day"] .bright-star-row { border-color: rgba(75,103,97,.26); color: #465f56; background: rgba(74,106,96,.07); }
html[data-theme="day"] .object-note { color: #645846; }
html[data-theme="day"] .object-source { color: #834e24; }

html[data-theme="day"] .knowledge-status { border-color: rgba(93,66,34,.26); color: #5b5648; background: rgba(242,230,200,.72); }
html[data-theme="day"] .knowledge-breadcrumb { color: #776346; }
html[data-theme="day"] .knowledge-hero h3 { color: #392b1d; }
html[data-theme="day"] .knowledge-hero h3 small { color: #8e5929; }
html[data-theme="day"] .knowledge-hero p { color: #645845; }
html[data-theme="day"] .knowledge-tabs { border-color: rgba(95,67,34,.24); }
html[data-theme="day"] .knowledge-tabs button { color: #776b58; }
html[data-theme="day"] .knowledge-tabs button.active { color: #873e2b; border-color: #a23d2e; }
html[data-theme="day"] .knowledge-quote { border-color: #a23d2e; color: #493727; background: rgba(255, 251, 232, .4); }
html[data-theme="day"] .knowledge-quote small { color: #786a55; }
html[data-theme="day"] .knowledge-facts { border-color: rgba(95,67,34,.24); background: rgba(95,67,34,.2); }
html[data-theme="day"] .knowledge-facts div { background: rgba(239,225,190,.96); }
html[data-theme="day"] .knowledge-facts small { color: #776a56; }
html[data-theme="day"] .knowledge-facts strong { color: #453627; }
html[data-theme="day"] .knowledge-story > p { color: #8b5427; }
html[data-theme="day"] .knowledge-story article { color: #514433; }
html[data-theme="day"] .knowledge-story > small { color: #796d5b; }
html[data-theme="day"] .culture-panel { border-color: rgba(95,67,34,.23); }
html[data-theme="day"] .culture-panel > header small { color: #975e2c; }
html[data-theme="day"] .culture-panel > header h4 { color: #403124; }
html[data-theme="day"] .culture-panel > header > span { color: #756956; }
html[data-theme="day"] .culture-card { border-color: rgba(102,70,34,.3); background: linear-gradient(135deg, rgba(255,248,224,.62), rgba(213,192,151,.5)); box-shadow: inset 3px 0 rgba(160,60,43,.5); }
html[data-theme="day"] .culture-card-meta span { border-color: rgba(119,75,32,.3); color: #814d21; background: rgba(152,96,38,.06); }
html[data-theme="day"] .culture-card-meta b,
html[data-theme="day"] .culture-card footer { color: #766a56; }
html[data-theme="day"] .culture-card h5 { color: #403123; }
html[data-theme="day"] .culture-card > p { color: #594b39; }
html[data-theme="day"] .culture-card blockquote { border-color: #a23d2e; color: #6f4124; background: rgba(255,250,228,.42); }
html[data-theme="day"] .culture-caution { border-color: rgba(160,60,43,.24); color: #7f5240; background: rgba(160,60,43,.055); }
html[data-theme="day"] .source-reading-details,
html[data-theme="day"] .member-details { border-color: rgba(96,68,35,.28); background: rgba(255,255,255,.14); }
html[data-theme="day"] .source-reading-details > summary,
html[data-theme="day"] .member-details summary { color: #704a27; }
html[data-theme="day"] .source-reading-notice,
html[data-theme="day"] .claim-explainer { color: #70624f; background: rgba(145,93,40,.055); }
html[data-theme="day"] .source-reading-details li,
html[data-theme="day"] .member-table td { border-color: rgba(94,67,35,.17); }
html[data-theme="day"] .source-reading-details li b,
html[data-theme="day"] .member-table td b { color: #473727; }
html[data-theme="day"] .source-reading-details li p,
html[data-theme="day"] .member-table { color: #645744; }
html[data-theme="day"] .source-reading-details li small,
html[data-theme="day"] .member-table td small { color: #776b58; }
html[data-theme="day"] .research-panel { border-color: rgba(160,60,43,.25); background: linear-gradient(135deg, rgba(160,60,43,.07), rgba(146,95,41,.06)); }
html[data-theme="day"] .research-heading span,
html[data-theme="day"] .research-panel summary { color: #76502b; }
html[data-theme="day"] .research-panel > p,
html[data-theme="day"] .research-panel details,
html[data-theme="day"] .research-sources a,
html[data-theme="day"] .research-sources span { color: #675b49; }
html[data-theme="day"] .mapping-list span { border-color: rgba(95,67,34,.22); color: #645846; background: rgba(255,255,255,.12); }
html[data-theme="day"] .mapping-list span.primary { color: #814c22; }

html[data-theme="day"] .network-head p,
html[data-theme="day"] .network-legend { color: #756956; }
html[data-theme="day"] .network-head h3 { color: #433426; }
html[data-theme="day"] .network-canvas { background-color: rgba(227, 210, 174, .66); background-image: radial-gradient(circle, rgba(105,73,36,.16) 0 1px, transparent 1px); }
html[data-theme="day"] .network-line { stroke: rgba(102,71,35,.32); }
html[data-theme="day"] .network-node { border-color: rgba(99,70,36,.3); color: #4a3a2a; background: rgba(240,227,195,.97); }
html[data-theme="day"] .network-node small { color: #786b56; }
html[data-theme="day"] .network-node.center { border-color: rgba(160,60,43,.55); color: #713c24; background: #dfc99b; }

html[data-theme="day"] .trust-badges span { border-color: rgba(95,67,34,.28); color: #685b48; background: rgba(255,255,255,.15); }
html[data-theme="day"] .rag-entity,
html[data-theme="day"] .rag-paths button,
html[data-theme="day"] .chat-head,
html[data-theme="day"] .suggested-prompts { border-color: rgba(95,67,34,.23); }
html[data-theme="day"] .rag-entity > small,
html[data-theme="day"] .rag-paths > p,
html[data-theme="day"] .chat-head p { color: #786b57; }
html[data-theme="day"] .entity-title > span,
html[data-theme="day"] .narrator-avatar,
html[data-theme="day"] .message-avatar { border-color: rgba(135,82,34,.4); color: #8a5425; background: rgba(147,91,34,.055); }
html[data-theme="day"] .entity-title strong,
html[data-theme="day"] .chat-head strong { color: #3f3122; }
html[data-theme="day"] .entity-title p { color: #786b58; }
html[data-theme="day"] .rag-paths button > i { border-color: rgba(99,70,36,.28); color: #8b5527; }
html[data-theme="day"] .rag-paths button strong { color: #514231; }
html[data-theme="day"] .rag-paths button small { color: #766a57; }
html[data-theme="day"] .rag-paths button b { color: #53725f; }
html[data-theme="day"] .rag-note,
html[data-theme="day"] .rag-empty { border-color: rgba(79,111,92,.25); color: #5d6e5e; background: rgba(77,111,91,.055); }
html[data-theme="day"] .rag-mode-notice { color: #536b5a; background: rgba(77,112,91,.07); }
html[data-theme="day"] .message-body { border-color: rgba(98,69,35,.27); color: #46392a; background: rgba(255, 250, 231, .45); }
html[data-theme="day"] .user-message .message-body { border-color: rgba(148,91,39,.34); color: #50331f; background: rgba(159,102,42,.09); }
html[data-theme="day"] .answer-mode-banner { border-color: rgba(75,110,90,.27); color: #55705e; background: rgba(75,110,90,.07); }
html[data-theme="day"] .answer-mode-banner strong { color: #405e4c; }
html[data-theme="day"] .message-sources { border-color: rgba(95,67,34,.2); }
html[data-theme="day"] .message-sources > span,
html[data-theme="day"] .message-provider { color: #756956; }
html[data-theme="day"] .message-sources button { border-color: rgba(124,78,33,.25); color: #784a22; background: rgba(145,91,37,.05); }
html[data-theme="day"] .message-explore-links button { border-color: rgba(73,105,92,.3); color: #4b6c5c; background: rgba(73,105,92,.06); }
html[data-theme="day"] .suggested-prompts span { color: #756956; }
html[data-theme="day"] .suggested-prompts button { border-color: rgba(96,68,35,.25); color: #665946; background: rgba(255,255,255,.11); }
html[data-theme="day"] .chat-composer { border-color: rgba(128,79,32,.4); background: rgba(246, 235, 206, .72); }
html[data-theme="day"] .chat-composer:focus-within { border-color: #95602a; box-shadow: 0 0 0 3px rgba(148,94,40,.07); }
html[data-theme="day"] .chat-composer textarea { color: #3e3122; }
html[data-theme="day"] .chat-composer textarea::placeholder { color: #897c68; }
html[data-theme="day"] .composer-bottom span { color: #7e715d; }
html[data-theme="day"] .composer-bottom button { color: #fff6e5; background: linear-gradient(135deg,#a24a34,#853124); }
html[data-theme="day"] .toast { border-color: rgba(94,65,33,.4); color: #fff7e5; background: rgba(80,55,28,.94); }

@media (max-width: 860px) {
  html[data-theme="day"] .main-nav { border-color: rgba(99,70,36,.3); background: rgba(236,220,183,.98); }
}

@media (max-width: 620px) {
  .theme-toggle { gap: 5px; padding-right: 7px; }
  .theme-toggle-label { font-size: 11px; }
  html[data-theme="day"] .hero-backdrop { background-position: 66% center; }
}
