/* Interactive Studio floor. Actual team membership controls every occupied desk. */
:is(.team-studio,.cloud-team) .inh-room{min-width:0;color:var(--brand-ink,#20252e)}
:is(.team-studio,.cloud-team) .inh-room>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.inh-room>header h2{margin:0;font:600 20px/1.2 var(--room-type),system-ui;letter-spacing:-.035em}
.inh-room>header>span,.inh-admission{color:var(--brand-muted,#596272);font-size:13px}
.inh-scene{position:relative;isolation:isolate;aspect-ratio:1.55;min-height:220px;overflow:hidden;border-radius:25px;border:1px solid var(--brand-line,#dce2eb);background:#f4f2f1}
.inh-interior{position:absolute;inset:0;z-index:-1;background:url('/assets/studio-interior.jpg') center 51%/cover;filter:saturate(.55) brightness(1.12)}
.inh-interior:after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,#ffffff26,transparent 60%,#17212d11)}
.inh-scene .inh-pin{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;width:auto;min-width:45px;min-height:44px;padding:0;border:0;border-radius:20px;background:none;cursor:pointer;color:#181d25;font:620 11px/1.25 var(--room-type),system-ui}
.inh-pin[data-station=management]{left:72%;top:27%}.inh-pin[data-station=research]{left:52%;top:66%}.inh-pin[data-station=risk]{left:24%;top:67%}.inh-pin[data-station=execution]{left:80%;top:56%}
.inh-scene .inh-pin .person-portrait{width:clamp(39px,5vw,59px);height:clamp(39px,5vw,59px);border:2px solid white;border-radius:100%;box-shadow:0 3px 12px #25252e44;filter:none}
.inh-scene .inh-pin>span:last-child{padding:3px 9px;background:#fffffff2;border-radius:11px;box-shadow:0 2px 5px #292b3526;backdrop-filter:blur(6px)}
.inh-scene .inh-pin[aria-pressed=true] .person-portrait{box-shadow:0 0 0 3px var(--brand-accent,#254bd1),0 3px 12px #25252e44}
.inh-scene .inh-open{cursor:default;min-height:25px;opacity:.8}.inh-open i{height:9px;width:9px;border:1px solid #fff;background:#646770;border-radius:50%}
.inh-scene .inh-open>span{font-weight:450}
.inh-room .inh-roster{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 5px}
.inh-room .inh-colleague{display:flex;align-items:center;gap:7px;border:1px solid var(--brand-line,#dce2eb);border-radius:18px;background:#fff;min-height:46px;max-width:100%;padding:4px 11px 4px 5px;text-align:left;color:var(--brand-ink,#20252e);cursor:pointer}
.inh-colleague[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--brand-accent,#254bd1)}.inh-room .inh-colleague .person-portrait{width:34px;height:34px;border-radius:50%;border:0;box-shadow:none;filter:none}
.inh-colleague strong,.inh-colleague small{display:block;overflow-wrap:anywhere}.inh-colleague strong{font:590 13px/1.3 var(--room-type),system-ui}.inh-colleague small{font:400 11px/1.4 var(--room-type),system-ui;color:var(--brand-muted,#596272)}
.inh-admission{margin:10px 0}.team-studio .inh-welcome{border-inline-start:2px solid var(--brand-accent,#254bd1);padding:4px 0 4px 14px;margin:16px 0}.inh-welcome small{font-size:12px;color:var(--brand-muted,#596272)}.inh-welcome p{margin:4px 0 0}
.team-studio .inh-first-task{margin:7px 0 13px;border:1px solid var(--brand-line);min-height:44px;border-radius:22px;padding:8px 14px;background:#fff;color:var(--brand-deep,#182e82);cursor:pointer}
.inh-scene .inh-pin:focus-visible,.inh-colleague:focus-visible,.inh-first-task:focus-visible{outline:3px solid var(--brand-accent,#254bd1);outline-offset:3px}
@keyframes studioWalkIn{from{opacity:0;translate:-17px 23px;scale:.86}70%{opacity:1;translate:1px -2px;scale:1.03}to{opacity:1;translate:0 0;scale:1}}
.inh-scene .inh-arriving,.inh-room .studio-member--landed{animation:studioWalkIn .8s cubic-bezier(.22,.74,.24,1) both}
@media (prefers-reduced-motion:reduce){.inh-scene .inh-arriving,.inh-room .studio-member--landed{animation:none}}
@media(max-width:560px){.inh-scene{min-height:210px;border-radius:18px}.inh-roster{gap:5px}.inh-room .inh-colleague{min-height:44px;padding-inline-end:7px}:is(.team-studio,.cloud-team) .inh-room .inh-colleague .person-portrait{width:28px;height:28px}}

body:is([data-workspace=team],[data-workspace=fund]) #notices .notice--success{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;min-height:44px;margin-inline:auto 0;padding:3px 8px 3px 15px;border:1px solid var(--brand-line,#d7deee);border-radius:18px;background:var(--brand-tint,#edf2ff);color:var(--brand-deep,#182e82);box-shadow:none}body:is([data-workspace=team],[data-workspace=fund]) #notices .notice--success>span{overflow-wrap:anywhere}body:is([data-workspace=team],[data-workspace=fund]) #notices .notice--success>button{flex:none;min-width:40px;min-height:40px;color:inherit;background:transparent}

.cloud-team .inh-room{width:100%;text-align:left}.cloud-team .inh-room .person-portrait{display:inline-block;flex:none;height:44px;width:44px;border-radius:50%;background-image:url('/assets/studio/team-portraits.png');background-size:400% 200%;background-position:var(--portrait-x,0%) var(--portrait-y,0%)}
.cloud-team .inh-room .person-portrait--maya{background-image:url('/assets/maya-at-table.jpg');background-size:auto 136%;background-position:88% 0%}
.cloud-team .inh-room .studio-initials{background-image:none}.cloud-team .inh-scene{max-height:375px}.cloud-team .inh-roster .inh-colleague{font-size:13px;min-width:0}

/* The selected employee owns the adjacent handoff card; positions belong to actual desks. */
body .team-studio.crew-studio .studio-page-head{margin:9px 0 18px;padding-bottom:16px;align-items:center}
body .crew-studio .studio-page-head h1{font-size:clamp(29px,3.6vw,47px);letter-spacing:-.055em;margin:4px 0;line-height:1.08}
body .crew-studio .studio-page-head p{margin:5px 0 0;color:var(--brand-muted,#536078);font-size:14px}
body .crew-studio .studio-workspace{grid-template-columns:minmax(0,1.2fr) minmax(300px,.88fr);gap:clamp(14px,2vw,28px);align-items:start}
body .crew-studio .inh-room>header{margin:0 0 9px}
.crew-scene{aspect-ratio:1.44;min-height:260px;box-shadow:0 12px 28px -24px #121e37aa}
.crew-scene .inh-interior{filter:saturate(.46) brightness(1.13)}
.crew-handoff-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.crew-handoff-line path{fill:none;stroke:#f8fbff;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:3.4 4.2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px #2447a8)}
.crew-station{position:absolute;left:var(--crew-x);top:var(--crew-y);transform:translate(-50%,-50%);display:grid;justify-items:center;gap:3px;z-index:1;min-width:40px;border-radius:12px}
.crew-station:focus-within{z-index:3}.crew-station-seats{display:flex;gap:5px;align-items:end}
.crew-station-tag{font:650 10px/1.35 var(--room-type),sans-serif;letter-spacing:.025em;background:#172540d6;color:white;padding:2px 8px;border-radius:9px;white-space:nowrap;backdrop-filter:blur(8px)}
.crew-vacant .crew-station-tag{background:#fffffff1;color:#4e586e}
.crew-empty-chair{height:20px;width:22px;border:1.5px dashed #fff;border-radius:40% 40% 7px 7px;background:#eef2ff52;box-shadow:0 1px 4px #202c3845}
.crew-scene .crew-station .crew-person{position:relative;transform:none;min-width:44px;min-height:44px;inset:auto;display:grid;justify-items:center;align-content:end;gap:2px;background:transparent}
.crew-scene .crew-station .crew-person .person-portrait{width:clamp(34px,3.8vw,52px);height:clamp(34px,3.8vw,52px);cursor:pointer;transition:translate .18s ease}
.crew-scene .crew-station .crew-person:hover .person-portrait{translate:0 -2px}
.crew-scene .crew-station .crew-person>span:last-child{max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crew-scene .crew-station .crew-person[aria-pressed=true]>span:last-child{color:#fff;background:var(--brand-accent,#254bd1)}
.crew-scene .crew-person:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 5px var(--brand-accent,#254bd1)}
.crew-extra{padding:9px 0}.crew-extra summary{cursor:pointer;line-height:44px;font-size:13px}.crew-extra>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.crew-extra-seat{min-height:44px;display:inline-flex;align-items:center;gap:5px;border:1px solid var(--brand-line);border-radius:16px;background:white;padding:4px 9px;cursor:pointer}
.crew-extra-seat .person-portrait{width:30px;height:30px;border-radius:50%}
body .crew-studio .crew-card{padding:clamp(18px,2.5vw,30px);border:1px solid var(--brand-line,#d3dce9);border-radius:25px;color:var(--brand-ink,#172239);background:linear-gradient(155deg,#f4f7ff 0%,#fff 50%);box-shadow:0 19px 38px -35px #2b419b;scroll-margin-top:90px}
.crew-card-intro{display:grid;gap:12px}.crew-letterhead{font:600 12px/1.3 var(--room-type),sans-serif;color:var(--brand-deep,#182e82);letter-spacing:.02em}
.crew-letterhead span{display:inline-block;margin:0 5px;color:var(--brand-accent)}
body .crew-card .crew-subject{padding:0;border:0;display:flex;align-items:center;gap:12px}
body .crew-card .crew-subject .person-portrait{width:57px;height:57px;border-radius:50%;box-shadow:0 0 0 3px #fff,0 3px 12px #182e821a}
body .crew-card .crew-subject h2{font:630 clamp(23px,3vw,34px)/1.1 var(--room-type),system-ui;letter-spacing:-.055em}
body .crew-card .crew-subject span{font-size:12px}.crew-card .crew-duty{margin:0;max-width:48ch;font:480 clamp(16px,1.45vw,19px)/1.52 var(--room-type),system-ui;overflow-wrap:anywhere}
.crew-card .crew-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:4px 0 3px}
.crew-card-actions button,.crew-card .crew-back{min-height:44px;cursor:pointer;font:590 13px/1.3 var(--room-type),system-ui;border-radius:24px;padding:0 16px}
.crew-card .crew-first{color:white;border:1px solid var(--brand-accent);background:var(--brand-accent,#254bd1);box-shadow:0 4px 10px #2146bf24}
.crew-card .crew-first span{margin-left:3px}.crew-card .crew-ask{color:var(--brand-deep,#182e82);background:#ffffffcf;border:1px solid var(--brand-line,#d7dfec)}
.crew-card button:focus-visible,.crew-back:focus-visible,.crew-room:focus-visible{outline:3px solid var(--brand-accent,#254bd1);outline-offset:2px}
body .crew-card .studio-messages:not(:has(article,p)),body .crew-card [hidden]{display:none!important}
body .crew-card .studio-messages{min-height:0;max-height:340px;margin:14px 0 7px}
body .crew-card .person-details{margin-top:12px}.crew-card .crew-back{display:none}
.crew-card .studio-chat-form:not([hidden]){margin-top:12px}
@media(max-width:760px){body .crew-studio .studio-workspace{grid-template-columns:minmax(0,1fr);gap:15px}.crew-studio .studio-space-column{grid-row:2}.crew-studio .crew-card{grid-row:1}.crew-card .crew-back{display:inline-block;color:var(--brand-deep,#182e82);background:none;border:0;padding:0 3px;min-height:37px;margin-top:5px}.crew-scene{min-height:230px}.crew-room{scroll-margin-top:80px}}
@media(max-width:480px){body .team-studio.crew-studio .studio-page-head{gap:9px;align-items:center;margin:6px 0 12px;padding-bottom:10px}body .crew-studio .studio-page-head h1{font-size:28px}body .crew-studio .studio-page-head p{font-size:12px}.crew-scene{min-height:218px}.crew-station-seats{gap:0}.crew-station-tag{font-size:9px}.crew-card-intro{gap:10px}body .crew-studio .crew-card{border-radius:19px;padding:17px}.crew-room .inh-admission{font-size:12px}}
@media(prefers-reduced-motion:reduce){.crew-scene .crew-station .crew-person .person-portrait{transition:none}.crew-handoff-line path{animation:none}}

body .crew-studio .studio-page-head [data-action=toggle-recruit]{background:#fff;color:var(--brand-deep,#182e82);border:1px solid var(--brand-line,#d7dfec);box-shadow:none;width:auto;min-width:0;flex:0 0 auto;min-height:44px;padding:0 16px}

body #app:not(.crew-dragging) .crew-studio .crew-bench-empty{display:none}.crew-reassign{display:flex;flex-wrap:wrap;gap:6px}.crew-reassign button{min-height:44px;border-radius:20px;padding:7px 13px;cursor:pointer}.crew-bench-card .crew-subject{margin:14px 0}.crew-bench-card>p{line-height:1.55}.crew-scene .is-drop-target{outline:2px solid #fff;box-shadow:0 0 0 3px var(--brand-accent)}
.crew-room-actions,.studio-office-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.crew-room-actions{justify-content:flex-end}
body .crew-studio .crew-office-link,body .my-studio .studio-office-actions .crew-office-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:max-content;max-width:100%;min-height:46px;margin:0;padding:4px 13px 4px 5px;border:1px solid #cbd5df;border-radius:25px;background:#fff;color:#22354e;box-shadow:0 2px 7px #27375413;font:600 14px/1.25 var(--room-type),system-ui;text-decoration:none}
.crew-office-preview{display:inline-block;background:#ddd6cb url('/assets/studio-interior.jpg') center 63%/cover no-repeat;border-radius:50%;width:35px;height:35px;flex:none;box-shadow:inset 0 0 0 1px #44546a24}
.crew-office-link:hover{box-shadow:0 2px 9px #27375427!important}
.crew-office-link:focus-visible{outline:2px solid var(--brand-accent,#244acf);outline-offset:3px}
.office-recruit-return{margin:0 0 12px}
@media(min-width:761px){body .crew-office-view .studio-workspace{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}}
@media(max-width:760px){
 .crew-office-view .studio-space-column{grid-row:1}
 .crew-office-view .crew-card{grid-row:2}
 .crew-room-actions{justify-content:flex-start}
 body .team-studio.crew-studio:has(.crew-room-actions .crew-office-link) .studio-page-head{align-items:start;flex-wrap:wrap}
 body .team-studio.crew-studio:has(.crew-room-actions .crew-office-link) .studio-page-head>div:first-child{flex:1 1 100%}
}
@media(max-width:760px){body .team-studio.crew-office-view .studio-space-column{order:-2}body .team-studio.crew-office-view .crew-card{order:0}}
