:root {
  --ink: #202020;
  --muted: #595959;
  --line: #d2d2d2;
  --soft: #f5f5f5;
  --selected: #f1f1f1;
  --link: #174e8a;
  --accent: #353535;
  --accent-dark: #151515;
  --ui: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: var(--ui);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button {
  min-height: 44px;
  border: 1px solid #aaa;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  padding: 9px 13px;
  cursor: pointer;
  line-height: 1.35;
}
button:hover { background: var(--soft); border-color: #666; }
button:disabled { color: #777; border-color: #ddd; cursor: default; background: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
p { line-height: 1.55; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
.masthead {
  max-width: 1496px;
  margin: auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions button {
  min-width: 44px;
  border: 0;
  border-radius: 0;
  padding: 8px 4px;
  color: var(--link);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.header-actions button:hover { background: transparent; color: #082f5b; }
main { max-width: 1496px; padding: 0 28px; margin: auto; }
.home-heading { margin: 24px 0 0; font-size: 25px; font-weight: 600; line-height: 1.3; }
.search-workbench { padding: 18px 0 0; }
.question-input { display: flex; gap: 8px; max-width: 1120px; }
.question-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #888;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
}
.question-input button { min-width: 100px; font-size: 16px; font-weight: 600; background: #f3f3f3; border-color: #888; }
.question-input button:hover { background: #e8e8e8; }
.options-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 0;
  border: 0;
  color: var(--link);
  background: transparent;
  font-size: 14px;
  text-align: left;
}
.options-toggle:hover { background: transparent; }
.options-toggle > span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }
.options-chevron { flex: 0 0 auto; width: 10px; color: var(--muted); }
.options-toggle[aria-expanded=true] .options-chevron { transform: rotate(90deg); }
#options-summary { margin-left: 8px; color: var(--muted); font-size: 13px; }
.question-controls { display: none; }
.options-open .question-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 2px 0 16px;
}
.question-controls label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.question-controls select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 30px 8px 10px;
  border: 1px solid #aaa;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.status-line { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; min-height: 28px; font-size: 13px; color: var(--muted); }
.status-line p { margin: 0 0 8px; line-height: 1.45; }
.status-line > span { white-space: nowrap; }
.status-line .error { color: #9b1717; }
.resume-prior { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1120px; margin: 10px 0 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resume-prior > div:first-child { min-width: 0; }
.resume-caption { margin: 0 0 5px; font-size: 13px; color: var(--muted); }
#resume-label { max-width: 75ch; margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.resume-actions button { font-size: 15px; }
.path-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-navigation { display: flex; align-items: center; gap: 10px; }
.path-navigation > button { flex: 0 0 auto; border: 0; padding: 8px 4px; font-size: 14px; color: var(--link); }
.path-navigation > button:disabled { color: #777; }
.path-navigation > button:last-child { margin-left: auto; }
#path { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
#path button { min-width: 44px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 14px; padding: 8px; white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; color: var(--link); flex-shrink: 0; }
#path button:hover { text-decoration: underline; }
#path button[aria-current] { max-width: min(300px, 100%); color: var(--ink); border-bottom-color: #555; font-weight: 600; }
#path .path-arrow { color: #777; padding: 0 2px; flex-shrink: 0; }
.context-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 18px 0 14px; }
.context-heading > div:first-child { min-width: 0; }
.context-heading h1 { max-width: 1050px; font-size: 25px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; overflow-wrap: anywhere; }
.context-heading p { max-width: 1050px; margin: 0; font-size: 14px; color: var(--muted); }
.context-heading p:empty { display: none; }
.full-question { max-width: 95ch; margin-top: 3px; }
.full-question summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--link); }
.full-question summary::before { content: '▸'; margin-right: 7px; }
.full-question[open] summary::before { content: '▾'; }
.full-question p { padding: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
#full-question-source { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
#snapshot-notice { margin-top: 8px; max-width: 85ch; color: #594820; }
.column-navigation { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.column-navigation > span { margin-right: 8px; font-size: 13px; color: var(--muted); }
.column-navigation button { width: 44px; padding: 8px; font-size: 18px; }
.columns {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  height: 560px;
  max-height: 72vh;
  min-height: 400px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #999 #f4f4f4;
  overscroll-behavior-x: contain;
}
.miller-column { flex: 0 0 320px; min-width: 0; height: 100%; border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; position: relative; background: #fff; }
.miller-column:last-child { flex: 1 0 400px; border-right: 0; }
.column-heading { position: sticky; top: 0; background: #f6f6f6; z-index: 2; padding: 11px 14px; border-bottom: 1px solid var(--line); min-height: 68px; }
.column-heading .column-step { font-size: 13px; color: var(--muted); }
.column-heading h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 5px 0 0; overflow-wrap: anywhere; }
.current-column-heading { min-height: 44px; background: #fff; }
.current-column-heading .column-step { color: var(--ink); }
.direction-row { display: flex; border-bottom: 1px solid #ddd; position: relative; }
.direction {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 11px 14px 11px 11px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  color: var(--link);
  min-height: 68px;
}
.direction:hover { background: #f7f7f7; border-left-color: #888; }
.direction:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.direction[aria-current] { background: var(--selected); border-left-color: #555; }
.direction[aria-current] h3 { color: var(--ink); font-weight: 600; }
.direction-number { flex: 0 0 18px; font-size: 12px; line-height: 1.5; padding-top: 3px; color: #666; }
.direction-content { min-width: 0; flex: 1; }
.direction h3 { max-width: 80ch; font-size: 17px; font-weight: 400; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.direction-source { display: block; flex-basis: 100%; max-width: 80ch; margin-top: 5px; color: #444; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.direction-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.direction-kind { font-size: 13px; font-weight: 500; }
.direction-state { display: inline-block; padding: 0 5px; border: 1px solid #aaa; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink); background: #fff; }
.direction-arrow { flex: 0 0 10px; color: #666; align-self: center; font-size: 20px; }
.direction-evidence { flex: 0 0 70px; width: 70px; min-height: 44px; padding: 8px 6px; border: 0; border-left: 1px solid #eee; border-radius: 0; color: var(--link); background: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.direction-evidence[aria-pressed=true] { background: #eee; color: var(--ink); font-weight: 600; }
.direction:focus-visible { outline-offset: -3px; }
.direction-evidence:focus-visible { outline-offset: -3px; }
.column-followup { padding: 15px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.column-followup strong { color: var(--ink); display: block; margin-bottom: 4px; }
.column-restore { padding: 18px; }
.column-restore p { font-size: 16px; color: var(--muted); }
.column-restore button { color: var(--link); }
.navigator-note { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
#pending-indicator { padding: 10px 12px; display: flex; align-items: center; gap: 9px; color: #555; font-size: 14px; border: 1px solid var(--line); border-bottom: 0; }
.pending-dot { width: 6px; height: 6px; border-radius: 50%; background: #666; }
.reading-pane { padding-top: 28px; scroll-margin-top: 18px; }
.reading-heading { display: flex; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; align-items: center; gap: 18px; }
.view-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 17px; min-height: 46px; padding: 9px 2px; color: var(--link); background: #fff; }
.view-tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: #555; font-weight: 600; }
.view-tabs button span { font-size: 14px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.evidence-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0 0; }
.evidence-intro p { font-size: 14px; color: var(--muted); margin: 0; }
.evidence-intro button { flex-shrink: 0; font-size: 14px; }
.evidence-list { max-width: 1120px; }
.evidence-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.evidence-card.selected { border-left: 2px solid #555; padding-left: 17px; }
.source-meta { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 0 0 8px; }
.evidence-card h3 { max-width: 80ch; font-size: 19px; font-weight: 400; line-height: 1.45; margin: 0 0 11px; }
.passage { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: #252525; max-width: 95ch; margin: 0 0 8px; }
.evidence-card details { margin: 3px 0; font-size: 14px; color: var(--muted); }
summary { cursor: pointer; }
.evidence-card summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); padding: 7px 0; }
.evidence-card summary::before { content: '▸'; margin-right: 7px; }
.evidence-card details[open] summary::before { content: '▾'; }
.evidence-card details p { overflow-wrap: anywhere; max-width: 95ch; line-height: 1.6; }
.source-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.source-actions a, .source-actions button { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; padding: 7px 0; border: 0; border-radius: 0; color: var(--link); background: #fff; text-decoration: underline; text-underline-offset: 3px; }
.source-actions button:hover { background: transparent; color: #082f5b; }
.evidence-list > button { margin-top: 18px; }
.empty-state { padding: 22px 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.chart-panel { border: 1px solid var(--line); margin-top: 20px; }
.panel-heading { padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h3 { font-size: 18px; font-weight: 500; margin: 0; }
.chart-key { font-size: 14px; color: var(--muted); }
.chart-controls { padding: 12px 20px 0; font-size: 15px; color: #555; }
.chart-controls label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.chart-controls input { width: 20px; height: 20px; accent-color: #444; }
.chart { width: 100%; min-height: 360px; }
.chart svg { display: block; width: 100%; height: auto; min-height: 360px; max-height: 580px; }
.chart svg text { font-family: var(--ui); fill: #444; font-size: 11px; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart .chart-node { cursor: pointer; outline: none; }
.chart .chart-node:focus circle, .chart .chart-node:hover circle { stroke: var(--link); stroke-width: 3px; }
.chart .chart-node.selected circle { fill: var(--link); stroke: white; stroke-width: 3px; }
.chart .chart-node.selected text { fill: var(--link); }
.chart svg text.direction-marker { fill: white; stroke: none; font-size: 12px; font-weight: 700; }
.chart svg.compact-chart text.direction-marker { font-size: 13px; }
.chart svg text.direction-label { fill: #444; font-size: 11px; }
.chart .chart-node:focus .direction-hit-target, .chart .chart-node:hover .direction-hit-target { stroke: none; }
.direction-hit-target { pointer-events: all; }
.chart-caption { margin: 0; padding: 14px 20px 18px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 1120px; }
.chart-details { border-top: 1px solid var(--line); padding: 8px 20px 15px; color: var(--muted); font-size: 14px; }
.chart-details summary { min-height: 44px; display: flex; align-items: center; color: var(--link); }
.chart-details summary::before { content: '▸'; margin-right: 8px; }
.chart-details[open] summary::before { content: '▾'; }
.chart-details dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px; margin: 8px 0 16px; }
.chart-details dt { font-weight: 600; }
.chart-details dd { margin: 0; overflow-wrap: anywhere; }
.chart-details ul { padding-left: 18px; line-height: 1.6; }
.session-tools { padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
.session-tools > summary { display: list-item; min-height: 44px; padding: 12px 0 10px; font-size: 15px; color: var(--link); }
.session-tools > p { font-size: 14px; color: var(--muted); margin: 8px 0 14px; }
.tool-buttons { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; }
.tool-buttons button { font-size: 15px; }
.stored-view-link { max-width: 900px; margin: 5px 0 12px; }
.stored-view-link label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.stored-view-link > div { display: flex; gap: 8px; }
#stored-view-url { min-width: 0; flex: 1; min-height: 44px; padding: 9px 10px; border: 1px solid #aaa; background: #fff; font-size: 15px; }
#copy-view-link { flex-shrink: 0; font-size: 15px; }
#stored-view-status { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
#stored-view-status:empty { display: none; }
#view-drop { display: block; width: 100%; margin: 0 0 12px; padding: 14px; border: 1px dashed #aaa; color: var(--link); background: #fafafa; font-size: 15px; text-align: left; }
#view-drop.drag-over, #view-drop[data-dragover=true] { border-color: var(--link); background: #edf2f7; }
footer { max-width: 1496px; margin: auto; padding: 20px 28px 28px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--muted); }
footer p { margin: 0; max-width: 950px; }
footer > div { display: flex; gap: 18px; flex-shrink: 0; }
.skip-link { position: absolute; top: -80px; left: 10px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
dialog { border: 1px solid #888; border-radius: 2px; padding: 26px; background: #fff; width: min(650px, calc(100% - 28px)); max-height: 85vh; color: var(--ink); }
dialog::backdrop { background: #0006; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 23px; font-weight: 500; margin: 0; }
.dialog-heading button { min-width: 44px; }
dialog p, dialog li { font-size: 16px; line-height: 1.6; }
dialog li { margin-bottom: 12px; }
dialog summary { min-height: 44px; padding: 10px 0; color: var(--link); }
.notice { padding: 14px; background: #f5f5f5; border-left: 2px solid #888; }
.not-found { padding-top: 15vh; max-width: 800px; }
.not-found h1 { font-size: 30px; }
#bridge-form { display: grid; gap: 12px; margin: 15px 0; }
#bridge-form label { display: grid; gap: 7px; font-size: 15px; }
#bridge-form input { min-height: 44px; min-width: 0; border: 1px solid #aaa; padding: 10px; }
#bridge-message { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
body.busy #explore-button { cursor: progress; }
.columns.empty-path { height: auto; min-height: 0; max-height: none; }
.empty-path .miller-column { height: auto; }
.empty-path .empty-state { margin-bottom: 0; }
.miller-column:focus-within { scroll-margin-inline: 16px; }
@media (max-width: 1150px) {
  .options-open .question-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { flex-direction: column; gap: 12px; }
  .miller-column { flex-basis: 300px; }
  .miller-column:last-child { flex-basis: 380px; }
}
@media (max-width: 760px) {
  .masthead { padding: 7px 16px; gap: 10px; }
  .wordmark { font-size: 25px; }
  .header-actions { gap: 10px; }
  .header-actions button { font-size: 14px; padding: 8px 2px; }
  main { padding: 0 16px; }
  .home-heading { margin-top: 20px; font-size: 23px; }
  .search-workbench { padding-top: 14px; }
  .resume-prior { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 10px; }
  .resume-actions { width: 100%; }
  .question-input { gap: 7px; }
  .question-input input { font-size: 16px; padding: 10px; }
  .question-input button { min-width: 78px; padding: 9px 13px; }
  #options-summary { margin-left: 4px; font-size: 12px; }
  .options-open .question-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 3px 0 16px; }
  .status-line { font-size: 12px; gap: 12px; }
  .status-line > span { max-width: 110px; white-space: normal; text-align: right; }
  .path-navigation { gap: 5px; }
  .path-navigation > button { font-size: 14px; padding: 8px 2px; }
  #path { gap: 1px; }
  #path button { font-size: 14px; max-width: 210px; padding: 8px 6px; }
  #path .path-arrow { padding: 0; }
  .explorer { display: grid; grid-template-columns: minmax(0, 1fr) 94px; }
  .context-heading { display: contents; }
  .context-heading > div:first-child { grid-column: 1 / -1; grid-row: 1; padding: 14px 0 12px; }
  .context-heading h1 { font-size: 23px; margin-bottom: 5px; }
  .context-heading p { font-size: 13px; line-height: 1.5; }
  .column-navigation { grid-column: 2; grid-row: 4; align-self: start; z-index: 3; gap: 5px; justify-content: flex-end; padding-right: 1px; }
  .column-navigation > span { display: none; }
  #pending-indicator { grid-column: 1 / -1; grid-row: 3; }
  .column-navigation button { width: 44px; }
  .columns { grid-column: 1 / -1; grid-row: 4; min-width: 0; height: 520px; max-height: 72vh; min-height: 350px; }
  .miller-column, .miller-column:last-child { flex: 0 0 calc(100% - 16px); }
  .miller-column:last-child { flex-basis: 100%; }
  .column-heading { padding: 10px 104px 10px 12px; min-height: 66px; }
  .current-column-heading { min-height: 44px; padding-right: 104px; }
  .direction { padding: 13px 12px 7px 10px; gap: 8px; }
  .direction h3 { font-size: 17px; }
  .direction-number { flex-basis: 17px; }
  .direction-meta { min-height: 32px; display: flex; align-items: center; padding-right: 66px; margin-top: 8px; font-size: 13px; }
  .direction-arrow { display: none; }
  .direction-evidence { position: absolute; right: 10px; bottom: 2px; width: auto; min-width: 62px; height: 44px; padding: 8px 2px; border: 0; background: transparent; }
  .direction-evidence:hover { background: #eee; }
  .navigator-note { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .reading-pane { padding-top: 22px; }
  .view-tabs { gap: 18px; }
  .view-tabs button { font-size: 16px; }
  .evidence-intro { align-items: flex-start; gap: 12px; margin-top: 12px; }
  .evidence-intro p { font-size: 14px; }
  .evidence-intro button { font-size: 14px; padding: 8px; }
  .evidence-card { padding: 20px 0; }
  .evidence-card h3 { font-size: 18px; }
  .passage { font-size: 17px; }
  .source-meta { font-size: 13px; }
  .source-actions { gap: 18px; }
  .source-actions a, .source-actions button { font-size: 15px; }
  .chart, .chart svg { min-height: 300px; }
  .panel-heading { padding: 16px 14px 0; }
  .panel-heading h3 { font-size: 17px; }
  .chart-key { display: none; }
  .chart-controls { padding: 12px 14px 0; font-size: 14px; }
  .chart-caption { padding: 12px 14px 16px; font-size: 14px; }
  .chart-details { padding: 8px 14px 14px; font-size: 14px; }
  .chart-details dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .chart-details dd { margin-bottom: 9px; }
  .session-tools { margin-top: 24px; }
  .tool-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-buttons button { min-width: 0; font-size: 15px; }
  footer { padding: 18px 16px 24px; font-size: 13px; }
  footer > div { gap: 16px; flex-wrap: wrap; }
  dialog { padding: 20px; }
  .dialog-heading h2 { font-size: 21px; }
}
@media (max-width: 380px) {
  .masthead { padding: 7px 12px; gap: 8px; }
  .wordmark { font-size: 22px; }
  .header-actions { gap: 8px; }
  .header-actions button { font-size: 13px; }
  main { padding: 0 12px; }
  #options-summary { margin-left: 0; font-size: 11px; }
  .options-toggle { gap: 6px; }
  .context-heading h1 { font-size: 22px; }
  .path-navigation > button, #path button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.explorer-modes { display: flex; align-items: center; gap: 22px; max-width: 1496px; margin: auto; padding: 0 28px; border-bottom: 1px solid var(--line); font-size: 14px; }
.explorer-modes > * { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; border-bottom: 2px solid transparent; }
.explorer-modes [aria-current] { color: var(--ink); border-bottom-color: #555; font-weight: 600; }
@media (max-width: 760px) { .explorer-modes { padding: 0 16px; gap: 20px; } }
@media (max-width: 380px) { .explorer-modes { padding: 0 12px; } }
.atlas-panel{border-top:1px solid var(--line,#d9d6d1);padding:1rem 0;margin:.75rem 0;color:var(--ink,#292622);max-width:72rem}
.atlas-panel>p{max-width:85ch;line-height:1.6}.atlas-panel details{margin:.65rem 0;padding:.55rem 0;border-bottom:1px solid var(--line,#d9d6d1)}
.atlas-panel summary{cursor:pointer;font-weight:600;padding:.3rem 0}.atlas-panel h3{font-size:1rem;margin:.9rem 0 .3rem}.atlas-panel li{line-height:1.6}
.atlas-panel textarea{display:block;box-sizing:border-box;width:100%;font:inherit;line-height:1.5;padding:.75rem;border:1px solid var(--line,#d9d6d1);border-radius:3px;background:#fff;color:inherit}
.atlas-panel button,.atlas-lookup button,.atlas-entrances button,.saved-branches button{min-height:42px;text-align:left;margin:.3rem .5rem .3rem 0;padding:.55rem .85rem}
.atlas-connection-list>div{padding:.45rem 0}.atlas-connection-list>div>span,.atlas-provenance,.atlas-member-list small{font-size:.85rem;color:var(--muted,#64615c)}
.atlas-connection-list p{margin:.1rem 0 .4rem;max-width:85ch;line-height:1.5}.atlas-member-list article{padding:.9rem 0;border-bottom:1px solid var(--line,#d9d6d1)}
.atlas-member-list p{line-height:1.6;margin:.4rem 0}.atlas-member-list small{overflow-wrap:anywhere}.atlas-entrances,.atlas-lookup{padding:.9rem 0}.atlas-entrances h2{font-size:1.15rem;margin:.3rem 0}.atlas-entrances p,.atlas-lookup p{line-height:1.5}.saved-branches button{display:block}
.source-scientific-context pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;line-height:1.5;max-height:24rem;overflow:auto;background:var(--soft,#f5f5f5);padding:.75rem}.source-scientific-context h4{font-size:.95rem;margin:.8rem 0 .4rem}.source-scientific-context section{border-left:2px solid var(--line,#d2d2d2);padding-left:1rem}
.columns.prepared-columns{height:auto;min-height:0;max-height:72vh}.prepared-columns .miller-column{height:auto;max-height:72vh}.context-heading #atlas-current-summary{font-size:16px;line-height:1.55;color:var(--ink);max-width:85ch;margin-top:.6rem}.atlas-panel{padding-top:.3rem;margin-top:.7rem}
.source-paper{border-bottom:1px solid var(--line)}.source-paper>.evidence-card{border-bottom:0}.source-facets{margin:0 18px 18px}.source-facets>summary{cursor:pointer;color:var(--muted);padding:8px 0}.source-scientific-context section{margin-top:1rem}.source-scientific-context button{margin:.5rem 0}.source-scientific-context pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}

.lookup-note{font-size:12px;line-height:1.5;color:var(--muted);margin:.15rem 0 .4rem}

.prepared-view #full-question-details{margin:.7rem 0 .2rem}.prepared-view #full-question-details>summary{font-size:15px}.prepared-view #atlas-current-summary{font-size:16px;line-height:1.6;margin:.5rem 0;color:var(--ink)}.prepared-view #current-context{font-size:13px;color:var(--muted)}.prepared-view .context-heading{padding-bottom:10px}footer details{margin-top:1rem}footer summary{min-height:44px;display:list-item;color:var(--link)}

@media(max-width:760px){.prepared-view #full-question-details{grid-column:1/-1;grid-row:5}.prepared-view .navigator-note{display:none}}

.resume-disclosure{margin:12px 0;border-bottom:1px solid var(--line)}.resume-disclosure>summary{min-height:44px;padding:12px 0;color:var(--link);font-size:15px}.resume-disclosure .resume-prior{margin:0;border-top:0;border-bottom:0}@media(max-width:760px){.prepared-view #resume-disclosure{grid-column:1/-1;grid-row:6}}

.source-contributions>div>details{margin:.8rem 0;padding:.5rem 0;border-bottom:1px solid var(--line)}.source-contributions article{padding:.5rem 0;border-top:1px solid var(--line)}.source-contributions pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem}.source-contributions h3{font-size:1rem}

.source-contributions small{overflow-wrap:anywhere}

.source-inspection{border-left:3px solid #a52929;padding:.6rem 1rem;margin:.5rem 0 1.2rem;scroll-margin-top:1rem}.source-inspection h2{font-size:1.2rem;margin:.3rem 0}.source-inspection p{line-height:1.6;overflow-wrap:anywhere}.source-inspection pre{white-space:pre-wrap;overflow-wrap:anywhere}
