/* Aulas 04–12. Camada editorial do Modo Estudo, sem afetar a Central ou as outras aulas. */
#study .basic-expanded {--xb-accent:#eac59f;--xb-line:#9d7c89;--xb-panel:#473346;color:#f7e9e7;}
#study .basic-expanded.basic-rose {--xb-accent:#efc4d6;--xb-line:#ab8198;--xb-panel:#4d344b;}
#study .basic-expanded.basic-violet {--xb-accent:#dec8f0;--xb-line:#977da4;--xb-panel:#41334f;}
#study .basic-expanded.basic-moss {--xb-accent:#d4e3bf;--xb-line:#819987;--xb-panel:#35443d;}
#study .basic-expanded.basic-sand {--xb-accent:#efd7aa;--xb-line:#aa8e7a;--xb-panel:#4d3b43;}
#study .basic-expanded.basic-brick {--xb-accent:#edbdab;--xb-line:#af847d;--xb-panel:#513744;}
#study .basic-expanded.basic-sage {--xb-accent:#d2e4c4;--xb-line:#8ea292;--xb-panel:#3b473f;}
#study .basic-expanded.basic-amber {--xb-accent:#f2d6a7;--xb-line:#ad8d78;--xb-panel:#4b3942;}
#study .basic-expanded.basic-cosmic {--xb-accent:#ddc9ef;--xb-line:#9885a9;--xb-panel:#3e3452;}
#study .basic-expanded.basic-clay {--xb-accent:#efc6aa;--xb-line:#ac857b;--xb-panel:#4d3742;}
#study .basic-expanded [hidden] {display:none!important;}
#study .basic-expanded * {min-width:0;}
#study .basic-expanded .basic-section {margin-bottom:clamp(68px,8vw,113px);padding-top:clamp(27px,3vw,42px);border-top:1px solid #866777;}
#study .basic-expanded .xb-intro {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(275px,.76fr);gap:clamp(24px,5vw,75px);align-items:center;padding:0 0 35px;border:0;}
#study .basic-expanded .xb-intro h2 {max-width:720px;font-size:clamp(31px,3.7vw,50px);}
#study .basic-expanded .xb-intro p {max-width:690px;margin:0;}
#study .basic-expanded .xb-goals {padding:26px 29px;border:1px solid var(--xb-line);border-left:3px solid var(--xb-accent);border-radius:12px;background:linear-gradient(140deg,var(--xb-panel),#39283e);color:#f8eae7;font:16px/1.55 system-ui,sans-serif;}
#study .basic-expanded .xb-goals strong {color:#fff4ed;font:650 18px/1.35 system-ui,sans-serif;}
#study .basic-expanded .xb-goals ul {display:grid;gap:12px;margin:17px 0 0;padding-left:21px;}
#study .basic-expanded .xb-goals li::marker {color:var(--xb-accent);}
#study .basic-expanded .xb-head {max-width:820px;margin:0 0 28px;}
#study .basic-expanded .xb-head h2 {margin-bottom:11px;}
#study .basic-expanded .xb-head p {max-width:680px;margin:0;}
#study .basic-expanded .xb-split {display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.92fr);gap:clamp(21px,4.5vw,62px);align-items:center;}
#study .basic-expanded .xb-reverse {grid-template-columns:minmax(0,.94fr) minmax(0,1fr);}
#study .basic-expanded .xb-reading {max-width:690px;}
#study .basic-expanded .xb-reading h3 {margin:0 0 17px;color:#fff1ed;font:550 clamp(22px,2.5vw,31px)/1.24 Georgia,serif;}
#study .basic-expanded .xb-reading p {margin:0 0 17px;font-size:17px;line-height:1.65;}
#study .basic-expanded .xb-reading b,#study .basic-expanded .xb-reading strong {color:#fff4ed;}
#study .basic-expanded .xb-panel {padding:clamp(22px,3vw,37px);border:1px solid var(--xb-line);border-radius:14px;background:radial-gradient(circle at 90% 0%,color-mix(in srgb,var(--xb-accent) 12%,transparent),transparent 55%),linear-gradient(145deg,var(--xb-panel),#36273d);color:#fff1ec;}
#study .basic-expanded .xb-panel p {color:#f3e6e3;}
#study .basic-expanded .xb-panel > p:last-child {margin-bottom:0;}
#study .basic-expanded .xb-panel :is(p,strong,small,span) {overflow-wrap:anywhere;}
#study .basic-expanded .xb-note {max-width:780px;margin:20px 0 0!important;padding:15px 20px;border-left:3px solid var(--xb-accent);background:#4a3448;color:#f7e9e6!important;font:16px/1.55 system-ui,sans-serif!important;}
#study .basic-expanded .xb-options {display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0;}
#study .basic-expanded .xb-options .basic-choice {min-height:46px;font-size:14px;}
#study .basic-expanded .xb-question {margin:23px 0 0;padding:19px 20px;border:1px solid var(--xb-line);border-radius:10px;background:#493649;}
#study .basic-expanded .xb-question > strong {display:block;margin:0 0 13px;color:#fff1e9;font:550 23px/1.3 Georgia,serif;}
#study .basic-expanded .xb-question .basic-feedback {margin-bottom:0;}
#study .basic-expanded .xb-equation {display:block;margin:18px 0;color:var(--xb-accent);font:clamp(24px,3vw,36px)/1.25 Georgia,serif;overflow-wrap:anywhere;}
#study .basic-expanded .xb-discovery {margin:21px 0 0;padding:21px;border:1px solid var(--xb-line);border-left:3px solid var(--xb-accent);border-radius:9px;background:#493748;}
#study .basic-expanded .xb-discovery strong {color:#fff4ed;font:550 24px/1.3 Georgia,serif;}
#study .basic-expanded .xb-discovery p {margin:8px 0 0;font-size:16px;}
#study .basic-expanded .xb-three {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
#study .basic-expanded .xb-three > div {padding:25px;border:1px solid var(--xb-line);border-top:3px solid var(--xb-accent);border-radius:11px;background:var(--xb-panel);}
#study .basic-expanded .xb-three h3 {margin:0 0 12px;font:550 24px/1.27 Georgia,serif;}
#study .basic-expanded .xb-three p {margin:0;font:16px/1.58 system-ui,sans-serif;}
#study .basic-expanded .xb-three b {color:#fff7f0;}
#study .basic-expanded .xb-input-label {display:block;margin:0 0 11px;color:#fff0e8;font:600 16px/1.4 system-ui,sans-serif;}
#study .basic-expanded :is(input[type=range],input[type=text],input[type=number],select) {accent-color:var(--xb-accent);}
#study .basic-expanded input[type=range] {display:block;width:100%;min-height:28px;margin:13px 0 20px;cursor:pointer;}
#study .basic-expanded .xb-panel input[type=number],#study .basic-expanded .xb-panel input[type=text],#study .basic-expanded .xb-panel select {width:100%;min-height:46px;padding:10px 12px;border:1px solid #bb9eaa;border-radius:7px;background:#34283c;color:#fff4ee;font:16px/1.4 system-ui,sans-serif;}
#study .basic-expanded .xb-panel select option {background:#34283c;color:#fff4ee;}
#study .basic-expanded :is(button,input,select,summary,a):focus-visible {outline:3px solid #ffe5c4;outline-offset:4px;}
#study .basic-expanded .xb-examples {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start;}
#study .basic-expanded .xb-example {border:1px solid var(--xb-line);border-radius:11px;background:#3e2c42;}
#study .basic-expanded .xb-example[open] {background:#4b354b;border-color:var(--xb-accent);}
#study .basic-expanded .xb-example summary {display:flex;align-items:center;gap:13px;min-height:83px;padding:20px;color:#fff1e9;cursor:pointer;list-style:none;}
#study .basic-expanded .xb-example summary::-webkit-details-marker,#study .basic-expanded .xb-mistakes summary::-webkit-details-marker {display:none;}
#study .basic-expanded .xb-example summary small {flex:none;color:var(--xb-accent);font:750 12px/1.35 system-ui,sans-serif;letter-spacing:.11em;}
#study .basic-expanded .xb-example summary strong {flex:1;font:550 23px/1.27 Georgia,serif;}
#study .basic-expanded .xb-example summary > span {flex:none;font-size:24px;color:var(--xb-accent);}
#study .basic-expanded .xb-example[open] summary > span,#study .basic-expanded .xb-mistakes details[open] summary span {transform:rotate(45deg);}
#study .basic-expanded .xb-example-body {padding:0 22px 23px;}
#study .basic-expanded .xb-example-body > p {margin:1px 0 15px;font-size:16px;}
#study .basic-expanded .xb-example-steps > p {display:flex;gap:12px;margin:0 0 10px;padding:14px;border:1px solid #9e808c;border-radius:7px;background:#533d51;color:#fff0e9;font:16px/1.5 system-ui,sans-serif;}
#study .basic-expanded .xb-example-steps span {flex:none;color:var(--xb-accent);font-weight:750;}
#study .basic-expanded .xb-example-steps .xb-example-outcome {background:#3d4a42;border-color:#9eb79f;color:#f1ffec;}
#study .basic-expanded .xb-example .basic-button {margin-top:8px;}
#study .basic-expanded .xb-mistakes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;}
#study .basic-expanded .xb-mistakes details {padding:0 20px;border:1px solid #a98491;border-radius:10px;background:#492e40;}
#study .basic-expanded .xb-mistakes details[open] {border-color:var(--xb-accent);background:#513545;}
#study .basic-expanded .xb-mistakes summary {display:flex;justify-content:space-between;align-items:center;gap:13px;min-height:75px;color:#fff0e9;font:550 18px/1.45 Georgia,serif;cursor:pointer;list-style:none;}
#study .basic-expanded .xb-mistakes summary span {flex:none;color:var(--xb-accent);font-size:23px;}
#study .basic-expanded .xb-mistake-answer {margin:0 0 19px;padding-top:12px;border-top:1px solid #9a7786;}
#study .basic-expanded .xb-mistake-answer p {margin:0;color:#faeae7;font:16px/1.6 system-ui,sans-serif;}
#study .basic-expanded .xb-practice {max-width:840px;padding:clamp(23px,4vw,40px);border:1px solid var(--xb-line);border-radius:15px;background:linear-gradient(135deg,var(--xb-panel),#35283d);}
#study .basic-expanded .xb-practice h3 {margin:7px 0 21px;font:550 clamp(22px,2.6vw,29px)/1.3 Georgia,serif;}
#study .basic-expanded .xb-practice-complete {margin-top:22px;padding:17px 20px;border-left:3px solid #c6ddad;border-radius:7px;background:#3a493e;color:#f4ffea;font:600 16px/1.55 system-ui,sans-serif;}
#study .basic-expanded .xb-summary-section {padding:clamp(28px,4vw,45px)!important;border:1px solid var(--xb-line)!important;border-top:3px solid var(--xb-accent)!important;border-radius:14px;background:linear-gradient(135deg,#503748,#37283e);}
#study .basic-expanded .xb-summary-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 0;padding:0;list-style:none;}
#study .basic-expanded.basic-violet .xb-summary-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
#study .basic-expanded .xb-summary-grid li {display:flex;align-items:start;gap:10px;padding:16px;border:1px solid #947687;border-radius:9px;background:#402e42;}
#study .basic-expanded .xb-summary-grid li span {flex:none;color:var(--xb-accent);font:750 15px system-ui,sans-serif;}
#study .basic-expanded .xb-summary-grid li p {margin:0;color:#fff0ea;font:16px/1.5 system-ui,sans-serif;}
#study .basic-expanded .xb-final {margin-bottom:0!important;}
#study .basic-expanded .xb-final .basic-challenge-card h3 {min-height:85px;}
#study .basic-expanded .xb-final .basic-challenge-card .basic-choice {font-size:14px;}
/* Representações de valor posicional, frações decimais e alinhamento. */
#study .basic-expanded .xb-place-labels,#study .basic-expanded .xb-place-digits {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
#study .basic-expanded .xb-place-labels span {color:#ffe3f0;font:750 12px/1.35 system-ui,sans-serif;letter-spacing:.06em;text-align:center;}
#study .basic-expanded .xb-place-digits {margin:12px 0 24px;}
#study .basic-expanded .xb-place-digits button {min-height:80px;border:1px solid #cf9cb5;border-radius:9px;background:#6b465f;color:#fff2e9;font:55px Georgia,serif;cursor:pointer;}
#study .basic-expanded .xb-place-digits button:hover,#study .basic-expanded .xb-place-digits button[aria-pressed=true] {background:#925a78;border-color:#ffe3ee;}
#study .basic-expanded .xb-part-bar {display:grid;grid-template-columns:repeat(var(--xb-parts),minmax(0,1fr));gap:3px;padding:4px;height:45px;border:1px solid #c8a4b6;border-radius:7px;background:#37283f;}
#study .basic-expanded .xb-part-bar span {border-radius:3px;background:#5a4657;}
#study .basic-expanded .xb-part-bar .filled {background:#e8b3ca;}
#study .basic-expanded .xb-decimal-align {display:grid;gap:11px;}
#study .basic-expanded .xb-decimal-align > span {padding:12px;border:1px solid #be9cb1;border-radius:8px;background:#5a3f57;color:#fff1eb;font:clamp(28px,3vw,36px) Georgia,serif;}
#study .basic-expanded .xb-decimal-align small {font:500 17px system-ui,sans-serif;color:#f4dce8;}
#study .basic-expanded .xb-decimal-align p {margin:10px 0 0;}
/* Potências: fatores, propriedades e quadrados de área. */
#study .basic-expanded .xb-control-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
#study .basic-expanded .xb-control-pair label {color:#fff0e8;font:650 15px system-ui,sans-serif;}
#study .basic-expanded .xb-factor-trail {display:flex;flex-wrap:wrap;gap:6px;padding:18px;border:1px solid #a390b6;border-radius:9px;color:#f8e5ff;background:#504060;font:600 22px/1.3 Georgia,serif;}
#study .basic-expanded .xb-law-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
#study .basic-expanded .xb-law-list .basic-choice {font-size:14px;}
#study .basic-expanded .xb-law-detail {min-height:200px;}
#study .basic-expanded .xb-law-detail h3 {margin:7px 0 13px;font:550 27px Georgia,serif;}
#study .basic-expanded .xb-warning {padding:16px 19px;border-left:3px solid #eac394;background:#4e394f;}
#study .basic-expanded .xb-warning strong {color:#fff1e7;font:650 17px system-ui,sans-serif;}
#study .basic-expanded .xb-warning p {margin:7px 0 0;font-size:16px;}
#study .basic-expanded .xb-square {display:grid;grid-template-columns:repeat(var(--xb-side),minmax(0,1fr));gap:3px;max-width:270px;aspect-ratio:1;margin:25px auto;padding:4px;border:1px solid #d3b7df;border-radius:7px;background:#3a2c49;}
#study .basic-expanded .xb-square span {min-width:0;min-height:0;border-radius:3px;background:#cdb0e0;}
/* Fatores e primos. */
#study .basic-expanded .xb-scan-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:17px 0;}
#study .basic-expanded .xb-scan-result {padding:10px 12px;border:1px solid #a08a96;border-radius:8px;background:#4c3b48;}
#study .basic-expanded .xb-scan-result[data-valid=true] {border-color:#b4d19f;background:#3e4d3e;}
#study .basic-expanded .xb-scan-result b {display:block;color:#fff0ea;font:700 15px system-ui,sans-serif;}
#study .basic-expanded .xb-scan-result small {color:#eee4e1;font:13px/1.4 system-ui,sans-serif;}
#study .basic-expanded .xb-sieve {display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin-bottom:20px;}
#study .basic-expanded .xb-sieve span {display:grid;place-items:center;min-height:34px;border:1px solid #a6bea5;border-radius:5px;background:#536653;color:#fff3ec;font:650 13px system-ui,sans-serif;}
#study .basic-expanded .xb-sieve span.eliminated {background:#4b3b48;color:#e5d6d4;text-decoration:line-through;}
#study .basic-expanded .xb-factor-lines {display:grid;gap:8px;margin-bottom:20px;}
#study .basic-expanded .xb-factor-lines span {padding:12px;border:1px solid #9fae97;border-radius:8px;background:#455145;color:#fff0e6;font:23px Georgia,serif;}
/* Razão, receita e regra de três. */
#study .basic-expanded .xb-ratio-glasses {display:flex;flex-wrap:wrap;gap:8px;margin:22px 0;}
#study .basic-expanded .xb-ratio-glasses span {display:grid;place-items:center;width:50px;height:66px;border:2px solid #c6d2d1;border-top:0;border-radius:0 0 11px 11px;background:#61989a;color:#0b2426;font:750 18px system-ui,sans-serif;}
#study .basic-expanded .xb-ratio-glasses span.one {border-color:#e5c59d;background:#d8a274;color:#342437;}
#study .basic-expanded .xb-mix-bars {display:grid;gap:12px;margin:24px 0;}
#study .basic-expanded .xb-mix-bars > div {display:flex;flex-wrap:wrap;gap:5px;}
#study .basic-expanded .xb-mix-bars span {display:grid;place-items:center;width:28px;height:37px;border-radius:3px 3px 8px 8px;background:#d7aa7b;color:#382a36;font:750 12px system-ui,sans-serif;}
#study .basic-expanded .xb-mix-bars div:last-child span {background:#72acaf;color:#17313a;}
#study .basic-expanded .xb-recipe-results {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:21px 0;}
#study .basic-expanded .xb-recipe-results div {padding:14px 10px;border:1px solid #bba48f;border-radius:8px;background:#5a4449;}
#study .basic-expanded .xb-recipe-results small {display:block;color:#fbe4c9;font:750 12px/1.3 system-ui,sans-serif;}
#study .basic-expanded .xb-recipe-results strong {display:block;margin-top:8px;color:#fff5eb;font:23px Georgia,serif;}
#study .basic-expanded .xb-relationship {display:flex;flex-wrap:wrap;gap:6px;margin-top:18px;}
#study .basic-expanded .xb-relationship span {padding:9px;border:1px solid #ae8d8e;border-radius:7px;color:#fff1e9;font:650 12px system-ui,sans-serif;}
#study .basic-expanded .xb-rule-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
#study .basic-expanded .xb-rule-pair .xb-panel h3 {margin:6px 0 10px;}
#study .basic-expanded .xb-mini-table {display:flex;flex-wrap:wrap;gap:8px;margin:17px 0 0;}
#study .basic-expanded .xb-mini-table span {padding:9px 12px;border:1px solid #ad8e91;border-radius:7px;color:#fff1e8;background:#594350;font:600 14px/1.4 system-ui,sans-serif;}
#study .basic-expanded .xb-model-cards {display:grid;gap:11px;}
#study .basic-expanded .xb-model-cards div {display:grid;gap:7px;padding:17px;border:1px solid #ba9a8e;border-radius:8px;background:#614451;color:#fff2e9;font:16px/1.4 system-ui,sans-serif;}
#study .basic-expanded .xb-model-cards b {color:var(--xb-accent);}
#study .basic-expanded .xb-model-cards small {font-size:14px;}
/* Cem partes e mudanças sucessivas. */
#study .basic-expanded .xb-hundred {display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;max-width:320px;margin:18px auto 20px;}
#study .basic-expanded .xb-hundred span {aspect-ratio:1;border:1px solid #a1a99c;border-radius:2px;background:#465346;}
#study .basic-expanded .xb-hundred span.filled {border-color:#f3dfaf;background:#d5e7ae;}
#study .basic-expanded .xb-price-ticket > strong {display:block;margin:12px 0 24px;color:#fff4e9;font:55px/1 Georgia,serif;}
#study .basic-expanded .xb-ticket-outcome {display:grid;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid #a2b49e;color:#f4f6e8;font:16px system-ui,sans-serif;}
#study .basic-expanded .xb-ticket-outcome strong {color:#f7f6dd;font:26px Georgia,serif;}
#study .basic-expanded .xb-price-journey {display:grid;gap:10px;max-width:360px;margin:auto;text-align:center;}
#study .basic-expanded .xb-price-journey :is(span,strong) {padding:11px;border:1px solid #b2c3a7;border-radius:7px;color:#fff4e9;font:600 19px system-ui,sans-serif;}
#study .basic-expanded .xb-price-journey span:nth-of-type(even) {border:0;color:#d8e9c6;font-size:14px;}
/* Medidas e escalas. */
#study .basic-expanded .xb-unit-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#study .basic-expanded .xb-unit-gallery div {display:grid;gap:7px;padding:17px;border:1px solid #bca187;border-radius:8px;background:#59454b;}
#study .basic-expanded .xb-unit-gallery b {color:#ffe4b6;font:750 12px system-ui,sans-serif;}
#study .basic-expanded .xb-unit-gallery strong {color:#fff3e9;font:28px Georgia,serif;}
#study .basic-expanded .xb-unit-gallery small {color:#f9e9df;font:15px system-ui,sans-serif;}
#study .basic-expanded .xb-convert-controls {display:grid;grid-template-columns:1fr 1fr;gap:13px;}
#study .basic-expanded .xb-convert-controls label {display:grid;gap:8px;color:#fff2e8;font:600 15px system-ui,sans-serif;}
#study .basic-expanded .xb-area-demo {display:grid;grid-template-columns:25px 1fr 36px;gap:6px;align-items:center;max-width:255px;margin:20px auto;color:#f9e2c4;font:600 13px system-ui,sans-serif;text-align:center;}
#study .basic-expanded .xb-area-demo div {display:grid;place-items:center;aspect-ratio:1;border:3px solid #f1d5a0;background:repeating-linear-gradient(0deg,transparent 0 14px,rgba(255,255,255,.12) 15px),repeating-linear-gradient(90deg,transparent 0 14px,rgba(255,255,255,.12) 15px),#665048;color:#fff8e8;font:550 21px/1.3 Georgia,serif;}
#study .basic-expanded .xb-panel > #xb-next-measure {margin-top:10px;}
#study .basic-expanded .xb-scale-line {display:flex;justify-content:space-between;gap:4px;margin:26px 0;padding:12px 0;border-top:2px solid #cdb7de;color:#f6e6ff;font:600 12px system-ui,sans-serif;}
#study .basic-expanded .xb-scale-line span {position:relative;}
#study .basic-expanded .xb-scale-line span::before {content:"";position:absolute;top:-19px;left:50%;width:9px;height:9px;border-radius:50%;background:#dfc9ee;}
#study .basic-expanded .xb-science-transform {display:flex;flex-wrap:wrap;align-items:center;gap:13px;margin-top:24px;padding:16px;border:1px solid #a891bb;border-radius:9px;background:#50405c;color:#fff0e7;font:22px Georgia,serif;}
#study .basic-expanded .xb-science-transform strong {color:#ebd5ff;}
#study .basic-expanded .xb-scale-check {display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:17px;border:1px solid #a891bb;border-radius:8px;background:#4c3a57;color:#fff2ec;font:600 14px/1.4 system-ui,sans-serif;}
#study .basic-expanded .xb-scale-check :is(span,i,strong) {padding:8px;border:1px solid #b8a1c6;border-radius:7px;font-style:normal;}
#study .basic-expanded .xb-scale-check strong {color:#ffecb8;}
/* Álgebra: padrões de entrada e igualdade. */
#study .basic-expanded .xb-machine {display:flex;align-items:center;justify-content:space-around;gap:7px;flex-wrap:wrap;margin:20px 0;}
#study .basic-expanded .xb-machine :is(span,strong) {display:grid;place-items:center;min-width:65px;min-height:65px;padding:11px;border:1px solid #edc2a9;border-radius:10px;background:#664b51;color:#fff4e9;font:29px Georgia,serif;}
#study .basic-expanded .xb-machine i {color:#f4d3be;font:650 15px system-ui,sans-serif;font-style:normal;}
#study .basic-expanded .xb-machine-outcome {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0;padding:20px;border:1px solid #c8a9a0;border-radius:9px;background:#604651;color:#fff1e8;font:22px Georgia,serif;}
#study .basic-expanded .xb-machine-outcome strong {color:#ffe1b9;font-size:38px;}
#study .basic-expanded .xb-term-tiles {display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 23px;}
#study .basic-expanded .xb-term-tiles span {padding:15px;border:1px solid #dbb59d;border-radius:8px;background:#755052;color:#fff4e9;font:27px Georgia,serif;}
#study .basic-expanded .xb-term-tiles span:nth-child(n+3) {background:#514257;}
#study .basic-expanded .xb-balance {display:flex;justify-content:space-between;align-items:center;gap:6px;margin:15px 0;padding:20px;border-bottom:4px solid #e8ba9d;color:#fff4e8;font:clamp(23px,3vw,34px)/1.3 Georgia,serif;}
#study .basic-expanded .xb-balance span:nth-child(2) {color:#f4ccad;}
#study .basic-expanded #xb-eq-path {padding:12px;border:1px solid #ad8e92;border-radius:8px;background:#59414e;overflow-wrap:anywhere;}
#study .basic-expanded #xb-eq-reset {margin-top:7px;}
@media(max-width:930px){#study .basic-expanded .xb-three {grid-template-columns:1fr 1fr;}#study .basic-expanded .xb-summary-grid {grid-template-columns:1fr;}#study .basic-expanded .xb-final .basic-challenge-card h3 {min-height:0;}}
@media(max-width:720px){
  #study .basic-expanded .xb-intro,#study .basic-expanded .xb-split,#study .basic-expanded .xb-reverse,#study .basic-expanded .xb-rule-pair {grid-template-columns:1fr;}
  #study .basic-expanded .xb-examples,#study .basic-expanded .xb-mistakes {grid-template-columns:1fr;}
  #study .basic-expanded .xb-intro {gap:24px;}
  #study .basic-expanded .xb-sieve {grid-template-columns:repeat(8,minmax(0,1fr));}
  #study .basic-expanded.basic-violet .xb-summary-grid {grid-template-columns:1fr;}
}
@media(max-width:480px){
  #study .basic-expanded .xb-panel,#study .basic-expanded .xb-practice {padding:20px 16px;}
  #study .basic-expanded .xb-three,#study .basic-expanded .xb-control-pair,#study .basic-expanded .xb-convert-controls {grid-template-columns:1fr;}
  #study .basic-expanded .xb-place-labels span {font-size:10px;letter-spacing:0;}
  #study .basic-expanded .xb-place-digits button {min-height:68px;font-size:46px;}
  #study .basic-expanded .xb-law-list {grid-template-columns:1fr;}
  #study .basic-expanded .xb-sieve {grid-template-columns:repeat(6,minmax(0,1fr));}
  #study .basic-expanded .xb-recipe-results {grid-template-columns:repeat(2,minmax(0,1fr));}
  #study .basic-expanded .xb-machine-outcome {flex-direction:column;align-items:start;}
  #study .basic-expanded .xb-unit-gallery {grid-template-columns:1fr 1fr;}
}
@media(prefers-reduced-motion:no-preference){
  #study .basic-expanded .xb-hundred span,#study .basic-expanded .xb-sieve span,#study .basic-expanded .xb-square span {transition:background-color .24s ease,border-color .24s ease;}
  #study .basic-expanded .xb-example-steps > p:not([hidden]),#study .basic-expanded .xb-discovery {animation:xb-arrive .28s ease both;}
  @keyframes xb-arrive{from{opacity:.62;transform:translateY(5px)}to{opacity:1;transform:none}}
}
@media(prefers-reduced-motion:reduce){#study .basic-expanded *,#study .basic-expanded *::before,#study .basic-expanded *::after {transition:none!important;animation:none!important;scroll-behavior:auto!important;}}

/* Aprofundamentos opcionais das aulas 11 e 12. */
#study .basic-expanded .xb-optional-order,#study .basic-expanded .xb-equation-preview {margin:18px 0 24px;border:1px solid #ad8d9d;border-left:3px solid var(--xb-accent);border-radius:12px;background:linear-gradient(135deg,#493247,#39283e);color:#faeaf0;}
#study .basic-expanded .xb-optional-order > summary,#study .basic-expanded .xb-equation-preview > summary {display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:58px;padding:16px 19px;color:#fff2eb;font:700 14px/1.45 system-ui,sans-serif;letter-spacing:.04em;cursor:pointer;list-style:none;}
#study .basic-expanded .xb-optional-order > summary::-webkit-details-marker,#study .basic-expanded .xb-equation-preview > summary::-webkit-details-marker {display:none;}
#study .basic-expanded .xb-optional-order > summary span:last-child,#study .basic-expanded .xb-equation-preview > summary span:last-child {color:var(--xb-accent);font-size:22px;}
#study .basic-expanded .xb-optional-order[open] > summary,#study .basic-expanded .xb-equation-preview[open] > summary {border-bottom:1px solid #92778b;color:#ffe2b6;}
#study .basic-expanded .xb-optional-order-body,#study .basic-expanded .xb-equation-preview-body {padding:18px;}
#study .basic-expanded .xb-optional-order-body > p:first-child,#study .basic-expanded .xb-equation-preview-body > p:first-child {margin:0 0 15px;padding:13px 15px;border-left:3px solid #e3c39b;background:#392b40;color:#fff1e8;font-size:15px;line-height:1.6;}
#study .basic-expanded .xb-optional-order-question,#study .basic-expanded .xb-optional-equation-error {margin:14px 0;padding:0 15px;border:1px solid #a68a9a;border-radius:9px;background:#423044;color:#faeaf0;}
#study .basic-expanded .xb-optional-order-question summary,#study .basic-expanded .xb-optional-equation-error summary {padding:14px 0;color:#fff3ea;font:600 16px/1.45 Georgia,serif;cursor:pointer;}
#study .basic-expanded .xb-optional-order-question p,#study .basic-expanded .xb-optional-equation-error p {font-size:15px;line-height:1.55;}
#study .basic-expanded .xb-optional-equation-challenge {margin:14px 0 0;border-color:#a68a9a;background:#423044;color:#faeaf0;}
#study .basic-expanded .xb-course-bridge {display:block;margin-top:12px;color:#fff0c9;font-weight:750;}
#study .basic-expanded .xb-bridge-link {display:inline-flex;align-items:center;min-height:42px;margin-top:9px;padding:8px 14px;border:1px solid #d3b6ca;border-radius:8px;background:#573d55;color:#fff2e9;font-weight:700;text-decoration:none;}
#study .basic-expanded .xb-bridge-link:hover {border-color:#ffe4bc;background:#6a4a62;color:#fffaf5;text-decoration:underline;text-underline-offset:3px;}
#study .basic-expanded .xb-course-bridge-section {padding:25px;border:1px solid #b391a6;border-left:4px solid #ebc997;border-radius:12px;background:linear-gradient(130deg,#50384c,#37283f);}
#study .basic-expanded .xb-course-bridge-section .xb-head h2 {color:#fff3e9;font-size:clamp(25px,3vw,36px);}
#study .basic-expanded .xb-course-bridge-section .xb-head p {color:#fae9e7;font-size:17px;}
#study .basic-expanded .xb-course-bridge-section .xb-bridge-link {margin:0;}
#study .basic-expanded :is(.xb-optional-order > summary,.xb-equation-preview > summary,.xb-optional-order-question summary,.xb-optional-equation-error summary,.xb-bridge-link):focus-visible {outline:3px solid #ffe4bc;outline-offset:3px;}
