:root {
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color-scheme: dark;
  --bg: #07131f;
  --panel: #102438;
  --panel-strong: #0b1c2e;
  --ink: #f7fafc;
  --muted: #afc1d2;
  --accent: #55a7ff;
  --accent-2: #ff806d;
  --teal: #2cd2c7;
  --rule: #2a4761;
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

@font-face {
  font-family: "Noto Sans TC";
  src: local("Noto Sans TC"), local("Noto Sans CJK TC");
  font-display: swap;
}

@font-face {
  font-family: "Microsoft JhengHei";
  src: local("Microsoft JhengHei"), local("微軟正黑體");
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--ink); }
body { overflow-x: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.theme-morning {
  --bg: #f7f3ec;
  --panel: #ffffff;
  --panel-strong: #eef4ff;
  --ink: #15191f;
  --muted: #5f6873;
  --accent: #256fe8;
  --accent-2: #ff7866;
  --teal: #22afa4;
  --rule: #cdd3db;
  --shadow: 0 28px 90px rgba(35, 53, 77, .16);
  color-scheme: light;
}

.theme-afternoon {
  background: var(--bg);
  color: var(--ink);
}

.skip-link, .hub-back {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 18px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transform: translateY(-180%);
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.skip-link:focus, .hub-back:hover { transform: translateY(0); color: var(--accent); border-color: var(--accent); }
.hub-nav { position: fixed; top: 14px; left: 18px; z-index: 100; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hub-nav .hub-back { position: static; transform: none; }
.deck-home-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.deck-home-button:hover { border-color: var(--accent); background: var(--panel); color: var(--accent); }

/* ───────────────────────────────────────────────────────────────
   Dynamic hub
   ─────────────────────────────────────────────────────────────── */
.dynamic-hub {
  min-height: 100svh;
  overflow: auto;
  background:
    radial-gradient(circle at 12% 18%, rgba(85, 167, 255, .22), rgba(85, 167, 255, 0) 34%),
    radial-gradient(circle at 86% 78%, rgba(44, 210, 199, .14), rgba(44, 210, 199, 0) 30%),
    var(--bg);
}
.dynamic-hub-main {
  position: relative;
  width: min(100%, 1920px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 150px) clamp(24px, 8vw, 150px) 64px;
  overflow: hidden;
  isolation: isolate;
}
.hub-orb {
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.hub-orb::after {
  position: absolute;
  inset: 18%;
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  border-radius: 50%;
  content: "";
}
.hub-orb-a { width: 36vw; height: 36vw; top: -14vw; right: -8vw; transform: rotate(18deg); }
.hub-orb-b { width: 24vw; height: 24vw; bottom: -10vw; left: -8vw; transform: rotate(-22deg); }
.hub-header { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; letter-spacing: .18em; }
.hub-kicker { color: var(--accent); font-weight: 800; }
.hub-version { font-variant-numeric: tabular-nums; }
.hub-hero-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(36px, 9vw, 150px); align-items: end; min-height: min(72vh, 760px); padding: 8vh 0 4vh; }
.hub-copy { max-width: 980px; }
.hub-eyebrow { margin: 0 0 20px; color: var(--accent); font-size: clamp(16px, 1.3vw, 24px); font-weight: 800; letter-spacing: .08em; }
.hub-copy h1 { margin: 0; color: var(--ink); font-size: clamp(48px, 7.6vw, 132px); font-weight: 900; letter-spacing: -.065em; line-height: 1.02; }
.hub-copy h1 em { color: var(--accent); font-style: normal; }
.hub-lead { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 1.5vw, 28px); line-height: 1.65; }
.hub-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin-top: 42px; }
.hub-deck-link { display: flex; flex-direction: column; gap: 8px; min-height: 180px; padding: 24px; border: 2px solid var(--rule); border-radius: 20px; background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--ink); text-decoration: none; box-shadow: 0 16px 44px rgba(0,0,0,.15); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.hub-deck-link:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--panel); }
.hub-deck-link span { color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.hub-deck-link strong { font-size: clamp(20px, 1.8vw, 30px); line-height: 1.3; }
.hub-deck-link small { margin-top: auto; color: var(--muted); font-size: 15px; }
.hub-deck-link.afternoon { border-color: color-mix(in srgb, var(--teal) 48%, var(--rule)); }
.hub-deck-link.afternoon span { color: var(--teal); }
.hub-deck-link.overview { border-color: color-mix(in srgb, var(--accent-2) 48%, var(--rule)); }
.hub-deck-link.overview span { color: var(--accent-2); }
.hub-side-note { padding: 28px; border-top: 3px solid var(--accent); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--panel) 86%, transparent); box-shadow: var(--shadow); }
.hub-side-mark { display: block; margin-bottom: 44px; color: var(--accent); font: 800 18px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.hub-side-note h2 { margin: 0; font-size: clamp(24px, 2.4vw, 42px); line-height: 1.18; letter-spacing: -.04em; }
.hub-side-note p { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hub-pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; color: var(--accent); font: 700 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.hub-pipeline i { color: var(--muted); font-style: normal; }
.hub-boundary { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* ───────────────────────────────────────────────────────────────
   Interactive deck shell
   ─────────────────────────────────────────────────────────────── */
.dynamic-deck { min-height: 100svh; background: radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--accent) 18%, rgba(0,0,0,0)), rgba(0,0,0,0) 32%), var(--bg); }
.dynamic-deck-root { min-height: 100svh; }
.dynamic-toolbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 clamp(14px, 3vw, 42px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); }
.toolbar-back { color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.toolbar-back:hover { color: var(--accent); }
.toolbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.toolbar-title strong { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-kicker { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; white-space: nowrap; }
.toolbar-actions { display: flex; gap: 8px; }
.toolbar-actions button, .panel-head button { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--ink); font-size: 12px; }
.toolbar-actions button:hover, .panel-head button:hover { border-color: var(--accent); color: var(--accent); }
.dynamic-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - 62px); gap: 14px; padding: clamp(16px, 3vh, 36px) clamp(10px, 3vw, 42px) 44px; }
.dynamic-stage-wrap { position: relative; width: min(100%, 1280px); aspect-ratio: 16 / 9; filter: drop-shadow(var(--shadow)); }
.dynamic-stage { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rule) 84%, transparent); border-radius: 18px; outline: none; background: var(--panel); isolation: isolate; overscroll-behavior: contain; }
.dynamic-stage:focus-visible { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.dynamic-slide { position: absolute; inset: 0; overflow: hidden; padding: 0; background-color: var(--panel); opacity: 0; pointer-events: none; transform: scale(1.015); filter: blur(8px); transition: opacity .52s ease, transform .7s cubic-bezier(.22,.8,.26,1), filter .52s ease; will-change: auto; backface-visibility: hidden; }
.dynamic-slide.is-active { z-index: 2; opacity: 1; pointer-events: auto; transform: scale(1); filter: blur(0); will-change: opacity, transform; }
.dynamic-slide.is-previous { z-index: 1; opacity: 1; pointer-events: none; transform: scale(1); filter: blur(0); will-change: opacity, transform; }
.dynamic-slide:not(.is-active):not(.is-previous) { transform: none; filter: none; }
.scene-backdrop, .scene-transition { position: absolute; inset: 0; pointer-events: none; }
.scene-backdrop { overflow: hidden; background: radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--accent) 19%, rgba(0,0,0,0)) 0 12%, rgba(0,0,0,0) 42%), radial-gradient(circle at 88% 86%, color-mix(in srgb, var(--teal) 12%, rgba(0,0,0,0)) 0 8%, rgba(0,0,0,0) 40%), var(--panel); }
.scene-backdrop::before { position: absolute; top: -32%; right: -10%; width: 54%; height: 90%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 50%; content: ""; transform: rotate(22deg); }
.scene-backdrop::after { position: absolute; right: 6%; bottom: 10%; width: 18%; height: 1px; background: var(--accent); box-shadow: -180px 0 0 color-mix(in srgb, var(--accent) 42%, transparent), -360px 0 0 color-mix(in srgb, var(--accent) 20%, transparent); content: ""; }
.scene-orb { position: absolute; right: 11%; bottom: 18%; width: clamp(90px, 12vw, 220px); height: clamp(90px, 12vw, 220px); border: 1px solid color-mix(in srgb, var(--teal) 60%, transparent); border-radius: 50%; opacity: .72; transform: rotate(-12deg); }
.scene-orb::before, .scene-orb::after { position: absolute; inset: 16%; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 50%; content: ""; }
.scene-orb::after { inset: 32%; border-color: color-mix(in srgb, var(--accent-2) 65%, transparent); }
.theme-morning .scene-backdrop { background: radial-gradient(circle at 12% 14%, rgba(37,111,232,.13) 0 12%, rgba(37,111,232,0) 42%), radial-gradient(circle at 88% 86%, rgba(34,175,164,.12) 0 8%, rgba(34,175,164,0) 40%), #ffffff; }
.theme-morning .scene-backdrop::before { border-color: rgba(37,111,232,.22); }
.scene-transition { z-index: 4; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 32%, rgba(0,0,0,0)) 0 5%, rgba(0,0,0,0) 42%); opacity: 0; transform: scale(1.2); transition: opacity .5s ease, transform .8s ease; }
.dynamic-slide.is-active .scene-transition, .dynamic-slide.is-previous .scene-transition { will-change: opacity, transform; }
.dynamic-slide[data-transition="hero-reveal"] .scene-transition { background: radial-gradient(circle at 24% 68%, color-mix(in srgb, var(--teal) 34%, rgba(0,0,0,0)) 0 5%, rgba(0,0,0,0) 46%); }
.dynamic-slide[data-transition="zoom-through"] .scene-transition { background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent-2) 36%, rgba(0,0,0,0)) 0 5%, rgba(0,0,0,0) 44%); }
.dynamic-slide.is-active .scene-transition { opacity: 1; transform: scale(1); }
.dynamic-slide:not(.is-active) .scene-transition { transform: none; }
.hyperframes-mode .dynamic-slide { opacity: 1; pointer-events: auto; transform: none; filter: none; }
.scene-content { position: relative; z-index: 5; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: clamp(28px, 4vw, 72px); gap: clamp(16px, 2vw, 34px); scrollbar-gutter: auto; overscroll-behavior: contain; transform-origin: 50% 50%; backface-visibility: hidden; }
.scene-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font: 700 clamp(11px, 1vw, 16px)/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.scene-kicker { color: var(--accent); text-transform: uppercase; }
.scene-counter { font-variant-numeric: tabular-nums; }
.scene-grid { display: grid; grid-template-columns: minmax(260px, .88fr) minmax(0, 1.12fr); flex: 1; min-height: 0; gap: clamp(30px, 5vw, 100px); }
.scene-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding-right: 8px; scrollbar-gutter: auto; overscroll-behavior: contain; }
.scene-label { margin: 0 0 16px; color: var(--teal); font: 800 clamp(11px, 1vw, 16px)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.scene-copy h1 { max-width: 780px; margin: 0; color: var(--ink); font-size: clamp(34px, 4.2vw, 80px); font-weight: 900; letter-spacing: -.06em; line-height: 1.08; overflow-wrap: anywhere; white-space: pre-line; }
.scene-description { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 24px); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.scene-rail { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 24px; border-top: 2px solid var(--accent); color: var(--muted); }
.scene-rail span { font: 800 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.scene-rail strong { color: var(--ink); font-size: clamp(16px, 1.3vw, 24px); }
.scene-body { display: grid; align-content: start; grid-auto-rows: minmax(min-content, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 6px; scrollbar-gutter: auto; overscroll-behavior: contain; }
.scene-case-media { position: relative; grid-column: 1 / -1; width: 100%; height: clamp(180px, 30vh, 360px); min-width: 0; min-height: clamp(180px, 30vh, 360px); max-height: clamp(180px, 30vh, 360px); margin: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rule) 90%, transparent); border-radius: 16px; background: #09121f; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.scene-case-media img { display: block; width: 100%; height: 100%; object-fit: contain; background: #09121f; }
.scene-case-media figcaption { position: absolute; right: 12px; bottom: 10px; left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(5,13,24,.86), rgba(5,13,24,.5)); color: #fff; font-size: clamp(10px, .8vw, 14px); line-height: 1.35; pointer-events: none; }
.scene-case-media figcaption span { color: var(--teal); font: 800 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.scene-case-media figcaption strong { font-weight: 800; }
.content-block { position: relative; min-height: 84px; padding: 20px 20px 18px 54px; border: 1px solid color-mix(in srgb, var(--rule) 92%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--panel-strong) 78%, transparent); box-shadow: 0 10px 24px rgba(0,0,0,.1); transition: border-color .28s ease, box-shadow .28s ease, background-color .28s ease; }
.theme-morning .content-block { background: #f8fafc; box-shadow: 0 8px 22px rgba(15,30,46,.07); }
.content-block:hover { border-color: color-mix(in srgb, var(--accent) 68%, var(--rule)); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.content-block::before { position: absolute; top: 22px; left: 20px; width: 18px; height: 3px; border-radius: 99px; background: var(--accent); content: ""; }
.content-block p { margin: 0; color: var(--ink); font-size: clamp(16px, 1.25vw, 24px); font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.layout-hero .scene-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
.layout-hero .scene-copy h1 { font-size: clamp(28px, 3.2vw, 60px); line-height: 1.03; }
.layout-hero .scene-description { margin-top: 14px; font-size: clamp(14px, 1.05vw, 20px); line-height: 1.5; }
.layout-hero .scene-rail { margin-top: 18px; padding-top: 16px; }
.layout-hero .scene-body { grid-template-columns: 1fr; }
.layout-steps .scene-body { grid-template-columns: 1fr; }
.layout-steps .content-block { min-height: 64px; padding-top: 15px; padding-bottom: 15px; }
.layout-steps .content-block p { font-size: clamp(15px, 1.12vw, 22px); }
.layout-quote .scene-grid { grid-template-columns: 1fr; }
.layout-quote .scene-copy { align-items: center; text-align: center; }
.layout-quote .scene-copy { overflow: auto; }
.scene-copy.is-overflowing { justify-content: flex-start; }
.layout-quote .scene-copy h1 { max-width: 1100px; font-size: clamp(26px, 3vw, 56px); line-height: 1.08; }
.layout-quote .scene-description { max-width: 900px; margin-top: 14px; font-size: clamp(14px, 1.05vw, 20px); line-height: 1.5; text-align: center; }
.layout-quote .scene-rail { width: min(100%, 720px); margin-top: 30px; text-align: left; }
.layout-quote .scene-body { display: none; }
.scene-footer { display: flex; align-items: center; gap: 10px; min-height: 28px; overflow-x: auto; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.scene-link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; max-width: min(100%, 360px); padding: 6px 11px; border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--rule)); border-radius: 999px; background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--accent); font-size: 12px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; text-align: center; text-decoration: none; transition: color .24s ease, background-color .24s ease, border-color .24s ease, transform .24s ease; }
.scene-link:hover { background: var(--accent); color: var(--panel); }
.scene-transcript { position: absolute; right: 28px; bottom: 70px; z-index: 8; max-width: min(540px, 45%); color: var(--muted); font-size: 12px; }
.scene-transcript summary { cursor: pointer; color: var(--accent); font-weight: 800; }
.scene-transcript p { max-height: 240px; overflow: auto; margin: 10px 0 0; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: color-mix(in srgb, var(--panel) 96%, transparent); line-height: 1.6; white-space: pre-line; }
.dynamic-stage, .scene-content, .scene-copy, .scene-body, .scene-transcript p { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 72%, var(--rule)) color-mix(in srgb, var(--rule) 22%, transparent); }
.dynamic-stage::-webkit-scrollbar, .scene-content::-webkit-scrollbar, .scene-copy::-webkit-scrollbar, .scene-body::-webkit-scrollbar, .scene-transcript p::-webkit-scrollbar { width: 10px; height: 10px; }
.dynamic-stage::-webkit-scrollbar-track, .scene-content::-webkit-scrollbar-track, .scene-copy::-webkit-scrollbar-track, .scene-body::-webkit-scrollbar-track, .scene-transcript p::-webkit-scrollbar-track { border-radius: 999px; background: color-mix(in srgb, var(--rule) 22%, transparent); }
.dynamic-stage::-webkit-scrollbar-thumb, .scene-content::-webkit-scrollbar-thumb, .scene-copy::-webkit-scrollbar-thumb, .scene-body::-webkit-scrollbar-thumb, .scene-transcript p::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--accent) 72%, var(--rule)); background-clip: padding-box; }
.dynamic-stage::-webkit-scrollbar-thumb:hover, .scene-content::-webkit-scrollbar-thumb:hover, .scene-copy::-webkit-scrollbar-thumb:hover, .scene-body::-webkit-scrollbar-thumb:hover, .scene-transcript p::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
.dynamic-controls { display: flex; align-items: center; width: min(100%, 1280px); gap: 14px; }
.nav-button { width: 42px; height: 42px; border: 1.5px solid var(--rule); border-radius: 50%; background: var(--panel); color: var(--ink); font-size: 20px; font-weight: 800; line-height: 1; }
.nav-button:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.05); }
.progress-wrap { flex: 1; min-width: 0; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.progress-label b { color: var(--ink); }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--rule) 75%, transparent); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .35s ease; }
.dynamic-hint { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.dynamic-site-footer { width: min(100%, 1280px); margin: 0 auto; padding: 18px clamp(16px, 3vw, 42px) max(18px, env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, var(--rule) 78%, transparent); background: color-mix(in srgb, var(--bg) 86%, transparent); color: var(--muted); font-size: 12px; }
.dynamic-hub > .dynamic-site-footer { width: min(100%, 1920px); }
.dynamic-site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.dynamic-site-footer__context { font-weight: 700; letter-spacing: .02em; }
.dynamic-site-footer__credit { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; font-weight: 700; }
.dynamic-site-footer__heart { display: inline-block; margin: 0 1px; filter: saturate(1.3); letter-spacing: normal; text-transform: none; vertical-align: -1px; }
.dynamic-site-footer__author { padding: 1px 3px; border-bottom: 1px dotted currentColor; color: var(--accent); font-weight: 900; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.dynamic-site-footer__author:hover { border-bottom-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.immersive-exit { position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 11px 18px; border: 1px solid var(--accent); border-radius: 999px; background: color-mix(in srgb, var(--panel) 86%, transparent); color: var(--accent); font-weight: 800; }

/* Panels */
.dynamic-notes, .dynamic-reading { position: fixed; z-index: 80; top: 78px; right: 18px; width: min(520px, calc(100vw - 36px)); max-height: calc(100svh - 110px); overflow: auto; padding: 20px; border: 1px solid var(--rule); border-radius: 16px; background: color-mix(in srgb, var(--panel) 96%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.dynamic-reading { left: 50%; right: auto; width: min(960px, calc(100vw - 36px)); transform: translateX(-50%); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.dynamic-notes h2, .dynamic-reading h2 { margin: 20px 0 10px; color: var(--ink); font-size: 24px; line-height: 1.3; }
.dynamic-notes p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; white-space: pre-line; }
.dynamic-reading pre { margin: 0; color: var(--ink); font: 500 16px/1.75 "Noto Sans TC", "Microsoft JhengHei", sans-serif; white-space: pre-wrap; }
.dynamic-overview { position: fixed; z-index: 90; inset: 0; overflow: auto; padding: clamp(20px, 4vw, 64px); background: color-mix(in srgb, var(--bg) 96%, #000 4%); }
.overview-head { max-width: 1280px; margin: 0 auto 24px; }
.overview-panel-actions { display: flex; align-items: center; gap: 10px; }
.overview-panel-actions a { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.overview-panel-actions a:hover { border-color: var(--accent); background: var(--accent); color: var(--panel); }
.overview-head h2 { margin: 8px 0 0; color: var(--ink); font-size: clamp(24px, 3vw, 48px); letter-spacing: -.04em; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 1280px; margin: auto; }
.overview-card { min-height: 160px; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); color: var(--muted); text-align: left; transition: transform .2s ease, border-color .2s ease; }
.overview-card:hover, .overview-card.is-current { border-color: var(--accent); color: var(--ink); transform: translateY(-3px); }
.overview-card b { display: block; margin-bottom: 10px; color: var(--accent); font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.overview-card strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.4; white-space: pre-line; }
.overview-card small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.5; }

/* HyperFrames-ready full-screen SSOT. */
:fullscreen, :-webkit-full-screen, html:fullscreen, html:-webkit-full-screen, body.is-immersive { overflow: hidden !important; background: var(--bg) !important; }
.dynamic-deck.is-immersive .dynamic-site-footer { display: none !important; }
:fullscreen .dynamic-toolbar, :-webkit-full-screen .dynamic-toolbar, body.is-immersive .dynamic-toolbar,
:fullscreen .dynamic-controls, :-webkit-full-screen .dynamic-controls, body.is-immersive .dynamic-controls,
:fullscreen .dynamic-hint, :-webkit-full-screen .dynamic-hint, body.is-immersive .dynamic-hint,
:fullscreen .hub-back, :-webkit-full-screen .hub-back, body.is-immersive .hub-back { display: none !important; }
:fullscreen .dynamic-main, :-webkit-full-screen .dynamic-main, body.is-immersive .dynamic-main { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; min-height: 100vh !important; margin: 0 !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 0 !important; overflow: hidden !important; background: var(--bg) !important; z-index: 50 !important; }
:fullscreen .dynamic-stage-wrap, :-webkit-full-screen .dynamic-stage-wrap, body.is-immersive .dynamic-stage-wrap { position: relative !important; width: min(100vw, calc(100vh * 16 / 9)) !important; height: min(100vh, calc(100vw * 9 / 16)) !important; max-width: 100vw !important; max-height: 100vh !important; margin: auto !important; aspect-ratio: 16 / 9 !important; transform: none !important; }
:fullscreen .dynamic-stage, :-webkit-full-screen .dynamic-stage, body.is-immersive .dynamic-stage { width: 100% !important; height: 100% !important; border: 0 !important; border-radius: 0 !important; }

@media (max-width: 900px) {
  .hub-hero-content { grid-template-columns: 1fr; min-height: auto; padding-top: 12vh; }
  .hub-side-note { max-width: 720px; }
  .hub-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-grid, .layout-hero .scene-grid { grid-template-columns: 1fr; gap: 16px; overflow: auto; }
  .scene-copy { justify-content: start; }
  .scene-copy h1, .layout-hero .scene-copy h1 { font-size: clamp(30px, 6vw, 58px); }
  .scene-description { margin-top: 12px; font-size: 15px; }
  .scene-rail { margin-top: 18px; padding-top: 12px; }
  .scene-body { align-content: start; grid-template-columns: 1fr; }
  .scene-footer { display: none; }
  .scene-transcript { right: 16px; bottom: 16px; max-width: 62%; }
  .toolbar-kicker { display: none; }
}
@media (max-width: 600px) {
  .dynamic-toolbar { gap: 10px; padding-inline: 12px; }
  .toolbar-back { font-size: 0; }
  .toolbar-back::before { content: "←"; font-size: 22px; }
  .toolbar-actions { gap: 4px; }
  .toolbar-actions button { width: 36px; height: 36px; overflow: hidden; padding: 0; font-size: 0; }
  .toolbar-actions button::after { font-size: 13px; }
  .toolbar-actions button:nth-child(1)::after { content: "總"; }
  .toolbar-actions button:nth-child(2)::after { content: "備"; }
  .toolbar-actions button:nth-child(3)::after { content: "閱"; }
  .toolbar-actions button:nth-child(4)::after { content: "全"; }
  .dynamic-main { min-height: calc(100svh - 62px); padding-inline: 0; }
  .dynamic-stage-wrap { width: 100vw; }
  .dynamic-stage { border-radius: 0; border-right: 0; border-left: 0; }
  .scene-content { padding: 22px 18px 18px; gap: 12px; }
  .scene-header { font-size: 10px; }
  .content-block { min-height: 0; padding: 12px 12px 12px 36px; }
  .content-block::before { top: 17px; left: 12px; width: 12px; }
  .content-block p { font-size: 14px; }
  .scene-transcript { display: none; }
  .hub-actions { grid-template-columns: 1fr; }
  .overview-panel-actions { gap: 6px; }
  .overview-panel-actions a { overflow: hidden; max-width: 110px; padding-inline: 8px; text-overflow: ellipsis; }
  .hub-copy h1 { font-size: clamp(44px, 13vw, 76px); }
  .hub-lead { font-size: 16px; }
  .hub-pipeline { font-size: 10px; }
}
@media (min-width: 901px) {
  .layout-steps .scene-copy { justify-content: flex-start; }
  .layout-steps .scene-copy h1 { font-size: clamp(26px, 3.2vw, 58px); line-height: 1.03; }
  .layout-steps .scene-description { margin-top: 14px; font-size: clamp(13px, 1vw, 19px); line-height: 1.4; }
  .layout-steps .scene-rail { margin-top: 18px; padding-top: 16px; }
  .layout-steps .scene-body { align-content: start; grid-auto-rows: minmax(min-content, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; }
  .layout-steps .content-block { min-height: 0; padding: 14px 16px 13px 50px; }
  .layout-steps .content-block::before { top: 17px; left: 16px; }
  .layout-steps .content-block p { font-size: clamp(13px, .95vw, 18px); line-height: 1.3; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  .layout-steps .content-block { padding: 12px 12px 10px 44px; }
  .layout-steps .content-block::before { top: 15px; left: 13px; width: 15px; }
  .layout-steps .content-block p { font-size: 12px; line-height: 1.25; }
}
@media (min-width: 901px) and (max-height: 900px) {
  body.interactive-mode { overflow: hidden; }
  body.interactive-mode .dynamic-main { min-height: calc(100svh - 62px); padding-bottom: 20px; overflow: hidden; }
  body.interactive-mode .dynamic-stage-wrap { width: min(100%, 1280px, calc(177.78svh - 352px)); }
}
@media (orientation: landscape) and (max-width: 1100px) {
  body.interactive-mode .dynamic-main { min-height: calc(100svh - 62px); padding: 12px 16px 28px; }
  body.interactive-mode .dynamic-stage-wrap { width: min(100%, calc((100svh - 122px) * 16 / 9)); }
  body.interactive-mode .scene-content { padding: clamp(18px, 3vw, 40px); gap: 14px; }
  body.interactive-mode .scene-grid { gap: 24px; }
  body.interactive-mode .scene-copy h1 { font-size: clamp(26px, 3.8vw, 52px); }
  body.interactive-mode .scene-description { margin-top: 12px; font-size: clamp(13px, 1.35vw, 18px); line-height: 1.5; }
  body.interactive-mode .content-block { min-height: 0; padding: 12px 14px 11px 44px; }
  body.interactive-mode .content-block p { font-size: clamp(12px, 1.15vw, 17px); line-height: 1.4; }
}
@media (max-width: 1200px) and (hover: none) and (pointer: coarse) {
  body.interactive-mode .dynamic-main { display: block; min-height: auto; padding: 12px 12px 32px; }
  body.interactive-mode .dynamic-stage-wrap { width: 100%; height: min(calc(100svh - 126px), 900px); max-height: calc(100svh - 126px); min-height: 220px; aspect-ratio: auto; filter: none; }
  body.interactive-mode .dynamic-stage { height: 100%; min-height: 0; max-height: 100%; overflow-x: hidden; overflow-y: auto; border-radius: 14px; }
  body.interactive-mode .dynamic-slide { position: relative; inset: auto; display: none; min-height: calc(100svh - 126px); overflow: visible; opacity: 1; transform: none; filter: none; transition: none; }
  body.interactive-mode .dynamic-slide.is-active { display: block; }
  body.interactive-mode .dynamic-slide.is-previous { display: none; }
  body.interactive-mode .scene-content { height: auto; min-height: calc(100svh - 126px); overflow: visible; padding: 24px 20px 22px; gap: 18px; scrollbar-gutter: auto; }
  body.interactive-mode .scene-header { flex: 0 0 auto; }
  body.interactive-mode .scene-grid, body.interactive-mode .layout-hero .scene-grid { display: flex; flex: none; flex-direction: column; gap: 18px; min-height: auto; overflow: visible; }
  body.interactive-mode .scene-copy, body.interactive-mode .layout-quote .scene-copy { flex: none; justify-content: flex-start; min-height: 0; overflow: visible; padding-right: 0; scrollbar-gutter: auto; }
  body.interactive-mode .scene-copy h1, body.interactive-mode .layout-hero .scene-copy h1 { max-width: none; font-size: clamp(30px, 8vw, 58px); line-height: 1.12; }
  body.interactive-mode .scene-description { max-width: none; margin-top: 14px; font-size: 16px; line-height: 1.65; }
  body.interactive-mode .scene-rail { margin-top: 18px; padding-top: 14px; }
  body.interactive-mode .scene-body, body.interactive-mode .layout-steps .scene-body { display: grid; grid-auto-rows: auto; grid-template-columns: 1fr; align-content: start; min-height: 0; overflow: visible; padding: 0; scrollbar-gutter: auto; }
  body.interactive-mode .scene-case-media { height: min(42svh, 300px); min-height: min(42svh, 300px); max-height: min(42svh, 300px); }
  body.interactive-mode .scene-case-media figcaption { right: 8px; bottom: 8px; left: 8px; padding: 7px 8px; font-size: 11px; }
  body.interactive-mode .content-block { min-height: 0; overflow: visible; padding: 14px 14px 14px 44px; }
  body.interactive-mode .content-block::before { top: 18px; left: 14px; width: 14px; }
  body.interactive-mode .content-block p { font-size: 15px; line-height: 1.6; }
  body.interactive-mode .scene-footer { flex-wrap: wrap; min-height: 0; overflow: visible; padding-top: 12px; }
  body.interactive-mode .scene-transcript { position: relative; right: auto; bottom: auto; max-width: none; margin-top: 2px; }
  body.interactive-mode .dynamic-controls { margin-top: 14px; }
  body.interactive-mode .dynamic-hint { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/*
   大型螢幕全螢幕呈現增強（最後覆寫層）
   - 只作用於桌機／大型觸控螢幕的橫向全螢幕，不改一般視窗與手機／平板 RWD。
   - 保留 scene-content、scene-copy、scene-body 的垂直捲動，長文不以隱藏溢位換取放大。
   - :fullscreen 支援 stage 原生全螢幕；body.is-immersive 支援不具 Fullscreen API 的瀏覽器。
*/
@media (min-width: 901px) and (orientation: landscape) {
  :fullscreen .scene-content,
  :-webkit-full-screen .scene-content,
  body.is-immersive .scene-content {
    padding: clamp(28px, 3vw, 64px) clamp(38px, 4vw, 84px) clamp(26px, 2.8vw, 60px) !important;
    gap: clamp(18px, 1.8vw, 34px) !important;
    scrollbar-gutter: stable !important;
  }

  :fullscreen .scene-header,
  :-webkit-full-screen .scene-header,
  body.is-immersive .scene-header {
    gap: clamp(18px, 2vw, 36px) !important;
    font-size: clamp(12px, 1.05vw, 18px) !important;
  }

  :fullscreen .scene-grid,
  :-webkit-full-screen .scene-grid,
  body.is-immersive .scene-grid {
    gap: clamp(24px, 4vw, 84px) !important;
  }

  :fullscreen .scene-copy,
  :-webkit-full-screen .scene-copy,
  body.is-immersive .scene-copy,
  :fullscreen .scene-body,
  :-webkit-full-screen .scene-body,
  body.is-immersive .scene-body {
    scrollbar-gutter: stable !important;
  }

  :fullscreen .scene-label,
  :-webkit-full-screen .scene-label,
  body.is-immersive .scene-label {
    margin-bottom: clamp(14px, 1.2vw, 24px) !important;
    font-size: clamp(12px, 1.05vw, 18px) !important;
  }

  :fullscreen .scene-copy h1,
  :-webkit-full-screen .scene-copy h1,
  body.is-immersive .scene-copy h1 {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(40px, 4.2vw, 88px) !important;
    line-height: 1.06 !important;
  }

  :fullscreen .layout-hero .scene-copy h1,
  :-webkit-full-screen .layout-hero .scene-copy h1,
  body.is-immersive .layout-hero .scene-copy h1 {
    font-size: clamp(38px, 3.8vw, 80px) !important;
  }

  :fullscreen .layout-quote .scene-copy h1,
  :-webkit-full-screen .layout-quote .scene-copy h1,
  body.is-immersive .layout-quote .scene-copy h1 {
    max-width: 1600px !important;
    font-size: clamp(40px, 4.4vw, 92px) !important;
    line-height: 1.06 !important;
  }

  :fullscreen .scene-description,
  :-webkit-full-screen .scene-description,
  body.is-immersive .scene-description {
    width: 100% !important;
    max-width: none !important;
    margin-top: clamp(18px, 1.4vw, 28px) !important;
    font-size: clamp(18px, 1.45vw, 30px) !important;
    line-height: 1.58 !important;
  }

  :fullscreen .layout-hero .scene-description,
  :-webkit-full-screen .layout-hero .scene-description,
  body.is-immersive .layout-hero .scene-description,
  :fullscreen .layout-quote .scene-description,
  :-webkit-full-screen .layout-quote .scene-description,
  body.is-immersive .layout-quote .scene-description {
    font-size: clamp(17px, 1.3vw, 27px) !important;
    line-height: 1.52 !important;
  }

  :fullscreen .scene-rail,
  :-webkit-full-screen .scene-rail,
  body.is-immersive .scene-rail {
    gap: 10px !important;
    padding-top: clamp(18px, 1.5vw, 30px) !important;
  }

  :fullscreen .scene-rail strong,
  :-webkit-full-screen .scene-rail strong,
  body.is-immersive .scene-rail strong {
    font-size: clamp(18px, 1.45vw, 28px) !important;
  }

  :fullscreen .scene-body,
  :-webkit-full-screen .scene-body,
  body.is-immersive .scene-body {
    gap: clamp(14px, 1.2vw, 22px) !important;
    padding: clamp(4px, .4vw, 8px) !important;
  }

  :fullscreen .scene-case-media,
  :-webkit-full-screen .scene-case-media,
  body.is-immersive .scene-case-media {
    height: clamp(190px, 30vh, 420px) !important;
    min-height: clamp(190px, 30vh, 420px) !important;
    max-height: clamp(190px, 30vh, 420px) !important;
  }

  :fullscreen .content-block,
  :-webkit-full-screen .content-block,
  body.is-immersive .content-block {
    min-height: clamp(84px, 7vw, 132px) !important;
    padding: clamp(18px, 1.35vw, 28px) clamp(20px, 1.55vw, 32px) clamp(16px, 1.2vw, 25px) clamp(48px, 3.2vw, 72px) !important;
  }

  :fullscreen .content-block::before,
  :-webkit-full-screen .content-block::before,
  body.is-immersive .content-block::before {
    top: clamp(20px, 1.45vw, 28px) !important;
    left: clamp(18px, 1.25vw, 24px) !important;
    width: clamp(18px, 1.25vw, 26px) !important;
    height: clamp(3px, .2vw, 4px) !important;
  }

  :fullscreen .content-block p,
  :-webkit-full-screen .content-block p,
  body.is-immersive .content-block p {
    font-size: clamp(17px, 1.3vw, 26px) !important;
    line-height: 1.5 !important;
  }

  :fullscreen .layout-steps .content-block p,
  :-webkit-full-screen .layout-steps .content-block p,
  body.is-immersive .layout-steps .content-block p {
    font-size: clamp(17px, 1.22vw, 24px) !important;
    line-height: 1.42 !important;
  }

  :fullscreen .scene-footer,
  :-webkit-full-screen .scene-footer,
  body.is-immersive .scene-footer {
    min-height: 36px !important;
    gap: clamp(10px, 1vw, 18px) !important;
    padding-top: 10px !important;
  }

  :fullscreen .scene-link,
  :-webkit-full-screen .scene-link,
  body.is-immersive .scene-link {
    padding: 8px 14px !important;
    font-size: clamp(13px, .9vw, 17px) !important;
  }

  :fullscreen .scene-transcript,
  :-webkit-full-screen .scene-transcript,
  body.is-immersive .scene-transcript {
    right: clamp(28px, 3vw, 64px) !important;
    bottom: clamp(26px, 2.8vw, 60px) !important;
    max-width: min(720px, 42%) !important;
    font-size: clamp(13px, .9vw, 17px) !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   操作型投影片的語意化卡片
   - 以「操作步驟／完成條件」取代長段落硬拆，避免最高卡片把同列撐出大空白。
   - 桌機維持雙欄；觸控裝置改為單欄，讓每一項都能自然閱讀。
   ─────────────────────────────────────────────────────────────── */
.layout-steps .scene-body { align-items: start; grid-auto-rows: auto; }
.layout-steps .content-block { align-self: start; }
.layout-steps .content-block--steps:only-child,
.layout-steps .content-block--checks:only-child { grid-column: 1 / -1; }
.layout-steps .content-block.content-block--steps,
.layout-steps .content-block.content-block--checks {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-self: start;
  padding: clamp(16px, 1.25vw, 26px);
}
.layout-steps .content-block--steps::before,
.layout-steps .content-block--checks::before {
  top: clamp(18px, 1.4vw, 26px);
  left: clamp(18px, 1.25vw, 24px);
  width: clamp(18px, 1.25vw, 26px);
}
.content-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 24px;
  padding-left: clamp(30px, 2vw, 42px);
}
.content-block-kicker {
  color: var(--ink);
  font-size: clamp(15px, 1.08vw, 21px);
  font-weight: 900;
  letter-spacing: .02em;
}
.content-block-meta {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--rule));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  font: 800 clamp(11px, .8vw, 15px)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}
.content-list {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.content-list li {
  display: grid;
  grid-template-columns: 2.15em minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--rule) 78%, transparent);
}
.content-list li:first-child { border-top: 0; }
.content-list--steps { counter-reset: structured-step; }
.content-list--steps li { counter-increment: structured-step; }
.content-list--steps li::before {
  display: grid;
  width: 1.85em;
  height: 1.85em;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  content: counter(structured-step);
  font: 900 clamp(12px, .86vw, 17px)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.content-list--checks li::before {
  display: grid;
  width: 1.85em;
  height: 1.85em;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 15%, transparent);
  color: var(--teal);
  content: "✓";
  font-size: clamp(14px, .95vw, 19px);
  font-weight: 900;
}
.content-list li span {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(14px, 1.02vw, 20px);
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) and (hover: none) and (pointer: coarse) {
  .layout-steps .content-block.content-block--steps,
  .layout-steps .content-block.content-block--checks {
    padding: 16px;
  }
  .content-block-heading { padding-left: 28px; }
  .content-list li { padding: 10px 0; }
  .content-list li span { font-size: 15px; line-height: 1.55; }
}

@media (min-width: 901px) and (orientation: landscape) {
  :fullscreen .layout-steps .content-block.content-block--steps,
  :-webkit-full-screen .layout-steps .content-block.content-block--steps,
  body.is-immersive .layout-steps .content-block.content-block--steps,
  :fullscreen .layout-steps .content-block.content-block--checks,
  :-webkit-full-screen .layout-steps .content-block.content-block--checks,
  body.is-immersive .layout-steps .content-block.content-block--checks {
    min-height: 0 !important;
    padding: clamp(16px, 1.2vw, 26px) !important;
  }
  :fullscreen .layout-steps .content-block--steps::before,
  :-webkit-full-screen .layout-steps .content-block--steps::before,
  body.is-immersive .layout-steps .content-block--steps::before,
  :fullscreen .layout-steps .content-block--checks::before,
  :-webkit-full-screen .layout-steps .content-block--checks::before,
  body.is-immersive .layout-steps .content-block--checks::before {
    top: clamp(18px, 1.4vw, 26px) !important;
    left: clamp(18px, 1.25vw, 24px) !important;
  }
  :fullscreen .layout-steps .content-block-heading,
  :-webkit-full-screen .layout-steps .content-block-heading,
  body.is-immersive .layout-steps .content-block-heading {
    min-height: 28px;
  }
  :fullscreen .layout-steps .content-list li span,
  :-webkit-full-screen .layout-steps .content-list li span,
  body.is-immersive .layout-steps .content-list li span {
    font-size: clamp(15px, 1.08vw, 22px) !important;
    line-height: 1.42 !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   跨場次 HTML 簡報總覽專區
   - 獨立頁面提供上午／下午場的搜尋、篩選與指定頁跳轉。
   - 卡片不依賴投影片圖片，保留 HTML 文字可讀性與手機 RWD。
   ─────────────────────────────────────────────────────────────── */
.overview-page {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(85, 167, 255, .2), rgba(85, 167, 255, 0) 30%),
    radial-gradient(circle at 92% 82%, rgba(44, 210, 199, .14), rgba(44, 210, 199, 0) 30%),
    var(--bg);
}
.overview-main { width: min(100%, 1760px); margin: 0 auto; padding: clamp(20px, 4vw, 70px) clamp(16px, 5vw, 88px) 44px; }
.overview-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.overview-back { display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in srgb, var(--panel) 90%, transparent); color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.overview-back:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.overview-kicker { color: var(--accent); font: 800 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.overview-hero { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: clamp(54px, 9vw, 132px) 0 clamp(34px, 5vw, 72px); }
.overview-eyebrow { margin: 0 0 18px; color: var(--accent); font-size: clamp(15px, 1.3vw, 22px); font-weight: 800; letter-spacing: .08em; }
.overview-hero h1 { max-width: 920px; margin: 0; color: var(--ink); font-size: clamp(42px, 6.5vw, 112px); font-weight: 900; letter-spacing: -.065em; line-height: 1.02; }
.overview-lead { max-width: 860px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 1.35vw, 24px); line-height: 1.7; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(84px, 1fr)); gap: 12px; min-width: min(100%, 360px); }
.overview-stats div { padding: 18px 16px; border-top: 3px solid var(--accent); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--panel) 84%, transparent); box-shadow: 0 14px 40px rgba(0, 0, 0, .12); }
.overview-stats b { display: block; color: var(--ink); font: 900 clamp(26px, 3vw, 46px)/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.overview-stats span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.overview-tools { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px; border: 1px solid var(--rule); border-radius: 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 14px 40px rgba(0, 0, 0, .16); backdrop-filter: blur(18px); }
.overview-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-filter { padding: 10px 14px; border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in srgb, var(--panel) 76%, transparent); color: var(--muted); font-size: 13px; font-weight: 800; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.overview-filter:hover, .overview-filter.is-active { border-color: var(--accent); background: var(--accent); color: var(--panel); transform: translateY(-1px); }
.overview-search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 430px); padding: 8px 12px; border: 1px solid var(--rule); border-radius: 12px; background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--muted); }
.overview-search span { font-size: 12px; font-weight: 900; white-space: nowrap; }
.overview-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.overview-search input::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); }
.overview-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.overview-search kbd { padding: 3px 7px; border: 1px solid var(--rule); border-radius: 5px; color: var(--muted); font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.overview-result-note { margin: 22px 0 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.overview-empty { padding: 36px; border: 1px dashed var(--rule); border-radius: 16px; color: var(--muted); text-align: center; }
.overview-decks { display: grid; gap: 48px; }
.overview-session { padding: clamp(18px, 2.5vw, 34px); border: 1px solid var(--rule); border-radius: 22px; background: color-mix(in srgb, var(--panel) 74%, transparent); box-shadow: var(--shadow); }
.overview-session--morning { border-top: 3px solid var(--accent); }
.overview-session--afternoon { border-top: 3px solid var(--teal); }
.overview-session-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.overview-session-head p { margin: 0 0 7px; color: var(--accent); font: 800 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.overview-session--afternoon .overview-session-head p { color: var(--teal); }
.overview-session-head h2 { margin: 0; color: var(--ink); font-size: clamp(22px, 2.3vw, 36px); letter-spacing: -.04em; }
.overview-session-open { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--rule); border-radius: 999px; color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.overview-session-open:hover { border-color: var(--accent); background: var(--accent); color: var(--panel); }
.overview-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; }
.overview-slide-card { position: relative; display: flex; min-height: 178px; flex-direction: column; padding: 16px 17px 15px; overflow: hidden; border: 1px solid var(--rule); border-radius: 15px; background: color-mix(in srgb, var(--panel) 94%, transparent); color: var(--ink); text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease; }
.overview-slide-card::after { position: absolute; right: -22px; bottom: -30px; width: 92px; height: 92px; border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 50%; content: ""; pointer-events: none; }
.overview-slide-card:hover, .overview-slide-card:focus-visible { border-color: var(--accent); background: var(--panel); box-shadow: 0 16px 34px rgba(0, 0, 0, .16); transform: translateY(-4px); }
.overview-slide-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 2px; }
.overview-slide-card--afternoon:hover, .overview-slide-card--afternoon:focus-visible { border-color: var(--teal); }
.overview-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-card-session { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.overview-slide-card--afternoon .overview-card-session { color: var(--teal); }
.overview-card-number { color: var(--muted); font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.overview-slide-card h3 { max-width: 100%; margin: 18px 0 0; color: var(--ink); font-size: 18px; line-height: 1.38; overflow-wrap: anywhere; white-space: pre-line; }
.overview-card-section { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.overview-card-action { margin-top: auto; padding-top: 14px; color: var(--accent); font-size: 12px; font-weight: 900; }
.overview-slide-card--afternoon .overview-card-action { color: var(--teal); }
.overview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.overview-footer__links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.overview-footer .dynamic-site-footer__credit { color: var(--muted); }
.overview-footer a { color: var(--accent); font-weight: 800; text-decoration: none; }
.overview-footer a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .overview-hero { align-items: start; flex-direction: column; }
  .overview-stats { width: min(100%, 520px); }
  .overview-tools { align-items: stretch; flex-direction: column; }
  .overview-search { width: 100%; }
}
@media (max-width: 640px) {
  .overview-main { padding: 16px 12px 30px; }
  .overview-topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .overview-kicker { font-size: 10px; }
  .overview-hero { padding: 56px 0 34px; }
  .overview-hero h1 { font-size: clamp(40px, 13vw, 74px); }
  .overview-lead { margin-top: 18px; font-size: 16px; line-height: 1.65; }
  .overview-stats { gap: 8px; }
  .overview-stats div { padding: 14px 10px; }
  .overview-stats b { font-size: 25px; }
  .overview-stats span { font-size: 10px; }
  .overview-tools { top: 8px; padding: 9px; }
  .overview-filters { display: grid; grid-template-columns: 1fr; }
  .overview-filter { width: 100%; }
  .overview-search { min-width: 0; }
  .overview-search kbd { display: none; }
  .overview-session { padding: 16px 12px 12px; border-radius: 16px; }
  .overview-session-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .overview-session-open { width: 100%; text-align: center; }
  .overview-card-grid { grid-template-columns: 1fr; }
  .overview-slide-card { min-height: 150px; }
  .overview-footer { align-items: center; flex-direction: column; text-align: center; }
  .overview-footer__links { align-items: center; flex-direction: column; gap: 8px; }
  .dynamic-site-footer { padding-inline: 12px; text-align: center; }
  .dynamic-site-footer__inner { justify-content: center; }
}

/* ───────────────────────────────────────────────────────────────
   互動轉場單一動畫控制（最底層 SSOT）
   - 投影片外層只負責雙緩衝堆疊，不再與 GSAP 同時淡入、縮放、模糊。
   - scene-transition 的透明度與縮放交由 animateInteractiveScene() 統一控制。
   - 保留 HyperFrames 模式原有的 seek／呈現行為，不影響 08 圖檔簡報。
   ─────────────────────────────────────────────────────────────── */
body.interactive-mode .dynamic-slide,
body.interactive-mode .scene-transition {
  transition: none !important;
}
body.interactive-mode .dynamic-slide:not(.is-active):not(.is-previous) {
  visibility: hidden;
  content-visibility: hidden;
  contain: paint;
}
body.interactive-mode .dynamic-slide.is-active,
body.interactive-mode .dynamic-slide.is-previous {
  visibility: visible;
  content-visibility: visible;
  contain: none;
}

/* ───────────────────────────────────────────────────────────────
   資源列多列化與完整文字浮層
   - 資源連結過多時自然換列，不再以單列橫向捲軸壓在底部。
   - 完整文字移出 scene-content 的 flex 排版流，展開只以高層浮層覆蓋，
     不壓縮原投影片的 scene-grid、標題與內容位置。
   - z-index：內容 5／資源列 6／完整文字浮層 40，保留手機／平板 RWD。
   - 摘要列停靠在右下安全區、資源列上方；展開面板向上浮出，避免遮住中央內容。
   ─────────────────────────────────────────────────────────────── */
.scene-footer {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  min-height: 28px;
  overflow: visible;
  padding-top: 10px;
  position: relative;
  z-index: 6;
}
.scene-transcript,
:fullscreen .scene-transcript,
:-webkit-full-screen .scene-transcript,
body.is-immersive .scene-transcript {
  position: absolute !important;
  top: auto !important;
  right: clamp(24px, 3vw, 64px) !important;
  bottom: clamp(128px, 12%, 160px) !important;
  align-self: auto;
  flex: 0 0 auto;
  width: min(520px, 42%) !important;
  max-width: min(520px, 42%) !important;
  margin: 0 !important;
  z-index: 40 !important;
}
.scene-transcript[open] { z-index: 40 !important; }
.scene-transcript .transcript-panel { position: relative; z-index: 41; }
.scene-transcript[open] .transcript-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 100%;
  max-width: none;
  margin-top: 0;
  z-index: 41;
}
.scene-transcript p { max-width: min(100%, 720px); }

@media (max-width: 900px) {
  .scene-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-top: 12px;
  }
  .scene-link { max-width: 100%; }
  .scene-transcript {
    top: auto !important;
    right: 16px !important;
    bottom: clamp(58px, 8%, 84px) !important;
    width: min(400px, 46%) !important;
    max-width: min(400px, 46%) !important;
  }
  .scene-transcript[open] .transcript-panel { bottom: calc(100% + 8px); }
}

/* 窄畫面沒有多餘的畫布安全區：改回內容流末端，讓投影片捲動查看而不遮蓋正文。 */
@media (max-width: 1000px) {
  .scene-transcript {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2px 0 0 !important;
  }
  .scene-transcript[open] .transcript-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .scene-footer { gap: 7px; }
  .scene-link {
    max-width: 100%;
    padding: 6px 9px;
    font-size: 12px;
  }
  .scene-transcript {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-inline: 12px !important;
  }
}

/* 全螢幕桌機的資源列可能換成兩列：摘要列再上移至資源列上方安全帶。 */
@media (min-width: 1001px) and (orientation: landscape) {
  :fullscreen .scene-transcript,
  :-webkit-full-screen .scene-transcript,
  body.is-immersive .scene-transcript {
    bottom: clamp(196px, 18%, 220px) !important;
  }
}

/* 短桌面視窗同樣可能讓頁尾資源換列，預留資源列上方安全距離。 */
@media (min-width: 1001px) and (max-height: 750px) and (orientation: landscape) {
  .scene-transcript {
    bottom: clamp(172px, 20%, 210px) !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   完整文字區塊 UIUX：分類資訊面板
   - 保留原始全文，改以主題／章節／資源／重點分層呈現。
   - 面板本身獨立捲動，不擠壓簡報主內容，也不與資源列重疊。
   - 顏色同時搭配文字標籤，不把資訊差異只交給顏色辨識。
   ─────────────────────────────────────────────────────────────── */
:root {
  --transcript-gold: #b66d1d;
  --transcript-surface: rgba(255, 255, 255, .86);
}
.theme-afternoon {
  --transcript-gold: #e8b35d;
  --transcript-surface: rgba(11, 28, 46, .88);
}
.scene-transcript {
  width: min(100%, 660px);
  max-width: min(100%, 660px) !important;
  color: var(--ink);
  font-size: clamp(12px, .82vw, 15px);
}
.scene-transcript > summary.transcript-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--rule));
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.scene-transcript > summary.transcript-toggle::-webkit-details-marker { display: none; }
.scene-transcript > summary.transcript-toggle:hover,
.scene-transcript[open] > summary.transcript-toggle {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 16%, transparent);
}
.transcript-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}
.transcript-toggle-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--panel);
  font-size: 14px;
  font-weight: 900;
  transition: transform .22s ease;
}
.scene-transcript[open] .transcript-toggle-icon { transform: rotate(90deg); }
.transcript-toggle-copy { display: grid; min-width: 0; gap: 1px; text-align: left; }
.transcript-toggle-copy strong { font-size: 13px; line-height: 1.2; }
.transcript-toggle-copy small { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.25; }
.transcript-toggle-state { margin-left: auto; color: var(--accent); font-size: 11px; font-weight: 900; white-space: nowrap; }
.transcript-state-open { display: none; }
.scene-transcript[open] .transcript-state-closed { display: none; }
.scene-transcript[open] .transcript-state-open { display: inline; }
.transcript-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(45svh, 480px);
  overflow: hidden;
  margin-top: 10px;
  padding: clamp(14px, 1.2vw, 20px);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--rule));
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%),
    linear-gradient(315deg, color-mix(in srgb, var(--teal) 8%, transparent), transparent 52%),
    var(--transcript-surface);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--ink) 13%, transparent);
  backdrop-filter: blur(16px);
}
.transcript-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0; }
.transcript-panel-title-wrap { min-width: 0; }
.transcript-panel-eyebrow { display: block; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.transcript-panel-title { margin: 4px 0 0; color: var(--ink); font-size: clamp(17px, 1.3vw, 24px); font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; white-space: pre-line; }
.transcript-page-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--accent-2) 52%, var(--rule)); border-radius: 9px; background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.transcript-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.transcript-chip { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; color: var(--accent); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.transcript-chip b { flex: 0 0 auto; font-size: 10px; letter-spacing: .05em; }
.transcript-chip--section { color: var(--teal); }
.transcript-chip--page { color: var(--accent-2); }
.transcript-body {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 3px 5px 3px 2px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 72%, var(--rule)) color-mix(in srgb, var(--rule) 22%, transparent);
}
.transcript-body:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 52%, transparent); outline-offset: 2px; }
.transcript-body::-webkit-scrollbar { width: 9px; height: 9px; }
.transcript-body::-webkit-scrollbar-track { border-radius: 999px; background: color-mix(in srgb, var(--rule) 22%, transparent); }
.transcript-body::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--accent) 72%, var(--rule)); background-clip: padding-box; }
.transcript-line { display: grid; grid-template-columns: 4px auto minmax(0, 1fr); gap: 8px; align-items: start; min-width: 0; margin: 0; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--rule) 44%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--panel) 58%, transparent); color: var(--muted); font-size: clamp(12px, .82vw, 15px); line-height: 1.55; }
.transcript-line-marker { width: 4px; min-height: 19px; border-radius: 999px; background: var(--accent); }
.transcript-line-label { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .04em; line-height: 1.65; white-space: nowrap; }
.transcript-line-copy { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.transcript-line-copy a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.transcript-line--eyebrow { border-color: color-mix(in srgb, var(--accent) 34%, var(--rule)); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.transcript-line--heading { border-color: color-mix(in srgb, var(--accent) 36%, var(--rule)); background: color-mix(in srgb, var(--accent) 13%, var(--panel)); color: var(--ink); font-weight: 800; }
.transcript-line--heading .transcript-line-marker { background: var(--accent); }
.transcript-line--meta { border-color: color-mix(in srgb, var(--teal) 36%, var(--rule)); background: color-mix(in srgb, var(--teal) 10%, var(--panel)); }
.transcript-line--meta .transcript-line-marker { background: var(--teal); }
.transcript-line--meta .transcript-line-label { color: var(--teal); }
.transcript-line--marker { border-color: color-mix(in srgb, var(--accent-2) 36%, var(--rule)); background: color-mix(in srgb, var(--accent-2) 10%, var(--panel)); }
.transcript-line--marker .transcript-line-marker { background: var(--accent-2); }
.transcript-line--marker .transcript-line-label { color: var(--accent-2); }
.transcript-line--bullet { border-color: color-mix(in srgb, var(--transcript-gold) 44%, var(--rule)); background: color-mix(in srgb, var(--transcript-gold) 10%, var(--panel)); }
.transcript-line--bullet .transcript-line-marker { background: var(--transcript-gold); }
.transcript-line--bullet .transcript-line-label { color: var(--transcript-gold); }
.transcript-line--source { border-color: color-mix(in srgb, var(--accent-2) 38%, var(--rule)); background: color-mix(in srgb, var(--accent-2) 7%, var(--panel)); }
.transcript-line--source .transcript-line-marker { background: var(--accent-2); }
.transcript-line--source .transcript-line-label { color: var(--accent-2); }
.transcript-line--spacer { min-height: 2px; padding: 0; border: 0; background: transparent; }
.transcript-panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 10px; font-weight: 800; }
.transcript-foot-label { margin-right: 2px; color: var(--ink); }
.transcript-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.transcript-legend-item::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; }
.transcript-legend-item--section::before { background: var(--teal); }
.transcript-legend-item--source::before { background: var(--accent-2); }
.transcript-legend-item--point::before { background: var(--transcript-gold); }

@media (max-width: 900px) {
  .transcript-panel { max-height: min(50svh, 440px); }
}
@media (max-width: 600px) {
  .scene-transcript { display: block; }
  .transcript-panel { gap: 10px; margin-top: 8px; padding: 12px; border-radius: 14px; }
  .transcript-panel-head { gap: 8px; }
  .transcript-panel-title { font-size: 16px; }
  .transcript-page-badge { padding: 5px 7px; font-size: 10px; }
  .transcript-chip { font-size: 10px; }
  .transcript-line { grid-template-columns: 3px auto minmax(0, 1fr); gap: 6px; padding: 6px 7px; font-size: 12px; }
  .transcript-line-marker { width: 3px; }
  .transcript-line-label { font-size: 9px; }
}

/* ───────────────────────────────────────────────────────────────
   2026.08.24.01：投影片底部安全區與觸控 RWD
   - 全文摘要列與資源列同屬 scene-bottom，不再浮在正文或卡片上方。
   - 原生／模擬全螢幕維持既有 SSOT；只修正一般互動頁，避免回退全螢幕轉場。
   - 觸控裝置由簡報區單一捲動，外層不再跟著捲動；導覽提示與重複首頁按鈕收起。
   ─────────────────────────────────────────────────────────────── */
@media (min-width: 901px) {
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, min(42%, 520px));
    align-items: end;
    gap: clamp(12px, 1.8vw, 28px);
    min-width: 0;
    flex: 0 0 auto;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-bottom .scene-footer {
    grid-column: 1;
    min-width: 0;
    width: 100%;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-bottom .scene-transcript {
    grid-column: 2;
    position: relative !important;
    inset: auto !important;
    align-self: end;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 40 !important;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-bottom .scene-transcript[open] .transcript-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: 41;
  }
  .scene-footer:empty { display: none; }
  .layout-editorial .scene-copy h1 {
    max-width: 720px;
    font-size: clamp(34px, 3.5vw, 72px);
    line-height: 1.05;
  }
  .layout-editorial .scene-description {
    line-height: 1.5;
  }
  .layout-editorial .scene-body {
    gap: clamp(10px, 1vw, 16px);
    padding: 4px;
    align-content: stretch;
    grid-auto-rows: minmax(120px, 1fr);
  }
  .layout-editorial.has-case-media .scene-body {
    align-content: start;
    grid-auto-rows: minmax(min-content, auto);
  }
  .layout-editorial.has-case-media .content-block {
    height: auto;
  }
  .layout-editorial .content-block {
    display: flex;
    align-items: center;
    min-height: 0;
    height: 100%;
    overflow: auto;
    padding: clamp(12px, 1.05vw, 18px) clamp(14px, 1.05vw, 18px) clamp(11px, .9vw, 16px) clamp(38px, 2.8vw, 52px);
  }
  .layout-editorial .content-block::before {
    top: clamp(15px, 1.15vw, 21px);
    left: clamp(13px, 1.05vw, 19px);
    width: clamp(15px, 1.05vw, 20px);
  }
  .layout-editorial .content-block p {
    font-size: clamp(13px, .95vw, 18px);
    line-height: 1.4;
  }
}

@media (max-width: 1200px) and (hover: none) and (pointer: coarse) {
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .dynamic-main {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    height: calc(100svh - 62px);
    min-height: 0;
    gap: 8px;
    overflow: hidden;
    padding: 8px 12px;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .dynamic-stage-wrap {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .dynamic-stage {
    height: 100%;
    max-height: none;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .dynamic-slide {
    min-height: 100%;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-content {
    min-height: 100%;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-bottom {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    padding-top: 10px;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-footer:empty {
    display: none;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-link {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 7px 8px;
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-transcript {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-transcript[open] .transcript-panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .dynamic-controls {
    flex: 0 0 42px;
    width: 100%;
    gap: 8px;
    margin-top: 0;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .deck-home-button,
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .dynamic-hint {
    display: none;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .nav-button {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 901px) and (max-height: 750px) {
  .layout-editorial .scene-body {
    align-content: start;
    grid-auto-rows: minmax(min-content, auto);
  }
  .layout-editorial .content-block {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .dynamic-main {
    padding-inline: 0;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-content {
    padding: 22px 18px 18px;
  }
  html:not(:fullscreen):not(:-webkit-full-screen) body.interactive-mode:not(.is-immersive):not(.native-fullscreen) .scene-transcript > summary.transcript-toggle {
    min-height: 40px;
    padding: 6px 10px;
  }
}
