:root{--paper:#fafaf7;--surface:#fff;--ink:#222d29;--muted:#59655e;--line:#d6ddd6;--accent:#315a49;--wash:#edf2ec;--sans:system-ui,-apple-system,"Segoe UI","Noto Sans CJK TC","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;--serif:"Noto Serif CJK TC","Noto Serif TC","Songti TC",Georgia,serif;--mono:ui-monospace,"Cascadia Code",Consolas,monospace}
*{box-sizing:border-box}html{scroll-behavior:auto}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.75}button,input,textarea{font:inherit}a{color:var(--accent);text-underline-offset:4px}a:hover{text-decoration-thickness:2px}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,.button{border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:9px 16px;min-height:44px;border-radius:3px;font-size:14px;line-height:1.5;text-decoration:none}button:hover,.button:hover{border-color:var(--accent);background:var(--wash)}.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.primary:hover{background:#244636;color:#fff}p{margin:0 0 14px}h1,h2,h3{line-height:1.5;font-weight:600;margin:0 0 16px}h1{font-family:var(--serif);font-size:36px;letter-spacing:.015em}h2{font-size:23px}h3{font-size:18px}.muted,.hint{color:var(--muted)}.hint{font-size:14px}.eyebrow,.step-label{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.11em;color:var(--muted);text-transform:uppercase}.step-label{margin-bottom:8px}.skip-link{position:absolute;top:-100px;left:16px;z-index:10;padding:12px;background:#fff}.skip-link:focus{top:12px}.wrap{width:min(1160px,calc(100% - 64px));margin-inline:auto}.site-header{border-bottom:1px solid var(--line);background:var(--paper)}.header-inner{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:82px}.brand{color:var(--ink);text-decoration:none;font-size:17px;font-weight:650;letter-spacing:.01em}.brand span{display:block;font-size:11px;letter-spacing:.12em;color:var(--muted);font-family:var(--mono);line-height:1.4}nav{display:flex;gap:28px;align-items:center}nav a{font-size:14px;text-decoration:none;color:var(--muted);padding-block:12px}nav a[aria-current=page]{color:var(--accent);text-decoration:underline}footer{margin-top:56px;border-top:1px solid var(--line);padding:24px 0 28px;font-size:12px;color:var(--muted)}.footer-inner{display:flex;justify-content:space-between;gap:20px}.hero{padding:48px 0 34px;display:grid;grid-template-columns:1fr 300px;gap:60px;align-items:center}.hero h1{font-size:38px;line-height:1.65;margin-top:14px}.hero p{max-width:620px;color:var(--muted)}.hero-figure{width:100%;max-height:218px}.hero-figure path{fill:none;stroke:var(--accent);stroke-width:2}.hero-figure line{stroke:var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-top:1px solid var(--ink);padding-top:19px;margin-bottom:10px}.section-heading h2{font-size:18px;margin:0}.module-row{display:grid;grid-template-columns:45px 1fr 160px;gap:24px;padding:25px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);align-items:center}.module-row:hover{background:var(--wash);text-decoration:none}.module-index{align-self:start;font-family:var(--mono);font-size:14px;padding-top:5px;color:var(--muted)}.module-row h3{font-size:22px;margin-bottom:4px}.module-row p{color:var(--muted);margin-bottom:6px}.module-meta{font-size:13px;color:var(--muted)}.module-go{text-align:right;font-size:14px}.method-strip{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:28px 0 0}.method-strip h3{font-size:15px;margin-bottom:6px}.method-strip p{font-size:14px;color:var(--muted)}.breadcrumb{font-size:13px;color:var(--muted);padding-top:23px;margin-bottom:17px}.lab-title{display:flex;justify-content:space-between;align-items:start;gap:24px;margin-bottom:22px}.lab-title h1{font-size:31px;margin:5px 0 7px}.lab-title p{margin:0;color:var(--muted)}.lab-meta{font-size:13px;white-space:nowrap;padding-top:13px;color:var(--muted)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;border-block:1px solid var(--line);padding:12px 0;margin-bottom:24px}.levels{display:flex;gap:4px}.level-button{border-color:transparent;background:transparent;min-width:74px}.level-button[aria-pressed=true]{background:var(--accent);color:#fff}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.toolbar-actions button{font-size:13px;padding:8px 12px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:40px;align-items:start}.task h2{font-size:18px;margin-bottom:10px}.task p{font-size:14px;margin-bottom:10px}.task ol{font-size:14px;padding-left:22px;margin:0 0 14px}.task li{padding-left:2px;margin-bottom:5px}.prediction-block{margin-top:20px}.field-label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}textarea{display:block;width:100%;resize:vertical;min-height:100px;background:var(--surface);border:1px solid var(--line);border-radius:3px;padding:12px;color:var(--ink);font-size:15px;line-height:1.7}textarea::placeholder{color:#67726b}input[type=number],input[type=text]{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:3px;min-height:42px;padding:6px 9px;width:90px;font-family:var(--mono)}input[aria-invalid=true]{outline:2px solid #833a30}input[type=range]{accent-color:var(--accent);width:100%;min-height:32px;cursor:pointer}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px;margin:0;flex-shrink:0}.control-panel{border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.control-row{margin-bottom:15px}.control-label{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin-bottom:2px}.control-label var{font-family:var(--serif);font-size:19px}.control-endpoints{display:flex;justify-content:space-between;color:var(--muted);font-family:var(--mono);font-size:11px;line-height:1}.check-line{display:flex;gap:9px;align-items:flex-start;font-size:14px;margin:12px 0}.check-line input{margin-top:4px}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}.button-row button{font-size:13px;flex:1 0 auto}.text-button{background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;padding:5px;min-height:44px;color:var(--muted)}.plot-panel{background:#fff;border:1px solid var(--line);padding:20px 20px 10px;border-radius:4px}.plot-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.equation{font-family:var(--serif);font-size:23px;line-height:1.5}.plot-kicker{font-size:12px;color:var(--muted)}svg.plot{width:100%;height:auto;display:block;overflow:hidden}.grid-line{stroke:#e9ece7;stroke-width:1}.axis-line{stroke:#89958c;stroke-width:1.2}.tick{font-family:var(--mono);font-size:13px;fill:var(--muted)}.axis-label{font-family:var(--sans);font-size:13px;fill:var(--muted)}.curve{fill:none;stroke:var(--accent);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.reference{fill:none;stroke:#8a958c;stroke-width:2;stroke-dasharray:7 5}.run-2{stroke:#27332d;stroke-dasharray:10 4}.run-3{stroke:#69756e;stroke-dasharray:3 4}.run-4{stroke:#384d40;stroke-dasharray:12 4 2 4}.guide{stroke:#99a39b;stroke-width:1.4;stroke-dasharray:4 4}.point{fill:#fff;stroke:#4b5d50;stroke-width:2}.vertex{fill:var(--accent);stroke:#fff;stroke-width:2}.residual{stroke:#a0ada3;stroke-width:1.5}.movable{fill:var(--accent);stroke:#fff;stroke-width:2}.hit-target{fill:transparent;cursor:grab}.drag-plot{touch-action:pan-y}.drag-plot.dragging{touch-action:none}.legend{display:flex;flex-wrap:wrap;gap:9px 24px;font-size:12px;color:var(--muted);padding:0 10px 8px}.legend-item{display:flex;align-items:center;gap:7px}.legend-line{width:24px;border-top:2px solid var(--accent)}.legend-line.dash{border-color:#8a958c;border-top-style:dashed}.metrics{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:3px;margin-top:16px}.metric{padding:12px 16px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric-label{font-size:12px;display:block;color:var(--muted)}.metric strong{font-family:var(--mono);font-weight:500;font-size:19px;display:block;margin-top:3px}.plot-note{font-size:13px;color:var(--muted);margin:12px 0 0}.callout{border-left:3px solid var(--accent);padding:10px 15px;background:var(--wash);font-size:14px;margin-top:15px}.callout p{margin:0}details{border-top:1px solid var(--line);padding:14px 0;margin-top:15px}summary{cursor:pointer;color:var(--accent);font-size:14px;min-height:28px}details p,details table{font-size:14px;margin-top:12px}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--line);padding:8px}th{font-weight:600}caption{text-align:left;color:var(--muted);font-size:13px;margin-bottom:6px}.notebook{border-top:1px solid var(--ink);margin-top:36px;padding-top:24px}.notebook-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.notebook-heading h2{font-size:20px;margin:0}.notebook-heading p{font-size:12px;color:var(--muted);margin:4px 0 0}.record-list{list-style:none;padding:0;margin:18px 0 26px}.record-list li{display:flex;align-items:start;gap:17px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.record-list li>div{flex:1}.record-list p{margin:4px 0 0;font-size:13px;color:var(--muted)}.record-number{font-family:var(--mono);color:var(--muted)}.record-list .empty-record{color:var(--muted);padding:18px 0}.reflection-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:28px}.reflection-grid h3{font-size:17px;margin-bottom:9px}.reflection-grid textarea{min-height:132px}.question-label{font-size:14px;color:var(--muted);min-height:50px}.save-panel{display:flex;justify-content:space-between;gap:25px;border-top:1px solid var(--line);padding-top:16px;margin-top:22px}.save-panel .hint{font-size:12px;max-width:470px;margin:0}.save-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:start}.save-actions button{font-size:13px}.status{min-height:29px;margin:12px 0;color:var(--accent);font-size:13px}.print-text{display:none}.share-fallback{padding:15px;border:1px solid var(--line);margin-bottom:20px}.share-fallback input{width:100%;font-size:13px}.teacher-note-link{font-size:13px}.prose{max-width:850px;padding-top:38px}.prose>h1{margin-bottom:16px}.prose h2{border-top:1px solid var(--line);padding-top:22px;margin-top:30px;font-size:23px}.prose h3{margin-top:24px}.prose p,.prose li{font-size:16px}.prose li{margin-bottom:8px}.prose table{font-size:14px;margin:18px 0}.prose .lead{font-size:18px;color:var(--muted)}.focus-mode .notebook,.focus-mode .prediction-block,.focus-mode footer,.focus-mode .breadcrumb{display:none}.focus-mode .workspace{grid-template-columns:285px minmax(0,1fr)}.focus-mode .wrap{max-width:1440px}.focus-mode .plot-panel{padding-top:14px}.focus-mode .plot{max-height:66vh}.focus-mode .lab-title{margin-top:18px}.focus-mode .task p,.focus-mode .task li{font-size:16px}[hidden]{display:none!important}.no-js{background:#fff4da;padding:16px}.home-footer-note{font-size:12px}
@media(min-width:1400px){.workspace{grid-template-columns:320px minmax(0,1fr);gap:48px}}
@media(max-width:900px){.wrap{width:calc(100% - 40px)}.workspace,.focus-mode .workspace{grid-template-columns:270px minmax(0,1fr);gap:22px}.hero{grid-template-columns:1fr 230px;gap:25px}.hero h1{font-size:32px}.equation{font-size:20px}.metric{padding:9px}.metric strong{font-size:17px}.toolbar{align-items:start}.toolbar-actions{justify-content:flex-end}.reflection-grid{gap:22px}}
@media(max-width:720px){.wrap{width:calc(100% - 32px)}.header-inner{min-height:74px;gap:10px}.brand{font-size:14px}.brand span{font-size:9px}nav{gap:14px}nav a{font-size:12px}.hero{display:block;padding:30px 0}.hero h1{font-size:29px}.hero-figure{display:none}.hero p{font-size:15px}.module-row{grid-template-columns:26px 1fr;gap:14px;padding:23px 0}.module-go{display:none}.module-row h3{font-size:20px}.module-row p{font-size:14px}.method-strip{grid-template-columns:1fr;gap:14px}.footer-inner{display:block}.footer-inner div+div{margin-top:8px}.lab-title{display:block}.lab-title h1{font-size:27px}.lab-meta{padding-top:7px}.toolbar{display:block}.toolbar-actions{justify-content:flex-start;margin-top:10px}.workspace,.focus-mode .workspace{display:flex;flex-direction:column;gap:20px}.inquiry-side,.visual-side{width:100%}.control-panel{margin-top:18px}.control-row{margin-bottom:8px}.plot-panel{padding:12px 8px 7px}.equation{font-size:20px}.plot-heading{padding-inline:8px}.reflection-grid{grid-template-columns:1fr}.question-label{min-height:auto;margin-bottom:10px}.save-panel{display:block}.save-actions{margin-top:14px}.notebook-heading{align-items:start}.notebook-heading button{min-width:110px}.notebook-heading h2{font-size:18px}.metric{padding:8px}.metric-label{font-size:11px}.metric strong{font-size:17px}.focus-mode .plot{max-height:none}.section-heading .hint{font-size:12px}.notebook{margin-top:26px}.record-list li{gap:10px}footer{margin-top:32px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{@page{size:A4;margin:15mm}body{background:#fff;color:#111;font-size:11pt;line-height:1.6}.wrap{width:100%;max-width:none}.site-header,.toolbar,.breadcrumb,.control-panel,.save-panel,.save-actions,.status,.share-fallback,.teacher-note-link,footer,.notebook-heading button,.remove-record,details,.no-print{display:none!important}.lab-title{margin-bottom:12px}.lab-title h1{font-size:22pt}.lab-meta{font-size:10pt}.workspace,.focus-mode .workspace{display:block}.focus-mode .prediction-block,.focus-mode .notebook{display:block}.task{display:none}.prediction-block{margin:0 0 15px}.visual-side{break-inside:avoid}.plot-panel{width:145mm;margin:0 auto;padding:8px}.plot{max-height:82mm}.plot-heading .equation{font-size:16pt}.metrics{margin-top:8px}.metric{padding:5px 10px}.metric strong{font-size:13pt}.metric-label{font-size:9pt}.plot-note{font-size:9pt;margin-top:5px}.notebook{margin-top:18px;padding-top:14px}.reflection-grid{display:block}.reflection-grid>div{margin-top:15px;break-inside:avoid}.notebook-heading h2{font-size:14pt}.notebook-heading p{display:none}.record-list{margin:10px 0}.record-list li{break-inside:avoid;padding:7px 0;font-size:10pt}.record-list p{font-size:9pt}.record-list .empty-record{padding:5px}.question-label{min-height:0;font-size:10pt}.print-text{display:block;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #bbb;min-height:18mm;padding:7px;margin-bottom:10px;font-size:10pt}textarea{display:none!important}.step-label{font-size:9pt}a{color:#111;text-decoration:none}.prose{padding:0}.prose h2{break-after:avoid}.prose p,.prose li{font-size:11pt}.hero-figure{display:none}.callout{font-size:10pt;padding:6px 12px}}

.hit-target{touch-action:none}
/* The two-column tablet layout scales SVG text down more than desktop. */
@media screen and (min-width:721px) and (max-width:900px){
 .tick,.axis-label{font-size:22px}
}
/* On a phone, keep the graph visible while a pupil adjusts the controls. */
@media screen and (max-width:720px){
 .workspace>.inquiry-side,.workspace>.visual-side{display:contents}
 .workspace .task{order:1;width:100%}
 .workspace .prediction-block{order:2;width:100%;margin-top:0}
 .workspace .plot-panel{order:3;width:100%;position:sticky;top:0;z-index:2;background:#fff}
 .workspace .metrics{order:4;width:100%;margin-top:0}
 .workspace .control-panel{order:5;width:100%;margin-top:0}
 .workspace .plot-note{order:6;width:100%;margin-top:0}
 .workspace .visual-side>details{order:7;width:100%;margin-top:0}
 .workspace .callout{order:8;width:100%;margin-top:0}
 .tick,.axis-label{font-size:22px}
}
