.xp-fraction{display:inline-flex;flex-direction:column;text-align:center;vertical-align:middle;line-height:1.15;margin:0 .2em}.xp-fraction>span:first-child{border-bottom:2px solid currentColor;padding:0 .15em .12em}.xp-fraction>span:last-child{padding:.12em .15em 0}.xp-power{white-space:nowrap}.xp-power sup{font-size:.58em;vertical-align:super}.xp-product{overflow-wrap:anywhere}.xp-dot{white-space:normal}#teaching.xp-red-screen{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;margin:0;padding:32px clamp(16px,5vw,72px);background:#c93640;color:white;overflow:auto;box-sizing:border-box}#teaching.xp-red-screen::backdrop{background:#c93640}#teaching.xp-red-screen h2{font-size:clamp(28px,4vw,44px);color:white;margin:8px 0}#teaching.xp-red-screen .coach-top,#teaching.xp-red-screen .caption,#teaching.xp-red-screen .classroom-note{color:white}#teaching.xp-red-screen .visual{background:transparent;border:0;min-height:180px;display:grid;place-items:center;color:white}#teaching.xp-red-screen .attempt{margin:4px 0;font-size:16px}#teaching.xp-red-screen #teach-description,#teaching.xp-red-screen #teach-timeline,#teaching.xp-red-screen #teach-caption{display:none}#teaching.xp-red-screen #teach-progress{font-size:14px}#teaching.xp-red-screen .text-equivalent{font-size:14px;margin:8px 0}#teaching.xp-red-screen .coach-controls{margin-top:12px;gap:8px}#teaching.xp-red-screen button{min-height:40px;background:#fff;color:#9b1726;border:1px solid #fff}#teaching.xp-red-screen button:disabled{opacity:.55}#teaching.xp-red-screen .motion{font-size:14px;color:white}.xp-scene{text-align:center;max-width:100%;animation:xp-appear .28s ease-out}.xp-clip-heading{font-size:clamp(20px,3vw,30px);line-height:1.25;margin:8px 0 20px}.xp-clip-math{font-size:clamp(30px,5vw,64px);line-height:1.4}.xp-source-line{font-size:clamp(20px,3vw,36px);margin-top:14px}.xp-paused .xp-scene{animation-play-state:paused}.xp-still-next{margin-top:12px}.xp-red-screen.manual .xp-scene{animation:none}@keyframes xp-appear{from{opacity:.4;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.xp-scene{animation:none}}@media(max-width:420px){#teaching.xp-red-screen{padding:16px}.xp-clip-math{font-size:30px}.xp-clip-heading{font-size:21px}#teaching.xp-red-screen .visual{min-height:160px}.xp-source-line{font-size:21px}#teaching.xp-red-screen .coach-controls{flex-wrap:wrap}}
#teaching.xp-red-screen .coach-top .eyebrow,#teaching.xp-red-screen #teach-status{color:white}#teaching.xp-red-screen #teaching-goal,#teaching.xp-red-screen #teach-loss{background:transparent;color:white;border:0;padding:0;margin:8px 0}#teaching.xp-red-screen .coach-controls{background:transparent;box-shadow:none;border:0;padding:0;position:static}#teaching.xp-red-screen .attempt strong{color:#7e1320;background:#fff}#teaching.xp-red-screen .coach-top{margin-bottom:0}
/* Stable roles: underlined teal bases, outlined purple exponents. Labels and
   notation carry the meaning without color. No fading or decorative motion. */
#teaching.xp-red-screen .visual{display:block;min-height:240px;background:#fffdf6;color:#152a38;border:2px solid #fffdf6;border-radius:12px;padding:16px 20px;max-width:900px;margin:14px auto;box-sizing:border-box}
.xp-scene{animation:none!important;opacity:1;text-align:center;max-width:100%}.xp-source-line{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;font-size:clamp(24px,3vw,36px);margin:0;padding-bottom:14px;border-bottom:1px solid #d9d6cb}.xp-source-line>small{font:600 15px system-ui;color:#334a54}.xp-work{min-height:160px;display:grid;align-content:center;gap:8px}.xp-clip-heading{font-size:clamp(18px,2.5vw,26px);margin:8px 0;line-height:1.3}.xp-clip-math{font-size:clamp(30px,4.5vw,56px);line-height:1.5;overflow-wrap:anywhere}.xp-base{color:#075b5e;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}.xp-exponent{color:#63307f;outline:1px solid #63307f;border-radius:3px;padding:0 .15em}.xp-power sup{line-height:1.3}.xp-operator{color:#834500;font-weight:800}.xp-parts{display:flex;justify-content:center;gap:40px;font-size:32px}.xp-parts>span{display:grid;gap:10px;justify-items:center}.xp-parts small{font:600 13px system-ui;color:#334a54}.xp-domain{display:block;font:14px system-ui;color:#334a54;margin-top:8px}.xp-counted{display:inline-flex;gap:.2em;align-items:flex-start;justify-content:center;flex-wrap:wrap}.xp-counted-factor{display:inline-flex;flex-direction:column;align-items:center}.xp-counted-factor small{font:600 14px system-ui;color:#334a54;margin-top:8px}.xp-equals{color:#152a38}
#teaching.xp-red-screen button{min-height:44px}#teaching.xp-red-screen button:focus-visible,#teaching.xp-red-screen summary:focus-visible,#teaching.xp-red-screen input:focus-visible{outline:3px solid #152a38;outline-offset:3px;box-shadow:0 0 0 6px #fff}#teaching.xp-red-screen button:disabled{opacity:1;background:#f2dadd;color:#71323b;border-color:#f2dadd}#teaching.xp-red-screen .text-equivalent{margin:8px 0}#teaching.xp-red-screen .xp-still-next{color:#9b1726;border-color:#9b1726}
@media(max-width:420px){#teaching.xp-red-screen{padding:14px}#teaching.xp-red-screen h2{font-size:26px}#teaching.xp-red-screen .visual{padding:12px 10px;min-height:240px}.xp-source-line{font-size:25px;gap:8px}.xp-work{min-height:156px}.xp-clip-math{font-size:32px}.xp-clip-heading{font-size:19px}.xp-parts{font-size:29px;gap:28px}#teaching.xp-red-screen .coach-controls{gap:8px}}
@media(forced-colors:active){.xp-base,.xp-exponent,.xp-operator{color:CanvasText}.xp-exponent{outline-color:CanvasText}#teaching.xp-red-screen .visual{border-color:CanvasText}}
