/* Hero interaction rail: the artwork stays full-bleed until the viewer asks for controls. */
.hero-live-frame[hidden],.hero-controls-panel[hidden]{display:none!important}
.hero-stage.is-poster-loading .hero-poster{opacity:0!important;transition:none!important}
.hero-stage:is(.is-live-embedded,.is-companion) .hero-scene{visibility:hidden;pointer-events:none}
/* Every demo owns its own on-canvas typography. The hero's legacy titles and
   telemetry duplicate that text, and can sit over an embedded study's logo. */
.hero-stage :is(.stage-label,.stage-side-label,.stage-bottom-info){display:none}
/* Embedded full studies also draw their own frame corners. */
.hero-stage:is(.is-live-embedded,.is-companion) .stage-corner{display:none}
.stage-subrow .hero-current-study{display:flex;align-items:center;min-width:0;gap:8px}
.hero-current-study .asterisk{flex:none;margin-right:2px}
.hero-current-study strong{font:500 10px/1.5 var(--mono);letter-spacing:.07em;color:#d5e6dd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-current-study .hero-current-separator{color:#507075}
.hero-current-study small{font:9px/1.5 var(--mono);letter-spacing:.075em;color:#758e91;white-space:nowrap}
.hero-stage .hero-live-frame:not([hidden]){
  position:absolute;inset:0;width:100%;height:100%;border:0;z-index:4;
  display:block;opacity:0;background:transparent;pointer-events:none;transition:opacity .24s ease;
}
.hero-stage .hero-live-frame.is-ready:not([hidden]){opacity:1;pointer-events:auto}
.hero-stage .hero-live-frame:not(.is-ready){transition:none}
.hero-stage.is-live-embedded :is(.stage-grid,.stage-glass,.stage-sweep,.scene-touchpoint,.stage-side-label,.stage-bottom-info){display:none}
.hero-stage .hyperlane-gpu:not([hidden]){
  position:absolute;inset:0;width:100%;height:100%;z-index:2;display:block;pointer-events:none;
}
.hero-live-tools{
  position:absolute;right:34px;top:30px;z-index:9;display:flex;align-items:center;gap:5px;
}
.hero-live-tools button{
  border:1px solid rgba(203,231,224,.35);background:rgba(5,14,18,.75);
  backdrop-filter:blur(14px);color:#d8eae7;min-height:34px;padding:7px 12px;
  font:500 10px/1.1 var(--mono);letter-spacing:.075em;cursor:pointer;
  transition:background .2s,border-color .2s,color .2s;
}
.hero-live-tools button:hover,.hero-live-tools button[aria-expanded="true"]{
  background:rgba(146,211,205,.18);border-color:#bfe7e1;color:white;
}
.hero-live-tools button:focus-visible,.hero-controls-panel button:focus-visible,.hero-controls-panel input:focus-visible{outline:2px solid #d7f6ed;outline-offset:3px}
.hero-live-tools button span{margin-left:4px}
.hero-controls-panel{
  position:absolute;z-index:9;right:16px;bottom:16px;width:min(380px,calc(100% - 32px));
  max-height:min(77%,440px);overflow:auto;overscroll-behavior:contain;
  padding:17px 18px 20px;background:rgba(5,14,19,.94);
  border:1px solid rgba(190,227,221,.38);box-shadow:0 20px 70px rgba(0,0,0,.58);
  backdrop-filter:blur(22px);scrollbar-width:thin;scrollbar-color:#53757a transparent;
}
.hero-controls-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.hero-controls-heading strong{font:500 11px/1.4 var(--mono);letter-spacing:.12em;color:#e7f3ee}
.hero-controls-heading button{border:0;background:transparent;color:#a5bdbb;cursor:pointer;font:12px var(--mono);padding:3px 7px}
.hero-controls-heading button:hover{color:#fff}
.hero-control-section{margin-top:13px}
.hero-control-section>label,.hero-control-section>.hero-field-label{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;
  font:500 10px/1.5 var(--mono);letter-spacing:.065em;color:#9bb7b8
}
.hero-control-section output{font:500 12px/1.4 var(--mono);color:#e9f3e9;font-variant-numeric:tabular-nums}
.hero-control-buttons{display:flex;flex-wrap:wrap;gap:5px}
.hero-control-buttons button{
  flex:1 1 auto;min-height:32px;padding:7px 10px;cursor:pointer;border:1px solid rgba(160,202,204,.22);
  background:rgba(167,221,225,.035);color:#9eb4b5;font:500 10px/1.3 var(--mono);
  transition:border-color .2s,background .2s,color .2s;
}
.hero-control-buttons button:hover{border-color:rgba(188,233,230,.6);color:#f1faf7}
.hero-control-buttons button[aria-pressed="true"]{border-color:#c2e8de;color:#fff;background:rgba(173,220,211,.16)}
.hero-control-section input[type="range"]{width:100%;height:23px;cursor:pointer;accent-color:#b7dedb}
.hero-control-note{font:11px/1.7 var(--mono);color:#b4cbc9;letter-spacing:.025em}
.hero-control-note strong{color:#e1f4f0}
.hero-control-tip{font:9px/1.6 var(--mono);color:#72959a;margin:14px 0 0}
.hero-stage.has-airflow-controls .hero-airflow-controls{z-index:7}
@media(max-width:760px){
  .hero-current-study small,.hero-current-study .hero-current-separator{display:none}
  .hero-live-tools{top:13px;right:13px;gap:4px}
  .hero-live-tools button{min-height:30px;padding:6px 8px;font-size:9px}
  .hero-live-tools button span{display:none}
  .hero-controls-panel{right:8px;bottom:8px;width:calc(100% - 16px);max-height:76%;padding:12px}
  .hero-control-section{margin-top:9px}
  .hero-control-buttons button{min-height:30px;padding:5px;font-size:9px}
}
