:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20312f;
  background: #fff;
  font-synthesis: none;
  --muted: #63716e;
  --line: #dfe6e2;
  --accent: #236c5c;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, select, textarea { font: inherit; }
button, select { color: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
button { border: 1px solid #b7c8c1; border-radius: 5px; background: #fff; cursor: pointer; padding: 8px 12px; }
button:hover { background: #eef5f1; }
:focus-visible { outline: 2px solid #348672; outline-offset: 3px; }
.workspace { display: grid; grid-template-columns: 292px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.sidebar { padding: 28px 22px 18px; background: #f7f9f7; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; }
.eyebrow { display: block; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.55px; line-height: 1.5; }
h1 { font-size: 23px; line-height: 1.2; letter-spacing: -.6px; font-weight: 650; margin: 8px 0; }
.intro, .description, .muted { font-size: 12px; line-height: 1.65; color: var(--muted); }
.intro { margin: 0; }
.model-selection { margin-top: 0; }
.field-label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
select { width: 100%; padding: 10px 26px 10px 9px; background-color: #fff; border: 1px solid #b7c8c1; border-radius: 5px; font-size: 12px; cursor: pointer; }
.description { margin: 12px 0; }
.model-facts { margin: 16px 0 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.model-facts > div { display: flex; justify-content: space-between; gap: 8px; margin: 9px 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
#permalink { font-size: 11px; }
#permalink span { margin-left: 3px; }
.sidebar-section { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
summary { cursor: pointer; font-weight: 650; font-size: 12px; line-height: 1.5; }
summary::marker { color: #7a9086; }
#tools { margin-top: 15px; }
.optic-lobe-type-controls { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; font-size: 12px !important; }
.optic-lobe-type-controls textarea { width: 100% !important; background: #fff; min-height: 52px; color: inherit; }
.optic-lobe-type-controls button { margin: 9px 7px 4px 0 !important; padding: 7px 9px !important; font-size: 11px !important; }
.optic-lobe-type-controls > div { font-size: 11px !important; line-height: 1.6; }
.optic-lobe-type-controls input[type="checkbox"] { accent-color: var(--accent); }
.source-label { font-size: 10px; color: var(--muted); margin: 16px 0 4px; text-transform: uppercase; letter-spacing: 1px; }
.source { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; margin: 0; }
pre { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 55vh; overflow: auto; }
.sidebar-footnote { font-size: 10px; line-height: 1.6; margin: 24px 0 0; color: #78867f; }
.visualization { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.plot-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 26px; padding: 22px 0 16px; border-bottom: 1px solid #edf0ed; }
.plot-heading .eyebrow { color: #7a8781; font-size: 9px; letter-spacing: 1.3px; }
h2 { font-size: 19px; font-weight: 550; letter-spacing: -.25px; margin: 4px 0 0; }
.position-label { flex-shrink: 0; color: #61766b; background: #f1f6f2; border: 1px solid #dce9df; padding: 6px 9px; border-radius: 4px; font-size: 10px; }
.position-label:empty { display: none; }
.plot-stage { position: relative; min-height: 0; min-width: 0; }
#plot-host, .neuron-plot { width: 100%; height: 100%; }
.plot-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; text-align: center; padding: 30px; gap: 10px; }
.plot-message p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 430px; margin: 0; }
.loading-dot { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #dfe9e1; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-message strong { font-weight: 600; }
.error-message button { margin-top: 6px; font-size: 12px; }
.plot-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 26px 15px; color: #7a8580; font-size: 10px; line-height: 1.5; border-top: 1px solid #f1f3f1; }
.noscript { position: fixed; top: 35%; left: 30%; padding: 25px; background: #fff; border: 1px solid var(--line); }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 260px minmax(0, 1fr); }
  .sidebar { padding: 24px 18px 18px; }
  h1 { font-size: 21px; }
  .position-label { display: none; }
  .plot-heading { margin: 0 18px; }
  .plot-help { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 700px) {
  .workspace { display: block; height: auto; }
  .sidebar { padding: 20px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-heading { margin-bottom: 18px; }
  h1 { font-size: 23px; }
  .model-selection { margin-top: 0; }
  .model-facts { display: flex; flex-wrap: wrap; column-gap: 24px; margin: 8px 0; }
  .model-facts > div { gap: 8px; }
  .sidebar-section { margin-top: 16px; padding-top: 13px; }
  .sidebar-footnote { display: none; }
  .visualization { height: 82vh; height: 82dvh; min-height: 530px; }
  .plot-heading { padding-top: 18px; }
  h2 { font-size: 17px; }
  .plot-help { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .loading-dot { animation: none; } }
