:root{color-scheme:light;--ink:#233942;--muted:#5b727b;--line:#d5e0e4;--accent:#17666a;--paper:#fff;--bg:#f1f5f6;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg)}.wrap{width:min(1160px,calc(100% - 32px));margin:auto}header{background:#173e47;color:white;padding:30px 0 24px}header h1{margin:7px 0;font-size:2.1rem}header p{margin:6px 0}nav{display:flex;gap:20px;flex-wrap:wrap;margin-top:22px}header a{color:#e4f4f3}a{color:var(--accent)}main{padding:22px 0}.intro{margin-bottom:22px}.eyebrow{font-size:.78rem;letter-spacing:.13em;font-weight:700}.panel{padding:25px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-bottom:18px;min-width:0}.section-heading{display:flex;align-items:center;gap:14px}.section-heading h2{min-width:0}.number{font-weight:750;color:var(--accent);background:#e7f1f0;border-radius:6px;padding:8px}h2{font-size:1.25rem;margin:0 0 15px}.section-heading h2{margin:0}p,li{line-height:1.65;overflow-wrap:anywhere}.notice{padding:13px 16px;border-left:3px solid var(--accent);background:#ebf4f3}label{display:block;font-weight:650;line-height:1.5}textarea,select{font:inherit;width:100%;border:1px solid #b7cbd1;border-radius:6px;background:#fff;color:var(--ink);padding:11px;min-width:0}textarea{font-family:ui-monospace,Consolas,monospace;font-size:.86rem;line-height:1.6;resize:vertical;margin:7px 0 14px;tab-size:2;white-space:pre-wrap;overflow-wrap:anywhere}select{min-height:44px}button,.file-button{min-height:44px;padding:10px 15px;border:1px solid #a7bfc6;border-radius:6px;background:#f6f9fa;color:var(--ink);font:inherit;font-weight:650;cursor:pointer;text-align:center}button:disabled{opacity:.55;cursor:default}.primary{background:var(--accent);color:white;border-color:var(--accent)}button:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,.file-button:focus-within{outline:3px solid #78b4b3;outline-offset:3px}.file-button input{display:block;font-size:.8rem;max-width:100%;margin-top:7px}.actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:15px 0}.actions>label{flex:1 1 220px}.actions>button{flex:0 1 auto}.actions>label.file-button{flex:0 1 255px}.readiness{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px;margin:20px 0}.metric{padding:13px;background:#f1f6f7;border-radius:7px;overflow-wrap:anywhere}.metric strong{display:block;font-size:1.05rem;margin-top:5px}.diagnostic{padding:13px 15px;margin:9px 0;border:1px solid var(--line);border-left:3px solid #8b6570;border-radius:6px}.diagnostic code{font-size:.82rem;overflow-wrap:anywhere}.diagnostic p{margin:6px 0}.equation-card{padding:20px;border:1px solid var(--line);border-radius:8px;margin:18px 0;min-width:0}.equation-card h3{margin:0 0 15px;font-size:1.08rem}.equation-stage{border-top:1px solid #e5edef;padding:17px 0}.stage-label{font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:750}.math-scroll{max-width:100%;overflow-x:auto;padding:10px 3px}.math-scroll math{font-size:1.1rem}dl{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:8px 12px;margin:15px 0}dt,dd{margin:0;overflow-wrap:anywhere}dd{color:var(--muted)}details{margin:14px 0}summary{cursor:pointer;font-weight:650;line-height:1.6;overflow-wrap:anywhere}pre{background:#f4f7f8;padding:14px;border:1px solid var(--line);border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;line-height:1.6;max-height:420px;overflow:auto}footer{padding:18px 0 32px;font-size:.85rem;color:var(--muted)}[hidden]{display:none!important}@media(max-width:620px){.wrap{width:calc(100% - 24px)}header{padding:23px 0}.panel{padding:16px}.actions{align-items:stretch}.actions>button,.actions>label.file-button{flex:1 1 100%}.equation-card{padding:13px}.section-heading{align-items:flex-start}h2{font-size:1.12rem}}

/* Independent Lab reflow; formulas retain bounded horizontal scrolling. */
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}header h1{font-size:clamp(1.65rem,5vw,2.1rem);overflow-wrap:anywhere}nav a{display:inline-flex;align-items:center;min-height:44px}button,.file-button{max-width:100%;overflow-wrap:anywhere}summary{min-height:44px;display:list-item;padding:.55rem 0}footer{padding-bottom:max(32px,env(safe-area-inset-bottom))}@media(max-width:400px){dl{grid-template-columns:minmax(0,1fr)}dd{margin-bottom:8px}.actions>label{flex-basis:100%}}
@media(any-pointer:coarse),(max-width:600px){input[type="file"],textarea,select{min-height:44px;font-size:max(1rem,16px)}}

/* Read-only education presentation; never shares study input or result state. */
.demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.demo-pane{min-width:0;padding:17px;border:1px solid var(--line);border-radius:9px;background:#fbfdfd}.demo-pane h3{margin:0 0 10px;font-size:1.1rem}.demo-pane label{margin:12px 0 6px}.demo-badge{display:inline-block;padding:4px 9px;border:1px solid #b7ccce;border-radius:5px;background:#edf5f4;font-size:.8rem;font-weight:650}.demo-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:9px;margin:14px 0}.demo-metric{padding:11px;background:#edf3f4;border-radius:6px;min-width:0}.demo-metric span{display:block;color:var(--muted);font-size:.8rem}.demo-metric strong{display:block;margin-top:5px;font-size:1rem;overflow-wrap:anywhere}.demo-table-scroll{width:100%;overflow-x:auto;margin:14px 0;border:1px solid var(--line);border-radius:6px}.demo-table{width:100%;border-collapse:collapse;font-size:.85rem}.demo-table caption{text-align:left;padding:10px;color:var(--muted)}.demo-table th,.demo-table td{padding:10px;border-top:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}.demo-table th{background:#edf3f4}.demo-table td:nth-child(2){font-variant-numeric:tabular-nums}.demo-equations .equation-card{padding:13px}.demo-equations .equation-stage{padding:11px 0}.demo-proof dl{grid-template-columns:minmax(90px,1fr) minmax(0,2fr);font-size:.83rem}.demo-proof a{display:inline-block;min-height:44px;padding:9px 0;max-width:100%;overflow-wrap:anywhere}.demo-limit{font-size:.85rem;color:var(--muted)}.demo-drawing{width:100%;height:auto;min-height:200px;max-height:350px;background:white;border:1px solid var(--line);border-radius:6px}.demo-drawing path{fill:none;stroke:#246773;stroke-width:1;vector-effect:non-scaling-stroke}.demo-drawing-caption{font-size:.82rem;color:var(--muted);margin:8px 0}.demo-pending{padding:14px;border:1px dashed #a7bfc6;border-radius:6px;color:var(--muted)}.demo-pane details{margin:10px 0}.cfd-demo .notice{font-size:.9rem}.cfd-demo h4{font-size:1rem;margin:15px 0 8px}.demo-stage-source{font-size:.8rem;color:var(--muted)}
.demo-figure{margin:15px 0}.demo-geometry{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px}.demo-geometry>div{min-width:0}.demo-impeller-image{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:6px;background:#fff}.demo-geometry a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}@media(max-width:850px){.demo-grid,.demo-geometry{grid-template-columns:minmax(0,1fr)}}@media(max-width:400px){.demo-pane{padding:12px}.demo-proof dl{grid-template-columns:minmax(0,1fr)}.demo-table th,.demo-table td{padding:8px}.demo-drawing{min-height:160px}}@media(prefers-reduced-motion:reduce){.cfd-demo *{scroll-behavior:auto}}
.teaching-workflow{padding:15px;border:1px solid var(--line);border-radius:8px;background:#f0f7f6;margin:15px 0}.teaching-workflow>p{margin-top:0}.teaching-navigation{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.teaching-navigation a{display:inline-flex;align-items:center;min-height:44px;padding:8px 11px;border:1px solid #bed2d2;border-radius:6px;background:#fff;max-width:100%;overflow-wrap:anywhere}.teaching-workflow li>p{margin:4px 0 12px}section[id]{scroll-margin-top:16px}@media(max-width:400px){.teaching-workflow{padding:12px}.teaching-navigation a{flex:1 1 100%}}
.teaching-table-scroll{max-width:100%;overflow-x:auto;margin:15px 0;border:1px solid var(--line);border-radius:6px}.teaching-table{width:100%;border-collapse:collapse;font-size:.85rem}.teaching-table caption{text-align:left;padding:10px;color:var(--muted)}.teaching-table th,.teaching-table td{text-align:left;vertical-align:top;padding:10px;border-top:1px solid var(--line);overflow-wrap:anywhere}.teaching-table th{background:#edf3f4}.teaching-table td:nth-child(2){font-variant-numeric:tabular-nums}#worker-output .metric{font-size:.9rem}

/* SDK installation is a separate projection from native solver readiness. */
.frozen-rotor-panel>p a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}
.api-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.api-heading>div{min-width:0}.api-heading .eyebrow{margin:0 0 7px}.api-heading h2{margin:0}.api-badge{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid #b7cbd1;border-radius:6px;background:#f1f5f6;font-size:.85rem;font-weight:650;max-width:100%;overflow-wrap:anywhere}.api-ready{background:#eaf5ef;border-color:#8bb69e;color:#245c3d}.api-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin:18px 0}.api-metrics .metric{min-width:0}.api-metrics strong{overflow-wrap:anywhere}.api-links,.api-local-links{display:flex;flex-wrap:wrap;gap:8px 16px}.api-links{margin-top:12px}.api-links a,.api-local-links a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}.api-execution{font-size:.88rem;color:var(--muted)}@media(max-width:400px){.api-heading{align-items:flex-start}.api-links a,.api-local-links a{flex:1 1 100%}}
.frozen-rotor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.frozen-rotor-card{min-width:0;padding:17px;border:1px solid var(--line);border-radius:8px;background:#fbfdfd}.frozen-rotor-card h3{font-size:1rem;margin:0 0 12px}.frozen-rotor-card dl{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);font-size:.88rem}.frozen-rotor-panel code{overflow-wrap:anywhere;white-space:normal}.frozen-rotor-card p{font-size:.88rem;margin:12px 0 0}.frozen-rotor-sequence{padding-left:22px}.frozen-rotor-sequence li{padding-bottom:10px}@media(max-width:720px){.frozen-rotor-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:400px){.frozen-rotor-card{padding:12px}.frozen-rotor-card dl{grid-template-columns:minmax(0,1fr)}}
.frozen-rotor-mesh-inventory{padding:17px;margin:18px 0;border:1px solid var(--line);border-radius:8px;background:#f7fafb;min-width:0}.frozen-rotor-mesh-inventory h3{font-size:1.08rem;margin:0;min-width:0}.mesh-count-trace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mesh-count-stage{min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;background:#fff}.mesh-count-stage p{margin:0 0 8px}.mesh-count-stage .math-scroll{min-width:0;max-width:100%;overflow-x:auto}.frozen-rotor-mesh-inventory a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}@media(max-width:620px){.mesh-count-trace{grid-template-columns:minmax(0,1fr)}}@media(max-width:400px){.frozen-rotor-mesh-inventory{padding:12px}.frozen-rotor-mesh-inventory dl{grid-template-columns:minmax(0,1fr)}}

/* NATIVE_VOLUME_MESH_STYLE_START */

#hex-cell-view{--foreground:var(--ink);--muted-foreground:var(--muted);--destructive:#a12628;--viz-series-1:var(--accent)}
#hex-cell-view .table{border-collapse:collapse}#hex-cell-view td,#hex-cell-view th{padding:9px;border-bottom:1px solid var(--line)}#hex-cell-view .form-range{width:100%;min-height:40px}#hex-cell-view select{font:inherit}#hex-cell-view pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem;line-height:1.5}

    #hex-cell-view { color:var(--foreground); width:100%; }
    #hex-cell-view .hex-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
    #hex-cell-view canvas { width:100%;height:240px;display:block;touch-action:pan-y; }
    #hex-cell-view #hex-overview {height:210px;}
    #hex-cell-view .hex-detail {overflow-wrap:anywhere;}
    #hex-cell-view .hex-title {display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;margin:10px 0;}
    #hex-cell-view .hex-bad {color:var(--destructive);}
    #hex-cell-view .hex-legend {display:flex;flex-wrap:wrap;gap:16px;margin:8px 0;}
    #hex-cell-view .hex-legend span {display:flex;align-items:center;gap:6px;}
    #hex-cell-view .hex-mark {display:inline-block;width:9px;height:9px;background:var(--viz-series-1);}
    #hex-cell-view .hex-mark.fixed {border-radius:50%;background:var(--foreground);}
    #hex-cell-view .hex-mark.failed {background:var(--destructive);}
    #hex-cell-view .hex-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0;}
    #hex-cell-view .hex-controls label {display:flex;flex-direction:column;gap:6px;min-width:0;}
    #hex-cell-view table {width:100%;}
    #hex-cell-view th,#hex-cell-view td {text-align:left;overflow-wrap:anywhere;}
    #hex-cell-view summary {margin:12px 0;}
    @media(max-width:560px) {#hex-cell-view .hex-grid,#hex-cell-view .hex-controls {grid-template-columns:1fr;}}
  
#hex-cell-view .table-responsive{max-width:100%;overflow-x:auto}#hex-cell-view table{min-width:420px}#hex-cell-view .form-range{margin:0;min-height:44px}#hex-cell-view input:focus-visible{outline:3px solid #78b4b3;outline-offset:3px}#hex-cell-view .text-small{font-size:.86rem;color:var(--muted)}
/* NATIVE_VOLUME_MESH_STYLE_END */

/* Native field snapshots preserve plot proportions and bounded chart scrolling. */
#pump-progress-visuals figure{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:8px;min-width:0}
#pump-progress-visuals .pump-plot-scroll{max-width:100%;overflow-x:auto}
#pump-progress-visuals img{display:block;width:100%;min-width:760px;height:auto}
#pump-progress-visuals figcaption{font-size:.86rem;color:var(--muted);line-height:1.6;margin:12px 0}
#pump-progress-visuals a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}
@media(max-width:620px){#pump-progress-visuals figure{padding:10px}}

/* Sample collection is distinct from numerical acceptance; Python owns values. */
.pump-sampling{margin:18px 0;padding:18px;border:1px solid #b7ccce;border-radius:8px;background:#edf5f4;min-width:0}
.pump-sampling h3{font-size:1rem;margin:0 0 12px}.pump-sampling p{margin:8px 0;overflow-wrap:anywhere}
.pump-sampling-count{font-size:clamp(1.1rem,3vw,1.5rem);font-weight:700;font-variant-numeric:tabular-nums}
.pump-sampling progress{display:block;width:100%;height:16px;accent-color:var(--accent);border:0;border-radius:8px;overflow:hidden;background:#d5e0e4}
.pump-sampling progress::-webkit-progress-bar{background:#d5e0e4;border-radius:8px}.pump-sampling progress::-webkit-progress-value{background:var(--accent);border-radius:8px}
.pump-sampling progress::-moz-progress-bar{background:var(--accent);border-radius:8px}.pump-sampling-explanation{font-size:.85rem;color:var(--muted)}
@media(max-width:400px){.pump-sampling{padding:12px}}
.pump-sampling-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}.pump-sampling-heading h3{margin:0;flex:1 1 260px}.pump-print-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid var(--accent);border-radius:6px;background:#fff;color:var(--accent);font-weight:650;text-decoration:none;white-space:nowrap}.pump-print-button:hover{background:#dfeeed}.pump-print-button:focus-visible{outline:3px solid #78b4b3;outline-offset:3px}
.pump-report{font-variant-numeric:tabular-nums}.pump-report h2{margin-bottom:16px}.pump-report h3{font-size:1rem}.pump-report .report-table{max-width:100%;overflow-x:auto;margin:14px 0}.pump-report table{width:100%;border-collapse:collapse;text-align:left;font-size:.88rem;table-layout:fixed}.pump-report th,.pump-report td{border:1px solid var(--line);padding:10px;vertical-align:top;overflow-wrap:anywhere}.pump-report th{background:#edf5f4}.pump-report img{display:block;width:100%;height:auto}.pump-report figure{margin:20px 0}.pump-report figcaption{font-size:.83rem;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.pump-report .report-equation{padding:12px 0;border-top:1px solid var(--line)}.pump-report .math-scroll math{font-size:1rem}.report-screen-actions a{display:inline-flex;align-items:center;min-height:44px}.pump-report-page header h1{font-size:clamp(1.5rem,5vw,2rem)}
@media(max-width:480px){.pump-sampling-heading{align-items:stretch}.pump-print-button{width:100%}.pump-report th,.pump-report td{padding:7px;font-size:.8rem}.pump-report .panel{padding:12px}}
@media print{
  @page{size:A4;margin:14mm}
  .pump-report-page{background:white;color:#152e35;padding:0;font-size:10pt}
  .pump-report-page .wrap{width:100%;max-width:none;margin:0}
  .pump-report-page header{background:white;color:#152e35;padding:0 0 10mm;border-bottom:1px solid #9aaeb3}
  .pump-report-page header h1{font-size:20pt}.pump-report-page header p{margin:4px 0}
  .pump-report-page .report-screen-actions{display:none!important}
  .pump-report-page main{padding:7mm 0 0}.pump-report-page .panel{border:0;border-radius:0;padding:0;margin:0 0 9mm}
  .pump-report-page h2,.pump-report-page h3,.pump-report-page summary{break-after:avoid}
  .pump-report-page h2{font-size:14pt}.pump-report-page h3{font-size:11pt}
  .pump-report-page .report-table,.pump-report-page .math-scroll{overflow:visible}
  .pump-report-page table{font-size:8.5pt}.pump-report-page th,.pump-report-page td{padding:6px}
  .pump-report-page thead{display:table-header-group}.pump-report-page tr{break-inside:avoid}
  .pump-report-page .report-equation{break-inside:avoid}.pump-report-page figure{break-inside:avoid;margin:5mm 0}
  .pump-report-page img{width:100%;max-height:215mm;object-fit:contain}
  .pump-report-page pre{max-height:none;overflow:visible;white-space:pre-wrap;font-size:7.5pt;padding:8px}
  .pump-report-page p,.pump-report-page li{line-height:1.5;orphans:3;widows:3}
  .pump-report-page a{color:inherit;text-decoration:underline}.pump-report-page footer{font-size:8pt;padding:3mm 0}
}

/* Match the local Cavitation Lab spacing beneath the paired header. */
body:not(.formal-lab) > header.lab-site-header + main.wrap {
  width: 100%;
  max-width: 1180px;
  padding-block-start: 24px;
  padding-inline: 24px;
}

@media (max-width: 480px) {
  body:not(.formal-lab) > header.lab-site-header + main.wrap {
    padding-block-start: 16px;
    padding-inline: 12.8px;
  }
}

/* Shared hosted Lab presentation. Engineering values remain Python-owned. */
:root:has(> body.formal-lab){font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.55;--ink:#183544;--muted:#536d7b;--accent:#006979;--teal:#006979;--border:#ccd9df;--line:#ccd9df;--paper:#fff;--bg:#f3f6f7;--tint:#edf5f8}
body.formal-lab{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.55}
body.formal-lab *{box-sizing:border-box}
header.lab-site-header{background:#173845;color:#fff;padding:1.4em 1.5em;border:0;font:16px/1.55 Inter,"Segoe UI",Arial,sans-serif}
.lab-site-header .lab-header-inner{max-width:1132px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:1em}
.lab-site-header .lab-heading{min-width:0;flex:1 1 280px}
.lab-site-header .eyebrow{font-family:inherit;font-size:.72em;line-height:1.55;letter-spacing:.16em;font-weight:500;color:#d0e0e5;margin:0 0 11.2px}
.lab-site-header h1{font-family:inherit;font-size:clamp(28.8px,3vw,41.6px);font-weight:700;line-height:1.2;letter-spacing:normal;color:#fff;margin:0 0 7.2px;overflow-wrap:anywhere}
.lab-site-header .lab-subtitle{font-size:1em;line-height:1.55;margin:0;color:#fff;overflow-wrap:anywhere}
.lab-site-header .lab-header-navigation{min-width:0;flex:0 1 58%;max-width:100%}
.lab-site-header :is(nav,[role="navigation"]){display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5em;margin:0;padding:0}
.lab-site-header :is(nav,[role="navigation"]) a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:8.8px 12.8px;border:1px solid #567481;border-radius:6px;background:transparent;color:#fff;text-decoration:none;font-size:.95em;font-weight:400;overflow-wrap:anywhere}
.lab-site-header :is(nav,[role="navigation"]) a[aria-current]{background:#286070}
.lab-site-header .lab-header-status{min-height:1.55em;margin-top:.5em;text-align:right}
body.formal-lab #freshness{color:#d9ecf2;font-size:.85rem;line-height:1.5;min-width:0;overflow-wrap:anywhere}
body.formal-lab #freshness[data-state="error"]{color:#ffd2c9}
body.formal-lab #freshness[data-state="stale"]{color:#fce0a7}
body.formal-lab>main,body.formal-lab>main.wrap{width:100%;max-width:1180px;min-width:0;margin:auto;padding:1.5rem 1.5rem 3rem}
body.formal-lab>main>:first-child{margin-top:0}
body.formal-lab :is(.panel,.card){min-width:0;margin:1.2rem 0;padding:1.4rem;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 2px 5px #122e3e05}
body.formal-lab :is(h2,h3,h4){font-family:inherit;color:var(--ink);overflow-wrap:anywhere}
body.formal-lab h2,body.formal-lab .stage-header h2{font-size:1.35rem;font-weight:700;line-height:1.35;letter-spacing:normal}
body.formal-lab h3{font-size:1.1rem;font-weight:700;line-height:1.4}
body.formal-lab :is(p,li){line-height:1.55;overflow-wrap:anywhere}
body.formal-lab .card>p{font-size:.94rem;color:var(--muted)}
body.formal-lab main :is(label,.form-label){font-family:inherit;font-size:.9rem;font-weight:600;line-height:1.5;min-width:0}
body.formal-lab main label span{font-size:.8rem}
body.formal-lab main :is(input,select,textarea){font-family:inherit;font-size:.95rem;line-height:1.5;min-width:0;max-width:100%;min-height:44px;padding:.62rem .7rem;border:1px solid #acbec7;border-radius:5px;color:var(--ink);background:#fff}
body.formal-lab main :is(input[type="checkbox"],input[type="radio"]){width:20px;min-height:20px;height:20px;padding:0;flex-shrink:0}
body.formal-lab main input[type="range"]{padding:0;background:transparent;border:0}
body.formal-lab main textarea{font-family:Consolas,monospace;font-size:.88rem}
body.formal-lab main :is(button,.file-button){display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:.875rem;font-weight:600;line-height:1.45;min-height:44px;max-width:100%;padding:.6rem .9rem;border:1px solid #bccdd5;border-radius:6px;background:#fff;color:#244757;white-space:normal;overflow-wrap:anywhere;cursor:pointer;text-align:center}
body.formal-lab main button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
body.formal-lab main :is(button,.file-button):not(:disabled):hover{background:#edf4f6;border-color:#80a8b5}
body.formal-lab main button.primary:not(:disabled):hover{background:#005665;border-color:#005665}
body.formal-lab main button:disabled{opacity:1;background:#eef2f4;border-color:#dae2e6;color:#71838d;cursor:default;box-shadow:none}
body.formal-lab .study-control-card{gap:1rem}
body.formal-lab .study-tools .actions{gap:.6rem}
body.formal-lab .study-tools strong{font-size:.95rem}
body.formal-lab .study-control-card>.persistence-tools{padding:1rem;background:#f7f9fa;border:1px solid #dce5e9;border-radius:8px;gap:.8rem}
body.formal-lab .persistence-tools>.actions{gap:.6rem;justify-content:flex-start}
body.formal-lab .cloud-input-tools{align-items:flex-end}
body.formal-lab .persistence-tools label.file-button{flex:0 1 auto;width:auto;margin:0}
body.formal-lab .file-button:has(input[type="file"]){flex-direction:column}
body.formal-lab .persistence-tools label:not(.file-button){font-size:.85rem;color:var(--muted)}
body.formal-lab .application-sync button{flex:0 1 auto}
body.formal-lab .application-sync span,body.formal-lab .help{font-size:.875rem;line-height:1.55}
body.formal-lab .steps a{font-size:.85rem;line-height:1.45;min-height:48px}
body.formal-lab .pill{font-size:.75rem}
body.formal-lab :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #73b8c6;outline-offset:2px}
body.formal-lab .file-button:focus-within{outline:3px solid #73b8c6;outline-offset:2px}
body.formal-lab .notice{border:1px solid #bfd4dc;border-left:1px solid #bfd4dc;background:#edf5f8;color:#244757;padding:.8rem 1rem;border-radius:6px}
body.formal-lab summary{min-height:44px;line-height:1.55;overflow-wrap:anywhere}
body.formal-lab .stage-number{font-family:inherit;font-weight:700}
body.formal-lab :is(.metrics strong,.hero-result>strong,.evaluation strong){font-family:inherit}
body.formal-lab #thermal-history-panel{margin-top:0}
body.formal-lab #thermal-history-panel>summary{min-height:44px;margin-bottom:0;padding-block:.5rem}
body.formal-lab #thermal-history-panel:not([open]){padding-block:.625rem}
body.formal-lab #thermal-history-panel[open]>summary{margin-bottom:1rem}
@media(max-width:800px){.lab-site-header .lab-header-inner{align-items:flex-start;flex-direction:column}.lab-site-header .lab-heading{flex:0 1 auto}.lab-site-header .lab-header-navigation{flex:0 1 auto;width:100%}.lab-site-header :is(nav,[role="navigation"]){justify-content:flex-start}.lab-site-header .lab-header-status{text-align:left}}
@media(max-width:480px){header.lab-site-header{padding:1.2em .8em}body.formal-lab>main,body.formal-lab>main.wrap{padding:1rem .8rem 2rem}body.formal-lab :is(.panel,.card){padding:1rem}body.formal-lab h2,body.formal-lab .stage-header h2{font-size:1.2rem}body.formal-lab main :is(input,select,textarea){font-size:1rem}}
@media(max-width:600px){body.formal-lab .study-tools>.actions,body.formal-lab .persistence-tools>div{width:100%}body.formal-lab .study-control-card .actions>:is(button,.file-button){flex:1 1 100%;width:100%}body.formal-lab .persistence-tools>div:first-child>:is(button,label){flex:1 1 100%;width:100%}body.formal-lab .application-sync button{width:100%}}
@media (max-width: 480px) {
  .lab-site-header .lab-header-navigation .local-lab-links {
    display: grid;
    grid-template-columns: minmax(44px, .65fr) repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .lab-site-header .lab-header-navigation .local-lab-links a {
    min-width: 0;
    padding-inline: 4px;
    text-align: center;
  }
}
@media(prefers-reduced-motion:reduce){body.formal-lab *{scroll-behavior:auto;transition:none}}
