.guide-active .workspace>main{overflow-y:auto;background:#f3f6f8;container-type:inline-size}.guide-active>footer{display:none!important}
/* Let the grid subtract the actual header height, not a desktop-only offset. */
.stage.guide-active{grid-template-rows:76px minmax(0,1fr)}
.guide-active .workspace{height:auto!important;min-height:0}.guide-active .workspace>main{align-content:start!important;padding:0!important}.guide-active .course-guide{width:100%;margin:0 auto!important;flex:none}
@media(max-width:800px){
  .stage.guide-active{height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr)}
  .guide-active .workspace>main{height:100%;min-height:0;overscroll-behavior-y:contain}
  .guide-active .course-guide{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  .guide-active .guide-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .guide-active .guide-actions button{min-width:0;min-height:48px;padding:11px 10px;font-family:inherit;font-size:15px;line-height:1.25}
}
@container(max-width:1000px){.course-guide .guide-enable{grid-template-columns:1fr}.guide-enable .guide-shot{max-width:640px;width:100%}}
.quiz-resume-dialog{max-width:min(520px,calc(100vw - 32px));border:1px solid #dce4eb;border-radius:12px;padding:26px;color:#102a43;font:16px/1.5 Arial,sans-serif}.quiz-resume-dialog::backdrop{background:#102a4380}.quiz-resume-dialog h2{margin-top:0}.quiz-resume-dialog>div{display:flex;gap:14px;flex-wrap:wrap}.quiz-resume-dialog button{padding:12px 18px;min-height:44px;border-radius:6px;border:1px solid #dd1727;background:#fff;color:#102a43;font-weight:bold;cursor:pointer}.quiz-resume-dialog [data-resume-quiz]{background:#dd1727;color:#fff}
.course-guide{color:#102a43;padding:clamp(18px,3vw,38px);max-width:1200px;margin:auto;font-family:Arial,sans-serif}.course-guide *{box-sizing:border-box}.course-guide h1{font:700 clamp(26px,3vw,38px)/1.15 Georgia,serif;margin:15px 0}.guide-eyebrow{font-size:11px;font-weight:bold;letter-spacing:.1em;color:#587087;display:flex;justify-content:space-between}.guide-lead{font-size:17px;line-height:1.5;color:#587087;margin:0 0 24px}.course-guide p{line-height:1.5}.course-guide h2{font:700 23px/1.25 Georgia,serif;margin:0 0 18px}
.guide-grid,.guide-two{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}.guide-two{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.guide-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.guide-shot{margin:0;overflow:hidden}.guide-shot img{display:block;width:100%;height:auto}.guide-clean-shot{border:1px solid #dce4eb;background:#fff}.guide-card{background:white;border-radius:12px;padding:22px;min-width:0}.guide-steps section{display:flex;gap:12px;margin:0 0 24px}.guide-number,.guide-pin{flex:0 0 28px;width:28px;height:28px;background:#dd1727;border-radius:50%;color:white;font:bold 14px Arial,sans-serif;display:grid;place-items:center}.course-guide .guide-steps h2{font:bold 18px/1.3 Arial,sans-serif;margin:0 0 7px}.guide-steps p{font-size:16px;margin:0}.guide-tip{background:#fff0f1;border-radius:9px;padding:20px;font-size:16px;margin:26px 0 0}.guide-tip>b{color:#dd1727}.guide-tip p{margin:10px 0 0}.guide-note{margin:24px 0 0;font-size:16px}.guide-actions{display:flex;justify-content:space-between;gap:12px;margin-top:28px;flex-wrap:wrap}.guide-actions button{padding:11px 16px;min-height:44px;border:1px solid #dce4eb;border-radius:6px;background:white;color:#102a43;font-weight:bold;cursor:pointer}.guide-actions button.portal-primary{background:#dd1727;color:white}.guide-actions button:disabled{opacity:.45;cursor:default}.guide-actions button:focus-visible,.guide-outline button:focus-visible{outline:3px solid #587087;outline-offset:2px}
.full-toc .domain-toggle,.full-toc [data-guide-open]{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;height:60px!important;min-height:60px!important;padding:10px 12px!important;margin:0!important;border:0!important;border-bottom:1px solid #e4e8ee!important;border-radius:0!important;background:#fff!important;color:#102a43!important;text-align:left!important;font:700 12px/1.35 Arial,sans-serif!important}.full-toc .domain-toggle b{font:inherit!important}.full-toc .domain-toggle>span{display:grid!important;place-items:center!important;flex:0 0 22px!important;width:22px!important;height:22px!important;font:20px/1 Arial,sans-serif!important}.guide-outline{margin:0;padding:0}.guide-outline [hidden]{display:none!important}.guide-outline [data-guide-step]{display:block!important;text-align:left;width:100%;padding:12px!important;border:0;border-radius:0;background:transparent;color:#102a43;font:12px/1.4 Arial,sans-serif;cursor:pointer}.guide-outline [data-guide-step].active{background:#dd1727;color:white}
.guide-map{position:relative}.guide-map>.guide-shot{width:100%}.guide-pin{position:absolute;top:8%;width:30px;height:30px}.pin-outline{left:2%}.pin-player{left:36%}.pin-sensei{left:83%}.guide-map-key{position:relative;margin:-18% auto 5%;width:66%;padding:18px;background:#fff;border:1px solid #dce4eb;border-radius:10px;font-size:14px}.guide-map-key>div{display:grid;grid-template-columns:140px 1fr;gap:12px;line-height:1.4;margin:8px 0}.guide-search-layout{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:28px}.guide-search-layout>.guide-shot{max-width:290px}.guide-enable{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);align-items:center;gap:24px;margin-bottom:28px}.guide-enable h2{font:bold 18px Arial,sans-serif;margin-bottom:12px}.guide-enable p{font-size:15px;margin:0}.guide-controls-preview{max-width:620px;margin:0 auto 32px}.guide-confirm{padding:24px}.guide-state{display:inline-block;background:#eef2f6;color:#587087;border-radius:5px;padding:8px 25px;font:bold 14px Arial}.guide-state.on{background:#e7f4ee;color:#1d7154}.guide-confirm h2{margin:26px 0 12px}.guide-confirm p{font-size:18px}.guide-confirm p+p{margin-top:30px}.guide-follow{padding:18px;display:flex;flex-direction:column}.guide-follow .guide-shot{height:280px;display:flex;align-items:flex-start;border:0}.guide-follow .guide-shot img{width:100%;height:100%;object-fit:contain;object-position:left top}.guide-follow .guide-question-shot img{object-position:center top}.guide-follow h2{font:bold 12px Arial;color:#dd1727;text-transform:uppercase;margin:18px 0 10px}.guide-follow p{font-size:15px;margin:0}.guide-cc .guide-shot{height:auto;min-height:48px;margin:4px 0 20px}.guide-cc .guide-shot img{height:auto}.guide-cc>p{font-size:18px}.guide-cc aside{margin-top:auto;background:#f3f6f8;border-radius:8px;padding:16px;font-size:14px}.guide-cc aside p{margin-top:8px;font-size:14px}.guide-choice{background:#eef3f7;border-radius:8px;padding:16px;margin:18px 0}.guide-choice b{font-size:19px}.guide-choice p{margin:6px 0 0;font-size:15px}.guide-stack{display:grid;gap:24px}.guide-stack .guide-shot{max-width:500px}.guide-usage{padding:25px;background:white;border:1px solid #dce4eb;border-radius:12px}.guide-usage small{color:#587087;line-height:1.5}.guide-meter{height:10px;border-radius:5px;background:#edf0f4;margin:20px 0}.guide-meter i{display:block;width:19%;height:100%;background:#dd1727;border-radius:5px}
@container(max-width:800px){.guide-three{grid-template-columns:1fr}.guide-follow{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1fr);gap:12px 20px}.guide-follow .guide-shot{grid-row:1/4;height:280px}.guide-follow h2{margin:0}.guide-follow aside{margin:0}.guide-cc .guide-shot{height:auto}.guide-enable{grid-template-columns:1fr}.guide-map-key{margin:16px 0 0;width:100%}.guide-confirm p{font-size:16px}}
@container(max-width:560px){.guide-grid,.guide-two,.guide-three,.guide-search-layout{grid-template-columns:1fr}.guide-follow{display:flex}.guide-follow .guide-shot{height:310px}.guide-cc .guide-shot{height:auto}.guide-follow aside{margin-top:20px}.guide-map-key>div{grid-template-columns:1fr;gap:4px}.guide-pin{width:24px;height:24px;font-size:12px}.guide-actions button{flex:1 1 auto}.guide-steps p{font-size:15px}.guide-card{padding:18px}.guide-search-layout>.guide-shot{margin:auto}.guide-confirm h2{margin-top:18px}}
/* Keep the full-size map and its key in normal flow above navigation. */
.course-guide .guide-map-key{margin:18px 0 0;width:100%}
.guide-playback-preview{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;background:#fff;padding:14px;border:1px solid #dce4eb;border-radius:8px}
.guide-playback-preview .guide-shot{border:0;max-width:100%}
.guide-playback-preview .guide-playback-edge{width:84px}
.guide-playback-player{display:flex;align-items:center;justify-content:center;gap:14px}.guide-playback-preview .guide-playback-play{width:46px;flex:none}.guide-playback-preview .guide-playback-speed{width:100px;flex:none}.guide-playback-preview .guide-playback-timeline{grid-column:1/-1;width:100%;max-width:440px;justify-self:center}
@container(max-width:700px){.guide-playback-preview{grid-template-columns:1fr 1fr}.guide-playback-preview .guide-playback-player{grid-column:1/3;grid-row:1}.guide-playback-preview .guide-playback-edge:last-child{justify-self:end}}
