/* PhysChem Lab — instrument-style experiment control room */
body[data-workspace="physchem"]{--lab-deep:#0d1c2b;--lab-panel:#142a3b;--lab-line:#345468;--lab-ink:#e5f0f5;--lab-muted:#9bb2bd;--lab-accent:#55c6d2}
body[data-workspace="physchem"]{background:#091724;color:var(--lab-ink)}
body[data-workspace="physchem"] .sb{position:fixed;inset:0 auto 0 0;width:294px;flex:0 0 294px;display:flex;flex-direction:column;padding:20px 14px;background:linear-gradient(180deg,#0b1c2a,#10283a 65%,#0b202f);border-right:1px solid #29495d;box-shadow:12px 0 34px #020a1266;z-index:40}
body[data-workspace="physchem"] .sb .br{padding:4px 7px 19px;border-bottom:1px solid #29495d}
body[data-workspace="physchem"] .sb .lg{width:42px;height:42px;border:1px solid #467d8c;border-radius:12px;background:#12394b;color:#73d8da}
body[data-workspace="physchem"] .sb .sc{padding:16px 0 10px}
body[data-workspace="physchem"] .sb input{width:100%;min-height:42px;border:1px solid #385b70;border-radius:9px;background:#071724;color:#e7f3f7}
body[data-workspace="physchem"] .sb .fl{display:flex;gap:6px}
body[data-workspace="physchem"] .sb .fl button{flex:1;padding:8px 5px;border:1px solid #34566b;border-radius:8px;background:#142d40;color:#a9c1cc}
body[data-workspace="physchem"] .sb .fl button.on{border-color:#55aeb6;background:#17485a;color:#eaffff}
body[data-workspace="physchem"] .sb .cnt{padding:12px 2px;color:#91aebb;font-size:11px}
body[data-workspace="physchem"] .sb .lst{flex:1;min-height:0;overflow:auto;scrollbar-color:#355b70 transparent}
body[data-workspace="physchem"] .sb .lst .it{margin:4px 0;padding:10px 11px;border:1px solid transparent;border-radius:9px;background:transparent;color:#b7ccd5}
body[data-workspace="physchem"] .sb .lst .it.active{border-color:#367789;background:#153b4d;color:#effdff;box-shadow:inset 3px 0 #59c7d0}
body[data-workspace="physchem"] .sb .ft{padding:13px 5px 0;border-top:1px solid #29495d;color:#7896a5;font-size:10px;line-height:1.8}
body[data-workspace="physchem"] .mn{position:fixed;left:294px;right:0;top:0;bottom:0;width:auto;min-height:0;margin-left:0;background:radial-gradient(ellipse at 77% 0,#2b80901c,transparent 34%),#0c1d2b}
body[data-workspace="physchem"] .tb{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:16px;min-height:72px;padding:12px 26px;border-bottom:1px solid #29495d;background:#0a1b29eF;backdrop-filter:blur(18px)}
body[data-workspace="physchem"] .tbl h2{color:#eff8fb;font-size:18px;letter-spacing:-.02em}
body[data-workspace="physchem"] .tbl p{color:#91aab7}
body[data-workspace="physchem"] .tb .ac{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}
body[data-workspace="physchem"] .tb .bt{min-height:36px;padding:7px 11px;border:1px solid #365a6e;border-radius:8px;background:#132d40;color:#cce1e8}
body[data-workspace="physchem"] .physchem-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 26px 15px;padding:27px 30px;border:1px solid #315368;border-radius:17px;background:radial-gradient(circle at 85% 20%,#55b9c41c,transparent 25%),linear-gradient(115deg,#122b3d,#143d4b 65%,#102e3f);box-shadow:0 18px 48px #020a124d}
body[data-workspace="physchem"] .physchem-intro h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.035em;color:#f0fbff}
body[data-workspace="physchem"] .physchem-intro p{max-width:770px;color:#b0c7d0;line-height:1.8}
body[data-workspace="physchem"] .physchem-intro .atom{width:82px;height:82px;display:grid;place-items:center;border:1px solid #5ac3ca66;border-radius:50%;color:#77dbe0;font-size:39px;box-shadow:0 0 0 12px #4dc3cf0b,0 0 40px #4dc3cf20}
body[data-workspace="physchem"] .lab-commandbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 26px 14px;padding:14px 17px;border:1px solid #2f5064;border-radius:12px;background:#10283a}
body[data-workspace="physchem"] .lab-command-copy strong{display:block;color:#edf8fb;font-size:14px}
body[data-workspace="physchem"] .lab-command-copy small{color:#91acb9}
body[data-workspace="physchem"] .lab-command-actions{display:flex;gap:7px;flex-wrap:wrap}
body[data-workspace="physchem"] .lab-command-actions button{min-height:35px;border:1px solid #3b6579;border-radius:8px;background:#163a4c;color:#c9e5e9}
body[data-workspace="physchem"] .product-workflow{margin:0 26px 14px;padding:17px;border:1px solid #2d4d61;border-radius:14px;background:#102437}
body[data-workspace="physchem"] .product-workflow__item{min-height:115px;border:1px solid #34596d;border-radius:11px;background:linear-gradient(145deg,#18384b,#122b3e)}
body[data-workspace="physchem"] .product-workflow__item b{color:#eff9fc}
body[data-workspace="physchem"] #main-content>.content,body[data-workspace="physchem"] #main-content>.workspace{max-width:1800px;margin:auto;padding:10px 26px 40px}
body[data-workspace="physchem"] #main-content :is(.card,.panel,.experiment-panel,.notebook-panel){border:1px solid #2e5064;border-radius:13px;background:linear-gradient(150deg,#142d40,#0f2537);box-shadow:0 12px 30px #020a1245}
body[data-workspace="physchem"] #main-content :is(input,select,textarea){min-height:40px;border:1px solid #3b5d70;border-radius:8px;background:#091b29;color:#e8f3f6}
@media(max-width:900px){body[data-workspace="physchem"] .sb{width:250px;flex:0 0 250px}body[data-workspace="physchem"] .mn{left:250px;margin-left:0}body[data-workspace="physchem"] .physchem-intro,body[data-workspace="physchem"] .lab-commandbar,body[data-workspace="physchem"] .product-workflow{margin-left:14px;margin-right:14px}}
@media(max-width:680px){body[data-workspace="physchem"] .sb{width:min(86vw,300px);flex:0 0 min(86vw,300px);transform:translateX(-105%);transition:transform .2s}body[data-workspace="physchem"] .sb.open{transform:translateX(0)}body[data-workspace="physchem"] .mn{left:0;margin-left:0;width:100%}body[data-workspace="physchem"] .tb{padding:10px 13px;flex-wrap:wrap}body[data-workspace="physchem"] .tb .ac{width:100%;margin-left:0}body[data-workspace="physchem"] .physchem-intro{margin:13px;padding:20px}.physchem-intro .atom{display:none}body[data-workspace="physchem"] .lab-commandbar{align-items:flex-start;flex-direction:column;margin:0 13px 12px}body[data-workspace="physchem"] .product-workflow{margin:0 13px 12px}body[data-workspace="physchem"] #main-content>.content{padding:8px 12px 28px}}
@media(prefers-reduced-motion:reduce){body[data-workspace="physchem"] .sb{transition:none}}

/* V3 instrument workspace — canvas and parameter consoles share the full viewport */
body[data-workspace="physchem"] .mn{
  display:flex;flex-direction:column;align-items:stretch;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  padding:0 0 28px;scrollbar-gutter:stable;
}
body[data-workspace="physchem"] .tb{
  position:sticky;top:0;left:auto;right:auto;z-index:35;
  flex:0 0 auto;min-height:72px;height:auto;
}
body[data-workspace="physchem"] .sw{
  position:relative;inset:auto;left:auto;right:auto;top:auto;bottom:auto;
  flex:0 0 clamp(390px,49vh,650px);height:clamp(390px,49vh,650px);
  min-height:390px;margin:16px 20px 15px;border:1px solid #34566e;
  border-radius:16px;overflow:hidden;
  background:radial-gradient(ellipse at 50% 38%,#183950,#0a1927 76%);
  box-shadow:0 18px 40px #020a1260;
}
body[data-workspace="physchem"] .simulation-status{
  position:absolute;top:13px;left:14px;z-index:3;display:flex;align-items:center;
  gap:8px;padding:8px 11px;border:1px solid #3a6076;border-radius:9px;
  background:#071a2adf;color:#c7e3ec;font-size:10px;backdrop-filter:blur(10px)
}
body[data-workspace="physchem"] .simulation-status__pulse{
  width:7px;height:7px;border-radius:50%;background:#64dfbd;
  box-shadow:0 0 0 4px #64dfbd20,0 0 12px #64dfbd80
}
body[data-workspace="physchem"] .simulation-status b{color:#83e4ce;font-size:10px}
body[data-workspace="physchem"] .simulation-status small{color:#7999ac;font-size:8px;letter-spacing:.08em}
body[data-workspace="physchem"] #cv{width:100%;height:100%;min-height:390px;display:block}
body[data-workspace="physchem"] .bt2{
  position:relative;inset:auto;left:auto;right:auto;bottom:auto;
  display:grid;grid-template-columns:minmax(250px,.92fr) minmax(280px,1fr) minmax(280px,1fr);
  align-items:stretch;gap:13px;width:auto;height:auto;margin:0 20px;padding:0
}
body[data-workspace="physchem"] .bt2 .pnl,
body[data-workspace="physchem"] .bt2 .p1,
body[data-workspace="physchem"] .bt2 .p2,
body[data-workspace="physchem"] .bt2 .p3{
  position:relative;inset:auto;left:auto;right:auto;top:auto;bottom:auto;
  width:auto;height:auto;min-width:0;min-height:340px;max-height:none;
  padding:16px 16px 18px;overflow:visible;
  border:1px solid #34566e;border-radius:14px;
  background:linear-gradient(150deg,#142e42,#0d2031);
  box-shadow:0 13px 30px #020a124a
}
body[data-workspace="physchem"] .bt2 .pnl h3{
  margin:-2px -2px 15px;padding:0 0 11px;border-bottom:1px solid #2d4e64;
  color:#8ce2e3;font-size:13px;letter-spacing:.01em
}
body[data-workspace="physchem"] .bt2 .pnl .pm{margin-bottom:15px}
body[data-workspace="physchem"] .bt2 .pnl .r{font-size:12px}
body[data-workspace="physchem"] .bt2 .pnl .v{font-size:11px}
body[data-workspace="physchem"] .lab-notebook{
  margin:16px 20px 0;padding:19px 21px;border:1px solid #34566e;
  border-radius:14px;background:linear-gradient(145deg,#122a3d,#0d2030);
  box-shadow:0 13px 30px #020a1240
}
body[data-workspace="physchem"] .lab-notebook h3{color:#e8f7fb;font-size:17px}
body[data-workspace="physchem"] .lab-notebook p,
body[data-workspace="physchem"] .lab-notebook label{color:#9db7c3}
body[data-workspace="physchem"] .lab-notebook textarea{
  width:100%;min-height:108px;padding:12px 13px;border:1px solid #3c6076;
  border-radius:9px;background:#091b2a;color:#e7f4f8
}
@media(max-width:1180px){
  body[data-workspace="physchem"] .bt2{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-workspace="physchem"] .bt2 .p3{grid-column:1/-1;min-height:220px}
}
@media(max-width:760px){
  body[data-workspace="physchem"] .mn{left:0;width:100%}
  body[data-workspace="physchem"] .sw{flex-basis:360px;height:360px;min-height:360px;margin:12px}
  body[data-workspace="physchem"] #cv{min-height:360px}
  body[data-workspace="physchem"] .bt2{grid-template-columns:minmax(0,1fr);gap:10px;margin:0 12px}
  body[data-workspace="physchem"] .bt2 .pnl,
  body[data-workspace="physchem"] .bt2 .p3{grid-column:auto;min-height:0}
  body[data-workspace="physchem"] .lab-notebook{margin:12px;padding:14px}
}
@media(prefers-reduced-motion:reduce){
  body[data-workspace="physchem"] .simulation-status__pulse{box-shadow:none}
}
