body[data-variant=B] {
  background:#faf8f4; color:#242321;
  --accent:#bc001d; --muted:#605b55; --surface:#fff; --line:#d8d0c5; --control-line:#837767;
}
body[data-variant=B] header { max-width:1440px; padding:1.5rem 3rem; gap:2rem; flex-wrap:wrap; border-color:var(--line); }
body[data-variant=B] .brand { display:flex; flex-direction:column; align-items:flex-start; gap:.35rem; flex:0 1 auto; min-width:0; max-width:100%; overflow-wrap:anywhere; color:#a30019; font:500 1.2rem/1.25 'Literata',serif; letter-spacing:0; }
body[data-variant=B] .brand small { margin:0; font:400 .65rem/1.4 'Golos Text',sans-serif; color:var(--muted); letter-spacing:0; }
body[data-variant=B] nav a { display:inline-flex; align-items:center; min-height:44px; white-space:nowrap; }
body[data-variant=B] nav a[aria-current=page] { box-shadow:inset 0 -2px var(--accent); }
body[data-variant=B] #vision { font-size:.85rem; min-height:44px; max-width:100%; white-space:normal; flex:0 1 auto; }
body[data-variant=B] .museum-home { padding:2.5rem 3rem; }
body[data-variant=B] .museum-lead { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap:4rem; align-items:center; max-width:1050px; margin:auto; padding:1rem 0 3rem; }
body[data-variant=B] .brand-art { position:relative; margin:0; width:100%; max-width:360px; justify-self:center; background:#eee7dc; border-top:3px solid var(--accent); padding:2rem 1rem 5rem; }
body[data-variant=B] .brand-art img { width:100%; height:auto; display:block; aspect-ratio:472/434; object-fit:contain; mix-blend-mode:multiply; }
body[data-variant=B] .brand-art::after { content:'130'; position:absolute; bottom:-.18em; right:.1em; font:400 7rem/1 'Literata',serif; color:var(--accent); letter-spacing:-.08em; }
body[data-variant=B] .museum-introduction { display:block; min-width:0; }
body[data-variant=B] .museum-introduction h1 { font:500 clamp(3rem,5.8vw,5.5rem)/1.08 'Literata',serif; letter-spacing:-.04em; margin:1rem 0; overflow-wrap:anywhere; }
body[data-variant=B] .eyebrow { color:#a30019; font-size:.75rem; letter-spacing:.13em; }
body[data-variant=B] .anniversary { color:var(--muted); font-size:1rem; margin:1rem 0; }
body[data-variant=B] .museum-invitation { font-size:1.05rem; line-height:1.7; max-width:38ch; margin:1.4rem 0; }
body[data-variant=B] .primary { display:inline-flex; align-items:center; justify-content:space-between; gap:clamp(.75rem,3vw,2rem); min-height:48px; max-width:100%; padding:.9rem clamp(.75rem,3vw,1.4rem); background:var(--accent); color:#fff; border:1px solid var(--accent); }
body[data-variant=B] .primary:hover { background:#940017; border-color:#940017; color:#fff; }
body[data-variant=B] .notice { color:var(--muted); font-size:.8rem; line-height:1.65; }
body[data-variant=B] .museum-questions { border-top:1px solid var(--line); padding-top:1.8rem; }
body[data-variant=B] .museum-questions h2 { font-size:1.65rem; }
body[data-variant=B] .question-rows { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; }
body[data-variant=B] .question-rows a { overflow-wrap:anywhere; display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:44px; padding:1rem 0; font-size:.95rem; line-height:1.6; border-bottom:1px solid var(--line); }
body[data-variant=B] .question-rows span { color:var(--accent); flex-shrink:0; }
body[data-variant=B] footer { max-width:1440px; padding:1.5rem 3rem; display:flex; align-items:center; justify-content:space-between; gap:.5rem 1.5rem; border-color:var(--line); color:var(--muted); font-size:.85rem; }
body[data-variant=B] footer a { display:inline-flex; align-items:center; min-height:44px; }
.footer-partners { display:flex; flex-wrap:wrap; flex-shrink:0; align-items:center; gap:.5rem 1rem; max-width:100%; }
.footer-partners img { display:block; height:auto; max-width:100%; }
.footer-museum-logo { width:6.5rem; }
.footer-fund-logo { width:12.5rem; }
.footer-grant { flex:1 1 22rem; margin:0; min-width:0; line-height:1.5; }
.footer-about { flex-shrink:0; }
body.low .footer-partners { background:#faf8f4; padding:.25rem; }
body[data-variant=B] .chat-layout { max-width:1440px; border-top:0; }
body[data-variant=B] .history { background:#f1ede6; color:inherit; border-color:var(--line); padding:1.5rem; }
body[data-variant=B] .history h2 { color:var(--muted); }
body[data-variant=B] .history button { color:inherit; min-height:44px; }
body[data-variant=B] .history button:focus-visible { outline:3px solid #174d85; outline-offset:4px; }
body[data-variant=B] .history .new { background:#fff; color:inherit; border:1px solid var(--control-line); }
body[data-variant=B] .history button[aria-current=true],body[data-variant=B] .history button:hover { background:#e4dbcd; color:#242321; }
body[data-variant=B] .history button[aria-current=true] { border-left:3px solid var(--accent); }
body[data-variant=B] .chat-main { padding:2rem 2.5rem; min-width:0; }
body[data-variant=B] .chat-heading { background:none; min-height:100px; gap:1.5rem; border-bottom:1px solid var(--line); padding-bottom:1rem; }
body[data-variant=B] .profile-photo { width:100px; height:100px; object-fit:contain; filter:none; mask-image:none; mix-blend-mode:normal; }
body[data-variant=B] .chat-heading h1 { font-size:2rem; line-height:1.2; }
body[data-variant=B] :is(select,textarea,.feedback input) { color:inherit; background:#fff; border:1px solid var(--control-line); border-radius:0; }
body[data-variant=B] textarea::placeholder { color:#6c655e; opacity:1; }
body[data-variant=B] :is(button,select,summary) { min-height:44px; }
body[data-variant=B] summary { cursor:pointer; }
body[data-variant=B] .composer { background:none; border:0; padding:0; }
body[data-variant=B] .composer-bar { margin-top:1rem; gap:1rem; align-items:center; }
body[data-variant=B] .answer { border-top-color:var(--line); }
body[data-variant=B] .answer-text { font:400 1.08rem/1.85 'Golos Text',sans-serif; }
body[data-variant=B] .about { max-width:1020px; margin:0 auto; padding:3rem; }
body[data-variant=B] .about h1,body[data-variant=B] .about .index { color:#a30019; }
body[data-variant=B] .about :is(h1,h2,h3,p) { overflow-wrap:anywhere; }
body[data-variant=B] #access { width:100%; max-width:1440px; margin:0 auto; padding:1.25rem 3rem; gap:1.25rem; border-bottom:2px solid currentColor; }
body[data-variant=B] :is(button,a,input,textarea,select):focus-visible { outline:3px solid #174d85; outline-offset:4px; }
body.no-decor[data-variant=B] :is(.brand-art,.profile-photo) { display:none; }
body.no-decor[data-variant=B] .museum-lead { grid-template-columns:1fr; }
body.low :is(*,*::before,*::after) { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
@media(max-width:950px) {
  body[data-variant=B] header { flex-wrap:wrap; gap:1rem; }
  body[data-variant=B] header nav { order:3; width:100%; justify-content:flex-start; }
  body[data-variant=B] .museum-lead { gap:2rem; }
}
@media(max-width:700px) {
  body[data-variant=B] :is(header,footer,#access) { padding:1.25rem; }
  body[data-variant=B] header { display:flex; flex-wrap:wrap; align-items:center; }
  body[data-variant=B] header nav { grid-column:1/-1; grid-row:2; gap:1rem; flex-wrap:wrap; }
  body[data-variant=B] .brand { font-size:1.1rem; }
  body[data-variant=B] .brand small { font-size:.6rem; }
  body[data-variant=B] #vision { padding:.5rem; }
  body[data-variant=B] .museum-home { padding:1.25rem; }
  body[data-variant=B] .museum-lead { display:flex; flex-direction:column; align-items:stretch; padding:0 0 1.5rem; gap:1.5rem; }
  body[data-variant=B] .brand-art { order:2; max-width:360px; align-self:center; }
  body[data-variant=B] .museum-introduction h1 { font-size:clamp(1.8rem,1.25rem + 4vw,3rem); }
  body[data-variant=B] .museum-introduction h1 br { display:none; }
  body[data-variant=B] .question-rows { grid-template-columns:minmax(0,1fr); gap:0; }
  body[data-variant=B] .chat-main { padding:1.25rem; }
  body[data-variant=B] .chat-heading h1 { font-size:1.5rem; }
  body[data-variant=B] .profile-photo { width:72px; height:80px; }
  body[data-variant=B] .about { padding:1.5rem 1.25rem; }
  .footer-partners { width:100%; gap:.5rem .75rem; }
  .footer-museum-logo { width:min(6.5rem,35%); }
  .footer-fund-logo { width:min(12.5rem,59%); }
  .footer-grant { flex-basis:100%; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

.source-cards { margin:.65rem 0; min-width:0; border-block:1px solid var(--line); }
.source-cards > summary,.source-card > summary { display:list-item; padding:.5rem .25rem; min-height:44px; box-sizing:border-box; line-height:1.6; cursor:pointer; overflow-wrap:anywhere; }
.source-cards summary::marker { color:var(--accent); }
.source-cards summary:focus-visible,.source-citation:focus-visible { outline:3px solid #174d85; outline-offset:3px; }
.source-card { border-top:1px solid var(--line); }
.source-excerpt { margin:.5rem 0 1rem; padding:.25rem 0 .25rem 1rem; border-left:2px solid var(--line); line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
body[data-variant=B] .answer-text .source-citation { display:inline; vertical-align:baseline; min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:var(--accent); font:inherit; letter-spacing:inherit; word-spacing:inherit; text-decoration:underline; text-underline-offset:.15em; cursor:pointer; }
body.low :is(.source-cards summary,.source-citation):focus-visible { outline-color:var(--accessible-fg); }
body.low .answer-text .source-citation { color:var(--accessible-fg); font-size:inherit; }
body.spaced .source-excerpt { line-height:2; }



/* Dialogue controls share one quiet toolbar beneath the answer. */
body[data-variant=B] .feedback { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem 1rem; margin:.4rem 0 0; font-size:.8rem; }
body[data-variant=B] .feedback .actions { display:contents; }
body[data-variant=B] .feedback :is(button,summary) { font-size:inherit; line-height:1.4; padding:.4rem 0; min-height:36px; }
body[data-variant=B] .feedback details { margin:0; }
body[data-variant=B] .feedback details[open] { flex-basis:100%; }
body[data-variant=B] .feedback summary { padding-right:.5rem; }
body[data-variant=B] .feedback-status:empty { display:none; }
body[data-variant=B] .feedback-status { flex-basis:100%; margin:0; }
body[data-variant=B] .message .actions { margin-top:.6rem; }
body[data-variant=B] .composer-bar { justify-content:flex-end; }
.ui-status:empty { display:none; }
.ui-status.is-waiting { display:flex; align-items:center; min-height:2rem; color:var(--muted); }
.ui-status.is-waiting::after { content:'•••'; display:inline-block; width:1.8em; margin-left:.45rem; letter-spacing:.2em; animation:waiting-dots 1.25s steps(4,end) infinite; }
@keyframes waiting-dots { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0 0 0 0); } }
.answer-enter { animation:none; }
.answer-enter .typed-word { animation:typed-word .7s ease-out both; animation-delay:var(--word-delay); }
@keyframes typed-word { from { opacity:0; } to { opacity:1; } }
.show-answer { padding:.35rem 0; margin:.25rem 0; font-size:.75rem; color:var(--muted); }
body.low .feedback :is(button,summary) { min-height:44px; }
@media(prefers-reduced-motion:reduce) { .answer-enter .typed-word { opacity:1; } .ui-status.is-waiting::after { animation:none; } }

.debug-toggle { display:flex; align-items:center; gap:.6rem; font-size:.8rem; color:var(--muted); margin:1rem 0; }
.answer-debug { margin:.6rem 0; font-size:.8rem; }
.answer-debug summary { width:fit-content; }
.debug-content { padding:.75rem; border:1px solid var(--line); overflow-x:auto; }
.debug-content table { border-collapse:collapse; font:inherit; width:100%; }
.debug-content :is(th,td) { padding:.5rem; text-align:left; border-bottom:1px solid var(--line); }
.debug-content td { overflow-wrap:anywhere; }

@media (min-width: 951px) {
  body.page-home:not(.low)[data-variant=B] header { padding-block:clamp(.75rem,1.8vh,1.5rem); }
  body.page-home:not(.low)[data-variant=B] footer { padding-block:.5rem; }
  body.page-home:not(.low)[data-variant=B] main { display:flex; flex-direction:column; }
  body.page-home:not(.low)[data-variant=B] .museum-home { display:flex; flex:1; flex-direction:column; width:100%; margin:0 auto; padding-block:clamp(1rem,2.5vh,2.5rem); }
  body.page-home:not(.low)[data-variant=B] .museum-lead { flex:1; width:100%; margin:0 auto; padding:0 0 clamp(1rem,2vh,2rem); }
  body.page-home:not(.low)[data-variant=B] .brand-art { max-width:clamp(220px,35vh,360px); padding:1.25rem .75rem 3.5rem; }
  body.page-home:not(.low)[data-variant=B] .brand-art::after { font-size:clamp(5rem,12vh,7rem); }
  body.page-home:not(.low)[data-variant=B] .museum-introduction h1 { font-size:clamp(3rem,8vh,5.5rem); margin:.6rem 0; }
  body.page-home:not(.low)[data-variant=B] .anniversary { margin:.6rem 0; }
  body.page-home:not(.low)[data-variant=B] .museum-invitation { margin:1rem 0; }
  body.page-home:not(.low)[data-variant=B] .museum-introduction .notice { margin-top:.75rem; }
  body.page-home:not(.low)[data-variant=B] .museum-questions { margin-top:clamp(.75rem,2vh,2rem); padding-top:1rem; }
  body.page-home:not(.low)[data-variant=B] .museum-questions h2 { font-size:1.4rem; margin-bottom:.5rem; }
  body.page-home:not(.low)[data-variant=B] .question-rows a { padding:.6rem 0; }
}

@media (min-width: 951px) and (min-height: 850px) {
  body.page-home:not(.low)[data-variant=B] .museum-lead { max-width:1180px; gap:clamp(3rem,5vw,5rem); }
  body.page-home:not(.low)[data-variant=B] .brand-art { max-width:clamp(360px,49vh,500px); padding:1.75rem 1rem 4.5rem; }
  body.page-home:not(.low)[data-variant=B] .brand-art::after { font-size:clamp(7rem,14vh,8.5rem); }
  body.page-home:not(.low)[data-variant=B] .museum-introduction h1 { font-size:clamp(5.5rem,11vh,7rem); }
  body.page-home:not(.low)[data-variant=B] .museum-invitation { font-size:1.15rem; }
}
@media (min-width: 951px) {
  body.page-about:not(.low)[data-variant=B] header { padding-block:clamp(.75rem,1.8vh,1.5rem); }
  body.page-about:not(.low)[data-variant=B] footer { padding-block:.5rem; }
  body.page-about:not(.low)[data-variant=B] main { display:flex; flex-direction:column; }
  body.page-about:not(.low)[data-variant=B] .about { display:grid; flex:1; width:100%; margin:0 auto; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto auto repeat(2,minmax(min-content,1fr)) auto; align-items:center; gap:clamp(1rem,2vh,2rem) 3rem; max-width:1180px; padding:clamp(1rem,3vh,2.5rem) 3rem; }
  body.page-about:not(.low)[data-variant=B] .about > .eyebrow { grid-column:1/-1; }
  body.page-about:not(.low)[data-variant=B] .about h1 { margin:0; font-size:clamp(2rem,5.4vh,4rem); line-height:1.2; }
  body.page-about:not(.low)[data-variant=B] .about > .intro { margin:0; font-size:clamp(1rem,1.9vh,1.2rem); line-height:1.7; }
  body.page-about:not(.low)[data-variant=B] .about section { grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:3rem; padding:1rem 0; }
  body.page-about:not(.low)[data-variant=B] .about section > div { display:contents; }
  body.page-about:not(.low)[data-variant=B] .about section .index { grid-column:1; grid-row:1; }
  body.page-about:not(.low)[data-variant=B] .about section h2 { grid-column:1; grid-row:1; padding-left:2.75rem; }
  body.page-about:not(.low)[data-variant=B] .about section p { grid-column:2; grid-row:1; }
  body.page-about:not(.low)[data-variant=B] .about h2 { margin:0; font-size:clamp(1.4rem,3vh,2rem); line-height:1.3; }
  body.page-about:not(.low)[data-variant=B] .about section p { margin:0; font-size:clamp(1rem,1.9vh,1.2rem); line-height:1.7; }
  body.page-about:not(.low)[data-variant=B] .about > .primary { justify-self:start; }
  body.page-about:not(.low)[data-variant=B] .about > .notice { margin:0; align-self:center; }
}

.question-jump,
.history details > summary { display:none; }

body.low[data-variant=B] {
  --accent:var(--accessible-accent);
  --muted:var(--accessible-fg);
  --line:var(--accessible-fg);
  --surface:var(--accessible-bg);
  font-family:Arial,sans-serif;
  line-height:1.55;
}
body.low[data-variant=B] main { max-width:none; }
body.low[data-variant=B] :is(header,footer,#access,.museum-home,.about,.chat-main,.history) {
  max-width:none;
  width:100%;
  margin-inline:auto;
  padding:1rem clamp(12px,4vw,32px);
}
body.low[data-variant=B] :is(.brand,.eyebrow,.about h1,.about .index) { color:inherit; }
body.low[data-variant=B] :is(.brand,.brand small) { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
body.low[data-variant=B] :is(h1,h2,h3,p,a,button,label,select,textarea,summary) {
  font-family:inherit;
  letter-spacing:inherit;
  overflow-wrap:anywhere;
}
body.low[data-variant=B] :is(.brand small,.eyebrow,.notice,.anniversary,.persona-description,.footer-grant,
  .question-rows a,.history button,.message .role,.composer label,.feedback,.answer-debug,.show-answer) {
  font-size:1rem;
}
body.low[data-variant=B] .answer-text,
body.low[data-variant=B] .museum-invitation { font:inherit; max-width:60ch; }
body.low[data-variant=B] :is(.museum-introduction h1,.about h1,.chat-heading h1) {
  font:700 1.6rem/1.2 Arial,sans-serif;
  margin-block:.5rem;
}
body.low[data-variant=B] :is(.museum-introduction h1 br,.history details h2) { display:none; }
body.low[data-variant=B] header { display:flex; flex-flow:row wrap; align-items:center; gap:.5rem 1rem; }
body.low[data-variant=B] header nav {
  order:0;
  width:auto;
  flex-flow:row wrap;
  gap:0 1rem;
  justify-content:flex-start;
}
body.low[data-variant=B] nav a { white-space:normal; }
body.low[data-variant=B] a,
body.low[data-variant=B] .answer-text .source-citation {
  text-decoration:underline;
  text-underline-offset:.16em;
}
body.low[data-variant=B] nav a[aria-current=page] { font-weight:700; box-shadow:none; }
body.low[data-variant=B] :is(button,select,summary) { min-height:48px; max-width:100%; }
body.low[data-variant=B] :is(button,a,input,textarea,select,summary):focus-visible {
  outline:3px solid var(--accessible-accent);
  outline-offset:3px;
}
body.low[data-variant=B] :is(button:not(.source-citation),select,textarea,.feedback input) {
  border:1px solid currentColor;
  background:var(--accessible-bg);
  color:var(--accessible-fg);
}
body.low[data-variant=B] :is(.primary,.history button[aria-current=true],.actions button[aria-pressed=true]) {
  background:var(--accessible-fg)!important;
  color:var(--accessible-bg)!important;
  border:1px solid var(--accessible-fg);
}
body.low[data-variant=B] .composer-bar .primary { gap:.75rem; padding-inline:1rem; overflow-wrap:normal; word-break:normal; }
body.low[data-variant=B] :is(.primary,.history button,.feedback button):hover { text-decoration:underline; }
body.low[data-variant=B] button:disabled { opacity:1; border-style:dashed; }
body.low[data-variant=B] textarea::placeholder { color:inherit; }
body.low[data-variant=B] #vision { font-size:1rem; white-space:normal; }
body.low[data-variant=B] #access { display:block; }
.access-controls {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));
  gap:.75rem;
}
.access-field { display:grid; align-content:end; gap:.3rem; min-width:0; }
body.low[data-variant=B] .access-field label { display:block; margin:0; font-size:1rem; }
.access-select { position:relative; min-width:0; }
.access-select::after {
  content:'';
  position:absolute;
  inset-inline-end:.75em;
  top:50%;
  width:.35em;
  height:.35em;
  border:solid currentColor;
  border-width:0 2px 2px 0;
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
body.low[data-variant=B] .access-select select {
  appearance:none;
  display:block;
  width:100%;
  padding:.3em 1.65em .3em .55em;
}
@media (forced-colors: active) {
  body[data-variant=B] nav a[aria-current=page] { border-bottom:2px solid LinkText; }
  .access-select::after { display:none; }
  body.low[data-variant=B] .access-select select { appearance:auto; }
}
.access-options { margin-top:.75rem; }
body.low[data-variant=B] .access-options .access-check {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:.5em;
  min-height:48px;
}
.access-check input { flex:none; width:1em; height:1em; margin:.25em 0 0; accent-color:var(--accessible-accent); }
.access-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.75rem; }
body.low[data-variant=B] .museum-lead { display:block; max-width:none; padding:0 0 1rem; }
body.low[data-variant=B] .brand-art { margin:0 0 1rem; }
body.low[data-variant=B] .question-rows { grid-template-columns:minmax(0,1fr); gap:0; }
body.low[data-variant=B] .about section { display:block; }
body.low[data-variant=B] .chat-layout { display:block; max-width:none; }
body.low[data-variant=B] .question-jump { display:inline-block; margin:.5rem clamp(12px,4vw,32px); padding:.35rem 0; }
body.low[data-variant=B] .history { border:0; border-bottom:1px solid var(--line); }
body.low[data-variant=B] .history details > summary { display:list-item; padding:.35rem 0; }
body.low[data-variant=B] .history button { width:auto; margin:.2rem 0; }
body.low[data-variant=B] .chat-heading { min-height:0; }
body.low[data-variant=B] .composer textarea { min-height:5em; }
body.low[data-variant=B] .feedback :is(button,summary) { padding:.35rem; }
body.low[data-variant=B] .answer-text .source-citation { min-height:0; }
body.low[data-variant=B] footer { flex-wrap:wrap; }
body.low[data-variant=B] .footer-partners { max-width:100%; }
body.low.spaced[data-variant=B] :is(p,label,a,button,textarea,summary,.answer-text) { line-height:1.85; }
