.atmosphere-panel {max-height:calc(100dvh - 24px);}
.atmosphere-panel .dialog-heading {padding:10px 16px;}
.atmosphere-panel .dialog-heading h2 {font-size:20px;}
.atmosphere-bench {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(180px,1fr) auto auto auto auto;flex:1;min-height:0;min-width:0;overflow:auto;}
.atmosphere-bench>* {min-width:0;}
.atm-transport,.atm-variables,.atm-inspector {display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px 12px;}
.atm-transport {border-bottom:1px solid #d9e5dc;}
.atm-transport button,.atm-inspector button {min-height:32px;font-size:12px;padding:5px 9px;}
.atm-transport label,.atm-variables label,.atm-inspector label,.atm-graph-controls label {display:flex;align-items:center;gap:6px;font-size:12px;}
.atm-transport select {min-height:32px;padding:4px;}
#atm-clock {font-size:11px;font-variant-numeric:tabular-nums;margin-right:auto;min-width:100px;}
.atm-variables {background:#edf5ee;gap:14px;}
.atm-variables select {font-size:13px;min-height:33px;padding:5px;}
.atm-temperature {display:flex;align-items:center;gap:6px;flex:1;min-width:330px;font-size:13px;}
#atm-slider {flex:1;width:160px;min-width:80px;min-height:30px;accent-color:#18755a;}
#atm-temperature {width:78px;min-height:33px;padding:4px 7px;}
.atm-temperature button {font-size:18px;width:31px;min-height:31px;padding:0;}
.atm-stage {position:relative;min-height:180px;overflow:hidden;background:#102635;}
#atm-scene {display:block;width:100%;height:100%;touch-action:manipulation;cursor:crosshair;}
.atm-stage-caption {position:absolute;top:8px;right:12px;max-width:calc(100% - 300px);padding:5px 9px;border-radius:5px;background:#102635b8;color:#d6eae5;font-size:11px;pointer-events:none;text-align:right;}
.atm-inspector {border-bottom:1px solid #d9e5dc;background:#f1f6f1;}
#atm-selection {flex:1;min-width:260px;font-size:12px;color:#315146;}
.atmosphere-readings {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:7px 12px;background:#f9fcf8;}
.atmosphere-readings span {display:block;font-size:11px;color:#536b60;}
.atmosphere-readings strong {display:block;font-size:clamp(17px,1.8vw,25px);font-weight:650;margin:2px 0;}
.atmosphere-readings small {display:block;font-size:10px;color:#536b60;}
.atm-gas-legend {display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:4px 12px;font-size:11px;color:#526b62;}
.atm-main-legend {background:#edf5ef;}
.atm-gas-label {color:var(--gas-colour);font-weight:650;}
.atm-gas-label::before {content:'';display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--gas-colour);margin-right:5px;}
.atm-status {font-size:11px;color:#536b60;min-height:18px;margin:0;padding:0 12px 5px;}
.atm-popout {position:absolute;z-index:2;top:10px;right:10px;width:min(480px,calc(100% - 20px));max-height:calc(100% - 20px);overflow:auto;border:1px solid #bdcfc1;border-radius:10px;background:#fff;box-shadow:0 8px 28px #071e2b66;}
.atm-popout header {display:flex;align-items:center;gap:5px;padding:7px 10px;background:#eef5ee;position:sticky;top:0;z-index:1;}
.atm-popout header strong {font-size:13px;flex:1;}
.atm-popout header strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.atm-popout.collapsed {width:min(360px,calc(100% - 20px));overflow:hidden;}
#atm-graph-collapse {font-size:12px;}
.atm-popout header button {min-height:28px;min-width:28px;padding:2px 7px;font-size:16px;}
#atm-graph-handle {cursor:grab;touch-action:none;}
.atm-graph-controls {display:flex;gap:12px;padding:5px 12px;flex-wrap:wrap;}
.atm-graph-controls select {max-width:150px;min-height:28px;padding:3px;font-size:12px;}
#atm-graph {display:block;width:100%;height:210px;}
#atm-graph-key,#atm-graph-note {font-size:11px;line-height:1.45;color:#48675b;padding:0 12px;margin:5px 0 8px;}
.atm-guide {width:min(440px,calc(100% - 20px));z-index:3;}
.atm-guide-body {padding:0 14px 10px;font-size:13px;line-height:1.5;}
.atm-guide-body h3 {font-size:14px;margin:15px 0 5px;}
.atm-guide-body details {border-top:1px solid #d4e2d8;padding-top:8px;}
.atm-guide-body summary {cursor:pointer;font-weight:600;}
#atm-graph-fit {min-height:28px;padding:3px 6px;font-size:11px;}
.atm-guide-body label {display:flex;gap:7px;align-items:center;}
.atm-guide-body input {width:100px;}
@media(max-width:760px){
  .atm-stage:has(#atm-graph-panel:not([hidden]):not(.collapsed)) {min-height:420px;}
  .atm-variables {gap:7px;padding:6px 9px;}.atm-variables>label {flex:1 1 140px;min-width:0;}.atm-variables select {width:100%;min-width:0;}.atm-temperature {min-width:100%;}.atm-temperature>label {font-size:11px;}
  .atm-transport {padding:5px 8px;gap:5px;}.atm-transport button {font-size:11px;padding:4px 7px;}.atm-transport label {font-size:11px;}.atm-stage-caption {max-width:calc(100% - 20px);top:32px;left:10px;right:auto;font-size:10px;}
  .atm-inspector {padding:5px 9px;}.atm-inspector label {font-size:11px;}#atm-selection {min-width:100%;font-size:11px;}
  .atmosphere-readings {grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 9px;gap:5px;}.atmosphere-readings span {font-size:10px;}.atmosphere-readings strong {font-size:17px;}
  .atm-popout {width:calc(100% - 20px);}.atm-status {font-size:10px;}.atmosphere-panel .dialog-heading {padding:7px 12px;}.atmosphere-panel .dialog-heading h2 {font-size:18px;}
}
@media(max-height:580px){
  .atmosphere-bench {grid-template-rows:auto auto minmax(220px,1fr) auto auto auto auto;}.atmosphere-panel .eyebrow {display:none;}.atm-transport,.atm-variables {padding-block:4px;}
}
