:root {
  color-scheme: dark;
  --bg: #101310;
  --panel: #191e19;
  --panel-soft: #1e241e;
  --line: rgba(195, 216, 188, .10);
  --muted: #a0ad9d;
  --text: #edf1e9;
  --green: #c4dbb2;
  --cyan: #a9cfc2;
  --orange: #d8bda4;
  --red: #d8aaa0;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 45% -18%, #263023 0, transparent 58%), var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, select { transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .25s var(--ease); }
button:active { transform: scale(.97); }
button:focus-visible, a:focus-visible, select:focus-visible, canvas:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
[hidden] { display: none !important; }
.site-header { max-width: 1480px; margin: auto; height: 106px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 600; font-size: 27px; letter-spacing: -1.25px; display: flex; align-items: center; gap: 10px; }
.brand-period { color: var(--green); margin-left: -9px; }
.brand-glyph { display: grid; place-items: center; width: 38px; height: 38px; margin-right: 2px; border-radius: 15px; background: linear-gradient(145deg, #d4e6c5, #9fbc8f); color: #263321; font-size: 26px; font-weight: 650; line-height: 1; letter-spacing: -3px; padding-right: 3px; box-shadow: 0 5px 20px #0002; }
.tabs { display: flex; gap: 4px; background: #1b211bd9; border: 1px solid var(--line); border-radius: 100px; padding: 5px; }
.tab { border: 0; border-radius: 100px; padding: 10px 23px; background: transparent; color: var(--muted); font-size: 14px; }
.tab:hover { color: var(--text); background: #ffffff05; }
.tab.active { background: #34422f; color: #e7efdf; box-shadow: 0 2px 5px #0001, inset 0 1px 0 #ffffff08; }
.tab span { font-size: 11px; opacity: .7; margin-left: 5px; }
.text-button { border: 0; padding: 7px 0; background: none; color: var(--muted); font-size: 14px; }
.text-button:hover { color: var(--text); }
.text-button span { padding-left: 8px; }
main { max-width: 1480px; margin: auto; padding: 37px 48px 30px; }
.experiment-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 28px; }
.eyebrow { color: var(--muted); font: 11px/1.6 var(--font); font-weight: 500; letter-spacing: 1.35px; }
h1 { margin: 7px 0 0; font-size: 39px; font-weight: 450; letter-spacing: -1.35px; line-height: 1.2; }
h1 span { color: var(--green); }
.session-controls { display: flex; gap: 18px; align-items: center; }
.connection { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.connection::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px #c4dbb209; }
.connection.connecting { color: #a7b59e; }
.connection.offline { color: var(--red); }
.outline-button { border: 1px solid #58654d66; color: var(--text); background: #242c22; padding: 10px 17px; border-radius: 100px; font-size: 13px; white-space: nowrap; }
.outline-button:hover { background: #303d2a; border-color: #9ab18788; }
.open-source-feature { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 22px 28px; border: 1px solid #c4dbb22e; border-radius: 25px; background: linear-gradient(115deg, #c4dbb214, #c4dbb205); }
.open-source-copy { min-width: 0; }
.open-source-copy h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 450; letter-spacing: -.6px; }
.open-source-copy h2 span { color: var(--green); }
.open-source-copy p { margin: 6px 0 0; color: #aebda4; font-size: 13px; line-height: 1.6; }
.github-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; padding: 12px 19px; border-radius: 100px; background: var(--green); color: #23301d; font-size: 13px; font-weight: 550; white-space: nowrap; box-shadow: 0 4px 18px #0000000d; }
.github-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.github-link > span { margin-left: 4px; font-size: 16px; line-height: 1; }
.github-link:hover { background: #d8e8cc; box-shadow: 0 5px 22px #c4dbb20c; transform: translateY(-1px); }
.notice { padding: 13px 20px; margin-bottom: 20px; border: 1px solid #afc69f12; background: #a7bf9809; border-radius: 18px; font-size: 13px; line-height: 1.7; color: #aebbA7; }
.observatory { display: grid; grid-template-columns: minmax(0, 1fr) 306px; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--panel); box-shadow: 0 20px 70px #00000016; }
.specimen-panel { min-width: 0; background: radial-gradient(ellipse at 42% 49%, #2b352440 0, #1b211980 46%, transparent 80%); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; padding: 30px 30px 0; gap: 16px; }
.panel-heading h2 { font-size: 20px; font-weight: 450; letter-spacing: -.4px; margin: 6px 0 0; line-height: 1.45; }
.tag { font: 10px/1.5 var(--font); font-weight: 500; letter-spacing: .7px; background: #adbf9608; border: 1px solid #afc2991c; color: #a9b59f; padding: 6px 10px; border-radius: 100px; white-space: nowrap; }
.canvas-wrap { position: relative; height: 350px; margin: 0 8px; }
.canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.canvas-loading { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #d4dfcb; font-size: 16px; background: #191f18; border-radius: 24px; }
.canvas-loading span { font-size: 13px; color: var(--muted); margin-top: 8px; }
.canvas-tooltip { position: absolute; pointer-events: none; background: #283125ed; border: 1px solid #63785655; padding: 9px 13px; border-radius: 12px; font-size: 12px; box-shadow: 0 8px 24px #0003; white-space: nowrap; z-index: 2; }
.canvas-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 5px 30px 0; gap: 20px; }
.legend { display: flex; gap: 19px; font-size: 12px; color: var(--muted); }
.legend span, .chart-legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.sensory { background: var(--green); }.interneuron { background: var(--cyan); }.motor { background: var(--orange); }
.canvas-caption { font-size: 12px; color: #929f89; padding: 10px 30px 26px; line-height: 1.65; }
.inspector { border-left: 1px solid #b5c7a60a; padding: 28px 25px; background: linear-gradient(130deg, #222b20, #1d241b); }
.inspector-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.inspector-top .eyebrow { font-size: 10px; letter-spacing: 1.25px; }
.small-cross { color: #93a486; font-size: 20px; font-weight: 300; }
#neuron-select { background: #c3d6b108; border: 1px solid #afc69912; width: 100%; padding: 7px 10px 7px 12px; font: 29px/1.2 var(--font); font-weight: 450; letter-spacing: -.9px; color: var(--green); border-radius: 12px; }
#neuron-select:hover { background: #c3d6b112; }
select option { background: #212a1d; color: var(--text); font-size: 16px; }
.cell-type { color: var(--muted); font-size: 13px; margin-top: 9px; padding-left: 1px; }
.voltage-display { display: flex; align-items: baseline; gap: 8px; margin-top: 23px; }
.voltage-display span:first-child { font-size: 39px; font-weight: 400; line-height: 1.1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.voltage-display span:last-child { color: var(--muted); font-size: 14px; }
.trace { display: block; width: 100%; height: 55px; margin-top: 12px; }
.trace-label { display: flex; justify-content: space-between; font-size: 10px; color: #9caa90; margin: 6px 0 23px; gap: 8px; }
.trace-label span:last-child { font-size: 8px; letter-spacing: .4px; padding-top: 2px; }
.cell-facts { margin: 0; font-size: 12px; }
.cell-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid #adbf9812; padding: 10px 0; }
.cell-facts dt { color: var(--muted); }
.cell-facts dd { margin: 0; color: #d6dfcf; text-align: right; overflow-wrap: anywhere; }
.readout { border-top: 1px solid #adbf9818; margin-top: 20px; padding-top: 19px; }
.readout-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.readout-title .eyebrow { font-size: 9px; letter-spacing: .8px; }
.readout-title > span:last-child { font: 10px var(--mono); color: #9aae8d; }
.score-row { display: grid; grid-template-columns: 76px 1fr 33px; gap: 9px; align-items: center; font-size: 11px; margin-top: 12px; color: #b5c2a9; }
.score-row > div { height: 5px; background: #131b10; border-radius: 100px; overflow: hidden; }
.score-row i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 100px; transition: width .65s var(--ease), background .4s ease; }
.score-row b { font: 10px var(--mono); color: #d0dcc5; text-align: right; }
.readout p { font-size: 10px; line-height: 1.6; color: #9aa88f; margin: 13px 0 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.metric { min-width: 0; padding: 23px 24px 22px; background: #1b211ade; border: 1px solid #b5c9a610; border-radius: 24px; transition: background .3s ease, border-color .3s ease; }
.metric:hover { background: #21291e; border-color: #b5c9a621; }
.metric > span { font-size: 12px; color: #a5b09a; }
.metric strong { font: 400 35px/1.4 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -1.2px; display: block; margin-top: 6px; white-space: nowrap; }
.metric strong span { font-size: 25px; color: var(--muted); }
.metric small { font-size: 11px; line-height: 1.65; color: #96a18e; display: block; margin-top: 5px; }
.metric .date-value { font-size: 27px; padding-top: 9px; padding-bottom: 2px; letter-spacing: -.9px; }
.lower-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 18px; margin-top: 18px; }
.performance-panel, .journal-panel { min-width: 0; border: 1px solid var(--line); border-radius: 26px; padding: 25px 26px 21px; background: #191f18; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading h2 { font-size: 18px; letter-spacing: -.35px; font-weight: 450; margin: 6px 0 0; }
.section-heading .eyebrow { font-size: 9px; letter-spacing: 1px; }
.section-heading .muted { font-size: 11px; white-space: nowrap; }
.chart-legend { display: flex; gap: 22px; font-size: 11px; color: #b1bea6; margin-top: 22px; }
.chart-legend i { display: block; width: 14px; height: 3px; border-radius: 100px; }
.learner-line { background: var(--green); }.baseline-line { background: #829876; }
#performance { display: block; width: 100%; height: 160px; margin-top: 17px; }
.chart-note { display: flex; justify-content: space-between; gap: 18px; font-size: 10px; color: #96a28c; line-height: 1.7; }
.chart-note span:last-child { white-space: nowrap; }
.empty-state { font-size: 14px; color: #c7d1be; padding: 50px 12px 40px; text-align: center; }
.empty-state span { display: block; font-size: 12px; color: var(--muted); margin: 8px auto 0; max-width: 270px; }
.table-scroll { overflow: auto; margin-top: 21px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th { color: #9caa91; font-weight: 400; text-align: left; font-size: 10px; padding-bottom: 12px; }
td { border-top: 1px solid #b5c9a611; padding: 11px 0; white-space: nowrap; }
td:first-child { font-size: 12px; font-variant-numeric: tabular-nums; }
td:first-child span { color: #93a183; margin-right: 14px; font-size: 10px; }
.action { font: 10px var(--font); font-weight: 500; letter-spacing: .15px; display: inline-block; padding: 4px 9px; background: #b5d09a0b; border: 1px solid #b5d09a18; border-radius: 100px; color: #c2d5af; }
.action.sell { color: var(--orange); background: #c29c7909; border-color: #c29c7922; }
.action.hold { color: #a6b39a; background: #a5b29409; border-color: #a5b29412; }
.journal-replay { border: 0; background: #acbd9908; color: #b2c5a0; font-size: 16px; padding: 2px 8px; border-radius: 10px; }
.journal-replay:hover { color: var(--green); background: #acbd991c; }
.positive { color: var(--green) !important; }.negative { color: var(--red) !important; }.muted { color: var(--muted); }
footer { font-size: 11px; color: #98a38f; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 29px 2px 0; line-height: 1.7; }
footer > div { display: flex; align-items: center; gap: 13px; }
.footer-divider { color: #526248; }footer a { color: #b6c6a7; }
.source-note { font-size: 11px; line-height: 1.8; color: #8b9781; margin: 16px 2px 0; max-width: 1120px; }
.sr-only { position: absolute; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.journal-mode .lower-grid { grid-template-columns: 1fr; }.journal-mode .performance-panel, .journal-mode .observatory { display: none; }
.journal-mode .journal-panel table { font-size: 14px; }.journal-mode td { padding: 15px 0; }.journal-mode td:first-child { font-size: 14px; }
#memory-inspector h3 { font-size: 26px; line-height: 1.25; margin: 0 0 15px; font-weight: 400; letter-spacing: -.6px; color: var(--green); }
#memory-inspector p { font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
#memory-replay { width: 100%; margin: 14px 0 18px; font-size: 12px; }
dialog { background: #20281d; color: var(--text); border: 1px solid #acbd9933; border-radius: 28px; max-width: 650px; width: calc(100% - 36px); padding: 33px; max-height: 86vh; box-shadow: 0 35px 100px #0005; }
dialog::backdrop { background: #080c087a; backdrop-filter: blur(10px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
dialog h2 { font-size: 37px; line-height: 1.2; letter-spacing: -1px; font-weight: 450; margin: 28px 0 24px; }
dialog p { font-size: 15px; line-height: 1.8; color: #c1ceB5; }
.about-facts { font-size: 14px; }.about-facts > div { padding: 16px 0; border-top: 1px solid var(--line); }
.about-facts dt { color: var(--green); margin-bottom: 6px; }.about-facts dd { margin: 0; color: #b3c3a6; line-height: 1.75; }
.source-links { display: flex; gap: 19px; flex-wrap: wrap; font-size: 12px; color: #c4d6b5; border-top: 1px solid var(--line); padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  main { animation: settle .65s var(--ease) both; }
  dialog[open] { animation: settle .28s var(--ease) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 1600px) { .canvas-wrap { height: 390px; }.panel-heading { padding-top: 33px; }.canvas-caption { padding-bottom: 30px; } }
@media (max-width: 1100px) {
  .site-header { padding: 0 30px; }main { padding: 30px 30px 24px; }
  .observatory { grid-template-columns: minmax(0, 1fr) 275px; }.inspector { padding: 26px 20px; }
  .panel-heading { padding: 27px 24px 0; }.panel-heading h2 { font-size: 18px; }.panel-heading .tag { display: none; }
  .canvas-wrap { height: 355px; }.canvas-toolbar { padding: 5px 24px 0; }.canvas-caption { padding-left: 24px; padding-right: 24px; }
  .metrics { gap: 11px; }.metric { padding: 20px 18px; }.metric strong { font-size: 29px; }.metric .date-value { font-size: 23px; }
  .lower-grid { grid-template-columns: 1fr 1fr; }.performance-panel, .journal-panel { padding: 24px 21px 20px; }
  .section-heading h2 { font-size: 16px; }.chart-note { display: block; }.chart-note span { display: block; }
}
@media (max-width: 800px) {
  .site-header { height: auto; min-height: 85px; padding: 24px 24px 0; flex-wrap: wrap; gap: 25px; }.brand { font-size: 25px; }.site-header > .text-button { font-size: 12px; }
  .tabs { order: 3; width: 100%; justify-content: center; }.tab { flex: 1; padding: 10px 12px; }
  main { padding: 33px 20px 24px; }.experiment-heading { align-items: flex-start; margin-bottom: 23px; gap: 15px; }h1 { font-size: 31px; }.eyebrow { font-size: 9px; letter-spacing: 1px; }
  .session-controls { gap: 10px; flex-direction: column; align-items: flex-end; padding-top: 3px; }.connection { font-size: 10px; }.outline-button { font-size: 11px; padding: 8px 12px; }
  .open-source-feature { align-items: flex-start; flex-direction: column; gap: 17px; padding: 20px 22px; margin-bottom: 18px; border-radius: 23px; }.open-source-copy h2 { font-size: 22px; }.open-source-copy p { font-size: 12px; }.github-link { padding: 11px 17px; font-size: 12px; }
  .notice { font-size: 12px; padding: 13px 16px; border-radius: 17px; }
  .observatory { grid-template-columns: 1fr; border-radius: 25px; }
  .inspector { border-left: 0; border-top: 1px solid #b5c7a60a; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; padding: 23px; }
  .inspector-top { grid-column: 1/-1; margin-bottom: 17px; }.inspector-top .small-cross { display: none; }
  .readout { border-top: 0; border-left: 1px solid var(--line); padding: 4px 0 0 21px; margin-top: 0; }.readout-title { display: block; }.readout-title > span:last-child { display: block; margin-top: 7px; }
  .score-row { grid-template-columns: 1fr 30px; gap: 5px; margin-top: 16px; }.score-row > div { grid-column: 1; grid-row: 2; }.score-row b { grid-column: 2; grid-row: 2; }.score-row > span { grid-column: 1/-1; }.readout p { font-size: 10px; }
  .cell-facts { font-size: 11px; }.cell-facts > div { gap: 8px; }.canvas-wrap { height: 275px; }
  .panel-heading { padding: 25px 22px 0; }.panel-heading h2 { font-size: 17px; }.canvas-toolbar { padding: 0 22px; }.canvas-caption { padding: 11px 22px 23px; font-size: 11px; }
  .legend { gap: 13px; font-size: 10px; }.canvas-toolbar .text-button { font-size: 11px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }.metric { padding: 18px 20px; border-radius: 21px; }.metric > span { font-size: 12px; }.metric strong { font-size: 30px; }.metric .date-value { font-size: 24px; }.metric small { font-size: 10px; }
  .lower-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 15px; }.performance-panel, .journal-panel { border-radius: 23px; padding: 23px 22px 20px; }.section-heading h2 { font-size: 17px; }.section-heading .eyebrow { font-size: 9px; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; font-size: 10px; }footer > div { flex-wrap: wrap; gap: 8px; }.source-note { font-size: 10px; }
  .voltage-display span:first-child { font-size: 31px; }.voltage-display span:last-child { font-size: 12px; }.trace-label span:last-child { display: none; }
  #neuron-select { font-size: 25px; }.readout-title .eyebrow { font-size: 9px; }.trace-label { font-size: 10px; }.chart-note { font-size: 10px; }.journal-mode td:first-child { font-size: 12px; }
  #memory-inspector h3 { font-size: 22px; }#memory-inspector p { font-size: 12px; }dialog { padding: 26px; border-radius: 25px; }
}
@media (max-width: 390px) {
  main { padding-left: 15px; padding-right: 15px; }h1 { font-size: 27px; }.experiment-heading .eyebrow { font-size: 8px; }
  .metric { padding: 18px 15px; }.metric strong { font-size: 27px; }.metric .date-value { font-size: 22px; }
  .inspector { padding: 21px 18px; gap: 0 18px; }.readout { padding-left: 16px; }.cell-facts { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
