:root{color-scheme:light;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#19362c;background:#f6f8f6;font-size:19px;line-height:1.65;--line:#cbd9cf;--green:#1c6c43}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select,summary{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{border:1px solid #9db8a6;border-radius:.65rem;background:#eef6ef;color:#174d30;padding:.65rem 1rem;cursor:pointer;min-height:48px;text-align:left;line-height:1.45}button:hover{background:#dceee0}button:disabled{cursor:default;opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #dd951a;outline-offset:4px}a{color:#175b37}h1,h2,h3{line-height:1.25;overflow-wrap:anywhere}h1{font-size:clamp(1.75rem,4vw,2.6rem)}h2{font-size:1.55rem}h3{font-size:1.2rem}p,li{overflow-wrap:anywhere}p{margin:.85rem 0 1.25rem}li{margin:.55rem 0}small{font-size:.88rem}label{display:block;margin:.6rem 0;font-weight:600}input,textarea,select{display:block;width:100%;min-width:0;margin:.6rem 0 1rem;border:1px solid #8aa694;border-radius:.5rem;padding:.75rem;background:#fff;color:inherit}textarea{min-height:9rem;resize:vertical}form{margin:1.4rem 0}summary{cursor:pointer;font-weight:650;padding:.7rem .1rem;line-height:1.45;min-height:48px}details{margin:.7rem 0;padding:.45rem .85rem;border:1px solid var(--line);border-radius:.6rem;background:#fff}details[open]>summary{margin-bottom:.5rem}details details{margin:.9rem 0}header{margin:1rem 0 1.8rem}.course-nav{display:flex;flex-wrap:wrap;gap:1rem 2rem;margin:auto;padding:1rem;max-width:1480px;font-size:.95rem}#textbook-app{max-width:1480px;margin:0 auto;padding:0 1rem 3rem}main>section>button{display:block;margin:1rem 0;width:100%;max-width:48rem}.textbook-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:1.4rem;align-items:start}.textbook-main,.textbook-help{min-width:0}.textbook-main{background:#fff;border:1px solid var(--line);border-radius:1rem;padding:clamp(1rem,2vw,1.8rem)}.textbook-condition{font-size:1.1rem}.textbook-goal{font-weight:650;border-left:4px solid var(--green);padding-left:.9rem}.textbook-model{width:100%;min-height:280px;margin:1.1rem 0}.textbook-model .am-svg{min-height:280px}.textbook-step{margin:1.5rem 0;padding:1rem 0;border-top:1px solid var(--line)}.course-note,.course-conflict{background:#fff7df;border:1px solid #dbb75a;border-radius:.7rem;padding:1rem}.course-alerts:empty{display:none}.course-alerts>p{background:#fff7df;padding:.8rem}.course-conflict textarea{min-height:8rem}.theory-dialog{width:min(900px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:clamp(1rem,3vw,2rem);border:1px solid #92ae9e;border-radius:1rem;color:inherit;background:#fff;box-shadow:0 1rem 5rem #173c2f33}.theory-dialog::backdrop{background:#173c2f80}.theory-dialog>button:first-child{position:sticky;top:0;z-index:2;background:#e2f0e6}.stereo-fraction{display:inline-flex;vertical-align:middle;flex-direction:column;text-align:center;line-height:1.15;margin:0 .12em;font-size:.98em}.stereo-numerator{padding:.05em .18em .12em;border-bottom:1.5px solid currentColor}.stereo-denominator{padding:.12em .18em .05em}.textbook-help>details{margin-top:0}.catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem 1rem;max-width:70rem}.catalog-filters>label[for=catalog-search],.catalog-filters>input{grid-column:1/-1;margin-bottom:0}.catalog-results article{margin:1.2rem 0;padding:1rem 0;border-bottom:1px solid var(--line)}.catalog-results article>p{font-size:.9rem;margin:.5rem 0}.catalog-results nav{display:flex;align-items:center;justify-content:center;gap:1rem;margin:1rem 0}.catalog-results [data-catalog-pending]{background:#f0f2ef;color:#425147}@media(max-width:850px){.textbook-layout,.catalog-filters{grid-template-columns:1fr}.textbook-help{order:2}.textbook-main{padding:1rem}.textbook-model{min-height:260px}#textbook-app{padding:0 .65rem 2rem}.course-nav{padding:.8rem}.theory-dialog{width:calc(100vw - 1rem);padding:.8rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* The shared last-child rule has greater specificity than .task-scene .am-expand. */
.textbook-model .am-controls .am-button.am-expand{flex-basis:100%;}
