:root {
  --ink: #13252b;
  --muted: #718188;
  --soft: #9da9a8;
  --paper: #f5f5ef;
  --paper-deep: #eceee7;
  --panel: #fbfbf8;
  --line: #dfe4dd;
  --navy: #15343a;
  --navy-2: #1f4a50;
  --mint: #92d7b8;
  --mint-deep: #38836a;
  --coral: #ef8d72;
  --yellow: #efd072;
  --lavender: #b0a7e7;
  --shadow: 0 12px 42px rgba(29, 57, 58, 0.08);
  --mono: 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 85% 0%, #ffffff 0, var(--paper) 43%, #eef0e9 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { max-width: 1800px; margin: 0 auto; min-height: 100vh; padding: 0 44px 36px; }

.topbar { 
  align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between;
  min-height: 78px; padding: 0 2px;
}
.brand-lockup, .topbar-meta, .heading-tools, .chamber-footer, .timeline-meta, .chart-axis, .activity-heading, .app-footer { display: flex; align-items: center; }
.brand-lockup { gap: 12px; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px; height: 22px; }
.brand-mark span { display: block; border-radius: 5px 5px 1px 1px; background: var(--navy); }
.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 17px; background: var(--coral); }
.brand-mark span:nth-child(3) { height: 13px; background: var(--mint-deep); }
.brand-kicker, .brand-name, .section-index, .eyebrow, .stat-label, .chart-period, .timeline-meta, .mini-label, .zone small, .stage-caption, .stage-scale, .topbar-meta, .app-footer { font-family: var(--mono); }
.brand-kicker { color: var(--muted); font-size: 8px; letter-spacing: .16em; margin: 0 0 1px; }
.brand-name { font-size: 13px; letter-spacing: .15em; margin: 0; }
.brand-name strong { color: var(--coral); font-weight: 700; }
.topbar-meta { color: var(--muted); font-size: 10px; gap: 20px; letter-spacing: .07em; }
.live-chip { align-items: center; background: #e9f5ed; border: 1px solid #cfe8d9; border-radius: 999px; color: var(--mint-deep); display: inline-flex; font-size: 9px; gap: 7px; padding: 7px 11px; }
.live-chip i, .data-badge i, .stream-status i, .live-dot { background: #4fbe83; border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.topbar-time { color: var(--navy); font-weight: 500; }
.experiment-switcher { align-items: center; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); display: inline-flex; gap: 8px; margin-left: auto; padding: 6px 8px 6px 10px; }
.experiment-switcher span { color: var(--coral); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; }
.experiment-switcher select { appearance: none; background: transparent; border: 0; color: var(--navy); cursor: pointer; font-family: var(--mono); font-size: 8px; max-width: 275px; outline: none; padding-right: 8px; }
.presentation-toggle { background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; margin-left: 18px; padding: 7px 10px; }
.presentation-toggle:hover, .presentation-toggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.dashboard { padding-top: 47px; }
.intro-row { align-items: end; display: grid; gap: 46px; grid-template-columns: minmax(400px, 1.3fr) minmax(390px, 1fr) auto; margin-bottom: 42px; }
.section-index, .eyebrow { color: var(--coral); font-size: 9px; letter-spacing: .17em; }
.intro-copy h1 { font-size: clamp(31px, 3.3vw, 53px); letter-spacing: -.055em; line-height: 1.12; margin: 15px 0 13px; }
.intro-copy h1 em { color: var(--coral); font-style: normal; }
.intro-copy p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; max-width: 455px; }
.experiment-source { color: var(--mint-deep); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; margin-top: 13px; }
.overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; padding-bottom: 1px; }
.overview-stat { border-left: 1px solid var(--line); padding-left: 18px; min-width: 110px; }
.stat-label { color: var(--muted); display: block; font-size: 10px; letter-spacing: .08em; margin-bottom: 10px; }
.overview-stat strong { display: block; font-size: 35px; letter-spacing: -.08em; line-height: 1; }
.overview-stat strong sup { font-size: 14px; letter-spacing: 0; }
.overview-stat small { color: var(--soft); display: block; font-size: 9px; margin-top: 8px; white-space: nowrap; }
.accent-coral strong { color: var(--coral); }
.accent-yellow strong { color: #c89d32; }
.intro-actions { align-items: flex-end; display: flex; flex-direction: column; gap: 11px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 6px; display: inline-flex; font-size: 11px; gap: 9px; justify-content: center; min-width: 132px; padding: 11px 15px; transition: all .2s ease; }
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.button-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.button-ghost:hover { background: #fff; color: var(--ink); }
.button-icon { font-family: var(--mono); font-size: 11px; }
.speed-control { align-items: center; color: var(--soft); display: flex; font-family: var(--mono); font-size: 9px; gap: 2px; margin-top: 2px; }
.speed-control > span { margin-right: 6px; }
.speed-button { background: transparent; border: 0; border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 9px; padding: 5px 7px; }
.speed-button.active { background: var(--paper-deep); color: var(--navy); }

.workspace-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.84fr) minmax(300px, .79fr); }
.panel { background: rgba(252, 252, 249, .94); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.chamber-heading { padding: 22px 24px 17px; }
.evidence-strip { align-items: center; background: #f3f6f1; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-family: var(--mono); font-size: 8px; gap: 22px; padding: 8px 24px; }
.evidence-strip span { align-items: center; display: inline-flex; gap: 7px; }
.evidence-dot { border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.evidence-dot.observed { background: var(--mint-deep); box-shadow: 0 0 0 3px rgba(56, 131, 106, .10); }
.evidence-dot.reconstructed { background: var(--coral); box-shadow: 0 0 0 3px rgba(239, 141, 114, .10); }
.panel-heading h2, .activity-heading h2 { font-size: 16px; letter-spacing: -.03em; margin: 7px 0 0; }
.heading-tools { align-items: flex-end; flex-direction: column; gap: 9px; }
.time-readout { color: var(--navy); font-family: var(--mono); font-size: 10px; letter-spacing: .07em; }
.data-badge { align-items: center; background: #edf5ee; border-radius: 999px; color: var(--mint-deep); display: inline-flex; font-family: var(--mono); font-size: 8px; gap: 5px; padding: 6px 8px; }
.chamber-stage { background: #183c41; height: min(41vw, 570px); min-height: 430px; overflow: hidden; position: relative; }
.stage-grid { background-image: linear-gradient(rgba(167, 221, 191, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 221, 191, .065) 1px, transparent 1px); background-size: 54px 54px; inset: 0; opacity: .7; position: absolute; }
.real-world-layer { inset: 18px; pointer-events: none; position: absolute; z-index: 1; }
.world-cell { border: 1px solid rgba(173, 220, 197, .20); border-radius: 3px; position: absolute; transform: translate(-50%, -50%); }
.world-cell.nest { background: rgba(176, 167, 231, .12); border-color: rgba(176, 167, 231, .42); }
.world-cell.resource { background: rgba(239, 208, 114, .12); border-color: rgba(239, 208, 114, .40); }
.chamber-stage.real-mode .stage-grid { opacity: .18; }
.chamber-stage.real-mode .zone, .chamber-stage.real-mode .stage-ramp, .chamber-stage.real-mode .stage-prop, .chamber-stage.real-mode .chamber-trails { display: none; }
.chamber-stage::before { border: 1px solid rgba(173, 220, 197, .22); border-radius: 3px; content: ''; inset: 18px; pointer-events: none; position: absolute; }
.zone { align-items: center; border: 1px solid rgba(168, 220, 196, .20); border-radius: 50%; color: rgba(215, 239, 225, .45); display: flex; flex-direction: column; font-family: var(--mono); font-size: 10px; justify-content: center; letter-spacing: .11em; position: absolute; text-align: center; }
.zone small { color: rgba(159, 212, 184, .3); font-size: 7px; letter-spacing: .1em; margin-top: 5px; }
.zone-dot { border: 1px solid rgba(153, 219, 185, .7); border-radius: 50%; height: 6px; margin-bottom: 8px; width: 6px; }
.zone-nest { height: 175px; left: 4%; top: 7%; width: 255px; }
.zone-food { height: 165px; right: 6%; top: 7%; width: 210px; }
.zone-water { bottom: 5%; height: 140px; right: 4%; width: 185px; }
.zone-social { bottom: 7%; height: 218px; left: 22%; width: 345px; }
.stage-ramp { border: 1px solid rgba(177, 221, 196, .22); border-radius: 4px; height: 17px; opacity: .9; position: absolute; transform: rotate(-20deg); width: 100px; }
.ramp-a { left: 30%; top: 29%; }
.ramp-b { bottom: 25%; right: 29%; transform: rotate(29deg); }
.stage-prop { align-items: center; border: 1px solid rgba(200, 235, 212, .31); border-radius: 50%; color: rgba(207, 237, 218, .68); display: flex; font-family: var(--mono); font-size: 18px; height: 37px; justify-content: center; position: absolute; width: 37px; }
.prop-wheel { left: 13%; top: 42%; }
.prop-wheel span { font-size: 23px; transform: rotate(-18deg); }
.prop-food { right: 18%; top: 26%; font-size: 8px; letter-spacing: 3px; }
.prop-water { bottom: 17%; right: 11%; font-size: 25px; }
.chamber-trails { height: 100%; inset: 0; opacity: .22; position: absolute; width: 100%; }
.chamber-trails path { fill: none; stroke: #95dcb8; stroke-dasharray: 2 15; stroke-linecap: round; stroke-width: 2; }
.mouse-layer { inset: 0; position: absolute; transform-origin: 50% 50%; transition: transform .4s ease; z-index: 2; }
.mouse-node { align-items: center; display: flex; flex-direction: column; height: 50px; position: absolute; transform: translate(-50%, -50%); transition: left 1s ease, top 1s ease; width: 65px; z-index: 2; }
.mouse-node:hover { z-index: 8; }
.mouse-node.selected { z-index: 9; }
.mouse-node.selected .mouse-body { box-shadow: 0 0 0 3px #f5f5ef, 0 0 0 5px var(--coral), 0 0 26px rgba(239, 141, 114, .65); }
.mouse-body { background: var(--mouse-color, #9bd7b4); border: 2px solid rgba(255,255,255,.72); border-radius: 46% 44% 42% 39%; box-shadow: 0 4px 11px rgba(0, 0, 0, .22); height: 23px; position: relative; transition: box-shadow .2s ease; width: 31px; }
.mouse-body::before, .mouse-body::after { background: var(--mouse-color, #9bd7b4); border: 2px solid rgba(255,255,255,.72); border-radius: 50%; content: ''; height: 11px; position: absolute; top: -7px; width: 11px; }
.mouse-body::before { left: 1px; }
.mouse-body::after { right: 1px; }
.mouse-eye { background: #163238; border-radius: 50%; height: 3px; left: 19px; position: absolute; top: 8px; width: 3px; }
.mouse-tail { border-bottom: 2px solid var(--mouse-color, #9bd7b4); border-radius: 0 0 100% 0; height: 12px; position: absolute; right: -14px; top: 8px; transform: rotate(-25deg); width: 18px; }
.mouse-name { color: rgba(237, 250, 240, .92); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; margin-top: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.42); }
.mouse-state { align-items: center; background: var(--state-bg, #d7f2e2); border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: var(--state-color, #225f4c); display: flex; font-size: 11px; height: 21px; justify-content: center; position: absolute; right: 1px; top: -17px; width: 21px; }
.mouse-state.alert { animation: pop-alert .85s infinite alternate; }
@keyframes pop-alert { to { transform: scale(1.17) rotate(7deg); } }
.mouse-node.resting .mouse-body { animation: breathe 2.2s infinite ease-in-out; }
@keyframes breathe { 50% { transform: translateY(-3px) scale(1.04); } }
.stage-scale { bottom: 21px; color: rgba(201, 232, 214, .53); font-size: 8px; left: 25px; position: absolute; }
.stage-scale i { background: rgba(201, 232, 214, .53); display: block; height: 1px; margin-top: 5px; width: 50px; }
.stage-caption { align-items: center; bottom: 22px; color: rgba(201, 232, 214, .53); display: flex; font-size: 8px; gap: 7px; letter-spacing: .04em; position: absolute; right: 25px; }
.chamber-footer { border-top: 1px solid var(--line); justify-content: space-between; padding: 12px 24px; }
.legend { align-items: center; display: flex; flex-wrap: wrap; gap: 17px; }
.legend > span { align-items: center; color: var(--muted); display: inline-flex; font-size: 9px; gap: 6px; }
.world-readout { color: var(--mint-deep); font-family: var(--mono); font-size: 8px; letter-spacing: .05em; margin-left: auto; margin-right: 18px; }
.world-readout.over-capacity { color: #b66b32; }
.legend-dot { align-items: center; border-radius: 50%; display: inline-flex; font-size: 11px; height: 13px; justify-content: center; width: 13px; }
.dot-calm { background: var(--mint); }.dot-love { background: #f6c6bd; color: #cd5d49; }.dot-alert { background: #f4d591; color: #bd7b2d; }.dot-rest { background: #d8d9ef; }
.zoom-control { align-items: center; display: flex; gap: 8px; }
.zoom-control button { background: transparent; border: 0; color: var(--muted); font-size: 19px; line-height: 1; padding: 0 3px; }
.zoom-control span { color: var(--soft); font-family: var(--mono); font-size: 8px; }
.timeline-control { border-top: 1px solid var(--line); padding: 15px 24px 13px; }
.timeline-meta { color: var(--muted); font-size: 8px; justify-content: space-between; letter-spacing: .1em; }
.timeline-meta strong { color: var(--navy); font-size: 10px; font-weight: 500; margin-left: auto; margin-right: 13px; }
.timeline-range-label { color: var(--soft); }
.timeline-control input { appearance: none; background: linear-gradient(to right, var(--coral) 0%, var(--coral) 78%, #dfe7df 78%, #dfe7df 100%); border-radius: 5px; display: block; height: 4px; margin: 13px 0 8px; outline: none; width: 100%; }
.timeline-control input::-webkit-slider-thumb { appearance: none; background: var(--paper); border: 2px solid var(--coral); border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.15); height: 13px; width: 13px; }
.timeline-ticks { color: var(--soft); display: flex; font-family: var(--mono); font-size: 8px; justify-content: space-between; }

.individual-panel { min-height: 0; }
.individual-heading { border-bottom: 1px solid var(--line); padding: 22px 22px 17px; }
.icon-button { background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 18px; height: 27px; line-height: 1; width: 27px; }
.icon-button:hover { background: var(--paper-deep); color: var(--ink); }
.individual-profile { padding: 21px 22px 0; }
.profile-top { align-items: center; display: flex; gap: 14px; }
.profile-avatar { align-items: center; background: var(--coral); border-radius: 50%; display: flex; flex: 0 0 53px; height: 53px; justify-content: center; position: relative; }
.profile-avatar::before, .profile-avatar::after { background: #f3b6a6; border-radius: 50%; content: ''; height: 21px; position: absolute; top: 2px; width: 21px; }
.profile-avatar::before { left: 7px; }.profile-avatar::after { right: 7px; }
.profile-avatar span { background: #18373b; border-radius: 50%; height: 8px; position: relative; width: 8px; z-index: 1; }
.profile-title { min-width: 0; }
.profile-title h3 { font-size: 21px; letter-spacing: -.06em; margin: 0 0 5px; }
.profile-title p { color: var(--muted); font-family: var(--mono); font-size: 9px; margin: 0; }
.profile-state { background: #e8f5ec; border-radius: 4px; color: var(--mint-deep); font-family: var(--mono); font-size: 8px; margin-left: auto; padding: 6px 7px; white-space: nowrap; }
.profile-tagline { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 17px 0 20px; }
.metric-list { border-top: 1px solid var(--line); padding-top: 16px; }
.metric-row { margin-bottom: 13px; }
.metric-label { color: var(--muted); display: flex; font-family: var(--mono); font-size: 8px; justify-content: space-between; margin-bottom: 6px; }
.metric-label strong { color: var(--navy); font-weight: 500; }
.metric-track { background: #e9ede7; border-radius: 2px; height: 4px; overflow: hidden; }
.metric-fill { background: var(--metric-color, var(--coral)); border-radius: 2px; height: 100%; transition: width .5s ease; }
.profile-note { background: #f5f7f1; border-left: 2px solid var(--mint-deep); color: var(--soft); font-size: 9px; line-height: 1.55; margin: 2px 0 14px; padding: 8px 9px; }
.profile-facts { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 14px; padding: 13px 0; }
.profile-facts div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-facts span { color: var(--soft); font-family: var(--mono); font-size: 8px; }
.profile-facts strong { color: var(--navy); font-family: var(--mono); font-size: 10px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attack-facts { border-top: 1px dashed var(--line); padding-top: 10px; }
.subsection { border-top: 1px solid var(--line); margin: 20px -22px 0; padding: 18px 22px 20px; }
.subsection-heading { align-items: center; display: flex; justify-content: space-between; }
.subsection-heading h4 { font-size: 10px; letter-spacing: .08em; margin: 0; text-transform: uppercase; }
.subsection-heading span { color: var(--soft); font-family: var(--mono); font-size: 8px; }
.mini-map { background: #eef4ed; border-radius: 5px; height: 105px; margin-top: 13px; overflow: hidden; position: relative; }
.mini-map::before { background-image: linear-gradient(rgba(75, 135, 111, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 135, 111, .09) 1px, transparent 1px); background-size: 22px 22px; content: ''; inset: 0; position: absolute; }
.mini-map svg { height: 100%; position: absolute; width: 100%; }
.mini-map path { fill: none; stroke: var(--coral); stroke-dasharray: 2 4; stroke-linecap: round; stroke-width: 1.6; }
.mini-map circle { fill: var(--coral); stroke: #fff; stroke-width: 2; }
.interaction-list { margin-top: 12px; }
.interaction-item { align-items: flex-start; display: flex; gap: 10px; padding: 7px 0; }
.interaction-dot { background: var(--event-color, var(--mint-deep)); border-radius: 50%; flex: 0 0 7px; height: 7px; margin-top: 4px; }
.interaction-copy { min-width: 0; }
.interaction-copy p { color: var(--ink); font-size: 10px; line-height: 1.35; margin: 0; }
.interaction-copy small { color: var(--soft); display: block; font-family: var(--mono); font-size: 8px; margin-top: 3px; }

.jspace-panel { margin-top: 18px; }
.jspace-heading { align-items: center; border-bottom: 1px solid var(--line); padding: 20px 24px 17px; }
.panel-description { color: var(--muted); font-size: 10px; margin: 8px 0 0; }
.jspace-tools { align-items: center; display: flex; gap: 7px; }
.jspace-live { align-items: center; color: var(--mint-deep); display: inline-flex; font-family: var(--mono); font-size: 8px; gap: 5px; letter-spacing: .07em; margin-right: 8px; }
.jspace-live i { background: #4fbe83; border-radius: 50%; box-shadow: 0 0 0 3px #e4f4e9; height: 6px; width: 6px; }
.jspace-mode { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; padding: 7px 10px; }
.jspace-mode.active, .jspace-mode:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.jspace-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .75fr); }
.jspace-plot-wrap { background: #f5f8f2; border-right: 1px solid var(--line); height: 342px; min-width: 0; overflow: hidden; position: relative; }
.jspace-plot-wrap::before { background-image: linear-gradient(rgba(80, 124, 108, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 124, 108, .10) 1px, transparent 1px); background-size: 11.11% 25%; content: ''; inset: 26px 30px 30px 43px; position: absolute; }
.jspace-plot { height: 100%; inset: 0; overflow: visible; position: absolute; width: 100%; }
.jspace-plot .zero-line { stroke: #c8d7cc; stroke-dasharray: 3 5; stroke-width: 1; }.jspace-plot .vector-line { stroke: rgba(54, 109, 86, .24); stroke-width: 1; }.jspace-plot .j-point { cursor: pointer; stroke: #fff; stroke-width: 2; transition: r .2s ease, opacity .2s ease; }.jspace-plot .j-point:hover { r: 9; }.jspace-plot .j-point.selected { stroke: var(--coral); stroke-width: 3; }.jspace-plot .j-label { fill: #476c60; font-family: var(--mono); font-size: 8px; pointer-events: none; }
.jspace-axis-label { color: #8ca198; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; position: absolute; }.axis-y-top { left: 13px; top: 29px; writing-mode: vertical-rl; }.axis-y-bottom { bottom: 32px; left: 13px; writing-mode: vertical-rl; }.axis-x-left { bottom: 12px; left: 42px; }.axis-x-right { bottom: 12px; right: 27px; }.jspace-origin { border-bottom: 1px solid #b7c8bb; border-left: 1px solid #b7c8bb; height: 7px; left: 50%; position: absolute; top: 50%; width: 7px; }.jspace-origin span { color: #90a497; font-family: var(--mono); font-size: 7px; left: -13px; position: absolute; top: -11px; }.jspace-selection { background: var(--navy); border-radius: 4px; color: white; font-family: var(--mono); font-size: 8px; left: 22px; padding: 7px 9px; position: absolute; top: 18px; }
.jspace-inspector { padding: 22px 22px 18px; }.inspector-heading { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 18px; }.inspector-heading span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }.inspector-heading small { color: var(--soft); font-family: var(--mono); font-size: 8px; }.concept-list { display: grid; gap: 13px; }.concept-row { align-items: center; display: grid; gap: 10px; grid-template-columns: 86px 1fr 30px; }.concept-row span { color: var(--muted); font-size: 9px; }.concept-track { background: #edf0eb; border-radius: 2px; height: 5px; overflow: hidden; }.concept-fill { background: var(--concept-color, var(--mint-deep)); border-radius: 2px; height: 100%; transition: width .5s ease; }.concept-value { color: var(--navy); font-family: var(--mono); font-size: 8px; font-weight: 500; text-align: right; }.jspace-footnote { align-items: flex-start; border-top: 1px solid var(--line); color: var(--soft); display: flex; font-size: 9px; gap: 8px; line-height: 1.55; margin-top: 21px; padding-top: 14px; }.info-icon { align-items: center; background: var(--paper-deep); border-radius: 50%; color: var(--muted); display: inline-flex; flex: 0 0 15px; font-family: var(--mono); font-size: 9px; height: 15px; justify-content: center; }
.jspace-empty { background: #f2f4ef; border: 1px dashed var(--line); border-radius: 5px; color: var(--muted); font-size: 10px; line-height: 1.65; padding: 14px; }

.analytics-grid { display: grid; gap: 18px; grid-template-columns: 1.28fr 1fr .86fr; margin-top: 18px; }
.chart-panel { min-height: 292px; padding: 19px 20px 16px; }
.compact-heading { align-items: center; }
.compact-heading h2 { font-size: 14px; margin-top: 6px; }
.chart-period { color: var(--soft); font-size: 8px; }
.chart-summary { align-items: baseline; display: flex; gap: 8px; margin-top: 17px; }
.chart-summary strong { font-size: 27px; letter-spacing: -.08em; }.chart-summary span { color: var(--muted); font-size: 10px; }.chart-summary .trend-up { color: var(--mint-deep); font-family: var(--mono); font-size: 9px; margin-left: auto; }
.chart-wrap { height: 142px; margin-top: 6px; }
.data-chart { height: 100%; overflow: visible; width: 100%; }
.data-chart .grid-line { stroke: #e7ebe5; stroke-width: 1; }.data-chart .chart-fill { opacity: .55; }.data-chart .chart-line { fill: none; stroke: var(--navy); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }.data-chart .chart-point { fill: var(--coral); stroke: #fff; stroke-width: 2; }
.data-chart .chart-cursor { stroke: var(--coral); stroke-dasharray: 3 4; stroke-width: 1.5; }
.data-chart .chart-cursor-label { fill: var(--coral); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.chart-axis { color: var(--soft); font-family: var(--mono); font-size: 8px; justify-content: space-between; margin-top: 7px; }
.dual-summary { display: flex; gap: 26px; margin-top: 17px; }.dual-summary > div { align-items: baseline; display: flex; gap: 8px; }.dual-summary strong { font-size: 27px; letter-spacing: -.08em; }.mini-label { align-items: center; color: var(--muted); display: inline-flex; font-size: 8px; gap: 5px; }.bar-dot { border-radius: 2px; display: inline-block; height: 7px; width: 7px; }.birth-dot { background: var(--coral); }.death-dot { background: var(--lavender); }
.bar-chart { align-items: end; display: flex; gap: 7px; height: 146px; margin-top: 10px; padding: 0 3px 0; }.bar-group { align-items: end; display: flex; flex: 1; gap: 2px; height: 100%; }.bar { border-radius: 3px 3px 1px 1px; flex: 1; min-height: 3px; transition: height .4s ease; }.bar.birth { background: var(--coral); }.bar.death { background: var(--lavender); }
.behavior-donut-wrap { align-items: center; display: flex; gap: 24px; justify-content: center; margin-top: 28px; }
.behavior-donut { align-items: center; background: conic-gradient(var(--coral) 0 36%, var(--mint) 36% 68%, var(--lavender) 68% 85%, var(--yellow) 85% 100%); border-radius: 50%; display: flex; height: 142px; justify-content: center; position: relative; width: 142px; }
.behavior-donut::after { background: var(--panel); border-radius: 50%; content: ''; height: 93px; position: absolute; width: 93px; }.behavior-donut > div { align-items: center; display: flex; flex-direction: column; position: relative; z-index: 1; }.behavior-donut strong { font-size: 25px; letter-spacing: -.07em; }.behavior-donut span { color: var(--soft); font-family: var(--mono); font-size: 8px; margin-top: 2px; }
.behavior-legend { display: grid; gap: 11px; }.behavior-legend-item { align-items: center; color: var(--muted); display: flex; font-size: 9px; gap: 7px; white-space: nowrap; }.behavior-legend-item i { border-radius: 2px; height: 8px; width: 8px; }.behavior-legend-item strong { color: var(--ink); font-family: var(--mono); font-size: 9px; font-weight: 500; margin-left: auto; }

.activity-panel { margin-top: 18px; padding: 18px 23px 21px; }.activity-heading { justify-content: space-between; }.activity-heading h2 { font-size: 14px; }.stream-status { align-items: center; color: var(--mint-deep); display: inline-flex; font-family: var(--mono); font-size: 8px; gap: 6px; }.activity-list { display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }.activity-item { border-left: 1px solid var(--line); min-height: 64px; padding: 0 18px; }.activity-item:first-child { border-left: 0; padding-left: 0; }.activity-time { color: var(--soft); font-family: var(--mono); font-size: 8px; }.activity-title { color: var(--ink); font-size: 10px; line-height: 1.45; margin-top: 8px; }.activity-title strong { font-weight: 700; }.activity-meta { color: var(--muted); font-size: 9px; margin-top: 5px; }.activity-icon { border-radius: 50%; display: inline-flex; font-size: 10px; height: 17px; justify-content: center; margin-right: 4px; width: 17px; }.activity-icon.love { background: #fae0dc; color: #c45f4d; }.activity-icon.alert { background: #faedc9; color: #ad7a28; }.activity-icon.birth { background: #dff1e5; color: #348461; }.activity-icon.rest { background: #e6e5f7; color: #6c61af; }
.app-footer { color: var(--soft); font-size: 8px; justify-content: space-between; letter-spacing: .06em; padding-top: 24px; }

@media (max-width: 1200px) { .app-shell { padding: 0 25px 30px; }.intro-row { gap: 25px; grid-template-columns: 1.2fr 1fr; }.intro-actions { align-items: flex-start; grid-column: 2; grid-row: 1; justify-self: end; }.overview-stats { grid-column: 1 / -1; max-width: 530px; }.workspace-grid { grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr); }.analytics-grid { grid-template-columns: 1fr 1fr; }.behavior-chart-panel { grid-column: 1 / -1; min-height: auto; }.behavior-donut-wrap { justify-content: flex-start; } }
@media (max-width: 820px) { .app-shell { padding: 0 16px 24px; }.topbar { align-items: flex-start; flex-direction: column; gap: 13px; padding: 17px 0; }.topbar-meta { flex-wrap: wrap; gap: 10px 16px; }.dashboard { padding-top: 30px; }.intro-row { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 29px; }.overview-stats { width: 100%; }.intro-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-self: unset; }.workspace-grid { display: flex; flex-direction: column; }.chamber-stage { height: 67vw; min-height: 390px; }.individual-panel { min-height: 0; }.analytics-grid { display: flex; flex-direction: column; }.behavior-chart-panel { min-height: 292px; }.activity-list { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }.activity-item:nth-child(3) { border-left: 0; padding-left: 0; }.app-footer { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media (max-width: 520px) { .intro-copy h1 { font-size: 34px; }.overview-stats { gap: 8px; }.overview-stat { padding-left: 10px; }.overview-stat strong { font-size: 28px; }.overview-stat small { font-size: 8px; white-space: normal; }.chamber-heading, .individual-heading { padding-left: 16px; padding-right: 16px; }.chamber-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 12px 16px; }.timeline-control { padding-left: 16px; padding-right: 16px; }.zone-nest { width: 48%; }.zone-food { width: 42%; }.zone-social { left: 15%; width: 50%; }.legend { gap: 9px 13px; }.legend > span { font-size: 8px; }.behavior-donut-wrap { gap: 16px; }.behavior-donut { height: 120px; width: 120px; }.behavior-donut::after { height: 78px; width: 78px; }.activity-panel { padding-left: 16px; padding-right: 16px; }.activity-list { grid-template-columns: 1fr; }.activity-item, .activity-item:nth-child(3) { border-left: 0; padding-left: 0; } }

@media (max-width: 820px) { .jspace-heading { align-items: flex-start; flex-direction: column; gap: 14px; }.jspace-tools { flex-wrap: wrap; }.jspace-body { display: flex; flex-direction: column; }.jspace-plot-wrap { border-bottom: 1px solid var(--line); border-right: 0; height: 300px; } }
@media (max-width: 520px) { .jspace-plot-wrap { height: 270px; }.jspace-axis-label { font-size: 7px; }.jspace-selection { left: 15px; } }

.demo-caption { align-items: flex-start; background: rgba(13, 36, 45, .94); border: 1px solid rgba(146, 215, 184, .34); border-radius: 8px; bottom: 34px; color: #fff; display: flex; flex-direction: column; gap: 5px; left: 50%; max-width: 760px; opacity: 0; padding: 14px 20px; pointer-events: none; position: fixed; transform: translate(-50%, 18px); transition: opacity .35s ease, transform .35s ease; width: max-content; z-index: 50; }
.demo-caption.visible { opacity: 1; transform: translate(-50%, 0); }
.demo-caption strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.demo-caption span { color: #b9d5c8; font-size: 12px; }

body.presentation-mode .app-shell { max-width: 1920px; padding: 0 28px 32px; }
body.presentation-mode .topbar { min-height: 58px; }
body.presentation-mode .brand-kicker, body.presentation-mode .session-code, body.presentation-mode .topbar-time { display: none; }
body.presentation-mode .dashboard { padding-top: 18px; }
body.presentation-mode .intro-row { align-items: center; gap: 28px; grid-template-columns: minmax(280px, .8fr) minmax(520px, 1.5fr) auto; margin-bottom: 18px; }
body.presentation-mode .section-index, body.presentation-mode .intro-copy p { display: none; }
body.presentation-mode .intro-copy h1 { font-size: 28px; margin: 0 0 6px; }
body.presentation-mode .experiment-source { margin-top: 0; }
body.presentation-mode .overview-stat strong { font-size: 29px; }
body.presentation-mode .overview-stat small { margin-top: 5px; }
body.presentation-mode .intro-actions { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
body.presentation-mode #resetSimulation, body.presentation-mode #speedHint { display: none; }
body.presentation-mode .workspace-grid { grid-template-columns: minmax(0, 2.15fr) minmax(350px, .72fr); }
body.presentation-mode .chamber-stage { height: min(36vw, 610px); min-height: 520px; }
body.presentation-mode .chamber-heading, body.presentation-mode .individual-heading { padding-bottom: 13px; padding-top: 15px; }
body.presentation-mode .individual-profile { padding-top: 15px; }
body.presentation-mode .profile-tagline { margin: 11px 0 13px; }
body.presentation-mode .metric-list { display: grid; gap: 0 12px; grid-template-columns: repeat(2, 1fr); }
body.presentation-mode .metric-row { margin-bottom: 9px; }
body.presentation-mode .profile-note { display: none; }
body.presentation-mode .profile-facts { padding: 10px 0; }
body.presentation-mode .interaction-item:nth-child(n+3) { display: none; }
body.presentation-mode .subsection { margin-top: 12px; padding-bottom: 12px; padding-top: 12px; }
body.presentation-mode .mini-map { height: 82px; margin-top: 8px; }
body.presentation-mode .jspace-panel { margin-top: 24px; }
body.presentation-mode .analytics-grid { margin-top: 24px; }
body.presentation-mode .presentation-toggle { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 数字生命仿真层：数据坐标仍来自真实空间快照，下面只改变呈现方式。 */
.chamber-stage {
  background:
    radial-gradient(circle at 52% 35%, rgba(75, 175, 154, .16), transparent 34%),
    linear-gradient(160deg, #0d242d 0%, #102f38 48%, #07171e 100%);
  perspective: 1050px;
  perspective-origin: 50% 46%;
}
.sim-canvas { background: transparent; height: 100%; inset: 0; pointer-events: auto; position: absolute; width: 100%; z-index: 2; }
.sim-canvas[data-camera-view="fpv"] { cursor: crosshair; }
.fpv-overlay { display: none; inset: 0; pointer-events: none; position: absolute; z-index: 6; }
.fpv-overlay.visible { display: block; }
.fpv-overlay::before { background: radial-gradient(ellipse at center, transparent 45%, rgba(2, 12, 16, .38) 100%); content: ''; inset: 0; position: absolute; }
.fpv-crosshair { height: 38px; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 38px; }
.fpv-crosshair i { background: rgba(157, 255, 215, .78); height: 1px; position: absolute; width: 9px; }
.fpv-crosshair i:nth-child(1) { left: 0; top: 18px; }.fpv-crosshair i:nth-child(2) { right: 0; top: 18px; }.fpv-crosshair i:nth-child(3) { height: 9px; left: 18px; top: 0; width: 1px; }.fpv-crosshair i:nth-child(4) { bottom: 0; height: 9px; left: 18px; width: 1px; }
.fpv-crosshair b { background: #a4ffdc; border-radius: 50%; height: 3px; left: 18px; position: absolute; top: 18px; width: 3px; }
.fpv-hud { bottom: 28px; color: rgba(191, 255, 226, .74); display: flex; flex-direction: column; font-family: var(--mono); gap: 5px; left: 28px; position: absolute; text-shadow: 0 1px 4px #00151b; }
.fpv-hud span { font-size: 7px; letter-spacing: .16em; }.fpv-hud strong { color: #fff; font-size: 12px; letter-spacing: .1em; }.fpv-hud small { color: #ffc982; font-size: 8px; letter-spacing: .08em; }
.behavior-lens { border: 1px solid #819e91; border-radius: 7px; bottom: 44px; right: 14px; width: min(218px, 29%); overflow: hidden; position: absolute; z-index: 8; pointer-events: none; color: #e5f2e9; }
.behavior-lens[hidden] { display: none; }
.lens-heading { align-items: center; display: flex; gap: 10px; background: #193038; padding: 7px 9px; font-size: 10px; }
.lens-heading strong { font-family: var(--mono); margin-right: auto; }
.lens-heading button { pointer-events: auto; background: none; border: 0; color: #c5d7ce; font-size: 10px; padding: 2px; }
.lens-viewport { background: #11272d; height: 140px; overflow: hidden; }
.lens-viewport canvas { display: block; height: 100%; width: 100%; }
.behavior-lens > span, .behavior-lens > small { display: block; background: #193038; padding: 4px 9px; font-size: 11px; }
.behavior-lens > small { color: #afc3b9; font-size: 9px; padding-bottom: 8px; }
.behavior-lens.collapsed .lens-viewport, .behavior-lens.collapsed > span, .behavior-lens.collapsed > small { display: none; }
@media (max-width: 820px) { .behavior-lens { width: 160px; right: 8px; }.lens-viewport { height: 110px; } }
.chamber-stage.three-mode .stage-camera { display: none; }
.chamber-stage.three-mode .stage-scale { z-index: 7; }
.chamber-stage.three-mode .stage-caption { z-index: 7; }
.chamber-stage.three-mode .stage-camera-toolbar { z-index: 8; }
.chamber-stage.three-mode::before { border-color: rgba(154, 237, 207, .34); z-index: 5; }
.chamber-stage::after {
  background: linear-gradient(112deg, transparent 27%, rgba(143, 240, 205, .07) 48%, transparent 65%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 6;
}
.stage-camera {
  --camera-angle: 53deg;
  --camera-roll: -1deg;
  --world-zoom: 1;
  inset: 0;
  position: absolute;
  transform: rotateX(var(--camera-angle)) rotateZ(var(--camera-roll)) scale(calc(1.08 * var(--world-zoom)));
  transform-origin: 50% 52%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.stage-camera[data-camera-view="top"] { --camera-angle: 0deg; --camera-roll: 0deg; transform: rotateX(var(--camera-angle)) rotateZ(var(--camera-roll)) scale(var(--world-zoom)); }
.stage-camera[data-camera-view="orbit"] { --camera-angle: 56deg; --camera-roll: -8deg; transform: rotateX(var(--camera-angle)) rotateZ(var(--camera-roll)) scale(calc(1.12 * var(--world-zoom))); }
.stage-floor { border: 1px solid rgba(153, 231, 198, .25); inset: 18px; overflow: hidden; position: absolute; transform-style: preserve-3d; }
.stage-floor::before {
  background: repeating-linear-gradient(90deg, transparent 0 12.45%, rgba(130, 213, 183, .09) 12.5% 12.62%), repeating-linear-gradient(0deg, transparent 0 12.45%, rgba(130, 213, 183, .09) 12.5% 12.62%);
  content: '';
  inset: 0;
  position: absolute;
}
.stage-floor-glow { background: radial-gradient(ellipse at 50% 48%, rgba(109, 231, 183, .18), transparent 62%); inset: 0; position: absolute; }
.stage-camera .stage-grid { background-image: none; inset: 0; opacity: .22; }
.stage-camera .real-world-layer { inset: 18px; transform-style: preserve-3d; }
.stage-camera .mouse-layer { inset: 18px; transform-style: preserve-3d; }
.stage-camera .world-cell { border-radius: 5px; box-shadow: inset 0 0 17px rgba(113, 233, 193, .08), 0 9px 12px rgba(0, 0, 0, .2); overflow: visible; transform: translate(-50%, -50%) translateZ(2px); }
.stage-camera .world-cell::before {
  background: linear-gradient(140deg, rgba(255,255,255,.2), transparent 46%);
  border-radius: inherit;
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.stage-camera .world-cell.nest { background: linear-gradient(145deg, rgba(188, 168, 244, .32), rgba(87, 69, 151, .22)); border-color: rgba(193, 178, 255, .62); box-shadow: inset 0 -7px 0 rgba(49, 32, 99, .2), 0 9px 12px rgba(0, 0, 0, .25); }
.stage-camera .world-cell.resource { background: linear-gradient(145deg, rgba(255, 219, 123, .35), rgba(148, 105, 27, .23)); border-color: rgba(255, 220, 123, .68); box-shadow: inset 0 -7px 0 rgba(92, 62, 10, .2), 0 9px 12px rgba(0, 0, 0, .25); }
.cell-label { color: rgba(255, 255, 255, .52); font-family: var(--mono); font-size: 6px; left: 7px; letter-spacing: .12em; position: absolute; top: 5px; }
.world-cell.resource .cell-label { color: rgba(255, 239, 183, .7); }
.world-cell.nest .cell-label { color: rgba(233, 224, 255, .7); }
.stage-camera .mouse-layer { transform-origin: 50% 50%; }
.mouse-node { background: transparent; border: 0; color: inherit; height: 58px; padding: 0; transform: translate(-50%, -50%) translateZ(var(--mouse-depth, 0px)) rotateZ(calc(var(--camera-roll) * -1)) rotateX(calc(var(--camera-angle) * -1)); transform-style: preserve-3d; width: 70px; }
.mouse-body { background: linear-gradient(140deg, rgba(255,255,255,.48), transparent 35%), var(--mouse-color, #9bd7b4); border: 1px solid rgba(255,255,255,.8); border-radius: 48% 45% 42% 38%; box-shadow: inset -6px -5px 0 rgba(24, 67, 64, .18), 0 9px 10px rgba(0, 0, 0, .28); height: 25px; transform: translateZ(15px) rotateX(-10deg) rotateY(-7deg); transform-style: preserve-3d; width: 34px; }
.mouse-body::before, .mouse-body::after { box-shadow: inset 2px 2px 0 rgba(255,255,255,.28); transform: translateZ(3px); }
.mouse-tail { border-bottom-color: rgba(237, 255, 245, .72); filter: drop-shadow(1px 2px 1px rgba(0,0,0,.22)); transform: translateZ(8px) rotate(-25deg); }
.mouse-shadow { background: rgba(0, 0, 0, .3); border-radius: 50%; bottom: 12px; filter: blur(4px); height: 10px; position: absolute; transform: translateZ(1px) scaleX(1.2); width: 40px; }
.mouse-name { transform: translateZ(19px); }
.mouse-state { box-shadow: 0 3px 8px rgba(0,0,0,.24); transform: translateZ(24px); z-index: 3; }
.mouse-effect { font-family: var(--sans); font-weight: 800; pointer-events: none; position: absolute; transform-style: preserve-3d; z-index: 4; }
.mouse-effect-love { color: #ff9c9d; font-size: 22px; opacity: 0; right: 0; text-shadow: 0 2px 8px rgba(255, 112, 126, .75); top: -37px; transform: translateZ(30px); }
.mouse-node[data-state="mating"] .mouse-effect-love { animation: love-float 1.7s infinite ease-out; }
@keyframes love-float { 0% { opacity: 0; transform: translate3d(0, 9px, 30px) scale(.7); } 25%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate3d(9px, -17px, 34px) scale(1.1); } }
.mouse-effect-attack { display: flex; gap: 9px; opacity: 0; right: -20px; top: -30px; transform: translateZ(34px); }
.mouse-effect-attack i { color: #ffd16b; font-size: 16px; font-style: normal; text-shadow: 0 2px 7px rgba(255, 188, 72, .7); }
.mouse-effect-attack i:nth-child(2) { color: #ff956d; transform: translateY(14px); }
.mouse-effect-attack i:nth-child(3) { color: #ffe59c; transform: translateY(-10px); }
.mouse-node[data-state="attack"] .mouse-effect-attack { animation: attack-spark .75s infinite steps(2, end); opacity: 1; }
@keyframes attack-spark { 50% { filter: brightness(1.35); transform: translate3d(2px, -2px, 34px) scale(1.15); } }
.mouse-trail { border-top: 1px dashed rgba(132, 227, 191, .55); bottom: 13px; left: 3px; opacity: 0; position: absolute; transform: translateZ(3px) rotate(-8deg); width: 44px; }
.mouse-node[data-state="exploring"] .mouse-trail { animation: trail-pulse 1.4s infinite ease-out; }
@keyframes trail-pulse { 0%, 100% { opacity: 0; width: 21px; } 45% { opacity: .7; width: 46px; } }
.stage-camera-toolbar { align-items: center; background: rgba(5, 22, 28, .66); border: 1px solid rgba(168, 235, 211, .2); border-radius: 5px; display: flex; gap: 4px; left: 30px; padding: 4px; position: absolute; top: 22px; z-index: 8; }
.camera-label { color: rgba(182, 235, 213, .55); font-family: var(--mono); font-size: 7px; letter-spacing: .12em; margin: 0 4px 0 5px; }
.camera-button { background: transparent; border: 1px solid transparent; border-radius: 3px; color: rgba(222, 247, 235, .66); font-family: var(--mono); font-size: 8px; padding: 5px 7px; }
.camera-button:hover, .camera-button.active { background: rgba(128, 229, 189, .18); border-color: rgba(159, 236, 207, .36); color: #fff; }
.camera-button.camera-reset { color: rgba(255, 206, 145, .82); }
.speed-control small { color: var(--soft); font-size: 8px; margin-left: 5px; white-space: nowrap; }
.chamber-stage.real-mode .stage-camera .zone, .chamber-stage.real-mode .stage-camera .stage-ramp, .chamber-stage.real-mode .stage-camera .stage-prop, .chamber-stage.real-mode .stage-camera .chamber-trails { display: none; }

@media (max-width: 620px) {
  .stage-camera-toolbar { left: 20px; right: 20px; }
  .camera-label { display: none; }
  .camera-button { flex: 1; }
}
