.lesson-tools { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:18px }
.lesson-tools a,.lesson-tools button { display:inline-flex; align-items:center; min-height:46px; border:1px solid #d1ead7; border-radius:10px; padding:10px 16px; font:650 .96rem/1.25 system-ui; text-decoration:none }
.lesson-tools button { background:#e5f5d9; color:#193932 }
.lesson-tools a { background:#152a2d; color:#f4f8ec }
.lesson-tools a:hover { text-decoration:underline }
.classroom-nav,.print-notes { display:none }
.workspace:has(#course:not([hidden]) .magnetic) > section { background:#f2f5ef; border-color:#b4c5bf }
#course:has(.magnetic) { --paper:#143238; --muted:#425951; color:#193b37 }
#course:has(.magnetic) .back { color:#255249 }
.lesson-hero.magnetic { min-height:290px; background:radial-gradient(ellipse at 82% -38%,transparent 21%,#6da89999 21.2%,transparent 21.55%,transparent 24%,#9fd5bd74 24.2%,transparent 24.6%,transparent 28%,#84b3a88a 28.2%,transparent 28.6%,transparent 33%,#8dbfb290 33.2%,transparent 33.55%,transparent 39%,#5b8a8388 39.2%,transparent 39.55%,transparent 46%,#71958e88 46.2%,transparent 46.55%,transparent 55%,#7fb6a666 55.15%,transparent 55.5%),linear-gradient(110deg,#0c3030,#23534e 65%,#396d60); color:#f5f8eb; border-color:#204842 }
.lesson-hero.magnetic::before { background:linear-gradient(90deg,#102c2ce8,transparent 82%) }
.lesson-heading-meta { margin:0 0 15px; font-weight:650; letter-spacing:.055em; color:#c6e6d3 }
.lesson-hero.magnetic h2 { font-size:clamp(2.05rem,4.8vw,3.75rem); max-width:18ch }
.lesson-hero.magnetic .lesson-goal { max-width:65ch; color:#e1efe7; text-shadow:none }
#course:has(.magnetic) .topic-card { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:16px 24px; align-items:start; padding:clamp(17px,2.8vw,32px); background:#fffef8; border:1px solid #c2d1c7; color:#203c36 }
#course:has(.magnetic) .topic-copy h3 { font:500 clamp(1.7rem,3.2vw,2.65rem)/1.08 Georgia,serif; margin:10px 0 14px; letter-spacing:-.035em; text-wrap:pretty }
.topic-copy small { color:#426756; font-size:.81rem; font-weight:700; letter-spacing:.055em }
#course:has(.magnetic) .topic-copy p { color:#2f4c44; margin:0 0 14px; line-height:1.52 }
#course:has(.magnetic) .topic-copy .topic-prompt { border-left:3px solid #bb8255; padding-left:12px; color:#4c4837; margin-bottom:0 }
#course:has(.magnetic) .topic-card > button { justify-self:start; background:#e5efdf; color:#20483c; border-color:#bdcfbf }
#course:has(.magnetic) .topic-card > .progress { color:#285643 }
.original-diagram { grid-column:1/-1; color:#385b50 }
.original-diagram summary { cursor:pointer; width:fit-content; padding:5px 0; text-decoration:underline; text-underline-offset:3px }
.original-diagram img { margin-bottom:0 }
.topic-copy .original-diagram { margin-top:12px }
.model-step { min-width:0; border:1px solid #53636a; border-radius:14px; padding:clamp(14px,2vw,20px) }
.topic-card .model-step { background:#f1f6ef; border-color:#becfc2; color:#213e38 }
.model-step h4 { font-size:clamp(1.08rem,1.6vw,1.35rem); line-height:1.3; margin:0 0 8px }
#course:has(.magnetic) .model-step p { color:#314d44; margin:6px 0 12px }
.model-step magnetic-model,.model-step charge-model { margin:14px 0 0 }
.question-photo { width:min(100%,620px); margin:12px 0 16px }
.question-photo a { display:block; width:fit-content; max-width:100%; border-radius:12px; cursor:zoom-in }
.question-photo img { display:block; width:auto; max-width:100%; height:auto; max-height:310px; border-radius:12px }
.question-photo figcaption { margin-top:7px; font-size:.9rem; line-height:1.4 }
.question-photo-fold { margin:9px 0 }
.question-photo-fold summary,.animation-fold summary { width:fit-content; cursor:pointer; padding:5px 0; text-decoration:underline; text-underline-offset:3px }
.prediction fieldset .question-photo-fold { flex-basis:100%; min-width:0; margin:0 0 5px }
#course[data-classroom] .question-photo img { max-height:clamp(165px,29vh,355px) }
#course .model-step .lab-caption { color:#d5e6dd; margin:0 }
.lesson-downloads { margin:26px 0 }
#course:has(.magnetic) .choices button { background:#f8fbf5; color:#284039; border-color:#b2c7ba }
#course:has(.magnetic) article:not(.topic-card) { background:white; border-color:#c1d1c6; color:#213e36 }
#course:has(.magnetic) article:not(.topic-card) p { color:#264f41 }
magnetic-model { display:block; min-width:0; overflow:hidden; background:#102c34; border:1px solid #31535b; color:#ecf5ed; border-radius:14px }
.lab-head,.lab-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px }
.lab-head { border-bottom:1px solid #315058 }
.lab-head span { font:600 .8rem ui-monospace,monospace; color:#9bddd1 }
magnetic-model canvas { width:100%; height:clamp(190px,21vw,260px); display:block; background:radial-gradient(ellipse at 50% 52%,#264b54 0%,#112e37 72%); cursor:grab; touch-action:none }
magnetic-model canvas:active { cursor:grabbing }
.field-stations { display:flex; flex-wrap:wrap; gap:6px; padding:10px 16px 0; border-top:1px solid #30535a }
#course .field-stations button { min-height:36px; padding:5px 11px; font:650 .85rem/1.2 system-ui; border:1px solid #56777b; border-radius:8px; background:#183943; color:#ecf5ed }
#course .field-stations button[aria-pressed=true] { background:#f4dfad; border-color:#f4dfad; color:#1e3639 }
.field-stations + .lab-controls { border-top:0 }
.lab-controls { border-top:1px solid #30535a; align-items:center }
.lab-controls label { flex:1; min-width:0; font:.88rem/1.25 system-ui; color:#e2eee9 }
.lab-controls input { width:100%; margin:0; min-height:22px; accent-color:#9ddac7 }
.lab-controls button { background:#1c4149; color:#e7f3ef; border:1px solid #53777a; padding:7px 9px; min-height:38px; font-size:.82rem }
#course:has(.magnetic) .topic-card .lab-caption { color:#d5e6dd; margin:0; padding:0 16px 14px; font-size:.91rem; line-height:1.35 }
body:has(#course:not([hidden])[data-classroom]) :is(.masthead,.cover,#views) { display:none }
main.workspace:has(#course:not([hidden])[data-classroom]) { width:min(100% - 24px,1450px); padding:10px 0; margin:auto }
#course[data-classroom] > :not(.shown-topic):not(.classroom-nav) { display:none !important }
#course[data-classroom] .classroom-nav { position:sticky; top:0; z-index:3; background:#eef3ec; color:#203e38; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px 10px; border-bottom:1px solid #aabfb4; margin-bottom:16px }
.classroom-nav strong { margin-right:auto }
.classroom-nav button { background:#234b43; color:#fff }
.teaching-outline { display:grid; gap:6px; margin:0; padding-left:2rem }
.teaching-outline li::marker { font-variant-numeric:tabular-nums; font-weight:650 }
.teaching-outline button { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 14px; width:100%; text-align:left; background:#e9f0e6; color:#203d35; border:1px solid #bdcdbc }
.teaching-outline small { font-weight:500; white-space:nowrap }
.teaching-nav select { flex:1 1 240px; min-width:0; width:auto; max-width:100% }
.teaching-stage { padding:clamp(4px,2vw,24px) }
.teaching-stage .stage-meta { font-weight:650; font-variant-numeric:tabular-nums; margin:0 0 12px }
.teaching-stage .stage-task { max-width:66ch; font-size:clamp(1.15rem,2vw,1.6rem); line-height:1.5 }
#views { max-width:100%; flex-wrap:wrap }
#course[data-classroom] .part > button,#course[data-classroom] .part > .progress { display:none }
#course[data-classroom] .topic-copy p,#course[data-classroom] .part:not(.topic-card) > p { font-size:clamp(1.1rem,1.65vw,1.6rem) }
#course[data-classroom] magnetic-model canvas { height:clamp(210px,36vh,430px) }
#course[data-classroom] .topic-copy h3 { font-size:clamp(2rem,3.6vw,3rem) }
@media(max-width:780px) {
  #course:has(.magnetic) .topic-card { grid-template-columns:1fr; gap:14px }
  .classroom-nav strong { width:100% }
}
@page { size:A4; margin:0 }
@media print {
  body:has(#course:not([hidden]) .print-notes) { margin:0!important; padding:0!important; background:#fff!important }
  body:has(#course:not([hidden]) .print-notes) :is(.masthead,.cover,#views,#status,#teacher,#credentials,#application,#application-state,#heading) { display:none!important }
  body:has(#course:not([hidden]) .print-notes) :is(main.workspace,main.workspace > section,#course) { width:100%!important; max-width:none!important; display:block!important; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; background:#fff!important }
  #course:has(.print-notes) > * { display:none!important }
  body #course:has(.print-notes) > .print-notes,body #course[data-classroom]:has(.print-notes) > .print-notes { display:block!important }
  .print-notes img { display:block; width:100%; height:auto; max-height:296mm; object-fit:contain; break-inside:avoid; break-after:page }
  .print-notes img:last-child { break-after:auto }
}
