:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#1c343c;background:#f3f5f2;font-synthesis:none;--teal:#167b76;--line:#dce4df;--ink:#142b34;--muted:#637975;--orange:#edb26b}
*{box-sizing:border-box}body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column}button,input,select{font:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:8px 12px;font-size:12px;font-weight:600;white-space:nowrap}button:hover{background:#eaf4ef;border-color:#92b8a9}button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #27a89c;outline-offset:3px}button[aria-pressed=true]{color:#146d63;background:#e0f1e9;border-color:#a3cbbb}button:disabled{opacity:.45;cursor:default}input[type=number]{width:72px;padding:6px;border:1px solid #cbd9d0;border-radius:5px;background:#fff;color:#163a3c;text-align:right;font-variant-numeric:tabular-nums}input[type=range]{accent-color:var(--teal);min-width:40px;width:110px}input[type=checkbox]{accent-color:var(--teal);width:17px;height:17px}select{border:1px solid #cbd9d0;border-radius:6px;background:#fff;padding:6px;font-size:12px;color:var(--ink)}[hidden]{display:none!important}
.topbar{height:62px;flex:none;display:flex;align-items:center;gap:20px;padding:0 25px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center}.brand img{width:127px;height:auto}.lab-name{padding-left:20px;border-left:1px solid #dfe7e1;font-size:17px;letter-spacing:-.6px}.lab-name b{font-weight:400;color:#69847b}.topbar nav{margin-left:auto;display:flex;gap:7px}.topbar nav button{border-color:transparent;background:transparent;font-size:12px}.topbar nav button:hover{background:#edf3ef}.topbar nav #count{background:#dceae2;border-radius:5px;padding:1px 5px;margin-left:4px}.help-button{font-size:16px!important;border:1px solid var(--line)!important;width:32px;padding:3px}
#lab{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 22px;gap:0}.workspace-bar{display:flex;justify-content:space-between;align-items:center;min-height:57px;flex:none}.tabs{display:flex;gap:5px}.tabs button{padding:9px 14px;background:none;border-color:transparent}.tabs button[aria-pressed=true]{background:#e0ece5;color:#185549;border-color:#c8ddd1}.tabs span{font-size:10px;margin-right:9px;opacity:.6;font-variant-numeric:tabular-nums}.utility{display:flex;gap:8px}.utility button{background:transparent;font-size:11px;padding:6px 10px}#fullscreen{font-size:20px;padding:0 9px}.quick-controls{display:flex;align-items:center;gap:26px;min-height:70px;padding:0 2px 12px;flex:none}.experiment-title{margin-right:auto;min-width:180px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#6d8278}h1{font-size:20px;font-weight:550;letter-spacing:-.6px;margin:5px 0 0}.quick-control{display:flex;align-items:center;gap:7px;font-size:11px;color:#536960}.quick-control>span:first-child{font-weight:600}.quick-control input[type=number]{width:55px;font-size:12px;padding:5px}.quick-control input[type=range]{width:92px}.quick-controls #pipe-actions{display:flex;gap:15px;align-items:center}.switch{display:flex;gap:8px;align-items:center;font-size:12px}.workbench{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 263px;border:1px solid #c9d8cf;border-radius:12px;overflow:hidden;box-shadow:0 8px 32px #133c3510}.stage-wrap{position:relative;background:#fff;min-height:0;min-width:0;isolation:isolate;overflow:hidden}#stage{width:100%;height:100%;display:block;touch-action:none}.stage-caption{position:absolute;pointer-events:none;left:23px;right:23px;top:22px;display:flex;justify-content:space-between;gap:15px;color:#617982;font-size:9px;letter-spacing:1.8px;z-index:1}.stage-caption #regime{font-size:9px;letter-spacing:.3px;color:#476c59;border:1px solid #8cb69c38;padding:5px 8px;border-radius:20px;margin-top:-5px;background:#f2f8f3eb}.stage-caption #regime.warning{color:#8b5527;border-color:#d797504d;background:#fff4e5ed}.map-toolbar{position:absolute;top:51px;left:21px;display:flex;align-items:center;gap:5px;font-size:10px;color:#586f78}.map-toolbar label{margin-right:4px}.map-toolbar button,.map-toolbar select{font-size:10px;border:1px solid #cbdadd;background:#ffffffed;color:#45606b;padding:5px 8px;border-radius:5px}.map-toolbar button[aria-pressed=true]{background:#e6f2f2;color:#285b5f;border-color:#9cc4c4}.legend{position:absolute;bottom:42px;left:24px;display:flex;gap:8px;align-items:center;font-size:9px;color:#58727b;pointer-events:none}.legend i{width:100px;height:5px;background:linear-gradient(90deg,#74c7d5,#fff,#e5b67b);border-radius:5px}.stage-hint{position:absolute;bottom:17px;left:24px;right:24px;color:#657f89;font-size:10px;pointer-events:none}.evidence{padding:19px 17px;background:#fbfcfa;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px}.evidence-heading{display:flex;justify-content:space-between;align-items:center;gap:5px}.evidence-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.evidence-heading button{font-size:9px;background:transparent;padding:3px 5px;color:#627c70}.probe-cards{display:flex;flex-direction:column;gap:10px}.probe-card{text-align:left;display:block;width:100%;padding:11px 12px;border-radius:8px;background:white;white-space:normal}.probe-title{display:flex;align-items:center;font-size:10px;font-weight:500;color:#526b65;gap:7px}.probe-title i{font-style:normal;display:inline-grid;place-items:center;width:19px;height:19px;background:#dbf0eb;color:#187e77;border-radius:5px;font-size:10px;font-weight:700}.probe-b .probe-title i{color:#916729;background:#fcf0d9}.drag-label{margin-left:auto;color:#8b9b94}.probe-card strong{display:block;font-size:27px;letter-spacing:-1px;margin:6px 0 5px;font-variant-numeric:tabular-nums;font-weight:500}.probe-card strong small{font-size:11px;font-weight:400;letter-spacing:0;color:#859389}.probe-detail{font-size:10px;color:#5c776d;display:flex;justify-content:space-between;gap:5px;font-variant-numeric:tabular-nums}.probe-status{display:block;font-size:8px;color:#889b92;margin-top:7px}.difference{display:flex;justify-content:space-between;gap:6px;padding:1px 2px 6px;font-size:10px;color:#7a8d82;border-bottom:1px solid #e1e9e3}.difference strong{font-weight:600;color:#375c50}.result-card{padding:9px 11px;border-radius:6px;background:#e9f0e8}.result-card>span{font-size:10px;color:#557466}.result-card strong{font-size:24px;display:block;font-weight:500;letter-spacing:-.7px;color:#20564b;margin-top:2px;font-variant-numeric:tabular-nums}.result-card small{font-size:8px;color:#7b9183}.graph-card{flex:1;min-height:125px;display:flex;flex-direction:column;margin-top:3px}.graph-card>div{font-size:10px;display:flex;justify-content:space-between;gap:8px}.graph-key{font-size:8px;color:#7f9287;white-space:nowrap}.graph-key i,.graph-key b{display:inline-block;width:10px;height:2px;vertical-align:middle;background:#198c84}.graph-key b{background:#d69b55;margin-left:4px}#graph{width:100%;flex:1;min-height:100px;display:block}.transport{display:flex;align-items:center;gap:7px;min-height:65px;flex:none;padding:10px 0}.transport button{font-size:11px;padding:10px 14px}.transport .primary{background:#1b6151;color:#fff;border-color:#1b6151;min-width:113px}.transport .capture{border-color:#c1d5bf;background:#e6eddd;color:#365d37}.transport-rule{height:22px;width:1px;background:#cfddd2;margin:0 8px}.time{margin-left:auto;text-align:right;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}.time small{display:block;font-size:9px;color:#809286}.pace{display:flex;align-items:center;gap:7px;font-size:10px;color:#6e8275;margin-left:13px}.statusbar{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#778d80;padding-bottom:9px;min-height:20px;flex:none}.statusbar #status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.statusbar .model-note{white-space:nowrap;color:#91a194}.teacher .probe-card strong{font-size:34px}.teacher .stage-hint{font-size:12px}.teacher .workbench{grid-template-columns:minmax(0,1fr) 290px}
dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #cbdacf;border-radius:13px;background:#fafcf9;color:var(--ink);box-shadow:0 24px 120px #04191250;overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#0a1c2e86;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:23px 25px 18px;border-bottom:1px solid #dce6de;flex:none;background:#f8fbf6}.dialog-head h2{font-size:23px;font-weight:500;margin:5px 0 0;letter-spacing:-.6px}.dialog-head button{font-size:24px;font-weight:300;padding:1px 8px;background:transparent}.dialog-body{overflow:auto;padding:4px 25px 25px;font-size:13px;line-height:1.65}.dialog-body h3{font-size:15px;font-weight:600;margin:20px 0 10px}.dialog-body p{color:#607a6c}.dialog-body a{color:#157b70}.dialog-body .intro{margin-bottom:20px}.experiment-option{display:flex;text-align:left;white-space:normal;flex-direction:column;width:100%;padding:17px;margin-bottom:11px;gap:5px}.experiment-option span{font-size:9px;letter-spacing:1.5px;color:#759580}.experiment-option strong{font-size:16px;font-weight:550;letter-spacing:-.2px}.experiment-option small{font-size:12px;font-weight:400;color:#788d80;line-height:1.6}.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0;font-size:12px}.setting>span{display:flex;align-items:center;gap:8px}.setting input[type=number]{width:85px}.setting input[type=range]{width:150px}.setting select{min-width:150px}.button-row{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.explanation{display:block;font-size:11px;color:#7b8c80;line-height:1.6;margin-top:15px}.equation{background:#e8f1e7;border-radius:8px;padding:18px;color:#285b48;font-family:Georgia,serif;font-size:20px}details{border-bottom:1px solid #dce6dc;padding:13px 0}summary{cursor:pointer;font-size:13px;font-weight:600}details p{font-size:12px}.empty{border:1px dashed #bed3be;border-radius:10px;padding:35px 25px;text-align:center;color:#819983}.capture-entry{border-bottom:1px solid #d9e3d8;padding:14px 0}.capture-entry header{display:flex;justify-content:space-between;font-size:12px}.capture-entry table{width:100%;border-collapse:collapse;font-size:11px;margin-top:10px}.capture-entry td,.capture-entry th{text-align:left;padding:4px;border-bottom:1px solid #e3eae0}.capture-entry th{font-size:9px;color:#6e8576;font-weight:500}.capture-entry p{font-size:10px;margin:4px 0}.capture-entry summary{font-size:10px}.capture-entry pre{font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}.status-error{color:#a15231!important}
.flow-tools{display:flex;align-items:center;gap:12px;padding:0 0 10px;min-height:43px;flex:none;font-size:11px;color:#6d8187}.flow-tools>button{border-color:#a8c4ce;color:#35677b;background:#f6fbfd;padding:7px 13px}.flow-tools>button[aria-pressed=true]{background:#e9f1fd;border-color:#a5bde4;color:#2258a1}.flow-tools>button:first-letter{font-size:16px}.flow-tools label{display:flex;align-items:center;gap:5px;font-size:10px}.flow-tools select{font-size:10px;padding:5px 7px}.flow-tools #smoke-options{display:flex;gap:10px;align-items:center}.flow-tools #smoke-options button{font-size:10px;padding:7px 10px}.flow-tools #smoke-hold{touch-action:none;border-color:#aec5e6;background:#eff5ff;color:#295da6}.flow-tools #smoke-hold.releasing{background:#2866ba;color:#fff}.smoke-mode .map-toolbar>label,.smoke-mode .map-toolbar>select,.smoke-mode #particles{display:none}.smoke-mode .stage-hint{background:#ffffffd9;padding:4px 6px;border-radius:4px}.camera-toolbar{position:absolute;top:51px;right:20px;display:flex;gap:4px}.camera-toolbar button{font-size:10px;padding:4px 7px;background:#ffffffed;color:#48666e;border-color:#cbdadd}.camera-toolbar button[aria-pressed=true]{background:#e0f0ed;color:#25665f}
@media(min-width:1600px){#lab{padding:0 32px}.workbench{grid-template-columns:minmax(0,1fr) 300px}.evidence{padding:24px;gap:18px}.probe-card strong{font-size:35px}.probe-title,.probe-detail{font-size:12px}.result-card strong{font-size:30px}.stage-hint{font-size:12px}.stage-caption{font-size:11px}.graph-card{min-height:170px}}
@media(max-width:1100px){.quick-controls{gap:15px}.quick-control input[type=range]{width:65px}.experiment-title{min-width:130px}h1{font-size:17px}.workbench{grid-template-columns:minmax(0,1fr) 230px}.evidence{padding:15px 13px;gap:9px}.probe-card strong{font-size:24px}.topbar{padding:0 18px}#lab{padding:0 15px}.quick-control>span:first-child{font-size:10px}.secondary input[type=range]{display:none}}
@media(max-width:760px){.topbar{height:55px;padding:0 12px;gap:10px}.brand img{width:100px}.lab-name{font-size:14px;padding-left:10px}.topbar nav{gap:0}.topbar nav button{font-size:10px;padding:7px}.topbar nav .help-button{width:27px;margin-left:3px}.workspace-bar{min-height:48px}.tabs button{padding:7px 10px;font-size:11px}.tabs span{margin-right:5px}.utility #teacher{font-size:0;padding:7px}.utility #teacher:after{content:'Teach';font-size:10px}#lab{padding:0 10px}.quick-controls{min-height:78px;flex-wrap:wrap;column-gap:12px;row-gap:7px;padding-bottom:10px}.experiment-title{width:100%;display:flex;align-items:center;justify-content:space-between}.experiment-title .eyebrow{font-size:7px;order:2;max-width:120px;text-align:right}.experiment-title h1{font-size:16px;margin:0}.quick-control{gap:5px}.quick-control input[type=range]{width:70px}.quick-control.secondary{margin-left:auto}.quick-controls #pipe-actions{margin-left:auto;gap:7px}.quick-controls #pipe-actions button{font-size:10px;padding:7px}.quick-controls #pipe-actions .switch{font-size:10px;gap:3px}.workbench,.teacher .workbench{grid-template-columns:1fr;grid-template-rows:minmax(240px,1fr) 177px}.evidence{display:grid;grid-template-columns:minmax(0,1fr) 140px;grid-template-rows:12px 86px 30px;gap:8px 10px;padding:10px 12px;overflow:auto}.evidence-heading{grid-column:1}.evidence-heading .eyebrow{font-size:7px}.probe-cards{flex-direction:row;gap:8px;grid-column:1;grid-row:2}.probe-card{padding:6px 8px}.probe-title{font-size:8px;gap:4px}.probe-title i{width:16px;height:16px;font-size:8px}.probe-card strong,.teacher .probe-card strong{font-size:19px;letter-spacing:-.5px;margin:3px 0}.probe-card strong small{font-size:9px}.probe-detail{font-size:8px}.probe-detail>span:last-child,.probe-status,.drag-label{display:none}.difference{grid-row:3;grid-column:1;font-size:8px;padding:0 2px;border:0;align-items:center}.result-card{grid-column:2;grid-row:1/3;padding:0;background:none;text-align:right}.result-card>span{font-size:8px}.result-card strong{font-size:20px}.result-card small{display:none}.graph-card{grid-column:2;grid-row:2/4;min-height:0;margin-top:33px}.graph-card>div{font-size:8px}.graph-key{display:none}#graph{min-height:50px}.stage-caption{left:14px;right:14px;top:16px;font-size:8px;letter-spacing:1px}.stage-caption #regime{font-size:7px;padding:4px 6px}.map-toolbar{left:13px;top:40px}.map-toolbar label{display:none}.map-toolbar button,.map-toolbar select{font-size:8px;padding:5px 6px}.stage-hint{left:14px;bottom:11px;right:14px;font-size:8px}.legend{left:14px;bottom:31px;font-size:7px;gap:5px}.legend i{width:60px}.transport{min-height:59px;gap:5px}.transport button{font-size:10px;padding:9px 10px}.transport .primary{min-width:95px}.transport-rule{margin:0 2px}.pace{display:none}.time{font-size:9px}.time small{font-size:7px}.statusbar{font-size:8px;padding-bottom:5px}.model-note{display:none}.dialog-body{padding:4px 18px 20px}.dialog-head{padding:18px}.setting input[type=range]{width:95px}}
@media(max-width:440px){.lab-name{display:none}.topbar nav button{font-size:9px;padding:6px}.topbar nav{gap:1px}.quick-control input[type=range]{width:58px}.quick-control input[type=number]{width:47px}.quick-control.secondary{gap:3px}.quick-control.secondary>span:first-child{font-size:9px}.quick-controls #pipe-actions .switch{font-size:9px}.evidence{grid-template-columns:minmax(0,1fr) 115px;padding:9px;gap:7px}.probe-card{padding:6px}.probe-title{font-size:7px}.probe-card strong{font-size:17px}.probe-detail{font-size:7px}.transport button{padding:9px 7px;font-size:9px}.transport .primary{min-width:85px}.transport-rule{display:none}.time{font-size:8px}.stage-caption #regime{max-width:148px;letter-spacing:0}.statusbar{min-height:17px}}
@media(max-height:650px) and (min-width:761px){.topbar{height:46px}.workspace-bar{min-height:43px}.quick-controls{min-height:53px;padding-bottom:8px}.transport{min-height:49px}.evidence{gap:7px;padding:11px}.probe-cards{flex-direction:row;gap:6px}.probe-card{padding:7px}.probe-title{font-size:8px;gap:4px}.probe-detail{font-size:8px}.probe-status,.drag-label,.probe-detail>span:last-child{display:none}.probe-card strong{font-size:19px}.result-card{padding:6px}.result-card strong{font-size:19px}.graph-card{min-height:90px}.stage-caption{top:16px}.map-toolbar{top:39px}}
@media(max-height:650px) and (max-width:760px){#lab{overflow:auto}.workbench{flex:none;min-height:390px}.topbar{min-height:50px}.transport{position:sticky;bottom:0;background:#f3f5f2;z-index:3}.statusbar{min-height:20px}}
@media(max-width:760px){.camera-toolbar{top:76px;right:14px;gap:3px}.camera-toolbar button{font-size:8px;padding:4px 6px}}
@media(max-width:760px){.flow-tools{gap:7px;flex-wrap:wrap;padding-bottom:8px;min-height:40px}.flow-tools>button{font-size:10px;padding:6px 9px}.flow-tools #smoke-intro{font-size:9px}.flow-tools #smoke-options{gap:7px;flex-wrap:wrap}.flow-tools label{font-size:9px}.flow-tools select{font-size:9px;max-width:75px}.flow-tools #smoke-options button{padding:6px;font-size:9px}.smoke-mode .flow-tools #smoke-options{width:100%}.smoke-mode .camera-toolbar{top:40px}.smoke-mode .stage-hint{font-size:8px}}
@media(max-height:500px) and (min-width:761px){#lab{overflow:auto;scroll-padding-bottom:52px}.workbench{flex:none;height:360px;min-height:360px}.transport{position:sticky;bottom:0;background:#f3f5f2;z-index:3;border-top:1px solid #dce4df}.statusbar{min-height:20px}.stage-caption{font-size:8px}.map-toolbar,.camera-toolbar{top:42px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.smoke-mode #streams{display:none}
