:root {
  --plum: #633d58;
  --deep: #59374a;
  --ink: #422939;
  --muted: #68535f;
  --rose: #924652;
  --line: #d9c4cb;
  --violet: #805880;
  --lilac: #eee0ee;
  --paper: #fff9f3;
  --canvas: #f7eee9;
  font-family: Inter, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, select, textarea { color: inherit; font: inherit; }
button, .button { cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: default; opacity: .42; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 0; left: 0; z-index: 8; padding: .6rem; background: var(--paper); }
.container { width: min(1216px,calc(100% - 9vw)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar, .bar nav, .brand, .library-button, .hero-meta, .hero-actions, .button, .class-head, .switch, .step-meta, .step-duration, .step-links, .step-footer, .pager, .dialog-demos { display: flex; align-items: center; }
.bar { min-height: 65px; justify-content: space-between; }
.bar a { text-decoration: none; }
.brand { gap: .7rem; font-weight: 800; font-size: 1.19rem; letter-spacing: .02em; }
.bar nav { gap: 1.65rem; font-size: .89rem; font-weight: 650; }
.bar nav a:hover, .step-links a:hover { text-decoration: underline; }
.library-button { gap: .6em; padding: .37rem .9rem; border: 1px solid var(--line); border-radius: 5px; }
.folder-glyph { display: inline-block; position: relative; width: 15px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.folder-glyph::before { content: ""; position: absolute; left: -1.5px; top: -4px; width: 6px; height: 3px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 3px 0 0; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 28px 0 34px; }
.hero-copy { padding: clamp(28px,3.6vw,54px) clamp(25px,4.3vw,71px); align-self: center; z-index: 1; }
.hero-meta { gap: .7rem; color: var(--plum); font-size: .91rem; font-weight: 680; }
.signal { display: inline-flex; gap: 3px; align-items: center; }
.signal i { width: 3px; height: 9px; background: var(--rose); border-radius: 4px; }
.signal i:nth-child(2) { height: 17px; }
.divider { width: 1px; height: 13px; background: var(--line); }
h1 { margin: .22em 0 .18em; color: var(--deep); font-size: clamp(2.9rem,5.3vw,5rem); line-height: 1.18; letter-spacing: -.045em; font-weight: 860; }
.hero-copy p { color: var(--muted); line-height: 1.85; max-width: 32em; }
.hero-actions { gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.button { display: inline-flex; gap: .65em; text-decoration: none; justify-content: center; padding: .57em 1.05em; min-height: 40px; font-size: .95rem; font-weight: 700; line-height: 1.45; border: 1px solid transparent; border-radius: 6px; }
.primary { background: var(--plum); color: white; }
.primary:hover, #next:hover { background: var(--ink); }
.ghost { color: var(--deep); border-color: var(--line); background: var(--paper); }
.ghost:hover, .library-button:hover { background: var(--lilac); }
.play-glyph { display: inline-block; border-block: 5px solid transparent; border-left: 8px solid var(--plum); }
.keeper { position: relative; isolation: isolate; overflow: hidden; min-height: 310px; background: repeating-linear-gradient(90deg, transparent 0 22px, #a45a6b21 22px 24px), linear-gradient(135deg, #ebc497, #d7a2a5 67%, #bb7d86); border-left: 1px dashed #996c78; }
.keeper::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 21px, #fff9f334 21px 22px); }
.arch { position: absolute; width: 70%; height: 160%; border: 1px solid #fff9f3ba; box-shadow: 0 0 0 12px #fff9f326, 0 0 0 13px #fff9f375; border-radius: 50% 50% 0 0; left: 24%; top: 13%; transform: rotate(-10deg); }
.keeper img { position: absolute; height: 148%; width: 93%; max-width: none; left: 4%; top: 5%; object-fit: contain; object-position: center top; filter: drop-shadow(5px 8px 6px #59374a24); }
.keeper figcaption { position: absolute; bottom: 20px; left: 20px; display: grid; border-left: 3px solid var(--rose); padding: 6px 15px 6px 12px; background: var(--paper); line-height: 1.35; box-shadow: 2px 2px 0 #59374a25; }
.keeper strong { color: var(--deep); font-size: 1.12rem; letter-spacing: .1em; }
#classroom { scroll-margin-top: 10px; }
.class-head { justify-content: space-between; margin-bottom: 16px; gap: 1rem; }
.class-head h2 { font-size: clamp(1.55rem,2.4vw,2rem); letter-spacing: -.04em; }
.switch { gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.switch button { padding: .38rem 1.12rem; color: var(--muted); border-radius: 5px; font-size: .92rem; font-weight: 700; }
.switch button[aria-selected=true] { color: var(--paper); background: var(--deep); }
.workbench { display: grid; grid-template-columns: minmax(240px, .38fr) minmax(0,1fr); gap: 22px; align-items: start; }
.schedule, .lesson-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.schedule { overflow: hidden; }
.schedule-heading { padding: 20px 21px 15px; background: var(--lilac); border-bottom: 1px solid var(--line); }
.schedule-heading span { font-size: .76rem; font-weight: 700; color: var(--plum); }
.schedule h3 { margin-top: 2px; font-size: 1.16rem; }
#outline-toggle { display: none; }
#steps { list-style: none; padding: 8px 0; }
#steps button { display: grid; align-items: center; grid-template-columns: 20px 1fr; gap: 9px; width: 100%; padding: .47rem 1.15rem; text-align: left; line-height: 1.45; }
#steps button:hover { background: #f5e9ec; }
#steps button[aria-current=step] { color: var(--plum); background: #f3e7ed; box-shadow: inset 3px 0 var(--violet); font-weight: 700; }
.stop { align-self: center; display: grid; place-content: center; width: 13px; height: 13px; margin-left: 2px; background: var(--paper); border: 1px solid #a8879a; border-radius: 50%; font-size: 9px; line-height: 1; }
[aria-current=step] .stop { background: var(--plum); border: 3px solid #e1ccde; box-shadow: 0 0 0 1px var(--plum); }
.done .stop { background: var(--plum); color: #fff; }
.stop-label { font-size: .91rem; }
.stop-label small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; font-size: .73rem; }
.lesson-sheet { padding: clamp(21px,3vw,40px); min-width: 0; }
.setup-guide { max-width: 58rem; margin-inline: auto; overflow-wrap: anywhere; }
.setup-guide > h3 { font-size: clamp(1.5rem,2.4vw,2.2rem); line-height: 1.35; }
.setup-guide .intro { margin-top: .4rem; }
.setup-guide > p, .setup-steps, .setup-help { max-width: 50rem; }
.setup-note { margin-top: 1rem; padding: .65rem .9rem; border-left: 3px solid var(--violet); background: #f3e9f0; font-size: .92rem; }
.setup-guide a:not(.button) { color: var(--plum); font-weight: 650; }
.setup-steps { padding: 0; margin: 1.65rem 0; list-style: none; counter-reset: preparation; }
.setup-steps > li { counter-increment: preparation; position: relative; padding-left: 2.6rem; }
.setup-steps > li + li { border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 1.3rem; }
.setup-steps > li::before { content: counter(preparation); position: absolute; left: 0; display: grid; place-items: center; border-radius: 50%; width: 1.8rem; height: 1.8rem; background: var(--lilac); color: var(--plum); font-weight: 750; }
.setup-steps h4 { font-size: 1.18rem; line-height: 1.5; }
.setup-steps p, .setup-actions > li + li { margin-top: .5rem; }
.setup-platforms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: .65rem 0 0; }
.setup-platforms dt { font-weight: 750; color: var(--plum); }
.setup-platforms dd { margin: .2rem 0 0; }
.setup-actions, .setup-help ul { margin: .5rem 0 0; padding-left: 1.4rem; }
.setup-guide .prompt-box { margin: .7rem 0; }
.setup-guide .prompt-title label { font-weight: 700; }
.setup-guide textarea { min-height: 4.7em; }
.setup-help { margin-bottom: 1.25rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 6px; }
.setup-help summary { cursor: pointer; font-weight: 700; }
.setup-help li + li { margin-top: .5rem; }
.shared-device { color: var(--muted); margin-bottom: 1rem; font-size: .91rem; }
.step-meta { justify-content: space-between; color: var(--rose); font-weight: 700; font-size: .82rem; }
.step-duration { gap: .45rem; color: var(--muted); }
.clock { width: 13px; height: 13px; border: 1.3px solid currentColor; border-radius: 50%; position: relative; }
.clock::after { content: ""; position: absolute; width: 3px; height: 4px; left: 5px; top: 2px; border-left: 1px solid; border-bottom: 1px solid; }
#step-title { font-size: clamp(1.6rem,2.4vw,2.25rem); line-height: 1.34; margin-top: 8px; letter-spacing: -.035em; scroll-margin-top: 17px; }
.keeper-note { display: flex; align-items: center; gap: 10px; margin-top: .75rem; }
.keeper-note img { flex: none; height: 38px; width: 38px; object-fit: cover; object-position: center 12%; border-radius: 50%; background: var(--lilac); border: 1px solid var(--line); }
.intro { color: var(--muted); }
.step-links { gap: 9px; flex-wrap: wrap; }
.step-links:not(:empty) { margin-top: 15px; }
.step-links a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 5px; font-size: .88rem; text-decoration: none; color: var(--plum); font-weight: 700; }
.lesson-section { margin-top: 1.35rem; }
h4 { font-size: 1.06rem; }
#actions, #checks { padding: 0; margin-top: .45rem; list-style: none; }
#actions { counter-reset: action; }
#actions li, #checks li { display: grid; grid-template-columns: 1.65em 1fr; margin-block: .5em; }
#actions li { counter-increment: action; }
#actions li::before { content: counter(action) "."; color: var(--rose); font-weight: 750; }
#checks li::before { content: "◇"; color: var(--violet); }
.prompt-box { padding: 17px; background: #f3e9f0; border: 1px solid var(--line); border-radius: 7px; margin-top: 1.4rem; }
.prompt-title, .resource-row, .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.prompt-title button, #mark, #back { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: .36em .75em; }
.prompt-title button { font-size: .87rem; font-weight: 700; }
#variant-label { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .88rem; }
select { max-width: 75%; border: 1px solid var(--line); background: var(--paper); padding: 5px; border-radius: 4px; }
textarea { display: block; width: 100%; margin-top: .7rem; padding: .7em .8em; min-height: 8em; resize: vertical; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; font-size: .96rem; line-height: 1.7; }
.prompt-box [role=status] { color: var(--plum); font-size: .85rem; }
.prompt-box [role=status]:not(:empty) { margin-top: .4em; }
.step-footer { justify-content: space-between; padding-top: 1.25rem; margin-top: 1.45rem; border-top: 1px solid var(--line); gap: .6rem; }
#mark { display: flex; align-items: center; gap: 7px; font-size: .93rem; }
#mark i { font-style: normal; color: transparent; border: 1px solid var(--violet); width: 15px; height: 15px; line-height: 14px; border-radius: 3px; }
#mark[aria-pressed=true] i { color: white; background: var(--plum); }
.pager { gap: 6px; }
#back, #next { min-height: 39px; }
#next { display: flex; gap: 10px; align-items: center; background: var(--plum); color: var(--paper); border-radius: 5px; padding: .39em .8em; font-size: .94rem; font-weight: 650; }
.credits { display: flex; flex-wrap: wrap; justify-content: space-between; font-size: .79rem; color: var(--muted); gap: 7px; padding: 26px 0 30px; }
dialog { padding: clamp(20px,4vw,35px); width: min(550px,94vw); max-height: 87vh; overflow-y: auto; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
dialog::backdrop { background: #34213185; }
.dialog-head { padding-bottom: 14px; }
.dialog-head button { font-size: 1.65rem; width: 40px; height: 40px; line-height: 1; }
.resource-row { border-top: 1px solid var(--line); padding-block: 1rem; }
.resource-row p { font-size: .9rem; color: var(--muted); }
.resource-row .button { flex: none; font-size: .88rem; }
.dialog-demos { gap: 20px; flex-wrap: wrap; color: var(--plum); font-weight: 650; }
@media (min-width: 1400px) { .hero { min-height: 345px; } }
@media (max-width: 870px) {
  .container { width: calc(100% - 40px); }
  .hero { grid-template-columns: minmax(0,1.25fr) minmax(0,.8fr); }
  .hero-copy { padding: 28px; }
  .keeper { min-height: 288px; }
  .workbench { grid-template-columns: 215px minmax(0,1fr); gap: 14px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 28px); }
  .bar { min-height: 57px; }
  .brand { gap: 4px; font-size: 1.02rem; }
  .bar nav { gap: .75em; }
  .library-button { padding-inline: .6em; }
  .hero { grid-template-columns: minmax(0,1fr) 27%; margin: 16px 0 22px; border-radius: 9px; }
  .hero-copy { padding: 22px 11px 23px 17px; }
  .hero-meta { font-size: .74rem; gap: 5px; }
  h1 { font-size: clamp(1.82rem,7.3vw,3.05rem); margin: .28em 0; }
  .hero-copy p { font-size: .86rem; line-height: 1.65; }
  .hero-copy br { display: none; }
  .hero-actions { gap: 6px; margin-top: 13px; }
  .hero-actions .button { font-size: .82rem; gap: .45em; padding: .5em .7em; }
  .keeper { min-height: 0; }
  .keeper img { height: 81%; width: 160%; max-width: none; left: -31%; top: 9%; object-fit: cover; object-position: 50% 12%; }
  .keeper figcaption { left: 0; bottom: 6%; padding: 5px 7px; }
  .keeper strong { font-size: .95rem; }
  .class-head { margin-bottom: 9px; flex-wrap: wrap; gap: .45rem; }
  .switch button { padding: .32rem .8rem; }
  .workbench { display: block; }
  .schedule { margin-bottom: 10px; }
  .schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: .55rem; padding: 10px 13px; border: none; }
  .schedule-heading div { display: flex; gap: 7px; align-items: baseline; }
  .schedule h3 { font-size: .97rem; }
  #outline-toggle { display: inline-block; color: var(--plum); font-size: .8rem; text-decoration: underline; text-underline-offset: .18rem; white-space: nowrap; }
  #steps { border-top: 1px solid var(--line); }
  .lesson-sheet { padding: 19px 16px; }
  .setup-steps > li { padding-left: 2.15rem; }
  .setup-platforms { grid-template-columns: 1fr; gap: .55rem; }
  .credits { flex-direction: column; }
}
@media (max-width: 370px) { .bar nav { gap: .35rem; } .hero-copy { padding-inline: 12px 6px; } .resource-row { align-items: start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  .masthead, .hero, .class-head, .schedule, .step-footer, #copy, .credits, dialog { display: none; }
  .container { width: 100%; }
  .workbench { display: block; }
  .lesson-sheet { border: 0; padding: 0; }
}
