/* Studio signal canvas. All figures are derived from the active model and inputs. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Plan ownership lives with the profile, not on the studio canvas. */
.profile-menu{width:290px;gap:9px;padding:18px;border-color:#49432c;border-radius:18px;background:#181813;box-shadow:0 28px 80px #000d}
.profile-menu>.plan-banner{display:grid;grid-template-columns:34px 1fr;gap:9px;width:100%;min-height:0;max-width:none;margin:6px 0 0;padding:13px;border:1px solid #4c4527;border-radius:14px;background:#242217}
.profile-menu>.plan-banner .plan-banner-icon{grid-row:1/3;width:31px;height:31px}
.profile-menu>.plan-banner>div{display:flex;flex-direction:column;gap:1px}
.profile-menu>.plan-banner strong{font-size:17px}
.profile-menu>.plan-banner small{display:block;font-size:10px}
.profile-menu>.plan-banner>a{grid-column:2;margin:2px 0 0;padding:0;border:0;color:var(--volt);font-size:10px}
.profile-menu>.head-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin:4px 0 0}
.profile-menu>.head-actions button{display:block;width:100%;padding:9px 8px;border:1px solid #414034;border-radius:9px;background:#27271f;color:#eee;text-align:center;font-size:10px}
.profile-menu>.head-actions button:hover{border-color:var(--volt);background:#363322;color:var(--volt)}
#studio-view .workspace-head{display:none}

/* A compact control strip lets the graphic carry the page. */
#studio-view .screen-title{height:78px;min-height:78px}
#studio-view .model-stage{height:calc(100% - 78px);max-height:none;padding:14px 15px 16px;border:1px solid #38352a;border-radius:24px;background:radial-gradient(58% 90% at 50% 48%,#e9c72014,transparent 72%),linear-gradient(130deg,#171711,#0b0d0c 57%,#12120f);box-shadow:0 25px 70px #0009,inset 0 1px #ffffff12}
#studio-view .model-stage:before{opacity:.13;background-size:28px 28px;mask-image:radial-gradient(circle at 52% 52%,#000,transparent 72%)}
#studio-view .stage-heading{height:23px;align-items:center;gap:12px;margin:0 3px}
#studio-view .stage-heading h2{display:none}
#studio-view .stage-heading .eyebrow{margin:0;color:#d1c46c;font-size:9px;letter-spacing:.14em}
#studio-view .stage-heading>span{align-self:center;padding:4px 9px;border:1px solid #4d4729;background:#302b17;color:#ffe35d;font-size:9px}
#studio-view .stage-grid{display:grid;grid-template-columns:minmax(200px,22%) minmax(320px,1fr) minmax(250px,24%);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:8px;height:calc(100% - 23px);min-height:0;margin:0}
#studio-view .stage-grid:before{display:none}
#studio-view .stage-grid>*{z-index:2}
.studio-gridline{position:absolute!important;inset:34px 0 0;background:linear-gradient(90deg,transparent 0 33%,#f8e6200b 33% 33.1%,transparent 33.1% 67%,#f8e6200b 67% 67.1%,transparent 67.1%);pointer-events:none}
.studio-cables{position:absolute!important;inset:0;width:100%;height:100%;z-index:1!important;overflow:visible;pointer-events:none}
.cable-line{fill:none;stroke:#ebc94b;stroke-width:1.3;stroke-opacity:.27;filter:drop-shadow(0 0 3px #f8e62055)}
.cable-line:nth-child(4n){stroke:#fff6a6;stroke-opacity:.45}
.cable-pulse{fill:#ffed7a;filter:drop-shadow(0 0 5px #ffe23d);opacity:.8}
.model-stage:not(.model-active) .cable-pulse{opacity:.3}

/* Left input instruments. */
#studio-view .input-tray{display:flex;flex-direction:column;justify-content:flex-start;height:100%;gap:10px;padding:4px 0 0 0}
#studio-view .tray-heading{margin:0 0 1px 2px;color:#d4c566;font-size:9px;font-weight:850;letter-spacing:.14em}
#studio-view .source-card{display:flex;flex-direction:column;gap:0;flex:none;width:100%;min-height:0;padding:13px 14px;border:1px solid #55503a;border-radius:16px;background:linear-gradient(150deg,#28271f,#191b19);box-shadow:0 14px 30px #0008,inset 0 1px #ffffff17;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
#studio-view .source-card:after{display:none}
#studio-view .source-card:hover{transform:translateX(4px);border-color:#e5cf55;box-shadow:0 0 22px #f8e6202a,0 16px 30px #0008}
#studio-view .source-card.loaded{border-color:#a4923e;background:linear-gradient(150deg,#302d1d,#1a1b18)}
.source-card-head,.source-card-foot,.source-card-micro{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.source-card-head b{font-size:13px!important;font-weight:750}
.source-card-head i,.stream-card-top i,.stream-mini-head i{color:#d7c968;font-size:16px;font-style:normal;line-height:1}
.studio-bars{display:flex;align-items:end;justify-content:space-between;gap:3px;width:100%;height:101px;margin:18px 0 10px;padding:0 2px;border-bottom:1px solid #666047}
.studio-bars i{display:block;flex:1;min-width:2px;border-radius:3px 3px 0 0;background:linear-gradient(#ffe567,#a76d0c);box-shadow:0 0 11px #f8c62370;animation:bar-rise .55s both}
.source-card-foot{align-items:end;justify-content:flex-start;gap:10px}
.source-card-foot strong{color:#f8e620;font-size:29px;line-height:1;letter-spacing:-.06em}
.source-card-foot small{max-width:95px;color:#b4ae97;font-size:9px;white-space:normal!important;line-height:1.2}
.source-card-micro{margin-top:11px;padding-top:8px;border-top:1px solid #4d4937;color:#a5a08e;font-size:8px;font-weight:750;letter-spacing:.09em}
.source-card-micro span{display:block;width:72px;height:22px;color:#e8d266;font-size:15px;letter-spacing:0}
.source-card-micro svg{width:100%;height:100%;overflow:visible}
.source-card-micro polyline{fill:none;stroke:#ffe36a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #e9bc2e)}
.move-card{min-height:140px!important}
.move-card-body{display:flex;align-items:center;justify-content:space-between;height:76px}
.move-card-body strong{color:#fff;font-size:33px;letter-spacing:-.06em}
.move-card-body svg{width:75px;height:75px;fill:none;stroke:#e6c65d;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px #f8df4670)}
.move-name{overflow:hidden;color:#c8c4b4;font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.tray-footnote{margin-top:4px;color:#918e7f;font-size:9px;letter-spacing:.1em}
.tray-footnote b{color:var(--volt);font-size:14px}

/* Neural mesh and orbital telemetry. */
.studio-core{position:relative;display:grid;place-items:center;min-width:0;height:100%;overflow:visible}
.studio-core:before{content:"";position:absolute;width:min(100%,550px);aspect-ratio:1;border:1px solid #f8e6201b;border-radius:50%;box-shadow:0 0 0 18px #f8e62008,0 0 0 54px #f8e62005,0 0 100px #f8e62012;animation:core-breathe 5s ease-in-out infinite}
.core-hud{position:absolute;z-index:4;left:12%;right:12%;display:flex;justify-content:space-between;gap:10px;color:#948d67;font-size:8px;font-weight:750;letter-spacing:.13em;pointer-events:none}
.hud-top{top:4px}.hud-bottom{bottom:6px}
#studio-view .warp{position:relative;width:min(100%,540px);max-width:540px;aspect-ratio:1;filter:drop-shadow(0 0 33px #e1b63432)}
#studio-view .warp:hover,#studio-view .warp.drag-over{filter:drop-shadow(0 0 48px #f8d94388);transform:scale(1.025)}
#studio-view .warp-art{inset:-8%;opacity:.26;animation-duration:45s}
#studio-view .warp-ring{border-color:#c2a73539}
#studio-view .ring-one{inset:3%;border-style:dotted}
#studio-view .ring-two{inset:14%;border-width:1px;border-top-color:#f8e620ac;border-bottom-color:#f8e6208c}
#studio-view .ring-three{inset:31%;border-color:#f8e62080}
.studio-mesh{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 5px #efc83244);animation:mesh-float 8s ease-in-out infinite;pointer-events:none}
.mesh-links{stroke:#e5c95a;stroke-width:.55;stroke-opacity:.47}
.mesh-dots{fill:#ffe78e;fill-opacity:.78}
.mesh-contour{fill:none;stroke:#f9d853;stroke-width:1.2;stroke-opacity:.6;filter:drop-shadow(0 0 7px #f8e620)}
#studio-view .warp-core{padding:15px;border:1px solid #f8e62066;border-radius:50%;background:radial-gradient(circle,#060605 12%,#0d0d09ed 67%,#0b0a07a3 75%);box-shadow:0 0 0 12px #f8e6200c,0 0 26px #000}
#studio-view .warp-mark{width:48px;height:48px;font-size:35px;border-radius:13px}
#studio-view .warp-core b{font-size:17px}
#studio-view .warp-core small{font-size:9px}

/* Stacked decision instruments. */
.studio-stream{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:0;height:100%;padding-top:4px;overflow:hidden}
#studio-view .stage-output{display:flex;align-self:stretch;flex:1.9;min-height:0;height:auto;padding:11px 13px;border:1px solid #665b38;border-radius:16px;background:linear-gradient(155deg,#2b2a20,#171916);box-shadow:0 17px 36px #0009,inset 0 1px #ffffff20;animation:none}
#studio-view .stage-output.ready{border-color:#af9841;background:linear-gradient(155deg,#302d20,#171916);box-shadow:0 0 20px #f8e62022,0 17px 36px #0009;animation:stream-arrive .5s ease}
.stream-card-top,.stream-card-row,.stream-mini-head,.stream-mini-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}
.stream-card-top span,.stream-mini-head{color:#e0d7a7;font-size:9px;font-weight:780;letter-spacing:.08em}
.coverage-ring{display:grid;place-items:center;width:clamp(76px,10vh,118px);aspect-ratio:1;flex:none;margin:2px auto;border-radius:50%;background:conic-gradient(#ffe63f 0 var(--coverage,0%),#736435 var(--coverage,0%) 100%);box-shadow:0 0 27px #e1b92755;transform:rotate(-90deg)}
.coverage-ring:before{content:"";position:absolute;inset:18px;border-radius:50%;background:#181813;box-shadow:inset 0 0 11px #000}
.coverage-ring strong{position:relative;color:#fff;font-size:26px;letter-spacing:-.06em;transform:rotate(90deg)}
.coverage-ring.cash-mode strong{font-size:17px}
.stream-card-row{align-items:end;padding:2px 0 7px;border-bottom:1px solid #504a35}
.stream-card-row>div{display:flex;flex-direction:column;min-width:0}
.stream-card-row small{color:#a9a48d;font-size:8px;font-weight:800;letter-spacing:.06em}
.stream-card-row strong{margin-top:3px;color:#fff;font-size:15px;line-height:1.08;letter-spacing:-.03em}
.stream-card-row b{color:#ffe36a;font-size:14px}
.risk-track{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:7px 0}
.risk-track>span{color:#d6c88d;font-size:8px;font-weight:800;white-space:nowrap}
.risk-track>div{display:flex;gap:3px;width:47%;height:6px}
.risk-track i{flex:1;border-radius:2px;background:#4a4531}
.stage-output.ready .risk-track i:nth-child(-n+3){background:#f8df3c;box-shadow:0 0 7px #f8df3c7a}
.stage-output.ready:not(.below-limit) .risk-track i{background:#f8df3c}
#studio-view #output-open-brief{width:100%;min-height:30px;margin:auto 0 0;border:1px solid #d7c57f;border-radius:7px;background:linear-gradient(#eee2ba,#a99a67);color:#171711;font-size:10px;font-weight:800;box-shadow:0 0 12px #f8e6202c}
#studio-view #output-open-brief:hover{background:var(--volt);box-shadow:0 0 22px #f8e62088}
.stream-mini{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;flex:1;min-height:0;padding:9px 12px;border:1px solid #464438;border-radius:14px;background:linear-gradient(145deg,#24241e,#181a18);color:#fff;text-align:left;box-shadow:0 8px 22px #0007;transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease}
.stream-mini:hover{transform:translateX(-4px);border-color:#b7a34d;box-shadow:0 0 20px #f8e62023,0 8px 22px #0007}
.stream-mini-head{width:100%}
.stream-mini-head i{font-size:14px}
.stream-mini-foot{width:100%;align-items:end}
.stream-mini-foot span{color:#b4b1a0;font-size:8px;letter-spacing:.05em}
.stream-mini-foot strong{color:#ffe46d;font-size:22px;line-height:1;white-space:nowrap}
.ramp-track{display:flex;gap:5px;height:8px;margin:10px 0 8px}
.ramp-track i{flex:1;border-radius:4px;background:#48483c}
.ramp-track i.lit{background:#f8e620;box-shadow:0 0 10px #f8e62066}
.capital-value{margin:4px 0;color:#f4e39c;font-size:25px;line-height:1;letter-spacing:-.06em}
.capital-track{height:7px;margin:2px 0 8px;border-radius:8px;background:#43443b}
.capital-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#b99119,#ffe63d);box-shadow:0 0 10px #f8e62066;transition:width .6s ease}

@keyframes bar-rise{from{transform:scaleY(.2);transform-origin:bottom;opacity:.3}to{transform:scaleY(1);transform-origin:bottom;opacity:1}}
@keyframes mesh-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@keyframes core-breathe{0%,100%{opacity:.65;transform:scale(.98)}50%{opacity:1;transform:scale(1.03)}}
@keyframes stream-arrive{from{opacity:.45;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
#studio-view .studio-core .warp{width:min(100%,calc(100vh - 300px),620px)}

@media(max-width:1200px){#studio-view .stage-grid{grid-template-columns:minmax(180px,24%) minmax(270px,1fr) minmax(230px,26%)}.studio-bars{height:78px}.source-card-foot strong{font-size:24px}.coverage-ring{width:94px}.coverage-ring:before{inset:15px}.coverage-ring strong{font-size:22px}.stream-mini-foot strong{font-size:18px}}
@media(max-height:780px) and (min-width:901px){#studio-view .stage-output{padding:8px 11px}.coverage-ring{width:68px}.coverage-ring:before{inset:11px}.coverage-ring strong{font-size:18px}.stream-card-row{padding:1px 0 5px}.risk-track{margin:4px 0}#studio-view #output-open-brief{min-height:26px}}
@media(max-height:650px) and (min-width:901px){.topbar{height:60px}.app-view{height:calc(100vh - 60px)}.main-area{padding:12px 22px}#studio-view .screen-title{height:61px;min-height:61px}#studio-view .screen-title h1{font-size:31px}#studio-view .model-stage{height:calc(100% - 61px);padding:10px 12px}#studio-view .stage-heading{height:18px}#studio-view .stage-grid{height:calc(100% - 18px)}#studio-view .input-tray{gap:6px}.studio-bars{height:55px;margin:7px 0 5px}.source-card-foot strong{font-size:21px}.source-card-micro{margin-top:5px;padding-top:5px;font-size:7px}#studio-view .source-card{padding:8px 10px}.move-card{min-height:100px!important}.move-card-body{height:50px}.move-card-body strong{font-size:27px}.move-card-body svg{width:50px;height:50px}.tray-footnote{display:none}.coverage-ring{width:54px}.coverage-ring:before{inset:9px}.coverage-ring strong{font-size:15px}.coverage-ring.cash-mode strong{font-size:11px}.stream-card-row strong{font-size:11px}.stream-card-row b{font-size:11px}.stream-mini{padding:6px 8px}.stream-mini-foot strong{font-size:16px}.capital-value{font-size:19px}.ramp-track{margin:4px 0}.studio-stream{gap:5px}}
@media(max-width:900px){#studio-view .model-stage{height:auto;min-height:760px}#studio-view .stage-grid{grid-template-columns:minmax(180px,.8fr) minmax(270px,1.2fr);height:auto;min-height:700px}#studio-view .input-tray{grid-column:1;grid-row:1}.studio-core{grid-column:2;grid-row:1}.studio-stream{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1.25fr 1fr 1fr;min-height:245px}.studio-stream>.tray-heading{grid-column:1/-1}.studio-stream .stage-output{grid-row:2;height:100%}.studio-stream .stream-mini{grid-row:2}.studio-cables{display:none}.coverage-ring{width:86px}}
@media(max-width:650px){#studio-view .screen-title{height:72px}#studio-view .model-stage{height:auto;min-height:0;padding:12px}#studio-view .stage-heading{height:42px;min-height:42px;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:5px}#studio-view .stage-heading>span{align-self:flex-start;margin:0;padding:4px 6px;font-size:7px}#studio-view .stage-grid{display:flex;flex-direction:column;height:auto;min-height:0}.studio-core{min-height:270px}.studio-stream{display:flex;flex-direction:column;min-height:0}.studio-stream .stage-output{height:auto;min-height:300px}.studio-stream .stream-mini{min-height:100px}.input-tray .source-card{min-height:0;padding:12px}.studio-bars{height:90px}.move-card{min-height:125px!important}.studio-core .warp{max-width:270px!important}.core-hud{display:none}}
@media(prefers-reduced-motion:reduce){.studio-mesh,.studio-core:before,.studio-bars i,.cable-pulse{animation:none!important}.cable-pulse{display:none}.stream-mini,.source-card{transition:none!important}}

/* Keep the reference composition intentional on large desktop displays. */
@media(min-width:901px) and (min-height:651px){
  #studio-view{display:flex;flex-direction:column;justify-content:center;width:100%;max-width:1700px;margin-inline:auto}
  #studio-view .screen-title{flex:none;width:100%}
  #studio-view .model-stage{flex:none;width:100%;height:min(calc(100% - 78px),820px)}
}
@media(min-width:1300px) and (min-height:850px){
  #studio-view .studio-stream{gap:10px}
  #studio-view .stage-output{flex:none;height:45%}
  #studio-view .stream-mini{flex:none;height:23%}
  #studio-view .input-tray{gap:12px}
  #studio-view .source-card:first-of-type{min-height:228px}
  #studio-view .move-card{min-height:150px!important}
}
@media(min-width:1600px) and (min-height:900px){
  #studio-view .tray-heading,.input-tray .tray-heading{font-size:11px}
  #studio-view .source-card{padding:15px}
  .source-card-head b{font-size:16px!important}
  .studio-bars{height:120px}
  .source-card-foot strong{font-size:35px}
  .source-card-foot small{font-size:11px;max-width:125px}
  .source-card-micro,.tray-footnote{font-size:10px}
  .move-card-body{height:91px}
  .move-card-body strong{font-size:40px}
  .move-card-body svg{width:86px;height:86px}
  .move-name{font-size:12px}
  .stream-card-top span,.stream-mini-head{font-size:11px}
  .coverage-ring{width:145px}
  .coverage-ring:before{inset:23px}
  .coverage-ring strong{font-size:29px}
  .stream-card-row small,.risk-track>span,.stream-mini-foot span{font-size:10px}
  .stream-card-row strong{font-size:18px}
  .stream-card-row b{font-size:18px}
  .stream-mini-foot strong{font-size:26px}
  .capital-value{font-size:31px}
  #studio-view #output-open-brief{min-height:34px;font-size:12px}
}
