.math-shell{color-scheme:light;--ink:#173746;--muted:#536975;--accent:#156b81;--accent-deep:#0b4d61;--paper:#fffefb;--line:#c7d5d9;--wash:#eef4f4;--warm:#ad6325;--radius:16px}.math-shell *{box-sizing:border-box}.math-shell{margin:0;background:#eef2f3;color:var(--ink);font:1.075rem/1.95 "Noto Sans Arabic","Tahoma",system-ui,sans-serif}.math-shell>.math-header,.math-shell .math-content,.math-shell>.math-footer{max-width:1060px;margin:auto;padding:1.6rem 2.2rem}.math-shell>.math-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);font-size:.9rem}.math-shell>.math-header a{text-decoration:none;font-weight:800;letter-spacing:.01em}.math-shell>.math-header p{color:var(--muted);margin:0}.math-shell .math-content{background:var(--paper);min-height:65vh;border-inline:1px solid #e0e7e8}.math-shell>.math-footer{color:var(--muted);font-size:.86rem}.math-shell a{color:var(--accent-deep);text-underline-offset:.28em}.math-shell h1,.math-shell h2,.math-shell h3,.math-shell h4{line-height:1.5;font-weight:800;margin-block:1.2rem .6rem}.math-shell h1{font-size:2.4rem;font-size:clamp(2rem,5vw,3rem);letter-spacing:-.03em;max-width:850px}.math-shell h2{font-size:1.45rem}.math-shell h3{font-size:1.18rem}.math-shell h4{font-size:1.03rem;color:var(--accent-deep)}.math-shell p{white-space:pre-line;margin-block:.75rem;max-width:75ch}.math-shell .math-content>h1+p{color:var(--muted);font-size:.92rem}.math-shell .math-content>nav:first-of-type{background:var(--wash);padding:.7rem 1rem;border-radius:8px;margin:1.7rem 0}.math-shell nav{display:flex;gap:1rem;flex-wrap:wrap;font-size:.96rem}.math-shell nav a{text-decoration:none;font-weight:700}.math-shell nav a:hover{text-decoration:underline}.math-shell section{scroll-margin-top:1rem}.math-shell #explanation,.math-shell #questions,.math-shell #source{margin-block:2.5rem}.math-shell #explanation>h2,.math-shell #questions>h2,.math-shell #source>h2{border-inline-start:4px solid var(--warm);padding-inline-start:.8rem}.math-shell #explanation>ul{background:var(--wash);border-radius:var(--radius);padding:1rem 2rem}.math-shell article.card{border:1px solid var(--line);background:white;padding:1.4rem 1.6rem;margin:1rem 0;border-radius:var(--radius)}.math-shell #explanation article.card{border:none;border-block-end:1px solid var(--line);border-radius:0;padding:1rem 0 1.5rem;background:transparent}.math-shell #explanation article h3{color:var(--accent-deep)}.math-shell .card,.math-shell fieldset{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;margin:1.1rem 0;min-width:0}.math-shell legend{font-weight:800;padding:0 .6rem;color:var(--accent-deep)}.math-shell .question{border-inline-start:4px solid var(--accent)!important}.math-shell .question>h3{font-size:.93rem;color:var(--accent);margin-block-start:0}.math-shell .question>p{font-size:1.13rem}.math-shell .question>section{background:var(--wash);border-radius:10px;padding:1.1rem;margin-block-start:1rem}.math-shell .question details{font-size:.95rem;color:var(--muted);margin:.8rem 0}.math-shell summary{cursor:pointer;font-weight:700}.math-shell #activity{background:var(--accent-deep);color:white;border:none;padding:1.8rem}.math-shell #activity h2{margin-top:0}.math-shell #activity a{background:white;color:var(--accent-deep)}.math-shell textarea,.math-shell select,.math-shell input,.math-shell button{font:inherit}.math-shell textarea,.math-shell select,.math-shell input[inputmode]{max-width:100%;width:100%;padding:.7rem .9rem;border:1px solid #8da9b5;border-radius:8px;margin:.45rem 0 1rem;background:#fff;color:var(--ink)}.math-shell textarea{resize:vertical;min-height:105px}.math-shell select{min-height:48px}.math-shell button,.math-shell .button{background:var(--accent);color:#fff;border:1px solid transparent;border-radius:8px;padding:.65rem 1rem;display:inline-block;min-height:46px;cursor:pointer;margin:.4rem .2rem;font-weight:700;font-size:1rem;text-decoration:none}.math-shell button:hover,.math-shell .button:hover{background:var(--accent-deep)}.math-shell button:disabled{opacity:.5;cursor:default}.math-shell label{display:block;font-size:.98rem;font-weight:650;margin-block-start:.65rem}.math-shell input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:var(--accent);vertical-align:middle}.math-shell table{border-collapse:separate;border-spacing:0;width:100%;margin:1.2rem 0;font-size:.95rem;border:1px solid var(--line);border-radius:10px;overflow:hidden}.math-shell th,.math-shell td{border-block-end:1px solid var(--line);padding:.7rem;text-align:start;overflow-wrap:anywhere}.math-shell th{background:var(--wash);font-weight:800}.math-shell tr:last-child td{border-bottom:none}.math-shell td+td,.math-shell th+th{border-inline-start:1px solid var(--line)}.math-shell :focus-visible{outline:3px solid #b55c00;outline-offset:4px}.math-shell .skip{position:absolute;top:-100px}.math-shell .skip:focus{top:0;background:white;padding:1rem;z-index:10}.math-shell .notice,.math-shell .safety{font-weight:650}.math-shell .safety{padding:.8rem 1rem;background:#fff4e6;border-inline-start:3px solid var(--warm);font-size:.94rem}.math-shell p[role=status]:not(:empty){padding:.7rem 1rem;background:var(--wash);border-radius:8px;font-weight:700}.math-shell #activity-root{border:1px solid var(--line);background:#f9fbfb;padding:1.5rem;border-radius:var(--radius);margin-block:1.8rem}.math-shell #activity-root svg{display:block;background:white;border:1px solid var(--line);border-radius:12px;padding:.5rem;margin:1rem auto;width:100%;max-width:640px!important}.math-shell #activity-root svg text{font-size:13px;fill:var(--ink)}.math-shell #activity-root>section:not([hidden]){margin:1rem 0}.math-shell #activity-root ol{background:white;border-radius:10px;padding:1rem 2rem}.math-shell #activity-root ol li{padding:.45rem;border-block-end:1px solid var(--line)}.math-shell [hidden]{display:none!important}.math-shell ol{padding-inline-start:1.5rem}.math-shell>.math-footer p{max-width:none}.math-shell #source{font-size:.93rem;color:var(--muted);border-top:1px solid var(--line);padding-top:1rem}.math-shell #source h2{font-size:1.15rem}@media(min-width:850px){.math-shell #activity-root>label,.math-shell #activity-root>select,.math-shell #activity-root>input,.math-shell #activity-root>textarea{max-width:740px}.math-shell .question textarea{max-width:800px}}@media(max-width:600px){.math-shell>.math-header,.math-shell .math-content,.math-shell>.math-footer{padding:1rem}.math-shell>.math-header{display:block}.math-shell>.math-header p{margin-top:.3rem}.math-shell .math-content{border:0}.math-shell article.card,.math-shell .card,.math-shell fieldset,.math-shell #activity-root{padding:1rem;border-radius:12px}.math-shell h1{font-size:2rem}.math-shell nav{gap:.75rem}.math-shell button{margin:.4rem 0;max-width:100%}.math-shell th,.math-shell td{padding:.45rem;font-size:.9rem}.math-shell #activity{padding:1.3rem}.math-shell #activity-root svg{padding:.15rem}.math-shell label{font-size:.95rem}}@media(prefers-reduced-motion:reduce){.math-shell *{scroll-behavior:auto!important}}.math-shell .activity-hero{margin-top:1.2rem}.math-shell .activity-hero h1{font-size:2.4rem;line-height:1.4;margin-top:.3rem}.math-shell .lab-kicker{font-size:.83rem!important;color:var(--accent);font-weight:800;letter-spacing:.03em;margin:.3rem 0}.math-shell .lab-safety{font-size:.86rem;border-inline-start:3px solid var(--warm);padding:.35rem .7rem;background:#fff8ed}.math-shell .specimen-label{font-size:.72rem!important;line-height:1.6;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:.5rem;max-width:none}.math-shell .model-limits{margin:1.4rem 0;font-size:.88rem;color:var(--muted)}.math-shell .model-limits summary{color:var(--ink)}.math-shell #activity-root.heating-workspace{padding:0;border:0;background:transparent}.math-shell .lab-progress{display:flex;border-bottom:1px solid var(--line);padding-bottom:.8rem;margin-bottom:1rem}.math-shell .lab-progress button{flex:1;margin:0;background:#e8f0f1;color:var(--accent-deep);border-radius:0;font-size:.91rem}.math-shell .lab-progress button[aria-current=step]{background:var(--accent-deep);color:white}.math-shell .lab-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1.3rem;align-items:start}.math-shell .lab-chart{background:#edf4f5;border-radius:14px;padding:1.1rem;min-width:0}.math-shell .lab-chart h2{font-size:1.4rem;margin-top:.4rem}.math-shell .lab-work{min-width:0;border:1px solid var(--line);border-radius:14px;padding:1.2rem;background:white}.math-shell .lab-work h3{font-size:1.25rem;margin-top:.3rem}.math-shell .lab-work p{font-size:.96rem}.math-shell .lab-work label{font-size:.92rem}.math-shell .lab-work button{width:100%;margin:.6rem 0}.math-shell .lab-work textarea{min-height:150px}.math-shell .lab-chart .axis-note{font-size:.78rem;line-height:1.75;color:var(--muted)}.math-shell #activity-root .lab-chart svg{margin:.8rem 0;background:#fff;padding:.4rem}.math-shell .stage-buttons{display:flex;gap:.35rem}.math-shell .stage-buttons button{flex:1;padding:.45rem;min-width:0;border:1px solid #87a8b5;background:white;color:var(--accent-deep);margin:0}.math-shell .stage-buttons button[aria-pressed=true]{background:var(--accent);color:white}.math-shell .state-readout p[role=status]{font-size:1.15rem;text-align:center;border:1px solid #b6cdd3;background:white;margin:.7rem 0}.math-shell .data-disclosure{font-size:.8rem;margin-top:.8rem}.math-shell .data-disclosure table{font-size:.8rem}.math-shell .evidence-panel{padding:.8rem 1rem;background:#edf5f2;border-inline-start:3px solid #3b8774;border-radius:8px}.math-shell .evidence-panel p{font-size:.93rem}.math-shell .lab-work .step-panel>p[role=status]{font-size:.86rem}@media(max-width:600px){.math-shell .activity-hero h1{font-size:1.85rem}.math-shell .lab-grid{display:block}.math-shell .lab-chart{padding:.8rem;margin-bottom:.8rem}.math-shell .lab-chart h2{font-size:1.2rem}.math-shell .lab-work{padding:1rem}.math-shell .lab-progress{gap:0}.math-shell .lab-progress button{font-size:.85rem}.math-shell .lab-safety{font-size:.78rem}.math-shell .lab-chart .axis-note{font-size:.75rem}.math-shell .stage-buttons button{min-height:44px}.math-shell .specimen-label{font-size:.68rem!important}}.math-shell .data-disclosure:not([open]) > :not(summary){display:none}.math-shell .math-workspace{background:#f6fafb;border:1px solid #c8d7dc;border-radius:16px;padding:1.4rem;margin-top:1.5rem}.math-shell .math-card-grid,.math-shell .numeric-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.math-shell .math-number{width:100%;max-width:420px;border:1px solid #8da9b5;padding:.75rem;border-radius:8px;margin:.4rem 0 1rem;font-size:1.12rem}.math-shell .math-formula{font-family:system-ui,sans-serif;text-align:center;font-size:1.5rem;font-weight:750;background:white;border:1px solid #c8d7dc;border-radius:10px;padding:.8rem;unicode-bidi:isolate;overflow-wrap:anywhere}.math-shell .math-diagram{display:block;width:100%;max-width:680px;height:auto;background:white;border:1px solid #c8d7dc;border-radius:12px;margin:1rem auto;direction:ltr}.math-shell .math-diagram text{font:14px system-ui,sans-serif;fill:#173746;direction:ltr}.math-shell .math-question{border-inline-start:4px solid #156b81}.math-shell .math-question>section{background:#edf5f2;padding:1.1rem;border-radius:10px;margin-top:1rem}.math-shell .math-question input[type=checkbox]{width:1.1rem;height:1.1rem}.math-shell .math-workspace table input{max-width:100%}.math-shell .science-balance{border:1px solid #b4cbd2;padding:1.2rem;border-radius:12px;background:#edf4f5}.math-shell .numeric-fields:empty{display:none}@media(max-width:600px){.math-shell .math-workspace{padding:1rem}.math-shell .math-card-grid,.math-shell .numeric-fields{display:block}.math-shell .math-formula{font-size:1.2rem}.math-shell .math-workspace button{max-width:100%;white-space:normal}.math-shell .math-number{font-size:1rem}.math-shell .math-workspace .card{padding:.9rem}}.math-shell .math-number{min-height:48px;box-sizing:border-box}.math-shell .numeric-fields .number-field{min-width:0}.math-shell .math-workspace button{max-width:100%}.math-shell .math-inline{direction:ltr;unicode-bidi:isolate;display:inline-block;white-space:nowrap;vertical-align:baseline}.math-shell .math-inline{margin-inline:.1em}.math-shell .question-solution li label{display:flex;align-items:flex-start;gap:.5rem}.math-shell .question-solution li label input{flex-shrink:0;margin-inline-end:.4rem}.math-shell .percent-palette{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem;margin:1rem 0}.math-shell .percent-palette button{flex:0 0 20%;min-width:0;width:20%;margin:0;padding:.5rem;font-size:.9rem;min-height:48px;white-space:normal}.math-shell .percent-palette button:nth-last-child(-n+2){flex-basis:100%;width:100%;background:#0b4d61}@media(max-width:600px){.math-shell .percent-palette button{flex-basis:40%;width:40%}.math-shell .percent-palette button:nth-last-child(-n+2){flex-basis:100%;width:100%}}

.math-shell{font-family:inherit}.math-shell td,.math-shell th{white-space:normal}.math-shell table{table-layout:fixed}.math-shell .math-header{flex-wrap:wrap}

.math-shell .math-header{display:flex;gap:1rem;justify-content:space-between;align-items:center}
