/* Copied from index.html by _tools/build_tests.py --app. Do not edit. */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}.report-tabs { flex:none; margin-bottom:14px; }
#reportCollection { flex:1 1 auto; min-height:0; overflow:auto; }
#reportCureHistory { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.report-toolbar { display:flex; gap:16px; align-items:flex-end; padding:18px; }
.report-toolbar label { flex:1; max-width:650px; font-size:12px; color:var(--muted); }
.report-toolbar input { margin-top:6px; width:100%; }
#reportCards { display:grid; gap:12px; margin:14px 0; }
.report-entry { padding:15px; }
.report-entry-head { display:flex; gap:12px; align-items:flex-start; }
.report-entry-head > input { margin-top:5px; accent-color:var(--accent); }
.report-entry-head > details { flex:1; min-width:0; }
.report-entry-head summary { cursor:pointer; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.report-entry-head summary small { display:block; margin:4px 0 0 15px; font-size:11px; color:var(--muted); font-weight:400; }
.report-entry-body { padding:16px 0 0; }
.report-entry-body label { display:block; font-size:12px; color:var(--muted); }
.report-entry-body label input { width:100%; margin:5px 0 10px; }
.report-material,.report-note { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.report-metrics { border-collapse:collapse; width:100%; margin:14px 0; font-size:12px; }
.report-metrics th,.report-metrics td { padding:6px 8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.report-metrics th { font-weight:500; width:55%; color:var(--muted); }
.report-figures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.report-figures figure { margin:0; min-width:0; }
.report-figures img { display:block; width:100%; max-height:350px; object-fit:contain; border:1px solid var(--line); border-radius:5px; }
.report-figures figcaption { font-size:11px; color:var(--muted); margin-top:5px; }
@media(max-width:900px){#reportCollection{overflow:visible}#reportCureHistory{min-height:0}.report-toolbar{flex-wrap:wrap}.report-toolbar label{flex-basis:100%}}
@media(max-width:600px){.report-figures{grid-template-columns:1fr}.report-entry{padding:12px}.report-entry-head{gap:8px}#addReportBtn{font-size:11px;padding:7px 9px}.tactions{gap:6px}.ttl{min-width:0}.ttl h2{overflow-wrap:anywhere}#pageSub{display:none}}


/* Homepage illustrations, revision 66. */
#p-home .wl-art-note{margin:0;text-align:right;color:var(--muted);font-size:11px;line-height:1.4}
.page-reset{display:inline-flex;align-items:center;gap:6px}.page-reset svg{width:14px;height:14px}@media (max-width:600px){.page-reset span{display:none}.page-reset{padding-inline:10px}}
.wl-resume{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.wl-reset{display:inline-flex;align-items:center;gap:7px}.wl-reset svg{width:14px;height:14px}
#homeReset.armed{border-color:#f3cf8f!important;color:#f3cf8f!important;font-weight:600}
.eq-section{margin:28px 0 8px}.eq-section>p{margin:4px 0 12px;color:var(--muted)}
.eq-group{margin:8px 0}.eq-group>summary{font-weight:600}
.eq-list{display:grid;gap:0;margin:6px 0 4px}
.eq-list h4{margin:16px 0 4px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.eq{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px 24px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line,rgba(0,0,0,.08))}
.eq-f{font-family:'Cambria Math','STIX Two Math','Latin Modern Math',Cambria,Georgia,serif;font-size:17px;line-height:1.55;overflow-wrap:anywhere}
.eq-f sub,.eq-f sup{font-size:.72em}
.eq p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.eq-foot{margin:10px 0 4px;font-size:14px;color:var(--muted);line-height:1.5}
@media (max-width:760px){.eq{grid-template-columns:1fr}}
/* About & license: license card always visible; the rest opens on demand. */
.use-card{margin:22px 0 26px;padding:20px 22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.use-card h3{margin:0 0 4px}.use-card h4{margin:18px 0 6px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.use-lead{margin:0 0 12px;color:var(--muted)}
.use-credit{margin:20px 0 8px;font-size:14px;line-height:1.55;color:var(--muted)}.use-credit b{color:var(--ink)}
.use-licenses{display:flex;flex-wrap:wrap;gap:10px}
.use-licenses a{display:flex;flex-direction:column;gap:2px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:inherit;background:var(--accent-soft,#f3f0f8);min-width:190px}
.use-licenses a:hover{border-color:var(--accent)}
.use-licenses b{font-size:12px;font-weight:500;color:var(--muted)}.use-licenses span{font-size:16px;font-weight:600;color:var(--accent)}
.use-card .cite-text{margin:0 0 8px}
.use-card #citeCopy{margin:2px 0 4px}
.cite-tools{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}.cite-tools>details{flex:1 1 300px;margin:0}
.use-author{margin:14px 0 6px;font-size:13.5px;color:var(--muted)}
.use-card .license-notice{margin-top:10px}
.how-list{display:grid;gap:8px;margin:6px 0 10px}
.how-sec{margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 16px}
.how-sec[open]{padding-bottom:12px}
.how-sec>summary{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;list-style:none;cursor:pointer;padding:14px 26px 14px 0;position:relative}
.how-sec>summary::-webkit-details-marker{display:none}
.how-sec>summary::after{content:'';position:absolute;right:4px;top:50%;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.how-sec[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}
.how-sec>summary:hover span{color:var(--accent)}
.how-sec>summary span{font-weight:600;font-size:15.5px}.how-sec>summary small{color:var(--muted);font-size:13px;font-weight:400}
.how-sec-body{padding:6px 2px 4px}
.how-sec-body .how-sections{margin-top:6px}
.cite{margin:28px 0 8px}.cite-text{font-size:15px;line-height:1.6;padding:12px 16px;border-left:3px solid var(--accent);background:var(--accent-soft,#f3f0f8);border-radius:6px;overflow-wrap:anywhere}
.cite-bib{font-size:12.5px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
@media(max-width:560px){.tbar{gap:8px}.tbar .tactions{gap:4px;flex:none}.tbar .tactions .btn{padding:6px 9px;font-size:12.5px}.tbar .ttl{min-width:0;flex:1 1 auto}.tbar #pageTitle{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;hyphens:none}}

/* learn pages: book icon and tag */
.has-learn{display:flex!important;align-items:center;gap:7px}
.has-learn .learn-label{flex:1 1 auto;min-width:0}.wl-step .has-learn .learn-label{flex:none}
.has-learn .learn-ico{width:15px;height:15px;flex:none;opacity:.85}
.learn-tag{margin-left:auto;padding:1px 7px;border-radius:999px;font-size:10.5px;font-weight:600;letter-spacing:.04em;background:rgba(255,255,255,.14);color:rgba(255,255,255,.82);text-transform:none}
.wl-step .has-learn .learn-tag{margin-left:6px;background:#efe9f8;color:#4b2e83}
.wl-step .has-learn{display:inline-flex!important}
#pageTitle.is-learn::after{content:"Learn";display:inline-block;vertical-align:middle;margin-left:10px;padding:2px 9px;border-radius:999px;font:600 11px/1.5 Arial,sans-serif;letter-spacing:.05em;background:#efe9f8;color:#4b2e83;position:relative;top:-2px}
.sitem.has-learn{display:block!important}.sitem.has-learn .learn-label{display:inline}.sitem.has-learn .learn-ico{display:inline-block;vertical-align:-3px;margin-right:7px}.sitem.has-learn .learn-tag{display:inline-block;margin-left:4px;vertical-align:1px;padding:0 6px;font-size:10px}.sitem.has-learn .learn-ico{margin-right:5px!important}
.wl-chips .wl-break{flex-basis:100%;height:0}
.wl-chips{gap:5px!important;padding-left:14px!important;padding-right:14px!important}.wl-chips button{padding:3px 5px!important}@media (max-width:1500px){.wl-chips{gap:4px!important;padding-left:10px!important;padding-right:10px!important}.wl-chips .wl-row{gap:4px!important}.wl-chips button{padding:3px 4px!important;font-size:11px!important}}

.how-sec-body h4.model-h{margin:16px 0 4px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}.how-sec-body h4.model-h:first-child{margin-top:0}
.fields .mat-desc,.f .mat-desc{margin:-4px 0 2px!important;font-size:12px!important;line-height:1.4!important;color:var(--muted)}
#runMaterial{display:none!important}.mat-run-row{display:flex;gap:8px;flex-wrap:wrap}#runSaveMaterial:disabled{opacity:.6;cursor:default}.mat-run-row .btn{flex:1 1 auto}.mat-lib{margin-top:8px;display:flex;align-items:center;gap:8px}.mat-lib label{font-size:12px;color:var(--muted);flex:none}.mat-lib select{flex:1;min-width:0;font:inherit;font-size:13px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.mat-lib h4{margin:0 0 6px;font-size:12px;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}.mat-lib ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}.mat-lib li{display:flex;align-items:center;gap:8px;font-size:13px;padding:4px 8px;border-radius:8px}.mat-lib li.on{background:var(--accent-soft)}.mat-lib .linkbtn{text-align:left;flex:1;font-size:13px}.lib-tag{font-size:11px;color:var(--accent);font-weight:600}.lib-x{border:0;background:transparent;color:var(--muted);font-size:16px;cursor:pointer;padding:0 4px}.lib-x:hover{color:var(--ink)}.has-mat-pick{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mat-pick-label{font-size:13px;color:var(--muted)}select.mat-pick{max-width:100%;font:inherit;font-size:13px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.wl-chips{display:flex;flex-direction:column;gap:6px!important}.wl-chips .wl-break{display:none}.wl-row{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.wl-row-ico{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none;border-radius:6px;color:var(--muted)}.wl-row-ico svg,.wl-row-ico .learn-ico{width:15px;height:15px;opacity:1}.wl-row-learn .wl-row-ico{color:#4b2e83;background:#efe9f8}.wl-row-learn button{font-weight:600!important}

/* Layout: desktop-app shell with a 3-item sidebar. Each analysis is one screen:
   setup panel on the left (accordion, one Run button), output on the right. Extras live in menus. */
:root {
  --bg: #f1f0f5; --surface: #ffffff; --surface-2: #f8f7fa; --ink: #17202a; --muted: #586574;
  --line: #e0dce7; --accent: #4b2e83; --accent-ink: #ffffff; --accent-soft: #ece7f6;
  --side-bg: #241a3d; --side-ink: #ece8f6; --side-muted: #a79fbf; --side-hover: #33275a; --side-active: #4b3a7c; --side-line: #3a2f5c; --gold: #c9b37a;
  --ok: #17703f; --cold: #2563b8; --ok-soft: #e1f2e8; --bad: #b42318; --bad-soft: #fbe5e3; --warn: #8a5300; --warn-soft: #fbefd9;
  --s-air: #6b7785; --s-top: #c2410c; --s-mid: #6a35c9; --s-bot: #0f766e; --s-tm: #8a5a12; --s-tb: #4d7c0f; --s-6: #be185d;
  --tool-invar: #9aa3ad; --tool-steel: #7f8a96; --tool-alum: #b9c7d4; --tool-comp: #3d4652;
  --part: #cfd4da; --core: #e9d9a6; --shadow: 0 8px 24px rgba(20, 16, 40, .16);
  --f-display: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 11px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #11141b; --surface: #1a1e28; --surface-2: #222734; --ink: #e5eaef; --muted: #98a5b3;
  --line: #333b48; --accent: #ab95e0; --accent-ink: #160f26; --accent-soft: #2a2340;
  --side-bg: #120e1d; --side-ink: #e6e1f3; --side-muted: #8e86a8; --side-hover: #1f1832; --side-active: #34295a; --side-line: #241d38; --gold: #d3bf86;
  --ok: #52c48c; --cold: #6aa3f0; --ok-soft: #173326; --bad: #f2776f; --bad-soft: #3a1c1a; --warn: #f0b35a; --warn-soft: #3a2c15;
  --s-air: #9aa7b4; --s-top: #fb8c4c; --s-mid: #b59cff; --s-bot: #34d1bd; --s-tm: #d8a65a; --s-tb: #a4d466; --s-6: #f472b6;
  --tool-invar: #6f7882; --tool-steel: #5d6773; --tool-alum: #8796a5; --tool-comp: #39424e;
  --part: #4a525c; --core: #6b5d33; --shadow: 0 8px 24px rgba(0, 0, 0, .5); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #11141b; --surface: #1a1e28; --surface-2: #222734; --ink: #e5eaef; --muted: #98a5b3;
  --line: #333b48; --accent: #ab95e0; --accent-ink: #160f26; --accent-soft: #2a2340;
  --side-bg: #120e1d; --side-ink: #e6e1f3; --side-muted: #8e86a8; --side-hover: #1f1832; --side-active: #34295a; --side-line: #241d38; --gold: #d3bf86;
  --ok: #52c48c; --cold: #6aa3f0; --ok-soft: #173326; --bad: #f2776f; --bad-soft: #3a1c1a; --warn: #f0b35a; --warn-soft: #3a2c15;
  --s-air: #9aa7b4; --s-top: #fb8c4c; --s-mid: #b59cff; --s-bot: #34d1bd; --s-tm: #d8a65a; --s-tb: #a4d466; --s-6: #f472b6;
  --tool-invar: #6f7882; --tool-steel: #5d6773; --tool-alum: #8796a5; --tool-comp: #39424e;
  --part: #4a525c; --core: #6b5d33; --shadow: 0 8px 24px rgba(0, 0, 0, .5); color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--sideW, 210px) minmax(0, 1fr); height: 100%; }
.side { position: relative; background: var(--side-bg); color: var(--side-ink); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.sbrand { padding: 18px 18px 16px; border-bottom: 1px solid var(--side-line); }
.sbrand h1 { font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.sbrand h1 b { color: var(--gold); font-weight: 700; }
.brand-home { display:block; width:100%; border:0; padding:0; background:none; color:inherit; font:inherit; letter-spacing:inherit; text-align:left; cursor:pointer; border-radius:3px; }
.brand-home:hover { opacity:.9; }
.sbrand p { margin: 2px 0 0; color: var(--side-muted); font-size: 12px; }
.snav { padding: 12px 10px; display: grid; gap: 4px; }
.sitem { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; color: var(--side-ink); text-align: left; padding: 10px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.sitem svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.sitem:hover { background: var(--side-hover); }
.sitem[aria-current="page"] { background: var(--side-active); font-weight: 600; }
.sitem[aria-current="page"] svg { opacity: 1; }
.sitem .tag { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--side-muted); }
.sfoot { margin-top: auto; padding: 10px; border-top: 1px solid var(--side-line); }
.sfoot .sitem { font-size: 13px; color: var(--side-muted); padding: 8px 12px; }
.sfoot .credit { margin: 6px 12px 6px; font-size: 11.5px; line-height: 1.45; color: var(--side-muted); }
.sfoot .credit a { color: var(--side-muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.sfoot .credit a:hover { color: var(--side-ink); }
.about .byline { margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.about .byline a { color: var(--accent); }

.main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.tbar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 58px; }
.menubtn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 36px; height: 34px; cursor: pointer; padding: 0; flex: none; }
.menubtn svg { width: 18px; height: 18px; display: block; margin: auto; }
.ttl { min-width: 0; }
.ttl h2 { font-size: 23px; font-weight: 600; line-height: 1.15; }
.ttl p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.tactions { margin-left: auto; display: flex; gap: 8px; align-items: center; position: relative; }
.content { overflow: auto; padding: 20px 24px; min-height: 0; }
.sbar { display: flex; justify-content: flex-end; gap: 12px; padding: 5px 18px; background: var(--surface); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.sbar .warn { color: var(--warn); }
.sbar .okc { color: var(--ok); }

/* ---------- generic ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; min-height: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; align-content: start; }
.fields.matrows { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }   /* material | thickness */
.f { display: grid; gap: 6px; min-width: 0; align-content: start; }
.f.full { grid-column: 1 / -1; }
.f label, .lbl { font-size: 14px; color: var(--muted); font-weight: 500; }
.f label i { font-style: normal; color: var(--muted); font-family: var(--f-mono); font-size: 11px; }
input[type=number], input[type=text], select, textarea {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2);
  font-family: var(--f-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
select { font-family: var(--f-body); }
input.err { border-color: var(--bad); background: var(--bad-soft); }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.chk input { margin-top: 3px; }
input[type=checkbox] { accent-color: var(--accent); }
.msg { padding: 9px 12px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); font-weight: 500; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface-2); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.model-box .mb-icon{background:none;color:var(--accent);border:1px solid var(--line)}.model-box .mb-icon svg{width:16px;height:16px}.mb-resin{margin:12px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px}.mb-resin h4{margin:0 0 4px;font:600 14px var(--f-body);display:flex;align-items:center;gap:8px}.mb-resin .hint{margin:4px 0}.mb-resin h5{margin:10px 0 2px;font:600 13px var(--f-body);color:var(--muted)}.mb-eq{margin:6px 0;padding:6px 8px;border-radius:6px;background:var(--accent-soft,#f3f0f8);font-size:13.5px;line-height:1.7;color:var(--ink);overflow-x:auto}.mb-ref a{color:var(--accent)}.mb-more{margin-top:10px}.mb-use{display:none;font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px;background:var(--accent);color:var(--accent-ink)}html:not([data-resin="890"]) .mb-resin[data-for="8552"],html[data-resin="890"] .mb-resin[data-for="890"]{border-color:var(--accent)}html:not([data-resin="890"]) .mb-resin[data-for="8552"] .mb-use,html[data-resin="890"] .mb-resin[data-for="890"] .mb-use{display:inline-block}
.rz-switch{margin-bottom:12px}.rz-switch .lbl{display:block;margin-bottom:6px}.rz-switch .hint{margin-top:6px}
.seg.full { display: flex; flex-wrap: nowrap; } .seg.full button { flex: 1; padding-inline: 6px; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: 13px; white-space: nowrap; }
.btn svg { width: 14px; height: 14px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.run { width: 100%; min-height:46px; padding: 12px; font-size: 15px; }
.btn.small { padding: 3px 9px; font-size: 12.5px; }
.btn.icon { padding: 6px 9px; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .55; cursor: default; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
table.grid { border-collapse: collapse; width: 100%; font-size: 13px; }
table.grid th, table.grid td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid th { font-weight: 600; color: var(--muted); font-size: 11.5px; }
table.grid td { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
table.grid th:first-child, table.grid td:first-child, table.grid th.t, table.grid td.t { text-align: left; }
table.grid td.t { font-family: var(--f-body); }
.tablewrap { overflow-x: auto; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.empty { color: var(--muted); padding: 28px 8px; text-align: center; white-space: normal !important; }

/* popover menus */
.pop { position: absolute; z-index: 50; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; display: grid; gap: 1px; }
.pop button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.pop button:hover:not(:disabled) { background: var(--surface-2); }
.pop button:disabled { color: var(--muted); opacity: .6; cursor: default; }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.popwrap { position: relative; display: inline-flex; }

/* ---------- analysis screen ---------- */
.page { height: 100%; min-height: 0; }
.work { display: grid; grid-template-columns: var(--setupW, 380px) 14px minmax(0, 1fr); }
.setup { display: flex; flex-direction: column; overflow: hidden; }
.setup-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.setup-foot { padding: 15px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.acc { border-bottom: 1px solid var(--line); }
.acc-h { display: grid; grid-template-columns: 24px minmax(0, 1fr) 14px; gap: 2px 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; cursor: pointer; }
.acc-h:hover { background: var(--surface-2); }
.acc-h .n { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.acc-h .t { font-weight: 600; font-size: 15px; }
.acc-h .s { grid-column: 2; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-h .chev { grid-row: 1 / span 2; grid-column: 3; width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.acc-h[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-h[aria-expanded="true"] .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.acc-h[aria-expanded="true"] .s { display: none; }
.acc-b { padding: 3px 18px 21px; }
.rstrip { display: grid; gap: 4px; }
.rrow { display: grid; grid-template-columns: 128px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.rrow i { display: block; height: 8px; border-radius: 2px; background: var(--line); }
.rrow b { font-family: var(--f-mono); font-weight: 500; text-align: right; color: var(--ink); }
.rrow.big { color: var(--ink); } .rrow.big i { background: var(--accent); }
details.rdet { margin: 8px 0 14px; }
.verdict { position: relative; }
input.sl { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 16px; margin: 2px 0 0; padding: 0; background: transparent; cursor: pointer; --p: 50%; }
input.sl::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p), var(--line) var(--p)); }
input.sl::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
input.sl::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input.sl::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input.sl::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
input.sl:focus-visible { outline: none; } input.sl:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }
.cyc-sl { display: grid; grid-template-columns: 72px minmax(0,1fr) minmax(0,1fr) 46px 20px; gap: 6px; margin: -3px 0 3px; }
input.sl:disabled { opacity: .4; cursor: default; }
textarea { width: 100%; resize: vertical; font: inherit; line-height: 1.4; }
.livesw { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; cursor: pointer; user-select: none; }
.livesw input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.mapsum { display: flex; flex-wrap: wrap; gap: 10px; }
.mapsum .kpi { flex: 1 1 180px; }
.mapgrid { position: absolute; inset: 0; }
.mapgrid svg { width: 100%; height: 100%; display: block; }
.mapgrid .hit { cursor: crosshair; }
.ptable tr[data-prop] { cursor: pointer; }
.ptable tr[data-prop]:hover td { background: var(--surface-2); }
.ptable tr.on td { background: var(--accent-soft); }
.ptable tr.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.ptable tr.grp td { font-family: var(--f-body); font-weight: 600; color: var(--muted); font-size: 11.5px; padding-top: 12px; background: none; cursor: default; }
.plots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 22px; }
.plots.one { grid-template-columns: 1fr; }
.mini { min-width: 0; }
.mini .mt { display: flex; justify-content: space-between; flex-wrap:wrap; gap: 6px; font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.mini .mt span { font-weight: 400; color: var(--muted); font-family: var(--f-mono); white-space: nowrap; }
.mini .mt button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; }
.mini .mc { position: relative; height: 205px; }
.plots.one .mini .mc { height: 340px; }
.mlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin: 0 0 8px; }
.mlegend:empty { display: none; }
.mlegend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.ptable td.pick { width: 22px; padding-right: 0; text-align: center; color: var(--accent); font-family: var(--f-body); }
.comp-wrap { margin: 14px 0 0; }
table.comp { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.comp th { text-align: right; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 3px 0 4px 8px; }
table.comp td { padding: 4px 0 4px 8px; border-top: 1px solid var(--line); text-align: right; font-family: var(--f-mono); }
table.comp td:first-child, table.comp th:first-child { text-align: left; padding-left: 0; font-family: var(--f-body); color: var(--ink); }
table.comp tr.sum td { font-weight: 600; }
.comp-wrap p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ctitle { font-size: 13px; font-weight: 600; display: block; margin: 2px 0 4px; }
.eqs { padding: 12px 16px; flex: none; }
.eqs summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.eqs h4 { margin: 14px 0 6px; font-size: 12.5px; color: var(--muted); }
.eqs p { margin: 4px 0; font-size: 13px; line-height: 1.5; }
.eqs p.eq { font-family: var(--f-mono); font-size: 12.5px; background: var(--surface-2); border-radius: 6px; padding: 6px 10px; overflow-x: auto; }

.mattable table.fdata td, .mattable table.fdata th { padding: 4px 4px; font-size: 11.5px; white-space: nowrap; color: var(--ink); }
.mattable table.fdata th { color: var(--muted); font-weight: 500; vertical-align: bottom; }
.mattable table.fdata td.t { color: var(--muted); }

.maptip { position: fixed; z-index: 55; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 7px 9px; font-size: 12px; line-height: 1.45; color: var(--ink); max-width: 260px; }
.ptabs { display: flex; border-bottom: 1px solid var(--line); margin: -4px 0 14px; }
.ptabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 4px 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ptabs button:hover { color: var(--ink); }
.ptabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
details.matprops { margin-top: -4px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.filerow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fname { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.headline.ana { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi.main { background: var(--accent-soft); border-color: var(--accent); }
.steps { padding: 14px 18px; }
.steps h4 { margin: 0 0 8px; font-size: 13px; }
.steps ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.steps ol b { color: var(--ink); font-weight: 600; }
.steps .eq { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.mattable table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mattable td { padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.mattable td:last-child { text-align: right; color: var(--ink); font-family: var(--f-mono); white-space: nowrap; padding-left: 8px; }
.mattable p { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.subsect { font-size: 12px; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
details.opt { margin-top: 14px; }
details.opt summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
details.opt[open] summary { margin-bottom: 10px; }

.cyc { display: grid; gap: 5px; }
.cyc-row { display: grid; grid-template-columns: 72px minmax(0,1fr) minmax(0,1fr) 46px 20px; gap: 6px; align-items: center; }
.cyc-row .d { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.cyc-row.head { font-size: 11px; color: var(--muted); }
.cyc-row select,.cyc-row input { padding: 8px 5px; font-size: 14px; }
.cyc-row .x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 17px; line-height: 1; padding: 0; }
.cyc-row .x:hover { color: var(--bad); }
.cyc-row .blank { font-size: 11px; color: var(--muted); text-align: center; }
.cyc-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 10px; }
.total { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.cychead { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 12px; }

.view { display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; }
.view > .grow { flex: 1 1 auto; min-height: 340px; }
.work > .view { overflow-y: auto; }
.work > .view { container-type: inline-size; }
@container (max-width: 780px) { .headline { grid-template-columns: repeat(3, minmax(0, 1fr)); } .headline .verdict { grid-column: 1 / -1; } }
@container (max-width: 430px) { .headline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.view > .details { flex: none; height: var(--detailsH, 240px); overflow: auto; }
.view > .steps, .view > .headline { flex: none; }   /* never squeeze these; the column scrolls instead */
.view > .splitter.h { margin: -6px 0; }
.mini { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mini.top { margin: 0 0 12px; padding: 0 0 10px; border-top: 0; border-bottom: 1px dashed var(--line); }
.tip { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 600 10.5px/1 var(--f-body); cursor: pointer; padding: 0; margin-left: 4px; vertical-align: 1px; }
.tip:hover, .tip[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.tipbox { position: fixed; z-index: 70; max-width: 290px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.45; padding: 9px 11px; border-radius: 7px; box-shadow: var(--shadow); }
.ferr { color: var(--bad); font-size: 12px; margin: 6px 0 0; }
.f input:disabled, .f select:disabled, .cyc-row input:disabled, .cyc-row select:disabled { opacity: .7; cursor: not-allowed; background-image: linear-gradient(45deg, transparent 46%, var(--line) 46%, var(--line) 54%, transparent 54%); background-size: 6px 6px; }
.preset { display: flex; gap: 10px; align-items: flex-start; margin: 10px 14px 4px; padding: 10px 12px; border-radius: 7px; background: var(--accent-soft); }
.preset svg { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 2px; }
.preset div { flex: 1; min-width: 0; font-size: 12.5px; } .preset p { margin: 2px 0 0; color: var(--muted); }
.examples { margin-top: 10px; display: grid; gap: 8px; justify-items: center; }
.examples > span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.exgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(520px, 100%); }
.ex { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.ex:hover { border-color: var(--accent); }
.ex b { font-size: 13px; color: var(--ink); } .ex span { font-size: 12px; color: var(--muted); }
button.kpi { text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.kpi:hover { border-color: var(--accent); }
.kpi em { font-style: normal; font-size: 11px; color: var(--muted); }
.view.outdated .headline, .view.outdated .panel { opacity: .55; }
.btn.run.uptodate { background: var(--surface); color: var(--muted); border-color: var(--line); font-weight: 500; }
.cmp { margin: 8px 8px 4px; font-size: 12.5px; padding: 8px 10px; border-radius: 6px; background: var(--surface-2); }
.lbl-in { border: 1px solid transparent; background: transparent; font: inherit; font-family: var(--f-body); font-size: 12.5px; padding: 3px 5px; border-radius: 4px; width: 15ch; color: var(--ink); }
.lbl-in:hover, .lbl-in:focus { border-color: var(--line); background: var(--surface-2); }
table.grid input.lbl-in { width: 17ch; min-width: 17ch; }
.minichart { position: relative; height: 180px; }
.emptystate { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; color: var(--muted); }
.emptystate svg { width: 120px; height: 70px; color: var(--line); }
.emptystate h3 { font-size: 17px; font-weight: 600; color: var(--ink); }
.emptystate p { margin: 0; max-width: 42ch; font-size: 13px; }
.emptystate b { color: var(--accent); }
.panel { padding: 18px 20px; display: flex; flex-direction: column; min-height: 0; }
.ptitle { font-family: var(--f-display); font-size: 15px; font-weight: 600; }
.chartbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chartfill { position: relative; flex: 1 1 auto; min-height: 220px; }
.slider { display: flex; gap: 10px; align-items: center; font-size: 12.5px; margin-top: 8px; }
.slider input { flex: 1; min-width: 0; accent-color: var(--accent); }
.slider output { font-family: var(--f-mono); min-width: 9ch; text-align: right; }
.chartnote { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; flex: 1 1 auto; min-height: 0; }
.preview > div { display: flex; flex-direction: column; min-height: 0; }
.stacksvg { width: 100%; max-height: 210px; display: block; margin: 0 auto; }
.callout { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 13px; }
.callout b { color: var(--accent); }

.stale { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-weight: 500; font-size: 13px; }
.headline { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 10px; }
.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); min-width: 0; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }
.verdict strong { font-family: var(--f-display); font-size: 16px; font-weight: 600; display: block; line-height: 1.25; }
.verdict p { margin: 2px 0 0; font-size: 12.5px; }
.verdict .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: currentColor; flex: none; }
.verdict .mark svg { width: 12px; height: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 1px; align-content: start; min-width: 0; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi strong { font-family: var(--f-mono); font-weight: 500; font-size: 23px; font-variant-numeric: tabular-nums; }
.kpi strong small { font-size: 12px; color: var(--muted); }
.kpi.bad strong { color: var(--bad); }
.details { padding: 12px 16px; }
.details .hint { margin-top: 8px; }

.runspage { display: flex; flex-direction: column; }
.runspage .tablecard { flex: none; height: var(--runsH, 300px); overflow: auto; padding: 4px 8px; }
#reportCureHistory > .grow { flex: 1 1 auto; min-height: 0; }
.splitter { position: relative; flex: none; z-index: 4; touch-action: none; }
.splitter::after { content: ""; position: absolute; border-radius: 2px; background: transparent; transition: background .15s; }
.splitter.v { cursor: col-resize; width: 14px; }
.splitter.v::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.splitter.h { cursor: row-resize; height: 12px; }
.splitter.h::after { left: 0; right: 0; top: 5px; height: 2px; }
.splitter:hover::after, .splitter:focus-visible::after, body.dragging .splitter::after { background: var(--accent); }
.splitter:focus-visible { outline: none; }
.side > .splitter.v { position: absolute; top: 0; bottom: 0; right: 0; width: 8px; }
.side > .splitter.v::after { left: auto; right: 0; }
body.dragging { user-select: none; } body.drag-x, body.drag-x * { cursor: col-resize !important; } body.drag-y, body.drag-y * { cursor: row-resize !important; }
.about { max-width: 820px; padding: 18px 20px; }
.about p { margin: 0 0 10px; color: var(--muted); max-width: 80ch; }
.about code { font-family: var(--f-mono); font-size: 12.5px; }
kbd { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }

dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 18px; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 8, 20, .45); }
dialog h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
dialog .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.toast { position: fixed; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-size: 13px; z-index: 60; max-width: calc(100% - 32px); }
.scrim { display: none; }

@media (max-width: 1180px) {
  .headline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .headline .verdict { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 240px; transform: translateX(-102%); transition: transform .2s; padding-top: env(safe-area-inset-top, 0px); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .menubtn { display: block; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .work > .view { overflow: visible; }
  .page { height: auto; }
  .setup { overflow: visible; } .setup-body { overflow: visible; }
  .preview { grid-template-columns: minmax(0, 1fr); }
  .panel.grow { min-height: 400px; }
  .runspage .tablecard { height: auto; max-height: none; }
  .splitter { display: none !important; }
  .view > .details { height: auto; }
  #reportCureHistory > .grow { margin-top: 12px; }
  .content { padding: 12px; }
  .tbar { padding: 8px 12px; }
  .stacksvg { max-height: 260px; }
  .chartfill { min-height: 280px; }
}
@media (max-width: 520px) { .headline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .headline.ana { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
#bData { overflow-x:auto; }
.sbrand h1 { text-wrap:initial; font-size:19px; white-space:nowrap; }
.brand-lab { display:block; font-weight:500; }
/* Visual laminate builder */
.lam-setup .setup-body { padding:20px 16px; }
.lam-builder-head h3 { font-size:26px; margin:3px 0 6px; }
.lam-eyebrow { font-size:10px; font-weight:600; letter-spacing:.13em; color:var(--muted); }
.lam-material { font-size:13px; color:var(--muted); margin:0; }
.lam-presets { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0; }
.lam-presets .btn { flex:1; padding:7px 8px; font-size:11px; }
.lam-sequence-head { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin-bottom:8px; }
.lam-ply-list { display:grid; gap:5px; max-height:260px; overflow-y:auto; padding:2px; }
.lam-ply { display:grid; grid-template-columns:20px 7px minmax(58px,1fr) auto; align-items:center; gap:7px; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:7px; padding:7px 8px; width:100%; }
.lam-ply[aria-current=true] { border-color:var(--accent); }
.lam-ply-num { font-size:11px; color:var(--muted); font-family:var(--f-mono); }
.lam-ply-swatch { height:25px; border-radius:3px; opacity:.85; }
.lam-ply-angle { display:flex; align-items:center; gap:4px; font-size:12px; }
.lam-ply-angle input { width:100%; min-width:0; padding:8px 3px; border:1px solid var(--line); border-radius:5px; background:var(--surface); color:var(--ink); text-align:center; font:14px var(--f-mono); }
.lam-actions { display:flex; gap:3px; }
.lam-actions .btn { min-width:26px; padding:2px 5px; height:29px; }
.lam-add { margin:8px 0 12px; width:100%; border:1px dashed var(--line); background:transparent; color:var(--accent); border-radius:6px; padding:8px; cursor:pointer; font:inherit; font-size:12px; }
.lam-thickness { margin-top:16px; }
.lam-ply-definition .seg { margin:7px 0 12px; }
.lam-ply-definition .seg button { font-size:11px; padding:7px 5px; }
.lam-ply-derived { font-size:12px; margin:10px 0; color:var(--muted); }
.lam-ply-derived b { color:var(--ink); font-family:var(--f-mono); font-weight:500; }
.lam-areal { display:grid; grid-template-columns:1fr auto; gap:5px 12px; font-size:11px; color:var(--muted); margin-top:10px; }
.lam-areal dt,.lam-areal dd { margin:0; }
.lam-areal dd { text-align:right; font-family:var(--f-mono); }
.lam-areal .lam-areal-total { border-top:1px solid var(--line); padding-top:6px; color:var(--ink); }
.lam-mirror { margin-top:16px; }
.lam-mirror-note { font-size:11px; margin:5px 0 14px; }
.lam-settings { border-top:1px solid var(--line); margin-top:12px; padding-top:12px; }
.lam-settings summary { cursor:pointer; font-size:12px; color:var(--muted); }
.lam-settings .fields { margin-top:12px; }
.lam-settings textarea { width:100%; font:inherit; padding:9px; }
.lam-view { gap:12px; }
.lam-overview { padding:18px 20px; flex:none; }
.lam-overview-top { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.lam-overview h3 { font-family:var(--f-mono); font-size:19px; margin:7px 0; overflow-wrap:anywhere; }
.lam-badge { display:inline-flex; padding:5px 9px; border-radius:20px; background:var(--ok-soft); color:var(--ok); font-size:11px; white-space:nowrap; }
.lam-badge.coupled { background:var(--warn-soft); color:var(--warn); }
.lam-summary { display:flex; flex-wrap:wrap; gap:5px 18px; font-size:12px; color:var(--muted); }
.lam-summary b { color:var(--ink); font-weight:500; }
.lam-visuals { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:12px; flex:none; }
.lam-visual-card { display:flex; flex-direction:column; padding:18px; }
.lam-visual-heading { display:flex; flex-direction:column; gap:4px; }
.lam-visual-heading h3 { font-size:18px; }
.lam-visual-heading > span { color:var(--muted); font-size:11px; min-height:16px; }
.lam-stack { flex:1; display:flex; align-items:center; justify-content:center; min-height:260px; }
.lam-stack svg { width:100%; max-height:365px; display:block; overflow:visible; }
.lam-stack g[role=button] { cursor:pointer; outline:none; }
.lam-stack g[role=button]:focus-visible { filter:drop-shadow(0 0 3px var(--accent)); }
.lam-color-key { display:flex; justify-content:center; gap:13px; font-size:11px; color:var(--muted); }
.lam-color-key span { display:flex; gap:5px; align-items:center; }
.lam-color-key i { width:8px; height:8px; border-radius:50%; }
.lam-polar { display:flex; justify-content:center; margin-top:5px; }
.lam-polar svg { width:100%; max-width:280px; height:auto; display:block; }
.lam-direction-readout { display:flex; justify-content:space-between; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.lam-direction-readout strong { font-size:21px; color:var(--ink); font-family:var(--f-mono); font-weight:500; }
#lamDirection { width:100%; accent-color:var(--accent); margin:10px 0 5px; }
#lamPolarScale { text-align:center; margin:0; font-size:10px; }
.lam-moduli { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; flex:none; }
.lam-modulus { padding:15px 18px; }
.lam-modulus > span { color:var(--muted); font-size:11px; }
.lam-modulus > div { font-family:var(--f-mono); font-size:27px; margin-top:6px; }
.lam-modulus small { font:12px var(--f-body); color:var(--muted); }
.lam-modulus p { font-size:10px; color:var(--muted); margin:4px 0 0; }
.lam-details { flex:none; }
.lam-details > summary { padding:15px 18px; font-size:13px; cursor:pointer; font-weight:500; }
.lam-detail-body { padding:0 18px 18px; }
.lam-matrix-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.lam-matrix-grid .grid th,.lam-matrix-grid .grid td { padding:6px; font-size:11px; }
@container (max-width:700px) { .lam-visuals { grid-template-columns:1fr; } .lam-matrix-grid { grid-template-columns:1fr; } .lam-overview-top { align-items:flex-start;flex-direction:column;gap:2px; } }
@media (max-width:900px) { .lam-setup .setup-body { padding:18px; } .lam-visuals { grid-template-columns:repeat(2,minmax(0,1fr)); } .lam-ply-list { max-height:210px; } }
@media (max-width:600px) { .lam-visuals { grid-template-columns:1fr; } .lam-moduli { gap:7px; } .lam-modulus { padding:12px 10px; } .lam-modulus > div { font-size:23px; } .lam-modulus > span { font-size:10px; } .lam-overview { padding:16px; } .lam-overview-top { flex-direction:column;align-items:flex-start; } }

/* Laminate tables grow with their content; horizontal scrolling stays within the card. */
#p-lam .view > .details { height:auto; overflow:visible; }
#p-lam textarea { color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:6px; resize:vertical; }
#lamMatrices h4 { margin:16px 0 6px; }
#lamStack .tablewrap { max-height:450px; }
#lamProps th { white-space:normal; min-width:110px; }
.failure-table { margin:10px 0; width:100%; }
.failure-table td:first-child { white-space:normal; text-align:left; }
#bFailureReferences p { margin:8px 0; }
#bFailureReferences a { overflow-wrap:anywhere; }

.vt-failure-summary { margin-top:18px; padding:12px; border:1px solid var(--line); border-radius:6px; }
.vt-failure-summary h4 { font-size:12px; margin:0 0 7px; }
.vt-failure-summary p { font-size:12px; margin:5px 0; color:var(--muted); }
.vt-failure-summary b { color:var(--ink); }
.vt-utilization { height:5px; border-radius:5px; background:var(--surface-2); overflow:hidden; margin:10px 0 6px; }
.vt-utilization i { height:100%; display:block; background:var(--accent); transition:width .08s; }
.vt-utilization.limit i { background:var(--bad); }
.vt-ply-strip { margin:9px 0 0; padding:0 1px; display:flex; gap:4px; overflow-x:auto; }
.vt-ply-column { appearance:none; border:0; background:none; padding:0; cursor:pointer; flex:0 0 24px; text-align:center; font:9px var(--f-mono); color:var(--muted); }
.vt-ply-column > div { height:38px; border:1px solid var(--line); border-radius:3px; display:flex; align-items:flex-end; overflow:hidden; }
.vt-ply-column i { display:block; width:100%; min-height:1px; background:var(--accent); }
.vt-ply-column.governing > div { border-color:var(--bad); }
.vt-failure-summary.at-failure .vt-ply-column.governing i { background:var(--bad); }
.vt-ply-column:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.vt-ply-strip-label { margin:7px 0 0; font-size:10px; color:var(--muted); }

/* Virtual testing: a linked specimen, experiment curve and compact property cards. */
.vt-setup .setup-body { padding:20px 16px; }
.vt-tabs { margin:0 0 22px; }
.vt-intro h3 { font-size:25px; margin:4px 0 8px; }
.vt-intro p { margin:5px 0; font-size:13px; color:var(--muted); }
.vt-layup { font:12px var(--f-mono); color:var(--ink)!important; overflow-wrap:anywhere; }
.vt-inputs { margin-top:24px; }
.vt-assumption { padding:10px 12px; border-radius:6px; background:var(--warn-soft); color:var(--warn); font-size:11px; margin:10px 0 0; }
.vt-compare { display:flex; gap:7px; margin-top:22px; }
.vt-compare .btn:first-child { flex:1; }
.vt-setup .setup-foot .hint { margin:0; font-size:11px; }
.vt-stage,.vt-chart,.vt-controls,.vt-results,.vt-equations { flex:none; }
.vt-top { display:grid; grid-template-columns:minmax(0,1fr) 215px; gap:12px; flex:none; }
.vt-top .vt-results { grid-template-columns:1fr; gap:10px; }
.vt-stage { padding:17px 20px 8px; }
.vt-card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.vt-card-head h3 { font-size:20px; }
.vt-state { font-size:11px; color:var(--ok); background:var(--ok-soft); padding:4px 9px; border-radius:20px; white-space:nowrap; }
.vt-state.limit { color:var(--warn); background:var(--warn-soft); }
.vt-specimen svg { display:block; width:100%; height:220px; }
.vt-scale { margin:0; font-size:10px; color:var(--muted); text-align:right; }
.vt-controls { padding:13px 20px; }
.vt-readouts { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; color:var(--muted); }
.vt-readouts b { font:18px var(--f-mono); color:var(--ink); margin-left:5px; }
.vt-controls input[type=range] { width:100%; accent-color:var(--accent); margin:14px 0 7px; }
.vt-control-foot { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.vt-control-foot > span { font-size:10px; color:var(--muted); }
.vt-play-buttons { display:flex; gap:6px; }
.vt-chart { padding:17px 20px 10px; }
.vt-chart svg { width:100%; display:block; height:auto; min-height:190px; }
.vt-chart-key { display:flex; flex-wrap:wrap; gap:14px; font-size:11px; color:var(--muted); margin-top:3px; }
.vt-chart-key > span { display:flex; gap:6px; align-items:center; }
.vt-chart-key i { display:inline-block; width:18px; border-top:3px solid var(--accent); }
.vt-chart-key .vt-old-key { border-top:2px dashed var(--muted); }
.vt-reference { font-size:11px; margin:7px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.vt-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.vt-result { padding:14px 17px; }
.vt-result > span { font-size:11px; color:var(--muted); }
.vt-result > div { font:25px var(--f-mono); margin-top:6px; }
.vt-result small { font:11px var(--f-body); color:var(--muted); }
.vt-note { font-size:11px; color:var(--warn); margin:0; padding:10px 15px; flex:none; background:var(--warn-soft); border-radius:6px; }
.vt-equations { padding:0 18px 15px; }
.vt-equations summary { padding:14px 0 0; font-size:13px; cursor:pointer; }
.vt-equations p { font-size:12px; color:var(--muted); margin:10px 0 0; }
.vt-equations .eq { font:12px var(--f-mono); color:var(--ink); }
@container (max-width:760px) { .vt-top { grid-template-columns:1fr; } .vt-top .vt-results { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@container (max-width:480px) { #vtGraph svg text { font-size:18px; } .vt-specimen svg text { font-size:22px; } .vt-specimen svg text[font-size="11"] { font-size:18px; } }
@media(max-width:600px) { .vt-results { gap:7px; } .vt-result { padding:12px 10px; } .vt-result > div { font-size:21px; } .vt-readouts b { font-size:15px; } .vt-readouts { gap:7px; font-size:11px; } .vt-card-head { align-items:flex-start; } .vt-card-head h3 { font-size:18px; } .vt-stage,.vt-chart,.vt-controls { padding-left:14px; padding-right:14px; } .vt-specimen svg { height:180px; } }


/* Quiet working pages: a clear plot, essential controls, detail on demand. */
.work .card { box-shadow:0 2px 10px #20143104; }
.work .setup { box-shadow:none; }
.work .setup-body > details.opt { padding:14px 0 0; border-top:1px solid var(--line); }
.work .setup-body > details.opt:first-child { border-top:0; }
.work details > summary { outline-offset:4px; }
.work details > summary:focus-visible { outline:2px solid var(--accent); border-radius:3px; }
.disclosure { flex:none; padding:0; overflow:hidden; }
.disclosure > summary { cursor:pointer; padding:16px 20px; color:var(--ink); font-size:14px; font-weight:500; }
.disclosure > summary:hover { background:var(--surface-2); }
.disclosure[open] > summary { border-bottom:1px solid var(--line); }
.disclosure-body { padding:16px 20px 20px; }
.disclosure-body > .hint:first-child { margin:0 0 14px; }
.disclosure-body .steps { padding:0; }
.plot-picker { padding:3px 6px; border:1px solid var(--line); border-radius:5px; color:var(--accent); background:var(--surface); font-size:14px; line-height:1.3; min-width:29px; cursor:pointer; }
.plot-picker[aria-pressed="true"] { background:var(--accent-soft); }
.work .emptystate { gap:13px; padding:35px 28px; }
.work .emptystate > svg { width:155px; height:90px; color:var(--muted); opacity:.7; }
.work .emptystate h3 { font-size:27px; }
.work .emptystate > p { max-width:48ch; font-size:14px; line-height:1.65; }
.work .emptystate .examples { width:min(100%,620px); }
.work .vt-failure-summary h4 { font-size:14px; }
.work .vt-failure-summary p { font-size:13px; }
.work .lam-modulus > span,.work .vt-result > span { font-size:13px; }
.work .vt-chart-key,.work .lam-summary { font-size:12px; }
.work .vt-controls { padding-top:17px; padding-bottom:17px; }
@container(max-width:560px) { .plots { grid-template-columns:1fr; } }
@media(max-width:900px) { .work { gap:18px; } .content { padding:14px; } .work .setup-body { max-height:none; } .work .setup-foot { position:static; } }
@media(max-width:600px) { .work :is(input[type=number],input[type=text],select,textarea) { font-size:16px; } .cyc-row { grid-template-columns:72px minmax(0,1fr) minmax(0,1fr) 40px 24px; gap:5px; } .cyc-sl { grid-template-columns:72px minmax(0,1fr) minmax(0,1fr) 40px 24px; gap:5px; } .work .panel { padding:16px; } .disclosure > summary { padding:15px 16px; } .disclosure-body { padding:15px 16px 18px; } .work .emptystate { padding:28px 18px; } .work .emptystate h3 { font-size:24px; } }
@media(prefers-reduced-motion:reduce) { .work * { animation:none!important; scroll-behavior:auto!important; } }

/* A small, linked material view: volume fractions, not a microscopic model. */
.material-preview { --phase-a:#79628f; --phase-b:#398575; --phase-resin:#eadcb4; --phase-void:#fff; --phase-void-line:#716854; display:grid; grid-template-columns:minmax(160px,.85fr) minmax(0,1.4fr); gap:20px; align-items:center; padding:14px 20px; flex:none; }
.material-structure { display:flex; justify-content:center; border-radius:8px; background:var(--surface-2); overflow:hidden; }
.material-structure svg { display:block; width:100%; max-width:260px; height:128px; }
.material-fiber-circle { transition:r .18s ease,fill .18s ease; }
.material-pore { transition:r .18s ease; }
.material-preview-info { min-width:0; }
.material-preview-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.material-preview-info h3 { font:500 16px/1.4 var(--f-body); margin:6px 0 12px; overflow-wrap:anywhere; }
.material-volume-label { font-size:12px; color:var(--muted); white-space:nowrap; }
.material-volume-bar { display:flex; width:100%; height:9px; border-radius:6px; overflow:hidden; outline:1px solid var(--line); }
.material-volume-bar span { min-width:0; height:100%; transition:width .18s ease; }
.material-phase-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 16px; margin-top:12px; }
.material-phase { display:flex; gap:7px; align-items:center; min-width:0; font-size:13px; color:var(--muted); }
.material-phase i { display:block; width:9px; height:9px; border-radius:50%; flex:none; }
.material-phase span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.material-phase b { font:400 12px var(--f-mono); margin-left:auto; color:var(--ink); white-space:nowrap; }
.material-phase.void i { border:1px solid var(--phase-void-line); }
.material-axis { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.material-group { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.material-group { flex-wrap:wrap; }
.material-groups { flex-wrap:wrap; }
.material-groups button { padding:8px 11px; }
.material-axis-context { margin:0 0 20px; padding:12px 14px; border-left:3px solid var(--accent); border-radius:0 6px 6px 0; background:var(--surface-2); }
.material-axis-context strong { font-size:16px; font-weight:600; color:var(--ink); }
.material-axis-context p { font-size:13px; color:var(--muted); margin:4px 0 0; }

@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) .material-preview { --phase-a:#b49bd1; --phase-b:#67b4a0; --phase-resin:#6f5e3e; --phase-void:#202530; --phase-void-line:#d4c6a7; } }
:root[data-theme="dark"] .material-preview { --phase-a:#b49bd1; --phase-b:#67b4a0; --phase-resin:#6f5e3e; --phase-void:#202530; --phase-void-line:#d4c6a7; }
@container(max-width:500px) { .material-preview { grid-template-columns:1fr; gap:12px; padding:16px; } .material-structure svg { height:112px; } }
@media(prefers-reduced-motion:reduce) { .material-preview * { transition:none!important; } }

/* Welcome shell. Category cards and asset styling follow below. */
.main.is-home{grid-template-rows:minmax(0,1fr) auto}.main.is-home>.tbar{display:none}.home-content{padding:22px 28px;background:var(--bg)}.welcome{width:100%;max-width:none;margin:0 auto;display:block}.welcome-kicker{margin:0 0 12px;text-transform:uppercase;font-weight:500}.welcome-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.welcome-resume-note{font-size:12px;color:var(--muted);margin-top:10px}
@media(max-width:900px){.main.is-home{grid-template-rows:auto minmax(0,1fr) auto}.main.is-home>.tbar{display:flex;min-height:47px}.home-content{padding:16px}}
/* Shared virtual-instrument and material-state views */
.test-instrument {display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:18px;align-items:center;padding:15px 20px;flex:none;}
.test-instrument svg {display:block;width:100%;max-height:148px;}
.instrument-copy h3 {font-size:19px;margin:3px 0 5px;}
.instrument-copy p {font-size:13px;color:var(--muted);margin:0;}
.instrument-readout {display:flex;gap:16px;flex-wrap:wrap;font-family:var(--f-mono);font-size:13px;margin-top:8px;}
.instrument-kicker {font-size:10px;letter-spacing:.09em;color:var(--muted);text-transform:uppercase;}
.state-controls {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0;}
.state-controls input[type=range] {flex:1;min-width:120px;accent-color:var(--accent);}
.state-controls output {font:12px var(--f-mono);min-width:70px;text-align:right;}
.state-controls select {width:auto;max-width:100%;font-size:13px;}
.state-strip {display:flex;height:22px;border-radius:6px;overflow:hidden;background:var(--surface-2);position:relative;isolation:isolate;}
.state-strip span {min-width:0;display:block;}
.state-strip .state-cursor {position:absolute;top:0;bottom:0;border-left:3px solid var(--ink);z-index:2;}
.state-legend {display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--muted);margin:8px 0;}
.state-legend i {display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;}
.state-now {display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;}
.state-now strong {font:600 21px var(--f-display);}
.state-now span {font-size:12px;color:var(--muted);}
.state-explanation {font-size:13px;color:var(--muted);margin:7px 0 0;max-width:70ch;}
.state-summary {padding:15px 18px;flex:none;}
.state-events {display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;}
.state-events button {font-size:12px;min-height:32px;white-space:normal;text-align:left;}
.state-story {display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:center;margin:14px 0 4px;}
.state-story svg {width:100%;height:108px;}
.state-criterion {font-size:12px;color:var(--muted);margin:10px 0 0;}
.rheo-headline {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.rheo-headline .kpi {padding:12px;}
.rheo-empty {padding:30px;text-align:center;color:var(--muted);}
.rheo-chart {min-height:260px;}
.rheo-page .view {overflow-y:auto;}
.rheo-page .panel.grow {flex:1 0 350px;}
.instrument-turn {transform-box:fill-box;transform-origin:center;}
.instrument-playing .instrument-turn {animation:rheo-turn 1.5s ease-in-out infinite alternate;}
@keyframes rheo-turn {from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
.how-flow {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:16px 0;color:var(--accent);font-weight:600;}
.how-flow span {border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:var(--surface-2);}
.how-sections {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0;}
.how-sections section {border:1px solid var(--line);border-radius:8px;padding:14px;}
.how-sections h3 {font-size:18px;margin-bottom:5px;}
.how-sections p {margin:0;font-size:14px;color:var(--muted);}
@media(max-width:650px){.test-instrument{grid-template-columns:120px minmax(0,1fr);gap:12px;padding:13px;}.instrument-copy h3{font-size:17px}.instrument-copy p{font-size:12px}.state-story{grid-template-columns:100px minmax(0,1fr);gap:12px}.rheo-headline{grid-template-columns:1fr}.how-sections{grid-template-columns:1fr}.state-now strong{font-size:19px}.rheo-page .panel.grow{flex-basis:340px}.state-controls select{width:100%}}
@media(prefers-reduced-motion:reduce){.instrument-playing .instrument-turn,.welcome-link .instrument-turn{animation:none;transition:none}.welcome-link:is(:hover,:focus-visible) .instrument-turn{transform:none}}

/* A consistent first visit: short setup steps, a visual explanation, then Run. */
.setup-body.lesson-setup {padding:0!important;}
.setup-step {border-bottom:1px solid var(--line);margin:0;padding:0;}
.setup-step > summary {list-style:none;cursor:pointer;display:grid;grid-template-columns:25px minmax(0,1fr) 14px;gap:3px 10px;padding:17px 18px;align-items:center;}
.setup-step > summary::-webkit-details-marker {display:none;}
.setup-step > summary::after {content:'⌄';grid-column:3;grid-row:1/span 2;color:var(--muted);transition:transform .18s;}
.setup-step[open] > summary::after {transform:rotate(180deg);}
.setup-step > summary:hover {background:var(--surface-2);}
.setup-step > summary:focus-visible {outline:2px solid var(--accent);outline-offset:-3px;}
.step-number {grid-row:1/span 2;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:25px;height:25px;font:12px var(--f-mono);color:var(--muted);}
.setup-step[open] .step-number {background:var(--accent);border-color:var(--accent);color:var(--accent-ink);}
.step-title {font-weight:600;font-size:15px;}
.step-summary {grid-column:2;font-size:12px;color:var(--muted);overflow-wrap:anywhere;line-height:1.5;}
.step-body {padding:3px 18px 21px;}
.setup-step .exgrid {grid-template-columns:1fr;margin-top:12px;}
.setup-step .ex {text-align:left;}
.setup-step .opt {margin-top:14px;}
.lesson-results {display:flex;flex-direction:column;gap:14px;min-height:0;}
.lesson-intro {display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;text-align:center;padding:clamp(24px,4vw,60px);flex:1 0 400px;overflow:hidden;position:relative;}
.lesson-intro .intro-art {width:min(100%,430px);color:var(--accent);}
.lesson-intro .intro-art svg {display:block;width:100%;height:auto;max-height:235px;}
.lesson-intro .intro-copy {max-width:48ch;}
.lesson-intro h3 {font-size:clamp(24px,2.2vw,34px);font-weight:600;line-height:1.2;}
.lesson-intro p {font-size:15px;line-height:1.7;color:var(--muted);margin:12px 0 0;}
.intro-kicker {font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);display:block;margin-bottom:11px;}
.intro-prompt {font-size:12px!important;opacity:.85;}
.test-instrument.is-intro {flex:1 0 400px;grid-template-columns:1fr;text-align:center;align-content:center;justify-items:center;padding:30px;gap:20px;}
.test-instrument.is-intro > div:first-child {width:min(100%,380px);}
.test-instrument.is-intro svg {max-height:210px;}
.test-instrument.is-intro .instrument-copy {max-width:48ch;}
.test-instrument.is-intro h3 {font-size:clamp(24px,2.2vw,34px);line-height:1.2;}
.test-instrument.is-intro .instrument-copy p {font-size:15px;line-height:1.7;}
.test-instrument.is-intro .instrument-readout {display:none;}
.test-instrument.is-intro .intro-prompt {display:block;}
.test-instrument:not(.is-intro) .intro-prompt {display:none;}
.lesson-intro .intro-art,.test-instrument.is-intro > div:first-child {transition:transform .3s;}
.lesson-intro:hover .intro-art,.test-instrument.is-intro:hover > div:first-child {transform:translateY(-4px);}
.work .setup-foot .hint {font-size:12px;margin:0;}
.burn-stage-nav {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px;}
.burn-stage-nav button {white-space:normal;flex:1;min-width:120px;text-align:left;justify-content:flex-start;padding:11px;}
.burn-stage-nav button[aria-pressed=true] {background:var(--accent-soft);border-color:var(--accent);color:var(--accent);}
.burn-readouts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0;}
.burn-readouts span {display:block;font-size:12px;color:var(--muted);}
.burn-readouts strong {font:500 clamp(18px,2vw,26px) var(--f-mono);}
.burn-readouts small {font:12px var(--f-body);color:var(--muted);}
.burn-experiment {padding:22px;}
.burn-experiment svg {display:block;width:100%;max-height:310px;}
.burn-stage-copy h3 {font-size:23px;}
.burn-stage-copy p {color:var(--muted);font-size:14px;margin:8px 0 18px;}
.burn-plot {padding:18px;}
.burn-plot svg {display:block;width:100%;max-height:280px;}
.burn-identify {padding:0;}
.burn-identify > summary {padding:18px;cursor:pointer;font-weight:600;}
.burn-identify > div {padding:0 18px 20px;}
.burn-badge {font-size:12px;color:var(--accent);background:var(--accent-soft);padding:5px 10px;border-radius:15px;display:inline-block;}
.vt-failure-summary[hidden],.vt-compare[hidden] {display:none;}
@media(max-width:900px){.lesson-intro,.test-instrument.is-intro{flex-basis:auto;min-height:340px}.lesson-results{overflow:visible}.setup-step .step-summary{font-size:12px}}
@media(max-width:550px){.lesson-intro{padding:26px 18px}.burn-readouts{grid-template-columns:1fr;gap:12px}.burn-experiment{padding:16px}.step-body{padding-inline:15px}.setup-step>summary{padding-inline:15px}.burn-stage-nav button{min-width:100px}}
@media(prefers-reduced-motion:reduce){.lesson-intro .intro-art,.test-instrument.is-intro>div:first-child,.setup-step>summary::after{transition:none}.lesson-intro:hover .intro-art,.test-instrument.is-intro:hover>div:first-child{transform:none}}

.lesson-intro:has(#cureIntroArt) .intro-art{width:min(100%,560px)}
.lesson-intro:has(#cureIntroArt) .intro-art svg{max-height:300px}
@keyframes autoclave-air{to{stroke-dashoffset:-30}}
.lesson-intro:hover .autoclave-flow{animation:autoclave-air 1.5s linear infinite}
@media(prefers-reduced-motion:reduce){.lesson-intro:hover .autoclave-flow{animation:none}}
#dscPre,#rheoPre{display:none!important;}
/* Five visible categories, one open group, and reusable image assets. */
.sbrand h1{display:flex;align-items:center;gap:12px}.sbrand .brand-home{display:flex;align-items:center;gap:12px;font-size:18px;line-height:1.35}.uw-mark{font:bold 45px Georgia,serif;color:var(--gold);line-height:1}.brand-copy{display:block}.brand-copy b{color:var(--side-ink)}
.nav-group{margin:3px 0}.nav-toggle .nav-label{flex:1;min-width:0}.nav-chevron{font-size:15px;color:var(--side-muted);margin-left:auto}.nav-toggle[data-active=true]{font-weight:600;color:white;background:var(--side-hover)}
.nav-children{display:grid;gap:3px;margin:5px 8px 12px 23px;padding-left:11px;border-left:1px solid var(--side-line)}.nav-child{padding:8px 10px;font-size:13px;line-height:1.4}.nav-child[aria-current=page]{box-shadow:inset 3px 0 var(--gold)}
.group-welcome .welcome-hero{background:none;border:0;border-radius:0;color:var(--ink)}.group-welcome .welcome-hero::before{display:none}.group-welcome h2 span{color:var(--ink)}.group-welcome .welcome-actions{margin-top:24px}.group-welcome .welcome-actions .btn{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-size:14px;padding:12px 20px}.group-welcome .welcome-actions .btn:hover{filter:brightness(1.06)}.setup-step>summary{grid-template-columns:34px minmax(0,1fr) 14px;padding-block:20px}.step-number{width:34px;height:34px;font-size:14px}.step-title{font-size:16px}.step-summary{font-size:13px}.acc-h{grid-template-columns:34px minmax(0,1fr) 14px;padding-block:20px}.acc-h .n{width:34px;height:34px;font-size:14px}.acc-h .t{font-size:16px}.acc-h .s{font-size:13px}
.group-welcome{max-width:1450px;margin:0 auto;padding:12px 8px 28px}.group-welcome .welcome-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:25px;align-items:center;padding:12px 20px 30px}.group-welcome h2{font-size:clamp(36px,4vw,64px);line-height:1.05;letter-spacing:-.035em}.group-welcome h2 span{display:block}.group-welcome .welcome-kicker{color:var(--muted);letter-spacing:.1em;font-size:11px}.hero-figure{margin:0;min-width:0}.hero-figure img{display:block;width:100%;height:280px;object-fit:contain;transition:transform .35s}.hero-figure:hover img{transform:translateY(-5px)}
.group-card-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.group-card{grid-column:span 2;display:flex;flex-direction:column;align-items:flex-start;padding:21px;min-width:0;min-height:200px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink);text-align:left;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s}.group-card:nth-last-child(-n+2){grid-column:span 3}.group-card:hover,.group-card:focus-visible{border-color:var(--accent);transform:translateY(-4px);box-shadow:0 10px 24px rgba(45,25,80,.12)}.group-card .group-card-title{font:600 24px var(--f-display)}.group-card .group-card-sub{font-size:12px;color:var(--muted);margin:3px 0 10px}.group-card img{width:100%;height:155px;object-fit:contain;transition:transform .3s}.group-card:hover img{transform:scale(1.025)}.group-card svg{width:100%;height:155px}.group-card .group-arrow{align-self:flex-end;color:var(--accent);font-size:19px;line-height:1}
.asset-illustration{display:block;width:100%;height:auto;max-height:300px;object-fit:contain}.instrument-artwork{display:block;width:100%;max-height:300px;object-fit:contain}.test-instrument:not(.is-intro) .instrument-artwork{max-height:135px}.test-instrument.is-intro>div:first-child{width:min(100%,430px)}.lesson-intro .intro-art{width:min(100%,520px)}.lesson-intro .intro-art>.asset-illustration{max-height:300px}.asset-technical{display:none!important}
.course-notes{margin:16px 18px;border-top:1px solid var(--line);padding-top:12px}.course-notes>summary{font-size:13px;color:var(--accent);cursor:pointer;font-weight:500}.course-note-body{padding:12px 0 0}.course-note-body img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:6px;background:white;margin-bottom:9px}.course-note-body a{font-size:13px;color:var(--accent)}.course-note-body p{font-size:11px;color:var(--muted);margin:8px 0}.course-note-body a+a{display:block;margin-top:8px}
.study-panel{padding:20px}.study-panel h3{font-size:23px;margin-bottom:8px}.study-chart svg{display:block;width:100%;max-height:510px}.study-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.study-facts .kpi{padding:15px}.study-facts .kpi strong{font-size:25px}.study-panel svg:not(.mini-svg){max-height:320px;width:100%}.ultra-chart{min-height:310px;flex:1 0 350px}.ply-study-chart{min-height:270px;flex:1 0 310px}.new-study-view{overflow:auto}.new-study-view .lesson-results{flex:none}.model-note{font-size:12px;color:var(--muted);line-height:1.6}
.study-panel .study-chart svg{max-height:480px}.study-basis{margin:15px 18px;font-size:12px;color:var(--muted)}.section-context{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:0 0 9px}.study-basis button{margin-top:8px}
@media(min-width:901px){.app{grid-template-columns:var(--sideW,235px) minmax(0,1fr)}}
@media(max-width:1100px){.group-card .group-card-title{font-size:21px}.group-card{padding:16px}.group-welcome .welcome-hero{padding-inline:0}}
@media(max-width:900px){.group-welcome .welcome-hero{grid-template-columns:1fr 1fr;gap:12px}.hero-figure img{height:220px}.group-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.group-card,.group-card:nth-last-child(-n+2){grid-column:auto}.group-card:last-child{grid-column:1/-1}.group-card img,.group-card svg{height:140px}.new-study-view{overflow:visible}.study-panel{padding:16px}}
@media(max-width:550px){.group-welcome .welcome-hero{grid-template-columns:1fr}.hero-figure img{height:180px}.group-welcome h2{font-size:38px}.group-card-grid{gap:10px}.group-card{min-height:180px;padding:14px}.group-card .group-card-title{font-size:20px}.group-card .group-card-sub{font-size:11px}.group-card img,.group-card svg{height:110px}.study-facts{grid-template-columns:1fr}.study-facts .kpi strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.hero-figure img,.group-card,.group-card img{transition:none}.group-card:hover,.group-card:focus-visible,.hero-figure:hover img,.group-card:hover img{transform:none}}

/* Shared disclosures and the four welcome activities. */
.group-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.group-card,.group-card:nth-last-child(-n+2),.group-card:last-child{grid-column:auto}
@media(max-width:1200px){.group-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.screen-assumptions{padding:18px 20px}.screen-assumptions summary{font-size:13px;cursor:pointer}.screen-assumptions p{font-size:13px;line-height:1.7;color:var(--muted);margin:14px 0 0}
.burn-readouts{grid-template-columns:repeat(2,minmax(0,1fr))}.burn-volume-note{color:var(--muted);font-size:12px;text-align:center;margin:12px 0 0}.burn-composition{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:15px;margin:20px 0}.burn-composition>div{display:flex;flex-direction:column;gap:6px}.burn-composition span{font-size:12px;color:var(--muted)}.burn-composition strong{font:600 23px var(--f-mono);color:var(--ink)}.burn-composition small{font-size:11px;color:var(--muted)}.burn-mass-detail{margin-top:18px}.burn-mass-detail summary,.burn-plot summary{font-size:13px;cursor:pointer}.burn-plot{padding:18px 20px}.burn-plot #burnPlot{margin-top:12px}.burn-assumptions{margin-top:15px;flex:none}.burn-stage-copy h3{font-size:20px}
.ultra-study{padding:20px}.ultra-study-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.ultra-study-head h3{font-size:25px;line-height:1.2;margin:6px 0 0}.ultra-model-badge{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:6px 10px;white-space:nowrap}.ultra-reference-picker{max-width:540px}.ultra-reference-picker>.lbl{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.ultra-view-tabs{margin-top:18px;width:max-content;max-width:100%}.ultra-native-plot svg{width:100%;height:auto;display:block}.ultra-input-pair{display:grid;grid-template-columns:85px 1fr;align-items:center;gap:14px}.ultra-input-pair input[type=range]{width:100%;accent-color:var(--accent)}.ultra-interpretation{font-size:14px;line-height:1.65;color:var(--muted);margin:12px 0 0}.license-notice{font-size:13px;line-height:1.7}.license-notice pre{white-space:pre-wrap;font-size:11px;line-height:1.6}.sfoot .license-link{background:none;border:0;padding:0;text-align:left;font-family:var(--f-body);cursor:pointer;display:block;font-size:10.5px;margin:6px 12px;color:var(--side-muted);text-decoration:none}.sfoot-meta{display:flex;align-items:center;gap:6px;margin:2px 4px 4px 12px}.sfoot-meta .license-link{display:inline;margin:0}.sfoot-dot{font-size:10.5px;color:var(--side-muted)}.side-collapse{margin-left:auto;flex:none;width:26px;height:26px;padding:0;display:grid;place-items:center;border:1px solid var(--side-line);border-radius:6px;background:none;color:var(--side-muted);cursor:pointer}.side-collapse:hover,.side-collapse:focus-visible{color:var(--side-ink);background:var(--side-hover);outline:none}.side-collapse svg{width:14px;height:14px}.sfoot .license-link:hover{color:var(--side-ink)}
@media(max-width:600px){.ultra-study{padding:16px}.ultra-study-head{align-items:flex-start}.ultra-study-head h3{font-size:22px}.ultra-model-badge{font-size:10px;padding:5px 7px}.ultra-view-tabs{width:100%;font-size:12px}.ultra-reference-picker .seg button{padding-inline:7px}.burn-composition{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sr-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Material Builder rhythm: live object, useful readouts, generous charts. */
@media(min-width:901px){#p-screen.work{grid-template-columns:clamp(280px,var(--setupW,330px),390px) 14px minmax(0,1fr)}}
.explorer-setup .setup-body{padding:20px}.es-control-section{padding:3px 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.es-control-section h3{font:600 20px var(--f-display);margin:0 0 17px}.es-control-section .f label{font-size:14px}.es-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.es-section-head>span{font-size:13px;color:var(--muted)}.es-sliders{display:grid;gap:22px}.es-slider{display:grid;gap:12px;cursor:pointer}.es-slider>span{display:flex;gap:8px;align-items:center;font-size:14px}.es-slider small{color:var(--muted);font-size:13px}.es-slider i{width:10px;height:10px;border-radius:50%}.es-slider output{margin-left:auto;font:500 16px var(--f-mono)}.es-slider input{width:100%;margin:0;accent-color:var(--accent);cursor:pointer}.es-vf-slider{margin-top:23px}.es-fixed{font-size:13px;color:var(--muted);line-height:1.6;margin:6px 0 0}.es-resin-row{display:flex;align-items:center;gap:12px;margin-top:18px;font-size:14px}.es-resin-src{font-size:12px;line-height:1.5;margin:8px 0 0}.es-presets{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}.es-presets .btn{font-size:12px;padding:8px 10px}.es-sequence{margin-top:18px}.es-sequence summary{font-size:13px;color:var(--muted);cursor:pointer}.es-sequence p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.explorer-view{gap:17px}.explorer-view>.card{flex:none}.explorer-view.invalid{opacity:.55}.es-laminate-preview{grid-template-columns:minmax(230px,.85fr) minmax(0,1.3fr);padding:18px 22px;gap:25px}.es-laminate-art{border-radius:8px;background:var(--surface-2);display:grid;place-items:center;overflow:hidden}.es-laminate-art svg{display:block;width:100%;max-width:370px;height:auto;transition:transform .22s ease}.es-laminate-art:hover svg{transform:translateY(-3px)}.es-laminate-preview .material-preview-info h3{font:600 28px/1.2 var(--f-display);margin:9px 0}.es-laminate-preview .lam-eyebrow{font-size:12px}.es-material-name{font-size:15px;line-height:1.6;color:var(--ink);margin:0 0 6px}.es-composition{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 18px}.es-layup-label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.es-fraction-caption{font:500 14px/1.7 var(--f-mono);color:var(--ink)}.es-panel-note{font-size:13px;line-height:1.6;color:var(--muted);margin:16px 0 0}.es-analysis-panel{padding:22px;flex:none}.es-result-bar{padding:0 0 22px;border-bottom:1px solid var(--line)}.es-six-results{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.es-result{min-width:0}.es-result>span{display:block;font-size:13px;line-height:1.5;color:var(--muted)}.es-result strong{display:block;font:600 30px/1.15 var(--f-display);margin-top:8px;color:var(--ink)}.es-result strong small{display:block;font:13px var(--f-body);color:var(--muted);margin-top:5px}.es-comparison-key{padding:22px 0;flex:none}.es-comparison-key .material-axis-context{margin:0 0 19px}.es-fiber-legend{display:flex;flex-wrap:wrap;gap:8px}.es-fiber-legend button{display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-size:13px;color:var(--muted);border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:8px 12px}.es-fiber-legend button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--ink)}.es-fiber-legend svg{width:18px;height:18px}.es-group-legend{display:flex;flex-wrap:wrap;gap:10px 19px;margin-top:17px}.es-group-legend span{display:inline-flex;gap:7px;align-items:center;color:var(--muted);font-size:13px}.es-group-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}.es-plot-wrap{position:relative;flex:none}.es-plots-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:32px 26px}.es-plot-card{padding:0;min-width:0}.es-plot-head{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:11px}.es-plot-head h3{font:600 20px/1.3 var(--f-display);margin:0}.es-plot-head span{display:block;font-size:13px;color:var(--muted);line-height:1.6;margin-top:5px}.es-plot-head .seg{flex-shrink:0}.es-plot-head .seg button{font-size:13px;padding:8px 12px}.es-native-plot{width:100%;min-width:0}.es-native-plot svg{display:block;width:100%;height:auto}.es-dot{cursor:pointer;outline:none}.es-dot:hover .es-mark,.es-dot:focus .es-mark,.es-dot.es-linked-preview .es-mark{stroke:var(--ink);stroke-width:2.2;opacity:1}.es-dot:focus-visible{outline:1px solid var(--accent)}.es-tooltip{position:absolute;width:300px;max-width:95%;z-index:8;padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);pointer-events:none}.es-tooltip strong{display:block;font-size:15px}.es-tooltip p{font-size:13px;line-height:1.6;margin:8px 0;color:var(--muted)}.es-tooltip svg{width:100%;height:90px}.es-tooltip table{font-size:12px;width:100%;border-collapse:collapse;margin-top:9px}.es-tooltip td{padding:5px 0;color:var(--muted)}.es-tooltip td:last-child{text-align:right;color:var(--ink)}.es-tooltip .es-group-tag{display:inline-block;border-radius:4px;padding:4px 7px;font-size:12px;color:var(--ink);border:1px solid var(--line)}
@media(prefers-reduced-motion:reduce){.es-laminate-art:hover svg{transform:none}}
@container(min-width:980px){.es-plots-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:830px){.es-six-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.es-laminate-preview{grid-template-columns:1fr;gap:17px}.es-laminate-art svg{max-width:330px}.es-laminate-preview .material-preview-info h3{font-size:26px}}
@media(max-width:600px){.explorer-setup .setup-body{padding:18px}.es-laminate-preview{padding:18px}.es-analysis-panel{padding:18px 10px}.es-result-bar,.es-comparison-key{margin-inline:7px}.es-six-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.es-result strong{font-size:28px}.es-plot-card{padding:0}.es-plot-head{padding-inline:8px}.es-plot-head h3{font-size:19px}.es-tooltip{width:280px}}

.open-controls{padding:3px 0 15px}.lesson-setup>.open-controls{padding:20px 18px}.open-controls h3{font:600 21px var(--f-display);margin:0 0 17px}.open-controls .fields{margin-top:16px}.open-controls .f{margin-top:18px}.open-controls .hint{line-height:1.65}.open-controls .btnrow{margin-top:18px}.assumption-groups{display:grid;gap:15px}.assumption-groups>details>summary{font-size:13px;cursor:pointer}.assumption-groups .mattable,.assumption-groups .comp-wrap{margin-top:15px}.burn-furnace-scene{display:grid;grid-template-columns:1.15fr 1fr;gap:12px;align-items:center;margin:14px 0}.burn-furnace-scene img{width:100%;height:auto;max-height:230px;object-fit:contain}.burn-furnace-scene svg{width:100%;height:auto}.burn-furnace-scene figure{margin:0}.burn-furnace-scene figcaption{font-size:11px;color:var(--muted);text-align:center}.mechanical-shared{padding:18px 18px 14px;border-bottom:1px solid var(--line)}.mechanical-shared p{font-size:12px;color:var(--muted);line-height:1.6;margin:7px 0}.vt-setup .setup-step .step-body>p{font-size:13px;line-height:1.7;color:var(--muted)}
@media(max-width:600px){.burn-furnace-scene{grid-template-columns:1fr}.burn-furnace-scene img{max-height:195px}.burn-furnace-scene svg{max-height:185px}}

/* Wide desktop workspaces use the available rectangle. Reading views and mobile
   retain the full document flow; explanatory content opens in a native dialog. */
.workspace-version{margin-right:auto;white-space:nowrap}.workspace-layout-button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}@media(max-width:900px){.workspace-layout-button{display:none}}
.workspace-ultra-support{display:contents}.workspace-material-pager{display:none}.workspace-dialog{width:min(960px,calc(100vw - 48px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);box-shadow:var(--shadow)}.workspace-dialog::backdrop{background:rgba(15,12,30,.45)}.workspace-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 22px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:2}.workspace-dialog-head h3{font:600 23px var(--f-display);margin:0}.workspace-dialog-body{display:grid;gap:15px;padding:20px;overflow:auto;max-height:calc(100dvh - 145px)}.workspace-dialog-body>.details{height:auto;min-height:0}.workspace-dialog-body>details{padding:16px 20px}.workspace-dialog-body details>summary{cursor:pointer;font-size:14px;font-weight:500}.workspace-dialog-body p{font-size:14px;line-height:1.7}.workspace-dialog-body .vt-compare{margin-top:0}.workspace-dialog-body .burn-plot svg{width:100%;height:auto}.workspace-dialog-body .material-state-details{padding:18px}
html.desktop-workspace .content:has(>.work:not([hidden])){overflow:hidden;padding:14px 18px}html.desktop-workspace .work{grid-template-columns:var(--setupW,320px) 12px minmax(0,1fr);height:100%;min-height:0}html.desktop-workspace .work>.view{height:100%;overflow:hidden;min-height:0;gap:12px}html.desktop-workspace .work .view>.grow{min-height:0}html.desktop-workspace .work .chartfill{min-height:0;flex:1 1 0}html.desktop-workspace .work .panel.grow{min-height:0;flex:1 1 0}html.desktop-workspace .work .chartbar{margin-bottom:10px;gap:9px}html.desktop-workspace .work .chartnote{font-size:13px;line-height:1.5;flex:none}html.desktop-workspace .work [data-workspace-extra]{display:none!important}html.desktop-workspace .work .lesson-intro{min-height:0;height:100%;flex:1 1 0;padding:24px}html.desktop-workspace .work .lesson-intro .intro-art{max-height:250px}html.desktop-workspace .work .setup-body .open-controls{padding:16px}html.desktop-workspace .work .open-controls .f{margin-top:14px}html.desktop-workspace .work .open-controls h3{margin-bottom:12px}html.desktop-workspace .work .setup-foot{padding:12px 16px}
/* Existing canvas analyses already have flexible plots. */
html.desktop-workspace :is(#curePost,#dscPost,#anaPost,#mapPost){height:100%;min-height:0;flex:1 1 0;overflow:hidden;gap:12px}html.desktop-workspace #curePost{display:flex}html.desktop-workspace :is(#curePost,#anaPost)>.headline{flex:none}html.desktop-workspace .headline .kpi{padding:12px 14px}html.desktop-workspace #detailsSplit{display:none!important}
/* DSC: instrument beside the analysis, not above it. */
html.desktop-workspace #p-dsc>.view:has(>#dscPost:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:minmax(0,1fr);gap:12px}html.desktop-workspace #p-dsc>.view>#dscPost{grid-column:1;grid-row:1}html.desktop-workspace #p-dsc>.view>.test-instrument:not(.is-intro){grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;padding:16px;gap:14px;min-height:0}html.desktop-workspace #p-dsc .test-instrument:not(.is-intro) .instrument-artwork{height:160px;max-height:160px}html.desktop-workspace #p-dsc .test-instrument:not(.is-intro) .intro-prompt{display:none}html.desktop-workspace #dscInspectControls{gap:8px}html.desktop-workspace #dscInspectControls input[type=range]{min-width:100%;flex-basis:100%}
/* Ultrasound: the full echo plot, key numbers and specimen stay visible. */
html.desktop-workspace #ultraResults{display:grid;grid-template-columns:minmax(0,1fr) 250px;grid-template-rows:minmax(0,1fr);gap:12px;height:100%;flex:1 1 0;min-height:0}html.desktop-workspace .ultra-study{display:flex;flex-direction:column;min-height:0;padding:16px}html.desktop-workspace .ultra-study-head{margin-bottom:12px}html.desktop-workspace .ultra-study-head h3{font-size:23px}html.desktop-workspace .ultra-reference-picker{max-width:100%;flex:none}html.desktop-workspace .ultra-view-tabs{margin-top:10px;flex:none}html.desktop-workspace #ultraPlot{flex:1 1 0;min-height:0;margin-top:5px}html.desktop-workspace #ultraPlot svg{display:block;width:100%;height:100%}html.desktop-workspace #ultraPlotCaption{margin:5px 0 0;flex:none}html.desktop-workspace .workspace-ultra-support{display:flex;flex-direction:column;gap:10px;min-height:0}html.desktop-workspace #ultraMetrics{grid-template-columns:1fr;gap:8px;flex:none}html.desktop-workspace #ultraMetrics .kpi{padding:10px 12px}html.desktop-workspace #ultraMetrics .kpi strong{font-size:23px}html.desktop-workspace .workspace-ultra-support>.study-panel{padding:13px;display:flex;flex-direction:column;flex:1 1 0;min-height:0}html.desktop-workspace #ultraPath{min-height:0;flex:1 1 0;display:grid;place-items:center}html.desktop-workspace #ultraPath svg{max-height:180px;display:block;width:100%;height:100%}html.desktop-workspace #ultraInterpretation{font-size:13px;line-height:1.5;margin-top:8px}
/* Lamina and laminate: illustrations remain beside, rather than above, plots. */
html.desktop-workspace #plyStudyResults{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;flex:1 1 0;gap:12px}html.desktop-workspace #plyStudyMetrics{grid-column:1/-1}html.desktop-workspace #plyStudyResults>.study-panel{grid-column:1;grid-row:2;display:flex;flex-direction:column;justify-content:center;min-height:0;padding:15px}html.desktop-workspace #plyStudyDiagram{min-height:0}html.desktop-workspace #plyStudyDiagram svg{width:100%;max-height:260px}html.desktop-workspace #plyStudyResults>.ply-study-chart{grid-column:2;grid-row:2;min-height:0;flex:1 1 0}html.desktop-workspace #lamResults{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;height:100%;min-height:0;flex:1 1 0}html.desktop-workspace .lam-overview{padding:12px 16px}html.desktop-workspace .lam-visuals{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0}html.desktop-workspace .lam-visual-card{padding:13px;min-height:0;overflow:hidden}html.desktop-workspace .lam-stack{min-height:0;flex:1 1 0}html.desktop-workspace .lam-stack svg{height:100%;max-height:100%}html.desktop-workspace .lam-polar{flex:1 1 0;min-height:0}html.desktop-workspace .lam-polar svg{height:100%;max-height:100%;width:100%;max-width:300px}html.desktop-workspace .lam-modulus{padding:11px 14px}html.desktop-workspace .lam-modulus>div{font-size:25px}
/* Mechanical tests: specimen/failure on the left, curve/loading on the right. */
html.desktop-workspace #testingResults{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(330px,1.15fr);grid-template-rows:minmax(0,1fr) auto;gap:12px;height:100%;min-height:0;flex:1 1 0}html.desktop-workspace .vt-top{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:10px;min-height:0}html.desktop-workspace .vt-stage{display:flex;flex-direction:column;min-height:0;flex:1 1 0;padding:13px}html.desktop-workspace .vt-specimen{flex:1 1 0;min-height:0;display:flex;align-items:center}html.desktop-workspace .vt-specimen svg{height:100%;max-height:220px}html.desktop-workspace .vt-top .vt-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:none}html.desktop-workspace .vt-top .vt-result{padding:10px}html.desktop-workspace .vt-top .vt-result>div{font-size:22px}html.desktop-workspace .vt-chart{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;padding:14px}html.desktop-workspace #vtGraph{min-height:0;flex:1 1 0}html.desktop-workspace #vtGraph svg{width:100%;height:100%;max-height:none}html.desktop-workspace .vt-controls{grid-column:2;grid-row:2;padding:11px 14px}html.desktop-workspace .vt-failure-summary{grid-column:1;grid-row:2;margin:0;padding:10px 12px}html.desktop-workspace .vt-ply-strip{overflow:hidden;gap:2px}html.desktop-workspace .vt-ply-column{flex:1 1 0;min-width:3px;max-width:25px;font-size:0}html.desktop-workspace .vt-ply-column>div{height:32px}html.desktop-workspace .vt-ply-strip-label{font-size:11px}html.desktop-workspace .vt-chart .vt-compare{margin:8px 0 0}html.desktop-workspace #testingResults>.vt-note:not([hidden]){grid-column:1/-1;grid-row:3;margin:0;font-size:12px}
/* Burn-off keeps the furnace and mass balance in the stage workspace. */
html.desktop-workspace #burnPost{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100%;min-height:0;flex:1 1 0;gap:12px}html.desktop-workspace #burnPost:has(>#burnReveal:not([hidden])){grid-template-columns:minmax(0,1fr) 280px}html.desktop-workspace .burn-experiment{display:flex;flex-direction:column;min-height:0;padding:15px;gap:9px}html.desktop-workspace #burnSpecimen{flex:1 1 0;min-height:0}html.desktop-workspace .burn-furnace-scene{height:100%;margin:0}html.desktop-workspace .burn-furnace-scene figure{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center}html.desktop-workspace .burn-furnace-scene img{height:100%;max-height:210px;min-height:0}html.desktop-workspace .burn-furnace-scene svg{max-height:210px}html.desktop-workspace .burn-stage-nav{margin:0}html.desktop-workspace .burn-stage-nav button{padding:6px 9px;font-size:12px}html.desktop-workspace .burn-stage-copy h3{font-size:20px;margin:0 0 5px}html.desktop-workspace .burn-stage-copy p{font-size:13px;line-height:1.5;margin:0}html.desktop-workspace .burn-readouts{margin:0;gap:12px}html.desktop-workspace .burn-readouts strong{font-size:25px}html.desktop-workspace #burnReveal{overflow:auto;padding:14px}
/* Material property pages keep every selected property reachable in-place. */
html.desktop-workspace #matResults{display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100%;min-height:0;flex:1 1 0;gap:12px}html.desktop-workspace #bStructureCard{display:flex;flex-direction:column;justify-content:center;padding:16px;gap:17px}html.desktop-workspace #bStructureCard .material-structure{width:100%;flex:none}html.desktop-workspace #bStructureCard .material-structure svg{height:145px}html.desktop-workspace #bStructureCard .material-preview-top{display:block}html.desktop-workspace #bStructureCard .material-volume-label{display:block;margin-top:5px}html.desktop-workspace #bStructureCard .material-phase-legend{grid-template-columns:1fr}html.desktop-workspace #matResults>.panel{min-height:0;padding:16px;flex:1 1 0}html.desktop-workspace #matResults .material-axis-context{margin-bottom:10px;padding:9px 12px}html.desktop-workspace #matResults .material-groups button{padding:7px 9px}html.desktop-workspace #bPlots{min-height:0;flex:1 1 0;gap:15px 20px;grid-template-columns:repeat(2,minmax(0,1fr))}html.desktop-workspace #bPlots.one{grid-template-columns:1fr}html.desktop-workspace #bPlots .mini{display:flex;flex-direction:column;min-height:0;margin:0;padding-top:8px}html.desktop-workspace #bPlots .mini .mt{flex:none}html.desktop-workspace #bPlots .mini .mc{height:auto;flex:1 1 0;min-height:0}html.desktop-workspace .workspace-material-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;flex:none;font-size:13px;color:var(--muted)}
/* Readable experiment views. Panel minima protect the figures on short windows. */
.lesson-intro .intro-art img{display:block;width:100%;height:auto;max-height:280px;object-fit:contain}
.workspace-panel-split{display:none}.workspace-rheo-support{display:contents}
.es-enlarge{font-size:14px;padding:4px 10px;white-space:nowrap}.es-plot-actions{display:flex;align-items:center;gap:8px}
.es-tooltip p,.es-tooltip table,.es-tooltip .es-group-tag{font-size:14px}
.vt-scale,.vt-chart-key,.vt-reference,.vt-result>span,.vt-result small,.vt-control-foot>span,.vt-failure-summary h4,.vt-failure-summary p,.vt-ply-strip-label{font-size:14px}
.vt-readouts{font-size:14px}.vt-result>div{font-size:27px}.vt-state{font-size:13px}.lam-color-key,.lam-summary,.lam-visual-heading>span,.lam-direction-readout,#lamPolarScale,.lam-modulus>span,.lam-modulus small{font-size:14px}
html.desktop-workspace .work{grid-template-columns:var(--setupW,320px) 12px minmax(0,1fr)}
html.desktop-workspace .work>.view:has(>#lamResults:not([hidden])),html.desktop-workspace #p-testing>.view:has(>#testingResults:not([hidden])),html.desktop-workspace #p-screen>.explorer-view{overflow:auto}
html.desktop-workspace .workspace-panel-split{display:block;z-index:3;align-self:stretch;justify-self:stretch;min-height:12px;min-width:12px}
html.desktop-workspace .work .lesson-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;text-align:left;padding:28px;overflow:auto}
html.desktop-workspace .work .lesson-intro .intro-art{width:100%;height:100%;max-height:100%;min-height:0;display:grid;place-items:center}
html.desktop-workspace .work .lesson-intro .intro-art :is(img,svg){display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
html.desktop-workspace .work .lesson-intro .intro-copy{max-width:45ch}.intro-copy p{font-size:15px}
/* Compact metrics no longer determine the height of the rheometer column. */
html.desktop-workspace #p-rheo>.view:has(>#rheoPost:not([hidden])){display:grid;grid-template-columns:minmax(350px,1fr) 12px var(--rheoSupportW,320px);grid-template-rows:var(--rheoHeaderH,86px) 12px minmax(260px,1fr);gap:0 0;overflow:auto}
html.desktop-workspace #rheoPost{display:contents}
html.desktop-workspace #rheoMetrics{grid-column:1;grid-row:1;align-self:stretch;margin-bottom:8px}
html.desktop-workspace #rheoMetrics .kpi{padding:12px 16px}html.desktop-workspace #rheoMetrics .kpi span{font-size:14px}html.desktop-workspace #rheoMetrics .kpi strong{font-size:26px}
html.desktop-workspace #rheoPost>.grow{grid-column:1;grid-row:3;margin-top:4px;min-height:260px}
html.desktop-workspace #workspaceRheoSupport{grid-column:3;grid-row:1/-1;display:flex;flex-direction:column;gap:12px;min-height:0;margin-left:6px;overflow:auto}
html.desktop-workspace #workspaceRheoSupport>.test-instrument:not(.is-intro){display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;flex:none;padding:14px}
html.desktop-workspace #workspaceRheoSupport .instrument-artwork{height:76px;max-height:76px}html.desktop-workspace #workspaceRheoSupport .instrument-copy h3{font-size:20px}html.desktop-workspace #workspaceRheoSupport .instrument-kicker{display:none}html.desktop-workspace #workspaceRheoSupport .instrument-readout{font-size:14px}
html.desktop-workspace #workspaceRheoSupport>.state-summary{display:flex;flex-direction:column;flex:1 0 330px;padding:16px;min-height:330px}
html.desktop-workspace #workspaceRheoSupport :is(.state-controls,.state-legend,.state-now span,.state-explanation){font-size:14px}html.desktop-workspace #workspaceRheoSupport .state-story{display:flex;flex-direction:column;gap:12px}html.desktop-workspace #rheoChains svg{height:105px}
html.desktop-workspace #rheoWidthDivider{grid-column:2;grid-row:1/-1}html.desktop-workspace #rheoHeightDivider{grid-column:1;grid-row:2}
/* Laminate: properties share the header; the stack and polar diagram get the height. */
html.desktop-workspace #lamResults{grid-template-rows:auto minmax(360px,1fr);height:100%;min-height:480px;gap:12px}
html.desktop-workspace #workspaceLamOverview{display:grid;grid-template-columns:minmax(250px,1fr) minmax(360px,.85fr);gap:10px 24px;align-items:center;padding:14px 18px}
html.desktop-workspace #workspaceLamInfo{min-width:0}html.desktop-workspace .lam-overview-top{display:block}html.desktop-workspace .lam-overview-top .lam-badge{display:inline-block;margin:7px 0;font-size:13px}
html.desktop-workspace #lamModuli{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}html.desktop-workspace #lamModuli .lam-modulus{border:0;background:none;padding:0}html.desktop-workspace #lamModuli .lam-modulus>div{font-size:28px}html.desktop-workspace #lamModuli .lam-modulus p{display:none}
html.desktop-workspace .lam-visuals{display:grid;grid-template-columns:minmax(280px,1fr) 12px minmax(280px,var(--lamPolarW,45%));gap:0;min-height:360px}
html.desktop-workspace .lam-visuals>.lam-visual-card{padding:16px;overflow:visible}html.desktop-workspace .lam-visual-heading h3{font-size:22px}html.desktop-workspace .lam-visual-heading>span{font-size:14px}
html.desktop-workspace #lamStack{min-height:240px;flex:1 1 0}html.desktop-workspace #lamStack svg{display:block;width:100%;height:100%;max-height:none}
html.desktop-workspace #lamPolar{min-height:230px;flex:1 1 0;overflow:hidden;margin-top:5px}html.desktop-workspace #lamPolar svg{display:block;width:100%;height:100%;max-width:none;max-height:none}
html.desktop-workspace .lam-direction-readout{font-size:14px}html.desktop-workspace #lamPolarScale{font-size:14px;margin:5px 0 0}
/* Mechanical test: readable specimen annotation, one curve origin and useful lower panels. */
html.desktop-workspace #testingResults{grid-template-columns:minmax(310px,1fr) 12px minmax(350px,var(--testChartW,56%));grid-template-rows:minmax(380px,1fr) auto;gap:12px 0;min-height:570px}
html.desktop-workspace .vt-top{grid-column:1;grid-row:1;margin-right:6px}html.desktop-workspace .vt-chart{grid-column:3;grid-row:1;margin-left:6px}html.desktop-workspace .vt-controls{grid-column:3;grid-row:2;margin-left:6px}html.desktop-workspace .vt-failure-summary{grid-column:1;grid-row:2;margin-right:6px}
html.desktop-workspace #testWidthDivider{grid-column:2;grid-row:1/-1}html.desktop-workspace #vtSpecimen{min-height:180px}html.desktop-workspace #vtSpecimen svg{height:100%;max-height:none;width:100%}
html.desktop-workspace .vt-scale,html.desktop-workspace .vt-chart-key,html.desktop-workspace .vt-reference,html.desktop-workspace .vt-result>span,html.desktop-workspace .vt-result small,html.desktop-workspace .vt-control-foot>span,html.desktop-workspace .vt-failure-summary h4,html.desktop-workspace .vt-failure-summary p,html.desktop-workspace .vt-ply-strip-label{font-size:14px}
html.desktop-workspace .vt-top .vt-result>div{font-size:26px}html.desktop-workspace #vtGraph{min-height:205px}html.desktop-workspace #vtGraph svg{min-height:0}
html.desktop-workspace .vt-ply-strip-label{display:none}html.desktop-workspace .vt-readouts{font-size:14px}html.desktop-workspace .vt-controls{align-self:start}
/* Ultrasound: an adjustable support column with a readable cross-section. */
html.desktop-workspace #ultraResults{grid-template-columns:minmax(400px,1fr) 12px minmax(280px,var(--ultraSupportW,300px));gap:0}
html.desktop-workspace .ultra-study{margin-right:6px}html.desktop-workspace #ultraWidthDivider{grid-column:2;grid-row:1}html.desktop-workspace .workspace-ultra-support{grid-column:3;grid-row:1;margin-left:6px;overflow:auto}
html.desktop-workspace #ultraMetrics .kpi span,html.desktop-workspace #ultraInterpretation{font-size:14px}html.desktop-workspace #ultraPath{min-height:160px}html.desktop-workspace #ultraPath svg{height:100%;max-height:none}
/* Explorer: a shallow visual header and four calm, generously spaced maps. */
html.desktop-workspace #p-screen>.explorer-view{display:flex;flex-direction:column;gap:14px;min-height:0}
html.desktop-workspace .es-laminate-preview{display:grid;grid-template-columns:155px minmax(180px,.8fr) minmax(500px,1.8fr);align-items:center;padding:14px 18px;gap:18px;flex:none;overflow:visible;min-height:115px}
html.desktop-workspace .es-laminate-art{width:155px;height:100px;min-height:100px;max-height:none;display:grid;place-items:center}html.desktop-workspace .es-laminate-art svg{height:100%;max-height:none;width:100%}
html.desktop-workspace .es-laminate-preview .lam-eyebrow,html.desktop-workspace .es-laminate-preview .es-material-name,html.desktop-workspace .es-laminate-preview .es-layup-label,html.desktop-workspace .es-laminate-preview .es-panel-note{display:none}
html.desktop-workspace .es-laminate-preview .material-preview-info h3{font-size:25px;margin:0 0 7px}html.desktop-workspace .es-composition{font-size:14px;margin:0 0 6px;line-height:1.5}html.desktop-workspace .es-fraction-caption{font-size:14px;line-height:1.5}
html.desktop-workspace .es-laminate-preview .es-result-bar{border:0;padding:0;min-width:0}html.desktop-workspace .es-six-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px}
html.desktop-workspace .es-result>span{font-size:14px;line-height:1.3}html.desktop-workspace .es-result strong{font-size:25px;line-height:1.2;margin-top:4px}html.desktop-workspace .es-result strong small{display:inline;font-size:13px}
html.desktop-workspace .es-analysis-panel{display:flex;flex-direction:column;padding:16px 18px;flex:1 0 540px;min-height:540px;gap:0}
html.desktop-workspace .es-comparison-key{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;padding:0 0 12px;margin:0;flex:none}
html.desktop-workspace .es-comparison-key .material-axis-context{display:none}html.desktop-workspace .es-fiber-legend{gap:6px}html.desktop-workspace .es-fiber-legend button{padding:6px 9px;font-size:14px}html.desktop-workspace .es-group-legend{gap:8px 12px;margin:0}html.desktop-workspace .es-group-legend span{font-size:14px}
html.desktop-workspace .es-plot-wrap{flex:1 1 0;min-height:0}html.desktop-workspace .es-plots-grid{gap:20px 24px;grid-template-rows:repeat(2,minmax(220px,1fr));min-height:460px}
html.desktop-workspace .es-plot-card{min-height:220px}html.desktop-workspace .es-plot-head{margin-bottom:6px}html.desktop-workspace .es-plot-head h3{font-size:20px}html.desktop-workspace .es-plot-head>div>span{display:none}html.desktop-workspace .es-plot-head .seg button{font-size:14px;padding:5px 10px}
html.desktop-workspace .es-native-plot{min-height:180px}html.desktop-workspace .es-native-plot svg{min-height:180px}
html.desktop-workspace .es-plots-grid.is-focused{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(440px,1fr)}html.desktop-workspace .es-plots-grid.is-focused .es-plot-card{min-height:440px}
@container(max-width:1050px){html.desktop-workspace .es-laminate-preview{grid-template-columns:145px minmax(0,1fr)}html.desktop-workspace .es-laminate-preview .es-result-bar{grid-column:1/-1}html.desktop-workspace .es-six-results{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){.workspace-panel-split{display:none!important}}


/* ============================================================== v42 visual layer
   Loaded after the v41 rules so it wins on equal specificity. Tokens first, then
   shared components, then page-specific layouts (Welcome, Material, Explorer). */
:root{
  --r:14px; --r-lg:20px;
  --accent-2:#7b5cc4; --gold-hi:#e8d49a;
  --track:#e4dff0;
  --sh-1:0 1px 2px rgba(23,16,48,.05),0 6px 20px -10px rgba(23,16,48,.16);
  --sh-2:0 2px 4px rgba(23,16,48,.06),0 18px 40px -14px rgba(23,16,48,.28);
  --ease:cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--track:#343a4a;--accent-2:#c9b8f5;--sh-1:0 1px 2px rgba(0,0,0,.3),0 8px 22px -10px rgba(0,0,0,.6);--sh-2:0 2px 4px rgba(0,0,0,.35),0 20px 44px -14px rgba(0,0,0,.7)}}
:root[data-theme="dark"]{--track:#343a4a;--accent-2:#c9b8f5;--sh-1:0 1px 2px rgba(0,0,0,.3),0 8px 22px -10px rgba(0,0,0,.6);--sh-2:0 2px 4px rgba(0,0,0,.35),0 20px 44px -14px rgba(0,0,0,.7)}

/* ---------- shell */
.content{background:radial-gradient(900px 420px at 100% 0%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 70%),var(--bg)}
.tbar{position:relative;z-index:40;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.4) blur(8px)}
.tbar .pop{z-index:50}
.tbar .ttl h2{font:650 21px/1.15 var(--f-display);letter-spacing:-.01em}
.tbar .ttl p{color:var(--muted)}
.sitem{transition:background .15s,color .15s,box-shadow .15s}
.side .sitem[aria-current=page]{box-shadow:inset 3px 0 0 var(--gold)}
.sbar{color:var(--muted)}
:where(button,a,input,select,summary,[tabindex]):focus-visible{outline:2px solid var(--accent-2);outline-offset:2px}

/* ---------- cards & buttons */
.card{border-color:color-mix(in srgb,var(--line) 80%,transparent);box-shadow:var(--sh-1)}
.btn{border-radius:10px;transition:transform .14s var(--ease),box-shadow .14s,background .14s,border-color .14s}
.btn:not(:disabled):hover{transform:translateY(-1px);box-shadow:var(--sh-1);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.btn:not(:disabled):active{transform:translateY(0)}
.btn.primary{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 78%,#a58bdf),var(--accent));border-color:transparent;box-shadow:0 6px 16px -6px color-mix(in srgb,var(--accent) 70%,transparent)}
.btn.primary:not(:disabled):hover{box-shadow:0 10px 22px -8px color-mix(in srgb,var(--accent) 80%,transparent)}
.seg{border-radius:10px}

/* ---------- readouts: friendly numerals, accent edge, pulse on change */
.kpi,.es-result,.lam-modulus,.vt-result{position:relative}
.vt-result>span{line-height:1.3}
.kpi{border-radius:var(--r);box-shadow:var(--sh-1);overflow:hidden}
.kpi::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(var(--accent-2),var(--accent));opacity:.85}
.kpi.bad::before{background:var(--bad)}.kpi.ok::before{background:var(--ok)}
.kpi strong,.es-result strong,.lam-modulus>div,.vt-result>div{font-family:var(--f-body)!important;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.015em}
.v42-bump strong,.v42-bump.lam-modulus>div,.v42-bump.vt-result>div{animation:v42-bump .5s var(--ease)}
@keyframes v42-bump{0%{color:var(--accent-2);transform:translateY(-2px)}100%{transform:none}}

/* ---------- sliders: filled track, large friendly thumb */
input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;height:24px;--pct:50%;--fill:var(--accent);cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:99px;background:linear-gradient(90deg,var(--fill) 0 var(--pct),var(--track) var(--pct) 100%)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border-radius:50%;background:var(--surface);border:2.5px solid var(--fill);box-shadow:0 1px 4px rgba(20,12,40,.3);transition:transform .14s var(--ease)}
input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.12)}
input[type=range]:active::-webkit-slider-thumb{transform:scale(1.25);box-shadow:0 0 0 7px color-mix(in srgb,var(--fill) 18%,transparent)}
input[type=range]::-moz-range-track{height:6px;border-radius:99px;background:var(--track)}
input[type=range]::-moz-range-progress{height:6px;border-radius:99px;background:var(--fill)}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--surface);border:2.5px solid var(--fill);box-shadow:0 1px 4px rgba(20,12,40,.3)}
input[type=range]:disabled{opacity:.45;cursor:not-allowed}

/* ---------- setup accordions: the open step reads as "you are here" */
.setup-step>summary{transition:background .15s}
.setup-step>summary:hover{background:color-mix(in srgb,var(--accent) 5%,transparent)}
.setup-step[open]>summary{background:color-mix(in srgb,var(--accent) 7%,transparent)}
.setup-step[open] .step-number{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}

/* ---------- motion: pages and results slide in */
.page:not([hidden])>.card,.page:not([hidden])>.view{animation:v42-rise .38s var(--ease) both}
.page:not([hidden])>.view{animation-delay:.05s}
@keyframes v42-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- intro cards: DSC & Rheology match the other activities (art left, copy right) */
html.desktop-workspace .work .test-instrument.is-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;justify-items:stretch;text-align:left;padding:28px}
html.desktop-workspace .work .test-instrument.is-intro>div:first-child{width:100%;max-width:440px;justify-self:center}
html.desktop-workspace .work .test-instrument.is-intro .instrument-copy{max-width:46ch}
.lesson-intro h3,.test-instrument.is-intro h3{letter-spacing:-.015em}
/* ============================================================== Welcome */
.main.is-home .home-content{padding:clamp(14px,2.4vh,26px) clamp(16px,2.2vw,32px)}
.wl{max-width:1440px;margin:0 auto;display:flex;flex-direction:column;gap:clamp(14px,2.4vh,24px);min-height:100%}
.wl-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:20px;padding:clamp(20px,4vh,44px) clamp(24px,3.4vw,56px);border-radius:var(--r-lg);color:#fff;overflow:hidden;
  background:radial-gradient(700px 360px at 82% 40%,rgba(232,212,154,.28),transparent 65%),radial-gradient(500px 300px at 0% 100%,rgba(123,92,196,.55),transparent 70%),linear-gradient(135deg,#21163f 0%,#3b2470 50%,#4b2e83 100%);box-shadow:var(--sh-2)}
.wl-hero::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.12;background:repeating-linear-gradient(115deg,#fff 0 1px,transparent 1px 22px)}
.wl-kicker{display:flex;align-items:center;gap:9px;margin:0 0 14px;font:500 12px var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:var(--gold-hi)}
.uw-dot{width:8px;height:8px;border-radius:50%;background:var(--gold-hi);box-shadow:0 0 0 4px rgba(232,212,154,.2)}
.wl-hero h2{margin:0;font:700 clamp(34px,4.4vw,66px)/1.0 var(--f-display);letter-spacing:-.02em;color:#fff}
.wl-hero h2 em{font-style:normal;background:linear-gradient(90deg,var(--gold-hi),#f4b183);-webkit-background-clip:text;background-clip:text;color:transparent}
.wl-lead{max-width:58ch;margin:clamp(10px,2vh,18px) 0 0;font-size:clamp(14px,1.05vw,17px);line-height:1.6;color:rgba(255,255,255,.82)}
.wl-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:clamp(14px,2.6vh,26px)}
.wl-cta{background:var(--gold-hi)!important;color:#21163f!important;border:0!important;font-weight:650;padding:11px 20px;font-size:14px;box-shadow:0 10px 24px -10px rgba(232,212,154,.8)}
.wl-ghost{background:rgba(255,255,255,.08)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)!important;padding:11px 18px;font-size:14px}
.wl-ghost:hover{background:rgba(255,255,255,.16)!important}
.wl-resume{margin:10px 0 0;font-size:12px;color:rgba(255,255,255,.7)}
.wl-hero-art{margin:0;display:grid;place-items:center}
.wl-hero-art img{width:100%;max-width:520px;max-height:clamp(170px,34vh,340px);object-fit:contain;filter:drop-shadow(0 30px 34px rgba(0,0,0,.45));animation:v42-float 7s ease-in-out infinite}
@keyframes v42-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(-1deg)}}
.wl-path{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.4vw,20px);flex:1 1 auto;min-height:0}
.wl-step{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid color-mix(in srgb,var(--line) 80%,transparent);border-radius:var(--r-lg);box-shadow:var(--sh-1);overflow:hidden;transition:transform .22s var(--ease),box-shadow .22s}
.wl-step::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--tone)}

.wl-step:not(:last-child)::after{content:"";position:absolute;z-index:2;right:calc(-1 * clamp(12px,1.4vw,20px) / 2 - 7px);top:clamp(60px,10vh,96px);width:14px;height:14px;border-radius:50%;background:var(--surface);border:2px solid var(--line)}
.wl-step-main{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(0,1fr) auto auto;grid-template-areas:"art art" "num title" "sub sub";align-items:center;column-gap:10px;padding:14px 16px 10px;flex:1 1 auto;min-height:0}
.wl-step-main{cursor:default}
.wl-step-art{grid-area:art;display:grid;place-items:center;height:100%;min-height:clamp(80px,16vh,190px);max-height:260px;margin:0 -4px 8px;border-radius:12px;background:radial-gradient(closest-side,color-mix(in srgb,var(--tone) 16%,transparent),transparent)}
.wl-step-art img{width:auto;height:100%;max-width:100%;object-fit:contain;transition:transform .35s var(--ease)}

.wl-num{grid-area:num;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--tone);color:#fff;font:700 14px var(--f-display)}
.wl-step-title{grid-area:title;font:650 clamp(17px,1.4vw,21px)/1.2 var(--f-display);color:var(--ink)}
.wl-step-sub{grid-area:sub;margin-top:6px;font-size:13px;line-height:1.5;color:var(--muted)}
.wl-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 14px}
.wl-chips button{cursor:pointer;border:1px solid color-mix(in srgb,var(--tone) 35%,var(--line));background:color-mix(in srgb,var(--tone) 8%,var(--surface));color:var(--ink);border-radius:99px;padding:5px 11px;font:500 12px var(--f-body);transition:background .15s,transform .15s}
.wl-chips button:hover,.wl-chips button:focus-visible{background:var(--tone);border-color:var(--tone);color:#fff;transform:translateY(-1px);outline:none}
@media(max-width:1100px){.wl-path{grid-template-columns:repeat(2,minmax(0,1fr))}.wl-step:nth-child(2)::after{display:none}}
@media(max-width:700px){.wl-step-art{min-height:0;height:140px}.wl-hero{grid-template-columns:1fr}.wl-hero-art{display:none}.wl-path{grid-template-columns:1fr}.wl-step::after{display:none}}
/* ============================================================== Material & Layup Explorer */
.explorer-setup .setup-body{padding:14px 16px 8px}
.es-control-section{padding:0 0 10px;margin-bottom:10px}
.explorer-setup .es-control-section .hint{margin:8px 0 0;font-size:12.5px}
.es-sequence{margin-top:4px}
.es-control-section h3,.es-section-head h3{display:flex;align-items:center;gap:9px;font:650 16px/1.2 var(--f-display);margin:0 0 9px}
.es-section-head{align-items:center}
.es-step{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font:700 12px var(--f-display)}
.es-fiber-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0}
.es-fiber-picker button{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;padding:7px 2px 6px;border-radius:11px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;transition:transform .14s var(--ease),border-color .14s,background .14s,box-shadow .14s}
.es-fiber-picker button svg{width:16px;height:16px;margin-bottom:2px}
.es-fiber-picker button b{font:600 12.5px/1.1 var(--f-body);white-space:nowrap}
.es-fiber-picker button small{font-size:10.5px;line-height:1.2;color:var(--muted)}
.es-fiber-picker button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 40%,var(--line));box-shadow:var(--sh-1)}
.es-fiber-picker button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.es-vf-slider{margin-top:10px}
.es-slider{gap:0}.es-sliders{gap:6px}
.es-slider output{font:600 15px var(--f-body);font-variant-numeric:tabular-nums}
.es-fixed{display:none}
#esResinNote{margin:2px 0 0}
.es-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 8px}
.es-presets .btn{padding:7px 4px;font-size:12px;border-radius:9px;white-space:normal;line-height:1.15}
.es-presets .btn[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}
.es-howto{display:flex;align-items:center;gap:7px;margin:0;font-size:12.5px;color:var(--muted)}
.es-ring{width:11px;height:11px;border-radius:50%;border:2px solid var(--ink);background:var(--surface)}
.es-comparison-key{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 18px}
.es-group-legend{margin:0}
.es-plot-head h3{font-size:17px}
.es-enlarge{font-size:12px!important;padding:3px 9px!important;opacity:.75}
.es-plot-card:hover .es-enlarge,.es-enlarge:focus-visible,.es-enlarge[aria-pressed=true]{opacity:1}
.es-plot-card{border-radius:12px;transition:background .2s}
.es-plot-card:hover{background:color-mix(in srgb,var(--accent) 3%,transparent)}

html.desktop-workspace .explorer-view{gap:12px}
html.desktop-workspace .es-laminate-preview{grid-template-columns:118px minmax(150px,.75fr) minmax(420px,2fr);padding:10px 16px;gap:16px;min-height:0}
html.desktop-workspace .es-laminate-art{width:118px;height:78px;min-height:78px}
html.desktop-workspace .es-laminate-preview .material-preview-info h3{font-size:21px;margin:0 0 4px}
html.desktop-workspace .es-composition,html.desktop-workspace .es-fraction-caption{font-size:13px;line-height:1.45;margin:0}
html.desktop-workspace .es-six-results{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 18px}
html.desktop-workspace .es-result>span{font-size:12.5px}
html.desktop-workspace .es-result strong{font-size:21px;margin-top:1px}
html.desktop-workspace .es-result strong small{font-size:12px}
html.desktop-workspace .es-analysis-panel{flex:1 1 0;min-height:0;padding:12px 16px 10px}
html.desktop-workspace .es-comparison-key{padding:0 0 8px}
html.desktop-workspace .es-group-legend span{font-size:13px}
html.desktop-workspace .es-plot-wrap{flex:1 1 0;min-height:0}
html.desktop-workspace .es-plots-grid{height:100%;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px 22px}
html.desktop-workspace .es-plot-card{display:flex;flex-direction:column;min-height:0}
html.desktop-workspace .es-plot-head{margin-bottom:2px;flex:none}
html.desktop-workspace .es-plot-head h3{font-size:16px}
html.desktop-workspace .es-plot-head .seg button{font-size:13px;padding:3px 10px}
html.desktop-workspace .es-native-plot{flex:1 1 0;min-height:110px;position:relative}
html.desktop-workspace .es-native-plot svg{position:absolute;inset:0;width:100%;height:100%;min-height:0}
html.desktop-workspace .es-plots-grid.is-focused{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
html.desktop-workspace .es-plots-grid.is-focused .es-plot-card{min-height:0}
@container(max-width:1050px){html.desktop-workspace .es-laminate-preview{grid-template-columns:118px minmax(0,1fr)}html.desktop-workspace .es-six-results{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* ============================================================== Material Builder */
#bStructure circle,#bStructure rect{transition:all .25s var(--ease)}
html.desktop-workspace #matResults{grid-template-columns:250px minmax(0,1fr)}
html.desktop-workspace #bStructureCard{justify-content:flex-start;padding:14px;gap:12px;overflow:auto}
html.desktop-workspace #bStructureCard .material-preview-info h3{font-size:17px;margin:2px 0 8px}
html.desktop-workspace #bStructureCard .material-volume-label{display:none}
.material-phase-head{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
#bPhaseLegend .material-phase{display:grid;grid-template-columns:10px minmax(0,1fr) 48px 48px;gap:6px;align-items:center}
#bPhaseLegend .material-phase b{text-align:right;font:500 12.5px var(--f-body);font-variant-numeric:tabular-nums}
.material-density{margin:8px 0 0;font-size:13px;color:var(--ink)}
html.desktop-workspace #matResults .material-axis-context{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:8px;padding:6px 10px}
html.desktop-workspace #matResults .material-axis-context strong{font-size:13.5px}
html.desktop-workspace #matResults .material-axis-context p{margin:0;font-size:12.5px}
html.desktop-workspace #matResults .chartbar{row-gap:6px}
/* ============================================================== Lamina Behavior dial */
.ply-dial{display:block;width:100%;height:auto;cursor:grab;touch-action:none;user-select:none}
.ply-dial:active{cursor:grabbing}
.ply-dial-handle{filter:drop-shadow(0 2px 4px rgba(20,12,40,.3))}
.ply-angle-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:6px 0 4px}
.ply-angle-chips button{cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:99px;padding:5px 12px;font:600 13px var(--f-body);font-variant-numeric:tabular-nums;transition:transform .14s var(--ease),background .14s,border-color .14s}
.ply-angle-chips button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}
.ply-angle-chips button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}
html.desktop-workspace #plyStudyResults{grid-template-columns:minmax(300px,1fr) minmax(0,1fr)}
html.desktop-workspace #plyStudyDiagram svg.ply-dial{max-height:min(46vh,440px)}
/* ============================================================== Mechanical Tests readouts */
html.desktop-workspace .vt-top .vt-result{display:flex;flex-direction:column;justify-content:space-between;gap:6px;padding:10px 12px}
html.desktop-workspace .vt-top .vt-result>span{font-size:12.5px;line-height:1.25;color:var(--muted)}
html.desktop-workspace .vt-top .vt-result>div{font-size:23px;line-height:1.1;white-space:nowrap}
html.desktop-workspace .vt-top .vt-result>div small{font-size:12px;font-weight:500;color:var(--muted)}
/* ============================================================== How it works */
.how-flow button{cursor:pointer;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:99px;padding:7px 14px;background:var(--accent-soft);color:var(--accent);font:600 13px var(--f-body);transition:transform .14s var(--ease),box-shadow .14s}
.how-flow button:hover{transform:translateY(-1px);box-shadow:var(--sh-1)}
.how-jump{position:sticky;top:-21px;z-index:3;display:flex;flex-wrap:wrap;gap:6px;margin:0 -8px 8px;padding:10px 8px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.how-jump button{cursor:pointer;border:1px solid var(--line);border-radius:99px;padding:5px 12px;background:var(--surface);color:var(--ink);font:500 12.5px var(--f-body)}
.how-jump button:hover{border-color:var(--accent);color:var(--accent)}
.how-sections section{display:flex;flex-direction:column;gap:6px;border-radius:12px;transition:transform .18s var(--ease),box-shadow .18s,border-color .18s}
.how-sections section:hover{transform:translateY(-2px);box-shadow:var(--sh-1);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
.how-open{align-self:flex-start;margin-top:auto;cursor:pointer;border:0;background:none;padding:6px 0 0;color:var(--accent);font:600 13px var(--f-body)}
.how-open:hover{text-decoration:underline}
#p-about [id]{scroll-margin-top:64px}
/* ============================================================== Burn-off (staged holds + lab notebook) */
.bo-mode{display:flex;width:100%;margin:0 0 12px}.bo-mode button{flex:1;padding:8px 6px}
.bo-mode button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.bo-input{table-layout:fixed;width:100%}.bo-input th,.bo-input td{padding:3px 2px;font-size:11.5px;text-align:left}.bo-input th:nth-child(1){width:19%}.bo-input th:nth-child(2){width:24%}.bo-input th:nth-child(4){width:24%}
#boData input{width:100%;min-width:0;box-sizing:border-box;padding:5px 6px;font-size:13px;height:auto}
#boData .fields{gap:8px}
#boData input[type=number]{-moz-appearance:textfield;appearance:textfield;padding:5px 4px}#boData td input{font-size:12px;padding:5px 3px}#boData input::-webkit-inner-spin-button,#boData input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.bo-run{padding:14px 16px;display:flex;flex-direction:column;gap:10px;min-height:0}
.bo-head{display:flex;gap:10px;align-items:center}
.bo-stages{display:flex;gap:6px;flex:1;flex-wrap:wrap;min-width:0}
.bo-stages button{flex:1;min-width:104px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);cursor:pointer;text-align:left;transition:background .15s,border-color .15s}
.bo-stages button b{font:650 14px var(--f-body);color:var(--ink)}.bo-stages button span{font-size:11.5px;line-height:1.2}
.bo-stages button.done{background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.bo-stages button[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.bo-data-title{font:650 15px var(--f-display)}
.bo-nav{display:flex;gap:6px;flex:none}
.bo-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:14px;align-items:center;min-height:0}
.bo-specimen svg,.bo-plot svg{display:block;width:100%;height:auto;max-height:250px}
.bo-plot svg{max-height:330px}
.bo-scene{grid-template-columns:minmax(0,.7fr) minmax(0,1.6fr)!important}
.bo-detail{margin:0;font-size:13.5px;line-height:1.5;color:var(--muted)}.bo-detail strong{color:var(--ink)}
.bo-notebook{padding:12px 16px;min-height:0;overflow:auto}
.bo-nb-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.bo-nb-head h3{font:650 16px var(--f-display);margin:0}
.bo-toggle{display:flex;align-items:center;gap:6px;font-size:13px;cursor:pointer}
.bo-given{margin:6px 0 8px;font-size:13px;color:var(--muted)}.bo-given b{color:var(--ink);font-weight:600}
.bo-table th,.bo-table td{font-size:12.5px;padding:5px 8px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bo-table .t{text-align:left}
.bo-hidden{text-align:center!important;color:var(--muted);background:repeating-linear-gradient(135deg,transparent 0 6px,color-mix(in srgb,var(--accent) 6%,transparent) 6px 12px)}
.bo-void td{border-top:2px solid var(--line);font-weight:600}
.bo-compare{margin:8px 0 0}
.bo-recovered{align-self:start}.bo-recovered h4{margin:0 0 6px;font:650 15px var(--f-display)}
.bo-recovered .hint{margin:6px 0 0;font-size:11.5px}
.bo-total td{border-top:2px solid var(--line);font-weight:600}
.bo-specimen svg{max-height:215px}
.bo-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.bo-chips>div{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.bo-chips span{display:block;font-size:12px;color:var(--muted)}.bo-chips strong{font:650 22px var(--f-body);font-variant-numeric:tabular-nums}.bo-chips small{font-size:12px;color:var(--muted);margin-left:2px}
.bo-void-chip{border-color:var(--accent)!important;background:var(--accent-soft)!important}
html.desktop-workspace #burnPost,html.desktop-workspace #burnPost:has(>#burnReveal:not([hidden])){grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
html.desktop-workspace #burnReveal{padding:12px 16px}
@media(max-width:800px){.bo-scene{grid-template-columns:1fr}.bo-head{flex-wrap:wrap}}
/* Material setup: every composition input visible at once (fiber, Vf, optional second fiber, voids). */
#matCompositionStep .step-body{padding-top:4px}
#matCompositionStep .btnrow{margin:0 0 8px!important}
#matCompositionStep .btnrow .btn{font-size:12px;padding:4px 10px}
html[data-resin="890"] [data-rz="8552"],html:not([data-resin="890"]) [data-rz="890"]{display:none!important}
#bResin:disabled{opacity:1;color:var(--ink,inherit);background:var(--accent-soft,#f3f0f8)!important;background-image:none!important;-webkit-appearance:none;appearance:none;cursor:default}
#matCompositionStep .fields{row-gap:10px}
#matCompositionStep .f:has(>input.sl){grid-column:1/-1;display:grid;grid-template-columns:62px minmax(0,1fr);column-gap:10px;align-items:center}
#matCompositionStep .f:has(>input.sl)>label{grid-column:1/-1}
#matCompositionStep .f:has(>input.sl)>input[type=number]{width:100%;padding:6px 6px;-moz-appearance:textfield;appearance:textfield}
#matCompositionStep .f:has(>input.sl)>input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}
#matCompositionStep .f:has(>input.sl)>input.sl{margin:0}
p.hint.f{display:block}#bFiberCap{font-size:12px;margin:-4px 0 0!important}
.fields .mat-add{margin:-2px 0 0;text-align:left}.mat-add .linkbtn{font-size:13px;padding:2px 0;width:auto;display:inline;text-align:left}
#p-mat .setup-foot #bSync{font-size:11.5px;line-height:1.4;margin:0}
#matCompositionStep .fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
/* ============================================================== Laminate Builder on short screens: shrink figures, never hide the angle slider */
html.desktop-workspace #lamResults{grid-template-rows:auto minmax(0,1fr);min-height:0;gap:10px}
html.desktop-workspace .lam-overview{padding:10px 16px}
html.desktop-workspace .lam-overview h3,html.desktop-workspace .lam-overview .lam-code{margin:2px 0}
html.desktop-workspace #lamModuli .lam-modulus>div{font-size:25px}
html.desktop-workspace .lam-visuals{min-height:0}
html.desktop-workspace .lam-visuals>.lam-visual-card{display:flex;flex-direction:column;min-height:0;padding:12px 16px;overflow:hidden}
html.desktop-workspace .lam-visual-heading h3{font-size:19px}
html.desktop-workspace #lamStack{min-height:120px}
html.desktop-workspace #lamPolar{min-height:120px}
html.desktop-workspace .lam-visual-card>:not(#lamStack):not(#lamPolar){flex:none}
html.desktop-workspace .lam-builder-head .lam-eyebrow,html.desktop-workspace .lam-builder-head h3{display:none}
html.desktop-workspace .lam-builder-head .lam-material{margin:0 0 6px}
@media (max-height:760px){html.desktop-workspace .lam-visual-heading>span{display:none}html.desktop-workspace .lam-overview .lam-eyebrow{display:none}}
/* Resizable panels: no grip graphic; the divider line appears on hover and the cursor shows it can be dragged */
.v42-split{position:absolute!important;z-index:6}

.v42-split[hidden]{display:none!important}
html.desktop-workspace #matResults{grid-template-columns:var(--v42MatStructW,360px) minmax(0,1fr)}
html.desktop-workspace #plyStudyResults{grid-template-columns:var(--v42PlyDiagW,minmax(300px,1fr)) minmax(0,1fr)}
html.desktop-workspace #burnPost,html.desktop-workspace #burnPost:has(>#burnReveal:not([hidden])){grid-template-rows:var(--v42BoRunH,minmax(0,1.7fr)) minmax(0,1fr)}
html.desktop-workspace .es-plots-grid{grid-template-columns:var(--v42EsColW,minmax(0,1fr)) minmax(0,1fr)!important;grid-template-rows:var(--v42EsRowH,minmax(0,1fr)) minmax(0,1fr)!important}
html.desktop-workspace .es-plots-grid.is-focused{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
/* ---------- Explorer views */
.es-view button{padding:7px 14px;font-size:14.5px}
.es-group-seg button{padding:6px 14px;font-size:14px}.es-group-seg button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.es-alt-card .es-plot-head h3{font-size:20px!important}.es-alt-card .es-plot-head>div>span{font-size:14px!important}
.es-alt-controls{display:flex;align-items:center;gap:8px;flex:none}
.es-alt-metric{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}.es-alt-metric select{padding:4px 6px;font-size:13px}
.es-alt-card .es-plot-head>div>span{display:block!important;font-size:12.5px;color:var(--muted);margin-top:2px}
.es-map-cell{cursor:pointer}.es-map-cell:hover .es-mark,.es-map-cell:focus .es-mark,.es-map-cell.es-linked-preview .es-mark{stroke:var(--ink);stroke-width:2.5}
.es-fiber-hull:hover path{fill-opacity:.24}
/* Explorer summary strip on one row so the plots get the height */
html.desktop-workspace .es-laminate-preview{grid-template-columns:minmax(190px,.8fr) minmax(0,2.8fr)!important;padding:8px 16px;gap:16px}
html.desktop-workspace .es-laminate-preview .es-result-bar{grid-column:auto!important}
html.desktop-workspace .es-laminate-art{width:96px;height:62px;min-height:62px}
html.desktop-workspace .es-laminate-preview .material-preview-info h3{font-size:18px;margin:0 0 2px}
html.desktop-workspace .es-six-results{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px 12px}
html.desktop-workspace .es-result>span{font-size:11.5px;line-height:1.25}
html.desktop-workspace .es-result strong{font-size:18px}
html.desktop-workspace .es-result strong small{font-size:11px}
html.desktop-workspace .es-result em{font-size:11px}
html.desktop-workspace .es-fraction-caption{font-size:12px}
/* ---------- Material microstructure (end view, along view, cutaway); fiber diameter fixed */
#bStructureCard{--micro-edge:#756344;--micro-glint:#fff;--micro-shadow:#49331e}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) #bStructureCard{--micro-edge:#cbb98f;--micro-shadow:#000}}
:root[data-theme="dark"] #bStructureCard{--micro-edge:#cbb98f;--micro-shadow:#000}
.material-micro-visual{min-width:0}
.material-micro-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.material-view-switch button{font-size:12.5px;padding:5px 9px;white-space:nowrap}
.material-view-switch button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.material-cutaway{position:relative;max-width:320px;margin:2px auto 0;color:var(--muted)}
.material-cutaway svg{display:block;width:100%;height:auto;aspect-ratio:250/164;max-height:190px;overflow:visible;transition:transform .2s ease}
.material-cutaway:hover svg{transform:translateY(-3px)}
.material-cutaway>span{position:absolute;left:2px;bottom:4px;font-size:11.5px}.material-cutaway>span>span{margin-left:6px;color:var(--accent)}
#bStructureCard .material-structure{border:1px solid var(--line);border-radius:12px;background:var(--phase-resin);overflow:hidden;isolation:isolate;padding:0}
#bStructureCard .material-structure svg{width:100%;max-width:none;height:auto!important;aspect-ratio:240/155.885;display:block}
.material-view-caption{font-size:11.5px;line-height:1.4;color:var(--muted);margin:5px 0 0}
.material-micro-note{color:var(--muted);font-size:11.5px;line-height:1.4;margin:8px 0 0}
#bStructureCard [data-micro-phase]{transition:opacity .16s ease}#bStructure [data-micro-phase]{cursor:pointer}
#bStructureCard[data-highlight] [data-micro-phase]{opacity:.18}
#bStructureCard[data-highlight=a] [data-micro-phase=a],#bStructureCard[data-highlight=b] [data-micro-phase=b],#bStructureCard[data-highlight=resin] [data-micro-phase=resin],#bStructureCard[data-highlight=void] [data-micro-phase=void]{opacity:1}
#bPhaseLegend button.material-phase{border:1px solid transparent;background:none;color:var(--ink);font:13px/1.35 var(--f-body);text-align:left;width:100%;padding:4px 6px;border-radius:8px;cursor:pointer}
#bPhaseLegend button.material-phase:hover,#bPhaseLegend button.material-phase:focus-visible,#bPhaseLegend button.material-phase[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}
#bPhaseLegend .material-phase-head{padding:0 7px}
html.desktop-workspace #bStructureCard{gap:8px;padding:12px 14px}
html.desktop-workspace #bStructureCard .material-preview-info h3{font-size:15px;margin:0 0 6px}
/* Burn-off fits its panel: the furnace scene and chart shrink with the window instead of overflowing */
html.desktop-workspace .bo-run{display:flex;flex-direction:column;min-height:0;overflow:hidden}
html.desktop-workspace .bo-head,html.desktop-workspace .bo-detail{flex:none}
html.desktop-workspace .bo-scene{flex:1 1 0;min-height:0;align-items:stretch}
html.desktop-workspace .bo-specimen,html.desktop-workspace .bo-plot{min-height:0;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
html.desktop-workspace .bo-specimen svg,html.desktop-workspace .bo-plot svg,html.desktop-workspace .bo-plot #burnPlot{width:100%;height:100%;max-height:100%!important}
html.desktop-workspace .bo-plot #burnPlot{display:flex}
html.desktop-workspace .bo-specimen:has(.bo-recovered){overflow:auto;align-items:flex-start;justify-content:flex-start}
.bo-scene:has(.bo-recovered){grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important}
html.desktop-workspace .bo-detail{font-size:12.5px;line-height:1.4}
/* Hover cards float above the page (never create scrollbars); scroll areas reserve their scrollbar
   space so a scrollbar appearing can never change a chart's width and trigger a redraw. */
.es-tooltip{position:fixed!important;z-index:60;max-height:calc(100vh - 12px);overflow:hidden}
html.desktop-workspace .work>.view,html.desktop-workspace .setup-body,html.desktop-workspace #bStructureCard,html.desktop-workspace .bo-notebook{scrollbar-gutter:stable}
html.desktop-workspace .es-alt-card{display:flex;flex-direction:column}
/* Welcome fits short laptop windows: sizes follow the window height as well as its width */
.wl{gap:clamp(10px,2vh,24px)}
.wl-hero{padding:clamp(14px,3.2vh,44px) clamp(22px,3vw,56px)}
.wl-hero h2{font-size:clamp(28px,min(4.4vw,7.2vh),66px)}
.wl-kicker{margin-bottom:clamp(6px,1.4vh,14px)}
.wl-lead{margin-top:clamp(6px,1.4vh,18px)}
.wl-actions{margin-top:clamp(10px,2vh,26px)}
.wl-actions .btn{padding-top:clamp(7px,1.2vh,11px);padding-bottom:clamp(7px,1.2vh,11px)}
.wl-hero-art img{max-height:clamp(110px,27vh,340px)}
@media (min-width:701px) and (min-height:540px){.main.is-home .home-content{overflow:hidden}.wl{height:100%;min-height:0}.wl-path{flex:1 1 0;min-height:0}.wl-step{min-height:0}.wl-step-main{flex:1 1 0;min-height:0;grid-template-rows:minmax(0,1fr) auto auto!important}.wl-step-art{height:100%!important;min-height:48px!important;max-height:230px!important}}
@media (max-width:700px){.wl-step-art{height:140px!important}}

.wl-step-art{display:block!important;overflow:hidden}
.wl-step-art img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain}
.wl-step-main{padding:clamp(8px,1.4vh,14px) 16px clamp(4px,1vh,10px)}
.wl-chips{padding-bottom:clamp(8px,1.6vh,14px)}
@media (max-height:720px){.wl-step-sub{font-size:12px;margin-top:3px}.wl-resume{display:none}.wl-chips button{padding:3px 9px;font-size:11.5px}}
/* ============================================================== Burn-off, one step at a time (rendered crucible figures) */
.bo-switch{margin-top:10px;font-size:13.5px}
.bo2-stages{display:flex;gap:10px;flex-wrap:wrap}
.bo2-stages button{flex:1 1 150px;display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;text-align:left;transition:border-color .15s,background .15s,transform .15s}
.bo2-stages button:hover:not(:disabled){transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
.bo2-stages button img{width:58px;height:39px;object-fit:cover;border-radius:8px;flex:none;background:#ecebe8}
.bo2-stages button span{display:flex;flex-direction:column;min-width:0;font-size:12.5px;color:var(--muted);line-height:1.25}
.bo2-stages button b{font:650 15px var(--f-body);color:var(--ink)}
.bo2-stages button.done{background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.bo2-stages button[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1.5px var(--accent) inset;background:var(--accent-soft)}
.bo2-stages button:disabled{opacity:.45;cursor:not-allowed}
.bo2-res-icon{display:grid!important;place-items:center;width:39px;height:39px;border-radius:50%;background:var(--accent);color:var(--accent-ink)!important;font:700 17px var(--f-display)!important;flex:none}
.bo2-run{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,1fr);gap:clamp(18px,2.5vw,36px);padding:clamp(16px,2.4vh,26px) clamp(18px,2vw,30px);align-items:center;min-height:0}
.bo2-figure{position:relative;margin:0;aspect-ratio:3/2;width:100%;border-radius:18px;overflow:hidden;background:#ecebe8;justify-self:center}
.bo2-figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .6s ease}
.bo2-figure img.off{opacity:0}
.bo2-side{display:flex;flex-direction:column;gap:clamp(10px,1.8vh,18px);min-width:0}
.bo2-step{margin:0;font:600 13px var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.bo2-reads{display:grid;grid-template-columns:1fr 1.25fr;gap:12px}
.bo2-read{display:flex;flex-direction:column;gap:4px}
.bo2-read>span{font-size:13px;color:var(--muted)}
.bo2-read strong{font:650 clamp(26px,3.4vh,36px)/1.1 var(--f-display);color:#c2410c;font-variant-numeric:tabular-nums}
.bo2-balance strong{align-self:flex-start;padding:6px 14px;border-radius:10px;background:#16131f;color:#7CFFB2;font:500 clamp(22px,3vh,30px)/1.2 var(--f-mono)}
.bo2-read small{font-size:13px;color:var(--muted)}
.bo2-what{margin:0;font-size:clamp(15px,1.9vh,17px);line-height:1.55;color:var(--ink)}
.bo2-legend{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bo2-legend li{display:flex;align-items:center;gap:9px;font-size:14.5px}
.bo2-run{--phase-a:#79628f;--phase-b:#398575;--phase-resin:#d9c58f}
.bo2-legend i{width:13px;height:13px;border-radius:50%;flex:none;border:1px solid color-mix(in srgb,var(--ink) 25%,transparent)}
.bo2-legend li span{margin-left:auto;font-size:13px;color:var(--muted)}
.bo2-legend li.gone{opacity:.45;text-decoration:line-through}
.bo2-legend li.gone span{text-decoration:none}
.bo2-nav{display:flex;gap:10px;margin-top:4px}
.bo2-nav .btn{padding:11px 18px;font-size:15px}
.bo2-nav .btn.primary{flex:1}
.bo2-results{padding:clamp(16px,2.4vh,26px) clamp(18px,2vw,30px);overflow:auto;min-height:0}
.bo2-title{margin:0 0 12px;font:650 22px var(--f-display)}
.bo2-results .bo-recovered h4{display:none}
.bo2-results .bo-table th,.bo2-results .bo-table td{font-size:14.5px;padding:8px 12px}
.bo2-results .bo-chips strong{font-size:26px}
.bo2-calc{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
.bo2-calc summary{cursor:pointer;font-size:14.5px;font-weight:600;color:var(--accent)}
.bo2-calc-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:10px}
.bo2-calc-body svg{width:100%;height:auto}
html.desktop-workspace #burnPost,html.desktop-workspace #burnPost:has(>#burnReveal:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:12px}
html.desktop-workspace .bo2-run{height:100%;overflow:hidden}
html.desktop-workspace .bo2-run{align-items:stretch}
html.desktop-workspace .bo2-figure{width:100%;height:100%;aspect-ratio:auto;align-self:stretch;min-height:200px}
html.desktop-workspace .bo2-figure img{object-fit:contain}
.bo2-figure{background:linear-gradient(#d3ccc9,#d9d3d0)!important}
html.desktop-workspace .bo2-side{justify-content:center}
@media (max-width:900px){.bo2-run{grid-template-columns:1fr}.bo2-calc-body{grid-template-columns:1fr}}
.bo2-results{--phase-a:#79628f;--phase-b:#398575;--phase-resin:#d9c58f;--phase-void:#fff}
.bo2-bar{display:flex;height:22px;border-radius:99px;overflow:hidden;margin:0 0 18px;border:1px solid var(--line)}
.bo2-bar span{min-width:2px}.bo2-bar .void{background:repeating-linear-gradient(135deg,#fff 0 4px,#ddd 4px 6px)}
.bo2-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.bo2-card{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.bo2-card>span{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--ink)}
.bo2-card i{width:14px;height:14px;border-radius:50%;flex:none;border:1px solid color-mix(in srgb,var(--ink) 25%,transparent)}
.bo2-card strong{font:650 clamp(30px,4.4vh,42px)/1.1 var(--f-display);font-variant-numeric:tabular-nums;color:var(--ink)}
.bo2-card small{font-size:13px;line-height:1.45;color:var(--muted)}
.bo2-card.void{border-color:var(--accent);background:var(--accent-soft)}
.bo2-sum{margin:14px 0 0;font-size:16px}
.bo2-note{margin:8px 0 0;font-size:13px;color:var(--muted)}
/* ============================================================== Guided, calm, readable (all pages) */
/* Readability: comfortable minimum sizes for help text, step summaries, labels and readouts. */
html.desktop-workspace .hint,html.desktop-workspace .setup-body p,html.desktop-workspace .setup-body label{font-size:max(13.5px,1em)}
.step-title{font-size:16px!important}
.step-summary{font-size:13.5px!important;line-height:1.4}
.kpi>span,.vt-result>span,.lam-modulus>span,.es-result>span{font-size:13.5px!important}
.kpi strong{font-size:clamp(22px,3.2vh,30px)!important}
.tbar .ttl p{font-size:14px}
.chartnote,.v42-clamp{font-size:14px!important;line-height:1.5!important;color:var(--muted)}
/* Detail on demand */
.v42-clamp:not(.open){display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.v42-clamp-btn{border:0;background:none;padding:0 0 0 2px;margin:2px 0 0;color:var(--accent);font:600 13.5px var(--f-body);cursor:pointer}
.v42-clamp-btn[hidden]{display:none}
.v42-more{margin:6px 0 0;border-top:1px solid var(--line);padding-top:8px}
.v42-more>summary{cursor:pointer;font:600 14px var(--f-body);color:var(--accent)}
.v42-more[open]>summary{margin-bottom:6px}
/* Calm readouts: proportional figures everywhere a value is read (equations and code stay monospace) */
.instrument-readout,.lam-direction-readout strong,.mini .mt span,.rrow b,.slider output,.state-controls output,.vt-readouts b,.es-fraction-caption,.lam-areal dd,.material-phase b,.lam-ply-derived b,.burn-readouts strong,.burn-composition strong,.sbar,.mattable td:last-child,table.comp td{font-family:var(--f-body)!important;font-variant-numeric:tabular-nums}
.vt-readouts b{font-size:17px;font-weight:650}
.mini .mt span{font-weight:650;font-size:14.5px}
#vtSlope{font-size:13px;letter-spacing:.02em;text-transform:none}
.v42-clamp-btn{display:block;text-align:left}
/* Explorer: no summary strip (the charts carry the numbers); no empty view titles */
#workspaceEsPreview,#workspaceEsReadouts{display:none!important}
/* Quiet top bar: layout mode is automatic; details are in the More menu */
#workspaceLayoutBtn,#workspaceDetailsBtn,#workspaceVersion{display:none!important}
#esAltTitle:empty,#esAltSub:empty{display:none}
.es-alt-card .es-plot-head{justify-content:flex-end;margin-bottom:6px}
#esUse.v42-next{width:auto}
.explorer-view.es-pre>.card:not(#screenIntro),.explorer-view.es-pre>details{display:none!important}
html.desktop-workspace .explorer-view.es-pre>#screenIntro{flex:1 1 0}
.explorer-setup .setup-foot #runScreen{width:100%}
.v42-next{display:block;margin:10px auto 0;font-size:14px;color:var(--muted);text-decoration:none}
.v42-next:hover{color:var(--accent);text-decoration:underline}
.setup-foot .bo-switch+.v42-next{margin-top:4px}
/* Material Builder: no axis sentence above the plots (the axis label says it) */
#matResults .material-axis-context{display:none!important}
.material-axis{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* Two-fiber sliders share one 0–70 % scale; the part already used by the other fiber is hatched */
input[type=range].v42-cap::-webkit-slider-runnable-track{background:linear-gradient(90deg,var(--fill) 0 var(--pct),var(--track) var(--pct) var(--lim,100%),transparent var(--lim,100%)),repeating-linear-gradient(135deg,color-mix(in srgb,var(--muted) 45%,transparent) 0 2px,transparent 2px 5px)}
input[type=range].v42-cap::-moz-range-track{background:linear-gradient(90deg,var(--track) 0 var(--lim,100%),transparent var(--lim,100%)),repeating-linear-gradient(135deg,color-mix(in srgb,var(--muted) 45%,transparent) 0 2px,transparent 2px 5px)}
/* Material Builder X–Y plot: one chart, students pick X, Y and an optional Y2 */
.mat-xy-head{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 18px}
.mat-xy-head label{display:inline-flex;align-items:center;gap:7px;font:650 14px var(--f-body);color:var(--ink)}
.mat-xy-head select{padding:5px 8px;font-size:14px;border-radius:9px;max-width:200px}
.mat-xy-head{gap:6px 14px!important}
.mat-xy-key{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.mat-xy-key i{display:inline-block;width:22px;height:0;border-top:2.5px solid var(--ink)}
.mat-xy-key i.dash{border-top-style:dashed;margin-left:8px}
/* Material Builder: rendered material figure, cross-fading between fractions */
#bStructureCard .material-micro-visual,#bStructureCard .material-preview-info{width:100%;align-self:stretch}
.mat-fig{position:relative;margin:6px 0 0;width:100%;aspect-ratio:3/2;border-radius:14px;overflow:hidden;background:#ebe7e3}
.mat-fig img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .45s ease}
.mat-fig img.off{opacity:0}
@media(prefers-reduced-motion:reduce){.mat-fig img{transition:none}}
.mat-xy-target{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:2px 0 6px;padding:8px 10px;border-radius:12px;background:color-mix(in srgb,var(--accent) 5%,transparent);border:1px solid color-mix(in srgb,var(--accent) 14%,var(--line))}
.mat-xy-tl{font:650 14px var(--f-body)}
.mat-xy-target label{display:inline-flex;align-items:center;gap:6px;font:600 13.5px var(--f-body)}
.mat-xy-target input{width:92px;padding:5px 7px;font-size:14px;-moz-appearance:textfield;appearance:textfield}
.mat-xy-target input::-webkit-inner-spin-button{-webkit-appearance:none}
.mat-xy-target i{font-style:normal;font-size:12.5px;color:var(--muted);font-weight:400}
.mat-xy-target .btn{padding:6px 14px;font-size:13.5px}
.mat-xy-legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0 0 6px;font-size:13.5px;color:var(--ink)}
.mat-xy-legend span{display:inline-flex;align-items:center;gap:6px}
.mat-xy-legend i{display:inline-block;width:20px;height:3px;border-radius:2px}
.mat-xy-legend i.dash{height:2px;background:repeating-linear-gradient(90deg,var(--ink) 0 4px,transparent 4px 7px)}
.mat-xy-legend i.band{height:12px;background:color-mix(in srgb,var(--accent) 7%,transparent);border:1px dashed color-mix(in srgb,var(--accent) 30%,transparent)}
.mat-xy-legend i.area{height:12px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 25%,transparent)}
.mat-xy-voids{color:var(--muted);margin-left:auto}
.mat-xy-fixed{font-size:13px;color:var(--muted)}
.mat-xy-target .btn sub{font-size:.75em;line-height:0}
.mat-xy-delta{font-size:13.5px;font-weight:600;color:var(--bad);font-variant-numeric:tabular-nums}
.mat-xy-delta.ok{color:var(--ok)}
.mat-xy-note{flex-basis:100%;font-size:13px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.wl-hero-art img,.page:not([hidden])>.card,.page:not([hidden])>.view{animation:none}.wl-step,.btn{transition:none}.bo2-figure img{transition:none}}


/* collapsible menu (desktop): a strip of icons; a group icon opens its pages in a pop-out */
.side-collapse svg{transition:transform .2s}
@media (max-width:900px){.side-collapse{display:none}}
@media (min-width:901px){
  .app{transition:grid-template-columns .2s}
  html.menu-mini .app{grid-template-columns:60px minmax(0,1fr)}
  html.menu-mini .splitter[data-split="side"]{display:none}
  html.menu-mini .sbrand{padding:14px 6px 12px;text-align:center}
  html.menu-mini .brand-copy,html.menu-mini .nav-chevron,html.menu-mini #runCount,html.menu-mini .sfoot .credit,html.menu-mini .license-link,html.menu-mini .sfoot-dot,html.menu-mini .side .learn-tag{display:none}
  html.menu-mini .sfoot-meta{justify-content:center;margin:6px 0 4px}html.menu-mini .side-collapse{margin-left:0}
  html.menu-mini .side-collapse svg{transform:rotate(180deg)}
  html.menu-mini .snav,html.menu-mini .sfoot{padding-left:6px;padding-right:6px}
  html.menu-mini .side .sitem{font-size:0;justify-content:center;gap:0;padding:10px 0}
  html.menu-mini .side .sitem svg{opacity:.9}
  html.menu-mini .nav-children{display:none!important}
  html.menu-mini .nav-group.fly .nav-children{display:grid!important;position:fixed;left:64px;top:var(--flyTop,100px);z-index:60;margin:0;padding:8px;min-width:230px;background:var(--side-bg);border:1px solid var(--side-line);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
  html.menu-mini .nav-group.fly .nav-children .sitem{font-size:13px;justify-content:flex-start;padding:8px 10px}
  html.menu-mini .nav-group.fly .nav-children .learn-tag{display:inline-block}
}

.wl-actions[hidden]{display:none}.wl-actions{align-items:center}.wl-actions{flex-wrap:wrap}.wl-try{color:#e4d2a2;font-size:14px;font-weight:600;letter-spacing:.02em;margin:0 4px 0 0}.wl-hero-copy{grid-column:1/-1;max-width:none!important}.wl-hero-copy>h2,.wl-hero-copy>.wl-kicker{max-width:790px}.wl-try[hidden]{display:none}