/* The instrument fleet lives in the field, below the existing film player. */
.footer-controls{align-items:center;flex-wrap:wrap}
#works-instruments-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font:9px Arial,sans-serif;letter-spacing:.1em;position:relative;padding:0 4px}
#works-instruments-toggle i{width:3px;height:3px;border-radius:50%;background:#3b6887;box-shadow:0 0 0 #4abaff;transition:background .3s,box-shadow .3s}
#works-instruments-toggle b{font:8px monospace;letter-spacing:.02em;color:#5e859e}
#works-instruments-toggle[aria-pressed=true]{color:#b5dff8}
#works-instruments-toggle[aria-pressed=true] i{background:#86d9ff;box-shadow:0 0 8px #36a5ff}
#works-instruments-toggle[aria-pressed=true] b{color:#83caff}
#works-instrument-stage{position:absolute;left:23%;right:4%;top:16px;bottom:24px;z-index:3;pointer-events:none;opacity:0;transform:translateY(7px);transition:opacity .28s,transform .38s cubic-bezier(.16,1,.3,1);isolation:isolate}
#works-instrument-stage[hidden]{display:none!important}
.instruments-phone .works-instrument-console,.instruments-phone #works-instrument-stage{display:none!important}
#works-instrument-stage .works-instrument-toolbar[hidden]{display:none!important}
#works-instrument-stage.is-visible{opacity:1;transform:none}
#works-instrument-stage .works-instrument-toolbar{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:8px;z-index:60;pointer-events:auto;min-height:32px;width:max-content;max-width:100%;padding:0 9px;border:1px solid #3c7da33d;background:#071624c9;backdrop-filter:blur(9px);border-radius:3px;box-shadow:0 6px 25px #02070a35}
.works-instrument-toolbar>span{font:6px monospace;letter-spacing:.13em;color:#527e9d;padding-right:6px;border-right:1px solid #2c526a77}
#works-instrument-stage .works-instrument-toolbar button{font:7px monospace;letter-spacing:.06em;min-height:30px;min-width:25px;padding:0 4px;color:#608ca7;white-space:nowrap;transition:color .2s,text-shadow .2s}
#works-instrument-stage .works-instrument-toolbar button[aria-pressed=true],#works-instrument-stage .works-instrument-toolbar button:hover{color:#b9e6ff;text-shadow:0 0 8px #319dff60}
#works-instrument-stage .works-instrument-toolbar button:last-child{margin-left:4px;border-left:1px solid #35546a77;padding-left:10px;color:#8bb9d4}
#works-instrument-stage .window-deck{position:absolute;inset:0;pointer-events:none;z-index:5}
#works-instrument-stage .instrument-window{position:absolute;width:42%;min-width:180px;pointer-events:auto;background:#06101df2;box-shadow:0 8px 30px #01070cd4,0 0 20px #3086b31a;border:1px solid #568baa80;opacity:0;transform:translateY(10px) scale(.98);transition:opacity .28s,transform .4s cubic-bezier(.16,1,.3,1);border-radius:2px;overflow:hidden}
#works-instrument-stage .instrument-window.is-open{opacity:1;transform:none}
#works-instrument-stage .instrument-window.is-closing{opacity:0;transform:translateY(-8px) scale(.99);pointer-events:none}
#works-instrument-stage .instrument-window.is-focused,#works-instrument-stage .instrument-window:focus-within{border-color:#94d3efba;box-shadow:0 10px 40px #01070cd9,0 0 22px #58b9ef26}
#works-instrument-stage .instrument-title{height:26px;display:flex;align-items:center;gap:8px;padding:0 9px;border-bottom:1px solid #32567580;color:#9fc8df;font:8px monospace;letter-spacing:.08em;background:linear-gradient(90deg,#132b3edd,#091a2af2);cursor:grab;touch-action:none;user-select:none}
#works-instrument-stage .instrument-title:active{cursor:grabbing}
#works-instrument-stage .instrument-title .lamp{height:3px;width:3px;background:#72c9ff;box-shadow:0 0 7px #5bcdff}
#works-instrument-stage .instrument-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#works-instrument-stage .instrument-badge{flex:none;color:#5b91b1;font-size:6px;letter-spacing:.04em}
#works-instrument-stage .instrument-title button{color:#86b0c9;font:13px monospace;background:none;border:0;cursor:pointer;padding:0 3px;height:24px;min-height:24px;min-width:24px;letter-spacing:0}
#works-instrument-stage .instrument-body{position:relative;aspect-ratio:16/9;overflow:hidden}
#works-instrument-stage .instrument-body img,#works-instrument-stage .instrument-body video,#works-instrument-stage .instrument-body canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
#works-instrument-stage .instrument-body video{background:#02080f;opacity:0;transition:opacity .3s}
#works-instrument-stage .instrument-body video.is-ready{opacity:1}
#works-instrument-stage .instrument-body canvas{pointer-events:none;mix-blend-mode:screen}
#works-instrument-stage .instrument-scan{position:absolute;inset:-20% 0;background:linear-gradient(180deg,transparent 47%,#72caff28 49%,#a4e5ff90 50%,transparent 51%);transform:translateY(-100%);pointer-events:none;animation:worksInstrumentScan .6s ease-out}
#works-instrument-stage .instrument-grip{position:absolute;right:0;bottom:0;width:16px;height:16px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 63%,#729fba99 66%,transparent 69%,transparent 76%,#729fba99 80%,transparent 83%)}
#works-instrument-stage .instrument-window.is-relocating{transition:opacity .28s,transform .4s cubic-bezier(.16,1,.3,1),left .62s cubic-bezier(.16,1,.3,1),top .62s cubic-bezier(.16,1,.3,1),width .62s cubic-bezier(.16,1,.3,1)}
@keyframes worksInstrumentScan{to{transform:translateY(100%)}}
@media(max-width:1100px){.footer-controls{gap:14px}#works-instruments-toggle{font-size:8px}#works-instrument-stage .works-instrument-toolbar{gap:4px}#works-instrument-stage .works-instrument-toolbar button{font-size:6px}}
@media(min-width:851px) and (max-width:1250px){.v3-experience>footer{flex-wrap:wrap;row-gap:8px}.footer-controls{flex-basis:100%;justify-content:flex-end}.footer-controls .project-link{margin-right:auto}}
@media(max-width:850px){#works-instruments-toggle{font-size:9px}.footer-controls{gap:12px}#works-instrument-stage .works-instrument-toolbar{width:100%;gap:3px;justify-content:space-between;padding:0 5px}#works-instrument-stage .works-instrument-toolbar>span{display:none}#works-instrument-stage .works-instrument-toolbar button{font-size:6px;min-height:32px;min-width:23px;padding:0 2px}#works-instrument-stage .works-instrument-toolbar button:last-child{font-size:6px;margin:0;padding-left:5px}#works-instrument-stage .instrument-window{min-width:120px}#works-instrument-stage .instrument-title{height:28px;gap:5px;font-size:7px;padding:0 6px}#works-instrument-stage .instrument-title button{height:27px;min-height:27px;min-width:28px}#works-instrument-stage .instrument-grip{width:21px;height:21px}}
@media(max-width:480px){.footer-controls .project-link{flex-basis:100%;padding-bottom:0}.footer-controls{justify-content:space-between;gap:0 9px}.footer-controls button{font-size:9px}#works-instruments-toggle{font-size:8px;padding-left:0}}
@media(prefers-reduced-motion:reduce){#works-instrument-stage,#works-instrument-stage *{transition:none!important;animation:none!important}}
.v3-experience.v3-motion-off #works-instrument-stage,.v3-experience.v3-motion-off #works-instrument-stage *{transition:none!important;animation:none!important}
