.pa-studio-workspace-shell{--ws-ink:#081a31;--ws-muted:#53667d;--ws-line:#d7e2ee;--ws-panel:#fff;--ws-soft:#f3f8fc;--ws-accent:#008f9d;--ws-navy:#06182c;--ws-nav-reserve:58px;position:fixed!important;inset:0!important;z-index:2000!important;display:grid!important;grid-template-columns:164px minmax(0,1fr)!important;grid-template-rows:78px 56px minmax(0,1fr) var(--ws-nav-reserve)!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;max-width:none!important;margin:0!important;padding:0 calc(var(--ws-nav-reserve) * 0)!important;overflow:hidden!important;background:#edf3f8!important;color:var(--ws-ink)}
html:has(.pa-studio-workspace-shell),body:has(.pa-studio-workspace-shell){overflow:hidden!important}
body:has(.pa-studio-workspace-shell)>.pa-site-header,body:has(.pa-studio-workspace-shell)>.pa-footer{display:none!important}
body:has(.pa-studio-workspace-shell)>.pa-helpbot{display:grid!important;z-index:2500!important;right:max(1rem,env(safe-area-inset-right));bottom:max(5.5rem,calc(env(safe-area-inset-bottom) + 5.5rem))}

.pa-workspace-navigation{background:#07111d}
.pa-studio-workspace-shell>.pa-workspace-app-nav{grid-column:1;grid-row:1/-1;display:flex!important;flex-direction:column;align-items:stretch;min-width:0;padding:.75rem .55rem;background:#07111d;border-right:1px solid #1c3043;color:#dceaf5;overflow:hidden}
.pa-workspace-brand{display:flex;align-items:center;gap:.55rem;min-height:52px;padding:0 .55rem;color:#fff!important;text-decoration:none;font-size:.83rem;font-weight:900;letter-spacing:.01em;white-space:nowrap}.pa-workspace-brand i{font-size:1.35rem;color:#59d0d7}.pa-workspace-app-nav nav{display:grid;gap:.25rem;margin-top:.85rem}.pa-workspace-app-nav button,.pa-workspace-more{display:flex;align-items:center;gap:.65rem;width:100%;min-height:48px;padding:.5rem .65rem;border:1px solid transparent;border-radius:.55rem;background:transparent;color:#a9bbca;font-size:.75rem;font-weight:750;text-align:left}.pa-workspace-app-nav button i{width:1.25rem;font-size:1.05rem;text-align:center}.pa-workspace-app-nav button:hover,.pa-workspace-app-nav button.is-active{background:#142b3e;border-color:#27516a;color:#fff}.pa-workspace-app-nav button.is-active i{color:#60d2da}.pa-workspace-more{margin-top:auto}
.pa-workspace-app-nav button:focus-visible{outline:2px solid #69dce3;outline-offset:2px;color:#fff}
.pa-workspace-app-nav .pa-workspace-site-menu-trigger{margin-top:auto;border-color:#315168;background:#10283a;color:#fff}.pa-workspace-app-nav .pa-workspace-site-menu-trigger[aria-expanded="true"]{background:#15546a;border-color:#6ed3dc}.pa-workspace-app-nav .pa-workspace-more{margin-top:.25rem}

.pa-studio-workspace-shell>.pa-studio-commandbar{grid-column:2;grid-row:1;display:grid!important;grid-template-columns:minmax(310px,.8fr) minmax(500px,1.2fr) auto!important;align-items:center!important;gap:.8rem!important;height:78px;padding:.55rem 1rem!important;background:#fff!important;border:0!important;border-bottom:1px solid var(--ws-line)!important;overflow:hidden}
.pa-studio-commandbar>div:first-child{min-width:0}.pa-studio-commandbar .pa-eyebrow{margin:0 0 .15rem!important;color:#007d88!important;font-size:.67rem!important}.pa-studio-workspace-shell>.pa-studio-commandbar h1{margin:0!important;color:var(--ws-ink)!important;font-size:clamp(1.05rem,1.5vw,1.42rem)!important;line-height:1.08!important;letter-spacing:-.025em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pa-studio-workspace-shell>.pa-studio-commandbar>div:first-child>p{margin:.22rem 0 0!important;color:var(--ws-muted)!important;font-size:.7rem!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Keep Support Guide notices readable inside the compact Studio command bar. */
.pa-studio-workspace-shell > .pa-studio-commandbar .pa-helpbot-note > p {
  color: var(--pa-text);
}

.pa-studio-commandbar .pa-studio-job-picker{display:grid!important;grid-template-columns:auto minmax(190px,1fr) auto auto!important;align-items:end!important;gap:.45rem!important;min-width:0}.pa-studio-commandbar .pa-studio-skill-mode{display:none!important}.pa-studio-commandbar .pa-studio-job-picker>label[for="studioJob"]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.pa-studio-commandbar select,.pa-studio-commandbar .btn{min-height:40px!important;margin:0!important}.pa-studio-commandbar .pa-studio-file-status{display:none!important}
.pa-studio-current-job{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:.5rem!important;min-width:0!important;overflow:hidden!important;text-align:left!important}.pa-studio-current-job span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pa-studio-current-job i{flex:0 0 auto}
.pa-workspace-top-actions{display:flex;gap:.35rem;justify-content:flex-end;flex-wrap:nowrap}.pa-workspace-top-actions button{min-height:40px;min-width:44px;padding:.4rem .55rem;border:1px solid var(--ws-line);border-radius:.5rem;background:#f8fbfd;color:var(--ws-ink);font-size:.69rem;font-weight:800;white-space:nowrap}.pa-workspace-top-actions span{display:inline-grid;place-items:center;width:1.35rem;height:1.35rem;margin-right:.25rem;border-radius:50%;background:#d9f4f5;color:#007b89}
.pa-workspace-top-actions button:focus-visible{outline:2px solid #007d89;outline-offset:2px}

.pa-studio-workspace-shell>.pa-studio-journey{grid-column:2;grid-row:2;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important;height:56px;margin:0!important;padding:.35rem 1rem!important;border:0!important;border-bottom:1px solid var(--ws-line)!important;border-radius:0!important;background:#fbfdff!important;box-shadow:none!important;overflow:hidden}.pa-studio-workspace-shell>.pa-studio-journey a{min-width:0;padding:.35rem .6rem!important;color:var(--ws-ink)!important}.pa-studio-workspace-shell>.pa-studio-journey small{color:var(--ws-muted)!important;font-size:.62rem!important}.pa-studio-workspace-shell>.pa-studio-journey strong{font-size:.7rem!important}
.pa-studio .pa-studio-journey>a[data-step-state="pending"]{opacity:.68}
.pa-studio .pa-studio-journey>a[data-step-state="complete"]{background:#f3f8fc!important;color:#24415a!important}
.pa-studio .pa-studio-journey>a[data-step-state="complete"]>b{border:1px solid #7ac8ce;background:#d9f4f5;color:#00737d}
.pa-studio .pa-studio-journey>a:is([data-step-state="current"],[data-step-state="working"]){background:#e4f6f7!important;color:#06182c!important;box-shadow:inset 0 -4px #008f9d}
.pa-studio .pa-studio-journey>a:is([data-step-state="current"],[data-step-state="working"])>b{border:1px solid #008f9d;background:#008f9d;color:#fff}
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio .pa-studio-journey>a[data-step-state="pending"]{background:#0f1e27!important;color:#8298a2!important}
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio .pa-studio-journey>a[data-step-state="complete"]{background:#152935!important;color:#c7d4d9!important}
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio .pa-studio-journey>a[data-step-state="complete"]>b{border-color:#29434c;background:#203e4d;color:#70e1dc}
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio .pa-studio-journey>a:is([data-step-state="current"],[data-step-state="working"]){background:#183240!important;color:#f1f8f9!important;box-shadow:inset 0 -4px #28b8c4}
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio .pa-studio-journey>a:is([data-step-state="current"],[data-step-state="working"])>b{border-color:#28b8c4;background:#28b8c4;color:#081620}
.pa-studio-workspace-shell>.pa-studio-sample-note,.pa-studio-workspace-shell>.pa-studio-analysis-track,.pa-studio-workspace-shell>.pa-studio-import,.pa-studio-workspace-shell>.pa-studio-import-error{display:none!important}

.pa-studio-workspace-shell>.pa-workspace-canvas{grid-column:2;grid-row:3;display:grid!important;grid-template-columns:minmax(230px,17vw) minmax(0,1fr) minmax(260px,20vw)!important;gap:1px!important;width:100%;height:calc(100dvh - 78px - 56px - var(--ws-nav-reserve))!important;min-height:0!important;background:#d8e2eb!important;overflow:hidden!important}
.pa-workspace-goal-rail,.pa-workspace-center,.pa-workspace-summary{height:100%!important;max-height:none!important;min-height:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;position:static!important;overflow:hidden}
.pa-workspace-goal-rail{padding:.75rem!important;background:#fff!important;color:var(--ws-ink)!important;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#c3d1dd transparent}.pa-workspace-goal-rail .pa-studio-goal-guide{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.pa-workspace-goal-rail .pa-studio-goal-guide>header p{display:none}.pa-workspace-goal-rail .pa-studio-goal-guide>header h2{font-size:.86rem!important;color:#087b86!important}.pa-workspace-goal-rail .pa-studio-make-it-work{padding:.65rem!important;background:#f4fbfc!important;border-color:#9ed9dd!important}.pa-workspace-goal-rail .pa-studio-make-it-work-copy p,.pa-workspace-goal-rail .pa-studio-make-it-work small,.pa-workspace-goal-rail .pa-studio-make-it-work-result{display:none}.pa-workspace-goal-rail .pa-studio-make-it-work-actions{display:grid!important}.pa-workspace-goal-rail .pa-studio-goal-grid{display:grid!important;grid-template-columns:1fr!important;gap:.42rem!important}.pa-workspace-goal-rail .pa-studio-goal-grid button{min-height:48px!important;padding:.5rem .58rem!important;border:1px solid #d7e2ec!important;background:#fff!important;color:var(--ws-ink)!important;text-align:left}.pa-workspace-goal-rail .pa-studio-goal-grid small{display:none}.pa-workspace-goal-rail button:disabled{opacity:1!important;color:#657588!important;background:#e9eff4!important;border-color:#aebdca!important}
.pa-workspace-goal-rail .pa-studio-make-it-work h3,.pa-workspace-goal-rail .pa-studio-make-it-work strong,.pa-workspace-goal-rail .pa-studio-make-it-work-copy{color:var(--ws-ink)!important;text-shadow:none!important}.pa-workspace-goal-rail .pa-studio-make-it-work .pa-eyebrow{color:#087b86!important}
.pa-workspace-goal-rail button:focus-visible{outline:2px solid #008c98!important;outline-offset:2px!important}

.pa-workspace-center{padding:.45rem!important;background:#061422!important}.pa-workspace-center .pa-studio-workbench{display:block!important;height:100%!important;min-height:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.pa-workspace-center .pa-studio-viewport-column{width:100%!important;max-width:none!important;height:100%!important}.pa-workspace-center .pa-studio-viewport-card{height:calc(100dvh - 78px - 56px - var(--ws-nav-reserve))!important;min-height:0!important;max-height:calc(100dvh - 78px - 56px - var(--ws-nav-reserve))!important;margin:0!important;border-radius:.55rem!important}.pa-workspace-center .pa-studio-viewer{height:100%!important;min-height:0!important}

.pa-workspace-summary{padding:.8rem!important;background:#fff!important;color:var(--ws-ink)!important;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#c3d1dd transparent}.pa-workspace-summary>header{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding-bottom:.65rem;border-bottom:1px solid var(--ws-line)}.pa-workspace-summary>header span{color:var(--ws-ink)!important;font-size:.7rem;font-weight:900;text-transform:uppercase}.pa-workspace-summary b,.pa-workspace-quick-fixes b{display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;margin-right:.3rem;border-radius:50%;background:#0d88d8;color:#fff}.pa-workspace-summary>header button{border:0;background:transparent;color:#007681;font-size:.7rem;font-weight:800}.pa-workspace-score{display:flex;align-items:end;gap:.45rem;padding:.8rem 0 .3rem}.pa-workspace-score strong{color:var(--ws-navy)!important;font-size:2.4rem;line-height:1}.pa-workspace-score span,.pa-workspace-summary>p{color:var(--ws-muted)!important;font-size:.72rem}.pa-workspace-summary ul{list-style:none;padding:0;margin:.65rem 0}.pa-workspace-summary li{display:flex;justify-content:space-between;gap:.45rem;padding:.5rem 0;border-bottom:1px solid #e9eff4;font-size:.72rem}.pa-workspace-summary li strong{color:var(--ws-ink)!important}.pa-workspace-summary li span{color:#c73535!important}.pa-workspace-quick-fixes{padding-top:.7rem;border-top:1px solid var(--ws-line)}.pa-workspace-quick-fixes h2{color:var(--ws-ink)!important;font-size:.7rem;text-transform:uppercase}.pa-workspace-quick-fixes>div{display:flex;flex-wrap:wrap;gap:.35rem}.pa-workspace-quick-fixes button{padding:.42rem .52rem;border:1px solid var(--ws-line);border-radius:.45rem;background:#f8fbfd;color:var(--ws-ink);font-size:.67rem}.pa-workspace-summary button:disabled{opacity:1!important;color:#657588!important;background:#e9eff4!important;border-color:#aebdca!important}
.pa-workspace-summary button:focus-visible{outline:2px solid #008c98!important;outline-offset:2px!important}

.pa-studio-workspace-shell>.pa-workspace-tabs{grid-column:2;grid-row:4;position:static!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:.2rem!important;width:100%;height:var(--ws-nav-reserve);margin:0!important;padding:.35rem 1rem!important;border:0!important;border-top:1px solid var(--ws-line)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}.pa-workspace-tabs button{min-height:42px;padding:.25rem .35rem;border:1px solid transparent;border-radius:.4rem;background:transparent;color:#425870;font-size:.7rem;font-weight:750}.pa-workspace-tabs span{display:inline-grid;place-items:center;width:1.2rem;height:1.2rem;margin-right:.2rem;border-radius:50%;background:#daf3f4;color:#007c87}.pa-workspace-tabs button:hover{background:#eef8f9;border-color:#acdce0;color:#006c76}
.pa-workspace-tabs button:focus-visible{outline:2px solid #008c98;outline-offset:1px;background:#eef8f9;color:#006c76}

.pa-workspace-backdrop{position:fixed;inset:0;z-index:3000;background:rgba(3,17,31,.42);backdrop-filter:blur(2px)}
.pa-workspace-site-menu{position:fixed;z-index:3003;inset:0 auto 0 164px;width:min(390px,calc(100vw - 164px));height:100dvh;padding:0;background:#fff;color:var(--ws-ink);box-shadow:24px 0 70px rgba(4,25,43,.28);transform:translateX(-104%);visibility:hidden;transition:transform .24s ease,visibility .24s}.pa-workspace-site-menu.is-open{transform:none;visibility:visible}.pa-workspace-site-menu>header{display:flex;align-items:center;gap:.75rem;padding:1rem;border-bottom:1px solid var(--ws-line);background:#f8fbfd}.pa-workspace-site-menu h2{margin:0;color:var(--ws-ink);font-size:1.2rem}.pa-workspace-site-menu header small{color:#007c89;font-size:.68rem;font-weight:850;text-transform:uppercase}.pa-workspace-site-menu [data-workspace-close]{margin-left:auto;width:44px;height:44px;border:0;background:transparent;color:var(--ws-muted);font-size:1.6rem}.pa-workspace-site-menu nav{display:grid;gap:.25rem;height:calc(100dvh - 77px);padding:.8rem;overflow:auto}.pa-workspace-site-menu a{display:flex;align-items:center;min-height:46px;padding:.65rem .75rem;border:1px solid transparent;border-radius:.55rem;color:#17324b;text-decoration:none;font-size:.86rem;font-weight:750}.pa-workspace-site-menu a:hover{border-color:#b7dce0;background:#eef9fa;color:#006d78}.pa-workspace-site-menu a[aria-current="page"]{border-color:#8bcfd5;background:#def5f6;color:#006a74}.pa-workspace-site-menu a.is-primary{margin-top:.35rem;background:#007f8b;color:#fff}.pa-workspace-site-menu :focus-visible{outline:2px solid #008c98;outline-offset:2px}
.pa-workspace-drawer{position:fixed;z-index:3001;top:0;right:0;width:min(780px,92vw);height:100dvh;overflow-x:hidden;background:#fff;color:var(--ws-ink);box-shadow:-24px 0 70px rgba(4,25,43,.24);transform:translateX(104%);visibility:hidden;transition:transform .28s ease,visibility .28s}.pa-workspace-drawer.is-open{transform:none;visibility:visible}.pa-workspace-drawer>header,.pa-workspace-modal-card>header{display:flex;align-items:center;gap:.7rem;padding:.9rem 1.1rem;border-bottom:1px solid var(--ws-line);background:#f9fcfe}.pa-workspace-drawer>header>span,.pa-workspace-modal-card>header>span{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#0a8ad3;color:#fff;font-weight:900}.pa-workspace-drawer h2,.pa-workspace-modal h2{margin:0;color:var(--ws-ink);font-size:1.15rem}.pa-workspace-drawer header small,.pa-workspace-modal header small{text-transform:uppercase;font-weight:800;color:#007c89}.pa-workspace-drawer [data-workspace-close],.pa-workspace-modal [data-workspace-close]{margin-left:auto;width:44px;height:44px;border:0;background:transparent;color:var(--ws-muted);font-size:1.6rem}.pa-workspace-drawer-body{height:calc(100dvh - 73px);min-width:0;padding:1rem;overflow-x:hidden;overflow-y:auto}.pa-workspace-drawer-body>.pa-studio-controls{display:block!important;width:100%!important;max-width:none!important;position:static!important}.pa-workspace-drawer-body>.pa-studio-detailed-report{display:block!important;margin:0!important;border:0!important}.pa-workspace-drawer-body>.pa-studio-detailed-report>summary{display:none}.pa-workspace-drawer-body .pa-studio-detailed-report-body{display:block!important}
.pa-workspace-drawer button:focus-visible{outline:2px solid #008c98!important;outline-offset:2px!important}

.pa-workspace-modal{position:fixed;z-index:3002;inset:0;display:grid;place-items:center;padding:1rem;background:rgba(3,17,31,.5);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s}.pa-workspace-modal.is-open{opacity:1;visibility:visible}.pa-workspace-modal-card{width:min(720px,96vw);max-height:min(760px,90dvh);overflow:auto;border-radius:.9rem;background:#fff;color:var(--ws-ink);box-shadow:0 30px 90px rgba(0,0,0,.26);transform:scale(.96);transition:transform .2s ease}.pa-workspace-modal.is-open .pa-workspace-modal-card{transform:none}.pa-workspace-modal [data-workspace-modal-body]{padding:1.1rem}.pa-workspace-index-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.pa-workspace-index-grid button{display:flex;align-items:center;gap:.6rem;padding:.7rem;border:1px solid var(--ws-line);border-radius:.6rem;background:#f9fcfe;color:var(--ws-ink);text-align:left}.pa-workspace-index-grid b{display:grid;place-items:center;flex:0 0 1.9rem;height:1.9rem;border-radius:50%;background:#e0f3f5;color:#007783}.pa-workspace-index-grid span{display:grid;font-weight:800}.pa-workspace-index-grid small{color:var(--ws-muted);font-weight:500}.pa-workspace-modal-actions{display:flex;flex-wrap:wrap;gap:.55rem}.pa-workspace-modal-actions button{min-height:44px;padding:.55rem .75rem;border:1px solid #67c8d2;border-radius:.5rem;background:#e9fbfc;color:#006d78;font-weight:800}.pa-workspace-model-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}.pa-workspace-model-detail div{padding:.7rem;border:1px solid var(--ws-line);border-radius:.55rem}.pa-workspace-model-detail dt{color:var(--ws-muted);font-size:.67rem;text-transform:uppercase}.pa-workspace-model-detail dd{margin:.2rem 0 0;font-weight:800}
.pa-workspace-modal button:focus-visible{outline:2px solid #008c98!important;outline-offset:2px!important}

.pa-studio-workspace-shell>.pa-studio-detailed-report,.pa-studio-workspace-shell>.pa-studio-handoff,.pa-studio-workspace-shell>.pa-studio-product-rail,.pa-studio-workspace-shell>.pa-studio-controls{display:none!important}

@media(max-width:1150px){.pa-studio-workspace-shell{grid-template-columns:92px minmax(0,1fr)!important}.pa-workspace-brand,.pa-workspace-app-nav button{justify-content:center}.pa-workspace-brand span,.pa-workspace-app-nav button span{display:none}.pa-studio-workspace-shell>.pa-studio-commandbar{grid-template-columns:minmax(260px,.75fr) minmax(430px,1.25fr) auto!important}.pa-studio-workspace-shell>.pa-workspace-canvas{grid-template-columns:220px minmax(0,1fr) 250px!important}.pa-workspace-top-actions button{font-size:0}.pa-workspace-top-actions button span{margin:0;font-size:.69rem}}

@media (min-width:901px) and (max-width:1100px) {
  .pa-studio-workspace-shell { --ws-nav-reserve:56px; grid-template-columns:58px minmax(0,1fr)!important; grid-template-rows:56px minmax(0,1fr) var(--ws-nav-reserve)!important; }
  .pa-studio-workspace-shell > .pa-workspace-app-nav { padding:.25rem; }
  .pa-workspace-brand { min-height:46px; padding:0; }
  .pa-workspace-app-nav nav { margin-top:.25rem; }
  .pa-workspace-app-nav button { min-height:46px; padding:.25rem; }
  .pa-studio-workspace-shell > .pa-studio-commandbar { grid-column:2; grid-row:1; height:56px; padding:.35rem .5rem!important; grid-template-columns:minmax(0,1fr) auto!important; }
  .pa-studio-commandbar > div:first-child p,
  .pa-studio-commandbar .pa-studio-job-picker,
  .pa-workspace-top-actions > .pa-studio-plan-bar,
  .pa-workspace-top-actions > button:not([data-workspace-open="goals"]):not([data-workspace-open="index"]):not([data-workspace-open="help"]) { display:none!important; }
  .pa-studio-workspace-shell > .pa-studio-journey { display:none!important; }
  .pa-studio-workspace-shell > .pa-workspace-canvas { grid-column:2; grid-row:2; grid-template-columns:minmax(0,1fr)!important; height:calc(100dvh - 56px - var(--ws-nav-reserve))!important; }
  .pa-workspace-center { display:block!important; padding:.25rem!important; }
  .pa-workspace-center .pa-studio-viewport-card { height:calc(100dvh - 56px - var(--ws-nav-reserve) - .5rem)!important; max-height:calc(100dvh - 56px - var(--ws-nav-reserve) - .5rem)!important; min-height:0!important; }
  .pa-workspace-summary,
  .pa-workspace-goal-rail { display:none!important; }
  .pa-studio-workspace-shell > .pa-workspace-tabs { grid-column:2; grid-row:3; grid-template-columns:repeat(4,minmax(0,1fr))!important; height:var(--ws-nav-reserve); padding:.3rem!important; }
  .pa-workspace-tabs button:nth-child(n+5) { display:none!important; }
}

@media (max-width:1100px) {
  .pa-workspace-top-actions > .pa-studio-plan-bar { display:none!important; }
}

@media(max-width:900px){.pa-studio-workspace-shell{--ws-nav-reserve:56px;grid-template-columns:58px minmax(0,1fr)!important;grid-template-rows:56px minmax(0,1fr) var(--ws-nav-reserve)!important;padding:0 calc(var(--ws-nav-reserve) * 0)!important}.pa-studio-workspace-shell>.pa-workspace-app-nav{padding:.25rem}.pa-workspace-brand{min-height:46px;padding:0}.pa-workspace-app-nav nav{margin-top:.25rem}.pa-workspace-app-nav button{min-height:46px;padding:.25rem}.pa-studio-workspace-shell>.pa-studio-commandbar{grid-column:2;grid-row:1;height:56px;padding:.35rem .5rem!important;grid-template-columns:minmax(0,1fr) auto!important}.pa-studio-commandbar>div:first-child p,.pa-studio-commandbar .pa-studio-job-picker,.pa-workspace-top-actions>button:not([data-workspace-open="goals"]):not([data-workspace-open="index"]):not([data-workspace-open="help"]){display:none!important}.pa-studio-workspace-shell>.pa-studio-journey{display:none!important}.pa-studio-workspace-shell>.pa-workspace-canvas{grid-column:2;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:calc(100dvh - 56px - var(--ws-nav-reserve))!important}.pa-workspace-center{display:block!important;padding:.25rem!important}.pa-workspace-center .pa-studio-viewport-card{height:calc(100dvh - 56px - var(--ws-nav-reserve))!important;max-height:calc(100dvh - 56px - var(--ws-nav-reserve))!important;min-height:0!important}.pa-workspace-summary{display:none!important}.pa-workspace-goal-rail{position:fixed!important;z-index:3001!important;inset:0 auto 0 58px!important;width:min(360px,calc(100vw - 58px))!important;height:100dvh!important;max-height:none!important;border-radius:0!important;transform:translateX(-104%);visibility:hidden;transition:transform .26s ease,visibility .26s}.pa-workspace-goal-rail.is-open{transform:none;visibility:visible}.pa-studio-workspace-shell>.pa-workspace-tabs{grid-column:2;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr))!important;height:var(--ws-nav-reserve);padding:.3rem!important}.pa-workspace-tabs button:nth-child(n+5){display:none!important}.pa-workspace-tabs button{font-size:.62rem!important}.pa-workspace-drawer{width:calc(100vw - 58px)!important}.pa-workspace-modal{left:58px!important}.pa-workspace-index-grid{grid-template-columns:1fr}.pa-workspace-model-detail{grid-template-columns:1fr}}
@media(max-width:900px){.pa-workspace-modal-card{width:100%;max-width:100%;min-width:0}}
@media(max-width:900px){.pa-workspace-center .pa-studio-viewport-card{height:calc(100dvh - 56px - var(--ws-nav-reserve) - .5rem)!important;max-height:calc(100dvh - 56px - var(--ws-nav-reserve) - .5rem)!important}}
@media(max-width:900px){.pa-workspace-tabs button{min-width:0;white-space:normal!important;overflow-wrap:anywhere;line-height:1.05!important}}

.pa-workspace-drawer h2,.pa-workspace-modal h2{color:var(--ws-ink)!important;text-shadow:none!important}
.pa-workspace-drawer-body .pa-studio-results{grid-template-columns:minmax(250px,.75fr) minmax(0,1.25fr)!important;max-width:100%!important}
.pa-workspace-drawer-body .pa-studio-impact-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.pa-workspace-drawer-body .pa-studio-optimizer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.pa-workspace-drawer-body .pa-studio-detailed-report-body,.pa-workspace-drawer-body .pa-studio-detailed-report-body>*{max-width:100%!important}
.pa-workspace-goal-close{display:none}
.pa-workspace-goal-rail [data-pa-download-make-it-work]:not(:disabled),.pa-workspace-goal-rail [data-pa-undo-make-it-work]:not(:disabled){color:#006f79!important;background:#fff!important;border-color:#58bac2!important;text-shadow:none!important}
.pa-workspace-center .pa-studio-gcode-stage,.pa-workspace-center .pa-studio-native-slicer{grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;overflow-x:hidden!important}
.pa-workspace-center .pa-studio-native-slicer-settings{grid-template-columns:repeat(4,minmax(0,1fr))!important;min-width:0!important}
.pa-workspace-drawer[data-surface="tools"] .pa-workspace-drawer-body,.pa-workspace-drawer[data-surface="diagnose"] .pa-workspace-drawer-body,.pa-workspace-drawer[data-surface="setup"] .pa-workspace-drawer-body{background:#07131f;color:#dce8f1}
.pa-workspace-drawer-body>.pa-studio-controls h2,.pa-workspace-drawer-body>.pa-studio-controls h3,.pa-workspace-drawer-body>.pa-studio-controls strong,.pa-workspace-drawer-body>.pa-studio-controls p,.pa-workspace-drawer-body>.pa-studio-controls label{color:#dce8f1!important;text-shadow:none!important}.pa-workspace-drawer-body>.pa-studio-controls small{color:#a9bbc9!important}
@media(prefers-reduced-motion:reduce){.pa-workspace-drawer,.pa-workspace-modal,.pa-workspace-modal-card,.pa-workspace-goal-rail,.pa-workspace-site-menu{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1150px){.pa-workspace-site-menu{left:92px;width:min(390px,calc(100vw - 92px))}}
@media(max-width:900px){.pa-workspace-site-menu{left:58px;width:calc(100vw - 58px);max-width:none}.pa-workspace-site-menu nav{padding:.55rem}.pa-workspace-site-menu a{min-height:44px}}
@media(max-width:900px){.pa-workspace-goal-close{position:sticky;top:0;z-index:2;display:grid;place-items:center;width:44px;height:44px;margin:0 0 .4rem auto;border:1px solid var(--ws-line);border-radius:50%;background:#fff;color:var(--ws-ink);font-size:1.5rem}.pa-workspace-drawer{left:58px!important;right:0!important;width:auto!important}.pa-workspace-drawer>header>div{min-width:0;flex:1}.pa-workspace-drawer [data-workspace-close]{flex:0 0 44px;color:#53667d!important}.pa-workspace-center .pa-studio-native-slicer-settings{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* Workspace clarity and interaction guardrails. */
.pp-studio-step-badge,
.pp-studio-stage-badge {
  width: auto !important;
  min-width: 3.75rem;
  padding-inline: 0.5rem;
  border-radius: 999px !important;
  white-space: nowrap;
  font-size: 0.7rem !important;
}
.pp-studio-workspace__step-guide {
  border: 1px solid color-mix(in srgb, var(--pp-studio-border, #6f7f8f) 68%, transparent);
  border-radius: 0.45rem;
  background: transparent;
  color: inherit;
  padding: 0.42rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.pp-studio-workspace__step-guide:hover,
.pp-studio-workspace__step-guide:focus-visible {
  outline: 2px solid var(--pp-studio-accent, #34b7d5);
  outline-offset: 2px;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
.pp-studio-workspace__goals.is-attention,
.pp-studio-workspace__goal-rail.is-attention,
.pp-studio-goal-rail.is-attention,
[data-workspace-goals].is-attention {
  animation: pp-studio-goal-attention 1.4s ease-out;
}
@keyframes pp-studio-goal-attention {
  0%, 100% { box-shadow: none; }
  25%, 70% { box-shadow: 0 0 0 3px var(--pp-studio-accent, #34b7d5), 0 10px 32px rgb(0 0 0 / 0.2); }
}
.pp-studio-context-popover {
  position: fixed;
  z-index: 10040;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(31rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 2rem));
  overflow: auto;
  padding: 1.15rem;
  border: 1px solid var(--pp-studio-border, #667788);
  border-radius: 0.85rem;
  background: var(--pp-studio-panel, #17212a);
  color: var(--pp-studio-text, #f4f7f8);
  box-shadow: 0 22px 80px rgb(0 0 0 / 0.48);
}
.pp-studio-context-popover h2 { margin: 0 0 0.55rem; font-size: 1.08rem; }
.pp-studio-context-popover p { margin: 0 0 1rem; line-height: 1.55; color: var(--pp-studio-muted, #c2cbd1); }
.pp-studio-context-popover__actions { display: grid; gap: 0.5rem; margin-block: 0.75rem; }
.pp-studio-context-popover__goal,
.pp-studio-context-popover__close {
  border: 1px solid var(--pp-studio-border, #667788);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--pp-studio-panel, #17212a) 86%, white);
  color: inherit;
  padding: 0.68rem 0.8rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.pp-studio-context-popover__close { width: 100%; text-align: center; }
.pp-studio-context-popover button:hover,
.pp-studio-context-popover button:focus-visible {
  border-color: var(--pp-studio-accent, #34b7d5);
  outline: 2px solid var(--pp-studio-accent, #34b7d5);
  outline-offset: 2px;
}
.pp-studio-site-menu__goal-navigation {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--pp-studio-border, #667788);
}
.pp-studio-site-menu__goal-navigation h3 {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-studio-muted, #c2cbd1);
}
.pp-studio-site-menu__goal-navigation a {
  display: grid;
  gap: 0.12rem;
  padding: 0.58rem 0.65rem;
  border-radius: 0.48rem;
  color: inherit;
  text-decoration: none;
}
.pp-studio-site-menu__goal-navigation a:hover,
.pp-studio-site-menu__goal-navigation a:focus-visible {
  background: color-mix(in srgb, currentColor 9%, transparent);
  outline: 2px solid var(--pp-studio-accent, #34b7d5);
  outline-offset: 1px;
}
.pp-studio-site-menu__goal-navigation small { color: var(--pp-studio-muted, #c2cbd1); font-size: 0.72rem; }
.pp-studio-workspace__live-region {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .pp-studio-workspace__goals.is-attention,
  .pp-studio-workspace__goal-rail.is-attention,
  .pp-studio-goal-rail.is-attention,
  [data-workspace-goals].is-attention {
    animation: none;
    outline: 3px solid var(--pp-studio-accent, #34b7d5);
    outline-offset: 2px;
  }
}

/* Light-theme integration for Studio chrome.
   The viewport remains intentionally dark: it is the technical work surface where
   geometry, selection edges, grids, and inspection overlays need maximum contrast. */
.pa-studio-workspace-shell .pa-workspace-drawer-body,
.pa-studio-workspace-shell .pa-workspace-site-menu nav,
.pa-studio-workspace-shell .pa-workspace-goal-rail,
.pa-studio-workspace-shell .pa-workspace-summary,
.pa-studio-workspace-shell .pa-workspace-modal-card,
.pa-studio-workspace-shell .pp-studio-context-popover {
  scrollbar-width: thin;
  scrollbar-color: #78aeb6 #eaf4f6;
}
.pa-studio-workspace-shell .pa-workspace-drawer-body::-webkit-scrollbar,
.pa-studio-workspace-shell .pa-workspace-site-menu nav::-webkit-scrollbar,
.pa-studio-workspace-shell .pa-workspace-goal-rail::-webkit-scrollbar,
.pa-studio-workspace-shell .pa-workspace-summary::-webkit-scrollbar,
.pa-studio-workspace-shell .pa-workspace-modal-card::-webkit-scrollbar,
.pa-studio-workspace-shell .pp-studio-context-popover::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.pa-studio-workspace-shell .pa-workspace-drawer-body::-webkit-scrollbar-track,
.pa-studio-workspace-shell .pa-workspace-site-menu nav::-webkit-scrollbar-track,
.pa-studio-workspace-shell .pa-workspace-goal-rail::-webkit-scrollbar-track,
.pa-studio-workspace-shell .pa-workspace-summary::-webkit-scrollbar-track,
.pa-studio-workspace-shell .pa-workspace-modal-card::-webkit-scrollbar-track,
.pa-studio-workspace-shell .pp-studio-context-popover::-webkit-scrollbar-track {
  background: #eaf4f6;
}
.pa-studio-workspace-shell .pa-workspace-drawer-body::-webkit-scrollbar-thumb,
.pa-studio-workspace-shell .pa-workspace-site-menu nav::-webkit-scrollbar-thumb,
.pa-studio-workspace-shell .pa-workspace-goal-rail::-webkit-scrollbar-thumb,
.pa-studio-workspace-shell .pa-workspace-summary::-webkit-scrollbar-thumb,
.pa-studio-workspace-shell .pa-workspace-modal-card::-webkit-scrollbar-thumb,
.pa-studio-workspace-shell .pp-studio-context-popover::-webkit-scrollbar-thumb {
  border: 2px solid #eaf4f6;
  border-radius: 999px;
  background: #78aeb6;
}

.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-workspace-drawer-body,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-workspace-drawer-body,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-workspace-drawer-body {
  color-scheme: light;
  background: linear-gradient(180deg, #f8fcfd 0%, #edf7f9 100%);
  color: #13283b;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-controls,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-controls,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-controls {
  color: #13283b !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-controls :is(h2, h3, h4, h5, legend, label),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-controls :is(h2, h3, h4, h5, legend, label),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-controls :is(h2, h3, h4, h5, legend, label) {
  color: #13283b !important;
  text-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-controls :is(p, small, .form-text),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-controls :is(p, small, .form-text),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-controls :is(p, small, .form-text) {
  color: #566d7e !important;
  text-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-controls :is(label, legend, select, textarea, input:not([type="checkbox"]):not([type="radio"]), button),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-controls :is(label, legend, select, textarea, input:not([type="checkbox"]):not([type="radio"]), button),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-controls :is(label, legend, select, textarea, input:not([type="checkbox"]):not([type="radio"]), button) {
  font-size: max(0.78rem, 12.5px) !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-controls :is(select, textarea, input:not([type="checkbox"]):not([type="radio"])),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-controls :is(select, textarea, input:not([type="checkbox"]):not([type="radio"])),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-controls :is(select, textarea, input:not([type="checkbox"]):not([type="radio"])) {
  border-color: #bdd2d9 !important;
  background: #ffffff !important;
  color: #172d40 !important;
  box-shadow: 0 1px 2px rgba(11, 42, 57, 0.05);
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-controls :is(input, textarea)::placeholder,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-controls :is(input, textarea)::placeholder,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-controls :is(input, textarea)::placeholder {
  color: #6d7f8d !important;
  opacity: 1;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-controls :is(button, input, select, textarea):disabled,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-controls :is(button, input, select, textarea):disabled,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-controls :is(button, input, select, textarea):disabled {
  opacity: 0.68 !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-tabs {
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid #c9dce2;
  border-radius: 0.65rem;
  background: #e8f3f6;
  color: #193149;
}
.pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  color: #365064 !important;
  font-size: 0.78rem !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-tabs button:is(.is-active, [aria-selected="true"]) {
  border-color: #78c6cd;
  background: #ffffff;
  color: #006f7a !important;
  box-shadow: 0 5px 15px rgba(22, 92, 105, 0.1);
}
.pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-tabs button:hover {
  border-color: #a9d7dc;
  background: #f7fcfd;
  color: #006f7a !important;
}

.pa-studio-workspace-shell .pp-studio-context-popover {
  border-color: #c6dce2;
  background: linear-gradient(180deg, #ffffff 0%, #eef8fa 100%);
  color: #12263a;
  box-shadow: 0 24px 80px rgba(10, 45, 60, 0.24);
}
.pa-studio-workspace-shell .pp-studio-context-popover h2 {
  color: #102438;
}
.pa-studio-workspace-shell .pp-studio-context-popover p {
  color: #566d7e;
}
.pa-studio-workspace-shell .pp-studio-context-popover__goal,
.pa-studio-workspace-shell .pp-studio-context-popover__close {
  border-color: #bdd4db;
  background: #ffffff;
  color: #173047;
}
.pa-studio-workspace-shell .pp-studio-context-popover__goal:hover,
.pa-studio-workspace-shell .pp-studio-context-popover__goal:focus-visible,
.pa-studio-workspace-shell .pp-studio-context-popover__close:hover,
.pa-studio-workspace-shell .pp-studio-context-popover__close:focus-visible {
  border-color: #3caeba;
  background: #e9f8fa;
  color: #006f79;
}

.pa-studio-workspace-shell .pp-studio-site-menu__goal-navigation {
  border-bottom-color: #d5e3e8;
}
.pa-studio-workspace-shell .pp-studio-site-menu__goal-navigation h3 {
  color: #087b86;
  font-size: 0.78rem;
}
.pa-studio-workspace-shell .pp-studio-site-menu__goal-navigation small {
  color: #586f80;
  font-size: 0.78rem;
  line-height: 1.42;
}

/* The original dock was authored for a charcoal surface and assigns pale colors
   deep in its component tree. Reset those descendants for the light drawer while
   allowing every button to keep its own semantic foreground. */
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-dock-panel,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-dock-panel,
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-dock-panel {
  color: #294256 !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-dock-panel :is(h1, h2, h3, h4, h5, h6, strong, legend, label, dt, dd),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-dock-panel :is(h1, h2, h3, h4, h5, h6, strong, legend, label, dt, dd),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-dock-panel :is(h1, h2, h3, h4, h5, h6, strong, legend, label, dt, dd) {
  color: #152d42 !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="tools"] .pa-studio-dock-panel :is(p, small, li, span),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="diagnose"] .pa-studio-dock-panel :is(p, small, li, span),
.pa-studio-workspace-shell .pa-workspace-drawer[data-surface="setup"] .pa-studio-dock-panel :is(p, small, li, span) {
  color: #526b7d !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-panel button {
  color: #183249 !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-panel button :is(strong, span, small) {
  color: inherit !important;
}
.pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-panel :is(.pa-eyebrow, [class*="eyebrow"]) {
  color: #087f8b !important;
}

/* The guide is portalled beside the shell, so its light treatment cannot rely on
   descendant scoping. This stylesheet is loaded by Studio only. */
.pp-studio-context-popover {
  color-scheme: light;
  border-color: #c6dce2;
  background: linear-gradient(180deg, #ffffff 0%, #eef8fa 100%);
  color: #12263a;
  box-shadow: 0 24px 80px rgba(10, 45, 60, 0.24);
  scrollbar-width: thin;
  scrollbar-color: #78aeb6 #eaf4f6;
}
.pp-studio-context-popover h2 {
  color: #102438;
}
.pp-studio-context-popover p {
  color: #566d7e;
}
.pp-studio-context-popover__goal,
.pp-studio-context-popover__close {
  border-color: #bdd4db;
  background: #ffffff;
  color: #173047;
}
.pp-studio-context-popover__goal:hover,
.pp-studio-context-popover__goal:focus-visible,
.pp-studio-context-popover__close:hover,
.pp-studio-context-popover__close:focus-visible {
  border-color: #3caeba;
  background: #e9f8fa;
  color: #006f79;
}

@media (max-width: 600px) {
  .pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-tabs {
    display: flex !important;
    gap: 0.3rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }
  .pa-studio-workspace-shell .pa-workspace-drawer .pa-studio-dock-tabs button {
    flex: 0 0 5.35rem;
    min-width: 5.35rem;
    scroll-snap-align: start;
  }
  .pa-studio-workspace-shell .pp-studio-workspace__step-guide {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
  }
  .pa-studio-workspace-shell .pp-studio-workspace__step-guide::before {
    content: "?";
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border: 1px solid #67cbd2;
    border-radius: 50%;
    color: #8de8ed;
    font-size: 0.8rem;
    font-weight: 900;
  }
}

/* Mode shell v3 keeps its editing geometry. Its chrome shares the public
   Precision Workshop palette; the model stage retains its own contrast. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] {
  --ws3-ink: var(--pa-polish-ink, #0b2130);
  --ws3-muted: var(--pa-polish-copy, #4f6877);
  --ws3-line: #d1e2e8;
  --ws3-soft: var(--pa-polish-soft, #eaf7fa);
  --ws3-paper: var(--pa-polish-paper, #fbfdfe);
  --ws3-canvas: #102a30;
  --ws3-canvas-2: #102a30;
  --ws3-teal: var(--pa-polish-aqua, #55d9d0);
  --ws3-teal-dark: var(--pa-polish-teal, #087f8c);
  --ws3-navy: var(--pa-polish-ink, #0b2130);
  --ws3-chrome: linear-gradient(115deg, var(--ws3-paper) 58%, var(--ws3-soft));
  --ws3-active-ink: #075f69;
  --ws3-active-fill: #dff5f8;
  --ws3-active-line: #83b9c2;
  --ws3-control-shadow: 0 2px 8px rgba(8, 42, 55, .08);
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 60px minmax(0, 1fr) 27px !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--ws3-ink) !important;
  background: var(--ws3-paper) !important;
  color-scheme: light;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] [hidden] { display: none !important; }
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ws3-teal-dark) !important;
  outline-offset: 2px !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-studio-commandbar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 154px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ws3-line) !important;
  border-radius: 0 !important;
  background: var(--ws3-chrome) !important;
  box-shadow: inset 0 2px 0 var(--ws3-teal-dark) !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-intro { display: none !important; }
.pa-workspace-brand-button {
  width: 154px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 7px 12px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--ws3-line);
  background: transparent;
  cursor: pointer;
}
/* Fit the original transparent canvas by width; the button clips only its
   empty top/bottom margin instead of shrinking the actual lettering to 7px. */
.pa-workspace-brand-button img { display: block; width: 136px; height: auto; max-width: 100%; max-height: none; object-fit: contain; }
.pa-workspace-brand-button > span { display: none; color: var(--ws3-navy); font-weight: 900; }
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  height: 44px !important;
  min-width: 0 !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker > label[for="studioJob"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode {
  display: inline-grid !important;
  grid-template-columns: 1fr 1fr !important;
  min-width: 142px;
  padding: 3px !important;
  border: 1px solid var(--ws3-line) !important;
  border-radius: 9px !important;
  background: var(--ws3-soft) !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode button {
  min-height: 34px !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--ws3-muted) !important;
  background: transparent !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode button.is-active {
  color: var(--ws3-active-ink) !important;
  background: var(--ws3-paper) !important;
  box-shadow: var(--ws3-control-shadow) !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker > select {
  width: 100% !important;
  height: 40px !important;
  min-width: 0 !important;
  padding-right: 2.5rem !important;
  overflow: hidden !important;
  border: 1px solid var(--ws3-line) !important;
  border-radius: 8px !important;
  color: var(--ws3-ink) !important;
  background-color: var(--ws3-paper) !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-file-button {
  position: relative !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 40px !important;
  min-height: 40px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  font-size: 0 !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-file-button i { margin: 0 !important; font-size: 1rem !important; }
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] :is([data-pa-open-rescue], .pa-studio-file-status, [data-workspace-alias-owner]) { display: none !important; }
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker > small { display: none !important; }

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-top-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  min-width: max-content;
}
.pa-workspace-top-actions :is(button, a) {
  flex: 0 0 auto;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: var(--ws3-muted);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}
.pa-workspace-top-actions :is(button, a):hover { background: var(--ws3-soft); }
.pa-workspace-top-actions :is(button, a):disabled { color: #9aa8b4 !important; background: transparent !important; cursor: not-allowed; }
.pa-workspace-top-actions :is(button, a) > span {
  width: auto;
  height: auto;
  display: inline;
  margin: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
}
.pa-workspace-top-actions .pa-workspace-all-tools { border: 1px solid var(--ws3-line); background: var(--ws3-paper); }
.pa-workspace-top-actions .pa-workspace-troubleshoot {
  min-width: 116px;
  border: 1px solid #128894;
  color: #064e57;
  background: #dff8f7;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 5px 14px rgba(4,92,101,.12);
  font-weight: 900;
}
.pa-workspace-top-actions .pa-workspace-troubleshoot > i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: #087f8c;
}
.pa-workspace-top-actions .pa-workspace-troubleshoot:is(:hover,:focus-visible) {
  border-color: #075f69;
  color: #fff;
  background: #087f8c;
  box-shadow: 0 8px 20px rgba(4,92,101,.22);
}
.pa-workspace-top-actions .pa-workspace-troubleshoot:is(:hover,:focus-visible) > i { color: #064e57; background: #9ef4f6; }
.pa-workspace-top-actions .pa-workspace-troubleshoot:focus-visible { outline: 3px solid #67e5e7; outline-offset: 2px; }
.pa-workspace-top-actions .pa-workspace-primary-action { padding-inline: 13px; color: #fff; background: var(--ws3-teal-dark); }
.pa-workspace-top-actions .pa-workspace-primary-action:hover { color: #fff; background: #056b72; }

.pa-workspace-workarea {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 370px;
  overflow: hidden;
  background: var(--ws3-line);
  transition: grid-template-columns .2s ease;
}
.pa-studio-workspace-shell.is-inspector-collapsed .pa-workspace-workarea { grid-template-columns: 88px minmax(0, 1fr) 0; }
.pa-workspace-mode-rail {
  z-index: 8;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 7px;
  overflow: visible;
  border-right: 1px solid var(--ws3-line);
  background: var(--ws3-paper);
}
.pa-workspace-mode-rail button {
  position: relative;
  min-height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 7px 4px;
  border: 0;
  border-radius: 9px;
  color: #42586b;
  background: transparent;
  cursor: pointer;
  font-size: .66rem;
  font-weight: 800;
}
.pa-workspace-mode-rail button i { font-size: 1.1rem; line-height: 1; }
.pa-workspace-mode-rail button small { color: #81909e; font-size: .49rem; font-weight: 650; }
.pa-workspace-mode-rail button:hover { background: var(--ws3-soft); }
.pa-workspace-mode-rail button.is-active { color: var(--ws3-active-ink); background: var(--ws3-active-fill); box-shadow: inset 3px 0 0 var(--ws3-teal-dark); }
.pa-workspace-mode-rail button.is-active small { color: var(--ws3-teal-dark); }
.pa-workspace-mode-spacer { flex: 1; }
.pa-workspace-mode-rail .pa-workspace-mode-more { min-height: 58px; }

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-center {
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 53% 42%, rgba(8,127,117,.4), transparent 36%), linear-gradient(155deg, var(--ws3-canvas-2), var(--ws3-canvas) 63%) !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-center .pa-studio-workbench {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-center .pa-studio-viewport-column,
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-center .pa-studio-viewport-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-center :is(.pa-studio-mesh, .pa-mesh-viewer, .pa-studio-viewer) {
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

.pa-workspace-quickbar {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 16px;
  max-width: calc(100% - 28px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(170,205,210,.25);
  border-radius: 11px;
  background: rgba(3,21,31,.91);
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}
.pa-workspace-quickbar > span { padding: 0 8px; color: #75d8d7; font-size: .56rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pa-workspace-quickbar > div { display: flex; gap: 3px; }
.pa-workspace-quickbar button { height: 33px; padding: 0 10px; border: 0; border-radius: 7px; color: #dcebed; background: rgba(255,255,255,.07); cursor: pointer; font-size: .63rem; font-weight: 750; white-space: nowrap; }
.pa-workspace-quickbar button:hover, .pa-workspace-quickbar button.is-active { background: rgba(0,166,170,.26); }
.pa-workspace-quickbar .pa-workspace-quickbar-more { min-width: 38px; }
.pa-workspace-quickbar .pa-workspace-quickbar-more i { margin-right: 5px; }

.pa-workspace-statusbar {
  z-index: 10;
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  overflow: hidden;
  border-top: 1px solid var(--ws3-line);
  color: var(--ws3-muted);
  background: var(--ws3-paper);
  font-size: .56rem;
}
.pa-workspace-statusbar span { white-space: nowrap; }
.pa-workspace-statusbar [data-workspace-status] { min-width: 0; flex: 1; overflow: hidden; text-align: center; text-overflow: ellipsis; }
.pa-workspace-statusbar span:first-child i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--ws3-teal); box-shadow: 0 0 0 3px rgba(0,166,170,.12); }

.pa-workspace-inspector {
  position: relative;
  z-index: 14;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid var(--ws3-line);
  background: var(--ws3-paper);
  color: var(--ws3-ink);
  isolation: isolate;
  transition: transform .2s ease, opacity .2s ease;
}
.pa-studio-workspace-shell.is-inspector-collapsed .pa-workspace-inspector { opacity: 0; pointer-events: none; transform: translateX(100%); }
.pa-workspace-inspector > header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px 15px;
  border-bottom: 1px solid var(--ws3-line);
  background: var(--ws3-chrome);
}
.pa-workspace-inspector > header > div { min-width: 0; }
.pa-workspace-inspector > header span { color: var(--ws3-teal-dark); font-size: .56rem; font-weight: 850; letter-spacing: .12em; }
.pa-studio-workspace-shell .pa-workspace-inspector > header [data-workspace-inspector-title] {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--ws3-ink) !important;
  font-size: .98rem;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  text-shadow: none !important;
  white-space: nowrap;
}
.pa-workspace-inspector > header button,
.pa-workspace-site-menu > header button,
.pa-workspace-command-palette > header button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 0;
  border-radius: 9px;
  color: var(--ws3-muted);
  background: var(--ws3-soft);
  cursor: pointer;
  touch-action: manipulation;
  font-size: 1.18rem;
  line-height: 1;
}
.pa-workspace-inspector > nav {
  display: flex;
  gap: 4px;
  padding: 7px 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ws3-line);
  background: var(--ws3-soft);
  scrollbar-width: thin;
}
.pa-workspace-inspector > nav button {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ws3-muted);
  background: transparent;
  cursor: pointer;
  font-size: .64rem;
  font-weight: 800;
  white-space: nowrap;
}
.pa-workspace-inspector > nav button:hover,
.pa-workspace-inspector > nav button.is-active { border-color: var(--ws3-active-line); color: var(--ws3-active-ink); background: var(--ws3-paper); }
.pa-workspace-inspector-body {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #9eb5c0 transparent;
}
.pa-workspace-inspector-body > .pa-studio-controls {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ws3-ink) !important;
  box-shadow: none !important;
}
.pa-workspace-inspector-body .pa-studio-dock-tabs { display: none !important; }
.pa-workspace-inspector-body .pa-studio-dock-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ws3-paper) !important;
  color: var(--ws3-ink) !important;
  box-shadow: none !important;
}
.pa-workspace-inspector-body .pa-studio-dock-panel > * {
  min-width: 0;
  max-width: 100%;
}
.pa-workspace-inspector-body .pa-studio-profile-guidance {
  grid-template-columns: auto minmax(0, 1fr) !important;
}
.pa-workspace-inspector-body .pa-studio-profile-guidance > span {
  min-width: 0;
}
.pa-workspace-inspector-body .pa-studio-profile-guidance .btn {
  grid-column: 1 / -1;
  width: 100%;
  white-space: normal;
}
.pa-workspace-inspector-body .pa-studio-dock-panel[hidden] { display: none !important; }
.pa-workspace-inspector-body .pa-studio-dock-panel :is(h1,h2,h3,h4,strong,legend,label,dt,dd) { color: var(--ws3-ink) !important; text-shadow: none !important; }
.pa-workspace-inspector-body .pa-studio-dock-panel :is(p,small,li) { color: var(--ws3-muted) !important; text-shadow: none !important; line-height: 1.48 !important; }
.pa-workspace-inspector-body .pa-studio-dock-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  color: var(--ws3-ink) !important;
  background: #fff !important;
  border-color: #b9cbd3 !important;
}
.pa-workspace-inspector-body .pa-studio-dock-panel :is(button,.btn) { min-height: 40px; }
.pa-workspace-inspector-body .pa-studio-findings button {
  border-color: var(--ws3-line) !important;
  color: var(--ws3-ink) !important;
  background: var(--ws3-soft) !important;
}
.pa-workspace-inspector-body .pa-studio-findings button:hover,
.pa-workspace-inspector-body .pa-studio-findings button.is-focused {
  border-color: var(--ws3-active-line) !important;
  background: var(--ws3-active-fill) !important;
}
.pa-workspace-inspector-body .pa-studio-findings button span > b { color: #076a73 !important; }
.pa-workspace-inspector-body .pa-studio-findings button :is(strong,small) { text-shadow: none !important; }
.pa-workspace-inspector-body .pa-studio-dock-panel :is(.pa-studio-triple,.pa-studio-outcome-fields,.pa-studio-preset-grid,.pa-studio-model-action-grid,.pa-studio-guarded-action-grid,.pa-studio-plane-cut-controls) { grid-template-columns: minmax(0,1fr) !important; }

.pa-workspace-inspector-body > .pa-studio-goal-guide {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.pa-workspace-inspector-body .pa-studio-goal-guide > header h2 { margin-top: .25rem !important; color: var(--ws3-ink) !important; font-size: 1rem !important; }
.pa-workspace-inspector-body .pa-studio-goal-guide > header p { color: var(--ws3-muted) !important; font-size: .72rem !important; }
.pa-workspace-inspector-body .pa-studio-goal-grid { grid-template-columns: minmax(0,1fr) !important; gap: 7px !important; }
.pa-workspace-inspector-body .pa-studio-goal-grid button { min-height: 52px !important; padding: 8px 9px !important; color: var(--ws3-ink) !important; background: #fff !important; border-color: var(--ws3-line) !important; }
.pa-workspace-inspector-body .pa-studio-make-it-work { padding: 10px !important; color: var(--ws3-ink) !important; background: #effafa !important; border-color: #a6dadd !important; }
.pa-workspace-inspector-body .pa-studio-make-it-work :is(h3,strong,p,small,dt,dd) { color: inherit !important; text-shadow: none !important; }

.pa-workspace-inspector-body > .pa-studio-detailed-report {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.pa-workspace-inspector-body > .pa-studio-detailed-report > summary { display: none !important; }
.pa-workspace-inspector-body .pa-studio-detailed-report-body { display: block !important; min-width: 0 !important; }
.pa-workspace-inspector-body .pa-studio-detailed-report-body > * { min-width: 0 !important; margin-inline: 0 !important; }
.pa-workspace-inspector-body :is(.pa-studio-results,.pa-studio-impact-grid,.pa-studio-optimizer-grid,.pa-studio-workflow-grid,.pa-studio-compare-grid) { grid-template-columns: minmax(0,1fr) !important; }
.pa-workspace-inspector-body :is(.pa-studio-ai-advisor,.pa-studio-handoff,.pa-studio-actions,.pa-studio-scenario-shelf) { grid-template-columns: minmax(0,1fr) !important; }
.pa-workspace-inspector-body :is(.pa-studio-ai-advisor,.pa-studio-handoff,.pa-studio-actions,.pa-studio-scenario-shelf) > * { min-width: 0; max-width: 100%; }
.pa-workspace-inspector-body .pa-studio-section-title { align-items: stretch !important; flex-direction: column !important; }
.pa-workspace-inspector-body .pa-studio-section-title > :is(button,.btn) { width: 100%; }
.pa-workspace-inspector-body .pa-studio-detailed-report-body h2 {
  font-size: max(1rem, 16px) !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
}
.pa-workspace-inspector-body .pa-studio-detailed-report-body :is(h3,h4) {
  font-size: max(.88rem, 14px) !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}
.pa-workspace-inspector-body .pa-studio-ai-advisor .pa-studio-truth-note {
  max-width: 100% !important;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal !important;
}

/* Quick Start mounts real owners without invoking their commands. Its
   temporary phone inspector is nonmodal so the tour keeps keyboard focus. */
.pa-studio-workspace-shell[data-workspace-tour-active="true"] .pa-workspace-inspector {
  transition: none !important;
}

.pa-studio-workspace-shell > .pa-studio-tour-ai {
  display: none !important;
}

.pa-workspace-inspector-body > .pa-studio-tour-ai {
  display: block !important;
  min-width: 0;
  width: 100%;
}

.pa-workspace-inspector-body [data-pa-tour-ai-unavailable] {
  padding: 1rem;
  color: var(--ws3-ink);
  background: var(--ws3-soft);
  border: 1px solid var(--ws3-line);
  border-radius: .5rem;
  font-size: .85rem;
  line-height: 1.5;
}
.pa-workspace-inspector-body .pa-studio-compare-grid > i { transform: rotate(90deg); }
.pa-workspace-inspector-body > .pa-studio-product-rail { display: grid !important; grid-template-columns: minmax(0,1fr) !important; margin: 0 !important; }
.pa-workspace-inspector-body > .pa-studio-product-rail {
  border-color: #d2e0e6 !important;
  background: #d2e0e6 !important;
}
.pa-workspace-inspector-body > .pa-studio-product-rail > :is(div,a) { background: #f8fbfc !important; }
.pa-workspace-inspector-body > .pa-studio-product-rail a { color: #173047 !important; }
.pa-workspace-inspector-body > .pa-studio-product-rail a span { color: #173047 !important; }
.pa-workspace-inspector-body > .pa-studio-product-rail a small { color: #526b7d !important; }
.pa-workspace-inspector-body > .pa-studio-product-rail a :is(i,svg) { color: #087f8c !important; }
.pa-workspace-inspector-body > .pa-studio-product-rail a:is(:hover,:focus-visible) { background: #edf7f8 !important; }
.pa-workspace-session-context { display: grid; gap: 10px; }
.pa-workspace-session-context > * { display: flex !important; margin: 0 !important; }
.pa-workspace-surface-stash { display: none !important; }

.pa-workspace-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3000 !important;
  background: rgba(2,15,26,.58) !important;
  backdrop-filter: blur(3px) !important;
}
.pa-studio-workspace-shell:has(> .pa-workspace-command-palette.is-open) {
  z-index: 4000 !important;
}
.pa-workspace-site-menu {
  position: fixed !important;
  z-index: 3002 !important;
  inset: 0 auto 0 0 !important;
  width: min(420px, calc(100vw - 18px)) !important;
  height: 100dvh !important;
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: var(--ws3-paper) !important;
  color: var(--ws3-ink) !important;
  box-shadow: 24px 0 70px rgba(4,25,43,.28) !important;
  transform: translateX(-104%) !important;
  visibility: hidden !important;
  transition: transform .22s ease, visibility 0s linear .22s !important;
}
.pa-workspace-site-menu.is-open { transform: none !important; visibility: visible !important; transition-delay: 0s !important; }
.pa-workspace-site-menu > header {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 17px !important;
  border-bottom: 1px solid var(--ws3-line) !important;
  background: var(--ws3-chrome) !important;
}
.pa-workspace-site-menu > header h2 { margin: 2px 0 0 !important; color: var(--ws3-ink) !important; font-size: 1.05rem !important; }
.pa-workspace-site-menu > header small { color: var(--ws3-teal-dark) !important; font-size: .56rem !important; font-weight: 850 !important; letter-spacing: .12em !important; }
.pa-workspace-site-menu > header button { margin-left: auto !important; }
.pa-workspace-site-menu__body { min-height: 0 !important; display: grid !important; grid-template-rows: auto auto !important; align-content: start !important; padding: 10px !important; overflow-y: auto !important; }
.pa-workspace-site-menu__body > nav { display: grid !important; gap: 3px !important; height: auto !important; padding: 8px 0 !important; overflow: visible !important; }
.pa-workspace-site-menu__body > nav + nav { margin-top: 6px; border-top: 1px solid var(--ws3-line); }
.pa-workspace-site-menu__body h3 { margin: 0 8px 6px !important; color: var(--ws3-teal-dark) !important; font-size: .63rem !important; font-weight: 850 !important; letter-spacing: .08em !important; text-transform: uppercase !important; }
.pa-workspace-site-menu__body a { min-height: 42px !important; display: grid !important; align-content: center !important; gap: 2px !important; padding: 7px 9px !important; border: 1px solid transparent !important; border-radius: 8px !important; color: var(--ws3-ink) !important; text-decoration: none !important; font-size: .75rem !important; font-weight: 760 !important; }
.pa-workspace-site-menu__body a small { color: var(--ws3-muted) !important; font-size: .6rem !important; font-weight: 600 !important; }
.pa-workspace-site-menu__body a:hover, .pa-workspace-site-menu__body a[aria-current=page] { border-color: var(--ws3-active-line) !important; color: var(--ws3-active-ink) !important; background: var(--ws3-soft) !important; }
.pa-workspace-site-menu__body a.is-primary { color: #fff !important; background: var(--ws3-teal-dark) !important; }

.pa-workspace-command-palette {
  position: fixed;
  z-index: 3003;
  top: 10vh;
  left: 50%;
  width: min(660px, calc(100vw - 34px));
  max-height: 80dvh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0,1fr) auto;
  overflow: hidden;
  border: 1px solid #aebbc4;
  border-radius: 14px;
  background: #fff;
  color: var(--ws3-ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  opacity: 0;
  isolation: isolate;
  transform: translate(-50%, -8px);
  transition: none;
}
.pa-workspace-command-palette.is-open { opacity: 1; transform: translate(-50%, 0); }
.pa-workspace-command-palette > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 11px 7px 17px;
}
.pa-workspace-command-palette > header > div { min-width: 0; }
.pa-workspace-command-palette > header span { color: var(--ws3-teal-dark); font-size: .54rem; font-weight: 850; letter-spacing: .12em; }
.pa-workspace-command-palette > header h2 { margin: 2px 0 0; color: var(--ws3-ink); font-size: 1.08rem; }
.pa-workspace-command-palette > header small { display: block; margin-top: 2px; color: var(--ws3-muted); font-size: .57rem; }
.pa-workspace-command-search {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 15px 10px;
  padding: 0 10px;
  border: 1px solid #b9c9d1;
  border-radius: 9px;
  background: #f9fbfc;
}
.pa-workspace-command-search input { min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; color: var(--ws3-ink); background: transparent; font-size: .75rem; }
.pa-workspace-command-search-result {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 12px;
  margin: 0 15px 10px;
  padding: 9px 12px;
  border: 1px solid #70e8e2;
  border-left: 5px solid #70e8e2;
  border-radius: 9px;
  background: #041823;
  color: #f7fdff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.pa-workspace-command-search-result[hidden] { display: none; }
.pa-workspace-command-search-result strong { color: #fff; font-size: .76rem; }
.pa-workspace-command-search-result span { color: #9df7f2; font-size: .68rem; font-weight: 800; text-align: right; }
.pa-workspace-command-search-result small { grid-column: 1 / -1; color: #d7f6f5; font-size: .64rem; line-height: 1.3; }
.pa-workspace-command-search kbd { padding: 2px 5px; border: 1px solid var(--ws3-line); border-radius: 4px; color: var(--ws3-muted); background: #fff; font-size: .52rem; }
.pa-workspace-command-list { min-height: 0; overflow-y: auto; border-top: 1px solid var(--ws3-line); scrollbar-width: thin; }
.pa-workspace-command-group { padding: 10px 14px 6px; }
.pa-workspace-command-group + .pa-workspace-command-group { border-top: 1px solid #edf1f3; }
.pa-workspace-command-group h3 { margin: 0 0 4px; color: var(--ws3-muted); font-size: .55rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.pa-workspace-command-item {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 29px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  color: var(--ws3-ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.pa-workspace-command-item:hover { background: #edf4f6; }
.pa-workspace-command-item > * { pointer-events: none; }
.pa-workspace-command-item > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: var(--ws3-navy); background: #e3f1f2; }
.pa-workspace-command-item > span { min-width: 0; display: grid; gap: 2px; }
.pa-workspace-command-item strong { overflow: hidden; color: var(--ws3-ink); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.pa-workspace-command-item small { overflow: hidden; color: var(--ws3-muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.pa-workspace-command-item b { color: var(--ws3-teal-dark); font-size: .54rem; font-weight: 850; text-transform: capitalize; }
.pa-workspace-command-item[aria-disabled="true"] { cursor: help; }
.pa-workspace-command-item[aria-disabled="true"]:hover { background: #fff5ee; }
.pa-workspace-command-item[aria-disabled="true"] > i { color: #8a451c; background: #fff0e4; }
.pa-workspace-command-empty { margin: 0; padding: 24px; color: var(--ws3-muted); text-align: center; font-size: .72rem; }
.pa-workspace-command-feedback {
  position: fixed;
  z-index: 2147483400;
  left: 50%;
  bottom: max(58px, calc(env(safe-area-inset-bottom) + 16px));
  width: min(620px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(117,216,215,.48);
  border-radius: 9px;
  color: #f2fbfc;
  background: rgba(3,21,31,.96);
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.4;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
}
.pa-workspace-command-feedback[hidden] { display: none; }
.pa-workspace-command-feedback.is-pulsing { animation: pa-workspace-feedback-pulse .22s ease-out; }
@keyframes pa-workspace-feedback-pulse {
  from { opacity: .62; transform: translateX(-50%) translateY(5px) scale(.99); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pa-workspace-command-feedback.is-pulsing { animation: none; }
}

/* Keep one current-access signal in the workspace instead of repeating the
   minimum plan underneath every compact physical tool. */
.pa-studio-workspace-shell .pa-studio-access-badge { display: none !important; }
.pa-studio-workspace-shell .pa-studio-file-button > i {
  display: grid;
  place-items: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  border-radius: .42rem;
  color: #fff;
  font-size: 1.2rem;
  -webkit-text-stroke: .25px currentColor;
}

.pa-workspace-help-wrap { position: relative; display: flex; align-items: stretch; }
.pa-studio-workspace-shell .pa-studio-commandbar[data-workspace-help-open="true"] {
  overflow: visible !important;
}
.pa-workspace-help .bi-chevron-down { font-size: .62rem; transition: transform .18s ease; }
.pa-workspace-help[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.pa-workspace-help-menu {
  position: absolute;
  z-index: 3100;
  top: calc(100% + .55rem);
  right: 0;
  display: grid;
  width: min(22rem, calc(100vw - 2rem));
  padding: .48rem;
  border: 1px solid #c6d9df;
  border-radius: .72rem;
  background: #fff;
  box-shadow: 0 22px 60px rgba(3, 24, 38, .24);
}
.pa-workspace-help-menu[hidden] { display: none !important; }
.pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch) {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: .48rem .55rem;
  border: 1px solid transparent;
  border-radius: .48rem;
  color: #17324b;
  text-decoration: none;
  text-align: left;
}

/* Keep the active disclosure level visible in the model stage. Switching
   Guided/Expert must read as a center-workspace change, not only as a tiny
   top-bar toggle. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-stage-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(470px, calc(100vw - 32px));
  margin-top: 7px;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-detail-level-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 216px;
  min-height: 42px;
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid rgba(115, 228, 230, .34);
  border-radius: 8px;
  background: #03131b;
  color: #f4fbff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workspace-context-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 216px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(113, 206, 255, .42);
  border-radius: 8px;
  background: #0a2237;
  color: #f4fbff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workspace-context-state > i {
  color: #71ceff;
  font-size: 1rem;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workspace-context-state > span {
  display: grid;
  gap: 1px;
  color: #f4fbff;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workspace-context-state strong {
  color: #f4fbff;
  font-size: .7rem;
  line-height: 1.2;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workspace-context-state small {
  color: #c9dce4;
  font-size: .62rem;
  line-height: 1.25;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-detail-level-state > i {
  color: #73e4e6;
  font-size: 1rem;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-detail-level-state > span {
  display: grid;
  gap: 1px;
  color: #f4fbff;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-detail-level-state strong {
  color: #f4fbff;
  font-size: .7rem;
  line-height: 1.2;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-detail-level-state small {
  color: #c9dce4;
  font-size: .62rem;
  line-height: 1.25;
}
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-detail-level-state[data-detail-level="expert"] {
  border-color: rgba(113, 206, 255, .5);
  background: #0a2237;
}
.pa-workspace-help-menu .pa-workspace-tutorial-launch {
  width: 100%;
  border-color: #7dc7cc;
  background: linear-gradient(135deg, #e5f8f8, #fff);
  box-shadow: 0 7px 20px rgba(2, 111, 119, .1);
  cursor: pointer;
}
.pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch):hover,
.pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch):focus-visible { border-color: #2a9ba3; background: #e7f7f7; outline: 0; }
.pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch) > i { color: #087f8c; font-size: 1.05rem; text-align: center; }
.pa-workspace-top-actions .pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch) > span {
  display: grid !important;
  min-width: 0;
}
.pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch) strong { font-size: .75rem; }
.pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch) small { color: #607584; font-size: .62rem; }
.pa-workspace-help-menu a.is-bible { margin-top: .25rem; border-top-color: #d5e3e7; background: #f4fbfb; }
.pa-workspace-help-menu .pa-workspace-help-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  margin: .25rem .48rem .48rem;
  border: 1px solid #afdadd;
  border-radius: .5rem;
  background: #f1fbfb;
  color: #006d75;
  font-size: .7rem;
  font-weight: 850;
}
.pa-workspace-help-menu .pa-workspace-help-close:hover,
.pa-workspace-help-menu .pa-workspace-help-close:focus-visible { border-color: #4cb8c0; background: #e1f6f6; }
.pa-workspace-top-actions .pa-workspace-help-menu .pa-workspace-help-close > span { display: inline !important; }

.pa-workspace-command-item[data-workspace-availability="prerequisite"] > i { color: #087f8c; background: #e3f4f4; }
.pa-workspace-command-item[data-workspace-availability="plan-locked"] > i { color: #765421; background: #fff2dc; }
.pa-workspace-command-item[data-workspace-availability="context-unavailable"] { opacity: .72; }
.pa-workspace-command-item[data-workspace-availability="context-unavailable"] > i { color: #657786; background: #eef2f4; }

/* Vertical layer scrubbers live inside the real geometry/toolpath canvases.
   Minimum is the bed at the bottom; the highest inspected layer is at top. */
.pa-studio-layer-canvas,
.pa-studio-gcode-canvas-wrap { --pa-layer-scrubber-width: 4.35rem; position: relative; }
.pa-studio-gcode-canvas-wrap.is-new-toolpath-preview {
  border-color: #25c9c3;
  box-shadow: 0 0 0 3px rgba(37, 201, 195, .22), 0 16px 34px rgba(8, 52, 63, .2);
}
.pa-studio-gcode-empty.is-generating i {
  animation: pa-studio-toolpath-working 1.1s linear infinite;
}
@keyframes pa-studio-toolpath-working { to { transform: rotate(360deg); } }
.pa-studio-layer-canvas > svg,
.pa-studio-gcode-canvas-wrap > canvas { box-sizing: border-box; padding-right: var(--pa-layer-scrubber-width); }
.pa-studio-vertical-layer-scrubber {
  position: absolute !important;
  z-index: 4;
  inset: .65rem .55rem .65rem auto;
  display: grid !important;
  grid-template: auto auto minmax(7rem, 1fr) auto / 1fr 1fr !important;
  place-items: center;
  width: 3.55rem !important;
  margin: 0 !important;
  padding: .5rem .35rem !important;
  border: 1px solid rgba(120, 238, 230, .42);
  border-radius: .7rem;
  background: rgba(3, 20, 29, .92);
  color: #d7ebef;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}
.pa-studio-vertical-layer-scrubber[hidden] { display: none !important; }
.pa-studio-vertical-layer-scrubber > output,
.pa-studio-vertical-layer-scrubber > input { grid-column: 1 / -1 !important; }
.pa-studio-vertical-layer-scrubber > output { color: #78eee6; font-size: .62rem; font-weight: 850; text-align: center; }
.pa-studio-vertical-layer-scrubber input[type="range"] {
  width: 2rem !important;
  height: 100% !important;
  min-height: 7rem;
  padding: 0 !important;
  writing-mode: vertical-lr;
  direction: rtl;
  accent-color: #25c9c3;
  cursor: ns-resize;
  touch-action: none;
}
.pa-studio-vertical-layer-scrubber small { color: #9fb8c3; font-size: .52rem; }
.pa-studio-vertical-layer-scrubber .pa-studio-scrubber-top { grid-column: 1; }
.pa-studio-vertical-layer-scrubber .pa-studio-scrubber-bed { grid-column: 2; }

@media (max-width: 720px) {
  .pa-studio-layer-canvas,
  .pa-studio-gcode-canvas-wrap { --pa-layer-scrubber-width: 3.8rem; }
  .pa-studio-vertical-layer-scrubber { inset: .4rem .35rem .4rem auto; width: 3.15rem !important; }
  .pa-workspace-help-menu { position: fixed; top: 4.2rem; right: .6rem; left: .6rem; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pa-workspace-help .bi-chevron-down,
  .pa-studio-gcode-empty.is-generating i,
  .pa-studio-vertical-layer-scrubber,
  .pa-studio-vertical-layer-scrubber * { animation: none !important; transition: none !important; }
}

@media (max-width: 1380px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-studio-commandbar { grid-template-columns: 58px minmax(0,1fr) auto !important; }
  .pa-workspace-brand-button { width: 48px; padding: 0; border-right: 0; }
  .pa-workspace-brand-button img { display: none; }
  .pa-workspace-brand-button > span { display: block; }
  .pa-workspace-top-actions :is(button,a) > span { display: inline; }
  .pa-workspace-top-actions .pa-workspace-all-tools > span,
  .pa-workspace-top-actions .pa-workspace-primary-action > span { display: inline; }
}

@media (max-width: 1100px) {
  .pa-workspace-workarea { grid-template-columns: 56px minmax(0,1fr); }
  .pa-studio-workspace-shell.is-inspector-collapsed .pa-workspace-workarea { grid-template-columns: 56px minmax(0,1fr); }
  .pa-workspace-mode-rail { padding-inline: 5px; }
  /* The compact inspector is a sheet, but the mode rail is intentionally not
     inert so users can switch workflows without first closing that sheet. Keep
     the rail above the sheet backdrop only while this inspector is open. */
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]:has(.pa-workspace-inspector.is-open) .pa-workspace-mode-rail {
    z-index: 3003;
  }
  .pa-workspace-mode-rail button { min-height: 52px; }
  .pa-workspace-mode-rail button > span,
  .pa-workspace-mode-rail button > small { display: none; }
  .pa-workspace-mode-rail button::after {
    content: attr(data-workspace-mode);
    position: absolute;
    z-index: 30;
    left: calc(100% + 9px);
    top: 50%;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px;
    color: #fff;
    background: #102b3d;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
    opacity: 0;
    pointer-events: none;
    transform: translate(-4px,-50%);
    transition: opacity .15s ease, transform .15s ease;
    font-size: .61rem;
    text-transform: capitalize;
    white-space: nowrap;
  }
  .pa-workspace-mode-rail button:hover::after,
  .pa-workspace-mode-rail button:focus-visible::after { opacity: 1; transform: translate(0,-50%); }
  .pa-workspace-mode-rail button.pa-studio-tutorial-target[data-workspace-mode]::after {
    content: "CLICK\A" attr(data-workspace-mode);
    left: 50%;
    top: 50%;
    width: calc(100% - 6px);
    padding: 5px 2px;
    border-color: #5cf3ed;
    color: #fff;
    background: #063f4a;
    opacity: 1;
    transform: translate(-50%,-50%);
    font-size: .48rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: .04em;
    text-align: center;
    white-space: pre-line;
  }
  .pa-workspace-mode-rail button.pa-studio-tutorial-target[data-workspace-mode] > i {
    opacity: 0;
  }
  .pa-workspace-inspector {
    position: absolute;
    z-index: 3002;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, calc(100vw - 56px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: -16px 0 38px rgba(0,0,0,.2);
    transform: translateX(102%);
    transition: none;
  }
  .pa-workspace-inspector.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .pa-workspace-mode-rail .pa-workspace-mode-more::after { content: "All Tools"; }
}

@media (max-width: 820px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-studio-commandbar { grid-template-columns: 46px 44px auto !important; gap: 5px !important; padding-inline: 6px !important; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker { grid-template-columns: minmax(118px,auto) minmax(90px,1fr) 42px !important; gap: 4px !important; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode { min-width: 118px; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode button { padding-inline: 6px !important; font-size: .63rem !important; }
  .pa-workspace-top-actions [data-workspace-proxy="undo"],
  .pa-workspace-top-actions [data-workspace-proxy="redo"],
  .pa-workspace-top-actions .pa-workspace-primary-action { display: none !important; }
  .pa-workspace-top-actions .pa-workspace-help {
    display: inline-flex !important;
    width: 44px;
    min-width: 44px;
    padding-inline: 0 !important;
  }
  .pa-workspace-top-actions .pa-workspace-help > :is(span, .bi-chevron-down) { display: none !important; }
}

@media (max-width: 700px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-stage-state-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: calc(100vw - 32px);
  }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] :is(
    .pa-studio-detail-level-state,
    .pa-studio-workspace-context-state
  ) {
    width: 100%;
    min-width: 0;
    padding-inline: 7px;
  }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] :is(
    .pa-studio-detail-level-state,
    .pa-studio-workspace-context-state
  ) small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] { grid-template-rows: 54px minmax(0,1fr) 64px !important; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-studio-commandbar { height: 54px !important; min-height: 54px !important; grid-template-columns: 40px 44px auto !important; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker { grid-template-columns: minmax(108px,1fr) 40px !important; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker > select { display: none !important; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode { min-width: 108px; }
  .pa-workspace-top-actions [data-workspace-proxy="save"] { display: inline-flex !important; }
  .pa-workspace-top-actions .pa-workspace-all-tools { min-width: 58px; width: auto; padding-inline: 7px; }
  .pa-workspace-top-actions .pa-workspace-all-tools > span,
  .pa-workspace-top-actions [data-workspace-proxy="save"] > span { display: inline; }
  .pa-workspace-workarea { display: block; }
  .pa-workspace-mode-rail {
    position: fixed;
    z-index: 2025;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    padding: 0;
    border: 0;
    border-top: 1px solid var(--ws3-line);
    background: rgba(255,255,255,.98);
  }
  .pa-workspace-mode-rail button { min-height: 64px; border-radius: 0; gap: 3px; }
  .pa-workspace-mode-rail button > span { display: block; font-size: .57rem; }
  .pa-workspace-mode-rail button > small,
  .pa-workspace-mode-rail button::after,
  .pa-workspace-mode-spacer,
  .pa-workspace-mode-rail .pa-workspace-mode-more { display: none; }
  .pa-workspace-mode-rail button.is-active { box-shadow: inset 0 3px 0 var(--ws3-teal); }
  .pa-workspace-center { height: 100% !important; }
  .pa-workspace-statusbar { display: none; }
  .pa-workspace-quickbar { bottom: 14px; max-width: calc(100% - 16px); }
  .pa-workspace-quickbar > span { display: none; }
  .pa-workspace-quickbar button { padding-inline: 8px; }
  .pa-workspace-quickbar > div > button:nth-child(4):not(.pa-workspace-quickbar-more) { display: none; }
  .pa-workspace-quickbar .pa-workspace-quickbar-more span { display: none; }
  .pa-workspace-top-actions .pa-workspace-troubleshoot {
    position: fixed;
    z-index: 2988;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(140px + env(safe-area-inset-bottom));
    min-width: 138px;
    height: 48px;
    padding-inline: 11px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(4,61,70,.26), 0 0 0 3px rgba(100,220,212,.2);
  }
  .pa-workspace-inspector {
    position: absolute;
    z-index: 3002;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(78%, 680px);
    border: 0;
    border-top: 1px solid var(--ws3-line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 40px rgba(0,0,0,.26);
    transform: translateY(102%);
  }
  .pa-workspace-inspector.is-open { transform: none; }
  .pa-workspace-inspector::before { content: ""; position: absolute; z-index: 3; top: 6px; left: 50%; width: 34px; height: 4px; border-radius: 3px; background: #c5d0d6; transform: translateX(-50%); }
  .pa-workspace-inspector > header { min-height: 64px; padding-top: 14px; }
  .pa-workspace-command-palette { top: auto; bottom: 0; width: 100%; max-height: 88dvh; border-radius: 16px 16px 0 0; transform: translate(-50%, 12px); }
  .pa-workspace-command-palette.is-open { transform: translate(-50%,0); }
  .pa-workspace-site-menu { width: 100% !important; }
}

@media (max-width: 440px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-studio-commandbar { grid-template-columns: 38px 44px auto !important; gap: 4px !important; padding-inline: 4px !important; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode { min-width: 102px; }
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode button { padding-inline: 4px !important; font-size: .58rem !important; }
  .pa-workspace-top-actions [data-workspace-proxy="save"] { width: auto; min-width: 58px; padding-inline: 7px; }
  .pa-workspace-command-item small { max-width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] *,
  .pa-workspace-site-menu,
  .pa-workspace-command-palette { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Central workflow surface: only the 3D viewport remains dark.
   Prepare, Findings, Rescue, Setup, and Review flow below it as one light,
   user-scrollable workspace instead of inheriting the viewport canvas. */
.pa-studio-workspace-shell .pa-workspace-center {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #eaf4f7 0%, #f6fbfc 100%) !important;
  scrollbar-width: thin;
  scrollbar-color: #78aeb6 #eaf4f6;
}
.pa-studio-workspace-shell .pa-workspace-center::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.pa-studio-workspace-shell .pa-workspace-center::-webkit-scrollbar-track {
  background: #eaf4f6;
}
.pa-studio-workspace-shell .pa-workspace-center::-webkit-scrollbar-thumb {
  border: 2px solid #eaf4f6;
  border-radius: 999px;
  background: #78aeb6;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-workbench {
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
  padding-bottom: 0.35rem;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-viewport-column {
  height: auto !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-controls {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0.8rem 0 0 !important;
  padding: 0.9rem !important;
  overflow: visible !important;
  color-scheme: light;
  border: 1px solid #c5d9df !important;
  border-radius: 0.8rem !important;
  background: linear-gradient(180deg, #f8fcfd 0%, #edf7f9 100%) !important;
  color: #193149 !important;
  box-shadow: 0 18px 44px rgba(14, 58, 70, 0.14) !important;
}

.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-tabs {
  position: sticky !important;
  z-index: 8;
  top: 0 !important;
  gap: 0.3rem;
  padding: 0.28rem;
  border: 1px solid #c5d9df;
  border-radius: 0.65rem;
  background: rgba(232, 244, 247, 0.96) !important;
  color: #294357 !important;
  box-shadow: 0 8px 22px rgba(17, 66, 78, 0.12);
  backdrop-filter: blur(12px);
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-tabs button {
  min-height: 44px;
  border: 1px solid transparent !important;
  border-radius: 0.45rem !important;
  background: transparent !important;
  color: #365164 !important;
  font-size: max(0.78rem, 12.5px) !important;
  text-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-tabs button:is(.is-active, [aria-selected="true"]) {
  border-color: #72c1c9 !important;
  background: #ffffff !important;
  color: #006f7a !important;
  box-shadow: 0 5px 16px rgba(20, 93, 106, 0.12);
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-tabs button:is(:hover, :focus-visible) {
  border-color: #9fd3d8 !important;
  background: #f7fcfd !important;
  color: #006f7a !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-tabs button * {
  color: inherit !important;
}

.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel {
  width: 100%;
  min-width: 0;
  padding: 1rem !important;
  border: 1px solid #d0e0e5;
  border-radius: 0.72rem;
  background: #ffffff !important;
  color: #193149 !important;
  box-shadow: 0 8px 24px rgba(21, 67, 79, 0.08);
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(h1, h2, h3, h4, h5, h6, strong, legend, label, dt, dd) {
  color: #152d42 !important;
  text-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(p, small, li) {
  color: #526b7d !important;
  text-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel p {
  font-size: max(0.8rem, 13px) !important;
  line-height: 1.55 !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel small {
  font-size: max(0.75rem, 12px) !important;
  line-height: 1.45 !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(label, legend, dt, dd) {
  font-size: max(0.76rem, 12.2px) !important;
  line-height: 1.4 !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel > :is(p, small) {
  max-width: 76ch;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel span {
  color: #405b6e !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel button {
  color: #183249 !important;
  font-size: max(0.78rem, 12.5px) !important;
  text-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel button :is(span, strong, small) {
  color: inherit !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(.btn-primary, .pa-btn--primary) {
  color: #ffffff !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(.pa-eyebrow, [class*="eyebrow"]),
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-control-head > span:first-child,
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-model-actions > span:first-child,
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-multi-layout > span:first-child,
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-auto-orient > span:first-child,
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-slice-readiness > span:first-child {
  color: #087f8b !important;
  font-size: max(0.73rem, 11.8px) !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"])) {
  min-height: 42px;
  border-color: #b7ced6 !important;
  background: #ffffff !important;
  color: #172f45 !important;
  font-size: max(0.8rem, 13px) !important;
  box-shadow: 0 1px 3px rgba(12, 45, 58, 0.06);
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(input, textarea)::placeholder {
  color: #6d808e !important;
  opacity: 1;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(input[type="checkbox"], input[type="radio"]) {
  border-color: #91afb9 !important;
  background-color: #ffffff !important;
  accent-color: #078f99;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel input[type="range"] {
  accent-color: #078f99;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(button, input, select, textarea):disabled {
  border-color: #c7d4da !important;
  background-color: #e7eef2 !important;
  color: #5f7280 !important;
  opacity: 0.76 !important;
  box-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel button:disabled * {
  color: inherit !important;
}

.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(
  .pa-studio-model-actions,
  .pa-studio-multi-layout,
  .pa-studio-auto-orient,
  .pa-studio-slice-readiness,
  .pa-studio-findings,
  .pa-studio-rescue-truth,
  .pa-studio-rescue-symptoms,
  .pa-studio-profile-guidance,
  .pa-studio-dock-metrics,
  .pa-studio-dock-candidates,
  .pa-studio-dock-downloads
) {
  border: 1px solid #d1e1e5 !important;
  border-radius: 0.65rem !important;
  background: #f5fafb !important;
  color: #193149 !important;
  box-shadow: none !important;
}
.pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel :is(
  .pa-studio-range,
  .pa-studio-unit-fixes,
  .pa-studio-target-size,
  .pa-studio-prep-rotate,
  .pa-studio-exact-rotation,
  .pa-studio-prep-checks,
  .pa-studio-prep-readout,
  .pa-studio-prep-compare,
  .pa-studio-prep-actions,
  .pa-studio-experiments
) {
  border: 1px solid #d7e4e8 !important;
  border-radius: 0.58rem !important;
  background: #ffffff !important;
  color: #193149 !important;
}
.pa-studio-workspace-shell .pa-workspace-center :is(.pa-studio-rescue-result-head, .pa-studio-dock-verdict) {
  border: 1px solid #9dcfd3 !important;
  background: linear-gradient(135deg, #e8f8f7 0%, #d8f0f0 100%) !important;
  color: #143248 !important;
  box-shadow: 0 8px 24px rgba(20, 96, 105, 0.1) !important;
}
.pa-studio-workspace-shell .pa-workspace-center :is(.pa-studio-rescue-result-head, .pa-studio-dock-verdict) * {
  color: inherit !important;
  text-shadow: none !important;
}

@media (max-width: 900px) {
  .pa-studio-workspace-shell .pa-workspace-center .pa-studio-controls {
    margin-top: 0.55rem !important;
    padding: 0.65rem !important;
    border-radius: 0.65rem !important;
  }
  .pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-panel {
    padding: 0.75rem !important;
  }
}
@media (max-width: 600px) {
  .pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-tabs {
    display: flex !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }
  .pa-studio-workspace-shell .pa-workspace-center .pa-studio-dock-tabs button {
    flex: 0 0 5.35rem;
    min-width: 5.35rem;
    scroll-snap-align: start;
  }
}
/* studio-workspace-clarity-v2 */
.pp-studio-step-badge,
.pp-studio-stage-badge,
[data-workspace-number],
[data-workspace-modal-number] {
  display: none !important;
}

.pa-workspace-top-actions button {
  min-width: 0;
  white-space: nowrap;
}

.pa-workspace-site-menu {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  width: min(31rem, calc(100vw - 164px));
}

@media (max-width: 1150px) {
  .pa-workspace-site-menu {
    width: min(31rem, calc(100vw - 92px));
  }
}

@media (max-width: 900px) {
  .pa-workspace-site-menu {
    width: calc(100vw - 58px);
  }
}

.pa-workspace-site-menu > header {
  flex: 0 0 auto;
  padding: 1rem 1.15rem;
}

.pa-workspace-site-menu__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pa-workspace-site-menu__body > nav {
  height: auto;
  overflow: visible;
}

.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation {
  display: grid;
  gap: .42rem;
  padding: .9rem 1rem 1rem;
}

.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation h3,
.pa-workspace-site-menu__body > nav h3 {
  color: #087681;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
  margin: 0;
  text-transform: uppercase;
}

.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation > p {
  color: #5d7284;
  font-size: .78rem;
  line-height: 1.4;
  margin: 0 0 .25rem;
}

.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a {
  border: 1px solid transparent;
  border-radius: .48rem;
  display: grid;
  gap: .12rem;
  min-height: 0 !important;
  padding: .58rem .7rem !important;
}

.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a:hover,
.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a:focus-visible,
.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a[aria-current="page"] {
  background: #e9f7f7;
  border-color: #8bcdd2;
}

.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a span {
  color: #17314a;
  font-size: .84rem;
  font-weight: 820;
}

.pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a small {
  color: #667b8d;
  font-size: .7rem;
}

.pa-workspace-site-menu__body > nav[aria-label="Account, help, and business pages"] {
  border-top: 1px solid #d7e1e5;
  display: grid;
  gap: .32rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: .9rem 1rem 1rem;
}

.pa-workspace-site-menu__body > nav[aria-label="Account, help, and business pages"] h3 {
  grid-column: 1 / -1;
}

.pa-workspace-site-menu__body > nav[aria-label="Account, help, and business pages"] a {
  align-items: center;
  border-radius: .4rem;
  display: flex;
  min-height: 0 !important;
  padding: .55rem .65rem !important;
}

.pa-workspace-site-menu__body > nav[aria-label="Account, help, and business pages"] a:hover,
.pa-workspace-site-menu__body > nav[aria-label="Account, help, and business pages"] a:focus-visible {
  background: #edf4f5;
}

.pa-studio-journey > a {
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 620px) {
  .pa-workspace-site-menu__body > nav[aria-label="Account, help, and business pages"] {
    grid-template-columns: 1fr;
  }
}


/* Direct Edit is a separate live-model workspace, not a contextual Fix chip.
   Keep its real launcher visible in Guided and Advanced, independently of the
   current mode's shortcuts, and place it in the canvas-safe zone. */
body:has(.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"])
  > .pp-direct-editor-launcher {
  right: calc(clamp(310px, 25vw, 340px) + 18px);
  bottom: calc(44px + 48px + 16px);
}

body:has(.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"].is-inspector-collapsed)
  > .pp-direct-editor-launcher {
  right: 18px;
}

body.pp-direct-editor-open > .pp-direct-editor-launcher,
body:has(.pa-studio-workspace-shell :is(
  .pa-workspace-site-menu.is-open,
  .pa-workspace-command-palette.is-open,
  .pa-workspace-modal.is-open,
  .pa-workspace-backdrop:not([hidden]),
  .pa-workspace-help-menu:not([hidden]),
  .pa-studio-interactive-tutorial:is(
    [data-tutorial-state="chooser"],
    [data-tutorial-state="complete"]
  ):not([hidden])
)) > .pp-direct-editor-launcher {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (701px <= width <= 1100px) {
  body:has(.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]:not(.is-inspector-collapsed))
    > .pp-direct-editor-launcher {
    right: calc(max(300px, 36vw) + 14px);
    bottom: calc(44px + 48px + 14px);
  }

  body:has(.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"].is-inspector-collapsed)
    > .pp-direct-editor-launcher {
    right: calc(env(safe-area-inset-right) + 14px);
    bottom: calc(44px + 48px + 14px);
  }
}

@media (width <= 700px) {
  body:has(.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"])
    > .pp-direct-editor-launcher {
    right: calc(env(safe-area-inset-right) + 12px);
    bottom: min(
      calc(276px + env(safe-area-inset-bottom)),
      calc(100dvh - 72px)
    );
  }

  body:has(.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"].is-inspector-collapsed)
    > .pp-direct-editor-launcher {
    right: calc(env(safe-area-inset-right) + 12px);
  }
}

/* The body-mounted troubleshooting action remains outside the shell's focus
   boundary. Suppress it whenever another surface owns interaction. */
.pa-studio-workspace-shell:has(:is(
  .pa-workspace-site-menu.is-open,
  .pa-workspace-command-palette.is-open,
  .pa-workspace-inspector.is-open,
  .pa-workspace-modal.is-open,
  .pa-workspace-backdrop:not([hidden]),
  .pa-workspace-help-menu:not([hidden])
)) .pa-workspace-troubleshoot {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Light Studio action contrast. Keep the pale workflow panels and the navy
   viewer unchanged; only strengthen the foreground/background pairs used by
   the four primary actions and the four disabled history/file actions. */
html[data-pa-theme="light"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-studio-commandbar .pa-studio-file-button,
  .pa-workspace-goal-rail [data-pa-run-make-it-work],
  .pa-workspace-center [data-pa-plan-lay-flat],
  .pa-workspace-center [data-pa-prep-download]
) {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #087784;
  --bs-btn-border-color: #05656e;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #086874;
  --bs-btn-hover-border-color: #045963;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #075f69;
  --bs-btn-active-border-color: #045963;
  border-color: #05656e !important;
  background: linear-gradient(180deg, #087784 0%, #05656e 100%) !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-studio-commandbar .pa-studio-file-button,
  .pa-workspace-goal-rail [data-pa-run-make-it-work],
  .pa-workspace-center [data-pa-plan-lay-flat],
  .pa-workspace-center [data-pa-prep-download]
):is(:hover, :focus-visible, :active) {
  border-color: #045963 !important;
  background: linear-gradient(180deg, #086874 0%, #045963 100%) !important;
  color: #ffffff !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail :is(
  [data-pa-download-make-it-work],
  [data-pa-undo-make-it-work]
):disabled {
  border-color: #9eafbc !important;
  background: #e9eff4 !important;
  color: #4c6070 !important;
  opacity: 1 !important;
  cursor: not-allowed;
  text-shadow: none !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-center :is(
  [data-pa-prep-undo],
  [data-pa-prep-redo]
):disabled {
  border-color: #9aaeba !important;
  background: #e4ecef !important;
  color: #4a5d6b !important;
  opacity: 1 !important;
  cursor: not-allowed;
  text-shadow: none !important;
}

/* Dark preference: navy Studio foundations with teal reserved for actions,
   active state, focus, and branded highlights. These overrides are limited to
   the protected workspace so the shared Light preference remains unchanged. */
html[data-pa-theme="dark"] body.pa-protected-workspace > .pa-skip-link {
  z-index: 4000;
  border: 1px solid var(--bright-teal);
  background: var(--surface-elevated);
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] {
  --ws3-ink: var(--text-main);
  --ws3-muted: var(--text-muted);
  --ws3-line: var(--border);
  --ws3-soft: var(--surface-hover);
  --ws3-paper: var(--surface);
  --ws3-canvas: var(--page-bg);
  --ws3-canvas-2: var(--section-bg);
  --ws3-teal: var(--bright-teal);
  --ws3-teal-dark: var(--primary-teal);
  --ws3-navy: var(--text-main);
  --ws3-chrome: linear-gradient(115deg, var(--surface) 58%, var(--surface-elevated));
  --ws3-active-ink: var(--aqua-accent);
  --ws3-active-fill: var(--surface-hover);
  --ws3-active-line: var(--primary-teal);
  --ws3-control-shadow: inset 0 0 0 1px var(--border);
  color-scheme: dark;
  color: var(--text-body) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell > .pa-studio-commandbar,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-summary,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-site-menu,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-command-palette {
  color-scheme: dark;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell > .pa-studio-commandbar,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell > .pa-studio-commandbar .pa-studio-job-picker > label {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell > .pa-studio-commandbar {
  border-bottom-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-skill-mode {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-skill-mode button {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-skill-mode button.is-active {
  color: var(--text-main) !important;
  background: var(--surface-hover) !important;
  box-shadow: inset 0 0 0 1px var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell > .pa-studio-commandbar .pa-studio-job-picker > select {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
  box-shadow: none;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell > .pa-studio-commandbar [data-pa-open-rescue] {
  border-color: var(--primary-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell > .pa-studio-commandbar [data-pa-open-rescue]:is(:hover, :focus-visible, :active) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-top-actions :is(button, a) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-top-actions :is(button, a):is(:hover, :focus-visible),
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-top-actions .pa-workspace-all-tools {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-top-actions .pa-workspace-troubleshoot {
  border-color: var(--primary-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-top-actions .pa-workspace-troubleshoot > i {
  color: var(--page-bg) !important;
  background: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-top-actions .pa-workspace-primary-action {
  color: var(--page-bg) !important;
  background: var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-top-actions .pa-workspace-primary-action:is(:hover, :focus-visible) {
  color: var(--page-bg) !important;
  background: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-studio-commandbar .pa-studio-file-button,
  .pa-workspace-goal-rail [data-pa-run-make-it-work],
  .pa-workspace-center [data-pa-plan-lay-flat],
  .pa-workspace-center [data-pa-prep-download]
) {
  --bs-btn-color: var(--page-bg);
  --bs-btn-bg: var(--primary-teal);
  --bs-btn-border-color: var(--primary-teal);
  --bs-btn-hover-color: var(--page-bg);
  --bs-btn-hover-bg: var(--bright-teal);
  --bs-btn-hover-border-color: var(--aqua-accent);
  --bs-btn-active-color: var(--page-bg);
  --bs-btn-active-bg: var(--bright-teal);
  --bs-btn-active-border-color: var(--aqua-accent);
  border-color: var(--primary-teal) !important;
  background: linear-gradient(180deg, var(--bright-teal), var(--primary-teal)) !important;
  color: var(--page-bg) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-studio-commandbar .pa-studio-file-button,
  .pa-workspace-goal-rail [data-pa-run-make-it-work],
  .pa-workspace-center [data-pa-plan-lay-flat],
  .pa-workspace-center [data-pa-prep-download]
):is(:hover, :focus-visible, :active) {
  border-color: var(--aqua-accent) !important;
  background: linear-gradient(180deg, var(--aqua-accent), var(--bright-teal)) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-workarea {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail {
  border-right-color: var(--border) !important;
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail button,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail button small {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail button:is(:hover, .is-active) {
  color: var(--text-main) !important;
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail button.is-active {
  box-shadow: inset 3px 0 0 var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail button.is-active small {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-center {
  background: linear-gradient(155deg, var(--section-bg), var(--page-bg) 63%) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-statusbar {
  border-top-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-workspace-goal-rail,
  .pa-workspace-summary,
  .pa-workspace-inspector,
  .pa-workspace-site-menu,
  .pa-workspace-command-palette
) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-workspace-inspector > nav,
  .pa-workspace-site-menu > header
) {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector > header [data-workspace-inspector-title] {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector > nav button {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector > nav button:is(:hover, .is-active) {
  border-color: var(--primary-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-panel {
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-panel :is(h1, h2, h3, h4, strong, legend, label, dt, dd) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-panel :is(p, small, li) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-findings button,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-grid button {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-findings button:is(:hover, .is-focused) {
  border-color: var(--primary-teal) !important;
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-make-it-work {
  border-color: var(--primary-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body > .pa-studio-product-rail {
  border-color: var(--border) !important;
  background: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body > .pa-studio-product-rail > :is(div, a) {
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body > .pa-studio-product-rail a span {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body > .pa-studio-product-rail a small {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body > .pa-studio-product-rail a :is(i, svg) {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-goal-guide > header > span,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-make-it-work-copy > span {
  color: var(--bright-teal) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-goal-guide > header > h2,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-make-it-work-copy > h3 {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail :is(
  .pa-studio-goal-guide > header > p,
  .pa-studio-goal-guide > p,
  [data-pa-goal-guide-status],
  .pa-studio-make-it-work-copy > p,
  .pa-studio-make-it-work > small,
  .pa-studio-make-it-work-change
) {
  color: var(--text-body) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-make-it-work-status {
  border: 1px solid var(--border);
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-make-it-work-result {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-make-it-work-result dt {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-make-it-work-result dd,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail .pa-studio-goal-grid button :is(strong, span) {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-goal-rail :is(
  [data-pa-download-make-it-work],
  [data-pa-undo-make-it-work]
):disabled {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-muted) !important;
  opacity: 1 !important;
  cursor: not-allowed;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-center :is(
  [data-pa-prep-undo],
  [data-pa-prep-redo]
):disabled {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-muted) !important;
  opacity: 1 !important;
  cursor: not-allowed;
  text-shadow: none !important;
}

/* Studio inspection orientation and focus controls */
.pa-studio-layer-stage,
.pa-studio-gcode-stage {
  grid-template-rows: none !important;
  grid-auto-rows: max-content;
  align-content: start;
  overflow-y: auto !important;
}

.pa-inspection-toolbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  min-height: max-content;
  margin: 0.4rem 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--pa-line, #c9d9df);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(238, 250, 251, 0.98), rgba(255, 255, 255, 0.98));
  pointer-events: auto;
  isolation: isolate;
}

.pa-studio-layer-stage.is-showing-model-angle .pa-inspection-toolbar,
.pa-studio-gcode-stage.is-showing-model-angle .pa-inspection-toolbar {
  position: sticky;
  top: 0;
}

.pa-inspection-toolbar * {
  pointer-events: auto;
}

.pa-inspection-angle-group {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.pa-inspection-label {
  color: #153047;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pa-inspection-toolbar .pa-inspection-angle-group small {
  color: #536f82 !important;
  line-height: 1.35;
}

.pa-inspection-angle-buttons,
.pa-inspection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pa-inspection-angle-buttons .btn {
  min-width: 3.35rem;
}

.pa-inspection-toolbar .pa-inspection-angle-buttons .btn-outline-secondary {
  border-color: #7895a5 !important;
  background: #ffffff !important;
  color: #17384b !important;
}

.pa-inspection-toolbar .pa-inspection-angle-buttons .btn-outline-secondary:is(:hover, :focus-visible) {
  border-color: #087f8c !important;
  background: #e8f8f8 !important;
  color: #075f68 !important;
}

.pa-inspection-toolbar .pa-inspection-angle-buttons [aria-pressed="true"] {
  border-color: var(--pa-accent, #087f8c) !important;
  background: var(--pa-accent, #087f8c) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.14);
}

.pa-inspection-actions {
  justify-content: flex-end;
}

.pa-inspection-model-slot {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: clamp(380px, 54vh, 680px);
  margin: 0.75rem 0 1rem;
  overflow: hidden;
  border: 1px solid var(--pa-line, #c9d9df);
  border-radius: 1rem;
  background: #071927;
}

.pa-inspection-model-slot[hidden] {
  display: none !important;
}

.pa-inspection-model-slot [data-pa-studio-live-viewer] {
  display: block !important;
  width: 100% !important;
  min-height: 100% !important;
  height: 100% !important;
}

/* The G-code workspace has one viewport. The source STL occupies the same grid
   until an admitted generated/imported toolpath replaces it. */
[data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap {
  isolation: isolate;
}

[data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap > [data-pa-gcode-canvas] {
  position: relative;
  z-index: 1;
  transition: opacity 160ms ease;
}

[data-pa-gcode-stage][data-gcode-viewport-state="source-model"] .pa-studio-gcode-canvas-wrap > [data-pa-gcode-canvas] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

[data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap > .pa-inspection-model-slot {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: #071927;
}

[data-pa-layer-stage] .pa-studio-layer-canvas > .pa-inspection-model-slot {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: inherit;
}

body:not(.pa-theme-dark) [data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap > .pa-inspection-model-slot,
body:not(.pa-theme-dark) [data-pa-layer-stage] .pa-studio-layer-canvas > .pa-inspection-model-slot {
  background-color: #eefafa;
  background-image:
    linear-gradient(rgba(9, 118, 112, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 118, 112, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
}

body:not(.pa-theme-dark) :is([data-pa-gcode-stage], [data-pa-layer-stage]) .pa-inspection-model-slot [data-pa-studio-live-viewer],
body:not(.pa-theme-dark) :is([data-pa-gcode-stage], [data-pa-layer-stage]) .pa-inspection-model-slot .pa-mesh-viewer-canvas {
  background: transparent !important;
}

.pa-inspection-source-badge {
  position: absolute;
  z-index: 6;
  top: clamp(0.55rem, 1.4vw, 0.85rem);
  left: clamp(0.55rem, 1.4vw, 0.85rem);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: calc(100% - 1.1rem);
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(112, 225, 220, 0.52);
  border-radius: 0.42rem;
  background: rgba(3, 20, 30, 0.9);
  color: #ecffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.075em;
  pointer-events: none;
}

.pa-inspection-source-badge i {
  flex: 0 0 auto;
  color: #70e1dc;
}

/* Keep preparation, receipt verification, and generation visibly sequential. */
.pa-studio-slice-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pa-studio-slice-flow > li {
  position: relative;
  display: grid;
  grid-template: auto auto / 2rem minmax(0, 1fr);
  column-gap: 0.62rem;
  align-content: center;
  min-width: 0;
  min-height: 4.4rem;
  padding: 0.68rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--pa-border, #c9d9df) 86%, transparent);
  border-radius: 0.68rem;
  background: color-mix(in srgb, var(--pa-surface, #fff) 94%, var(--pa-teal, #087f8c));
  color: var(--pa-ink, #17384b);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.pa-studio-slice-flow > li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0.74rem;
  height: 2px;
  background: var(--pa-border, #c9d9df);
  content: "";
  transform: translateY(-50%);
}

.pa-studio-slice-flow > li > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-self: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, var(--pa-muted, #607681) 48%, transparent);
  border-radius: 50%;
  background: var(--pa-surface, #fff);
  color: var(--pa-muted, #607681);
  font-size: 0.74rem;
  font-weight: 900;
}

.pa-studio-slice-flow > li > strong {
  align-self: end;
  min-width: 0;
  font-size: 0.77rem;
  line-height: 1.2;
}

.pa-studio-slice-flow > li > small {
  min-width: 0;
  margin-top: 0.14rem;
  color: var(--pa-muted, #607681);
  font-size: 0.64rem;
  line-height: 1.35;
}

.pa-studio-slice-flow > li[data-step-state="blocked"] {
  opacity: 0.58;
}

.pa-studio-slice-flow > li[data-step-state="current"],
.pa-studio-slice-flow > li[data-step-state="working"] {
  border-color: var(--pa-teal, #087f8c);
  background: color-mix(in srgb, var(--pa-surface, #fff) 86%, var(--pa-teal, #087f8c));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pa-teal, #087f8c) 14%, transparent);
}

.pa-studio-slice-flow > li[data-step-state="current"] > span,
.pa-studio-slice-flow > li[data-step-state="working"] > span {
  border-color: var(--pa-teal, #087f8c);
  background: var(--pa-teal, #087f8c);
  color: #fff;
}

.pa-studio-slice-flow > li[data-step-state="working"] > span {
  animation: pa-slice-step-working 1.35s ease-in-out infinite;
}

.pa-studio-slice-flow > li[data-step-state="complete"] {
  border-color: color-mix(in srgb, var(--pa-teal, #087f8c) 48%, var(--pa-border, #c9d9df));
}

.pa-studio-slice-flow > li[data-step-state="complete"] > span {
  border-color: var(--pa-teal, #087f8c);
  background: color-mix(in srgb, var(--pa-teal, #087f8c) 16%, var(--pa-surface, #fff));
  color: var(--pa-teal, #087f8c);
}

.pa-studio-slice-flow > li[data-step-state="complete"]::after {
  background: var(--pa-teal, #087f8c);
}

@keyframes pa-slice-step-working {
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pa-teal, #087f8c) 18%, transparent); }
}

[data-pa-layer-stage] [data-pa-layer-canvas],
[data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap,
[data-pa-gcode-stage] [data-pa-gcode-canvas],
[data-pa-gcode-stage] canvas {
  min-height: clamp(360px, 54vh, 760px) !important;
}

[data-pa-layer-stage].is-inspection-focused,
[data-pa-gcode-stage].is-inspection-focused {
  position: fixed !important;
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  z-index: 2147483000;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(0.85rem, 2vw, 1.5rem) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  border: 1px solid var(--pa-line, #c9d9df);
  border-radius: 1rem;
  background: var(--pa-surface, #f7fbfc);
  box-shadow: 0 28px 90px rgba(2, 17, 29, 0.42);
}

.is-inspection-focused .pa-inspection-toolbar {
  position: sticky;
  top: -0.25rem;
  z-index: 8;
  margin-top: 0;
  box-shadow: 0 8px 24px rgba(8, 42, 58, 0.12);
}

.is-inspection-focused [data-pa-layer-canvas],
.is-inspection-focused .pa-studio-gcode-canvas-wrap,
.is-inspection-focused [data-pa-gcode-canvas],
.is-inspection-focused canvas {
  min-height: min(72vh, 880px) !important;
}

.is-inspection-focused .pa-inspection-model-slot {
  height: min(70vh, 840px);
}

html.pa-inspection-lock,
html.pa-inspection-lock body {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .pa-inspection-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pa-inspection-actions {
    justify-content: stretch;
  }

  .pa-inspection-actions .btn {
    flex: 1 1 auto;
  }

  .pa-inspection-angle-buttons .btn {
    flex: 1 1 calc(25% - 0.4rem);
  }

  .pa-inspection-model-slot {
    min-height: 320px;
    height: 52vh;
  }

  [data-pa-layer-stage] [data-pa-layer-canvas],
  [data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap,
  [data-pa-gcode-stage] [data-pa-gcode-canvas],
  [data-pa-gcode-stage] canvas {
    min-height: clamp(300px, 50vh, 560px) !important;
  }

  .pa-inspection-source-badge {
    font-size: 0.6rem;
    letter-spacing: 0.055em;
  }

  .pa-studio-slice-flow {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .pa-studio-slice-flow > li {
    min-height: 3.8rem;
  }

  .pa-studio-slice-flow > li:not(:last-child)::after {
    top: 100%;
    left: calc(0.72rem + 1rem);
    width: 2px;
    height: 0.5rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap > [data-pa-gcode-canvas],
  .pa-studio-slice-flow > li {
    transition: none;
  }

  .pa-studio-slice-flow > li[data-step-state="working"] > span {
    animation: none;
  }
}


/* Command bar upload controls must remain inside the fixed header row. */
@media (min-width: 901px) {
  /* The job name yields space to the real pricing/help action width. Its
     former minimum overflowed the allocated track into the next control. */
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker {
    grid-template-columns: auto minmax(0, 1fr) 44px !important;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker > #studioJob {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }

  .pa-studio-workspace-shell > .pa-studio-commandbar {
    grid-template-columns: minmax(280px, 1fr) minmax(430px, 440px) auto !important;
  }

  .pa-studio-commandbar .pa-studio-job-picker {
    grid-template-columns: minmax(150px, 1fr) auto auto !important;
    align-items: center !important;
    width: 100%;
    height: 44px;
    max-height: 44px;
  }

  .pa-studio-commandbar .pa-studio-job-picker > select,
  .pa-studio-commandbar .pa-studio-job-picker > .btn {
    align-self: center !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    white-space: nowrap;
  }

  .pa-studio-commandbar .pa-studio-file-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 901px) and (max-width: 1400px) {
  .pa-studio-workspace-shell > .pa-studio-commandbar {
    grid-template-columns: minmax(205px, .65fr) minmax(420px, 1.35fr) auto !important;
  }

  .pa-studio-commandbar > div:first-child p {
    display: none !important;
  }

  .pa-studio-commandbar .pa-studio-job-picker > select {
    min-width: 0;
    padding-right: 2.5rem !important;
    text-overflow: ellipsis;
  }

  .pa-workspace-top-actions button {
    padding-inline: .45rem;
  }
}

@media (min-width: 901px) and (max-width: 1150px) {
  .pa-studio-workspace-shell > .pa-studio-commandbar {
    grid-template-columns: minmax(240px, 1fr) minmax(390px, 420px) auto !important;
  }

  .pa-studio-commandbar .pa-studio-job-picker {
    grid-template-columns: minmax(135px, 1fr) auto auto !important;
  }

  .pa-studio-commandbar .pa-studio-job-picker > .btn {
    padding-inline: 0.55rem !important;
    font-size: 0.66rem !important;
  }
}

/* Browser source recovery is an explicit, bounded convenience—not a Studio save claim. */
.pa-studio-model-session-controls {
  position: absolute;
  z-index: 8;
  left: 1.1rem;
  bottom: 8.4rem;
  display: block;
  color: #dceaf2;
}

/* Source recovery is an always-available privacy/session control. The
   Guided-mode blanket details rule must not make its visible entry point
   disappear while All Tools still reports the setting as available. */
.pa-studio[data-skill-mode="beginner"] .pa-studio-model-session-controls {
  display: block;
}

.pa-studio-model-session-controls > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: max-content;
  max-width: min(360px, calc(100vw - 3rem));
  padding: .45rem .6rem;
  border: 1px solid rgba(115, 228, 230, .34);
  border-radius: .55rem;
  background: rgba(3, 15, 25, .9);
  color: #f4fbff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(10px);
}

.pa-studio-model-session-controls > summary::-webkit-details-marker {
  display: none;
}

.pa-studio-model-session-controls > summary:focus-visible {
  outline: 2px solid #67dce0;
  outline-offset: 2px;
}

.pa-studio-model-session-controls > summary > i {
  color: #73e4e6;
}

.pa-studio-model-session-controls > summary > span {
  display: grid;
  gap: .08rem;
  min-width: 0;
}

.pa-studio-model-session-controls > summary strong {
  color: #f4fbff;
  font-size: .72rem;
}

.pa-studio-model-session-controls > summary small {
  color: #b9ccd8;
  font-size: .63rem;
  line-height: 1.25;
}

.pa-studio-model-session-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + .5rem);
  width: min(420px, calc(100vw - 3rem));
  max-height: min(480px, 58vh);
  padding: .9rem;
  overflow: auto;
  border: 1px solid #9fc6cf;
  border-radius: .75rem;
  background: #fff;
  color: #163143;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

.pa-studio-model-session-panel h3 {
  margin: 0 0 .55rem;
  color: #0a2939;
  font-size: 1rem;
}

.pa-studio-model-session-panel p,
.pa-studio-model-session-panel label,
.pa-studio-model-session-panel output {
  color: #425f70;
  font-size: .76rem;
  line-height: 1.45;
}

.pa-studio-model-session-toggle {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: .7rem 0;
  padding: .65rem;
  border: 1px solid #bad7dc;
  border-radius: .55rem;
  background: #f3fbfc;
  font-weight: 750;
}

.pa-studio-model-session-toggle input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: .08rem;
}

.pa-studio-model-session-warning {
  padding: .55rem .6rem;
  border-left: 3px solid #ba7d13;
  background: #fff8e8;
}

.pa-studio-model-session-panel output {
  display: block;
  margin-top: .6rem;
  font-weight: 700;
}

.pa-studio-model-session-panel output[data-tone="error"] {
  color: #a42929;
}

@media (max-width: 720px) {
  .pa-studio-model-session-controls {
    left: .75rem;
    bottom: 11.6rem;
  }

  .pa-studio-model-session-controls > summary {
    max-width: calc(100vw - 5rem);
  }

  .pa-studio-model-session-panel {
    width: min(420px, calc(100vw - 5rem));
    max-height: 44vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-studio-model-session-controls,
  .pa-studio-model-session-controls * {
    scroll-behavior: auto !important;
  }
}

/* Small Studio surfaces keep model upload available without widening the command bar. */
@media (max-width: 900px) {
  .pa-studio-workspace-shell > .pa-studio-commandbar {
    grid-template-columns: minmax(0, 1fr) 44px auto !important;
    gap: .35rem !important;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-commandbar .pa-studio-job-picker {
    display: grid !important;
    place-items: center;
    grid-template-columns: 44px !important;
    gap: 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px;
    max-height: 44px;
  }

  .pa-studio-commandbar .pa-studio-job-picker > :not(.pa-studio-file-button) {
    display: none !important;
  }

  .pa-studio-commandbar .pa-studio-job-picker > .pa-studio-file-button {
    position: relative;
    display: grid !important;
    place-items: center;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
  }

  .pa-studio-commandbar .pa-studio-file-button > i {
    margin: 0;
    font-size: 1rem;
  }

  .pa-studio-commandbar .pa-studio-file-button:focus-within {
    outline: 2px solid #007d89;
    outline-offset: 2px;
  }
}

@media (max-width: 600px) {
  .pa-workspace-drawer-body .pa-studio-results,
  .pa-workspace-drawer-body .pa-studio-impact-grid,
  .pa-workspace-drawer-body .pa-studio-optimizer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .pa-workspace-drawer-body .pa-studio-detailed-report-body,
  .pa-workspace-drawer-body .pa-studio-detailed-report-body > * {
    min-width: 0 !important;
  }
}

/* Every Studio command has an unmistakable center-stage receipt. This is
   semantic evidence, not a claim that utility, navigation, or export commands
   mutated mesh geometry. */
.pa-studio-viewport-card > .pa-workspace-center-evidence,
.pp-editor-canvas-shell > .pa-workspace-center-evidence,
.pp-command-palette > .pa-workspace-center-evidence,
.pa-workspace-command-palette > .pa-workspace-center-evidence,
.pa-workspace-site-menu > .pa-workspace-center-evidence,
.pa-workspace-inspector > .pa-workspace-center-evidence,
.pa-studio-tutorial-center-evidence > .pa-workspace-center-evidence,
.pa-mesh-inspector-stage > .pa-workspace-center-evidence {
  position: absolute;
  z-index: 90;
  top: clamp(8.6rem, 22%, 12.5rem);
  left: 50%;
  display: grid;
  width: min(36rem, calc(100% - 2rem));
  gap: .26rem;
  padding: .8rem 1rem .85rem;
  overflow: hidden;
  border: 1px solid rgba(112, 232, 226, .78);
  border-left: .35rem solid #70e8e2;
  border-radius: .72rem;
  background-color: #041823;
  background-image: linear-gradient(135deg, rgba(4, 24, 35, .97), rgba(11, 47, 58, .96));
  color: #f7fdff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  line-height: 1.35;
  pointer-events: none;
  text-align: left;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}
.pp-command-palette > .pa-workspace-center-evidence,
.pa-workspace-command-palette > .pa-workspace-center-evidence,
.pa-workspace-site-menu > .pa-workspace-center-evidence,
.pa-workspace-inspector > .pa-workspace-center-evidence {
  position: fixed;
  z-index: 2147483400;
  top: 50%;
  transform: translate(-50%, -50%);
}
.pa-workspace-center-evidence[hidden] { display: none !important; }
.pa-workspace-center-evidence > span {
  color: #70e8e2 !important;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .13em;
}
.pa-workspace-center-evidence > strong {
  color: #ffffff !important;
  font-size: clamp(.94rem, 1.5vw, 1.16rem);
  line-height: 1.2;
  text-shadow: none !important;
}
.pa-workspace-center-evidence > p,
.pa-workspace-center-evidence > small {
  margin: 0;
  color: #d9edf2 !important;
  font-size: .74rem !important;
  line-height: 1.42 !important;
  text-shadow: none !important;
}
.pa-workspace-center-evidence > small {
  padding-top: .28rem;
  border-top: 1px solid rgba(153, 226, 229, .2);
  color: #aee3e4 !important;
}
.pa-workspace-center-evidence[data-effect-class="GEOMETRY_CHANGED"] { border-color: #7ef0b9; border-left-color: #42d992; }
.pa-workspace-center-evidence[data-effect-class="CENTER_PROGRESS_TO_PREVIEW"] { border-color: #84cfff; border-left-color: #3aa9ed; }
.pa-workspace-center-evidence[data-effect-class="CENTER_ARTIFACT_RECEIPT"] { border-color: #d5b8ff; border-left-color: #a879eb; }
.pa-workspace-center-evidence[data-effect-class="CENTER_EXPLANATION_OR_REFUSAL"] { border-color: #ffd089; border-left-color: #eea83d; }
.pa-workspace-center-evidence.is-received { animation: pa-center-evidence-received .32s ease-out both; }
.pa-studio-viewport-card.has-center-reaction,
.pp-editor-canvas-shell.has-center-reaction,
.pp-command-palette.has-center-reaction .pp-command-palette__surface,
.pa-workspace-inspector.has-center-reaction,
.pa-mesh-inspector-stage.has-center-reaction { animation: pa-center-stage-reaction .52s ease-out both; }

.pp-command-palette > .pa-workspace-center-evidence.is-received,
.pa-workspace-inspector > .pa-workspace-center-evidence.is-received {
  animation-name: pa-command-palette-center-evidence-received;
}

.pa-studio-access-dialog__surface > .pa-workspace-center-evidence,
.pa-studio-tutorial-center-evidence > .pa-workspace-center-evidence {
  position: static;
  display: grid;
  width: 100%;
  min-width: min(24rem, 100%);
  margin-top: .75rem;
  padding: .8rem 1rem .85rem;
  gap: .26rem;
  border: 1px solid rgba(112, 232, 226, .78);
  border-left: .35rem solid #70e8e2;
  border-radius: .72rem;
  background-color: #041823;
  background-image: linear-gradient(135deg, #041823, #0b2f3a);
  color: #f7fdff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  line-height: 1.35;
  pointer-events: none;
  text-align: left;
}
.pa-studio-access-dialog__surface.has-center-reaction { animation: pa-center-stage-reaction .52s ease-out both; }
.pa-studio-access-dialog__surface > .pa-workspace-center-evidence.is-received,
.pa-studio-tutorial-center-evidence > .pa-workspace-center-evidence.is-received {
  animation-name: pa-access-center-evidence-received;
}
@keyframes pa-center-evidence-received {
  from { opacity: 1; transform: translate(-50%, -.55rem) scale(.975); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes pa-access-center-evidence-received {
  from { opacity: 1; transform: translateY(-.55rem) scale(.975); }
  to { opacity: 1; transform: none; }
}
@keyframes pa-command-palette-center-evidence-received {
  from { opacity: 1; transform: translate(-50%, calc(-50% - .55rem)) scale(.975); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes pa-center-stage-reaction {
  0% { box-shadow: 0 0 0 0 rgba(112, 232, 226, 0) inset; }
  35% { box-shadow: 0 0 0 5px rgba(112, 232, 226, .88) inset, 0 0 42px rgba(57, 213, 207, .38) inset; }
  100% { box-shadow: 0 0 0 1px rgba(112, 232, 226, .18) inset; }
}
.pa-studio-target-draft-popup[hidden] {
  display: none !important;
}
.pa-studio-target-draft-popup:not([hidden]) {
  position: fixed;
  z-index: 90;
  inset: auto;
  display: grid;
  box-sizing: border-box;
  width: min(22rem, calc(100vw - 1rem));
  max-height: calc(100dvh - 1rem);
  padding: .82rem;
  gap: .62rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #28b8c4;
  border-left: .3rem solid #28b8c4;
  border-radius: .72rem;
  background: #0f1e27;
  color: #f1f8f9;
  box-shadow: 0 18px 46px rgba(8, 22, 32, .42), 0 0 0 1px rgba(112, 225, 220, .12) inset;
  pointer-events: auto;
}
.pa-studio-target-draft-popup__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}
.pa-studio-target-draft-popup__heading > div {
  display: grid;
  min-width: 0;
  gap: .14rem;
}
.pa-workspace-inspector-body .pa-studio-dock-panel .pa-studio-target-draft-popup__heading span {
  color: #70e1dc !important;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.pa-workspace-inspector-body .pa-studio-dock-panel .pa-studio-target-draft-popup__heading strong {
  color: #f1f8f9 !important;
  font-size: .98rem;
  line-height: 1.25;
}
.pa-workspace-inspector-body .pa-studio-dock-panel .pa-studio-target-draft-popup__close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #29434c;
  border-radius: .5rem;
  background: #152935;
  color: #f1f8f9 !important;
  cursor: pointer;
}
.pa-workspace-inspector-body .pa-studio-dock-panel .pa-studio-target-draft-popup__close:is(:hover, :focus-visible) {
  border-color: #70e1dc;
  background: #183240;
}
.pa-studio-target-draft-popup dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: .4rem;
}
.pa-studio-target-draft-popup dl > div {
  min-width: 0;
  padding: .42rem .48rem;
  border: 1px solid #29434c;
  border-radius: .46rem;
  background: #081620;
}
.pa-studio-target-draft-popup dl > div:last-child {
  grid-column: 1 / -1;
}
.pa-workspace-inspector-body .pa-studio-dock-panel .pa-studio-target-draft-popup dt {
  color: #8298a2 !important;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pa-workspace-inspector-body .pa-studio-dock-panel .pa-studio-target-draft-popup dd {
  margin: .1rem 0 0;
  overflow-wrap: anywhere;
  color: #f1f8f9 !important;
  font-size: .75rem;
  font-weight: 800;
}
.pa-workspace-inspector-body .pa-studio-dock-panel .pa-studio-target-draft-popup > small {
  color: #c7d4d9 !important;
  font-size: .69rem;
  line-height: 1.4 !important;
}
.pa-studio-center-result:not([hidden]) {
  position: absolute;
  z-index: 48;
  top: 8.15rem;
  left: 50%;
  display: grid;
  width: min(42rem, calc(100% - 2rem));
  padding: .82rem .95rem .78rem;
  gap: .38rem;
  border: 1px solid #70e8e2;
  border-left: .38rem solid #70e8e2;
  border-radius: .72rem;
  background-color: #041823;
  background-image: linear-gradient(135deg, rgba(4, 24, 35, .98), rgba(9, 52, 62, .98));
  color: #f7fdff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .48), 0 0 0 1px rgba(112, 232, 226, .14) inset;
  animation: pa-center-evidence-received .32s ease-out both;
  pointer-events: none;
  transform: translateX(-50%);
}
.pa-studio-scenario-center-feedback:not([hidden]) {
  position: absolute;
  z-index: 47;
  bottom: 1rem;
  left: 50%;
  display: block;
  width: min(42rem, calc(100% - 2rem));
  padding: .72rem .85rem;
  border: 1px solid #70e8e2;
  border-left: .38rem solid #70e8e2;
  border-radius: .62rem;
  background: rgba(4, 24, 35, .97);
  color: #f7fdff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .42);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.4;
  pointer-events: none;
  transform: translateX(-50%);
}
.pa-studio-scenario-center-feedback[data-setup-feedback-state="working"] {
  border-color: #84cfff;
  border-left-color: #3aa9ed;
}
.pa-studio-scenario-center-feedback[data-setup-feedback-state="error"] {
  border-color: #ffd089;
  border-left-color: #eea83d;
}
.pa-studio-center-result > span {
  color: #9df7f2;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
}
.pa-studio-center-result > strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}
.pa-studio-center-result dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: .1rem 0 0;
  gap: .45rem;
}
.pa-studio-center-result dl > div {
  min-width: 0;
  padding: .42rem .5rem;
  border: 1px solid rgba(157, 247, 242, .3);
  border-radius: .48rem;
  background: rgba(0, 0, 0, .2);
}
.pa-studio-center-result dt {
  color: #bceeed;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pa-studio-center-result dd {
  overflow: hidden;
  margin: .1rem 0 0;
  color: #fff;
  font-size: .76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-studio-center-repair-result .pa-studio-repair-result-context {
  grid-column: 1 / -1;
}
.pa-studio-center-repair-result [data-pa-repair-result-center-context] {
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.pa-studio-center-result > small {
  color: #d7f6f5;
  font-size: .69rem;
  line-height: 1.35;
}
.pa-studio-prepared-download-result {
  display: grid;
  margin-top: .75rem;
  padding: .8rem;
  gap: .65rem;
  border: 1px solid var(--aqua-accent, #157f7b);
  border-left-width: 4px;
  border-radius: .65rem;
  background: var(--surface-elevated, #f1f8f8);
  color: var(--text-main, #102a3a);
  box-shadow: 0 8px 22px rgba(8, 38, 48, .1);
}
.pa-studio-prepared-download-result[hidden],
.pa-studio-prepared-result-download[hidden] {
  display: none !important;
}
.pa-studio-prepared-download-result[data-prepared-result-state="failed"] {
  border-color: #c33f36;
  background: color-mix(in srgb, var(--surface-elevated, #fff) 92%, #c33f36 8%);
}
.pa-studio-prepared-download-result[data-prepared-result-state="stale"] {
  border-color: #a56512;
  background: color-mix(in srgb, var(--surface-elevated, #fff) 92%, #a56512 8%);
}
.pa-studio-prepared-download-result__heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .65rem;
}
.pa-studio-prepared-download-result__heading > i {
  display: grid;
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua-accent, #157f7b);
  color: #fff;
  font-size: 1rem;
}
.pa-studio-prepared-download-result[data-prepared-result-state="failed"]
  .pa-studio-prepared-download-result__heading > i {
  background: #c33f36;
}
.pa-studio-prepared-download-result[data-prepared-result-state="stale"]
  .pa-studio-prepared-download-result__heading > i {
  background: #a56512;
}
.pa-studio-prepared-download-result__heading > div {
  display: grid;
  min-width: 0;
  gap: .12rem;
}
.pa-studio-prepared-download-result__heading span {
  color: var(--text-muted, #58727d);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .09em;
}
.pa-studio-prepared-download-result__heading strong {
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.25;
}
.pa-studio-prepared-download-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: .42rem;
}
.pa-studio-prepared-download-result dl > div {
  min-width: 0;
  padding: .42rem .48rem;
  border: 1px solid var(--border, rgba(20, 76, 86, .18));
  border-radius: .45rem;
  background: var(--surface, rgba(255, 255, 255, .72));
}
.pa-studio-prepared-download-result dl > div:first-child,
.pa-studio-prepared-download-result dl > div:last-child {
  grid-column: 1 / -1;
}
.pa-studio-prepared-download-result dt {
  color: var(--text-muted, #58727d);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pa-studio-prepared-download-result dd {
  margin: .12rem 0 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.3;
}
.pa-studio-prepared-download-result [data-pa-prepared-result-hash] {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: .66rem;
  word-break: break-all;
}
.pa-studio-prepared-result-download {
  display: inline-flex;
  width: 100%;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}
.pa-studio-prepared-result-download:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--aqua-accent, #157f7b) 42%, transparent);
  outline-offset: 2px;
}
.pa-studio-prepared-download-result > small {
  color: var(--text-muted, #58727d);
  font-size: .7rem;
  line-height: 1.4;
}
@media (max-width: 420px) {
  .pa-studio-prepared-download-result dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .pa-studio-prepared-download-result dl > div {
    grid-column: 1;
  }
}
.pa-studio-center-multi-map {
  position: relative;
  width: 100%;
  height: 9rem;
  min-height: 5.25rem;
  max-height: 9rem;
  aspect-ratio: auto;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(157, 247, 242, .48);
  border-radius: .48rem;
  background-color: #0b3140;
  background-image:
    linear-gradient(rgba(157, 247, 242, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 247, 242, .12) 1px, transparent 1px);
  background-size: 1rem 1rem;
}
.pa-studio-center-multi-map[hidden] { display: none; }
.pa-studio-center-multi-map > svg { display: block; width: 100%; height: 100%; }
.pa-studio-center-multi-map .pa-studio-center-multi-bed {
  fill: #0b3140;
  stroke: #9df7f2;
  stroke-width: 1.2;
}
.pa-studio-center-multi-map g rect {
  fill: #9df7f2;
  stroke: #fff;
  stroke-width: 1;
}
.pa-studio-center-multi-map g:nth-of-type(3n+2) rect { fill: #c5b5ff; }
.pa-studio-center-multi-map g:nth-of-type(3n) rect { fill: #95efc4; }
.pa-studio-center-multi-map text {
  fill: #041823;
  font-size: 7px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}
@media (max-width: 700px) {
  .pa-studio-center-result:not([hidden]) {
    width: calc(100% - 1rem);
    padding: .55rem .6rem;
    gap: .25rem;
  }
  .pa-studio-center-result dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem;
  }
  .pa-studio-center-result dl > div:first-child { grid-column: 1 / -1; }
  .pa-studio-center-result dl > div { padding: .3rem .38rem; }
  .pa-studio-center-result > small { font-size: .64rem; line-height: 1.25; }
}
@media (max-width: 700px), (max-height: 560px) {
  .pa-studio-center-result:not([hidden]) {
    top: 50%;
    max-height: calc(100% - 1rem);
    animation: none;
    transform: translate(-50%, -50%);
  }
}
.pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card::after,
.pa-studio-workspace-shell[data-center-preview-kind="mirror"] .pa-studio-viewport-card::after,
.pa-studio-workspace-shell[data-center-preview-kind="cut"] .pa-studio-viewport-card::after,
.pa-studio-workspace-shell[data-center-preview-kind="cut-ready"] .pa-studio-viewport-card::after {
  position: absolute;
  z-index: 45;
  top: 5.35rem;
  left: 50%;
  padding: .42rem .7rem;
  border: 1px solid #70e8e2;
  border-radius: 999px;
  background: rgba(3, 24, 34, .94);
  color: #efffff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .34);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .055em;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}
.pa-studio-workspace-shell[data-center-preview-kind="scenario"][data-center-preview-detail="plan"] .pa-studio-viewport-card::after { content: "SETTINGS-ONLY PLAN  •  PREPARED POSE FIXED"; }
.pa-studio-workspace-shell[data-center-preview-kind="scenario"]:not([data-center-preview-detail="plan"]) .pa-studio-viewport-card::after { content: "VIEW-ONLY SETUP PREVIEW  •  GEOMETRY NOT COMMITTED"; }
.pa-studio-workspace-shell[data-model-state="uploaded"][data-center-preview-kind="scenario"][data-center-preview-detail="plan"] .pa-studio-viewport-card::after { content: "SETTINGS-ONLY PLAN  •  ACTIVE POSE AND BYTES UNCHANGED"; }
.pa-studio-workspace-shell[data-model-state="uploaded"][data-center-preview-kind="scenario"]:not([data-center-preview-detail="plan"]) .pa-studio-viewport-card::after { content: "SETUP VIEW OVER ACTIVE MODEL  •  BYTES UNCHANGED"; }
.pa-studio-workspace-shell[data-center-preview-kind="mirror"] .pa-studio-viewport-card::after { content: "VIEW-ONLY VERIFIED MIRROR PREVIEW  •  ORIGINAL REMAINS ACTIVE"; }
.pa-studio-workspace-shell[data-center-preview-kind="cut"] .pa-studio-viewport-card::after { content: "CUT-PLANE PREVIEW  •  BUILD TWO PARTS TO COMMIT"; }
.pa-studio-workspace-shell[data-center-preview-kind="cut-ready"] .pa-studio-viewport-card::after { content: "VERIFIED CUT PLANE  •  TWO CAPPED PARTS DOWNLOADED"; }

.pa-studio-estimate-explanation {
  display: block !important;
  padding: .62rem .68rem;
  border: 1px solid #b9d8de;
  border-radius: .6rem;
  background: #f5fafb;
  color: #17364b;
}
.pa-studio-estimate-explanation > summary {
  margin: 0 !important;
  color: #075f68 !important;
  font-size: max(.78rem, 12.5px) !important;
  font-weight: 850;
  cursor: pointer;
}
.pa-studio-estimate-explanation > p { margin: .55rem 0 0 !important; }

/* Strong final override for the compact measurement readout. The toolbar sits
   on a dark canvas in both themes, so this control must never inherit pale
   panel text on a pale background. */
.pa-studio-workspace-shell [data-pa-mesh-readout-measurement] {
  border-color: #65c4cb !important;
  background: #102a3a !important;
  color: #f7fdff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.pa-studio-workspace-shell [data-pa-mesh-readout-measurement][data-measurement-state="armed"] {
  border-color: #70e8e2 !important;
  background: #dff9f8 !important;
  color: #075f68 !important;
  box-shadow: 0 0 0 3px rgba(112, 232, 226, .24), 0 8px 20px rgba(6, 27, 37, .2) !important;
}
.pa-studio-workspace-shell [data-pa-mesh-readout-measurement][data-measurement-state="first-point"] {
  border-color: #70e8e2 !important;
  background: #dff9f8 !important;
  color: #075f68 !important;
}
.pa-studio-workspace-shell [data-pa-mesh-readout-measurement][data-measurement-state="complete"] {
  border-color: #70e8e2 !important;
  background: #087f8c !important;
  color: #ffffff !important;
}

@media (max-width: 700px) {
  .pa-studio-workspace-shell .pa-studio-viewport-card {
    --pa-mobile-toolbar-top: 13.75rem;
    --pa-mobile-preview-badge-top: 22rem;
    --pa-mobile-center-evidence-top: 24.55rem;
  }
  .pa-studio-workspace-shell .pa-studio-viewport-card:has(.pa-studio-source-rollback:not([hidden])) {
    --pa-mobile-toolbar-top: 16.4rem;
    --pa-mobile-preview-badge-top: 24.65rem;
    --pa-mobile-center-evidence-top: 27.2rem;
  }
  .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar {
    top: var(--pa-mobile-toolbar-top) !important;
  }
  .pa-studio-viewport-card > .pa-workspace-center-evidence,
  .pp-editor-canvas-shell > .pa-workspace-center-evidence,
  .pp-command-palette > .pa-workspace-center-evidence,
  .pa-workspace-inspector > .pa-workspace-center-evidence,
  .pa-mesh-inspector-stage > .pa-workspace-center-evidence {
    top: var(--pa-mobile-center-evidence-top);
    width: calc(100% - 1rem);
    padding: .65rem .72rem;
  }
  .pp-command-palette > .pa-workspace-center-evidence,
  .pa-workspace-command-palette > .pa-workspace-center-evidence,
  .pa-workspace-site-menu > .pa-workspace-center-evidence,
  .pa-workspace-inspector > .pa-workspace-center-evidence {
    top: 50%;
  }
  .pp-direct-editor[data-prompt-open="true"] .pp-editor-canvas-shell > .pa-workspace-center-evidence {
    top: 4.25rem;
  }
  .pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card::after,
  .pa-studio-workspace-shell[data-center-preview-kind="mirror"] .pa-studio-viewport-card::after,
  .pa-studio-workspace-shell[data-center-preview-kind="cut"] .pa-studio-viewport-card::after,
  .pa-studio-workspace-shell[data-center-preview-kind="cut-ready"] .pa-studio-viewport-card::after {
    top: var(--pa-mobile-preview-badge-top);
    max-width: calc(100% - 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.pa-studio-workspace-shell .pa-workspace-inspector-body [data-pa-dock-panel="review"] {
  gap: .42rem !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-review-facts {
  margin: 0;
  padding: 0;
  border: 1px solid #b9d8de;
  border-radius: .55rem;
  background: #f5fafb;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-review-facts > summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: .45rem .58rem;
  color: #075f68 !important;
  font-size: max(.75rem, 12px);
  font-weight: 850;
  cursor: pointer;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-review-facts > .pa-studio-dock-metrics {
  margin: 0 .5rem .5rem;
}
@media (prefers-reduced-motion: reduce) {
.pa-workspace-center-evidence.is-received,
.pa-studio-center-result:not([hidden]),
.pa-studio-viewport-card.has-center-reaction,
  .pp-editor-canvas-shell.has-center-reaction,
  .pp-command-palette.has-center-reaction .pp-command-palette__surface,
  .pa-workspace-inspector.has-center-reaction,
  .pa-mesh-inspector-stage.has-center-reaction,
  .pa-studio-access-dialog__surface.has-center-reaction { animation: none; }
}

.pa-workspace-model-safety-lock {
  position: fixed;
  z-index: 2147483000;
  left: clamp(0.75rem, 2vw, 2rem);
  bottom: clamp(3.75rem, 7vh, 6rem);
  width: min(42rem, calc(100vw - 1.5rem));
  padding: 0.9rem 1rem;
  border: 2px solid #ffbf67;
  border-left-width: 0.45rem;
  border-radius: 0.75rem;
  background: #101e26;
  color: #f7fbfd;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.42);
}

.pa-workspace-model-safety-lock[hidden] { display: none !important; }
.pa-workspace-model-safety-lock > span {
  display: block;
  margin-bottom: 0.2rem;
  color: #ffd28f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.pa-workspace-model-safety-lock > strong { display: block; font-size: 1rem; }
.pa-workspace-model-safety-lock > p,
.pa-workspace-model-safety-lock > small { display: block; margin: 0.3rem 0 0; line-height: 1.4; }
.pa-workspace-model-safety-lock > small { color: #cfe0e8; }

[data-model-safety-blocked="true"] {
  cursor: not-allowed !important;
  filter: saturate(0.35);
  opacity: 0.52 !important;
}

@media (prefers-reduced-motion: reduce) {
  .pa-workspace-model-safety-lock { scroll-behavior: auto; }
}

/* Item 10 Studio shell polish: keep dense navigation usable at every viewport,
   prevent native select arrows from covering job names, and keep truth notices
   readable when they are rendered inside a light report surface. */
.pa-studio-commandbar [data-pa-open-rescue] {
  min-width: 7.75rem;
  white-space: nowrap;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-job-picker > select {
  padding-inline-end: 2.85rem !important;
  background-position: right .8rem center !important;
  text-overflow: ellipsis;
}

.pa-workspace-command-list,
.pa-workspace-site-menu__body {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.pa-workspace-command-list {
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
}

.pa-workspace-site-menu__body {
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1101px) {
  .pa-workspace-mode-rail {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
}

.pa-studio-ai-advisor .pa-studio-truth-note {
  position: static;
  inset: auto;
  max-width: none;
  margin: 0;
  padding: .72rem .8rem;
  border: 1px solid #9ccfd3;
  border-radius: .6rem;
  background: #eaf7f7;
  color: #25465a;
  font-size: max(.78rem, 12.5px);
  line-height: 1.5;
  backdrop-filter: none;
}

.pa-studio-ai-advisor .pa-studio-truth-note i {
  color: #087f8c;
}

.pa-workspace-statusbar .pa-workspace-save-state {
  min-width: 10rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #80510a;
  cursor: pointer;
  font: inherit;
  font-size: .61rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.pa-workspace-statusbar .pa-workspace-save-state:hover,
.pa-workspace-statusbar .pa-workspace-save-state:focus-visible {
  color: #543200;
  text-decoration: underline;
}

.pa-workspace-statusbar .pa-workspace-save-state.is-dirty {
  color: #a33a24;
}

.pa-studio-workspace-shell .pa-command-target-highlight {
  outline: 3px solid #19a7b1 !important;
  outline-offset: 4px;
  scroll-margin: 6rem;
  animation: pa-command-target-pulse .85s ease-out 2;
}

@keyframes pa-command-target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 167, 177, .48);
  }

  100% {
    box-shadow: 0 0 0 1.1rem rgba(25, 167, 177, 0);
  }
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark] {
  border: 1px solid transparent;
  background: #ffffff;
  color: #18324f;
  font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark]::before {
  content: attr(data-pa-toolbar-mark);
  display: block;
  line-height: 1;
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark] > .bi {
  display: none;
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark]:is(:hover, :focus-visible, [aria-pressed="true"]) {
  border-color: #65c4cb;
  background: #dff5f6;
  color: #075f68;
}

html[data-pa-theme="dark"] body.pa-app-page .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark] {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-app-page .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark]:is(:hover, :focus-visible, [aria-pressed="true"]) {
  border-color: var(--aqua-accent);
  background: var(--aqua-accent);
  color: var(--page-bg);
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar .pa-studio-mesh-measurement {
  min-width: 7.8rem;
  padding: .38rem .58rem;
  border: 1px solid #65c4cb;
  border-radius: 999px;
  background: #102a3a;
  color: #f7fdff;
  box-shadow: 0 1px 3px rgba(6, 27, 37, .22);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

/* Review lives in the light context inspector. Its generic light-panel rules must
   not leak dark text into the dark verdict or pale text into white plan rows. */
.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict {
  background: #102a3a !important;
  color: #f7fdff !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > strong {
  color: #f7fdff !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > span,
.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > b,
.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > b i {
  color: #83ece9 !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > p {
  color: #cfe0e8 !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button {
  background: #ffffff !important;
  color: #17364b !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button :is(span, small, em) {
  color: #526b7d !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button.is-selected {
  background: #e8f8f8 !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button:disabled {
  border-color: #cbd6de !important;
  background: #e8eef2 !important;
  color: #657588 !important;
  box-shadow: none !important;
  cursor: wait;
  opacity: .78;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button:disabled :is(span, small, em) {
  color: #657588 !important;
}

.pa-studio-workspace-shell .pa-studio-review-outputs {
  display: grid;
  gap: .45rem;
}

.pa-studio-workspace-shell .pa-studio-review-output {
  display: grid;
  gap: .16rem;
  padding: .58rem .64rem;
  border: 1px solid #cadde2;
  border-left: 3px solid #718998;
  border-radius: .55rem;
  background: #f7fafb;
  color: #17364b;
}

.pa-studio-workspace-shell .pa-studio-review-output[data-output-kind="settings"] {
  border-left-color: #087f8c;
  background: #eefafa;
}

.pa-studio-workspace-shell .pa-studio-review-output > span {
  color: #526b7d;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.pa-studio-workspace-shell .pa-studio-review-output > strong {
  color: #17364b;
  font-size: .73rem;
}

.pa-studio-workspace-shell .pa-studio-review-output > small {
  color: #526b7d;
  font-size: .64rem;
  line-height: 1.38;
}

.pa-studio-workspace-shell [data-pa-dock-download-settings][aria-busy="true"] {
  cursor: wait;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-downloads [data-pa-dock-open-prepare] {
  border-color: #087f8c !important;
  background: #ffffff !important;
  color: #075f68 !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-downloads [data-pa-dock-download-settings] {
  border-color: #087f8c !important;
  background: #087f8c !important;
  color: #ffffff !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-downloads :is([data-pa-dock-open-prepare], [data-pa-dock-download-settings]):is(:hover, :focus-visible) {
  border-color: #055e68 !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 140, .2) !important;
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement[data-measurement-state="first-point"] {
  border-color: #1d98a5;
  color: #075f68;
  background: #e8f8f8;
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement[data-measurement-state="complete"] {
  border-color: #006f79;
  color: #fff;
  background: #006f79;
  font-size: .78rem;
}

html[data-pa-theme="dark"] body.pa-app-page .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement {
  border-color: var(--border);
  color: var(--text-main);
  background: var(--surface);
}

html[data-pa-theme="dark"] body.pa-app-page .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement[data-measurement-state="complete"] {
  border-color: var(--aqua-accent);
  color: var(--page-bg);
  background: var(--aqua-accent);
}

@media (width <= 700px) {
  .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar .pa-studio-mesh-measurement {
    min-width: 6.25rem;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* STUDIO PHONE VIEWPORT OVERLAY CLEARANCE CONTRACT — 2026-07-26
   Keep contextual actions below the viewer toolbar instead of sharing the
   lower evidence band with W/D/H, and remove the redundant floating Guide
   launcher only while the direct Studio editor owns a compact viewport. */
@media (width <= 700px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-quickbar {
    top: 18.75rem;
    right: auto;
    bottom: auto;
    max-width: calc(100% - 1rem);
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-quickbar button {
    height: 44px;
    min-height: 44px;
  }

  body:has(.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]) > .pa-helpbot {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-studio-workspace-shell .pa-command-target-highlight {
    animation: none;
  }
}

/*
 * Canonical workspace geometry
 * ----------------------------
 * This route stylesheet loads after the shared theme and contains several
 * deliberately dense control systems. Normalize the real interactive and
 * bounded surfaces here at the end of the cascade; semantic status pills,
 * range tracks, keyboard glyphs, and illustrative pseudo-elements keep their
 * own shape.
 */
.pa-studio-workspace-shell :is(
  button,
  input:not([type="range"]),
  select,
  textarea,
  .pa-workspace-quickbar,
  .pa-workspace-inspector,
  .pa-workspace-site-menu,
  .pa-workspace-command-palette,
  .pa-workspace-command-search,
  .pa-workspace-command-feedback,
  .pa-workspace-help-menu,
  .pa-workspace-modal-card,
  .pa-workspace-model-detail > div,
  .pp-studio-workspace__step-guide,
  .pp-studio-context-popover,
  .pp-studio-context-popover__goal,
  .pp-studio-site-menu__goal-navigation a,
  .pa-workspace-site-menu__body a,
  .pa-inspection-toolbar,
  .pa-inspection-model-slot,
  [data-pa-layer-stage].is-inspection-focused,
  [data-pa-gcode-stage].is-inspection-focused,
  .pa-studio-model-session-controls > summary,
  .pa-studio-model-session-panel,
  .pa-studio-model-session-toggle,
  .pa-studio-controls,
  .pa-studio-dock-tabs,
  .pa-studio-dock-panel,
  .pa-studio-dock-panel .pa-studio-model-actions,
  .pa-studio-dock-panel .pa-studio-multi-layout,
  .pa-studio-dock-panel .pa-studio-auto-orient,
  .pa-studio-dock-panel .pa-studio-slice-readiness,
  .pa-studio-dock-panel .pa-studio-findings,
  .pa-studio-dock-panel .pa-studio-rescue-truth,
  .pa-studio-dock-panel .pa-studio-rescue-symptoms,
  .pa-studio-dock-panel .pa-studio-profile-guidance,
  .pa-studio-dock-panel .pa-studio-dock-metrics,
  .pa-studio-dock-panel .pa-studio-dock-candidates,
  .pa-studio-dock-panel .pa-studio-dock-downloads,
  .pa-studio-dock-panel .pa-studio-range,
  .pa-studio-dock-panel .pa-studio-unit-fixes,
  .pa-studio-dock-panel .pa-studio-target-size,
  .pa-studio-dock-panel .pa-studio-prep-rotate,
  .pa-studio-dock-panel .pa-studio-exact-rotation,
  .pa-studio-dock-panel .pa-studio-prep-checks,
  .pa-studio-dock-panel .pa-studio-prep-readout,
  .pa-studio-dock-panel .pa-studio-prep-compare,
  .pa-studio-dock-panel .pa-studio-prep-actions,
  .pa-studio-dock-panel .pa-studio-experiments,
  .pa-studio-ai-advisor .pa-studio-truth-note
) {
  border-radius: 8px !important;
}

/* The inspector is always a light work surface, even when the model viewport
   uses the dark theme. Components moved into it must follow that surface
   instead of inheriting their dark viewport treatment. */
.pa-workspace-inspector .pa-studio-dock-panel {
  --pa-text: #172235;
  --pa-muted: #687386;
  --pa-text-muted: #5b7180;
  --pa-muted-color: #5b7180;
  --pa-line: #d1dee4;
  --pa-border-color: #c7d9df;
  --pa-panel: #ffffff;
  --pa-surface: #ffffff;
  --pa-surface-soft: #f2f7f9;
  --pa-background: #f7fbfc;
  --studio-accent: #087f75;
  --bs-body-color: #172235;
  --bs-border-color: #d1dee4;
}
.pa-workspace-inspector .pa-studio-slice-readiness {
  border-color: #9acdc7 !important;
  background: linear-gradient(145deg, #ecfbf9, #f7fbfc 52%) !important;
  color: #173441 !important;
  box-shadow: inset 3px 0 0 #0f8f83 !important;
}
.pa-workspace-inspector .pa-studio-slice-readiness-head > span { color: #087f75 !important; }
.pa-workspace-inspector .pa-studio-slice-readiness-head > strong { color: #112a36 !important; }
.pa-workspace-inspector .pa-studio-slice-readiness-head > p,
.pa-workspace-inspector .pa-studio-slice-readiness > [data-pa-slice-status] { color: #526d79 !important; }
.pa-workspace-inspector .pa-studio-slice-flags label,
.pa-workspace-inspector .pa-studio-slice-advanced {
  border-color: #c6dce0 !important;
  background: rgba(255,255,255,.82) !important;
  color: #173441 !important;
}
.pa-workspace-inspector .pa-studio-slice-advanced summary { color: #173441 !important; }
.pa-workspace-inspector .pa-studio-slice-advanced summary small,
.pa-workspace-inspector .pa-studio-slice-fields label { color: #58727e !important; }
.pa-workspace-inspector .pa-studio-slice-fields input {
  border-color: #b9cfd5 !important;
  background: #fff !important;
  color: #102b37 !important;
}
.pa-studio[data-skill-mode="beginner"] .pa-workspace-inspector .pa-studio-slice-readiness > .pa-studio-slice-advanced { display: block; }
.pa-workspace-inspector .pa-studio-slice-result {
  border-color: #b4ccd2 !important;
  background: #fff !important;
}
.pa-workspace-inspector .pa-studio-slice-result > div:first-child strong,
.pa-workspace-inspector .pa-studio-slice-result li strong { color: #18313d !important; }
.pa-workspace-inspector .pa-studio-slice-result dd { color: #274652 !important; }
.pa-workspace-inspector .pa-studio-slice-result li span,
.pa-workspace-inspector .pa-studio-slice-result li small { color: #526e79 !important; }

/* Measured-region proof occupies the same lower-left canvas band as the
   floating quick actions. Lift the proof above that bar so its coverage and
   close control remain fully readable and clickable on desktop. */
@media (width > 700px) {
  .pa-studio-workspace-shell .pa-studio.has-region-evidence .pa-studio-region-evidence {
    bottom: 4.35rem;
  }
}

/* Center-first Studio composition. The model is the primary surface; chrome
   may explain an action, but it must not cover the result or compete with it. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] {
  grid-template-rows: 60px minmax(0, 1fr) 44px !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-workarea {
  grid-template-columns: 72px minmax(0, 1fr) clamp(310px, 25vw, 340px);
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"].is-inspector-collapsed .pa-workspace-workarea {
  grid-template-columns: 72px minmax(0, 1fr) 0;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-statusbar {
  min-height: 44px;
  gap: .7rem;
  padding: .25rem .7rem;
  font-size: max(.64rem, 10.5px);
}

.pa-workspace-statusbar > .pa-studio-dimensions {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(4, auto);
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cad9e1;
  border-radius: .45rem;
  background: #ffffff;
  backdrop-filter: none;
}

.pa-workspace-statusbar > .pa-studio-dimensions > div {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  min-width: 0;
  padding: .22rem .5rem;
  border-right: 1px solid #dbe6eb;
}

.pa-workspace-statusbar > .pa-studio-dimensions > div:last-child { border-right: 0; }
.pa-workspace-statusbar > .pa-studio-dimensions dt {
  color: #607487;
  font-size: max(.58rem, 9.5px);
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pa-workspace-statusbar > .pa-studio-dimensions dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #17364b;
  font-size: max(.65rem, 10.5px);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-workspace-shell .pa-studio-file-button > i { display: none !important; }
.pa-studio-file-button__mark {
  display: block !important;
  color: currentColor;
  font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-size: 1.15rem !important;
  font-weight: 950;
  line-height: 1;
}

/* Keep the normal outcome receipt at the edge of the stage and preserve the
   model as the focal point. Refusals may use one extra line for remediation. */
.pa-studio-viewport-card > .pa-workspace-center-evidence {
  top: auto;
  bottom: 3.35rem;
  left: .85rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: min(23rem, calc(100% - 1.7rem));
  max-height: 5.9rem;
  gap: .16rem;
  padding: .48rem .66rem .52rem;
  transform: none;
  backdrop-filter: blur(9px);
}

/* The compact Fix editor occupies the same lower-left lane as outcome receipts.
   Keep the receipt above that trigger so its Expand action stays visible. */
@media (min-width: 761px) {
  .pa-studio-workspace-shell[data-workspace-mode="fix"]
    .pa-studio-viewport-card:has(.pa-model-editor.is-collapsed)
    > .pa-workspace-center-evidence {
    bottom: 9.75rem;
  }
}

/* Catalog receipts belong to the palette's final grid row. They remain obvious
   without floating over (and hiding) the commands the user just opened. */
.pp-command-palette > .pa-workspace-center-evidence,
.pa-workspace-command-palette > .pa-workspace-center-evidence {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-height: none;
  padding: .58rem .82rem .64rem;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0 0 13px 13px;
  transform: none !important;
}

.pa-studio-viewport-card > .pa-workspace-center-evidence > span {
  grid-column: 1;
  white-space: nowrap;
}

.pa-studio-viewport-card > .pa-workspace-center-evidence > strong {
  grid-column: 2;
  overflow: hidden;
  font-size: max(.86rem, 13.5px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-viewport-card > .pa-workspace-center-evidence > p {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  font-size: max(.7rem, 11.5px) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-viewport-card > .pa-workspace-center-evidence > small {
  grid-column: 1 / -1;
  overflow: hidden;
  padding-top: .18rem;
  font-size: max(.66rem, 10.5px) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-viewport-card > .pa-workspace-center-evidence[data-effect-class="CENTER_EXPLANATION_OR_REFUSAL"] {
  max-height: 8.5rem;
}

.pa-studio-viewport-card > .pa-workspace-center-evidence[data-effect-class="CENTER_EXPLANATION_OR_REFUSAL"] > p {
  -webkit-line-clamp: 3;
}

.pa-studio-viewport-card > .pa-workspace-center-evidence.is-received {
  animation-name: pa-center-evidence-edge-received;
}

@keyframes pa-center-evidence-edge-received {
  from { opacity: 1; transform: translateY(-.45rem) scale(.985); }
  to { opacity: 1; transform: none; }
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement[data-measurement-state="armed"] {
  border-color: #1d98a5;
  color: #075f68;
  background: #dff9f8;
}

/* A selected Review plan remains visibly distinct after the transient command
   receipt closes. The text comes from the exact selected candidate contract. */
.pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card:not([data-center-preview-hud])::after {
  left: .85rem;
  max-width: calc(100% - 21rem);
  overflow: hidden;
  text-overflow: ellipsis;
  transform: none;
}

@media (min-width: 701px) {
  .pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card:has(.pa-studio-source-rollback:not([hidden])):not([data-center-preview-hud])::after {
    left: 12.5rem;
    max-width: calc(100% - 32rem);
  }
}

.pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card[data-center-preview-hud]::after {
  content: attr(data-center-preview-hud);
  top: 5.2rem;
  left: .85rem;
  max-width: calc(100% - 1.7rem);
  padding: .48rem .66rem;
  overflow: hidden;
  border-radius: .5rem;
  color: #f5ffff;
  font-size: max(.67rem, 11px);
  line-height: 1.3;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  transform: none;
  white-space: nowrap;
}

.pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card[data-center-preview-hud-status="updating"]::after {
  border-color: #84cfff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .34), inset 3px 0 #3aa9ed;
}

.pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card[data-center-preview-hud-status="error"]::after {
  border-color: #ffd089;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .34), inset 3px 0 #eea83d;
}

.pa-studio-workspace-shell .pa-studio-truth-note {
  left: .75rem;
  bottom: 4.45rem;
  max-width: 15rem;
  overflow: hidden;
  padding: .35rem .5rem;
  font-size: max(.63rem, 10px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-workspace-shell .pa-workspace-quickbar {
  bottom: .75rem;
}

/* The measurement value belongs to the toolbar but no longer consumes half of
   its horizontal span. It sits directly beneath a compact, reliable glyph row. */
.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar {
  gap: 2px;
  padding: 3px;
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark] {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}

.pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar .pa-studio-mesh-measurement {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 7rem;
  max-width: 10rem;
  min-height: 1.8rem;
  padding: .28rem .48rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Review is a decision surface, not a wall of duplicate caveats. Keep all five
   choices readable; reveal the exact secondary settings on the selected row. */
.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict {
  padding: .72rem .8rem;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > strong {
  margin-block: .22rem;
  font-size: max(.88rem, 14px);
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > p,
.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-plan-note {
  font-size: max(.75rem, 12px) !important;
  line-height: 1.35 !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-metrics div {
  padding: .48rem .55rem;
}
.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-metrics dt { font-size: max(.7rem, 11px); }
.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-metrics dd { font-size: max(.78rem, 12.5px); }

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-plan-note {
  gap: .4rem;
  padding: .48rem .55rem;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates {
  gap: .4rem;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .12rem .45rem;
  min-height: 56px;
  padding: .52rem .6rem;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button > span {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  overflow: hidden;
  font-size: max(.73rem, 11.75px);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button > strong {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: max(.78rem, 12.5px);
  white-space: nowrap;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button > strong > small {
  color: #526b7d !important;
  font-size: max(.7rem, 11px);
  font-weight: 700;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button > em {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  overflow: hidden;
  font-size: max(.71rem, 11.5px);
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates .pa-studio-dock-plan-details {
  display: none;
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  min-width: 0;
  color: #526b7d !important;
  font-size: max(.7rem, 11px);
  line-height: 1.3 !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button.is-selected {
  grid-template-rows: auto auto auto;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button.is-selected .pa-studio-dock-plan-details {
  display: block;
}

/* Guided mode hides advanced fieldsets and details globally. These two Review
   disclosures are decision evidence, so their summaries must stay reachable. */
.pa-studio-workspace-shell[data-skill-mode="beginner"] .pa-helpbot details:not([hidden]) {
  display: block !important;
}

/* These are required workflow inputs, not optional expert detail: a custom
   printer needs real dimensions, and a measured opening needs a selection. */
.pa-studio-workspace-shell[data-skill-mode="beginner"] :is(
  [data-pa-machine-build-volume],
  [data-pa-hole-candidates]:not([hidden])
) {
  display: block !important;
}

.pa-studio-workspace-shell[data-skill-mode="beginner"] .pa-workspace-inspector-body [data-pa-dock-panel="review"] :is(
  .pa-studio-review-facts,
  .pa-studio-estimate-explanation
) {
  display: block !important;
}

.pa-studio-workspace-shell .pa-studio-review-output > span { font-size: max(.68rem, 10.75px); }
.pa-studio-workspace-shell .pa-studio-review-output > strong { font-size: max(.78rem, 12.5px); }
.pa-studio-workspace-shell .pa-studio-review-output > small { font-size: max(.73rem, 11.75px); }

@media (max-width: 1100px) and (min-width: 701px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-workarea,
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"].is-inspector-collapsed .pa-workspace-workarea {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] {
    grid-template-rows: 54px minmax(0, 1fr) 64px !important;
  }

  .pa-studio-viewport-card > .pa-workspace-center-evidence {
    top: var(--pa-mobile-center-evidence-top);
    bottom: auto;
    left: 50%;
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 1rem);
    max-height: 7.4rem;
    transform: translateX(-50%);
  }

  .pa-studio-viewport-card > .pa-workspace-center-evidence > :is(span, strong, p, small) {
    grid-column: 1;
  }

  .pa-studio-viewport-card > .pa-workspace-center-evidence.is-received {
    animation-name: pa-center-evidence-received;
  }

  .pa-workspace-inspector > .pa-workspace-center-evidence {
    max-height: 8.4rem;
    overflow: hidden;
  }

  .pa-workspace-inspector > .pa-workspace-center-evidence > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .pa-workspace-inspector > .pa-workspace-center-evidence > small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card[data-center-preview-hud]::after {
    top: var(--pa-mobile-preview-badge-top);
    left: .5rem;
    max-width: calc(100% - 1rem);
  }

  .pa-studio-workspace-shell[data-center-preview-kind="scenario"] .pa-studio-viewport-card:not([data-center-preview-hud])::after {
    left: .5rem;
    max-width: calc(100% - 1rem);
  }

  .pa-studio-workspace-shell .pa-studio-truth-note {
    bottom: 7.9rem;
    max-width: calc(100% - 1.5rem);
  }

  .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar button[data-pa-toolbar-mark] {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* The interactive tutorial stays nonmodal while a track is active so the user
   operates the real Studio control. Only the chooser blocks the workspace. */
.pa-studio-interactive-tutorial {
  position: fixed;
  z-index: 5200;
  inset: 0;
  pointer-events: none;
}

.pa-studio-interactive-tutorial[data-tutorial-state="chooser"] {
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2.5rem);
  pointer-events: auto;
}

.pa-studio-tutorial-scrim {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 23, 35, .64);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
}

.pa-studio-interactive-tutorial[data-tutorial-state="chooser"] .pa-studio-tutorial-scrim,
.pa-studio-interactive-tutorial[data-tutorial-state="complete"] .pa-studio-tutorial-scrim {
  opacity: 1;
  pointer-events: auto;
}

.pa-studio-tutorial-chooser {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(920px, 100%);
  max-height: min(840px, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid #b7d8dc;
  border-radius: 18px;
  background: #f8fcfd;
  box-shadow: 0 34px 90px rgba(0, 20, 31, .35);
}

.pa-studio-tutorial-chooser > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid #d8e8eb;
  background: linear-gradient(135deg, #fff 20%, #e8f8f8);
}

.pa-studio-tutorial-center-evidence {
  min-width: 0;
  padding: 0 clamp(.75rem, 2.4vw, 1.6rem);
  background: #f8fcfd;
}

.pa-studio-tutorial-center-evidence:empty { display: none; }

.pa-studio-tutorial-center-evidence > .pa-workspace-center-evidence {
  min-width: 0;
  margin-top: .8rem;
}

.pa-studio-tutorial-center-evidence.has-center-reaction {
  animation: pa-center-stage-reaction .52s ease-out both;
}

.pa-studio-tutorial-chooser > header span,
.pa-studio-tutorial-complete > span,
.pa-studio-tutorial-coach > header > span {
  display: block;
  color: #007982;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.pa-studio-tutorial-chooser h2,
.pa-studio-tutorial-complete h2,
.pa-studio-tutorial-coach h2 {
  margin: .25rem 0 .35rem;
  color: #10283d !important;
  font-weight: 900;
  letter-spacing: -.025em;
}

.pa-studio-tutorial-chooser h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.pa-studio-tutorial-chooser p { max-width: 66ch; margin: 0; color: #4f6879; line-height: 1.5; }
.pa-studio-tutorial-chooser > header > button,
.pa-studio-tutorial-coach > header > button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid #b8d0d5;
  border-radius: 50%;
  color: #1d4054;
  background: #fff;
  cursor: pointer;
}

.pa-studio-tutorial-track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.pa-studio-tutorial-track-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  min-height: 108px;
  padding: 1rem;
  border: 1px solid #c8dce0;
  border-radius: 12px;
  color: #173149;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 47, 64, .06);
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pa-studio-tutorial-track-list > button:not(:disabled):is(:hover, :focus-visible) {
  border-color: #168d96;
  box-shadow: 0 13px 30px rgba(3, 106, 115, .14);
  outline: 0;
  transform: translateY(-2px);
}

.pa-studio-tutorial-track-list > button.is-unavailable {
  border-style: dashed;
  color: #536b7b;
  background: #f4f8f9;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .86;
}

.pa-studio-tutorial-track-list > button.is-unavailable b {
  color: #79510a;
  background: #fff1cf;
}

.pa-studio-tutorial-track-list > button > span { display: grid; align-content: start; gap: .35rem; }
.pa-studio-tutorial-track-list strong { font-size: .96rem; font-weight: 900; }
.pa-studio-tutorial-track-list small { color: #607788 !important; font-size: .76rem; line-height: 1.42; }
html[data-pa-theme="dark"] .pa-studio-tutorial-track-list small { color: #607788 !important; }
.pa-studio-tutorial-track-list b {
  align-self: start;
  padding: .28rem .45rem;
  border-radius: 5px;
  color: #006d75;
  background: #e4f5f5;
  font-size: .65rem;
  white-space: nowrap;
}

.pa-studio-tutorial-chooser > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.5rem 1.1rem;
  border-top: 1px solid #d8e8eb;
  color: #5d7383;
  font-size: .72rem;
}
.pa-studio-tutorial-chooser > footer a { color: #007982; font-weight: 850; }
.pa-studio-tutorial-chooser > footer small { color: #5d7383 !important; }

.pa-studio-tutorial-coach {
  position: fixed;
  z-index: 4;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 1rem;
  border: 2px solid #31b1b8;
  border-radius: 14px;
  color: #163149;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(0, 24, 36, .3);
  pointer-events: auto;
}

.pa-studio-tutorial-coach::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
  background: #07939d;
}

.pa-studio-tutorial-coach > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.pa-studio-tutorial-coach > header > button { width: 44px; height: 44px; }
.pa-studio-tutorial-progress { display: grid; gap: .35rem; margin: .7rem 0 .85rem; }
.pa-studio-tutorial-progress > span { color: #587182; font-size: .7rem; font-weight: 850; }
.pa-studio-tutorial-progress > b { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #dcebed; }
.pa-studio-tutorial-progress > b > i { display: block; height: 100%; border-radius: inherit; background: #0598a2; transition: width .2s ease; }
.pa-studio-tutorial-coach h2 { font-size: 1.25rem; }
.pa-studio-tutorial-coach > p { margin: 0; color: #314f62; font-size: .88rem; font-weight: 700; line-height: 1.48; }
.pa-studio-tutorial-coach > small {
  display: block;
  margin-top: .75rem;
  padding: .65rem .7rem;
  border-left: 3px solid #21a4ac;
  color: #496676;
  background: #eef8f8;
  font-size: .75rem;
  line-height: 1.42;
}
.pa-studio-tutorial-coach.is-target-missing,
.pa-studio-tutorial-coach.is-step-blocked { border-color: #d29a32; }
.pa-studio-tutorial-coach.is-target-missing::before,
.pa-studio-tutorial-coach.is-step-blocked::before { background: #d29a32; }

.pa-studio-tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
}
.pa-studio-tutorial-actions button,
.pa-studio-tutorial-complete button {
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #a9c9ce;
  border-radius: 7px;
  color: #0c6570;
  background: #fff;
  font-size: .7rem;
  font-weight: 850;
  cursor: pointer;
}
.pa-studio-tutorial-actions button:disabled { opacity: .45; cursor: not-allowed; }
.pa-studio-tutorial-actions button[data-pa-tutorial-action="skip"] { margin-left: auto; }

.pa-studio-workspace-shell .pa-studio-tutorial-target {
  position: relative;
  z-index: 5190 !important;
  outline: 4px solid #5cf3ed !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 10px rgba(0, 30, 42, .72), 0 0 0 15px rgba(92, 243, 237, .28) !important;
  animation: pa-studio-tutorial-target-pulse 1.15s ease-in-out infinite alternate;
}
.pa-studio-workspace-shell .pa-studio-tutorial-target.is-complete {
  outline-color: #77eea1 !important;
  box-shadow: 0 0 0 10px rgba(0, 30, 42, .72), 0 0 0 16px rgba(119, 238, 161, .32) !important;
}
@keyframes pa-studio-tutorial-target-pulse {
  from { filter: drop-shadow(0 0 0 rgba(92, 243, 237, 0)); }
  to { filter: drop-shadow(0 0 8px rgba(92, 243, 237, .9)); }
}

.pa-studio-interactive-tutorial[data-tutorial-state="complete"] {
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: auto;
}
.pa-studio-tutorial-complete {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #9dd4d8;
  border-radius: 18px;
  color: #173149;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 20, 31, .34);
  text-align: center;
}
.pa-studio-tutorial-complete > i { color: #03929c; font-size: 2.4rem; }
.pa-studio-tutorial-complete h2 { font-size: 1.55rem; }
.pa-studio-tutorial-complete p { color: #4f6979; line-height: 1.5; }
.pa-studio-tutorial-complete > div { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1rem; }
.pa-studio-tutorial-complete button:last-child { color: #fff; border-color: #047f89; background: #047f89; }

@media (max-width: 700px) {
  .pa-studio-interactive-tutorial[data-tutorial-state="chooser"] { padding: .45rem; }
  .pa-studio-tutorial-chooser { max-height: calc(100vh - .9rem); border-radius: 13px; }
  .pa-studio-tutorial-track-list { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: .75rem; }
  .pa-studio-tutorial-track-list > button { min-height: 84px; padding: .75rem; }
  .pa-studio-tutorial-chooser > header { padding: 1rem; }
  .pa-studio-tutorial-chooser > footer { align-items: flex-start; flex-direction: column; padding: .75rem 1rem; }
  .pa-studio-tutorial-coach {
    right: .5rem;
    left: .5rem;
    width: auto;
    max-height: min(36vh, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-studio-tutorial-track-list > button,
  .pa-studio-tutorial-progress > b > i,
  .pa-studio-workspace-shell .pa-studio-tutorial-target {
    animation: none !important;
    transition: none !important;
  }
}

/* A completed center workflow has two truthful outputs: its persistent stage
   card and the one live terminal owned by the open inspector. Keep the live
   terminal in that inspector's final grid row so it cannot cover any persistent
   center result. The generic terminal returns to its normal placement as soon
   as another command hides the result card. */
.pa-studio-center-repair-result dl {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pa-studio-center-repair-result dl > div:first-child { grid-column: span 2; }
.pa-studio-center-repair-result dl > div:last-child { grid-column: 1 / -1; }

.pa-studio-center-repair-result :is(
  [data-pa-repair-result-center-step],
  [data-pa-repair-result-center-context]
) {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.pa-studio-workspace-shell:has(:is(.pa-studio-center-result:not([hidden]), .pa-studio-target-draft-popup:not([hidden])))
  .pa-workspace-inspector > .pa-workspace-center-evidence {
  position: static;
  z-index: 90;
  inset: auto;
  width: 100%;
  max-height: 7.5rem;
  padding: .45rem .6rem .5rem;
  border-radius: 0;
  transform: none !important;
}

.pa-studio-workspace-shell:has(:is(.pa-studio-center-result:not([hidden]), .pa-studio-target-draft-popup:not([hidden])))
  .pa-workspace-inspector > .pa-workspace-center-evidence > strong,
.pa-studio-workspace-shell:has(:is(.pa-studio-center-result:not([hidden]), .pa-studio-target-draft-popup:not([hidden])))
  .pa-workspace-inspector > .pa-workspace-center-evidence > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-studio-workspace-shell:has(:is(.pa-studio-center-result:not([hidden]), .pa-studio-target-draft-popup:not([hidden])))
  .pa-workspace-inspector > .pa-workspace-center-evidence > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 700px) {
  .pa-studio-center-repair-result dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pa-studio-center-repair-result dl > div { grid-column: auto; }
  .pa-studio-center-repair-result dl > div:first-child,
  .pa-studio-center-repair-result dl > div:last-child { grid-column: 1 / -1; }

  .pa-studio-center-repair-result [data-pa-repair-result-center-step],
  .pa-studio-center-repair-result [data-pa-repair-result-center-context],
  .pa-studio-center-repair-result > small,
  .pa-studio-center-multi-input-result > small,
  .pa-studio-center-lay-flat-result > small,
  .pa-studio-center-readiness-input-result > small,
  .pa-studio-center-make-it-work-result > small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* At 390x844 the normal 78% Deliver sheet leaves too little of the stage to
     show the owned result. Reserve 45% for the result while it is persistent;
     the inspector body remains scrollable in its bounded 55% sheet. */
  .pa-studio-workspace-shell:has(.pa-studio-center-repair-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-multi-input-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-lay-flat-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-readiness-input-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-make-it-work-result:not([hidden]))
    .pa-workspace-inspector.is-open {
    top: auto;
    bottom: 0;
    height: min(55%, 480px);
  }

  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-repair-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-multi-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-lay-flat-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-readiness-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-make-it-work-result:not([hidden]) {
    top: .5rem;
    max-height: calc(45% - 1rem);
    overflow: hidden;
    transform: translateX(-50%);
  }

  .pa-studio-center-multi-map { min-height: 4rem; max-height: 5.5rem; }
}

@media (min-width: 701px) and (max-width: 820px) {
  .pa-studio-workspace-shell:has(.pa-studio-center-repair-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-multi-input-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-lay-flat-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-readiness-input-result:not([hidden]))
    .pa-workspace-inspector.is-open,
  .pa-studio-workspace-shell:has(.pa-studio-center-make-it-work-result:not([hidden]))
    .pa-workspace-inspector.is-open {
    top: auto;
    bottom: 0;
    height: min(55%, 480px);
  }

  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-repair-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-multi-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-lay-flat-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-readiness-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-make-it-work-result:not([hidden]) {
    top: .5rem;
    max-height: calc(45% - 1rem);
    overflow: hidden;
    transform: translateX(-50%);
  }

  .pa-studio-center-multi-map { min-height: 4rem; max-height: 5.5rem; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-repair-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-multi-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-lay-flat-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-readiness-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-make-it-work-result:not([hidden]) {
    left: .5rem;
    width: calc(100% - 380px - 1rem);
    transform: none;
  }

  .pa-studio-center-repair-result dl,
  .pa-studio-center-multi-input-result dl,
  .pa-studio-center-lay-flat-result dl,
  .pa-studio-center-readiness-input-result dl,
  .pa-studio-center-make-it-work-result dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pa-studio-center-repair-result dl > div:first-child { grid-column: span 2; }
  .pa-studio-center-repair-result dl > div:last-child { grid-column: 1 / -1; }
}

@media (min-width: 821px) and (max-width: 1100px) and (max-height: 560px) {
  /* At 844x390 the inspector is a 380px right sheet. Constrain the card to the
     unoccluded stage at its left, with an 8px gutter on both sides. */
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-repair-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-multi-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-lay-flat-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-readiness-input-result:not([hidden]),
  .pa-studio-workspace-shell:has(.pa-workspace-inspector.is-open)
    .pa-studio-center-make-it-work-result:not([hidden]) {
    top: .5rem;
    left: .5rem;
    width: calc(100% - 380px - 1rem);
    max-height: calc(100% - 1rem);
    padding: .55rem .6rem;
    gap: .25rem;
    overflow: hidden;
    transform: none;
  }

  .pa-studio-center-multi-map { min-height: 3.5rem; max-height: 4.5rem; }

  .pa-studio-center-repair-result dl,
  .pa-studio-center-lay-flat-result dl,
  .pa-studio-center-readiness-input-result dl,
  .pa-studio-center-make-it-work-result dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
  }

  .pa-studio-center-repair-result dl > div {
    grid-column: auto;
    padding: .3rem .38rem;
  }

  .pa-studio-center-repair-result dl > div:first-child { grid-column: span 2; }
  .pa-studio-center-repair-result dl > div:last-child { grid-column: 1 / -1; }

  .pa-studio-center-repair-result [data-pa-repair-result-center-step],
  .pa-studio-center-repair-result [data-pa-repair-result-center-context],
  .pa-studio-center-repair-result > small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pa-studio-workspace-shell:has(.pa-studio-center-repair-result:not([hidden]))
    .pa-workspace-inspector > .pa-workspace-center-evidence {
    max-height: 5.75rem;
  }

  .pa-studio-workspace-shell:has(.pa-studio-center-repair-result:not([hidden]))
    .pa-workspace-inspector > .pa-workspace-center-evidence > p {
    -webkit-line-clamp: 1;
  }
}

/* Accessibility contrast contract for the light workspace chrome. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-skill-mode button:not(.is-active) {
  color: #596b7c !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-current-job > span,
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] #studioFindings > span {
  color: #075f69 !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-mode-rail button > small {
  color: #526578 !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-mode-rail button.is-active > small {
  color: #075f69 !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-statusbar {
  color: #586a7c;
}

/* Final dark-mode guardrail. Studio has several late, Light-first composition
   rules; keep their layout while restoring the canonical navy/teal contract. */
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] {
  --pa-background: var(--section-bg);
  --pa-border-color: var(--border);
  --pa-line: var(--border);
  --pa-muted-color: var(--text-muted);
  --pa-surface: var(--surface);
  --pa-surface-soft: var(--surface-hover);
  --pa-text: var(--text-main);
  --pa-text-muted: var(--text-body);
  --studio-accent: var(--bright-teal);
  --studio-panel: var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-controls {
  --pa-background: var(--section-bg);
  --pa-border-color: var(--border);
  --pa-line: var(--border);
  --pa-muted-color: var(--text-muted);
  --pa-surface: var(--surface);
  --pa-surface-soft: var(--surface-hover);
  --pa-text: var(--text-main);
  --pa-text-muted: var(--text-body);
  --studio-accent: var(--bright-teal);
  --studio-panel: var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-center .pa-studio-viewport-card {
  border-color: var(--border) !important;
  background: linear-gradient(155deg, var(--section-bg), var(--page-bg) 68%) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-findings-intro {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-findings-intro :is(strong, h1, h2, h3) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-plan-bar {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-plan-bar__status strong,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(.pa-studio-plan-bar, .pa-studio-inline-help) a {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-plan-bar__status span {
  border-left-color: var(--border) !important;
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-studio-skill-mode button:not(.is-active),
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail button > small,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-statusbar {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(.pa-studio-current-job, #studioFindings) > span,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-mode-rail button.is-active > small {
  color: var(--aqua-accent) !important;
}

/* Slice tools are deliberately Light-first above. In the Dark preference the
   inspector follows the same canonical navy/teal surface contract as Studio. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-dock-panel {
  --pa-text: var(--text-main);
  --pa-muted: var(--text-muted);
  --pa-text-muted: var(--text-muted);
  --pa-muted-color: var(--text-muted);
  --pa-line: var(--border);
  --pa-border-color: var(--border);
  --pa-panel: var(--surface);
  --pa-surface: var(--surface);
  --pa-surface-soft: var(--surface-hover);
  --pa-background: var(--section-bg);
  --studio-accent: var(--bright-teal);
  --bs-body-color: var(--text-body);
  --bs-border-color: var(--border);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-readiness {
  border-color: var(--border) !important;
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface)) !important;
  color: var(--text-body) !important;
  box-shadow: inset 3px 0 0 var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-readiness-head > span {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-readiness-head > strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-readiness-head > p,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-readiness > [data-pa-slice-status] {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-flags label,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-advanced {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-advanced summary {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-advanced summary small,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-fields label {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-fields input {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-result {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-result > div:first-child strong,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-result li strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-result dd {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-result li span,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-result li small {
  color: var(--text-muted) !important;
}

/* Late Light-first receipts and interactive tutorial chrome. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-statusbar > .pa-studio-dimensions {
  border-color: var(--border);
  background: var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-statusbar > .pa-studio-dimensions > div {
  border-right-color: var(--border);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-statusbar > .pa-studio-dimensions dt {
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-statusbar > .pa-studio-dimensions dd {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-tutorial-chooser, .pa-studio-tutorial-coach, .pa-studio-tutorial-complete) {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-body);
  box-shadow: 0 30px 80px rgba(8, 22, 32, .56);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-coach {
  border-color: var(--bright-teal);
  background: var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-chooser > header {
  border-bottom-color: var(--border);
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-center-evidence {
  background: var(--surface);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(
    .pa-studio-tutorial-chooser > header span,
    .pa-studio-tutorial-complete > span,
    .pa-studio-tutorial-coach > header > span
  ) {
  color: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-tutorial-chooser, .pa-studio-tutorial-complete, .pa-studio-tutorial-coach) h2 {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-tutorial-chooser p, .pa-studio-tutorial-coach > p, .pa-studio-tutorial-complete p) {
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(
    .pa-studio-tutorial-chooser > header > button,
    .pa-studio-tutorial-coach > header > button,
    .pa-studio-tutorial-actions button,
    .pa-studio-tutorial-complete button
  ) {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(
    .pa-studio-tutorial-chooser > header > button,
    .pa-studio-tutorial-coach > header > button,
    .pa-studio-tutorial-actions button,
    .pa-studio-tutorial-complete button
  ):is(:hover, :focus-visible) {
  border-color: var(--aqua-accent);
  background: var(--surface-hover);
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list > button {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(8, 22, 32, .34);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list > button:not(:disabled):is(:hover, :focus-visible) {
  border-color: var(--bright-teal);
  background: var(--surface-hover);
  box-shadow: 0 13px 30px rgba(8, 22, 32, .44);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list > button.is-unavailable {
  border-color: var(--border);
  background: var(--section-bg);
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list small {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list b {
  background: var(--surface-hover);
  color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list > button.is-unavailable b {
  background: var(--surface-elevated);
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-chooser > footer {
  border-top-color: var(--border);
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-chooser > footer a {
  color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-chooser > footer small {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-coach::before,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-progress > b > i {
  background: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-progress > span {
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-progress > b {
  background: var(--border);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-coach > small {
  border-left-color: var(--bright-teal);
  background: var(--surface-hover);
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-target {
  outline-color: var(--aqua-accent) !important;
  box-shadow: 0 0 0 10px rgba(8, 22, 32, .72), 0 0 0 15px rgba(112, 225, 220, .28) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-target.is-complete {
  outline-color: var(--aqua-accent) !important;
  box-shadow: 0 0 0 10px rgba(8, 22, 32, .72), 0 0 0 16px rgba(112, 225, 220, .32) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-complete > i {
  color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-complete button:last-child {
  border-color: var(--primary-teal);
  background: var(--primary-teal);
  color: var(--page-bg);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-complete button:last-child:is(:hover, :focus-visible) {
  border-color: var(--aqua-accent);
  background: var(--bright-teal);
  color: var(--page-bg);
}

/* Inspection, session, and center-stage receipts defined after the primary
   dark block keep their layout but use canonical dark color roles. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-toolbar {
  border-color: var(--border);
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-label {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-toolbar .pa-inspection-angle-group small {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-toolbar .pa-inspection-angle-buttons .btn-outline-secondary {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-toolbar
  .pa-inspection-angle-buttons .btn-outline-secondary:is(:hover, :focus-visible) {
  border-color: var(--aqua-accent) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-toolbar .pa-inspection-angle-buttons [aria-pressed="true"] {
  border-color: var(--bright-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
  box-shadow: 0 0 0 3px rgba(63, 208, 213, .18);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-model-slot {
  border-color: var(--border);
  background: var(--page-bg);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls {
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-main);
  box-shadow: 0 10px 28px rgba(8, 22, 32, .42);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary:focus-visible {
  outline-color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary > i {
  color: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary strong {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary small {
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-panel {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-body);
  box-shadow: 0 22px 60px rgba(8, 22, 32, .54);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-panel h3 {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-panel :is(p, label, output) {
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-toggle {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-warning {
  border-left-color: var(--border);
  background: var(--surface-hover);
  color: var(--text-body);
}

/* Access controls remain actionable so they can explain the available plan or
   credit path. Do not fade the entire Dark control: ancestor opacity blends
   otherwise-canonical navy and text tokens into unapproved green-gray paint. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-access-control--locked,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-access-control--locked:hover {
  opacity: 1;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-center-evidence {
  border-color: var(--aqua-accent);
  border-left-color: var(--aqua-accent);
  background-color: var(--page-bg);
  background-image: linear-gradient(135deg, var(--page-bg), var(--section-bg));
  color: var(--text-main);
  box-shadow: 0 18px 52px rgba(8, 22, 32, .56), 0 0 0 1px rgba(112, 225, 220, .12) inset;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-center-evidence > span {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-center-evidence > strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-center-evidence > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-center-evidence > small {
  border-top-color: var(--border);
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result:not([hidden]) {
  border-color: var(--aqua-accent);
  border-left-color: var(--aqua-accent);
  background: linear-gradient(135deg, var(--page-bg), var(--section-bg));
  color: var(--text-main);
  box-shadow: 0 18px 46px rgba(8, 22, 32, .56), 0 0 0 1px rgba(112, 225, 220, .14) inset;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result > span {
  color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result > strong,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result dd {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result dl > div {
  border-color: var(--border);
  background: var(--surface);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result dt,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result > small {
  color: var(--text-muted);
}

@keyframes pa-center-stage-reaction-dark {
  0% { box-shadow: 0 0 0 0 rgba(112, 225, 220, 0) inset; }
  35% { box-shadow: 0 0 0 5px rgba(112, 225, 220, .88) inset, 0 0 42px rgba(63, 208, 213, .38) inset; }
  100% { box-shadow: 0 0 0 1px rgba(112, 225, 220, .18) inset; }
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    .pa-studio-viewport-card.has-center-reaction,
    .pp-editor-canvas-shell.has-center-reaction,
    .pp-command-palette.has-center-reaction .pp-command-palette__surface,
    .pa-workspace-inspector.has-center-reaction,
    .pa-mesh-inspector-stage.has-center-reaction,
    .pa-studio-access-dialog__surface.has-center-reaction,
    .pa-studio-tutorial-center-evidence.has-center-reaction
  ) {
  animation-name: pa-center-stage-reaction-dark;
}

@media (prefers-reduced-motion: reduce) {
  html[data-pa-theme="dark"] body.pa-protected-workspace
    .pa-studio-workspace-shell :is(
      .pa-studio-viewport-card.has-center-reaction,
      .pp-editor-canvas-shell.has-center-reaction,
      .pp-command-palette.has-center-reaction .pp-command-palette__surface,
      .pa-workspace-inspector.has-center-reaction,
      .pa-mesh-inspector-stage.has-center-reaction,
      .pa-studio-access-dialog__surface.has-center-reaction,
      .pa-studio-tutorial-center-evidence.has-center-reaction
    ) {
    animation: none;
  }
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-estimate-explanation,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-review-facts {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-estimate-explanation > summary,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-review-facts > summary {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-ai-advisor .pa-studio-truth-note {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-ai-advisor .pa-studio-truth-note i {
  color: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-mesh-readout-measurement],
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-mesh-readout-measurement][data-measurement-state="armed"],
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement[data-measurement-state="first-point"] {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-mesh-readout-measurement][data-measurement-state="complete"],
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement[data-measurement-state="complete"] {
  border-color: var(--aqua-accent) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

/* Review-plan inspector content follows the dark panel instead of restoring
   its later Light-first cards and legacy green controls. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > span,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > b,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > b i {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-verdict > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body
  .pa-studio-dock-candidates button :is(span, small, em) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body
  .pa-studio-dock-candidates button:is(.is-selected, .is-recommended) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  box-shadow: 0 0 0 2px rgba(63, 208, 213, .16) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body
  .pa-studio-dock-candidates button:is(.is-selected, .is-recommended) :is(span, small, em) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-candidates button:disabled {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body
  .pa-studio-dock-candidates button:disabled :is(span, small, em) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-plan-note {
  border-color: var(--border);
  border-left-color: var(--bright-teal);
  background: var(--surface-hover);
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-plan-note :is(i, strong) {
  color: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-review-output {
  border-color: var(--border);
  border-left-color: var(--text-muted);
  background: var(--surface);
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-review-output[data-output-kind="settings"] {
  border-left-color: var(--primary-teal);
  background: var(--surface-hover);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-review-output > span,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-review-output > small {
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-review-output > strong {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body
  .pa-studio-dock-downloads [data-pa-dock-open-prepare] {
  border-color: var(--bright-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body
  .pa-studio-dock-downloads [data-pa-dock-download-settings] {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-downloads
  :is([data-pa-dock-open-prepare], [data-pa-dock-download-settings]):is(:hover, :focus-visible) {
  border-color: var(--aqua-accent) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 0 3px rgba(112, 225, 220, .2) !important;
}

/* Live Studio navigation overlays are created on demand. Their descendant
   controls must follow the dark parent instead of retaining Light defaults. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu__body h3 {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu__body a {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu__body a small,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a small {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu .pp-studio-site-menu__goal-navigation a span {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu__body a:is(:hover, :focus-visible, [aria-current="page"]) {
  border-color: var(--aqua-accent) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu__body a.is-primary {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-site-menu__body
  > nav[aria-label="Account, help, and business pages"] {
  border-top-color: var(--border);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-search {
  border-color: var(--border);
  background: var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-search input {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-search kbd {
  border-color: var(--border);
  background: var(--section-bg);
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-search-result {
  border-color: var(--aqua-accent);
  border-left-color: var(--aqua-accent);
  background: var(--page-bg);
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(8, 22, 32, .42);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-search-result strong {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-search-result span {
  color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-search-result small {
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-list,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-group + .pa-workspace-command-group {
  border-color: var(--border);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item {
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item:is(:hover, :focus-visible) {
  background: var(--surface-hover);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item > i {
  background: var(--section-bg);
  color: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item strong {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item small {
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item b {
  color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item[aria-disabled="true"]:hover,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item[data-workspace-availability="context-unavailable"]:hover {
  background: var(--section-bg);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-command-item:is(
    [aria-disabled="true"],
    [data-workspace-availability="prerequisite"],
    [data-workspace-availability="plan-locked"],
    [data-workspace-availability="context-unavailable"]
  ) > i {
  background: var(--surface-hover);
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu {
  border-color: var(--border);
  background: var(--surface-elevated);
  color: var(--text-body);
  box-shadow: 0 22px 60px rgba(8, 22, 32, .54);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu :is(a, .pa-workspace-tutorial-launch) {
  border-color: transparent;
  background: transparent;
  color: var(--text-body);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu .pa-workspace-tutorial-launch {
  border-color: var(--bright-teal);
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(8, 22, 32, .34);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu
  :is(a, .pa-workspace-tutorial-launch):is(:hover, :focus-visible) {
  border-color: var(--aqua-accent);
  background: var(--surface-hover);
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu
  :is(a, .pa-workspace-tutorial-launch) > i {
  color: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu
  :is(a, .pa-workspace-tutorial-launch) :is(strong, small) {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu
  :is(a, .pa-workspace-tutorial-launch) small {
  color: var(--text-muted);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu a.is-bible {
  border-top-color: var(--border);
  background: var(--section-bg);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu .pa-workspace-help-close {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-help-menu .pa-workspace-help-close:is(:hover, :focus-visible) {
  border-color: var(--aqua-accent);
  background: var(--primary-teal);
  color: var(--page-bg);
}

/* Studio theme/accessibility completion contract.
   Light keeps its established composition; only the two captions living on
   deliberately dark stage chips need a contrast correction. Dark uses the
   PrintPass navy foundations and teal/aqua interaction language. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-workspace-heading {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) small {
  color: #c9dce4 !important;
}

body.pa-protected-workspace > .pa-skip-link:is(:focus, :focus-visible) {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin: .75rem;
  max-width: calc(100vw - 1.5rem);
  transform: none;
  vertical-align: top;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-head {
  background: linear-gradient(rgba(15, 30, 39, .96) 10%, transparent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes {
  border-color: var(--border) !important;
  background: rgba(24, 50, 64, .88) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  box-shadow: 0 8px 24px rgba(8, 22, 32, .34);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) :is(strong, small) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) > i {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    [data-pa-credit-balance],
    summary[data-studio-command-owner="project.restore-details"] small,
    .pa-studio-dimensions dt,
    .pa-workspace-save-state,
    .pa-workspace-save-state > span
  ) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-findings button span > b {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  :is(.pa-nav-cta, .pa-studio-workspace-shell .btn-primary) {
  box-shadow: 0 14px 26px rgba(40, 184, 196, .22) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    .pa-studio-viewport-head span,
    .pa-studio-section-title span,
    .pa-studio-control-head > span:first-child,
    .pa-studio-decision > span,
    .pa-studio-compare article > span
  ) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    [data-tone="success"],
    [data-status="success"],
    [data-state="success"],
    .is-success,
    .pa-status-success
  ) {
  --bs-success: var(--bright-teal);
  --bs-success-rgb: 63, 208, 213;
  --bs-alert-color: var(--text-main);
  --bs-alert-bg: var(--surface-elevated);
  --bs-alert-border-color: var(--bright-teal);
  border-color: var(--bright-teal) !important;
  background-color: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    [data-tone="success"],
    [data-status="success"],
    [data-state="success"],
    .is-success,
    .pa-status-success
  ) :is(i, svg, strong, b) {
  color: var(--aqua-accent) !important;
}

/* Studio opaque text-surface closure.
   The live model is intentionally image/canvas backed. Text controls that sit
   over it own an opaque theme surface so contrast is deterministic in both
   themes and the Dark canvas never falls back to a green-tinted foundation. */
.pa-studio-workspace-shell .pa-studio-file-button__mark {
  position: relative;
  display: block !important;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  overflow: visible;
  color: currentColor !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
}

.pa-studio-workspace-shell .pa-studio-file-button__mark::before {
  content: "";
  position: absolute;
  top: .42rem;
  left: 50%;
  width: .16rem;
  height: .58rem;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.pa-studio-workspace-shell .pa-studio-file-button__mark::after {
  content: "";
  position: absolute;
  top: .08rem;
  left: 50%;
  width: 0;
  height: 0;
  border-right: .34rem solid transparent;
  border-bottom: .44rem solid currentColor;
  border-left: .34rem solid transparent;
  transform: translateX(-50%);
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-plan-bar {
  background: #ffffff !important;
  color: #17314a !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-studio-viewer-note],
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary {
  border-color: #65c4cb !important;
  background: #102a3a !important;
  color: #f7fdff !important;
  backdrop-filter: none !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-studio-viewer-note] :is(i, strong),
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary > span,
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary strong {
  background: #102a3a !important;
  color: #f7fdff !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary small {
  background: #102a3a !important;
  color: #c9dce4 !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions,
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions > div {
  background: #ffffff !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions :is(dt, dd) {
  background: transparent !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement {
  border-color: #65c4cb !important;
  background: #102a3a !important;
  color: #f7fdff !important;
  isolation: isolate;
  z-index: 3;
}

/* Preserve the established Light measurement states after the deterministic
   text-surface rule above. Border patterns keep the states distinguishable
   without depending on color alone. */
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh
  .pa-studio-mesh-measurement[data-measurement-state="armed"] {
  border-width: 2px !important;
  border-style: dashed !important;
  border-color: #1d98a5 !important;
  background: #dff9f8 !important;
  color: #075f68 !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh
  .pa-studio-mesh-measurement[data-measurement-state="first-point"] {
  border-width: 2px !important;
  border-style: dotted !important;
  border-color: #1d98a5 !important;
  background: #e8f8f8 !important;
  color: #075f68 !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh
  .pa-studio-mesh-measurement[data-measurement-state="complete"] {
  border-width: 3px !important;
  border-style: double !important;
  border-color: #006f79 !important;
  background: #006f79 !important;
  color: #ffffff !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar {
  border-color: #65c4cb !important;
  background: #102a3a !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
  backdrop-filter: none !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar > span,
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar > div {
  background: #102a3a !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar > span {
  color: #75d8d7 !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar button {
  background: #173f52 !important;
  color: #f7fdff !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar button:is(:hover, :focus-visible, .is-active, [aria-pressed="true"]) {
  background: #087f8c !important;
  color: #ffffff !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-plan-bar {
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-studio-viewer-note],
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-studio-viewer-note] :is(i, strong),
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary > span,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary strong {
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary small {
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions > div {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions :is(dt, dd) {
  background: transparent !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions dt {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar > .pa-studio-dimensions dd {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  isolation: isolate;
  z-index: 3;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
  backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar > span,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar > div {
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar > span {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar button {
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar button:is(:hover, :focus-visible) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar button:is(.is-active, [aria-pressed="true"]) {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes button:is(.is-active, [aria-pressed="true"]) {
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"] {
  position: relative;
  background-image: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

.pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"]::before,
.pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .85rem;
  height: 2px;
  border-radius: 999px;
  background: #17364b;
}

.pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"] {
  border-color: #cad9e1 !important;
  background-color: #ffffff !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"] {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"]::before,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector > header
  button[data-workspace-close="inspector"]::after {
  background: var(--aqua-accent);
}

/* WCAG 2.2 phone target clearance: the non-interactive measurement readout
   can cross the contextual-action band at 320px. Keep the quickbar in the
   upper stacking plane and preserve a complete 44px hit region for the two
   inspection actions that occupy that intersection. */
@media (width <= 700px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-workspace-quickbar {
    isolation: isolate;
    z-index: 24;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-workspace-quickbar > [data-workspace-quickbar-actions] {
    position: relative;
    z-index: 1;
    gap: 6px;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-workspace-quickbar button[data-workspace-route="inspect.measure"],
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-workspace-quickbar button[data-workspace-route="inspect.layers"] {
    position: relative;
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    isolation: isolate;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-studio-mesh .pa-studio-mesh-measurement {
    pointer-events: none;
  }
}

/* Studio phone geometry closure. The responsive shell moves dimensions out of
   the footer and onto the viewer, so keep that receipt opaque in both themes
   and place the non-interactive measurement clear of the quick action band. */
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions,
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions > div {
  background: #ffffff !important;
  backdrop-filter: none !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions :is(dt, dd) {
  background: transparent !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions dt {
  color: #526b7a !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions dd {
  color: #17364b !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions > div {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions :is(dt, dd) {
  background: transparent !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions dt {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-dimensions dd {
  color: var(--text-main) !important;
}

.pa-studio-workspace-shell .pa-studio-model-session-controls > summary small {
  position: relative;
  z-index: 1;
  display: block;
  padding-block: 2px;
  isolation: isolate;
}

.pa-studio-workspace-shell .pa-studio-model-session-controls,
.pa-studio-workspace-shell .pa-studio-model-session-controls > summary {
  overflow: hidden;
  border-radius: .55rem;
  backdrop-filter: none !important;
}

.pa-studio-workspace-shell .pa-studio-model-session-controls > summary {
  contain: paint;
}

.pa-studio-workspace-shell .pa-studio-model-session-controls > summary > span {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* The viewer heading and its compact visualization buttons sit on the dark
   technical stage in both site themes. Give each text node an exact surface
   so contrast does not depend on the stage artwork or its former gradient. */
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-head,
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-head :is(span[data-pa-model-origin], h2[data-pa-studio-file-name]),
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes,
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes button {
  background: #102a3a !important;
  backdrop-filter: none !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-head :is(span[data-pa-model-origin], h2[data-pa-studio-file-name]),
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes button {
  color: #f7fdff !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-head,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-head :is(span[data-pa-model-origin], h2[data-pa-studio-file-name]),
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes button {
  background: var(--surface-elevated) !important;
  backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-head :is(span[data-pa-model-origin], h2[data-pa-studio-file-name]),
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes button {
  color: var(--text-main) !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes button:is(.is-active, [aria-pressed="true"]) {
  background: #087f8c !important;
  color: #ffffff !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-view-modes button:is(.is-active, [aria-pressed="true"]) {
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

@media (width <= 700px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-studio-mesh .pa-studio-mesh-measurement {
    top: calc(100% + 64px);
    right: 0;
    bottom: auto;
  }
}

/* Studio runtime obscuration closure. Keep the filename glyph box inside its
   own opaque heading surface instead of letting its ink extend into the
   surrounding viewer layer. */
.pa-studio-workspace-shell
  .pa-studio-viewport-head h2[data-pa-studio-file-name] {
  line-height: 1.45 !important;
}

@media (width <= 700px) {
  body.pa-protected-workspace
    .pa-studio-workspace-shell .pa-workspace-top-actions
    .pa-workspace-troubleshoot {
    display: none !important;
  }
}

/* Slice owns the center on small screens. Collapse the tall model heading to
   the six mode buttons so its absolute layer cannot cover Step 2 controls. */
@media (max-width: 720px) {
  .pa-studio-workspace-shell.is-gcode-preview .pa-studio-viewport-head {
    gap: 0 !important;
    padding: .35rem .6rem .45rem !important;
    background: #102a3a !important;
  }

  .pa-studio-workspace-shell.is-gcode-preview .pa-studio-viewport-head > div:first-child {
    display: none !important;
  }

  .pa-studio-workspace-shell.is-gcode-preview .pa-studio-gcode-stage {
    inset: 7.25rem .6rem .6rem !important;
  }
}

/* The compact brand fallback has a real button name already. Remove its
   aria-hidden text glyph from contrast evaluation and paint the same mark as
   presentation-only CSS content. */
.pa-studio-workspace-shell
  .pa-workspace-brand-button > span[aria-hidden="true"] {
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
}

.pa-studio-workspace-shell
  .pa-workspace-brand-button > span[aria-hidden="true"]::before {
  content: "3D";
  display: block;
  color: #17364b;
  font-size: 1rem;
  line-height: 1;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell
  .pa-workspace-brand-button > span[aria-hidden="true"]::before {
  color: var(--text-main);
}

/* Studio text-bearing CTA closure. Keep the established Light and Dark action
   colors, but remove gradients beneath text so contrast has one exact surface. */
html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-commandbar .pa-studio-file-button {
  border-color: #05656e !important;
  background: #087784 !important;
  color: #ffffff !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-file-button__mark {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-commandbar .pa-studio-file-button:is(:hover, :focus-visible, :active) {
  border-color: #045963 !important;
  background: #086874 !important;
  color: #ffffff !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-commandbar .pa-studio-file-button {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
  -webkit-text-fill-color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-file-button__mark {
  color: var(--page-bg) !important;
  -webkit-text-fill-color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-commandbar .pa-studio-file-button:is(:hover, :focus-visible, :active) {
  border-color: var(--aqua-accent) !important;
  background: var(--bright-teal) !important;
  color: #081620 !important;
  -webkit-text-fill-color: #081620 !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher {
  gap: .45rem;
  min-height: 4rem;
  padding: .375rem;
  border-color: #d8fffb !important;
  background: linear-gradient(135deg, #a4f3ed 0%, #64dcd4 58%, #4bc8c5 100%) !important;
  color: #082f37 !important;
  box-shadow:
    0 0 0 4px rgba(7, 85, 95, .16),
    0 18px 42px rgba(0, 55, 78, .32);
}

html[data-pa-theme="light"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher:is(:hover, :focus-visible, :active) {
  border-color: #ffffff !important;
  background: linear-gradient(135deg, #d8fffb 0%, #87ebe4 54%, #64dcd4 100%) !important;
  color: #082f37 !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher {
  gap: .45rem;
  min-height: 4rem;
  padding: .375rem;
  border-color: var(--bright-teal) !important;
  background: linear-gradient(135deg, var(--aqua-accent) 0%, var(--bright-teal) 54%, var(--primary-teal) 100%) !important;
  color: var(--page-bg) !important;
  box-shadow:
    0 0 0 1px rgba(63, 208, 213, .18),
    0 18px 42px rgba(8, 22, 32, .48);
}

html[data-pa-theme="dark"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher:is(:hover, :focus-visible, :active) {
  border-color: var(--aqua-accent) !important;
  background: linear-gradient(135deg, var(--aqua-accent) 0%, var(--bright-teal) 64%, var(--primary-teal) 100%) !important;
  color: var(--page-bg) !important;
}

/* Keep the purpose-built focal icon and center both text lines inside one
   opaque copy surface. The outer gradient supplies depth without sitting
   directly behind text, so strict contrast remains deterministic. */
body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__icon {
  display: grid !important;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: #0b3d46 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: 0 0 0 1px rgba(8, 47, 55, .12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__icon::before {
  content: "✦";
  display: block;
  color: #9ef4f6;
  -webkit-text-fill-color: #9ef4f6;
  font-size: 1rem;
  line-height: 1;
}

html[data-pa-theme="dark"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__icon {
  border-color: var(--border);
  background: var(--page-bg) !important;
  box-shadow: 0 0 0 1px rgba(8, 22, 32, .18);
}

html[data-pa-theme="dark"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__icon::before {
  color: var(--aqua-accent);
  -webkit-text-fill-color: var(--aqua-accent);
}

body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__copy {
  display: grid;
  place-content: center;
  justify-items: center;
  align-self: stretch;
  min-height: 2.75rem;
  padding: .4rem .82rem .44rem;
  border-radius: 999px;
  text-align: center;
}

html[data-pa-theme="light"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__copy {
  background: #64dcd4 !important;
  background-image: none !important;
  color: #082f37 !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__copy {
  background: var(--bright-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher__copy > :is(small, strong) {
  position: static;
  z-index: auto;
  display: block;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-pa-theme="light"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher:is(:hover, :focus-visible, :active)
  .pp-direct-editor-launcher__copy {
  background: #87ebe4 !important;
  background-image: none !important;
  color: #082f37 !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher:is(:hover, :focus-visible, :active)
  .pp-direct-editor-launcher__copy {
  background: var(--bright-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

body.pa-protected-workspace:has(.pa-studio-workspace-shell)
  .pp-direct-editor-launcher:is(:hover, :focus-visible)
  .pp-direct-editor-launcher__icon {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 5px 14px rgba(8, 22, 32, .28);
}

/* Protected Studio is its own full-viewport application. Retire the generic
   app-page gradient and translucent legacy toolbar only inside this shell. */
html[data-pa-theme="dark"] body.pa-protected-workspace.pa-app-page:has(.pa-studio-workspace-shell) {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  backdrop-filter: none !important;
}

/* Dark Studio channel-role closure. Keep brand, link, focus, and technical
   model accents teal; normalize only ordinary text, destructive copy, opaque
   receipts, and ambient shadows to the PrintPass navy foundation channels. */
html[data-pa-theme="dark"] body.pa-protected-workspace > .pa-skip-link {
  box-shadow: 0 16px 42px rgba(8, 22, 32, .24) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell > .pa-workspace-heading {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-mesh-status] {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) {
  backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-model-session-clear] {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell [data-pa-model-session-clear]:is(:hover, :focus-visible, :active) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-commandbar .pa-studio-file-button {
  box-shadow: 0 14px 26px rgba(8, 22, 32, .22) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-viewport-card {
  box-shadow: 0 30px 70px rgba(8, 22, 32, .19) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh {
  box-shadow: inset 0 1px 0 rgba(8, 22, 32, .92) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar {
  box-shadow: 0 12px 30px rgba(8, 22, 32, .12) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-mesh .pa-studio-mesh-measurement {
  box-shadow: 0 1px 3px rgba(8, 22, 32, .22) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-mesh-viewer-canvas[data-pa-theme-media-host="immersive"] {
  background-color: var(--surface) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  background-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell #studioJob.pa-studio-current-job {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-findings .pa-studio-finding-dot {
  border: 1px solid var(--text-main) !important;
  border-radius: 2px !important;
  background: var(--bright-teal) !important;
  box-shadow: none !important;
  transform: rotate(45deg);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar span:first-child i {
  box-shadow: 0 0 0 3px rgba(8, 22, 32, .36) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-quickbar {
  box-shadow: 0 12px 34px rgba(8, 22, 32, .34) !important;
}

/* Protected Studio final Dark paint authority. Deferred panels and transient
   receipts are not present in the representative route screenshot, so each
   state closes its own opaque canonical surface without ambient compositing. */
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-studio-commandbar .pa-studio-file-button,
  .pa-workspace-goal-rail [data-pa-run-make-it-work],
  .pa-workspace-center [data-pa-plan-lay-flat],
  .pa-workspace-center [data-pa-prep-download]
) {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell :is(
  .pa-studio-commandbar .pa-studio-file-button,
  .pa-workspace-goal-rail [data-pa-run-make-it-work],
  .pa-workspace-center [data-pa-plan-lay-flat],
  .pa-workspace-center [data-pa-prep-download]
):is(:hover, :focus-visible, :active) {
  border-color: var(--aqua-accent) !important;
  background: var(--bright-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-center,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-center .pa-studio-viewport-card {
  background: var(--page-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-mode-rail button.is-active,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-readiness {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector .pa-studio-slice-readiness {
  background: var(--surface-elevated) !important;
  background-image: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(.pa-studio-layer-stage, .pa-studio-gcode-stage).is-inspection-focused {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(.pa-inspection-toolbar, .is-inspection-focused .pa-inspection-toolbar) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-inspection-toolbar .pa-inspection-angle-buttons [aria-pressed="true"] {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-tutorial-scrim {
  background: var(--page-bg) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-tutorial-chooser, .pa-studio-tutorial-coach, .pa-studio-tutorial-complete) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-chooser > header {
  background: var(--surface-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list > button,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list > button:not(:disabled):is(:hover, :focus-visible) {
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-track-list > button.is-unavailable {
  opacity: 1;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-target,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-tutorial-target.is-complete {
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-controls > summary,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-model-session-panel {
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(.pa-workspace-center-evidence, .pa-studio-center-result:not([hidden])) {
  border-color: var(--aqua-accent) !important;
  background: var(--page-bg) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-center-result dl > div {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-center-preview-kind] .pa-studio-viewport-card::after {
  border-color: var(--aqua-accent) !important;
  background: var(--section-bg) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    .pa-studio-viewport-card.has-center-reaction,
    .pa-workspace-inspector.has-center-reaction,
    .pa-mesh-inspector-stage.has-center-reaction,
    .pa-studio-tutorial-center-evidence.has-center-reaction
  ) {
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body
  .pa-studio-dock-candidates button:is(.is-selected, .is-recommended),
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-dock-downloads
  :is([data-pa-dock-open-prepare], [data-pa-dock-download-settings]):is(:hover, :focus-visible) {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    .pa-workspace-command-search-result,
    .pa-workspace-help-menu,
    .pa-workspace-help-menu .pa-workspace-tutorial-launch,
    .pa-studio-model-session-controls > summary,
    .pa-studio-model-session-panel
  ) {
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) {
  background: var(--surface-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace > .pa-skip-link,
html[data-pa-theme="dark"] body.pa-protected-workspace
  :is(.pa-nav-cta, .pa-studio-workspace-shell .btn-primary),
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is(
    .pa-studio-viewport-card,
    .pa-studio-mesh,
    .pa-studio-mesh .pa-mesh-viewer-toolbar,
    .pa-studio-mesh .pa-studio-mesh-measurement,
    .pa-workspace-quickbar
  ),
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-statusbar span:first-child i {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .driver-popover.pa-driver-popover {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .driver-popover.pa-driver-popover :is(.driver-popover-title, .pa-tour-heading) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .driver-popover.pa-driver-popover :is(
    .driver-popover-description,
    .pa-tour-copy,
    .driver-popover-progress-text
  ) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .driver-popover.pa-driver-popover .driver-popover-footer-btn {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

/* Studio representative accessibility closure.
   Keep the native file input operable while removing it from the painted label
   geometry so contrast analysis sees the authored upload control, not two
   overlapping controls. */
.pa-studio-workspace-shell .pa-studio-file-button > input[data-pa-studio-file] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pa-studio-workspace-shell .pa-studio-file-button:has(input[data-pa-studio-file]:focus-visible) {
  outline: 3px solid #087f8c !important;
  outline-offset: 2px !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-primary-action > span,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-primary-action > i,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-primary-action > i::before {
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content .pa-studio-workspace-shell
  .pa-workspace-primary-action > span,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content .pa-studio-workspace-shell
  .pa-workspace-primary-action > i,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content .pa-studio-workspace-shell
  .pa-workspace-primary-action > i::before {
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell button[data-studio-command-owner="mode.inspect"] > small,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-findings button small,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-findings-intro > i::before,
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-findings button > i::before {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content .pa-studio-workspace-shell
  button[data-studio-command-owner="mode.inspect"] > small,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content .pa-studio-workspace-shell
  .pa-studio-findings button small,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content .pa-studio-workspace-shell
  .pa-studio-findings-intro > i::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content .pa-studio-workspace-shell
  .pa-studio-findings button > i::before {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content#main-content .pa-studio-workspace-shell
  .pa-studio-file-button > input[data-pa-studio-file] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* The consent copy and its actions occupy independent opaque paint layers in
   protected Studio. This prevents the fixed banner from producing ambiguous
   contrast samples at tablet and mobile widths. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-banner__copy {
  position: relative !important;
  z-index: 2 !important;
  isolation: isolate !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  > [data-pa-cookie-banner].pa-cookie-banner #pa-cookie-banner-description {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  padding-block: .0625rem !important;
  background: transparent !important;
  background-image: none !important;
  isolation: isolate !important;
  transform: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-choice-form {
  position: relative !important;
  z-index: 1 !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  > [data-pa-cookie-banner].pa-cookie-banner {
  position: relative !important;
  inset: auto !important;
  z-index: 5 !important;
  width: min(72rem, calc(100% - 2rem)) !important;
  max-height: none !important;
  margin: 1rem auto 0 !important;
  overflow: visible !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  > [data-pa-cookie-banner].pa-cookie-banner #pa-cookie-banner-description {
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  > [data-pa-cookie-banner].pa-cookie-banner + .pa-main {
  margin-top: 2rem !important;
}

/* The Studio shell normally owns the viewport. While the consent decision is
   present, let the banner and shell participate in document flow so the fixed
   workspace cannot paint over an essential privacy control. Removing the
   banner restores the normal fixed, application-style shell automatically. */
html:has(body.pa-protected-workspace > [data-pa-cookie-banner].pa-cookie-banner:not([hidden])) {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.pa-protected-workspace:has(> [data-pa-cookie-banner].pa-cookie-banner:not([hidden])) {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.pa-protected-workspace:has(> [data-pa-cookie-banner].pa-cookie-banner:not([hidden]))
  > .pa-main {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 2rem 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.pa-protected-workspace:has(> [data-pa-cookie-banner].pa-cookie-banner:not([hidden]))
  .pa-studio-workspace-shell {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
}

@media (min-width: 48rem) and (max-width: 56.25rem) {
  html[data-pa-theme="light"] body.pa-protected-workspace .pa-helpbot-launcher > span {
    position: relative !important;
    z-index: 2 !important;
    display: inline-block !important;
    background: #fbfdfe !important;
    background-image: none !important;
    isolation: isolate !important;
  }

  html[data-pa-theme="light"] body.pa-protected-workspace .pa-helpbot-launcher > i {
    display: none !important;
  }
}

@media (max-width: 47.99rem) {
  html[data-pa-theme="light"] body.pa-protected-workspace
    .pa-studio-workspace-shell .pa-workspace-mode-rail {
    background: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
  }

  html[data-pa-theme="light"] body.pa-protected-workspace
    .pa-studio-workspace-shell .pa-workspace-mode-rail > button::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
}

@media (min-width: 64rem) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
    #main-content#main-content#main-content .pa-studio-workspace-shell
    button[data-workspace-mode="prepare"] > small,
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
    #main-content#main-content#main-content .pa-studio-workspace-shell
    .pa-workspace-mode-more > span {
    display: block !important;
    white-space: nowrap !important;
    background: transparent !important;
    background-image: none !important;
    transform: none !important;
  }
}

/* Studio surface ownership contract.
   Informational UI lives in layout; only controls tied to the 3D scene may
   float over the canvas. Durable results belong to the inspector, model and
   recovery tools belong to their inspector routes, and one compact activity
   lane shares the stage footer with contextual actions. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-center {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-center > .pa-studio-workbench {
  grid-row: 1;
  height: auto !important;
}

.pa-workspace-stage-footer {
  position: relative;
  z-index: 20;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 10px;
  border-top: 1px solid rgba(149, 205, 211, .24);
  background: #081c29;
}

.pa-studio-workspace-shell .pa-workspace-stage-footer > .pa-workspace-quickbar {
  position: static;
  inset: auto;
  max-width: 100%;
  margin: 0;
  padding: 3px;
  border-color: rgba(170, 205, 210, .2);
  background: #102a3a !important;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

.pa-studio-workspace-shell .pa-workspace-stage-footer > .pa-workspace-quickbar > span,
.pa-studio-workspace-shell .pa-workspace-stage-footer > .pa-workspace-quickbar > div {
  background: transparent !important;
}

.pa-workspace-inspector {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.pa-workspace-result-shelf {
  min-width: 0;
  max-height: min(45dvh, 430px);
  padding: 10px;
  overflow: auto;
  border-bottom: 1px solid var(--ws3-line);
  background: #eef7f7;
}

.pa-workspace-result-shelf__body {
  min-width: 0;
}

.pa-workspace-result-shelf .pa-studio-center-result:not([hidden]) {
  position: static !important;
  inset: auto !important;
  z-index: auto;
  width: 100% !important;
  max-height: none !important;
  margin: 0;
  padding: .75rem;
  overflow: visible !important;
  border-radius: .6rem;
  pointer-events: auto;
  transform: none !important;
  animation: none !important;
}

.pa-workspace-result-shelf .pa-studio-center-result dl,
.pa-workspace-result-shelf .pa-studio-center-repair-result dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pa-workspace-result-shelf .pa-studio-center-result dl > div,
.pa-workspace-result-shelf .pa-studio-center-repair-result dl > div {
  grid-column: auto;
}

.pa-workspace-result-shelf .pa-studio-center-result dl > div:last-child {
  grid-column: 1 / -1;
}

.pa-workspace-inspector > .pa-workspace-center-evidence:not([hidden]) {
  position: static !important;
  inset: auto !important;
  z-index: auto;
  grid-row: 5;
  width: 100%;
  max-height: 7.5rem;
  padding: .55rem .7rem .6rem;
  overflow: hidden;
  border-right: 0;
  border-bottom: 0;
  border-left-width: 4px;
  border-radius: 0;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}

.pa-workspace-inspector > .pa-workspace-center-evidence > p,
.pa-workspace-inspector > .pa-workspace-center-evidence > small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-workspace-inspector > .pa-workspace-center-evidence > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pa-workspace-inspector > .pa-workspace-center-evidence > small {
  white-space: nowrap;
}

.pa-workspace-session-context {
  display: grid;
  gap: 10px;
}

.pa-workspace-session-context > * {
  min-width: 0;
  width: 100%;
  margin: 0 !important;
}

.pa-workspace-session-context > .pa-studio-sample-note {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #b9dcdf;
  border-left: 3px solid #168b94;
  border-radius: 8px;
  background: #eef8f8;
  color: #173047;
  font-size: .74rem;
  line-height: 1.42;
}

.pa-workspace-session-context > .pa-studio-sample-note > i {
  margin-top: 2px;
  color: #087f8c;
}

.pa-workspace-session-context > .pa-studio-sample-note > .btn {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  margin: 0 !important;
  white-space: normal;
}

.pa-workspace-session-context > .pa-studio-analysis-track {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px;
}

.pa-workspace-session-context > .pa-studio-analysis-track > span {
  min-width: 0;
  padding: 8px 10px;
}

.pa-workspace-session-context > :is(.pa-studio-import, .pa-studio-import-error) {
  display: grid !important;
}

.pa-workspace-session-context .pa-studio-import :is(
  .pa-studio-import-head,
  .pa-studio-import-body,
  .pa-studio-import-facts
) {
  grid-template-columns: minmax(0, 1fr);
}

.pa-workspace-session-context
  .pa-studio-model-session-controls[data-workspace-placement="session-inspector"] {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100%;
  overflow: visible !important;
  color: inherit;
}

.pa-workspace-session-context
  .pa-studio-model-session-controls[data-workspace-placement="session-inspector"] > summary {
  width: 100%;
  max-width: none;
  overflow: visible;
}

.pa-workspace-session-context
  .pa-studio-model-session-controls[data-workspace-placement="session-inspector"]
  > .pa-studio-model-session-panel {
  position: static;
  inset: auto;
  width: 100%;
  max-height: none;
  margin-top: 8px;
  box-shadow: none;
}

.pa-workspace-inspector-body
  .pa-model-editor[data-workspace-placement="model-tools-inspector"] {
  position: static;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  transform: none;
  box-shadow: none;
  backdrop-filter: none;
}

.pa-workspace-inspector-body
  .pa-model-editor[data-workspace-placement="model-tools-inspector"].is-collapsed {
  width: 100%;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row {
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row > :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) {
  min-width: 0;
  min-height: 0;
  width: auto;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  background-image: none !important;
  color: #f4fbff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row > :first-child::after {
  content: "·";
  margin-left: 8px;
  color: #7fa8b5;
  font-weight: 900;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row > :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state)
  > i {
  color: #73e4e6 !important;
  font-size: .78rem;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row > :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state)
  strong {
  color: #f4fbff !important;
  font-size: .68rem;
  line-height: 1.2;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row > :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state)
  small {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-stage-footer {
  border-color: var(--border);
  background: var(--section-bg);
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-workspace-result-shelf {
  border-color: var(--border);
  background: var(--surface);
}

@media (max-width: 700px) {
  .pa-workspace-stage-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px 8px 6px;
  }

  .pa-studio-workspace-shell .pa-workspace-stage-footer > .pa-workspace-quickbar {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .pa-workspace-stage-footer .pa-workspace-quickbar > div {
    min-width: max-content;
  }

  .pa-workspace-stage-footer .pa-workspace-quickbar > div
    > button:nth-child(4):not(.pa-workspace-quickbar-more) {
    display: block;
  }

  .pa-workspace-result-shelf {
    max-height: 36dvh;
    padding: 8px;
  }

  .pa-studio-workspace-shell .pa-studio-center-readiness-input-result:not([hidden]) {
    width: calc(100% - 1rem);
    max-width: calc(100vw - 1rem);
    max-height: min(52dvh, calc(100% - 1rem));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-studio-stage-state-row {
    display: flex;
    max-width: calc(100vw - 32px);
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
    .pa-studio-stage-state-row > :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state) {
    width: auto;
    padding-inline: 0;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-workarea {
    grid-template-columns: 56px minmax(0, 1fr) minmax(300px, 36vw);
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"].is-inspector-collapsed .pa-workspace-workarea {
    grid-template-columns: 56px minmax(0, 1fr) 0;
  }

  .pa-workspace-inspector {
    position: relative;
    z-index: 14;
    inset: auto;
    width: auto;
    height: 100% !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    transform: none;
  }

  .pa-studio-workspace-shell.is-inspector-collapsed .pa-workspace-inspector {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
  }
}

/* Layers and Slice deliberately use a light technical sheet even when the
   surrounding Studio chrome is dark. This keeps the source-model handoff and
   generated paths in the same unmistakable workspace the user selected. */
.pa-studio-workspace-shell [data-pa-layer-stage] .pa-studio-layer-canvas,
.pa-studio-workspace-shell [data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap,
.pa-studio-workspace-shell [data-pa-layer-stage] .pa-studio-layer-canvas > .pa-inspection-model-slot,
.pa-studio-workspace-shell [data-pa-gcode-stage] .pa-studio-gcode-canvas-wrap > .pa-inspection-model-slot {
  border-color: #a9d0d2 !important;
  background-color: #eefafa !important;
  background-image:
    linear-gradient(rgba(9, 118, 112, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 118, 112, 0.11) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}

.pa-studio-workspace-shell :is([data-pa-layer-stage], [data-pa-gcode-stage])
  .pa-inspection-model-slot :is([data-pa-studio-live-viewer], .pa-mesh-viewer-canvas) {
  background: transparent !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell :is([data-pa-layer-stage], [data-pa-gcode-stage])
  .pa-inspection-model-slot .pa-mesh-viewer-canvas {
  background-color: transparent !important;
  background-image: none !important;
}

/* Tool workspaces already carry their own in-flow state and receipt. Suppress
   the older global preview badge here so it cannot float over those controls. */
.pa-studio-workspace-shell:has([data-pa-layer-stage]:not([hidden])) .pa-studio-viewport-card::after,
.pa-studio-workspace-shell:has([data-pa-gcode-stage]:not([hidden])) .pa-studio-viewport-card::after {
  display: none !important;
}

/* Layers is also a document-like workflow inside the fixed application shell.
   Give it the same persistent right-edge scrollbar, keyboard focus treatment,
   and inspector clearance as Slice so the section controls below the preview
   are always reachable on desktop, tablet, and phone. */
.pa-studio-workspace-shell .pa-studio-layer-stage {
  position: absolute !important;
  direction: ltr;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #087f8c #dcecef;
  border-inline-end: 0 !important;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.pa-studio-workspace-shell.is-layer-preview .pa-studio-layer-stage {
  width: auto !important;
}

@media (min-width: 701px) {
  .pa-studio-workspace-shell.is-layer-preview:not(.is-inspector-collapsed)
    .pa-studio-layer-stage {
    inset-inline-end: 1rem !important;
  }
}

.pa-studio-workspace-shell.is-inspector-collapsed .pa-studio-layer-stage {
  inset-inline-end: .6rem !important;
}

.pa-studio-workspace-shell .pa-studio-layer-stage:focus-visible {
  outline: 3px solid #23aab4;
  outline-offset: -3px;
}

.pa-studio-workspace-shell .pa-studio-layer-stage::-webkit-scrollbar {
  width: 20px;
}

.pa-studio-workspace-shell .pa-studio-layer-stage::-webkit-scrollbar-track {
  background: #dcecef;
  box-shadow: inset 1px 0 #91cbd0;
}

.pa-studio-workspace-shell .pa-studio-layer-stage::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid #dcecef;
  border-radius: 999px;
  background: #087f8c;
  background-clip: padding-box;
}

.pa-studio-workspace-shell .pa-studio-layer-stage::-webkit-scrollbar-thumb:hover {
  background: #066c76;
  background-clip: padding-box;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-layer-stage {
  scrollbar-color: #28b8c4 #152935;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-layer-stage::-webkit-scrollbar-track {
  background: #152935;
  box-shadow: inset 1px 0 #29434c;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-layer-stage::-webkit-scrollbar-thumb {
  border-color: #152935;
  background: #28b8c4;
  background-clip: padding-box;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-layer-stage::-webkit-scrollbar-thumb:hover {
  background: #3fd0d5;
  background-clip: padding-box;
}

/* Slice is a document-like workflow inside a fixed application shell. Keep a
   persistent, easy-to-grab scrollbar on the conventional right edge for users
   without a wheel, with normal left-to-right content throughout. Its box ends
   before the inspector's left-cast shadow, so the real track stays painted. */
.pa-studio-workspace-shell .pa-studio-gcode-stage {
  direction: ltr;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #087f8c #dcecef;
  border-inline-end: 0 !important;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

/* An early center-width normalization sets this absolutely positioned stage to
   width:100%, which makes LTR layout ignore its right inset and pushes the
   native scrollbar beneath the inspector. Restore the intended left/right-
   governed absolute box at higher specificity on every breakpoint. */
.pa-studio-workspace-shell.is-gcode-preview .pa-studio-gcode-stage {
  width: auto !important;
}

/* Keep the original one-rem desktop/tablet breathing room ahead of the
   side-by-side inspector. Phone Slice retains its compact .6rem shorthand. */
@media (min-width: 701px) {
  .pa-studio-workspace-shell.is-gcode-preview:not(.is-inspector-collapsed)
    .pa-studio-gcode-stage {
    inset-inline-end: 1rem !important;
  }
}

.pa-studio-workspace-shell.is-inspector-collapsed .pa-studio-gcode-stage {
  inset-inline-end: .6rem !important;
}

.pa-studio-workspace-shell .pa-studio-gcode-stage:focus-visible {
  outline: 3px solid #23aab4;
  outline-offset: -3px;
}

.pa-studio-workspace-shell .pa-studio-gcode-stage::-webkit-scrollbar {
  width: 20px;
}

.pa-studio-workspace-shell .pa-studio-gcode-stage::-webkit-scrollbar-track {
  background: #dcecef;
  box-shadow: inset 1px 0 #91cbd0;
}

.pa-studio-workspace-shell .pa-studio-gcode-stage::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid #dcecef;
  border-radius: 999px;
  background: #087f8c;
  background-clip: padding-box;
}

.pa-studio-workspace-shell .pa-studio-gcode-stage::-webkit-scrollbar-thumb:hover {
  background: #066c76;
  background-clip: padding-box;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-gcode-stage {
  scrollbar-color: #28b8c4 #152935;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-gcode-stage::-webkit-scrollbar-track {
  background: #152935;
  box-shadow: inset 1px 0 #29434c;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-gcode-stage::-webkit-scrollbar-thumb {
  border-color: #152935;
  background: #28b8c4;
  background-clip: padding-box;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-workspace-shell .pa-studio-gcode-stage::-webkit-scrollbar-thumb:hover {
  background: #3fd0d5;
  background-clip: padding-box;
}

.pa-studio-slice-next {
  display: grid;
  gap: .2rem;
  margin: .05rem 0 .65rem;
  padding: .68rem .78rem;
  border: 1px solid #91cbd0;
  border-left: 5px solid #087f8c;
  border-radius: .55rem;
  background: #eef9fa;
  color: #17384b;
}

.pa-studio-slice-next > span {
  color: #08717b;
  font-size: max(.62rem, 11px);
  font-weight: 850;
  letter-spacing: .09em;
}

.pa-studio-slice-next > strong {
  font-size: max(.82rem, 14px);
  line-height: 1.3;
}

.pa-studio-slice-next > p,
.pa-studio-slice-next > small {
  margin: 0 !important;
  color: #35586a !important;
  line-height: 1.42 !important;
}

.pa-studio-slice-next > p {
  font-size: max(.72rem, 12px) !important;
}

.pa-studio-slice-next > small {
  padding-top: .28rem;
  border-top: 1px solid #c6e1e3;
  font-size: max(.66rem, 11px) !important;
}

.pa-studio-slice-next[data-next-state="generate"],
.pa-studio-slice-next[data-next-state="complete"] {
  border-left-color: #228259;
  background: #eff9f3;
}

.pa-studio-slice-next[data-next-state$="-working"] {
  border-left-color: #b87d11;
  background: #fff8e8;
}

.pa-studio-native-slice-readiness-result {
  margin-top: .25rem;
}

.pa-studio-slice-continue {
  width: 100%;
  min-height: 44px;
}

.pa-studio-slice-primary-slot {
  display: grid;
  gap: .45rem;
}

[data-pa-slice-generation-slot] {
  display: contents;
}

.pa-studio-workspace-shell [data-pa-mesh-touch-action="scroll"] .pa-mesh-viewer-canvas,
.pa-studio-workspace-shell [data-pa-mesh-touch-action="scroll"] .pa-mesh-viewer-canvas canvas {
  touch-action: pan-y pinch-zoom !important;
}

@media (max-width: 700px), (max-height: 700px) {
  .pa-studio-workspace-shell [data-pa-mesh-touch-action="tablet-orbit"] .pa-mesh-viewer-canvas,
  .pa-studio-workspace-shell [data-pa-mesh-touch-action="tablet-orbit"] .pa-mesh-viewer-canvas canvas {
    touch-action: pan-y pinch-zoom !important;
  }
}

.pa-studio-slice-step-two {
  display: grid;
  gap: .65rem;
  scroll-margin-top: .65rem;
  border: 1px solid color-mix(in srgb, var(--pa-teal, #087f8c) 34%, var(--pa-border, #c9d9df));
  border-radius: .8rem;
  padding: .7rem;
  background: color-mix(in srgb, var(--pa-teal, #087f8c) 5%, var(--pa-surface, #fff));
}

.pa-studio-slice-step-two:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pa-teal, #087f8c) 70%, white);
  outline-offset: 2px;
}

.pa-studio-slice-step-two-copy {
  display: grid;
  gap: .18rem;
}

.pa-studio-slice-step-two-copy strong {
  color: var(--pa-text, #17384b);
  font-size: .82rem;
}

.pa-studio-slice-step-two-copy small {
  color: var(--pa-muted, #536f82);
  font-size: .68rem;
  line-height: 1.4;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-slice-step-two {
  border-color: var(--border);
  background: var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-slice-step-two-copy strong {
  color: var(--text-main);
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-slice-step-two-copy small {
  color: var(--text-muted);
}

.pa-studio :is(.pa-studio-bed-orientation, .pa-studio-slice-step-two)[data-step-summary-state="complete"] {
  border-color: #7ac8ce;
  background: #f3f8fc;
  box-shadow: inset 4px 0 #008f9d;
}

.pa-studio :is(.pa-studio-bed-orientation-copy, .pa-studio-slice-step-two-copy):has(> [data-pa-slice-step-title])
  > [data-pa-slice-step-title]::before {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: .38rem;
  border: 1px solid #9fb7c2;
  border-radius: 50%;
  color: #607681;
  content: "";
  font-size: .72rem;
  vertical-align: -.08rem;
}

.pa-studio [data-step-summary-state="complete"]
  :is(.pa-studio-bed-orientation-copy, .pa-studio-slice-step-two-copy)
  > [data-pa-slice-step-title]::before {
  border-color: #008f9d;
  background: #008f9d;
  color: #fff;
  content: "✓";
}

.pa-studio [data-step-summary-state="complete"]
  :is(.pa-studio-bed-orientation-buttons, .pa-studio-native-slicer-settings) {
  opacity: .72;
}

.pa-studio [data-step-summary-state="complete"]
  :is(.pa-studio-bed-orientation-buttons, .pa-studio-native-slicer-settings):focus-within {
  opacity: 1;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio-native-slicer > header > [data-pa-native-slice-phase] {
  border: 1px solid #29434c !important;
  background: #183240 !important;
  color: #f1f8f9 !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio[data-gcode-workflow-state="complete"]
  .pa-studio-native-slicer > header > [data-pa-native-slice-phase] {
  border-color: #28b8c4 !important;
  background: #28b8c4 !important;
  color: #081620 !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio :is(.pa-studio-bed-orientation, .pa-studio-slice-step-two)[data-step-summary-state="complete"] {
  border-color: #29434c;
  background: #152935;
  box-shadow: inset 4px 0 #28b8c4;
}

html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-studio [data-step-summary-state="complete"]
  :is(.pa-studio-bed-orientation-copy, .pa-studio-slice-step-two-copy)
  > [data-pa-slice-step-title]::before {
  border-color: #28b8c4;
  background: #28b8c4;
  color: #081620;
}

/* Persistent workflow boundaries: every multi-control Studio task keeps its
   instructions, controls, progress, and output inside one visible region. */
.pa-studio-sequence-group,
.pa-studio-sequence-subgroup {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pa-studio-sequence-group {
  position: relative;
  padding: .85rem !important;
  border: 2px solid #3babb4 !important;
  border-radius: .9rem !important;
  box-shadow: 0 0 0 3px rgba(59, 171, 180, .11), 0 9px 24px rgba(16, 54, 69, .08) !important;
}

.pa-studio-sequence-subgroup {
  padding: .72rem !important;
  border: 1px solid #9bcfd3 !important;
  border-radius: .75rem !important;
  background-color: rgba(233, 248, 249, .48) !important;
}

.pa-studio-sequence-help {
  display: block !important;
  width: 2rem;
  min-width: 2rem;
  margin: 0 0 .78rem;
  padding: 0;
  color: #17384b;
}

.pa-studio-sequence-help-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  min-width: 2rem !important;
  height: 2rem;
  min-height: 2rem !important;
  margin: 0;
  padding: 0 !important;
  border: 1px solid #3babb4;
  border-radius: 50%;
  background: #ffffff;
  color: #006f79;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  box-shadow: 0 2px 8px rgba(16, 54, 69, .1);
  cursor: help;
  appearance: none;
}

.pa-studio-sequence-help-mark:focus-visible {
  outline: 3px solid #58c5cc;
  outline-offset: 2px;
}

.pa-studio-sequence-help p {
  display: none !important;
}

.pa-studio-sequence-help-popup {
  position: fixed;
  z-index: 2147483500;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  padding: .72rem .78rem;
  overflow: hidden;
  border: 1px solid #72c7cc;
  border-radius: .72rem;
  background: #eef9fa;
  color: #284a5c;
  box-shadow: 0 16px 42px rgba(8, 35, 48, .26);
  font-size: max(.74rem, 12px);
  line-height: 1.5;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.pa-studio-sequence-help-popup[hidden] {
  display: none !important;
}

.pa-studio-sequence-help-popup strong {
  color: #0d3445;
}

.pa-studio-setup-workflow,
.pa-studio-prep-transaction,
.pa-studio-review-workflow,
.pa-studio-gcode-import {
  display: grid;
  gap: .72rem;
}

.pa-studio-setup-feedback {
  margin: -.08rem 0 .08rem !important;
  padding: .55rem .65rem;
  border-left: 3px solid #229ba4;
  border-radius: .32rem;
  background: #f1fafb;
  color: #244a5c !important;
  font-size: max(.72rem, 12px) !important;
  line-height: 1.42 !important;
}

.pa-studio-setup-feedback[data-setup-feedback-state="working"] {
  border-left-color: #c38a18;
  background: #fff9e9;
}

.pa-studio-setup-feedback[data-setup-feedback-state="error"] {
  border-left-color: #b64050;
  background: #fff2f4;
}

.pa-studio-sequence-subgroup > .pa-studio-sequence-help {
  margin-top: .15rem;
}

.pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-sequence-group {
  background-image: linear-gradient(rgba(0, 143, 157, .025), rgba(0, 143, 157, .025));
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-sequence-group {
  border-color: #50bcc5 !important;
  box-shadow: 0 0 0 3px rgba(80, 188, 197, .13), 0 10px 28px rgba(0, 0, 0, .22) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-sequence-subgroup {
  border-color: #397c85 !important;
  background-color: rgba(23, 63, 70, .46) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-sequence-help-mark {
  border-color: #62c8cf;
  background: #071c24;
  color: #8fe1e6;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-sequence-help-popup {
  border-color: #397c85;
  background: #102c34;
  color: #c8e0e4 !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-sequence-help-popup strong {
  color: #f4ffff !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-setup-feedback {
  border-left-color: #62c8cf;
  background: #102c34;
  color: #c8e0e4 !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-setup-feedback[data-setup-feedback-state="working"] {
  border-left-color: #e1b85d;
  background: #342c18;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-setup-feedback[data-setup-feedback-state="error"] {
  border-left-color: #ed7f8e;
  background: #3a2027;
}

@media (max-width: 600px) {
  .pa-studio-sequence-group {
    padding: .68rem !important;
  }

  .pa-studio-sequence-help-mark {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.05rem;
  }
}

/* Goals is a compact route chooser first and one complete recommended workflow
   second. The connected rows scan as one control instead of a wall of cards. */
.pa-workspace-inspector-body > .pa-studio-goal-guide {
  display: grid !important;
  gap: .8rem !important;
}

.pa-workspace-inspector-body .pa-studio-goal-guide > header {
  display: grid;
  gap: .14rem;
  padding-inline: .1rem;
}

.pa-workspace-inspector-body .pa-studio-goal-guide > header > span {
  color: #087f89 !important;
  font-size: .65rem !important;
  font-weight: 900;
  letter-spacing: .14em;
}

.pa-workspace-inspector-body .pa-studio-goal-guide > header > h2 {
  margin: 0 !important;
  font-size: 1.02rem !important;
  line-height: 1.2;
}

.pa-workspace-inspector-body .pa-studio-goal-guide > header > p {
  margin: 0 !important;
  font-size: .68rem !important;
  line-height: 1.4;
}

.pa-workspace-inspector-body .pa-studio-goal-picker {
  overflow: hidden;
  border: 1px solid #bdd1d9;
  border-radius: .78rem;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 55, 73, .06);
}

.pa-workspace-inspector-body .pa-studio-goal-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .55rem;
  padding: .55rem .65rem;
  border-bottom: 1px solid #cddde3;
  background: #edf6f7;
}

.pa-workspace-inspector-body .pa-studio-goal-picker-head strong {
  color: #18394b !important;
  font-size: .72rem;
  line-height: 1.25;
}

.pa-workspace-inspector-body .pa-studio-goal-picker-head small {
  color: #5a7180 !important;
  font-size: .61rem;
  line-height: 1.3;
  text-align: right;
}

.pa-workspace-inspector-body .pa-studio-goal-grid {
  gap: 0 !important;
  background: #fff;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button {
  position: relative;
  gap: .55rem !important;
  min-height: 48px !important;
  padding: .46rem 1.8rem .46rem .55rem !important;
  border: 0 !important;
  border-bottom: 1px solid #e1eaee !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button:last-child {
  border-bottom: 0 !important;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: .65rem;
  translate: 0 -50%;
  color: #69808d;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button > i {
  width: 30px;
  height: 30px;
  border-radius: .48rem;
  background: #e8f6f7 !important;
  color: #087f89 !important;
  font-size: .82rem;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button span {
  gap: .04rem;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button strong {
  color: #17384b !important;
  font-size: .73rem;
  line-height: 1.25;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button small {
  color: #5a7180 !important;
  font-size: .62rem;
  line-height: 1.3;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button.is-expert {
  background: #f7fafb !important;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  background: #edf8f9 !important;
}

.pa-workspace-inspector-body .pa-studio-goal-grid button:is(:hover, :focus-visible, [aria-pressed="true"])::after {
  color: #087f89;
}

.pa-workspace-inspector-body .pa-studio-make-it-work {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .62rem !important;
  margin: .05rem 0 0 !important;
  padding: .72rem !important;
  background: #f4fbfb !important;
}

.pa-workspace-inspector-body .pa-studio-make-it-work > .pa-studio-sequence-help {
  margin: 0 !important;
  padding: 0;
}

.pa-workspace-inspector-body .pa-studio-make-it-work > .pa-studio-sequence-help .pa-studio-sequence-help-mark {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1.02rem;
}

.pa-workspace-inspector-body .pa-studio-make-it-work > .pa-studio-sequence-help p {
  font-size: .66rem !important;
  line-height: 1.42 !important;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-copy > span {
  font-size: .61rem;
  letter-spacing: .09em;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-copy h3 {
  margin: .14rem 0 .18rem;
  font-size: 1.02rem;
  line-height: 1.2;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-copy p {
  font-size: .68rem;
  line-height: 1.4;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  max-width: none;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-actions .btn {
  min-width: 0;
  min-height: 38px;
  padding: .42rem .5rem;
  font-size: .66rem;
  line-height: 1.25;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-actions [data-pa-run-make-it-work],
.pa-workspace-inspector-body .pa-studio-make-it-work-actions [data-pa-cancel-make-it-work]:not([hidden]) {
  grid-column: 1 / -1;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-status {
  margin: 0 !important;
  padding: .52rem .58rem;
  border: 1px solid #cfdee3;
  background: rgba(19, 72, 88, .045) !important;
  color: #385565 !important;
  font-size: .65rem;
  font-weight: 650;
  line-height: 1.42;
}

.pa-workspace-inspector-body .pa-studio-make-it-work-result {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pa-workspace-inspector-body .pa-studio-make-it-work > small {
  font-size: .62rem;
  line-height: 1.4;
}

.pa-workspace-inspector-body .pa-studio-goal-guide-status {
  margin: 0 !important;
  padding: .48rem .62rem;
  border-top: 1px solid #dbe6ea;
  background: #f7fafb;
  color: #5a7180 !important;
  font-size: .62rem;
  line-height: 1.4;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-picker {
  border-color: var(--border);
  background: var(--surface-elevated);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .2);
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-picker-head {
  border-color: var(--border);
  background: var(--section-bg);
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-picker-head strong,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-grid button strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-picker-head small,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-grid button small,
html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-guide-status {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-grid {
  background: var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-grid button {
  border-bottom-color: var(--border) !important;
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-grid button > i {
  background: var(--section-bg) !important;
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-grid button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-make-it-work {
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-make-it-work-status {
  border-color: var(--border);
  background: var(--section-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-protected-workspace .pa-studio-workspace-shell .pa-workspace-inspector-body .pa-studio-goal-guide-status {
  border-color: var(--border);
  background: var(--section-bg);
}

@media (max-width: 420px) {
  .pa-workspace-inspector-body .pa-studio-goal-picker-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .12rem;
  }

  .pa-workspace-inspector-body .pa-studio-goal-picker-head small {
    text-align: left;
  }
}

/* One readable, dismissible notice above the model. Its empty host has no
   layout footprint; long feedback scrolls rather than losing its last words. */
.pa-studio-workspace-shell .pa-workspace-notifications {
  position: absolute;
  z-index: 60;
  top: calc(var(--workspace-model-bar-height, 48px) + 8px);
  bottom: 8px;
  inset-inline: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"]:not([hidden]) {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  grid-template-rows: auto auto auto;
  align-items: start;
  width: min(100%, 42rem) !important;
  min-width: 0;
  min-height: 44px;
  max-height: min(100%, 42dvh, 22rem) !important;
  margin: 0;
  padding: 8px 10px 12px;
  gap: 4px 8px;
  overflow: auto !important;
  overscroll-behavior: contain;
  border: 1px solid #43606d;
  border-left: 3px solid #70e8e2;
  border-radius: 10px;
  background: #102a3a !important;
  background-image: none !important;
  color: #f7fdff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .24) !important;
  pointer-events: auto;
  text-align: left;
  transform: none !important;
  animation: none !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > :is(strong, p, small) {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  background: transparent !important;
  color: #f7fdff !important;
  text-overflow: clip;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.5 !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > strong {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: .85rem !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > p {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: .8rem !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > small {
  grid-column: 1 / -1;
  grid-row: 3;
  color: #c9dce4 !important;
  font-size: .75rem !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > button {
  position: sticky;
  top: 0;
  z-index: 1;
  grid-row: 1;
  align-self: start;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #43606d;
  border-radius: 6px;
  background: #183240 !important;
  color: #f7fdff !important;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > [data-center-evidence-details] { grid-column: 2; }
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > [data-center-evidence-dismiss] { grid-column: 3; font-size: 1.4rem; }
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > button:is(:hover, :focus-visible) {
  outline: 2px solid #70e8e2;
  outline-offset: -2px;
  border-color: #70e8e2;
}

.pa-workspace-result-shelf > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pa-workspace-result-shelf > header > button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--ws3-line);
  border-radius: 5px;
  background: var(--ws3-soft);
  color: var(--ws3-ink);
  font-size: 1.4rem;
}

.pa-workspace-result-shelf .pa-workspace-activity-details {
  font-size: .85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pa-workspace-result-shelf .pa-workspace-activity-details p {
  margin: .5rem 0;
}

.pa-workspace-result-shelf .pa-studio-center-result dd {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.pa-workspace-result-shelf__body > [data-pa-center-result][data-activity-result-active="false"] {
  display: none !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workbench:fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workbench:fullscreen > .pa-studio-viewport-column {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-workbench:fullscreen .pa-studio-viewport-card {
  height: 100% !important;
  max-height: 100% !important;
}

/* Keep the terminal Slice badge on the canonical high-contrast active-state
   pair even when protected-workspace typography rules load with stronger
   selector weight. */
html[data-pa-theme="dark"] body.pa-body.pa-protected-workspace
  #main-content#main-content .pa-studio[data-gcode-workflow-state="complete"]
  .pa-studio-native-slicer > header > b[data-pa-native-slice-phase] {
  border-color: #28b8c4 !important;
  background: #28b8c4 !important;
  color: #081620 !important;
}

/* Strict rendered-state closure for the compact stage metadata. The slightly
   taller label boxes contain their complete glyph paint, while the canonical
   opaque backing makes contrast independent of the live WebGL canvas. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row > :first-child::after {
  color: #c7d4d9;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row
  > :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state)
  strong {
  display: inline-block;
  line-height: 1.4;
}

html[data-pa-theme="dark"] body.pa-body.pa-protected-workspace
  #main-content#main-content .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-stage-state-row
  > :is(.pa-studio-detail-level-state, .pa-studio-workspace-context-state)
  strong {
  background: #152935 !important;
  color: #f1f8f9 !important;
}

.pa-studio-workspace-shell
  .pa-studio-viewport-head h2[data-pa-studio-file-name] {
  box-sizing: content-box !important;
  padding-inline-end: 2px !important;
  margin-inline-end: -2px !important;
}

/* At the tablet split, the complete camera toolbar is wider than the filename
   column. Wrap it at the canvas edge so it never paints over the model name. */
@media (min-width: 701px) and (max-width: 1100px) {
  .pa-studio-workspace-shell .pa-studio-mesh .pa-mesh-viewer-toolbar {
    max-width: 166px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Compact editing chrome. Keep tool targets usable while giving the model
   the space previously occupied by repeated workspace headings and billing. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] {
  grid-template-rows: 52px minmax(0, 1fr) 27px !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-studio-commandbar {
  height: 52px !important;
  min-height: 52px !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-top-actions > [data-workspace-proxy] > span {
  display: none !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-top-actions > .pa-workspace-troubleshoot {
  display: none !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-workspace-mode-rail > button > small {
  display: none !important;
}

.pa-studio-workspace-shell .pa-workspace-site-menu__body > .pa-studio-plan-bar {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px;
  white-space: normal;
}

/* The access module can run before the shell creates its menu. Never paint
   the staged plan node as an extra row while waiting for that host. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] > .pa-studio-plan-bar {
  display: none !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-viewport-head {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px !important;
  min-height: 48px;
  padding: 2px 10px !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-model-identity {
  display: flex !important;
  flex: 1 1 180px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  max-width: 100%;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-model-identity > [data-pa-model-origin] {
  flex: 0 0 auto;
  margin: 0 !important;
  font-size: .625rem !important;
  line-height: 1.3 !important;
  letter-spacing: .04em !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-model-identity > h2[data-pa-studio-file-name] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  font-size: .8rem !important;
  line-height: 1.5 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Guided/Advanced and the mode rail already show these states. Preserve the
   live announcements without rendering a second copy under the filename. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-stage-state-row {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-view-modes {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap !important;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  border: 0 !important;
  scrollbar-width: thin;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-studio-view-modes button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 8px !important;
  font-size: .72rem !important;
  white-space: nowrap;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  .pa-studio-model-identity:has([data-pa-rollback-accepted-source]:not([hidden])) {
  flex-basis: 360px;
}

/* Follow the actual toolbar height instead of the old 4.8/8.9rem guesses.
   This also fixes the Layers title disappearing underneath the old header. */
.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"]
  :is(.pa-studio-layer-stage, .pa-studio-gcode-stage) {
  inset-block-start: calc(var(--workspace-model-bar-height, 48px) + 8px) !important;
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-stage-footer {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  min-height: 48px;
  padding: 2px 8px;
}

@media (max-width: 700px) {
  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] {
    grid-template-rows: 52px minmax(0, 1fr) 56px !important;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-mode-rail {
    height: 56px !important;
    min-height: 56px !important;
    padding-block: 2px !important;
  }

  .pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-mode-rail > button {
    min-height: 48px !important;
    padding-block: 3px !important;
  }

  .pa-studio-workspace-shell .pa-workspace-notifications {
    inset-inline: 6px;
    top: calc(var(--workspace-model-bar-height, 48px) + 4px);
  }
}

.pa-studio-workspace-shell[data-workspace-architecture="mode-shell-v3"] .pa-workspace-notifications > .pa-workspace-center-evidence[data-workspace-placement="model-notice"] > [hidden] { display: none !important; }
