:root {
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  --slate: #252c20;
  --mist: #eeeddc;
  --blue: #92997b;
  --brass: #c0a566;
  --panel: #dedcc7;
  --panel-ink: #283020;
  --panel-muted: #555e43;
  --panel-line: #b4b69a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  --room: #252c20;
  --room-raised: #343f2b;
  --room-ink: #eeeddc;
  --room-muted: #bec3a7;
  --room-line: #5c654b;
  --stage-center: #48513a;
  --stage-edge: #252c20;
  --stage-label-bg: rgba(37, 44, 32, .62);
  margin: 0;
  background: var(--room);
  color: var(--room-ink);
  font-size: 16px;
  line-height: 1.6;
}
body[data-theme="light"] {
  color-scheme: light;
  --room: #d2d3bb;
  --room-raised: #eff0df;
  --room-ink: #29311f;
  --room-muted: #535e40;
  --room-line: #a5ad8d;
  --stage-center: #f3f1e2;
  --stage-edge: #c6cbb2;
  --stage-label-bg: rgba(238, 237, 220, .78);
  --panel: #e9e7d4;
}
button, input, summary { font: inherit; }
button, summary, a, input { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled, input:disabled { cursor: default; opacity: .42; }
button, summary, a, input { outline-offset: 4px; }
button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--brass);
}
button { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 18px; }
h1, h2, h3 { font-weight: 600; line-height: 1.18; margin: 0; }
.museum-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: 2400px;
  height: 100svh;
  min-height: 740px;
  margin: 0 auto;
}
.museum-header {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 102px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--room-line);
  background: var(--room);
}
.museum-brand { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.brand-category { font-size: 14px; letter-spacing: .19em; text-transform: uppercase; color: var(--room-muted); }
.brand-name { margin-top: 3px; font-size: 18px; letter-spacing: .095em; text-transform: uppercase; font-weight: 600; }
.header-exhibit { display: flex; align-items: center; gap: 18px; }
.header-exhibit h1 { font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.header-exhibit > span { font-size: 14px; color: var(--room-muted); }
.reconstruction-badge { padding: 5px 0 5px 20px; border-left: 1px solid var(--room-line); color: var(--room-muted); font-size: 14px; white-space: nowrap; }
.exhibit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; min-height: 0; }
.gallery-column { display: flex; min-width: 0; min-height: 0; flex-direction: column; }
.stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 340px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 49% 44%, var(--stage-center), var(--stage-edge) 90%);
}
#viewport { display: block; width: 100%; height: 100%; position: absolute; inset: 0; touch-action: none; }
.stage-label { position: absolute; top: 22px; left: 28px; z-index: 3; padding: 5px 11px; color: var(--room-ink); background: var(--stage-label-bg); border-radius: 3px; font-size: 14px; pointer-events: none; }
.stage-instruction { position: absolute; bottom: 20px; left: 28px; right: 28px; text-align: center; font-size: 14px; color: var(--room-muted); pointer-events: none; }
#read-detail { display: none; position: absolute; z-index: 7; right: 16px; bottom: 16px; min-height: 46px; padding: 10px 16px; border: 1px solid #c0a566; border-radius: 4px; background: #252c20; color: #eeeddc; font-size: 14px; line-height: 1.4; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
#read-detail:hover { background: #465337; }
body[data-mode="tour"] .stage-instruction { display: none; }
#hotspots-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
#hotspots-overlay button, .hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #eff0df;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: auto;
}
#hotspots-overlay button:hover { background: transparent; }
.hotspot-dot { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; border: 1px solid #c0a566; background: rgba(37,44,32,.94); color: #eeeddc; box-shadow: 0 2px 9px rgba(0,0,0,.20); font-size: 14px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .16s ease, color .16s ease; }
.hotspot-label { position: absolute; top: 50%; left: calc(100% + 3px); display: block; width: max-content; max-width: min(220px,calc(100vw - 90px)); padding: 8px 11px; border: 1px solid #7f8969; border-radius: 4px; background: rgba(37,44,32,.96); box-shadow: 0 3px 13px rgba(0,0,0,.16); color: #eeeddc; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-50%); transition: opacity .14s ease; }
#hotspots-overlay button:hover, #hotspots-overlay button:focus-visible, #hotspots-overlay button.is-active { z-index: 6; }
#hotspots-overlay button:hover .hotspot-dot, #hotspots-overlay button:focus-visible .hotspot-dot { background: #465337; }
#hotspots-overlay button[aria-pressed="true"] .hotspot-dot, #hotspots-overlay button.active .hotspot-dot, #hotspots-overlay button.is-active .hotspot-dot { border-color: #c0a566; background: #c0a566; color: #252c20; }
#hotspots-overlay button:hover .hotspot-label, #hotspots-overlay button:focus-visible .hotspot-label, #hotspots-overlay button.is-active .hotspot-label { opacity: 1; visibility: visible; }
.hotspot[data-label-side="left"] .hotspot-label { left: auto; right: calc(100% + 3px); }
.hotspot[data-label-side="above"] .hotspot-label { top: auto; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); }
.loading { position: absolute; z-index: 8; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px; background: var(--room); }
.loading.hidden { display: none; }
.loading-content { width: min(360px, 100%); }
.eyebrow { font-size: 14px; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; color: var(--room-muted); margin: 0 0 18px; }
.loading h2 { margin-bottom: 12px; font-size: 26px; font-weight: 500; }
.loading p:not(.eyebrow) { margin: 0; color: var(--room-muted); font-size: 16px; }
.loading-track { height: 2px; background: var(--room-line); margin: 26px 0; overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: var(--brass); transition: width .2s ease; }
.loading.error .loading-track, .loading.is-error .loading-track { display: none; }
.loading.error #retry, .loading.is-error #retry { margin-top: 24px; }
.gallery-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 15px 24px; border-top: 1px solid var(--room-line); background: var(--room); }
.toolbar-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--room-line); border-radius: 4px; background: transparent; color: var(--room-ink); font-size: 14px; line-height: 1.4; text-align: center; white-space: nowrap; }
.toolbar-button:hover:not(:disabled) { background: var(--room-raised); border-color: var(--room-muted); }
.toolbar-button[aria-pressed="true"] { border-color: var(--room-muted); background: var(--room-raised); }
.toolbar-button[aria-pressed="true"]::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--brass); }
.settings { position: relative; min-width: 0; }
.settings > summary { width: 100%; list-style: none; }
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary::after { content: "+"; font-size: 19px; color: var(--room-muted); }
.settings[open] > summary { background: var(--room-raised); }
.settings[open] > summary::after { content: "−"; }
.settings-content { position: absolute; z-index: 12; right: 0; bottom: calc(100% + 12px); width: 340px; max-height: min(600px, 75svh); overflow: auto; padding: 24px; border: 1px solid var(--room-line); border-radius: 6px; background: var(--room); box-shadow: 0 14px 45px rgba(0,0,0,.23); }
.settings-content h2 { font-size: 20px; margin-bottom: 25px; }
.settings-section-label { font-size: 14px; color: var(--room-muted); margin: 0 0 9px; }
.view-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 25px; }
.view-presets button { min-height: 44px; }
.view-presets button.is-active { background: var(--room-raised); border-color: var(--brass); }
.range-control + .range-control { margin-top: 18px; }
.range-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 16px; }
.range-heading output { color: var(--room-muted); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; min-height: 44px; margin: 0; background: transparent; accent-color: var(--brass); cursor: pointer; }
.range-endpoints { display: flex; justify-content: space-between; color: var(--room-muted); font-size: 14px; line-height: 1; margin-top: -3px; }
.settings-note { margin: 23px 0 12px; color: var(--room-muted); font-size: 14px; line-height: 1.5; }
.checkbox-control { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.checkbox-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--brass); }
.model-statistics { width: 100%; margin-top: 22px; border-collapse: collapse; border-top: 1px solid var(--room-line); font-size: 14px; }
.model-statistics caption { caption-side: top; text-align: left; margin-bottom: 7px; font-weight: 600; }
.model-statistics th, .model-statistics td { padding: 7px 0; text-align: left; font-weight: 400; }
.model-statistics th { color: var(--room-muted); }
.model-statistics td { text-align: right; font-variant-numeric: tabular-nums; }
.info-panel { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a0a786 transparent; padding: 30px 28px 32px; background: var(--panel); color: var(--panel-ink); border-left: 1px solid var(--room-line); color-scheme: light; }
.info-panel section { max-width: 540px; margin: 0 auto; }
.panel-eyebrow { color: var(--panel-muted); margin-bottom: 14px; }
.exhibit-title { font-family: Georgia, "Times New Roman", serif; font-size: 78px; font-weight: 400; letter-spacing: -.055em; line-height: 1.02; margin: 0 0 10px; }
.exhibit-subtitle { font-size: 18px; line-height: 1.45; color: var(--panel-muted); margin-bottom: 25px; }
#overview-description { font-size: 16px; line-height: 1.7; }
.fact-list { border-top: 1px solid var(--panel-line); margin: 25px 0 26px; }
.fact-list:empty { display: none; }
.fact-list > div, .fact-list .fact, .fact-list .fact-row, .fact-list .fact-item { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--panel-line); font-size: 14px; line-height: 1.5; }
.fact-list dt, .fact-list .label, .fact-list > div > span:first-child { color: var(--panel-muted); }
.fact-list dd, .fact-list strong, .fact-list .value { margin: 0; font-weight: 600; text-align: right; }
.overview-actions { display: grid; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 16px; gap: 10px; border: 1px solid currentColor; border-radius: 4px; font-size: 16px; line-height: 1.4; text-align: center; }
.button-primary { background: #3d4c2d; border-color: #3d4c2d; color: #f3f1e2; }
.button-primary:hover:not(:disabled) { background: #4d6038; border-color: #4d6038; }
#start-tour { justify-content: space-between; }
#start-tour span { font-size: 21px; line-height: 1; }
.button-secondary { background: transparent; border-color: var(--panel-line); color: var(--panel-ink); }
.button-secondary:hover:not(:disabled) { background: rgba(126,139,99,.14); border-color: var(--panel-muted); }
.loading .button-secondary { border-color: var(--room-line); color: var(--room-ink); }
.panel-note { color: var(--panel-muted); font-size: 14px; line-height: 1.6; margin: 22px 0 0; }
.part-list-section { margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--panel-line); }
.part-list-section h3 { margin: 0 0 13px; font-size: 16px; font-weight: 600; }
.part-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.part-list button { min-width: 0; min-height: 46px; padding: 9px 10px; border: 1px solid var(--panel-line); border-radius: 4px; background: transparent; color: var(--panel-ink); font-size: 14px; line-height: 1.35; text-align: left; }
.part-list button:hover { border-color: var(--panel-muted); background: rgba(126,139,99,.12); }
.part-list button.is-active, .part-list button[aria-pressed="true"] { background: #cccfb1; border-color: #77845c; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; padding: 0; margin: -6px 0 26px; border: 0; border-radius: 2px; background: transparent; color: var(--panel-muted); font-size: 14px; line-height: 1.4; }
.text-button:hover { color: var(--panel-ink); text-decoration: underline; text-underline-offset: 4px; }
.panel-title { font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 20px; }
.detail-summary { font-size: 18px; line-height: 1.55; color: #3d4b2e; }
#detail-body, #history-intro { font-size: 16px; line-height: 1.7; }
.look-note { margin: 24px 0; padding: 0 0 0 14px; border-left: 2px solid #887037; font-size: 15px; color: var(--panel-muted); line-height: 1.6; }
.look-note:empty { display: none; }
#detail-image { position: relative; width: 100%; aspect-ratio: 10 / 7; overflow: hidden; border: 1px solid var(--panel-line); border-radius: 3px; background: #fff; margin: 26px 0 22px; }
#detail-image > img { position: absolute; width: 200%; height: 200%; max-width: none; object-fit: fill; left: 0; top: 0; }
#detail-image.view-front > img { left: 0; top: 0; }
#detail-image.view-left > img { left: -100%; top: 0; }
#detail-image.view-rear > img { left: 0; top: -100%; }
#detail-image.view-right > img { left: -100%; top: -100%; }
.reference-caption { position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; padding: 5px 10px; background: var(--panel); color: var(--panel-muted); font-size: 14px; line-height: 1.6; border-top: 1px solid var(--panel-line); }
#detail-action { width: 100%; margin: 0 0 22px; }
.source-list { font-size: 14px; line-height: 1.6; color: var(--panel-muted); margin-top: 27px; border-top: 1px solid var(--panel-line); padding-top: 15px; }
.source-list:empty { display: none; }
.source-list h3, .source-list h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: var(--panel-ink); }
.source-list p { margin: 0 0 9px; }
.source-list a { display: inline; color: #4d6038; overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.source-list a:hover { color: #243019; }
.source-list .source-link, .timeline-sources .source-link { display: block; margin-bottom: 8px; line-height: 1.5; }
.source-list ul, .source-list ol { padding-left: 18px; margin: 0; }
.source-list li + li { margin-top: 9px; }
.history-timeline { margin: 26px 0; }
.history-timeline > article, .history-timeline > div, .history-timeline .timeline-item { padding: 0 0 24px 17px; border-left: 1px solid var(--panel-line); position: relative; }
.history-timeline > article::before, .history-timeline > div::before { content: ""; position: absolute; top: 7px; left: -3px; width: 5px; height: 5px; background: #887037; border-radius: 50%; }
.history-timeline h3, .history-timeline time, .history-timeline .year { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; margin: 0 0 7px; color: #425231; }
.history-timeline p { margin: 0; font-size: 16px; line-height: 1.65; }
.history-timeline .timeline-year { margin: 0 0 10px; color: #425231; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.accuracy-note { font-size: 14px; line-height: 1.6; color: var(--panel-muted); margin-top: 24px; }
.tour-bar { flex: 0 0 auto; padding: 20px 26px 17px; border-top: 1px solid var(--room-line); background: var(--room); }
.tour-heading { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; }
#tour-title { font-size: 18px; line-height: 1.35; font-weight: 600; }
#tour-counter { flex-shrink: 0; color: var(--room-muted); font-size: 14px; margin: 0; }
#tour-text { margin: 7px 0 16px; color: var(--room-muted); font-size: 16px; line-height: 1.5; }
#tour-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; padding: 0; margin: 0 0 18px; background: linear-gradient(var(--room-line),var(--room-line)) center 13px / 80% 1px no-repeat; }
#tour-steps li { position: relative; margin: 0; padding: 0 2px; min-width: 0; }
#tour-steps button { position: relative; width: 100%; min-height: 58px; padding: 30px 3px 2px; border: 0; border-radius: 2px; background: transparent; color: var(--room-muted); font-size: 14px; line-height: 1.3; text-align: center; }
#tour-steps button::before { content: ""; position: absolute; top: 8px; left: calc(50% - 5px); width: 10px; height: 10px; border: 1px solid var(--room-muted); border-radius: 50%; background: var(--room); }
#tour-steps .tour-step::before { display: none; }
#tour-steps .step-number { position: absolute; z-index: 2; top: 0; left: calc(50% - 13px); display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--room-muted); border-radius: 50%; background: var(--room); color: var(--room-muted); font-size: 14px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
#tour-steps .step-label { display: block; padding-top: 3px; }
#tour-steps .tour-step.is-current .step-number { border-color: var(--brass); background: var(--brass); color: #252c20; box-shadow: 0 0 0 4px var(--room); }
#tour-steps .tour-step.is-complete .step-number { background: var(--room-muted); color: var(--room); }
#tour-steps .tour-step::after { content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 1px; z-index: 1; background: var(--brass); transform: scaleX(var(--step-progress,0)); transform-origin: left center; }
#tour-steps > .tour-step:last-child::after, #tour-steps li:last-child .tour-step::after { display: none; }
#tour-steps .tour-step.is-current { color: var(--room-ink); }
#tour-steps .tour-step.is-current::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 4px var(--room); }
#tour-steps .tour-step.is-complete::before { background: var(--room-muted); border-color: var(--room-muted); }
#tour-steps .tour-step.is-complete::after { transform: scaleX(1); }
#tour-steps button:hover { color: var(--room-ink); }
#tour-steps button:hover::before { border-color: var(--brass); }
#tour-steps button[aria-current="step"], #tour-steps button[aria-current="true"], #tour-steps button.active, #tour-steps li.active button, #tour-steps li[aria-current="step"] button { color: var(--room-ink); }
#tour-steps button[aria-current="step"]::before, #tour-steps button[aria-current="true"]::before, #tour-steps button.active::before, #tour-steps li.active button::before, #tour-steps li[aria-current="step"] button::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 4px var(--room); }
.tour-controls { display: flex; gap: 8px; }
.tour-controls .toolbar-button { min-width: 88px; }
.tour-exit { margin-left: auto; }
.tour-progress-track { width: 100%; margin-top: 15px; height: 2px; background: var(--room-line); overflow: hidden; }
#tour-progress { width: 100%; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.museum-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 46px; padding: 9px 32px; border-top: 1px solid var(--room-line); color: var(--room-muted); font-size: 14px; line-height: 1.4; }
.museum-footer p { margin: 0; }
.touch-hint { display: none; }
.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; }
.noscript-note { position: fixed; z-index: 30; bottom: 20px; left: 20px; right: 20px; margin: 0; padding: 18px; background: #eeeddc; color: #252c20; border: 2px solid #c0a566; }
@media (min-width: 1500px) {
  .exhibit-layout { grid-template-columns: minmax(0,1fr) 380px; }
  .gallery-toolbar { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .museum-header { padding-inline: 40px; }
  .info-panel { padding: 36px 34px; }
  .stage-label { left: 36px; top: 28px; }
}
@media (max-height: 850px) and (min-width: 1001px) {
  .museum-shell { min-height: 760px; }
  .museum-header { min-height: 86px; padding-block: 15px; }
  .stage { min-height: 280px; }
  .gallery-toolbar { padding-block: 11px; gap: 6px; }
  .tour-bar { padding-top: 15px; }
  #tour-text { font-size: 14px; margin-bottom: 11px; }
  #tour-steps { margin-bottom: 11px; }
}
@media (max-width: 1150px) {
  .museum-header { gap: 22px; padding-inline: 24px; }
  .header-exhibit > span { display: none; }
  .exhibit-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .info-panel { padding: 28px 24px; }
  .gallery-toolbar { padding-inline: 18px; gap: 6px; }
  .toolbar-button { padding-inline: 7px; }
  .tour-bar { padding-inline: 20px; }
  .museum-footer { padding-inline: 24px; }
}
@media (max-width: 1000px) {
  .museum-shell { height: auto; min-height: 100svh; display: block; }
  .museum-header { min-height: 94px; }
  .exhibit-layout { display: block; }
  .stage { flex: none; height: 530px; min-height: 0; }
  .gallery-toolbar { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 24px; gap: 8px; }
  .info-panel { overflow: visible; padding: 32px 30px 38px; border-left: 0; border-top: 1px solid var(--room-line); }
  .info-panel section { max-width: 680px; }
  .exhibit-title { font-size: 76px; }
  .overview-actions { grid-template-columns: 1fr 1fr; }
  .tour-bar { padding: 24px; }
  #detail-image { max-width: 420px; }
  .museum-footer { min-height: 64px; }
  .museum-footer > span { display: none; }
  body[data-mode="explore"][data-panel="detail"] #read-detail { display: inline-flex; align-items: center; justify-content: center; }
  body[data-panel="detail"] .stage-instruction { display: none; }
}
@media (max-width: 600px) {
  .museum-header { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; row-gap: 10px; padding: 17px 20px 15px; }
  .brand-category { font-size: 14px; letter-spacing: .13em; }
  .brand-name { font-size: 15px; letter-spacing: .07em; }
  .header-exhibit { align-self: center; }
  .header-exhibit h1 { font-size: 38px; }
  .reconstruction-badge { grid-column: 1/-1; justify-self: start; border: 0; padding: 0; font-size: 14px; }
  .stage { height: clamp(390px, 108vw, 440px); }
  .stage-label { left: 17px; top: 17px; font-size: 14px; }
  .stage-instruction { left: 20px; right: 20px; bottom: 18px; max-width: 260px; margin-inline: auto; line-height: 1.45; }
  .gallery-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 14px 18px 18px; }
  .toolbar-button { min-height: 46px; padding: 9px 8px; font-size: 14px; }
  .settings-content { position: static; width: auto; max-height: none; overflow: visible; margin-top: 10px; padding: 22px 18px; box-shadow: none; }
  .settings[open] { grid-column: 1/-1; }
  .settings[open] > summary { justify-content: space-between; padding-inline: 16px; }
  .info-panel { padding: 29px 24px 36px; }
  .exhibit-title { font-size: 70px; }
  .exhibit-subtitle { margin-bottom: 23px; }
  .overview-actions { grid-template-columns: 1fr; }
  .button { min-height: 48px; }
  .panel-title { font-size: 29px; }
  .tour-bar { padding: 21px 18px 17px; }
  .tour-heading { display: block; }
  #tour-counter { margin-top: 5px; }
  #tour-text { font-size: 16px; margin-top: 13px; }
  #tour-steps { margin-top: 18px; margin-bottom: 20px; }
  #tour-steps button { font-size: 14px; min-height: 76px; overflow-wrap: anywhere; }
  .tour-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tour-exit { margin-left: 0; }
  .museum-footer { min-height: 61px; justify-content: center; padding: 16px 20px; text-align: center; }
  .desktop-hint { display: none; }
  .touch-hint { display: block; }
  #hotspots-overlay button, .hotspot { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; max-width: 44px; }
  .hotspot-label { max-width: min(165px,calc(100vw - 90px)); }
  body[data-mode="tour"] .gallery-toolbar { display: none; }
  body[data-mode="tour"] .stage { height: clamp(280px,80vw,340px); }
  body[data-mode="tour"] .tour-bar { padding: 14px 18px; }
  body[data-mode="tour"] .tour-heading { display: flex; align-items: baseline; gap: 12px; }
  body[data-mode="tour"] #tour-title { min-width: 0; font-size: 18px; line-height: 1.35; }
  body[data-mode="tour"] #tour-counter { margin-top: 0; font-size: 14px; }
  body[data-mode="tour"] #tour-text { margin: 9px 0 12px; font-size: 16px; line-height: 1.45; }
  body[data-mode="tour"] #tour-steps { margin: 8px 0 12px; }
  body[data-mode="tour"] #tour-steps button { min-height: 44px; padding-top: 30px; }
  body[data-mode="tour"] #tour-steps .step-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  body[data-mode="tour"] .tour-controls { grid-template-columns: .8fr 1.25fr .8fr 1.2fr; gap: 6px; }
  body[data-mode="tour"] .tour-controls .toolbar-button { min-width: 0; min-height: 46px; padding: 9px 5px; }
  body[data-mode="tour"] .tour-progress-track { margin-top: 10px; }
}
/* Presentation, exterior reveal, motion, and sound controls. */
.modebar { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 10px 24px; border-top: 1px solid var(--room-line); background: var(--room); }
.mode-button { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid var(--room-line); border-radius: 4px; background: var(--room-raised); color: var(--room-ink); font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center; }
.mode-button:hover:not(:disabled) { border-color: var(--room-muted); background: var(--room); }
.mode-button[aria-pressed="true"], .mode-button.is-active { border-color: var(--brass); color: var(--room-ink); box-shadow: inset 0 -2px 0 var(--brass); }
#play-intro { border-color: #7d704e; }
.modebar + .gallery-toolbar { border-top-color: transparent; padding-top: 3px; }
.explode-bar { flex: 0 0 auto; display: grid; grid-template-columns: minmax(205px,.95fr) minmax(210px,1.1fr) auto; align-items: center; gap: 18px; padding: 13px 24px; border-top: 1px solid var(--room-line); background: var(--room-raised); }
.explode-caption { min-width: 0; }
.explode-caption h2 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 4px; }
.explode-caption p { font-size: 14px; color: var(--room-muted); line-height: 1.5; margin: 0; }
.explode-control { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 43px; align-items: center; gap: 12px; }
#explode-amount { display: block; min-width: 0; margin: 0; }
#explode-value { font-size: 14px; line-height: 1.4; color: var(--room-ink); font-variant-numeric: tabular-nums; text-align: right; }
#assemble { min-width: 86px; min-height: 46px; background: var(--room); }
#assemble:hover { border-color: var(--brass); }
.exhibit-layout { overflow-anchor: none; }
.motion-bar { flex: 0 0 auto; display: grid; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--room-line); background: var(--room-raised); }
.motion-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; min-width: 0; }
.motion-caption h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.motion-caption p { margin: 0; font-size: 14px; color: var(--room-muted); line-height: 1.4; }
.motion-controls { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto auto; align-items: center; gap: 10px; min-width: 0; }
.motion-controls .toolbar-button { min-width: 0; background: var(--room); }
.motion-controls .toolbar-button:hover:not(:disabled) { border-color: var(--brass); }
.motion-controls .toolbar-button[aria-pressed="true"] { border-color: var(--brass); }
.motion-speed-control { display: grid; grid-template-columns: minmax(0,1fr) 36px; align-items: center; column-gap: 8px; min-width: 0; font-size: 14px; line-height: 1.4; }
.motion-speed-control label { grid-column: 1/-1; }
#motion-speed { display: block; min-width: 0; margin: 0; }
#motion-speed-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--room-ink); }
.motion-badge { display: none; position: absolute; z-index: 5; left: 50%; bottom: 18px; max-width: calc(100% - 40px); padding: 7px 12px; border: 1px solid var(--brass); border-radius: 3px; background: #303d25; color: #e0c689; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center; transform: translateX(-50%); pointer-events: none; }
body[data-theme="light"] .motion-badge { background: #f0e7d0; color: #685024; }
body[data-motion="running"] #motion-badge,
body[data-motion="paused"] #motion-badge { display: inline-flex; }
body[data-motion="running"] .stage-instruction,
body[data-motion="paused"] .stage-instruction { display: none; }
.sound-settings { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--room-line); }
.sound-settings input { margin: 0; }
#sound-scene-note { margin: 1px 0 0; font-size: 14px; color: var(--room-muted); line-height: 1.5; }
.intro-ui { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; color: #eeeddc; background: linear-gradient(180deg,rgba(22,30,17,.16) 0,transparent 23%,transparent 60%,rgba(22,30,17,.18) 78%,rgba(22,30,17,.62) 100%); }
.intro-skip { position: absolute; top: 25px; right: 28px; min-height: 44px; padding: 9px 15px; border: 1px solid rgba(238,237,220,.42); border-radius: 4px; background: rgba(37,44,32,.74); color: #eeeddc; font-size: 14px; line-height: 1.4; pointer-events: auto; }
.intro-skip:hover { border-color: var(--brass); background: #343f2b; }
.intro-audio { left: 28px; right: auto; }
.intro-caption { position: absolute; bottom: 43px; left: 36px; right: 36px; max-width: 620px; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
#intro-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: #d2d6be; }
#intro-title { margin: 0 0 11px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(50px,5.5vw,86px); font-weight: 400; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
#intro-subtitle { max-width: 48ch; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.5; color: #e0e3cf; }
.intro-progress-track { position: absolute; left: 36px; right: 36px; bottom: 24px; height: 2px; overflow: hidden; background: rgba(238,237,220,.20); }
#intro-progress { width: 100%; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
body[data-presentation="intro"] .exhibit-layout { grid-template-columns: minmax(0,1fr); }
body[data-presentation="intro"] .info-panel,
body[data-presentation="intro"] .gallery-toolbar,
body[data-presentation="intro"] .modebar,
body[data-presentation="intro"] #explode-bar,
body[data-presentation="intro"] #motion-bar,
body[data-presentation="intro"] #motion-badge,
body[data-presentation="intro"] #tour-bar,
body[data-presentation="intro"] .stage-label,
body[data-presentation="intro"] .stage-instruction,
body[data-presentation="intro"] #read-detail { display: none; }
body[data-presentation="intro"] #hotspots-overlay { visibility: hidden; }
body[data-presentation="intro"] #stage #read-detail { display: none; }
body[data-presentation="intro"] .stage::before,
body[data-presentation="intro"] .stage::after { content: ""; position: absolute; z-index: 6; left: 0; right: 0; height: 13px; background: #1d2518; pointer-events: none; }
body[data-presentation="intro"] .stage::before { top: 0; }
body[data-presentation="intro"] .stage::after { bottom: 0; }
@media (max-height: 850px) and (min-width: 1001px) {
  body:has(.modebar) .museum-shell { min-height: 830px; }
  body[data-presentation="intro"] .museum-shell { min-height: 680px; }
}
@media (max-width: 1150px) {
  .modebar { padding-inline: 18px; }
  .motion-bar { padding-inline: 18px; }
  .explode-bar { padding-inline: 18px; gap: 12px; grid-template-columns: minmax(180px,.95fr) minmax(180px,1.1fr) auto; }
}
@media (max-width: 1000px) {
  .modebar { padding: 10px 24px; }
  .motion-bar { padding-inline: 24px; }
  .explode-bar { padding: 14px 24px; }
  body[data-presentation="intro"] #stage { height: clamp(450px,calc(100svh - 158px),840px); }
}
@media (max-width: 600px) {
  .modebar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 9px 18px; }
  .mode-button { min-height: 52px; padding: 7px 5px; font-size: 14px; line-height: 1.3; }
  .explode-bar { grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; padding: 12px 18px; }
  .explode-caption { grid-column: 1/-1; }
  .explode-caption h2 { margin-bottom: 2px; }
  .explode-caption p { font-size: 14px; line-height: 1.4; }
  .explode-control { gap: 10px; }
  #assemble { min-width: 86px; padding-inline: 12px; }
  .motion-bar { gap: 4px; padding: 8px 18px; }
  .motion-caption { display: block; }
  .motion-caption h2 { line-height: 1.3; }
  .motion-caption p { font-size: 13px; line-height: 1.4; }
  .motion-controls { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .motion-controls .toolbar-button { min-height: 44px; padding: 7px 5px; font-size: 13px; line-height: 1.3; white-space: normal; }
  .motion-speed-control { grid-column: 1/-1; grid-row: 1; grid-template-columns: auto minmax(0,1fr) 36px; }
  .motion-speed-control label { grid-column: auto; }
  body[data-motion="running"] .stage,
  body[data-motion="paused"] .stage { height: clamp(300px,80vw,340px); }
  body[data-motion="running"] .gallery-toolbar,
  body[data-motion="paused"] .gallery-toolbar,
  body[data-motion="running"] #stage #read-detail,
  body[data-motion="paused"] #stage #read-detail { display: none; }
  body[data-mode="explore"][data-exploded="true"] .stage { height: clamp(300px,90vw,370px); }
  body[data-mode="tour"] .modebar { grid-template-columns: repeat(3,minmax(0,1fr)); padding-block: 7px; }
  body[data-mode="tour"] #toggle-motion { display: none; }
  body[data-mode="tour"] .mode-button { min-height: 48px; }
  body[data-presentation="intro"] #stage { height: clamp(420px,calc(100svh - 175px),720px); }
  .intro-skip { top: 22px; right: 18px; min-height: 44px; padding-inline: 13px; }
  .intro-audio { left: 18px; right: auto; }
  .intro-caption { left: 22px; right: 22px; bottom: 42px; }
  #intro-kicker { font-size: 14px; margin-bottom: 11px; letter-spacing: .12em; }
  #intro-title { font-size: clamp(44px,13vw,62px); margin-bottom: 12px; }
  #intro-subtitle { max-width: 31ch; font-size: 16px; line-height: 1.45; }
  .intro-progress-track { left: 22px; right: 22px; bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.presence-bar { flex: 0 0 auto; padding: 12px 24px; background: var(--room-raised); border-top: 1px solid var(--room-line); }
.presence-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.presence-heading h2 { font-size: 16px; }
.presence-controls { display: grid; grid-template-columns: minmax(190px,.75fr) minmax(300px,1.4fr); gap: 18px; align-items: center; }
.presence-height { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-width: 0; font-size: 14px; }
.presence-height input { min-width: 0; width: 100%; min-height: 44px; accent-color: var(--brass); }
.presence-height output { min-width: 48px; font-variant-numeric: tabular-nums; }
.presence-views { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.presence-views .toolbar-button { min-width: 0; padding-inline: 6px; }
#presence-note { margin: 8px 0 0; font-size: 13px; color: var(--room-muted); }
body[data-presence="on"] .stage-instruction,
body[data-presence="on"] #read-detail,
body[data-presentation="intro"] #presence-bar { display: none; }
.capture-dialog { padding: 0; width: min(920px,calc(100vw - 40px)); max-height: calc(100svh - 40px); border: 1px solid var(--room-line); border-radius: 6px; background: var(--room); color: var(--room-ink); box-shadow: 0 24px 100px #0009; }
.capture-dialog::backdrop { background: #151d10d6; backdrop-filter: blur(6px); }
.capture-heading { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.capture-heading .eyebrow { margin-bottom: 8px; }
.capture-heading h2 { font: 400 28px Georgia,serif; }
#capture-preview { display: block; width: 100%; max-height: 61svh; object-fit: contain; background: #09151c; }
.capture-actions { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.capture-actions p { margin: 0; font-size: 14px; color: var(--room-muted); }
.capture-actions a { text-decoration: none; }
@media (min-width: 1350px) { .modebar { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 1000px) { .presence-controls { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 600px) {
  .modebar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mode-button { font-size: 13px; }
  .presence-bar { padding: 10px 18px; }
  .presence-heading { margin-bottom: 2px; }
  .presence-heading h2 { font-size: 15px; }
  .presence-views .toolbar-button { min-height: 44px; font-size: 13px; }
  body[data-presence="on"] .stage { height: clamp(310px,84vw,360px); }
  body[data-presence="on"] .gallery-toolbar { display: none; }
  body[data-mode="tour"] #toggle-presence, body[data-mode="tour"] #save-frame { display: none; }
  .capture-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 20px); }
  .capture-heading,.capture-actions { padding: 14px 16px; }
  .capture-heading h2 { font-size: 22px; }
  .capture-heading .eyebrow { font-size: 11px; }
  .capture-actions { align-items: stretch; flex-direction: column; gap: 10px; }
}

/* Technical exhibit labels use the same field-olive / khaki palette. */
.detail-section-label { margin: 23px 0 8px; color: var(--panel-muted); font-size: 13px; font-weight: 600; letter-spacing: .07em; line-height: 1.4; text-transform: uppercase; }
#detail-title { margin-bottom: 10px; }
.quality-control { margin: 16px 0 22px; }
.quality-control > label { display: block; margin-bottom: 8px; font-size: 14px; }
.quality-row { display: flex; gap: 8px; }
.quality-row select { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--room-line); border-radius: 6px; color: var(--room-ink); background: var(--room-raised); font: inherit; font-size: 14px; }
.quality-row option { color: #ede8d5; background: #252c20; }
.quality-row select:focus-visible { outline: 2px solid #d5bc7c; outline-offset: 3px; }
