/* Version 2026.10.16.2 — full-viewport minimalist experiment workspace.
   Scope is the Galvanic Lab UI, not the chemistry/particle model. */
:root{--shadow:0 2px 11px #234d590a;}
.topbar{height:49px;flex:0 0 49px;padding:0 12px;gap:10px;box-shadow:0 2px 9px #102f4019}
.brand{gap:7px;min-width:0}
.nav-back{display:grid;place-items:center;width:29px;height:32px;flex:0 0 29px;border-radius:8px;color:#e5faf6;text-decoration:none;font-size:21px;line-height:1;border:1px solid #507383}
.nav-back:hover,.nav-back:focus-visible{background:#2c6070;outline-offset:2px}
.lab-title{color:#fff;font-size:17px;white-space:nowrap;font-weight:780;letter-spacing:-.45px;line-height:1}
.version-chip{font-size:9px;margin:0 0 0 2px;padding:2px 5px}
.view-switch{border-radius:8px;padding:3px}.view-switch button{padding:7px 11px;border-radius:6px;font-size:11px}
.top-actions{gap:5px}.utility-btn,.icon-button{min-height:32px;border-radius:8px;font-size:11px}.utility-btn{padding:0 9px}.icon-button{width:32px}.label-toggle{gap:6px;font-size:11px}
.workbench{grid-template-columns:220px minmax(0,1fr);padding:6px;gap:7px;min-width:0;min-height:0}
.setup-panel{padding:11px;gap:6px;border-radius:11px}
.setup-panel .panel-heading h2{font-size:14px;font-weight:760}
.halfcell-config{padding:8px;border-radius:9px;background:#fff}
.halfcell-head{margin-bottom:6px}.halfcell-head strong{font-size:12px}
.half-index{font-size:9px;padding:3px 6px}.sample-swatch{height:10px;width:10px}
.halfcell-config label{font-size:10px;margin-bottom:2px}
.halfcell-config select{font-size:12px;min-height:32px;padding:5px 25px 5px 8px;margin-bottom:6px;border-radius:7px}
.swap-line{margin:-1px 0}.swap-btn{font-size:10px;padding:4px 10px}
.setup-bottom{gap:3px}.control-line{padding:5px 1px}.control-symbol{height:26px;width:26px}.control-line-text strong{font-size:11px}
.outline-wide{margin-top:4px;border-radius:8px}
.center-panel{gap:6px;min-width:0;min-height:0}
.stage-frame{padding:4px;border-radius:11px;background:#f6fafb}
.stage-frame:before{display:none}
.minimal-status{top:8px;left:8px;box-shadow:none;font-size:10px;padding:3px 5px 3px 8px}
.micro-card{border-radius:8px}.micro-title{padding:3px 7px 0}
.mode-both .visual-particles{height:116px;flex-basis:116px;gap:5px}
.quick-equations{padding:5px 9px;gap:3px;border-radius:9px;flex:0 0 auto;min-height:34px;box-shadow:var(--shadow)}
.quick-equations .eq-top,.quick-equations .quick-two{display:none}
.quick-equations.expanded .eq-top{display:flex}
.quick-equations.expanded .quick-two{display:grid}
.quick-equations.expanded{padding:7px 10px;gap:6px}
.quick-overall{min-width:0;gap:9px;padding:0;border:0;display:flex;align-items:center;min-height:23px}
.eq-toggle{display:inline-flex;gap:4px;align-items:center;justify-content:center;flex:0 0 auto;border:0;border-radius:7px;background:#eaf5f2;color:#156b68;font-size:10px;font-weight:800;padding:6px 8px;white-space:nowrap}
.eq-toggle span{font-size:15px;line-height:0}.expanded .eq-toggle span{transform:rotate(180deg)}
.quick-overall .quick-equation{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;line-height:1.25}
.quick-equations.expanded .quick-overall .quick-equation{white-space:normal}
.eq-details{flex:0 0 auto;background:transparent;color:#157b75;padding:5px 6px}
.transport-bar{height:47px;flex:0 0 47px;padding:0 10px;gap:8px}
.run-btn{height:35px;min-width:94px;padding:7px 11px}.transport-btn{height:35px;width:35px}
.transport-tools{height:35px;padding:6px 10px}.transport-time strong{font-size:15px}
.galvanic-footer{height:23px;flex:0 0 23px;min-height:23px;padding:2px 9px;gap:7px 15px;font-size:9px}
.galvanic-footer .chemisode-global-footer__links{gap:6px 13px}
.galvanic-info{display:none;position:relative}
.galvanic-info summary{cursor:pointer;font-weight:750;color:#d1ebed;list-style:none;padding:4px 7px;border-radius:5px}
.galvanic-info summary::-webkit-details-marker{display:none}
.galvanic-info summary:after{content:' ▴'}
.galvanic-info nav{position:absolute;right:0;bottom:calc(100% + 5px);width:206px;border:1px solid #d6e9eb;background:#fff;color:#3a6070;box-shadow:0 8px 27px #08283c36;border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:0;font-size:12px;z-index:8}
.galvanic-info nav a{padding:8px;border-radius:5px;color:#22556d;text-decoration:none}
.galvanic-info nav a:hover,.galvanic-info nav a:focus-visible{background:#eaf5f3;color:#134e57}
.galvanic-info nav span{font-size:10px;color:#62818a;padding:8px;border-top:1px solid #e3edef}
@media (max-width:1150px){
 .topbar{gap:7px;padding:0 9px}.lab-title{font-size:16px}.top-actions .utility-btn{width:32px;padding:0}
 .top-actions .utility-btn span{display:none}
 .view-switch button{padding:7px 10px}
 .setup-panel{padding:9px;gap:4px}
}
@media (max-width:850px){
 .topbar{height:47px;flex-basis:47px;padding:0 7px}
 .workbench{display:block;padding:5px}.center-panel{height:100%;gap:5px}
 .brand .mobile-only{width:30px;height:32px;min-height:32px;display:inline-flex}
 .setup-panel{position:fixed;top:5px;bottom:5px;left:0;width:min(314px,90vw);border-radius:0 13px 13px 0;padding:14px;gap:8px;overflow-y:auto;overflow-x:hidden;z-index:15;transform:translateX(-106%)}
 .setup-panel.panel-open{transform:translateX(0)}
 .setup-panel .sidebar-close{display:inline-flex}
 .setup-panel .setup-bottom{margin-top:8px}
 .top-actions .utility-btn{display:inline-flex}
 .mode-both .visual-particles{height:118px;flex-basis:118px}
 .transport-bar{height:46px;flex-basis:46px}
 .galvanic-footer .chemisode-global-footer__brand{display:inline}
}
@media (max-width:620px){
 .topbar{height:44px;flex-basis:44px;gap:3px;padding:0 5px}
 .brand{gap:4px;flex:0 0 auto}
 .nav-back{height:31px;width:23px;flex-basis:23px;border:0;font-size:22px}
 .brand .mobile-only{height:31px;width:29px;min-height:31px}
 .lab-title{font-size:13px;letter-spacing:-.5px}
 .version-chip{display:none}
 .view-switch{padding:2px;gap:0}
 .view-switch button{font-size:0!important;padding:7px 7px!important}
 .view-switch button[data-view="macro"]:after{content:"Cell";font-size:10px}
 .view-switch button[data-view="both"]:after{content:"Both";font-size:10px}
 .view-switch button[data-view="particle"]:after{content:"Ions";font-size:10px}
 .top-actions{gap:2px}
 .top-actions .label-toggle{display:none}
 .top-actions .utility-btn{min-height:31px;width:29px;padding:0}
 .top-actions #btn-challenge{display:none}
 .top-actions #btn-help,.top-actions #open-analysis{display:none!important}
 .stage-frame{padding:3px}
 /* An equal split avoids the large empty beaker region on tall phones. */
 .stage-frame.mode-both .visual-macro{flex:0 0 43%;min-height:0;height:43%;}
 .stage-frame.mode-both .visual-particles{display:flex;flex:1 1 0;min-height:0;height:auto;flex-basis:auto;flex-direction:column;gap:4px;padding-bottom:13px}
 .stage-frame.mode-both .micro-card{flex:1 1 0;min-height:0}
 .stage-frame.mode-both .micro-title{font-size:9px;padding:3px 7px 0}
 .stage-frame.mode-both .micro-bridge{font-size:8px;padding:2px 6px;bottom:0;white-space:nowrap}
 .quick-equations{padding:4px 6px;min-height:32px}
 .quick-overall{gap:5px}
 .quick-overall .quick-equation{font-size:10px;min-width:0}
 .eq-toggle{padding:6px 5px;font-size:9px}
 .eq-details{font-size:9px;padding:6px 3px}
 .quick-equations.expanded .quick-two{grid-template-columns:1fr}
 .transport-bar{height:44px;flex-basis:44px;padding:0 7px}
 .run-btn{height:34px;min-width:79px;padding:6px 9px}.transport-btn{height:34px;width:34px}
 .transport-tools{height:34px;width:35px;padding:6px}
 .mobile-challenges{display:inline-flex}
 .galvanic-footer{height:22px;flex-basis:22px;min-height:22px;justify-content:space-between;padding:1px 8px;font-size:10px}
 .galvanic-footer .chemisode-global-footer__brand{display:inline}
 .galvanic-footer .chemisode-global-footer__links,.galvanic-footer .chemisode-global-footer__meta{display:none}
 .galvanic-info{display:block}
}
@media (max-width:370px){
 .lab-title{font-size:12px}
 .top-actions #btn-series-quick{display:none}
 .view-switch button{padding:7px 6px!important}
}
@media (max-width:335px){
 .lab-title{font-size:0}.lab-title:after{content:'Lab';font-size:12px}
 .top-actions #btn-settings-quick{display:none}
}
@media (max-height:675px){
 .setup-panel{gap:4px}.halfcell-config{padding:6px 8px}.halfcell-config select{min-height:29px;padding:4px 25px 4px 7px;margin-bottom:4px}
 .mode-both .visual-particles{height:89px;flex-basis:89px}
 .quick-equations.expanded{gap:3px}.quick-equations.expanded .quick-line{padding:1px 0}
}
@media (max-width:620px) and (max-height:700px){
 .stage-frame.mode-both .visual-macro{flex-basis:47%;height:47%}
}
@media (max-height:480px){
 .topbar{height:40px;flex-basis:40px}
 .transport-bar{height:39px;flex-basis:39px}
 .galvanic-footer{height:20px;min-height:20px;flex-basis:20px}
 .quick-equations{min-height:30px}
 .stage-frame.mode-both .visual-particles{display:none}
 .stage-frame.mode-both .visual-macro{flex:1 1 auto;height:auto}
}
@media print {.galvanic-info{display:none}}
/* On narrow phones, expanded chemistry floats above the apparatus rather than
   squeezing the interactive particle canvases below their useful size. */
@media (max-width:620px){
 .center-panel{position:relative}
 .quick-equations.expanded{position:absolute;bottom:0;left:0;right:0;z-index:6;box-shadow:0 4px 22px #1539492a;background:#fff}
 .quick-equations.expanded .quick-equation{white-space:normal;overflow-wrap:anywhere}
}
@media (min-width:621px) and (max-width:850px) and (min-height:760px){
 .mode-both .visual-particles{height:clamp(145px,20vh,205px);flex-basis:clamp(145px,20vh,205px)}
}
