:root {
  color-scheme: light;
  --bg: #f3f6fc;
  --paper: #fff;
  --ink: #0c1530;
  --muted: #5d667a;
  --line: #d9dfeb;
  --orange: #ff4f00;
  --blue: #446dba;
  --teal: #446dba;
  --radius: 3px;
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 10px 14px; color: var(--ink); font-size: .875rem; line-height: 1.4; }
button:hover { border-color: #8b97ae; background: #eaf0f9; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary, button.lime { background: var(--orange); border-color: var(--orange); color: #10152b; font-weight: 600; }
button.primary:hover, button.lime:hover { background: #f76d2e; }
button.text { border-color: transparent; background: transparent; color: var(--muted); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #b93a00; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 500; letter-spacing: -1.6px; line-height: 1.12; }
h2 { font-size: 1.3rem; letter-spacing: -.35px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
p { line-height: 1.65; }
small, .small { font-size: .875rem; line-height: 1.55; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.muted, .shape-note { color: var(--muted); }
.eyebrow { font-size: .75rem; letter-spacing: .65px; text-transform: uppercase; font-weight: 500; }
.skip { position: fixed; top: -100px; left: 15px; background: var(--paper); padding: 12px; z-index: 100; }
.skip:focus { top: 10px; }
.loading { padding: 60px; }
.topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: block; flex-shrink: 0; }
.brand-logo { display: block; position: relative; width: 174px; height: 30px; background: var(--ink); mask: url('../assets/brand/general-compute.png') center / contain no-repeat; }
.brand-logo::after { content: ''; position: absolute; inset: 0; background: var(--orange); clip-path: inset(0 83% 0 0); }
.course-label { font-size: .875rem; color: var(--muted); }
.shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; align-items: start; }
.sidebar { padding: 48px 0 32px 20px; position: sticky; top: 0; }
.side-intro { font-size: .75rem; color: var(--muted); margin: 0 14px 20px; text-transform: uppercase; letter-spacing: 1px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav button { border: 0; border-left: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); text-align: left; display: flex; align-items: baseline; gap: 12px; padding: 11px 12px; line-height: 1.35; }
.side-nav button span { font: .75rem ui-monospace, monospace; min-width: 18px; color: #758098; }
.side-nav button.active { color: var(--ink); border-left-color: var(--orange); background: #e8edf6; }
.side-nav button.active span, .side-nav button.done span { color: #b93a00; }
.side-nav button:hover { background: #e8edf6; color: var(--ink); }
.side-foot { margin: 28px 14px 0; color: var(--muted); font-size: .75rem; }
.progress-track { height: 2px; background: var(--line); margin-top: 12px; }
.progress-track i { display: block; height: 100%; background: var(--orange); }
.main { padding: 48px clamp(24px, 4vw, 64px) 90px; min-width: 0; width: 100%; }
.lesson-heading { margin-bottom: 28px; }
.lesson-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: .813rem; color: var(--muted); margin-bottom: 20px; }
.lesson-meta span span { padding: 0 6px; }
.lesson-meta a { text-decoration: none; }
.lesson-heading p { color: var(--muted); margin-top: 16px; max-width: 740px; }
.prompt-panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 36px; border-radius: var(--radius); }
.input-output { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: start; }
.input-controls { min-width: 0; }
.prompt-label { font-size: .813rem; color: var(--muted); }
.prompt-form { display: flex; gap: 8px; margin-top: 10px; }
input[type=text] { padding: 11px 12px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfe; color: var(--ink); }
.prompt-form button { white-space: nowrap; }
.presets { display: flex; gap: 7px 12px; align-items: baseline; flex-wrap: wrap; margin-top: 11px; color: var(--muted); font-size: .75rem; }
.presets button { border: 0; padding: 0; font-size: .75rem; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.presets button:hover { color: var(--ink); }
.inspector { border-left: 1px solid var(--line); padding-left: 22px; min-width: 0; }
.prediction-summary { display: flex; justify-content: space-between; gap: 8px; }
.prediction-summary .eyebrow { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .813rem; }
.prediction-value { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 9px; }
.next-token { font-size: 1.7rem; letter-spacing: -.5px; font-weight: 500; overflow-wrap: anywhere; }
.probability { color: var(--muted); font-size: .813rem; }
.prediction-details { margin-top: 12px; font-size: .75rem; }
summary { cursor: pointer; line-height: 1.5; }
.prediction-details summary { color: var(--muted); }
.dist { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.dist-item .row { justify-content: space-between; font-size: .75rem; margin-bottom: 5px; }
.bar-track { height: 3px; background: #e9edf5; overflow: hidden; }
.bar-fill { height: 100%; background: #607aa9; min-width: 1px; }
.dist-item:first-child .bar-fill { background: var(--orange); }
.comparison { font-size: .75rem; color: var(--muted); margin-top: 16px; }
.full-dist { max-height: 240px; overflow: auto; margin-top: 16px; }
.full-dist caption { text-align: left; color: var(--muted); padding-bottom: 8px; }
.token-trace { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.tokens { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.token { font: .875rem ui-monospace, monospace; padding: 8px 10px; background: var(--bg); }
.token small { color: var(--muted); font-size: .688rem; margin-left: 8px; }
.token.selected { border-color: #db703f; background: #fff0e7; }
.token.special { color: var(--muted); }
.token.generated { background: #edf1ff; }
.trace-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.input-note { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.reset-button { font-size: .75rem; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.warning { color: #8e3b14; background: #fff1e8; padding: 12px; margin-top: 12px; font-size: .875rem; }
.lesson-body { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.panel { min-width: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel > p + p { margin-top: 10px; }
.hint { font-size: .875rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.tag { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.experiment { border-left: 2px solid var(--orange); padding: 2px 0 2px 18px; }
.experiment .eyebrow { color: #b93a00; margin-bottom: 7px; }
.experiment p { font-size: .938rem; }
.overview-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 18px; border: 1px solid var(--line); background: var(--paper); }
.flow-card { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 18px 14px; text-align: left; background: transparent; }
.flow-card:last-child { border-right: 0; }
.flow-card .eyebrow { color: var(--muted); }
.flow-card strong { display: flex; gap: 5px; justify-content: space-between; font-size: .938rem; font-weight: 500; margin: 15px 0 8px; }
.flow-card strong span { color: #b93a00; }
.flow-card .shape { display: block; color: var(--muted); font-size: .75rem; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.vector-wrap, .matrix-scroll { overflow: auto; max-width: 100%; padding: 3px 2px; }
.vector { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(48px, 1fr)); gap: 4px; min-width: max-content; }
.vector span { text-align: center; padding: 12px 5px; border-radius: 2px; font: .813rem ui-monospace, monospace; color: var(--ink); }
.vector-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: .875rem; margin-bottom: 8px; }
.vector-block { margin-top: 20px; }
.shape-note { font-size: .75rem; }
.operator { color: var(--muted); padding: 6px 0; font-size: 1.2rem; }
.legend { display: flex; gap: 14px; font-size: .75rem; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; background: #a9bce0; margin-right: 5px; }
.legend span.negative::before { background: #f5b394; }
.legend span.zero::before { background: #e8edf5; }
.controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.controls label { font-size: .875rem; display: flex; align-items: center; gap: 8px; }
select { border: 1px solid var(--line); border-radius: var(--radius); padding: 7px; background: var(--paper); color: var(--ink); max-width: 100%; }
.range-field { margin-top: 24px; }
.range-field label { display: flex; justify-content: space-between; gap: 15px; font-size: .875rem; }
.range-field output { font-variant-numeric: tabular-nums; }
.range-field input { width: 100%; margin: 14px 0 0; accent-color: var(--orange); cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.check-label { font-size: .875rem; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.check-label input { width: 17px; height: 17px; accent-color: #bd3b00; }
.attention-grid { display: grid; grid-template-columns: 80px repeat(var(--n), minmax(39px, 1fr)); gap: 4px; min-width: 360px; }
.attention-grid .axis-label { font-size: .75rem; text-align: center; padding: 7px 2px; align-self: center; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.attention-cell { padding: 9px 2px; border: 1px solid transparent; min-width: 0; border-radius: 2px; font: .75rem ui-monospace, monospace; }
.attention-cell.selected { outline: 2px solid var(--ink); outline-offset: -2px; }
.attention-cell.masked { background: repeating-linear-gradient(135deg, #edf0f6, #edf0f6 4px, #e0e5ef 4px, #e0e5ef 5px); color: #68738a; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; color: var(--muted); font-size: .75rem; font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-family: ui-monospace, monospace; vertical-align: middle; }
.table tbody tr:last-child td { border: 0; }
.table td:first-child { font-family: inherit; }
.table tr.highlight, .table tr.selected { background: #e8edf7; }
.table input { accent-color: var(--orange); }
.formula { padding: 16px; background: #e9eef8; border-radius: var(--radius); font: .875rem/1.85 ui-monospace, monospace; overflow: auto; overflow-wrap: anywhere; margin: 14px 0; }
.math-details { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; }
.math-details summary { font-size: .875rem; font-weight: 500; }
.math-details p { font-size: .875rem; margin-top: 12px; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.term { border-left: 1px solid var(--line); padding-left: 16px; }
.term .letter { font-size: 1.7rem; margin-bottom: 8px; color: var(--blue); }
.term:nth-child(2) .letter { color: #735caa; }
.term:nth-child(3) .letter { color: #bd4c20; }
.term p { font-size: .875rem; line-height: 1.55; margin-top: 8px; }
.quiz { margin-top: 4px; }
.quiz .eyebrow { color: var(--muted); margin-bottom: 12px; }
.quiz h3 { font-weight: 500; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.quiz-options button { text-align: left; padding: 12px 14px; background: transparent; }
.quiz-options button:hover { background: #e9eef8; }
.quiz-options button.correct { background: #e5efe8; border-color: #738b76; }
.quiz-options button.incorrect { background: #fff0e9; border-color: #d19072; }
.feedback { font-size: .875rem; line-height: 1.6; margin-top: 12px; }
.feedback.good { color: #31573c; }
.feedback.bad { color: #8a431d; }
.lesson-bottom { display: flex; justify-content: space-between; gap: 10px; }
.sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .813rem; color: var(--muted); line-height: 1.7; }
.sources a { display: inline-block; margin-right: 12px; }
.sources > details > p { margin-top: 14px; }
.schema { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.schema > div { border-left: 1px solid var(--line); padding: 8px 14px; flex: 1; min-width: 100px; font-size: .875rem; }
.schema b { display: block; margin-bottom: 6px; font-weight: 500; }
.code { white-space: pre; overflow: auto; background: #e9eef8; color: var(--ink); padding: 20px; font: .813rem/1.8 ui-monospace, monospace; }
.generation { padding: 20px; border: 1px solid var(--line); background: var(--paper); font-size: 1.5rem; line-height: 1.8; min-height: 105px; overflow-wrap: anywhere; }
.generation mark { background: #ffe3d4; color: var(--ink); padding: 2px 4px; }
.loss-chart { width: 100%; height: 150px; display: block; margin: 12px 0; }
.log-list { font-size: .813rem; line-height: 1.8; max-height: 180px; overflow: auto; padding-left: 24px; }
.vocab { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.vocab span { font: .813rem ui-monospace, monospace; background: #e8edf7; padding: 6px 8px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.token-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 18px; }
.token-card { padding: 15px 12px; text-align: left; }
.token-card strong { display: block; font: 500 1.1rem ui-monospace, monospace; margin: 10px 0; }
.token-card.selected { background: #fff0e7; border-color: #db703f; }
.token-card small { display: block; font-size: .75rem; color: var(--muted); }
.baseline-note { font-size: .813rem; border-left: 2px solid #aab8d0; padding-left: 12px; color: var(--muted); margin-top: 14px; }
.arc-view { width: 100%; height: auto; display: block; margin: 12px 0; }
.arc-view text { font: 14px Arial, sans-serif; }
.capstone-steps { display: grid; gap: 16px; margin: 20px 0; }
.capstone-step { display: flex; align-items: flex-start; gap: 16px; }
.capstone-step b { color: #b93a00; font-size: .875rem; font-weight: 500; padding-top: 3px; }
.capstone-step p { font-size: .875rem; }
.complete-banner { background: #e5efe8; padding: 16px; margin-bottom: 24px; font-size: .875rem; line-height: 1.6; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.status-message { font-size: .875rem; color: var(--muted); min-height: 23px; margin-top: 12px; }
.neuron-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.neuron-tile { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 5px; padding: 12px; background: var(--activation); border: 1px solid transparent; }
.neuron-tile span, .neuron-tile small { font-size: .75rem; }
.neuron-tile strong { font-size: 1.25rem; font-weight: 500; }
.neuron-tile.selected { outline: 2px solid var(--ink); outline-offset: 1px; }
.neuron-tile:hover { border-color: var(--ink); background: var(--activation); }
.relu-plot, .feature-plot { display: block; width: 100%; max-height: 280px; margin: 18px auto; background: #eaf0fa; }
.relu-plot text, .feature-plot text { font: 14px Arial, sans-serif; fill: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; }
  .main { padding-inline: 28px; }
  .input-output { grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; }
  .inspector { padding-left: 16px; }
  .overview-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-card:nth-child(2) { border-right: 0; }
  .flow-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; min-height: 48px; }
  .brand-logo { width: 164px; height: 28px; }
  .course-label { display: none; }
  .shell { display: block; }
  .sidebar { padding: 10px 16px; position: static; border-bottom: 1px solid var(--line); }
  .side-intro, .side-foot { display: none; }
  .side-nav { flex-direction: row; overflow: auto; gap: 4px; }
  .side-nav button { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 10px; }
  .side-nav button.active { border-bottom-color: var(--orange); }
  .main { padding: 32px 20px 90px; }
  .lesson-heading { margin-bottom: 24px; }
  h1 { letter-spacing: -1px; }
  .lesson-heading p { font-size: .938rem; }
  .prompt-panel { padding: 18px; margin-bottom: 30px; }
  .terms { gap: 14px; }
}
@media (max-width: 540px) {
  .input-output { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .inspector { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .prediction-summary { align-items: center; }
  .prediction-summary > div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .prediction-value { margin: 0; }
  .next-token { font-size: 1.3rem; }
  .prediction-details { margin-top: 8px; }
  .token-trace { margin-top: 16px; padding-top: 14px; }
  .lesson-meta { font-size: .75rem; }
  .lesson-body { gap: 26px; }
  .terms, .two-columns { grid-template-columns: 1fr; }
  .term .letter { display: inline; margin-right: 10px; }
  .term h3 { display: inline; }
  .attention-grid { grid-template-columns: 58px repeat(var(--n), minmax(35px, 1fr)); }
  .neuron-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generation { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* The single-line result appears only after the original prediction scrolls away. */
.prediction-peek { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--paper); border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 14px 24px; display: flex; justify-content: center; align-items: baseline; gap: 32px; font-size: .875rem; text-decoration: none; }
.prediction-peek[hidden] { display: none; }
.prediction-peek strong { margin: 0 8px; font-weight: 600; color: #b93a00; }
.peek-link { font-size: .75rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 540px) { .prediction-peek { padding: 13px 16px; justify-content: space-between; gap: 12px; flex-wrap: wrap; } }

.course-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: .875rem; }
.home-link { text-decoration: none; }
@media (max-width: 540px) { .topbar { gap: 12px; } .course-links { font-size: .75rem; gap: 12px; } }

/* Coordinates first: interactive geometry and an explicit forward-pass player. */
.input-help { margin-top: 9px; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.trace-player { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; scroll-margin-top: 18px; }
.trace-player > span { margin-left: auto; }
.trace-stages { display: flex; overflow-x: auto; gap: 4px; padding: 14px 0 4px; }
.trace-stages button { flex: 1; min-width: max-content; padding: 8px 10px; font-size: .75rem; background: transparent; border-color: transparent; border-bottom-color: var(--line); border-radius: 0; }
.trace-stages button.active { border-bottom-color: var(--orange); background: #fff0e7; }
.trace-explanation { margin: 18px 0; min-height: 88px; }
.trace-explanation p { font-size: .875rem; color: var(--muted); margin-top: 7px; }
.embedding-view { border: 1px solid var(--line); background: #fafcff; margin: 18px 0; overflow: hidden; }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e9edf5; font-size: .75rem; color: var(--muted); }
.view-toolbar > div { display: flex; gap: 3px; }
.view-toolbar button { padding: 5px 9px; font-size: .75rem; background: transparent; border-color: transparent; }
.view-toolbar button:hover { background: #e9eef8; }
.embedding-space { display: block; width: 100%; height: clamp(320px, 34vw, 400px); cursor: grab; touch-action: none; }
.embedding-space:active { cursor: grabbing; }
.embedding-space .grid-line { stroke: #d5dfef; stroke-width: 1; }
.embedding-space .grid-back { stroke: #e4eaf4; stroke-width: 1; }
.embedding-space .axis-line { stroke: #98a7c0; stroke-width: 1.2; }
.embedding-space .axis-text { fill: #63718b; font: 12px Arial, sans-serif; }
.vector-arrow { stroke: #e84905; stroke-width: 2.5; }
.arrow-tip { fill: #e84905; }
.movement-line { stroke: #486db1; stroke-width: 1.8; stroke-dasharray: 5 4; }
.trace-path { stroke: #9eabc2; stroke-width: 1.4; fill: none; }
.previous-point { stroke: #73849f; stroke-width: 1.5; fill: #fafcff; }
.space-point { fill: #a9b8d1; cursor: pointer; }
.space-point.selected-point { fill: #e84905; }
.space-point.compare-point { fill: #446dba; }
.space-point .point-hit { fill: transparent; }
.space-point text { font: 600 13px Arial, sans-serif; paint-order: stroke; stroke: #fafcff; stroke-width: 4px; stroke-linejoin: round; }
.space-point:hover > circle:not(.point-hit), .space-point:focus > circle:not(.point-hit) { stroke: var(--ink); stroke-width: 2; }
.view-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 12px; color: var(--muted); font-size: .75rem; }
.vector-swatch { display: inline-block; height: 2px; width: 14px; background: var(--orange); vertical-align: middle; margin-right: 5px; }
.coordinate-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 12px 0; }
.coordinate { text-align: center; padding: 10px 4px; background: #e9eef8; min-width: 0; }
.coordinate span { display: block; font-size: .688rem; color: var(--muted); margin-bottom: 6px; }
.coordinate strong { font: .813rem ui-monospace, monospace; }
.coordinate.shown-coordinate { background: #fff0e7; border-bottom: 2px solid #ed8d5f; }
.lookup-chain { display: flex; flex-wrap: wrap; gap: 10px; font-size: .875rem; align-items: center; margin-top: 20px; }
.lookup-chain strong { font-weight: 500; }
.lookup-chain > span[aria-hidden] { color: #b93a00; }
.lookup-tokens { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup-tokens button { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 12px; }
.lookup-tokens button strong { font-weight: 500; }
.lookup-tokens button span, .lookup-tokens button small { font-size: .75rem; color: var(--muted); }
.lookup-tokens button.selected { border-color: #db703f; background: #fff0e7; }
.trace-result { border-left: 2px solid var(--orange); padding: 14px 18px; margin-top: 18px; }
.trace-result > span, .trace-result p { display: block; font-size: .813rem; color: var(--muted); }
.trace-result > strong { display: block; font-size: 1.65rem; font-weight: 500; margin: 10px 0; }
.trace-result > strong small { color: var(--muted); font-size: .875rem; }
.trace-result button { margin-top: 12px; }
@media (max-width: 540px) {
 .coordinate-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
 .trace-explanation { min-height: 112px; }
 .trace-stages { margin-inline: -2px; }
 .view-toolbar { padding: 8px; }
 .view-toolbar > span { width: 100%; }
 .view-toolbar > div { width: 100%; justify-content: space-between; }
 .view-caption { font-size: .688rem; }
 .embedding-space { height: 310px; }
 .projection-controls { flex-direction: column; align-items: flex-start; }
}
.compare-arrow { stroke: #446dba; stroke-width: 1.5; opacity: .75; }
.compare-distance { stroke: #a1aec4; stroke-width: 1; stroke-dasharray: 3 4; }
.space-point:not(.selected-point):not(.compare-point) text { fill: #5c6f8c; font-weight: 400; font-size: 12px; }
