/* Todas as regras restringem-se ao Universo Algébrico. */
#qg.universe-hub { --ua-gold:#f0cb76; --ua-ink:#fff6df; --ua-muted:#ded7bf; --ua-line:#c4ad6e48; }
#qg.universe-hub #qg-title { color:var(--ua-ink); font-size:clamp(2rem,4.3vw,3.5rem); line-height:1.16; text-shadow:none; }
#qg.universe-hub #qg-description { max-width:55rem; font:400 1.125rem/1.7 system-ui,sans-serif; color:var(--ua-muted); margin-top:1rem; }
#qg.universe-hub #qg-view { display:block; }
#qg.universe-hub .ua-hub-group { display:grid; grid-template-columns:minmax(12rem,.7fr) minmax(0,1.65fr); gap:clamp(1.5rem,4vw,4rem); padding:2.5rem 0; border-top:1px solid var(--ua-line); }
#qg.universe-hub .ua-hub-group header { min-width:0; }
#qg.universe-hub .ua-hub-symbol { font:400 1.2rem/1.5 Georgia,serif; color:var(--ua-gold); margin:0 0 1.1rem; }
#qg.universe-hub .ua-hub-group h3 { color:var(--ua-ink); font:550 clamp(1.5rem,2.5vw,2rem)/1.25 Georgia,serif; margin:0 0 .9rem; }
#qg.universe-hub .ua-hub-group header > p:last-child { font:400 1rem/1.7 system-ui,sans-serif; color:var(--ua-muted); max-width:32ch; }
#qg.universe-hub .ua-hub-group ul { margin:0; padding:0; list-style:none; min-width:0; }
#qg.universe-hub .ua-hub-group li { border-bottom:1px solid var(--ua-line); }
#qg.universe-hub .ua-hub-group li:last-child { border-bottom:0; }
#qg.universe-hub .ua-lesson-link { display:flex; justify-content:space-between; gap:1.5rem; align-items:center; padding:1.25rem 1rem; min-height:5.3rem; color:var(--ua-ink); text-decoration:none; transition:background .18s,box-shadow .18s; }
#qg.universe-hub .ua-lesson-link > span:first-child { min-width:0; }
#qg.universe-hub .ua-lesson-link strong { display:block; font:600 1.2rem/1.4 system-ui,sans-serif; }
#qg.universe-hub .ua-lesson-link strong + span { display:block; color:var(--ua-muted); font:400 1rem/1.6 system-ui,sans-serif; margin-top:.45rem; }
#qg.universe-hub .ua-open { flex:none; color:var(--ua-gold); font:600 .875rem/1.4 system-ui,sans-serif; }
#qg.universe-hub .ua-lesson-link:is(:hover,:focus-visible) { background:#f0cb760c; box-shadow:inset 2px 0 var(--ua-gold); }
#qg.universe-hub .section-nav-back { width:auto; min-width:5rem; height:2.75rem; margin-top:0; padding:0 1rem; border:1px solid #c4ad6e77; border-radius:.5rem; clip-path:none; background:#25271d; box-shadow:none; filter:none; }
#qg.universe-hub .section-nav-back::before { content:'Voltar'; color:var(--ua-gold); font:600 .875rem/1.4 system-ui,sans-serif; }
#study.universe-active { --ua-gold:#f0cb76; --ua-ink:#fff6df; --ua-muted:#ded7bf; --ua-line:#c4ad6e48; }
#study.universe-active .study-heading h1 { color:var(--ua-ink); text-shadow:none; }
#study.universe-active .ua-lesson { font:400 1rem/1.75 system-ui,sans-serif; color:var(--ua-ink); }
#study.universe-active .ua-lesson :is(h2,h3) { color:var(--ua-ink); text-transform:none; letter-spacing:normal; }
#study.universe-active .ua-lesson h2 { font:550 clamp(1.5rem,2.5vw,2rem)/1.25 Georgia,serif; margin:0 0 1.1rem; }
#study.universe-active .ua-lesson h3 { font-size:1.15rem; line-height:1.4; }
#study.universe-active .ua-lesson :is(p,li) { font-size:1rem; line-height:1.75; }
#study.universe-active .ua-lesson :is(.math-concept,.review-theory,.algebra-concept,.mp-concept) { border:0; border-top:1px solid var(--ua-line); border-radius:0; background:transparent; box-shadow:none; padding:2.25rem 0; }
#study.universe-active .ua-lesson :is(.math-hero,.algebra-opening,.mp-opening) { border:0; background:transparent; border-radius:0; padding:1rem 0 2rem; box-shadow:none; }
#study.universe-active .ua-lesson :is(.math-hero-symbol,.algebra-mark) { background:transparent; border-color:var(--ua-line); color:var(--ua-gold); }
#study.universe-active .ua-understanding { padding:2.5rem 0 1.5rem; max-width:80ch; }
#study.universe-active .ua-understanding p { color:var(--ua-muted); }
#study.universe-active .ua-readiness { border-block:1px solid var(--ua-line); padding:1rem 0; margin:1rem 0; }
#study.universe-active .ua-readiness summary { color:var(--ua-gold); font-size:1rem; padding:.4rem 0; cursor:pointer; }
#study.universe-active .ua-readiness ul { columns:2; column-gap:3rem; padding-left:1.25rem; }
#study.universe-active .ua-lab { background:linear-gradient(125deg,#24261f,#111816); border:1px solid #b9a2675c; border-radius:1rem; padding:clamp(1.2rem,3vw,2.5rem); margin:1rem 0 2.8rem; min-width:0; }
#study.universe-active .ua-lab header > p { color:var(--ua-muted); max-width:75ch; }
#study.universe-active .ua-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem 1.6rem; margin:1.6rem 0; }
#study.universe-active .ua-control { display:flex; flex-direction:column; gap:.65rem; font:500 1rem/1.5 system-ui,sans-serif; color:var(--ua-ink); padding:.5rem 0; min-width:0; }
#study.universe-active .ua-control output { color:var(--ua-gold); font-weight:700; }
#study.universe-active .ua-control input[type='range'] { accent-color:var(--ua-gold); width:100%; min-width:0; min-height:2.75rem; cursor:pointer; }
#study.universe-active .ua-control select { width:100%; min-width:0; min-height:2.8rem; background:#151c18; color:var(--ua-ink); border:1px solid #b9a26780; border-radius:.4rem; padding:.5rem; font-size:1rem; }
#study.universe-active .ua-lab button,#study.universe-active .ua-investigation button { min-height:2.75rem; padding:.65rem 1rem; border:1px solid #b9a26780; border-radius:.4rem; background:#303126; color:var(--ua-ink); font:500 1rem/1.4 system-ui,sans-serif; cursor:pointer; }
#study.universe-active .ua-lab button:is(:hover,[aria-pressed='true']),#study.universe-active .ua-investigation button:hover { background:#49432c; border-color:var(--ua-gold); }
#study.universe-active :is(button,input,select,summary,a,[tabindex]):focus-visible,#qg.universe-hub a:focus-visible { outline:3px solid #ffe3a8; outline-offset:4px; }
#study.universe-active .ua-actions,#study.universe-active .ua-presets,#study.universe-active .ua-factors,#study.universe-active .ua-pairs { display:flex; gap:.65rem; flex-wrap:wrap; margin:1rem 0; }
#study.universe-active .ua-formula { margin:1rem 0; font:500 clamp(1.1rem,2vw,1.4rem)/1.6 system-ui,sans-serif; color:var(--ua-gold); overflow-wrap:anywhere; }
#study.universe-active .ua-readout { padding:1.2rem 0 0; border-top:1px solid var(--ua-line); margin-top:1.2rem; font-size:1rem; line-height:1.75; color:var(--ua-ink); }
#study.universe-active .ua-diagram { min-width:0; }
#study.universe-active :is(svg.ua-plot,svg.ua-area,svg.ua-numberline,svg.ua-balance-svg) { display:block; width:100%; height:auto; max-width:44rem; margin:1rem auto; overflow:visible; }
#study.universe-active svg.ua-area { max-width:32rem; }
#study.universe-active .ua-diagram svg text { fill:var(--ua-ink); font:14px system-ui,sans-serif; }
#study.universe-active .ua-grid { fill:none; stroke:#ddd1aa1d; stroke-width:1; }
#study.universe-active .ua-axes { fill:none; stroke:#c9c9b1; stroke-width:1.4; }
#study.universe-active .ua-curve { fill:none; stroke:#f0cb76; stroke-width:3; }
#study.universe-active .ua-curve-1 { stroke:#9edaca; }
#study.universe-active .ua-symmetry { fill:none; stroke:#ddd6ba; stroke-width:1.7; stroke-dasharray:5 5; }
#study.universe-active .ua-dot circle { fill:#fff6df; stroke:#171c16; stroke-width:2; }
#study.universe-active .ua-dot text { fill:#fff6df; paint-order:stroke; stroke:#171c16; stroke-width:3px; }
#study.universe-active .ua-scale { color:var(--ua-muted); font-size:.875rem; }
#study.universe-active .ua-area-part rect { stroke:#151c18; stroke-width:2; fill:#73613a; }
#study.universe-active .ua-area-1 rect { fill:#425f4c; }
#study.universe-active .ua-area-2 rect { fill:#4f5365; }
#study.universe-active .ua-area-3 rect { fill:#665139; }
#study.universe-active .ua-area-part text { fill:#fff; font-weight:600; }
#study.universe-active .ua-beam { fill:none; stroke:#f0cb76; stroke-width:4; }
#study.universe-active .ua-pan { fill:#655331; stroke:#f0cb76; stroke-width:1.5; }
#study.universe-active .ua-region { fill:none; stroke:#f0cb76; stroke-width:7; }
#study.universe-active .ua-boundary { stroke:#f0cb76; stroke-width:3; }
#study.universe-active .ua-test-point { fill:#fff; stroke:#101713; stroke-width:1.5; }
#study.universe-active .ua-table-scroll { max-width:100%; overflow:auto; margin:1.4rem 0; }
#study.universe-active .ua-table-scroll table { border-collapse:collapse; width:100%; font:400 1rem/1.5 system-ui,sans-serif; }
#study.universe-active .ua-table-scroll th { font-weight:600; text-align:left; color:var(--ua-gold); }
#study.universe-active .ua-table-scroll :is(th,td) { padding:.65rem .8rem; border-bottom:1px solid var(--ua-line); }
#study.universe-active .ua-square-dots { display:grid; grid-template-columns:repeat(var(--ua-n),1fr); width:min(100%,18rem); gap:.35rem; padding:1rem; }
#study.universe-active .ua-square-dots span { aspect-ratio:1; background:var(--ua-gold); border-radius:50%; }
#study.universe-active .ua-investigations { margin:3rem 0; border-top:1px solid var(--ua-line); padding-top:2.5rem; }
#study.universe-active .ua-investigation { padding:1.6rem 0; border-bottom:1px solid var(--ua-line); max-width:80ch; }
#study.universe-active .ua-hint { color:var(--ua-muted); border-left:2px solid var(--ua-gold); padding-left:1rem; }
#study.universe-active .ua-solution { margin-top:1.2rem; padding:1rem; background:#f0cb7608; }
#study.universe-active .ua-solution summary { cursor:pointer; color:var(--ua-gold); min-height:2.75rem; padding:.3rem 0; }
#study.universe-active .ua-sources { padding:1.3rem 0; border-top:1px solid var(--ua-line); }
#study.universe-active .ua-sources summary { cursor:pointer; padding:.5rem 0; color:var(--ua-gold); }
#study.universe-active .ua-sources a { color:#f9db94; text-underline-offset:.2em; }
#study.universe-active .ua-lesson[data-ua-family='functions'] .ua-lab { border-radius:.4rem; background:#141c19; }
#study.universe-active .ua-lesson[data-ua-family='sequences'] .ua-lab { border-left:3px solid var(--ua-gold); border-radius:0; background:#171d19; }
#study.universe-active .ua-equivalence { display:grid; grid-template-columns:1fr 1fr; gap:0 2rem; }
#study.universe-active .ua-equivalence :is(header,.ua-formula,.ua-readout) { grid-column:1/-1; }
#study.universe-active .ua-lesson [hidden] { display:none!important; }
#study.universe-active .mp-navigation { display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; }
#study.universe-active .mp-navigation a { overflow-wrap:anywhere; }
@media(max-width:850px) {
  #qg.universe-hub .ua-hub-group { grid-template-columns:minmax(0,1fr); gap:1rem; }
  #qg.universe-hub .ua-hub-group header > p:last-child { max-width:none; }
  #study.universe-active .ua-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
  #qg.universe-hub .ua-lesson-link { gap:.7rem; padding:1.1rem .45rem; }
  #qg.universe-hub .ua-open { align-self:flex-start; padding-top:.2rem; }
  #study.universe-active :is(.ua-controls,.ua-equivalence) { grid-template-columns:minmax(0,1fr); }
  #study.universe-active .ua-readiness ul { columns:1; }
  #study.universe-active .ua-lab { padding:1rem; }
  #study.universe-active .ua-lab button { flex:1 1 auto; }
  #study.universe-active .ua-table-scroll :is(th,td) { padding:.5rem; }
}
@media(prefers-reduced-motion:reduce) { #qg.universe-hub .ua-lesson-link { transition:none; } }
#study.universe-active :is(.ua-extra-lab,.ua-deeper) { border-block:1px solid var(--ua-line); padding:1rem 0; margin:1.5rem 0; }
#study.universe-active :is(.ua-extra-lab,.ua-deeper) > summary { color:var(--ua-gold); cursor:pointer; padding:.5rem 0; font:500 1rem/1.5 system-ui,sans-serif; }
#study.universe-active,#study.universe-active .study-page { background:#121914; color:var(--ua-ink); }
#study.universe-active .study-heading { background:linear-gradient(120deg,#28291d,#151d18); border:1px solid #b9a2675c; border-left:3px solid var(--ua-gold); border-radius:.6rem; }
#study.universe-active .study-heading::after { display:none; }
#study.universe-active .study-heading #study-subtitle,#study.universe-active :is(.study-back,.study-central) { color:var(--ua-muted); }
#study.universe-active .study-start-button { background:#383727; border-color:#b9a26780; color:var(--ua-ink); }
#study.universe-active .ua-lesson { --al-ink:#fff6df; --al-muted:#ded7bf; --al-pink:#f0cb76; --al-violet:#d4af65; --al-panel:#192019; --algebra-violet:#f0cb76; --algebra-magenta:#d4af65; }
#study.universe-active .ua-lesson .algebra-overline { color:var(--ua-gold)!important; font-size:.875rem; }
#study.universe-active .ua-lesson :is(.math-opening-question,.algebra-question,.algebra-insight) { color:var(--ua-ink)!important; border-color:var(--ua-gold); }
#study.universe-active .ua-lesson :is(.math-errors,.math-guided,.math-train,.math-challenge,.math-activity,.algebra-live,.algebra-builder,.algebra-note,.algebra-quiz,.algebra-challenge-card,.mp-errors,.mp-guided,.mp-train,.mp-challenge,.mp-quiz) { background:#192019; border-color:var(--ua-line); color:var(--ua-ink); box-shadow:none; }
#study.universe-active .ua-lesson :is(.math-example,.mp-example,.algebra-examples details,.algebra-meaning-grid article,.algebra-slider-wrap,.algebra-substitution,.mp-lab) { background:#171e18; border-color:var(--ua-line); color:var(--ua-ink); }
#study.universe-active .ua-lesson :is(.math-options button,.math-next,.math-reveal,.math-error-next,.mp-button,.mp-options button,.algebra-step,.algebra-action,.algebra-builder button,.algebra-options button,.algebra-anatomy-buttons button) { background:#303126; border-color:#b9a26780; color:var(--ua-ink); min-height:2.75rem; }
#study.universe-active .ua-lesson :is(.math-options button,.mp-options button,.algebra-options button):is(:hover,[aria-pressed='true']) { background:#49432c; border-color:var(--ua-gold); }
#study.universe-active .ua-lesson input { accent-color:var(--ua-gold); }
#study.universe-active .ua-lesson :is(.math-skill,.mp-skill,.math-example summary,.mp-example summary,.algebra-equation,.mp-result,.algebra-result) { color:var(--ua-gold)!important; }
#study.universe-active .ua-lesson :is(.math-example,.mp-example) { border-radius:.3rem; }
#study.universe-active .ua-area-legend { display:flex; gap:.6rem 1.5rem; flex-wrap:wrap; padding:0; list-style:none; color:var(--ua-muted); }
#study.universe-active .ua-lesson .algebra-mark span { background:#303126; border-color:var(--ua-line); box-shadow:none; }
#study.universe-active .ua-lesson .algebra-mark :is(i,b) { color:var(--ua-gold); }
@media(max-width:560px) {
  #study.universe-active .ua-diagram :is(.ua-plot,.ua-numberline,.ua-balance-svg) text { font-size:22px; }
  #study.universe-active .ua-diagram .ua-area text { font-size:18px; }
  #study.universe-active .ua-lesson :is(.math-hero,.mp-opening,.algebra-opening,.algebra-concept,.algebra-translation,.algebra-live-stage,.algebra-substitution) { grid-template-columns:minmax(0,1fr); }
  #study.universe-active .ua-lesson :is(.math-hero-symbol,.mp-opening-symbol,.algebra-mark) { display:none; }
  #study.universe-active .ua-lesson .math-examples > div { grid-template-columns:minmax(0,1fr); }
}
/* v146: leitura contínua e questões breves em segundo plano. */
#study.universe-active .ua-lesson :is(.math-guided,.math-train,.math-challenge,.math-errors,.mp-guided,.mp-train,.mp-challenge,.mp-errors,.mp-reading) { background:transparent; border:0; border-top:1px solid var(--ua-line); border-radius:0; padding:2rem 0; box-shadow:none; }
#study.universe-active .ua-lesson :is(.math-concept,.mp-reading,.ua-understanding,.ua-worked,.review-worked-steps) { max-width:80ch; }
#study.universe-active .ua-practice-bank { border-block:1px solid var(--ua-line); padding:1rem 0; margin:1.5rem 0; }
#study.universe-active .ua-practice-bank > summary { color:var(--ua-gold); cursor:pointer; min-height:2.75rem; padding:.5rem 0; font:500 1rem/1.5 system-ui,sans-serif; }
#study.universe-active .ua-lesson :is(.math-example,.mp-examples > details,.algebra-examples > details) { border:0; border-bottom:1px solid var(--ua-line); border-radius:0; background:transparent; }
#study.universe-active .ua-lesson :is(.math-example,.mp-examples > details,.algebra-examples > details) > summary { min-height:2.75rem; padding:.8rem 1rem; color:var(--ua-gold); font-size:1rem; }
#study.universe-active .ua-worked { padding:.4rem 1rem 1rem; }
#study.universe-active .ua-square-dots .ua-new-point { border-radius:2px; outline:2px solid var(--ua-ink); outline-offset:1px; }
#study.universe-active .ua-lab input:disabled { opacity:.45; }
#study.universe-active .ua-lesson :is(p,li,summary,h2,h3) { overflow-wrap:break-word; }
#study.universe-active .ua-practice-bank .math-challenge { margin:0; border:0; }
/* v147: expoentes tipográficos e conforto dos modelos locais. */
#study.universe-active .ua-lesson sup { position:relative; top:-.48em; vertical-align:baseline; font:inherit; font-size:70%; line-height:0; letter-spacing:normal; white-space:nowrap; }
#study.universe-active .ua-lesson svg tspan.ua-exponent { font-size:70%; }
#study.universe-active .ua-formula { font-family:Georgia,'Times New Roman',serif; font-weight:500; font-size:clamp(1.3rem,2.2vw,1.7rem); line-height:1.85; overflow-wrap:normal; }
#study.universe-active .ua-lesson :is(.math-hero,.mp-opening) { gap:clamp(1.5rem,4vw,3rem); grid-template-columns:minmax(0,1.7fr) minmax(16rem,1fr); }
#study.universe-active .ua-lesson :is(.math-hero-symbol,.mp-opening-symbol) { font-size:clamp(1.6rem,2.8vw,2.5rem); line-height:1.65; padding:1rem; overflow-wrap:normal; }
#study.universe-active .ua-lesson .mp-opening-symbol span { color:var(--ua-gold); background:transparent; padding:.3rem; }
#study.universe-active .ua-lesson .ua-model-opening { grid-template-columns:minmax(0,1fr); }
#study.universe-active .ua-model-path { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; margin:1.5rem 0 0; padding:1.4rem 0; border-block:1px solid var(--ua-line); }
#study.universe-active .ua-model-path :is(strong,span) { display:block; }
#study.universe-active .ua-model-path strong { color:var(--ua-gold); margin-bottom:.5rem; font-size:1rem; }
#study.universe-active .ua-model-path span { color:var(--ua-muted); }
#study.universe-active .ua-lesson .math-examples > div { grid-template-columns:minmax(0,1fr); gap:.5rem; }
#study.universe-active .ua-lesson .ua-added-example { padding-inline:0; }
#study.universe-active .ua-lesson .ua-worked p + p { margin-top:1rem; }
#study.universe-active .ua-lesson :is(.mp-anatomy span,.mp-result,.math-summary,.mp-summary) { color:var(--ua-ink); background:#1e251b; border-color:var(--ua-line); }
#study.universe-active .ua-lesson .mp-anatomy small { font-size:.875rem; color:var(--ua-muted); letter-spacing:normal; }
#study.universe-active .ua-lab { width:100%; max-width:none; box-sizing:border-box; }
#study.universe-active .ua-lab :is(header,.ua-controls,.ua-diagram,.ua-readout) { min-width:0; }
#study.universe-active .ua-area-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(13rem,1fr); align-items:center; gap:clamp(1rem,3vw,2.5rem); margin:1.5rem 0; }
#study.universe-active .ua-area-layout svg.ua-area { width:100%; max-width:32rem; margin:0 auto; }
#study.universe-active .ua-area-layout svg text { font:18px Georgia,serif; fill:var(--ua-ink); }
#study.universe-active .ua-area-reading { min-width:0; }
#study.universe-active .ua-area-reading > p:first-child { margin-top:0; line-height:1.9; }
#study.universe-active .ua-area-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0; }
#study.universe-active .ua-area-legend li { border-left:4px solid #c8aa64; background:#73613a33; padding:.6rem .8rem; display:flex; justify-content:space-between; align-items:baseline; gap:.5rem; }
#study.universe-active .ua-area-legend .ua-area-key-1 { border-color:#8cb99a; background:#425f4c44; }
#study.universe-active .ua-area-legend .ua-area-key-2 { border-color:#a8adce; background:#4f536544; }
#study.universe-active .ua-area-legend .ua-area-key-3 { border-color:#caac84; background:#66513944; }
#study.universe-active .ua-area-legend strong { color:var(--ua-ink); }
#study.universe-active .ua-area-reading .ua-area-note { font-size:.875rem; line-height:1.7; color:var(--ua-muted); }
#study.universe-active .ua-balance-diagram { margin:1.5rem 0; padding:1.25rem; border:1px solid var(--ua-line); border-radius:.75rem; background:#111914; }
#study.universe-active .ua-balance-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; max-width:32rem; margin:auto; text-align:center; }
#study.universe-active .ua-balance-values p { margin:0; }
#study.universe-active .ua-balance-values :is(span,strong) { display:block; }
#study.universe-active .ua-balance-values span { color:var(--ua-muted); font-size:1rem; }
#study.universe-active .ua-balance-values strong { color:var(--ua-gold); font:600 1.6rem/1.5 Georgia,serif; }
#study.universe-active .ua-balance-svg { max-width:32rem; margin:0 auto; }
#study.universe-active .ua-balance-svg text { fill:var(--ua-ink); font:16px system-ui,sans-serif; }
#study.universe-active .ua-balance-support { stroke:#c9c9b1; stroke-width:3; fill:none; }
#study.universe-active .ua-balance-cord { stroke:#ddd7be; stroke-width:1.6; fill:none; }
#study.universe-active .ua-balance-pivot { fill:#fff6df; stroke:#151c18; stroke-width:2; }
#study.universe-active .ua-balance-state { text-align:center; color:var(--ua-ink); margin:.5rem 0 0; }
#study.universe-active .ua-balance .ua-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
#study.universe-active .ua-balance .ua-control:last-child { grid-column:1/-1; max-width:36rem; }
#study.universe-active .ua-history { padding-left:1.5rem; }
#study.universe-active .ua-history:empty { display:none; }
#study.universe-active .ua-balance-guide { border-top:1px solid var(--ua-line); padding-top:1rem; margin-top:1.5rem; }
#study.universe-active .ua-balance-guide summary { color:var(--ua-gold); padding:.5rem 0; min-height:2.75rem; cursor:pointer; }
@media(max-width:980px) {
  #study.universe-active .ua-lesson :is(.math-hero,.mp-opening) { grid-template-columns:minmax(0,1fr); }
  #study.universe-active .ua-lesson :is(.math-hero-symbol,.mp-opening-symbol) { justify-self:start; text-align:left; padding-left:0; }
}
@media(max-width:700px) {
  #study.universe-active :is(.ua-area-layout,.ua-model-path) { grid-template-columns:minmax(0,1fr); }
  #study.universe-active .ua-area-layout { gap:1rem; }
  #study.universe-active .ua-area-reading { width:100%; }
  #study.universe-active .ua-balance .ua-controls { grid-template-columns:minmax(0,1fr); }
  #study.universe-active .ua-model-path { gap:1rem; }
  #study.universe-active .ua-balance-diagram { padding:1rem .4rem; }
  #study.universe-active .ua-formula { font-size:1.3rem; overflow-wrap:break-word; }
}
@media(max-width:560px) {
  #study.universe-active .ua-worked { padding-inline:.3rem; }
  #study.universe-active .ua-lesson :is(.math-hero,.mp-opening,.algebra-opening) { padding-bottom:1rem; }
  #study.universe-active .ua-square-dots { gap:.25rem; }
}

#study.universe-active .ua-lesson :is(.algebra-equation,.algebra-substitution li) { font-family:Georgia,serif; line-height:1.85; }
/* v148: nome da aula e complemento com hierarquias diferentes. */
#study.universe-active #study-title .ua-title-detail { display:block; margin-top:.6rem; color:var(--ua-gold); font:400 clamp(1.25rem,2.3vw,1.75rem)/1.45 system-ui,sans-serif; letter-spacing:normal; }
#qg.universe-hub .ua-lesson-link .ua-title-detail { display:block; margin-top:.25rem; color:var(--ua-gold); font:400 1rem/1.5 system-ui,sans-serif; }
#study.universe-active .mp-navigation .ua-nav-detail { display:block; margin-top:.2rem; color:var(--ua-muted); font:400 .9375rem/1.5 system-ui,sans-serif; }
/* v149: exemplos integrados às aberturas, com desenhos matemáticos exatos. */
#study.universe-active .ua-lesson .ua-opening-symbol { min-width:0; border-left:2px solid var(--ua-line); border-radius:0; padding:1rem 1.25rem; text-align:left; opacity:1; }
#study.universe-active .ua-lesson .algebra-mark.ua-opening-symbol { min-height:0; justify-content:flex-start; font-size:clamp(1.6rem,2.8vw,2.5rem); }
#study.universe-active .ua-lesson .algebra-mark.ua-opening-symbol span { padding:.3rem; border:0; border-radius:0; background:transparent; }
#study.universe-active .ua-lesson .ua-illustrated-opening { grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); align-items:center; }
#study.universe-active .ua-lesson :is(.ua-opening-figure,.ua-opening-note) { width:100%; min-width:0; max-width:24rem; margin:0; padding:1.1rem 1.25rem; border-left:2px solid var(--ua-line); color:var(--ua-ink); }
#study.universe-active .ua-opening-figure svg { display:block; width:100%; height:auto; overflow:visible; margin:.8rem 0; }
#study.universe-active .ua-opening-figure svg text { fill:var(--ua-muted); font:16px system-ui,sans-serif; }
#study.universe-active .ua-opening-grid { fill:none; stroke:#ddd1aa20; stroke-width:1; }
#study.universe-active .ua-opening-axis { fill:none; stroke:#c9c9b1; stroke-width:1.4; }
#study.universe-active .ua-opening-line { fill:none; stroke:var(--ua-gold); stroke-width:3; stroke-linejoin:round; }
#study.universe-active .ua-opening-second { stroke:#9edaca; stroke-dasharray:7 4; }
#study.universe-active .ua-opening-point { fill:var(--ua-ink); stroke:#121914; stroke-width:2; }
#study.universe-active .ua-opening-open-point { fill:#121914; stroke:var(--ua-gold); stroke-width:2.5; }
#study.universe-active .ua-opening-figure svg .ua-opening-point-label { fill:var(--ua-ink); font-weight:600; paint-order:stroke; stroke:#121914; stroke-width:3; }
#study.universe-active .ua-opening-equations { display:grid; gap:.4rem; font:400 1.4rem/1.5 Georgia,serif; color:var(--ua-gold); }
#study.universe-active .ua-opening-equations span:nth-child(2) { color:#9edaca; }
#study.universe-active .ua-opening-figure figcaption :is(strong,span) { display:block; font-size:1rem; line-height:1.6; }
#study.universe-active .ua-opening-figure figcaption span { color:var(--ua-muted); margin-top:.4rem; }
#study.universe-active .ua-lesson .ua-opening-formula { color:var(--ua-gold); font:400 clamp(1.4rem,2.5vw,2rem)/1.6 Georgia,serif; margin:0 0 1rem; }
#study.universe-active .ua-opening-note dl { margin:0; }
#study.universe-active .ua-opening-note dt { color:var(--ua-gold); font-weight:600; }
#study.universe-active .ua-opening-note dd { color:var(--ua-muted); margin:.3rem 0 0; font-size:1rem; line-height:1.6; }
#study.universe-active .ua-function-path { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; }
#study.universe-active :is(.ua-coefficient-key,.ua-extrema-key) { display:grid; gap:1rem; }
#study.universe-active .ua-coefficient-key > div { display:grid; grid-template-columns:1rem 1fr; gap:1rem; align-items:baseline; }
#study.universe-active .ua-coefficient-key dd { margin:0; }
#study.universe-active .ua-opening-note > p:last-child:not(:first-child) { color:var(--ua-muted); margin:1rem 0 0; }
@media(max-width:980px) {
  #study.universe-active .ua-lesson .ua-illustrated-opening { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:560px) {
  #study.universe-active .ua-lesson :is(.ua-opening-figure,.ua-opening-note) { padding:1rem 0 1rem 1rem; max-width:24rem; }
  #study.universe-active .ua-opening-figure svg text { font-size:18px; }
}
