/* PhysChem Lab Workspace V5 — immersive scientific simulation studio */
:root{--p-bg:#080e1b;--p-panel:#111d2d;--p-line:#263b55;--p-text:#e9f2ff;--p-muted:#91a5bf;--p-cyan:#58d5df;--p-violet:#9b8cff;--p-teal:#4dc6ae}
body[data-workspace="physchem"]{background:radial-gradient(ellipse at 52% -10%,#24345a 0,transparent 42%),var(--p-bg)!important;color:var(--p-text)!important;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif}
body[data-workspace="physchem"] .sb{width:286px;background:linear-gradient(180deg,#101e31,#091423);border-right:1px solid #263d55;box-shadow:14px 0 40px #0003;padding:18px 14px}
body[data-workspace="physchem"] .br{padding:8px 8px 20px;border-bottom:1px solid #293d54}
body[data-workspace="physchem"] .br h1{color:#eef5ff;font-size:16px;font-weight:850}
body[data-workspace="physchem"] .br p{color:#90a8c5}
body[data-workspace="physchem"] .lg{background:linear-gradient(145deg,#3f55a0,#168f9c);color:#fff;border-radius:13px;box-shadow:0 8px 22px #247da344}
body[data-workspace="physchem"] .sc input{background:#0a1727;border:1px solid #304760;color:#e9f2ff;border-radius:9px}
body[data-workspace="physchem"] .fl button{background:#14243a;border:1px solid #30455e;color:#a6bbd3;border-radius:8px}
body[data-workspace="physchem"] .fl button.on{background:#25355d;border-color:#6976b5;color:#dbe1ff}
body[data-workspace="physchem"] .cnt{color:#93a9c1}
body[data-workspace="physchem"] .lst{scrollbar-color:#405977 transparent}
body[data-workspace="physchem"] .lst .item,body[data-workspace="physchem"] .lst button{background:transparent;border:1px solid transparent;border-radius:9px;color:#afc1d7}
body[data-workspace="physchem"] .lst .item:hover,body[data-workspace="physchem"] .lst button:hover{background:#ffffff0a;border-color:#2b4660}
body[data-workspace="physchem"] .lst .active{background:#203b50!important;border-color:#3d6b7b!important;color:#ecffff!important;box-shadow:inset 3px 0 #5bd8d7}
body[data-workspace="physchem"] .ft{border-top:1px solid #2a4057;color:#829bb5}
body[data-workspace="physchem"] .mn{background:transparent!important;min-width:0}
body[data-workspace="physchem"] .tb{position:sticky;top:0;z-index:25;min-height:72px;padding:10px clamp(14px,2vw,28px);background:#091625eF;border-bottom:1px solid #253b53;backdrop-filter:blur(18px)}
body[data-workspace="physchem"] .tb h2{color:#eef5ff;font-size:17px;font-weight:820}
body[data-workspace="physchem"] .tb p{color:#8fa6bf}
body[data-workspace="physchem"] .ac .bt{background:#14263b;border:1px solid #35516a;color:#bcd0e3;border-radius:8px}
body[data-workspace="physchem"] .ac .bt:hover{background:#203a50;border-color:#4c8290;color:#fff}
body[data-workspace="physchem"] .physchem-intro{position:relative;isolation:isolate;overflow:hidden;margin:20px clamp(14px,2vw,28px) 15px;padding:27px clamp(20px,3vw,38px);border:1px solid #324b69;border-radius:20px;background:radial-gradient(circle at 87% 25%,#8c7bff2d,transparent 27%),radial-gradient(circle at 25% 110%,#27b8c62b,transparent 30%),linear-gradient(115deg,#172744,#112136 62%,#183348);box-shadow:0 17px 40px #0004}
body[data-workspace="physchem"] .physchem-intro .eyebrow{color:#8fe6e8;font-size:10px;letter-spacing:2px;font-weight:850}
body[data-workspace="physchem"] .physchem-intro h2{color:#f2f6ff;font-size:clamp(24px,2.7vw,35px);letter-spacing:-.8px}
body[data-workspace="physchem"] .physchem-intro p{color:#adbed5;max-width:760px;font-size:12px;line-height:1.8}
body[data-workspace="physchem"] .physchem-tags span{background:#ffffff0d;border:1px solid #7692b340;color:#d0ddf0;border-radius:7px;padding:6px 9px}
body[data-workspace="physchem"] .physchem-intro .atom{background:linear-gradient(145deg,#6657b6,#147f91);border:1px solid #8b95d1;color:#fff;box-shadow:0 0 0 10px #8f83ff0d,0 12px 28px #0004}
body[data-workspace="physchem"] .lab-commandbar{margin:0 clamp(14px,2vw,28px) 14px;padding:15px 18px;border:1px solid #2a4058;border-radius:14px;background:#101d2d;box-shadow:0 8px 23px #0003}
body[data-workspace="physchem"] .lab-command-copy strong{color:#eaf3ff}
body[data-workspace="physchem"] .lab-command-copy small{color:#90a7bf}
body[data-workspace="physchem"] .lab-command-actions button{background:#172941;border:1px solid #344d69;color:#bad0e1;border-radius:8px}
body[data-workspace="physchem"] .product-workflow{margin:0 clamp(14px,2vw,28px) 15px;padding:18px;border:1px solid #2d435e;border-radius:16px;background:#101d2d;box-shadow:0 8px 24px #0003}
body[data-workspace="physchem"] .product-workflow__head h3{color:#edf4ff}
body[data-workspace="physchem"] .product-workflow__head p,body[data-workspace="physchem"] .product-workflow__foot{color:#91a7bf}
body[data-workspace="physchem"] .product-workflow__mode{background:#28325a;border:1px solid #4b5787;color:#b9b0ff}
body[data-workspace="physchem"] .product-workflow__item{min-height:108px;background:linear-gradient(145deg,#182a42,#132239);border:1px solid #344c68;border-radius:11px}
body[data-workspace="physchem"] .product-workflow__item i{background:#253b5b;color:#75dfe0}
body[data-workspace="physchem"] .product-workflow__item b{color:#e7f1ff}
body[data-workspace="physchem"] .product-workflow__item small{color:#94aac3}
body[data-workspace="physchem"] .product-workflow__item span{color:#82e0dc}
body[data-workspace="physchem"] .sw{margin:0 clamp(14px,2vw,28px) 15px;border:1px solid #29445f;border-radius:18px;background:radial-gradient(circle at 50% 42%,#172e49,#081827 74%);box-shadow:0 18px 42px #0005;min-height:360px}
body[data-workspace="physchem"] .bt2{padding:0 clamp(14px,2vw,28px) 28px;gap:13px}
body[data-workspace="physchem"] .bt2 .pnl{border:1px solid #2c435d;border-radius:15px;background:linear-gradient(145deg,#14243a,#0f1b2c);box-shadow:0 9px 25px #0004;color:#e3efff}
body[data-workspace="physchem"] .bt2 .pnl h3{color:#eff5ff}
body[data-workspace="physchem"] .bt2 .pnl input:not([type=range]),body[data-workspace="physchem"] .bt2 .pnl select{background:#0a1727;border-color:#304861;color:#ebf4ff}
body[data-workspace="physchem"] .dr{background:#0d1a2b;border-left:1px solid #2c435c;box-shadow:-14px 0 38px #0005;color:#e7f2ff}
body[data-workspace="physchem"] .dh{background:#122238;border-bottom:1px solid #2c435c}
body[data-workspace="physchem"] .dh h3{color:#eff6ff}
body[data-workspace="physchem"] .rc{background:#13243a;border:1px solid #304861;color:#e2efff}
body[data-workspace="physchem"] .rc .rn{color:#e8f5ff}
body[data-workspace="physchem"] .rc .rt,body[data-workspace="physchem"] .rc .rp{color:#95adc5}
body[data-workspace="physchem"] .archive-tools .bt,body[data-workspace="physchem"] .archive-tools .archive-import{background:#182d44;border:1px solid #3a5872;color:#b9d6e5}
body[data-workspace="physchem"] .ts{background:#14283a;border:1px solid #4b8790;color:#e4ffff}
body[data-workspace="physchem"] .eb{background:#3b2b28!important;color:#ffddb0!important;border:1px solid #8b6548!important}
body[data-workspace="physchem"] :where(button,input,select,textarea,a,[tabindex]):focus-visible{outline:3px solid #77e1e4!important;outline-offset:3px}
@media(max-width:900px){body[data-workspace="physchem"] .sb{width:min(86vw,320px)}body[data-workspace="physchem"] .physchem-intro{margin:13px;padding:20px 17px}body[data-workspace="physchem"] .lab-commandbar{margin:0 13px 12px}body[data-workspace="physchem"] .product-workflow{margin:0 13px 12px;padding:14px 12px}body[data-workspace="physchem"] .sw{margin:0 13px 12px}body[data-workspace="physchem"] .bt2{padding:0 13px 25px}body[data-workspace="physchem"] .product-workflow__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body[data-workspace="physchem"] .physchem-intro .atom{display:none}body[data-workspace="physchem"] .physchem-intro h2{font-size:21px}body[data-workspace="physchem"] .lab-command-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}body[data-workspace="physchem"] .lab-command-actions button{width:100%}body[data-workspace="physchem"] .product-workflow__item{min-height:108px;padding:9px}body[data-workspace="physchem"] .sw{min-height:320px}body[data-workspace="physchem"] .bt2{grid-template-columns:1fr}body[data-workspace="physchem"] .dr{width:100%;max-width:100%}}
@media(prefers-reduced-motion:reduce){body[data-workspace="physchem"] *,body[data-workspace="physchem"] *:before,body[data-workspace="physchem"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* V5 command palette and universal module launcher */
.w5-command-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;margin-left:10px;padding:7px 11px;border:1px solid #58748a;border-radius:9px;background:#102d3d;color:#c8f5f1;font:inherit;font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.w5-command-trigger:hover{background:#19465a;border-color:#6bcac7;transform:translateY(-1px)}
.w5-command-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:start center;padding:14vh 16px 24px;background:rgba(4,11,21,.68);backdrop-filter:blur(8px)}
.w5-command-backdrop[hidden]{display:none}
.w5-command-panel{width:min(560px,100%);max-height:min(620px,75vh);overflow:auto;padding:17px;border:1px solid #526980;border-radius:18px;background:linear-gradient(145deg,#14243a,#0c1929);color:#edf5ff;box-shadow:0 28px 90px #0009}
.w5-command-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.w5-command-heading small{display:block;color:#83d9dd;font-size:9px;letter-spacing:1.7px;font-weight:850}
.w5-command-heading strong{display:block;margin-top:4px;color:#f1f7ff;font-size:16px}
.w5-command-close{min-width:38px;min-height:30px;border:1px solid #3b526b;border-radius:8px;background:#1b2d44;color:#b3c6dc;font-size:10px;cursor:pointer}
.w5-command-input{width:100%;min-height:44px;padding:10px 13px;border:1px solid #3d5872!important;border-radius:10px!important;background:#081626!important;color:#f0f6ff!important;font:inherit;font-size:13px}
.w5-command-list{display:grid;gap:6px;margin-top:12px}
.w5-command-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:11px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#dbe9f5;text-align:left;cursor:pointer}
.w5-command-entry small{color:#829bb4;font-size:9px}
.w5-command-entry:hover,.w5-command-entry.active{border-color:#44677b;background:#1a354b;color:#fff}
.w5-command-empty{padding:22px 12px;text-align:center;color:#91a7bc;font-size:12px}
.w5-command-hint{margin-top:13px;padding-top:11px;border-top:1px solid #30465c;color:#8198af;font-size:9px}
@media(max-width:620px){.w5-command-trigger{min-height:31px;margin-left:4px;padding:6px 8px;font-size:9px}.w5-command-backdrop{padding-top:9vh}.w5-command-panel{padding:13px;border-radius:14px}}
@media(prefers-reduced-motion:reduce){.w5-command-trigger{transition:none}}
/* V5.1 module context headers */
.w5-module-context{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 15px;padding:13px 16px;border:1px solid var(--w5-context-border,#30465e);border-radius:13px;background:var(--w5-context-bg,#111f31);box-shadow:0 6px 18px #0002}
.w5-module-context__copy{min-width:0}
.w5-module-context__eyebrow{font-size:8px;letter-spacing:1.7px;font-weight:850;color:var(--w5-context-accent,#6dcfd0)}
.w5-module-context__title{margin:3px 0;font-size:14px;line-height:1.35;font-weight:820;color:var(--w5-context-title,#eef5ff)}
.w5-module-context__description{margin:0;color:var(--w5-context-muted,#91a6bb);font-size:10px;line-height:1.55}
.w5-module-context__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0}
.w5-module-context__state{padding:5px 8px;border:1px solid var(--w5-context-border,#30465e);border-radius:7px;color:var(--w5-context-muted,#9bb0c4);font-size:9px;white-space:nowrap}
.w5-module-context__home{min-height:31px;padding:6px 10px;border:1px solid var(--w5-context-accent,#528b9a);border-radius:8px;background:transparent;color:var(--w5-context-title,#eaf6ff);font-size:10px;font-weight:750;white-space:nowrap;cursor:pointer}
.w5-module-context__home:hover{background:var(--w5-context-hover,#1b3448)}
.w5-experiment-context{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 clamp(14px,2vw,28px) 13px;padding:11px 15px;border:1px solid #36546d;border-left:3px solid #6bd7d8;border-radius:11px;background:#102238}
.w5-experiment-context__text{display:flex;flex-direction:column;gap:3px;min-width:0}
.w5-experiment-context__text strong{font-size:12px;color:#eef6ff}
.w5-experiment-context__text span{font-size:9px;color:#9db1c9;line-height:1.5}
.w5-experiment-context__tags{display:flex;gap:6px;flex-shrink:0}
.w5-experiment-context__tags span{padding:5px 8px;border-radius:6px;background:#1c3850;color:#9ce6e1;font-size:9px}
.w5-experiment-context__meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-left:auto;flex-shrink:0}.w5-experiment-context__meta span{padding:5px 8px;border:1px solid rgba(128,183,199,.2);border-radius:6px;background:rgba(10,29,46,.62);color:#c2dbe5;font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-workspace="health"]{--w5-context-bg:#fff;--w5-context-border:#dce9e1;--w5-context-title:#21483e;--w5-context-muted:#789087;--w5-context-accent:#328f72;--w5-context-hover:#edf7f1}
body[data-workspace="erp"]{--w5-context-bg:#fff;--w5-context-border:#e0e5dd;--w5-context-title:#304c3c;--w5-context-muted:#849187;--w5-context-accent:#5d8a66;--w5-context-hover:#f1f5ef}
body[data-workspace="ekpo"]{--w5-context-bg:#fff;--w5-context-border:#dbe8e2;--w5-context-title:#244b46;--w5-context-muted:#80958f;--w5-context-accent:#339c8d;--w5-context-hover:#eff8f5}
body[data-workspace="study"]{--w5-context-bg:#141f3b;--w5-context-border:#35466f;--w5-context-title:#f0f4ff;--w5-context-muted:#a5b4d7;--w5-context-accent:#8adce9;--w5-context-hover:#24375d}
body[data-workspace="health"] .w5-module-context__home,body[data-workspace="erp"] .w5-module-context__home,body[data-workspace="ekpo"] .w5-module-context__home{color:var(--w5-context-title)}
body[data-workspace="health"] .w5-experiment-context,body[data-workspace="erp"] .w5-experiment-context,body[data-workspace="ekpo"] .w5-experiment-context{display:none}
@media(max-width:640px){.w5-module-context{align-items:flex-start;padding:11px 12px}.w5-module-context__actions{flex-direction:column;align-items:flex-end;gap:5px}.w5-module-context__description{max-width:48ch}.w5-module-context__state{display:none}.w5-experiment-context{align-items:flex-start;flex-direction:column}.w5-experiment-context__tags{flex-wrap:wrap}.w5-experiment-context__meta{width:100%;margin-left:0;justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.w5-module-context__home{transition:none}}
