@font-face{font-family:CourseSans;src:url('course-sans.woff') format('woff');font-display:swap;font-weight:400}
:root{--navy:#12213e;--ink:#25344b;--teal:#007d78;--blue:#426c9b;--muted:#52657b;--line:#d9e2eb;--cloud:#f3f7fb;--orange:#d18b2c;--z-header:3;--z-modal:10;--z-tooltip:20;--z-toast:30;color-scheme:light}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#edf1f5;font-family:CourseSans,'Microsoft YaHei',sans-serif;height:100dvh;display:grid;grid-template-rows:60px minmax(0,1fr) 52px}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:transparent}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #007d78;outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}button,select{touch-action:manipulation}button:hover:not(:disabled){background:#eaf2f5}button.solid:hover:not(:disabled){background:#00605d}[hidden]{display:none!important}
.app-header{background:white;display:flex;align-items:center;gap:20px;padding:0 24px;border-bottom:1px solid var(--line);z-index:var(--z-header)}.brand{display:flex;align-items:center;gap:9px;font-size:14px;white-space:nowrap}.brand-mark{display:grid;place-items:center;background:var(--navy);color:white;border-radius:4px;font:22px Georgia;width:32px;height:32px}.brand-divider{color:var(--muted);padding:0 8px}.brand strong{font-weight:600}.chapter-nav{display:flex;justify-content:center;align-self:stretch;flex:1;gap:2px}.chapter-nav button{border-bottom:3px solid transparent;padding:0 10px;color:var(--muted);font-size:14px}.chapter-nav button.active{color:var(--teal);border-color:var(--teal)}.app-actions{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:14px}.app-actions button,.app-actions a{padding:10px 7px}.app-actions .lab-link{color:var(--teal)}
#lesson{min-height:0;display:flex;align-items:stretch;justify-content:center;padding:16px 20px;overflow:auto}.lesson-page{width:min(1460px,100%);flex-shrink:0;align-self:stretch}.lesson-page[hidden]{display:none!important}.page-surface{min-height:100%;background:white;position:relative;display:flex;flex-direction:column;padding:25px 34px 14px;overflow:visible}.page-heading{flex-shrink:0}.eyebrow{font-size:14px;color:var(--teal);font-weight:600;display:flex;align-items:center;gap:14px;line-height:1.5;letter-spacing:0}.depth-label{font-size:12px;color:var(--muted);font-weight:400;border:1px solid var(--line);padding:2px 8px;border-radius:4px}.page-heading h2{font-size:34px;line-height:1.3;color:var(--navy);margin:7px 0 9px;font-weight:700;letter-spacing:-.025em}.page-intro{font-size:18px;line-height:1.6;color:var(--muted)}.lesson-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:36px;align-items:center;flex:1;min-height:0;padding:17px 0}.lesson-visual{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:9px}.key-points{display:flex;flex-direction:column;gap:19px}.point{padding:0}.point h3{color:var(--navy);font-size:21px;line-height:1.45;margin-bottom:5px}.point p{font-size:20px;line-height:1.65;color:var(--ink)}.lesson-layout.no-visual{grid-template-columns:1fr}.no-visual .key-points{display:grid;grid-template-columns:repeat(3,1fr);gap:38px}.no-visual .point{padding:24px 0;border-top:1px solid var(--line)}.no-visual .point h3{font-size:27px;margin-bottom:16px}.no-visual .point p{font-size:22px;line-height:1.85}
.layout-focus .lesson-layout{display:block}.layout-focus .key-points{display:none}.layout-focus .lesson-visual{height:100%;justify-content:center}.layout-table .lesson-layout{grid-template-columns:1fr;gap:20px}.layout-table .key-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.layout-table .point p{font-size:18px;line-height:1.65}.layout-table .point h3{font-size:20px}
.lesson-takeaway{border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}.lesson-takeaway>p{font-size:20px;color:var(--navy);font-weight:600;line-height:1.55;max-width:75ch}.page-tools{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}.page-tools button{color:var(--teal);font-size:14px;padding:9px 12px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.page-foot{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px;margin-top:15px;line-height:1.5}.page-notes{display:none}.app-footer{display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:white;position:relative;border-top:1px solid var(--line)}.footer-section{font-size:13px;color:var(--muted);width:180px}.page-navigation{display:flex;align-items:center;gap:25px;font-size:14px}.page-navigation button{padding:10px}#page-count{font-variant-numeric:tabular-nums;color:var(--navy);font-size:16px;min-width:65px;text-align:center}.footer-help{font-size:12px;color:var(--muted);width:180px;text-align:right}.progress-track{position:absolute;bottom:0;left:0;right:0;height:3px;background:#e7edf3}#progress{height:100%;background:var(--teal)}
.cover{padding:0;color:white;overflow:hidden;min-height:540px}.cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cover-shade{position:absolute;inset:0;background:linear-gradient(90deg,#091b30f2 0%,#091b30b0 45%,#091b3010 85%)}.cover-copy{position:relative;padding:44px 54px;min-height:100%;display:flex;align-items:flex-start;flex-direction:column;flex:1}.cover .eyebrow{color:#d0ede9;font-size:20px}.cover h1{font:96px/1.15 Georgia,serif;margin-top:68px;letter-spacing:-.03em}.cover h2{font-size:38px;margin:18px 0 22px}.cover-copy>p:not(.eyebrow){font-size:20px;color:#e4ecf5}.cover-bottom{margin-top:auto;padding-top:35px;font-size:18px;line-height:1.9}.cover-bottom span{font-size:16px;color:#c7d8e5}.page-number{position:absolute;bottom:18px;right:32px;color:#d0dfe9;font-size:13px}
.chart-scroll{width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}.chart{display:block;width:100%;height:auto;max-height:300px;overflow:visible}.chart text{font-family:CourseSans,'Microsoft YaHei',sans-serif;font-size:24px;fill:var(--muted)}.chart text.value{font-size:25px;fill:var(--navy);font-weight:600}.chart text.xlabel{font-size:24px;fill:var(--ink)}.chart text.sample{font-size:22px}.chart text.heat-value{font-size:32px;fill:var(--navy);font-weight:600}.gridline{stroke:#dfe6ed;stroke-width:1}.plot-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:5px}.plot-controls label{font-size:16px;color:var(--muted);display:flex;flex-direction:column;gap:4px}.plot-controls select{color:var(--navy);font-size:16px;border:1px solid var(--line);border-radius:4px;background:white;padding:7px 10px;max-width:220px}.plot-controls .check{flex-direction:row;align-items:center;padding:9px 0;font-size:16px}.plot-controls input[type=range]{width:180px;accent-color:var(--teal);height:30px}.plot-controls input[type=checkbox]{accent-color:var(--teal);width:18px;height:18px}.reset-plot,.plot-controls>button{font-size:15px;border:1px solid var(--line);border-radius:4px;padding:8px 12px;color:var(--muted)}.plot-status,.plot-inspect{font-size:16px;line-height:1.65;color:var(--muted);margin-top:5px}.plot-inspect{background:var(--cloud);padding:10px 14px;color:var(--navy)}.plot-appendix{font-size:16px;color:var(--muted);margin-top:9px}.plot-appendix summary{cursor:pointer;color:var(--teal);padding:6px 0}.plot-appendix[open]{padding-bottom:12px}.plot-appendix .visual-table{margin-top:10px;font-size:16px}.plot-appendix .visual-table td,.plot-appendix .visual-table th{padding:7px 12px}
.concept-diagram{display:flex;flex-direction:column;gap:13px}.concept-diagram>div{padding:15px 20px;background:var(--cloud);position:relative}.concept-diagram span{font-size:16px;color:var(--teal);margin-right:12px}.concept-diagram strong{font-size:23px;color:var(--navy)}.concept-diagram p{font-size:20px;line-height:1.65;margin-top:6px}.history-art{position:relative}.history-art img{width:100%;height:280px;object-fit:cover;object-position:right}.history-art>div{position:absolute;left:24px;bottom:20px;display:flex;flex-direction:column;color:white;text-shadow:0 1px 3px #000}.history-art b{font:56px Georgia}.history-art span{font-size:18px}.agenda-list{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.agenda-list>div{display:flex;gap:10px;border-bottom:1px solid var(--line);padding:14px 0;align-items:center}.agenda-list span{font-size:14px;color:var(--teal)}.agenda-list b{font-size:20px;font-weight:500}.agenda-list em{font-size:16px;font-style:normal;color:var(--muted);margin-left:auto}.dataset-tiles{display:flex;flex-direction:column;gap:15px}.dataset-tiles>div{padding:20px;background:var(--cloud)}.dataset-tiles small{font-size:17px;color:var(--muted)}.dataset-tiles b{display:block;font-size:46px;color:var(--navy);line-height:1.4}.dataset-tiles b span{font-size:27px}.dataset-tiles p{font-size:18px}
.table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain}.visual-table{width:100%;border-collapse:collapse;font-size:19px;line-height:1.6}.visual-table th{text-align:left;background:var(--cloud);font-size:17px;color:var(--muted);font-weight:600}.visual-table td,.visual-table th{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle}.raw-table{border-collapse:collapse;font-size:16px;white-space:nowrap;line-height:1.8;width:100%}.raw-table th{background:var(--cloud);text-align:left;font-size:16px}.raw-table td,.raw-table th{padding:14px 12px;border-bottom:1px solid var(--line)}.raw-table td:nth-child(4){max-width:240px;overflow:hidden;text-overflow:ellipsis}.raw-table tr.selected-record{background:#e1f1ee}.balance-track{display:flex;height:68px;border-radius:4px;overflow:hidden}.balance-track>div{display:flex;align-items:center;justify-content:center;background:#ced9e6;color:var(--navy);font-size:22px}.balance-track>div:last-child{color:white;background:var(--teal)}.giant-stat{font-size:96px;line-height:1.5;color:var(--teal);text-align:center;font-weight:700;letter-spacing:-.03em}.giant-stat small{font-size:38px}.formula-row{display:flex;align-items:center;justify-content:space-around;padding:12px 0;gap:20px}.formula-row>div{font-size:32px;color:var(--navy)}.formula-row small{display:block;font-size:16px;color:var(--muted)}.equations{display:flex;flex-direction:column;gap:19px;padding:16px;font-family:Georgia,CourseSans,serif;font-size:30px;color:var(--navy)}.teal{color:var(--teal)}.stat-line{display:flex;justify-content:space-between;font-size:18px;margin-top:20px;gap:18px}.stat-line b{color:var(--teal)}.prob-examples{display:flex;flex-direction:column;gap:16px;padding:14px}.prob-examples>div{display:flex;gap:28px;align-items:center;font-size:30px}.prob-examples strong{font-size:38px;color:var(--teal)}.code-preview{background:var(--navy);color:#e1f2ed;padding:20px;border-radius:5px;font:16px/1.65 ui-monospace,monospace;overflow:auto;white-space:pre;margin:0}.solid{background:var(--teal);color:white;padding:10px 16px;border-radius:4px}.lesson-visual>.solid{font-size:17px;align-self:flex-start}.assignment-links{display:flex;flex-direction:column;gap:16px}.assignment-links a{border-bottom:1px solid var(--line);padding:14px 0;color:var(--teal);font-size:21px}.empty{font-size:18px;padding:20px;color:var(--muted)}
.sample-account{display:flex;gap:28px;padding:8px 0 12px;flex-wrap:wrap;font-size:17px;color:var(--muted)}.sample-account b{font-size:23px;color:var(--navy);margin-left:7px}.missing-track{display:block;width:100%;min-width:100px;height:16px;background:#dce6ee}.missing-track i{display:block;height:100%;background:var(--orange)}.before-after,.worked-model,.loss-layout,.odds-layout,.regularization-layout,.code-lesson{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.before-after h3,.worked-record h3,.loss-calculation h3,.odds-layout h3,.regularization-layout h3,.code-reading h3{font-size:23px;color:var(--navy);margin-bottom:12px}.before-after .chart{max-height:270px}.worked-record{padding:24px;background:var(--cloud)}.worked-record p,.odds-layout section>p,.regularization-layout p,.code-reading p{font-size:20px;line-height:1.8}.worked-record p+p,.regularization-layout p+p,.code-reading p+p{margin-top:8px}.score-table{max-width:850px;margin:auto}.score-table td:last-child{font-variant-numeric:tabular-nums}.score-table tr:last-child{font-weight:700;background:#e4f2ef}.probability-work{font-size:26px;line-height:2;padding:10px 24px}.probability-work strong{font-size:36px;color:var(--teal)}.loss-calculation p{font-size:22px;line-height:1.8}.loss-calculation h3:not(:first-child){margin-top:18px}.loss-formula{font-family:Georgia,CourseSans,serif;font-size:26px;text-align:center;margin-top:20px}.regularization-layout p{max-width:38ch}.code-lesson{grid-template-columns:1.55fr 1fr}.code-lesson .code-preview{font-size:16px;line-height:1.6}.calibration-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;align-items:center}.calibration-layout .visual-table{font-size:18px}.calibration-layout .chart{max-height:310px}.calibration-layout .chart text{font-size:22px}
.threshold-main{display:grid;grid-template-columns:1.4fr .8fr .85fr;gap:27px;align-items:center}.matrix{width:100%;border-spacing:4px;text-align:center;font-size:16px}.matrix caption{text-align:left;font-size:17px;line-height:1.6;margin-bottom:8px;color:var(--navy)}.matrix th{font-size:16px;color:var(--muted);font-weight:400;white-space:nowrap}.matrix td{background:#e2f2ef;padding:11px}.matrix td.error{background:#f8ecd9}.matrix td b{display:block;font-size:36px;color:var(--navy);margin-top:3px}.metric-stack{display:flex;flex-direction:column;gap:14px}.metric-stack>div{font-size:16px}.metric-stack b{display:block;font-size:28px;color:var(--teal);margin-top:4px}.passenger-decision{background:var(--cloud);padding:18px;font-size:17px;line-height:1.75}.passenger-decision h3{font-size:22px;margin-bottom:9px;color:var(--navy)}.passenger-decision strong{color:var(--teal)}.decision-result{margin-top:10px}.decision-result b{font-size:25px}.threshold-main+.chart-scroll .chart{max-height:112px}.leak-summary{font-size:28px;padding:17px 0;color:var(--navy)}
dialog{border:1px solid var(--line);border-radius:8px;max-height:90dvh;color:var(--ink);background:white;padding:26px;z-index:var(--z-modal)}dialog::backdrop{background:#0b1b3199}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.dialog-heading h2{font-size:25px;color:var(--navy)}.dialog-heading button{font-size:16px;color:var(--muted);padding:10px;flex-shrink:0}#outline-dialog{width:min(980px,92vw)}.outline-search{display:flex;align-items:center;gap:18px;font-size:16px}.outline-search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:4px;padding:11px;font-size:17px}.outline-search input::placeholder{color:var(--muted)}#outline-empty{padding:22px 0;color:var(--muted)}.outline-group{margin:25px 0}.outline-group>h3{font-size:20px;color:var(--navy);display:flex;align-items:center;gap:20px}.outline-group small{font-size:14px;color:var(--muted);font-weight:400}.outline-pages{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px;margin-top:10px}.outline-pages button{display:flex;align-items:center;gap:12px;text-align:left;font-size:16px;padding:11px;border-radius:4px;line-height:1.6}.outline-pages button>span{color:var(--muted);font-size:14px}.outline-pages small{margin-left:auto;white-space:nowrap;font-size:12px;color:var(--teal)}#notes-dialog{width:min(900px,92vw)}#note-body{font-size:18px;line-height:1.9}#note-body p+p{margin-top:18px}.reading-points{margin-bottom:24px;display:grid;gap:16px}.reading-points h3{font-size:20px;color:var(--navy);margin-bottom:5px}.reading-points p{font-size:18px;line-height:1.8}#plot-dialog{width:min(1450px,96vw)}#expanded-plot{padding:12px;min-width:0}#expanded-plot .chart{max-height:58dvh}#tooltip{position:fixed;z-index:var(--z-tooltip);pointer-events:none;max-width:340px;background:var(--navy);color:white;font-size:16px;line-height:1.7;padding:10px 14px;border-radius:4px}#notification{position:fixed;bottom:75px;left:50%;transform:translateX(-50%);z-index:var(--z-toast);background:var(--navy);color:white;font-size:16px;line-height:1.7;border-radius:4px}#notification:not(:empty){padding:12px 20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.text-link{color:var(--teal);font-size:inherit;padding:0;text-decoration:underline}
.reading{height:auto;display:block}.reading .app-header{position:sticky;top:0;height:60px}.reading #lesson{display:block;padding:35px 20px}.reading .lesson-page{width:min(1120px,100%);margin:0 auto 42px;scroll-margin-top:80px;background:white}.reading .page-surface{min-height:0;padding:36px 48px 22px}.reading .page-heading h2{font-size:32px}.reading .lesson-layout{display:block;padding:24px 0}.reading .key-points{display:none}.reading .page-notes{display:block;padding:25px 48px 38px}.reading .page-notes>h3{font-size:22px;color:var(--teal);margin-bottom:20px}.reading .page-notes p{font-size:18px;line-height:1.85;max-width:75ch}.reading .page-notes>p+p{margin-top:18px}.reading .page-notes .reading-points h3{font-size:21px}.reading .app-footer{display:none}.reading .cover{min-height:560px}.reading .page-tools [data-notes]{display:none}
@media(min-width:1600px) and (min-height:850px){.page-surface{padding:35px 48px 22px}.page-heading h2{font-size:38px}.point p{font-size:23px}.point h3{font-size:25px}.chart{max-height:380px}.plot-status{font-size:18px}.lesson-takeaway>p{font-size:23px}.visual-table{font-size:22px}.visual-table th{font-size:20px}.visual-table td,.visual-table th{padding:14px 18px}.plot-controls label,.plot-controls select{font-size:18px}.chart text{font-size:25px}}
@media(max-width:1200px){.app-header{padding:0 14px;gap:12px}.brand>span:last-child{display:none}.chapter-nav button{padding:0 9px}.app-actions{font-size:13px}.app-actions button,.app-actions a{padding:9px 5px}.page-surface{padding:23px 28px 14px}.lesson-layout{gap:26px}.point p{font-size:20px}.page-heading h2{font-size:32px}.page-tools{gap:5px}.page-tools button{padding:8px;font-size:13px}.threshold-main{gap:18px;grid-template-columns:1.5fr 1fr}.passenger-decision{grid-column:1/-1;display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:12px 16px}.passenger-decision p,.passenger-decision h3{margin:0}.code-lesson{grid-template-columns:1.5fr 1fr}.code-reading p{font-size:18px}}
@media(max-width:1024px){body{height:auto;min-height:100dvh;display:block}.app-header{position:sticky;top:0;height:58px;justify-content:space-between}.chapter-nav{display:none}.brand>span:last-child{display:inline;font-size:13px}.brand-divider,.brand strong{display:none}.app-actions{font-size:14px;gap:4px}#lesson{display:block;padding:18px 18px 85px;overflow:visible}.lesson-page{width:100%}.page-surface{min-height:calc(100dvh - 165px);padding:28px}.lesson-layout{display:flex;flex-direction:column;align-items:stretch;gap:28px;padding:25px 0}.lesson-visual{gap:12px}.key-points{gap:22px}.point p{font-size:20px}.no-visual .key-points{display:flex;flex-direction:column;gap:20px}.no-visual .point{padding:18px 0}.no-visual .point p{font-size:21px}.lesson-takeaway{display:block}.page-tools{margin-top:15px;gap:10px}.page-tools button{font-size:15px;padding:10px 13px}.page-foot{margin-top:24px}.app-footer{position:fixed;bottom:0;left:0;right:0;height:58px;z-index:var(--z-header);padding:0 20px}.footer-section{width:auto}.footer-help{display:none}.chart{max-height:360px}.layout-table .key-points{display:grid}.layout-table .point p{font-size:18px}.before-after,.worked-model,.loss-layout,.odds-layout,.regularization-layout,.code-lesson,.calibration-layout{grid-template-columns:1fr;gap:22px}.before-after{grid-template-columns:1fr 1fr;gap:18px}.before-after h3{font-size:20px}.code-reading p{font-size:19px}.calibration-layout .chart{max-height:330px}.threshold-main{grid-template-columns:1.4fr 1fr}.cover-copy{padding:38px 40px}.cover h1{font-size:90px}.cover h2{font-size:34px}.cover .eyebrow{font-size:19px}.reading .app-header{height:58px}.reading .page-surface{padding:28px}.reading .page-notes{padding:24px 28px 32px}.reading .lesson-page{margin-bottom:25px}.reading #lesson{padding:20px 18px}.reading .cover{padding:0}}
@media(max-width:600px){.brand>span:last-child{display:none}.brand-mark{width:28px;height:28px;font-size:20px}.app-header{padding:0 12px;gap:8px}.app-actions{font-size:13px;gap:0}.app-actions button,.app-actions a{padding:10px 6px}.app-actions .lab-link{font-size:0}.app-actions .lab-link:after{content:'Python ↗';font-size:13px}#fullscreen-button{display:none}#lesson{padding:12px 10px 78px}.page-surface{padding:24px 20px 18px}.eyebrow{font-size:13px}.page-heading h2{font-size:28px;line-height:1.4;letter-spacing:-.015em;margin:10px 0}.page-intro{font-size:17px;line-height:1.7}.lesson-layout{gap:25px;padding:23px 0}.point h3{font-size:21px}.point p{font-size:18px;line-height:1.8}.no-visual .point h3{font-size:24px}.no-visual .point p{font-size:19px}.lesson-takeaway>p{font-size:19px;line-height:1.7}.page-tools{gap:7px}.page-tools button{font-size:14px;padding:10px}.page-foot{font-size:11px;gap:12px}.footer-section{font-size:11px}.app-footer{padding:0 12px}.page-navigation{gap:9px;font-size:13px}.page-navigation button{padding:12px 3px}#page-count{font-size:14px}.layout-table .key-points{grid-template-columns:1fr;gap:20px}.layout-table .point p{font-size:18px}.chart{min-width:580px;max-height:none}.chart-scroll:after{content:'横向滑动查看完整图表，或点击“放大图表”';display:block;font-size:13px;color:var(--muted);padding-top:10px;position:sticky;left:0;width:calc(100vw - 65px)}.plot-controls{gap:10px}.plot-controls select{max-width:185px;font-size:16px}.plot-controls label{font-size:15px}.plot-controls input[type=range]{width:155px}.plot-controls .check{font-size:16px}.plot-status,.plot-inspect{font-size:16px}.concept-diagram strong{font-size:21px}.concept-diagram p{font-size:18px}.concept-diagram>div{padding:17px}.concept-diagram span{font-size:14px}.history-art img{height:235px}.history-art b{font-size:44px}.history-art span{font-size:16px}.agenda-list{grid-template-columns:1fr}.agenda-list b{font-size:19px}.dataset-tiles b{font-size:44px}.dataset-tiles p{font-size:17px}.visual-table{font-size:17px;min-width:520px}.visual-table th{font-size:15px}.visual-table td,.visual-table th{padding:10px 12px}.missing-summary{min-width:540px}.raw-table{font-size:16px}.raw-table th{font-size:15px}.before-after{grid-template-columns:1fr}.before-after .chart{max-height:none}.sample-account{gap:12px 20px;font-size:15px}.sample-account b{font-size:22px}.worked-record{padding:19px}.worked-record p,.odds-layout section>p,.regularization-layout p,.code-reading p{font-size:18px}.equations{font-size:24px;gap:18px;padding:10px}.probability-work{padding:5px;font-size:21px;line-height:1.9}.probability-work strong{font-size:29px}.loss-formula{font-size:20px;text-align:left;line-height:1.7;overflow-wrap:anywhere}.loss-calculation p{font-size:19px}.code-preview{font-size:16px}.threshold-main{display:flex;flex-direction:column;align-items:stretch;gap:22px}.matrix{min-width:0;font-size:14px;border-spacing:3px}.matrix th{white-space:normal;font-size:14px}.matrix caption{font-size:16px}.matrix td{padding:9px 6px}.matrix td b{font-size:32px}.metric-stack{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.metric-stack>div{font-size:13px}.metric-stack b{font-size:24px}.passenger-decision{display:block;font-size:17px}.passenger-decision h3{margin-bottom:8px}.passenger-decision p+p{margin-top:5px}.threshold-main+.chart-scroll .chart{max-height:none}.calibration-layout .chart{max-height:none}.calibration-layout .visual-table{min-width:420px}.leak-summary{font-size:24px}.assignment-links a{font-size:19px}.balance-track>div{font-size:17px}.cover{min-height:640px}.cover-copy{padding:35px 28px}.cover h1{font-size:72px;margin-top:105px}.cover h2{font-size:29px}.cover-copy>p:not(.eyebrow){font-size:17px;line-height:1.8}.cover-bottom{font-size:16px}.cover-bottom span{font-size:14px}.page-number{font-size:11px;right:20px}.cover>img{object-position:65% center}.cover-shade{background:linear-gradient(90deg,#091b30ed,#091b3099 60%,#091b3020)}dialog{padding:20px;max-height:92dvh}.dialog-heading h2{font-size:22px}.dialog-heading button{font-size:15px;padding:8px}.outline-pages{grid-template-columns:1fr}.outline-pages button{font-size:16px}.outline-search{display:block}.outline-search input{width:100%;margin-top:8px}.reading #lesson{padding:12px 10px}.reading .page-surface{padding:24px 20px 18px}.reading .cover{padding:0}.reading .page-heading h2{font-size:28px}.reading .page-notes{padding:24px 20px 30px}.reading .page-notes p{font-size:18px}.reading .cover{min-height:640px}#expanded-plot{padding:0}#expanded-plot .chart{max-height:none}.lesson-visual:has(>.visual-table){overflow-x:auto}.loss-layout:has(>.visual-table),.regularization-layout:has(>.visual-table),.odds-layout>section{min-width:0;overflow-x:auto}}
@media print{body{display:block!important;height:auto;background:white}.app-header,.app-footer,dialog,#tooltip,#notification,.page-tools{display:none!important}#lesson,.reading #lesson{display:block;padding:0}.lesson-page,.lesson-page[hidden],.reading .lesson-page{display:block!important;width:100%;margin:0;break-after:page}.page-surface,.reading .page-surface{min-height:0;padding:20px 25px;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}.page-heading h2{font-size:27px}.lesson-layout{display:block;padding:16px 0}.lesson-layout .key-points{display:none!important}.page-notes,.reading .page-notes{display:block;padding:12px 25px 22px}.page-notes p,.reading .page-notes p,.reading-points p{font-size:13px;line-height:1.75}.page-notes h3,.reading-points h3{font-size:15px}.page-notes>p+p{margin-top:10px}.reading-points{gap:10px}.plot-controls,.plot-appendix,.chart-scroll:after{display:none}.chart-scroll,.table-scroll{overflow:visible}.chart{min-width:0;max-height:270px;width:100%}.visual-table{min-width:0;font-size:14px}.visual-table th{font-size:13px}.plot-status{font-size:13px}.lesson-takeaway>p{font-size:16px}.page-foot{font-size:10px}.before-after,.worked-model,.loss-layout,.odds-layout,.regularization-layout,.code-lesson,.calibration-layout{grid-template-columns:1fr 1fr}.equations{font-size:24px}.threshold-main{display:grid;grid-template-columns:1.4fr .8fr .85fr;gap:16px}.passenger-decision{display:block}.cover,.reading .cover{min-height:550px}.cover-copy{padding:35px 45px}.cover h1{font-size:85px;margin-top:60px}.cover h2{font-size:34px}.cover-bottom{font-size:16px}@page{size:A4 landscape;margin:8mm}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(min-width:1025px) and (max-height:820px){
 .page-surface{padding:18px 28px 10px}.page-heading h2{font-size:32px;margin:6px 0 7px}.page-intro{font-size:18px}.lesson-layout{padding:12px 0;gap:28px}.lesson-visual{gap:6px}.chart{max-height:240px}.plot-controls{margin-bottom:2px;gap:10px}.plot-status{font-size:16px;line-height:1.55;margin-top:3px}.page-foot{margin-top:8px}.lesson-takeaway{padding-top:10px}.page-tools button{padding:8px 10px}.visual-table td,.visual-table th{padding:7px 12px}.visual-table{font-size:18px}.point p{font-size:20px;line-height:1.55}.key-points{gap:15px}.point h3{font-size:21px;margin-bottom:4px}.code-lesson .code-preview{font-size:16px;line-height:1.45;padding:14px}.threshold-main+.chart-scroll .chart{max-height:85px}.matrix td{padding:8px}.matrix td b{font-size:32px}.metric-stack{gap:10px}.passenger-decision{padding:14px}.before-after .chart{max-height:225px}.calibration-layout .chart{max-height:270px}.worked-record{padding:18px}.loss-calculation p{font-size:20px}.loss-calculation h3:not(:first-child){margin-top:10px}.loss-formula{margin-top:12px}.probability-work{line-height:1.75}.sample-account{padding:3px 0 8px}
}
@media(min-width:1025px) and (max-height:820px){.lesson-layout{padding:10px 0}.plot-controls:has(input[type=range]) label{flex-direction:row;align-items:center;gap:12px}.matrix td{font-size:15px;line-height:1.3;padding:6px 8px}.matrix td b{line-height:1.1;margin-top:4px}.metric-stack b{line-height:1.15}.metric-stack>div{line-height:1.5}.passenger-decision{line-height:1.5}.passenger-decision h3{line-height:1.35}.decision-result b{line-height:1.1}.plot-appendix{margin-top:5px}}
@media(min-width:1025px) and (max-height:820px){.raw-table{font-size:16px;line-height:1.6}.raw-table td,.raw-table th{padding:8px 12px}}
@media(min-width:1025px){.layout-table .key-points:has(>.point:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}}
.plot-output,.before-after>section{min-width:0;max-width:100%}.plot-output{overflow-x:auto;overscroll-behavior-x:contain}.historical-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:32px;align-items:center}.historical-layout figure{margin:0}.historical-layout img{width:100%;height:235px;object-fit:cover;object-position:right}.historical-layout figcaption{font-size:14px;color:var(--muted);line-height:1.7;margin-top:8px}.historical-layout h3{font-size:24px;color:var(--navy);margin-bottom:14px}.historical-layout p{font-size:20px;line-height:1.8;margin-top:15px}.historical-layout .text-link{font-size:17px;margin-top:13px;display:inline-block}@media(max-width:1024px){.historical-layout{grid-template-columns:1fr}.historical-layout>section{min-width:0;overflow-x:auto}.historical-layout img{height:260px}}@media(max-width:600px){.historical-layout img{height:210px}.historical-layout p{font-size:18px}}
.chart text.sample{font-size:24px}@media(max-width:600px){.chart{min-width:760px}}@media print{.chart{min-width:0}[data-code]{display:none!important}}
p{overflow-wrap:anywhere}
