#slide-scroll { display: contents; }
#present {
  width: auto;
  padding-inline: 10px;
  white-space: nowrap;
  color: var(--seal);
  background: #f6e6dc;
}
body[data-view="archive"] #present { border-color: #bc8173; }
#present:hover { background: #efdbcf; }
#cover-present {
  min-height: 48px;
  padding-inline: 23px;
  font-size: 16px;
}
#cover-present svg, #present svg { fill: currentColor; }
.hero-actions { flex-wrap: wrap; }
.presenting #cover-present { display: none; }
@media (max-width: 500px) {
  html:not(.presenting) .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #cover-present { grid-column: 1 / -1; }
}
html.presenting, html.presenting body {
  overflow: hidden;
  overscroll-behavior: none;
}
.presenting .masthead { display: none; }
.presenting body[data-view="archive"] .main-shell {
  position: fixed;
  inset: 0;
  z-index: 10;
  container-type: size;
  display: grid;
  place-items: center;
  background: #242724;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.presenting #slide-frame {
  width: min(100cqw, 177.777778cqh);
  aspect-ratio: 16 / 9;
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  grid-template-rows: 17% minmax(0, 1fr) 10%;
  display: grid;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--sheet);
  color: var(--type);
}
.presenting #slide-heading {
  position: relative;
  display: grid;
  align-content: center;
  gap: .35cqw;
  margin-inline: 4.4cqw;
  padding: 0 6.5em 0 0;
  border-bottom: 1px solid var(--rule);
}
.slide-kicker {
  color: var(--seal);
  font: 650 clamp(9px,.95cqw,17px)/1.15 var(--sans);
  letter-spacing: .1em;
}
#slide-title {
  margin: 0;
  font: 700 clamp(16px,3cqw,64px)/1.15 var(--song);
  letter-spacing: -.035em;
}
#slide-sources {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  padding: .45em .75em; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--leaf); font: 600 clamp(10px,1cqw,18px)/1.3 var(--sans);
}
.presenting #slide-scroll {
  display: block;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-inline: 4.4cqw;
}
.presenting #slide-scroll:focus-visible { outline: 2px solid var(--leaf); outline-offset: -2px; }
.presenting #slide-frame #screen,
.presenting #slide-frame #scene { height: auto; min-height: 0; overflow: visible; }
.presenting #slide-frame .ch-scene {
  height: auto; min-height: 0; padding: 2.1cqw 0; overflow: visible; animation: none;
}
.presenting .ch-header, .presenting .ch-scene .ch-source { display: none; }
.presenting #slide-frame #chapter-activity { margin-inline: 0; }
.presenting #chapter-activity:not([open]) .activity-chevron::before { content: "展开互动"; }
.presenting #slide-frame .transport {
  min-height: 0; height: 100%; gap: 2cqw;
  padding: 0 4.4cqw; border-top: 1px solid var(--rule);
  background: var(--stock);
}
.presenting #slide-frame .counter { flex: none; }
#slide-activity, #exit-presentation {
  flex: none; padding: .35em .65em;
  color: var(--leaf); border: 1px solid var(--leaf); border-radius: 2px;
  font: 600 clamp(11px,1.1cqw,18px)/1.4 var(--sans);
}

.presenting #slide-frame .turn button { width: clamp(26px,3.7cqw,56px); height: clamp(18px,3.3cqw,50px); }
.presenting #slide-frame #intro {
  min-height: 0; height: 40cqw; display: flex; padding: 0; align-items: center;
}
.presenting #slide-frame .hero-copy { width: 54%; max-width: none; margin: 0; padding: 0; }
.presenting #slide-frame #art-home { position: absolute; inset: 3% 1% 3% 56%; height: auto; }
.presenting #slide-frame .hero-copy h1 { font-size: clamp(23px,5.4cqw,100px); }
.presenting .hero-copy .overline { display: none; }
.presenting .hero-copy :is(.subtitle,.lecture-question) { margin-top: .8cqw; }
.presenting .hero-actions { margin-top: 1.4cqw; }
.presenting #slide-frame .ch-media-frame { max-height: 25cqw; }
.presenting #g-flash { display: none; }
@container (max-width: 620px) {
  .presenting #slide-heading { padding-right: 4em; }
  .presenting #slide-frame .transport-title,
  .presenting #slide-frame #segments { display: none; }
  .presenting #slide-frame .counter { margin-right: auto; }
  .presenting #slide-frame #lecture-contents { padding: 0 5px; }
  .presenting #slide-frame .transport { gap: 6px; }
  .presenting #slide-frame #intro { height: auto; min-height: 40cqw; padding: 12px 0; }
}
@media (max-width: 500px) {
  .masthead .mastinner { gap: 4px; }
  .masthead #mast-topic { display: none; }
  .presenting #slide-frame .transport { padding-inline: 2cqw; }
}
/* Both columns scroll independently: the canvas and its controls start in view. */
.presenting .has-exhibit:not(.script-view) #slide-scroll {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 2cqw; padding: 1.1cqw 2.5cqw; overflow: visible; scrollbar-gutter: auto;
}
.presenting #slide-frame.has-exhibit:not(.script-view) #screen,
.presenting #slide-frame.has-exhibit #chapter-activity {
  min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain;
}
.presenting #chapter-activity > summary, .presenting .script-view #chapter-activity { display: none; }
.presenting #slide-frame.has-exhibit #chapter-activity { border: 0; }
.presenting #chapter-activity #gallery { margin: 0; }
.presenting #chapter-activity .g-hero {
  display: grid; grid-template: "model" minmax(110px, 19.5cqw) "copy" auto / minmax(0,1fr);
  min-height: 0; height: auto; align-content: start; overflow: visible;
}
.presenting #chapter-activity .g-copy { padding: 8px 12px; width: auto; }
.presenting #chapter-activity .g-geometry { width: 100%; height: 100%; }
.presenting #chapter-activity .g-fade { display: none; }
.presenting #chapter-activity #g-marker { grid-area: model; position: absolute; right: 5px; bottom: 4px; }
.presenting #chapter-activity #g-note { font-size: clamp(12px,1.35cqw,22px); line-height: 1.45; }
.presenting #chapter-activity .g-actions { margin-top: 6px; gap: 5px; }
.presenting #chapter-activity .g-actions button { min-height: 29px; padding: 3px 8px; }
.presenting #chapter-activity .g-console { flex-wrap: wrap; gap: 6px; padding: 6px 9px; }
.presenting .has-exhibit:not(.script-view) .ch-body:is(.ch-split,.ch-duo) { grid-template-columns: 1fr; }
.presenting .has-exhibit:not(.script-view) .ch-scene { padding: 0 0 12px; }
.presenting .has-exhibit:not(.script-view) .ch-body { gap: 12px; }
.presenting .has-exhibit:not(.script-view) .ch-media-frame { max-height: 13cqw; }
.presenting .ch-responsibility .chapter-diagram { width: min(36%, 350px); height: clamp(75px,11cqw,170px); margin-inline: auto; }
.chapter-cue { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.chapter-cue canvas { width: 100%; height: 100%; display: block; }
.chapter-anchor { position: relative; }
.chapter-cue.on-photo { background: linear-gradient(90deg,transparent,#f8f3e4e8 38%); left: 35%; }
.chapter-cue.on-model { inset: 4% 2% auto auto; width: 36%; height: 52%; }
@container (max-width: 720px) {
  .presenting .has-exhibit:not(.script-view) #slide-scroll { display: block; padding: 0 2cqw; }
  .presenting #slide-frame.has-exhibit:not(.script-view) #screen { display: none; }
  .presenting #slide-frame.has-exhibit:not(.script-view) #chapter-activity { height: 100%; }
  .presenting #chapter-activity .g-hero {
    grid-template: "model copy" auto / minmax(0, 1fr) minmax(0, .9fr); align-items: stretch;
  }
  .presenting #chapter-activity .g-geometry { min-height: 23cqw; }
  .presenting #chapter-activity .g-copy { padding: 4px 5px; }
  .presenting #chapter-activity .g-actions { margin-top: 3px; }
  .presenting #chapter-activity #g-marker { position: static; grid-area: auto; grid-column: 1/-1; max-width: none; }
}

#slide-frame .chapter-cue.on-margin {
  inset: 18% 4% auto auto; width: 36%; height: 25%;
  background: #f7f4eeed; border-radius: 4px;
}
.presenting .has-exhibit:not(.script-view) .ch-checklist { display: flex; flex-direction: column; }
/* The outgoing portrait occupies its original rectangle until the destination takes over. */
.chapter-departure {
  position: absolute; z-index: 5; pointer-events: none; overflow: hidden;
  background: var(--sheet) center / contain no-repeat; transform-origin: center;
}
.chapter-departure.from-model { background-color: #182022; }
.chapter-departure :is(img,canvas) { display: block; width: 100%; height: 100%; }
.chapter-departure span {
  position: absolute; bottom: 5%; left: 4%; max-width: 90%;
  padding: .25em .45em; background: #f7f4ee; color: #34473f;
  font: 650 clamp(11px,1.35cqw,22px)/1.35 var(--song);
}
.chapter-cue.on-model { inset: 2% 10%; width: auto; height: auto; }
@container (max-width: 720px) {
  .presenting .has-exhibit #chapter-activity .g-hero {
    grid-template: "model copy" minmax(0, 34cqw) "marker marker" auto / minmax(0, 1fr) minmax(0, .9fr);
  }
  .presenting #slide-frame #chapter-activity .g-geometry { inset: auto; height: 100%; min-height: 0; }
  .presenting #chapter-activity .g-copy { align-self: stretch; overflow: auto; overscroll-behavior: contain; }
  .presenting #chapter-activity #g-marker { grid-area: marker; }
  .presenting #chapter-activity .g-copy .g-actions { margin-top: 3px; }
  .presenting #chapter-activity #g-result { margin-top: 4px; }
  .presenting #slide-frame:not(.has-exhibit) .ch-body.ch-split {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: start; gap: 2cqw;
  }
  .presenting #slide-frame .ch-split > .ch-media { align-self: start; }
  .presenting #slide-frame .ch-body .ch-media-frame { height: 27cqw; max-height: none; }
}
