/* Studio 15 — a quiet, tactile navigation layer. */
:root{--motion-out:cubic-bezier(.22,1,.36,1);--motion-snap:cubic-bezier(.2,.8,.2,1);--control-edge:#d8dfcf;--control-hover:#e8eedc}
.ui-icon,.dock-icon{width:22px;height:22px;flex:none;display:block;stroke-linecap:round;stroke-linejoin:round}
button,a,summary{touch-action:manipulation}
summary:focus-visible{outline:3px solid #bf674b;outline-offset:4px;border-radius:12px}
button:disabled{cursor:not-allowed}

/* A floating dock, with stable hit areas and an elastic selection surface. */
#studio-shell .room-tabs{isolation:isolate;border-radius:25px;padding:6px;gap:3px;background:#fff9eef5;box-shadow:0 10px 30px #132e2926,inset 0 1px 0 #fff;backdrop-filter:blur(12px)}
#studio-shell .room-tabs>button{display:flex;align-items:center;gap:10px;position:relative;z-index:1;padding:0 22px;min-height:48px;font-size:13px!important;background:transparent!important;box-shadow:none!important;translate:none;transition:color .22s}
#studio-shell .room-tabs>button>span{white-space:nowrap}
#studio-shell .room-tabs .dock-icon{width:20px;height:20px;translate:0 var(--dock-lift,0px);scale:var(--dock-scale,1);transition:translate .35s var(--motion-out),scale .35s var(--motion-out),stroke .25s}
#studio-shell .room-tabs>button[aria-pressed=true]{color:#214b3d}
#studio-shell .room-tabs>button[aria-pressed=false]{color:#66755e}
#studio-shell .nav-selection{border-radius:19px;background:#deead2;border:1px solid #cddcbe;box-shadow:inset 0 1px 0 #f4f9ea,0 2px 4px #304d2712;transition:transform .52s var(--motion-out),width .52s var(--motion-out),height .25s}
#studio-shell .room-current strong{display:flex;align-items:center;gap:7px}
#studio-shell .room-current strong:before{content:'';width:5px;height:5px;border-radius:50%;background:#d1e4bb;box-shadow:0 0 0 4px #cbdcbe14}
#studio-shell #hint-toggle{border-color:#e0e3d3;box-shadow:0 5px 18px #132e2917;transition:background .24s,color .24s}
#studio-shell #hint-toggle[aria-pressed=true]{background:#deead2;color:#274c3c}
#hint-toggle>span{transition:rotate .35s var(--motion-out)}
#hint-toggle[aria-pressed=true]>span{rotate:45deg}

/* Primary controls use depth and directional details, not moving click targets. */
#studio-shell>header{box-shadow:0 12px 30px #122c2616,inset 0 1px 0 #fff}
#studio-shell #guide-open{border-radius:17px;min-height:46px;padding:0 18px;gap:18px;box-shadow:inset 0 1px 0 #ffffff1c,0 3px 8px #13392a18;transition:background .22s,box-shadow .22s}
#guide-open .menu-line{transform-origin:12px 12px;transition:transform .35s var(--motion-out)}
#guide-open[aria-expanded=true] .menu-line:first-child{transform:translateY(4px) rotate(45deg)}
#guide-open[aria-expanded=true] .menu-line:last-child{transform:translate(-2px,-4px) rotate(-45deg)}
#studio-shell .profile-link{gap:8px;position:relative;padding:0 6px}
#studio-shell .profile-link>span{font-size:16px;transition:translate .3s var(--motion-out)}
#studio-shell .intro .enter,.prepare-email,#viewer-link{position:relative;overflow:hidden;isolation:isolate;box-shadow:inset 0 1px 0 #ffffff45,0 2px 4px #183f2410!important;transition:background .25s,box-shadow .3s}
#studio-shell .intro .enter>span,.prepare-email>span,#viewer-link>span{display:grid;place-items:center;border:1px solid #56734a20;border-radius:50%;width:30px;height:30px;min-width:30px;background:#ffffff60;color:inherit;transition:transform .35s var(--motion-out),background .25s}
.prepare-email>span,#viewer-link>span{background:#ffffff12;border-color:#ffffff24;color:#fff7e9}
#studio-shell #music-toggle{border:1px solid #dacfe0;box-shadow:inset 0 1px 0 #ffffff99;transition:background .25s,border-color .25s}
#studio-shell #music-toggle[aria-pressed=true]{background:#d9cbe4;border-color:#c1acd2}
#studio-shell #all-projects{transition:background .25s,color .25s}
#guide-close,#panda-chat-close,.contact-close,#signature-close,#project-index-close{transition:background .25s,rotate .32s var(--motion-out);box-shadow:none!important}

/* The guide is an index: one invitation, four paths, six quiet shortcuts. */
#studio-guide{width:min(610px,calc(100vw - 48px));padding:30px;margin:auto 24px auto auto;border:1px solid #e3e2d2;box-shadow:0 30px 100px #102a3333!important;scrollbar-width:thin;scrollbar-color:#c6d3bb transparent;overscroll-behavior:contain}
#studio-guide .guide-heading{font-size:10px;font-weight:800;letter-spacing:.1em;color:#70826d;gap:15px}
#studio-guide .guide-heading>span{display:flex;gap:9px;align-items:center}
#studio-guide .guide-heading>span:before{content:'';width:6px;height:6px;border-radius:50%;background:#df9972}
#studio-guide #guide-title{font-size:clamp(36px,4vw,49px);margin:18px 0 8px;letter-spacing:-.025em}
#studio-guide>.guide-lead{font-size:14px;margin:0;color:#71806b;line-height:1.65}
#studio-guide .guide-primary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:25px}
#studio-guide .guide-primary button{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:35px minmax(0,1fr) 18px;gap:11px;align-items:center;border-radius:19px;min-height:84px;padding:15px 13px;background:#f6f5e9!important;border:1px solid #dedfcf!important;color:#35543f!important;box-shadow:inset 0 1px 0 #ffffffa8!important;transition:background .24s,border-color .24s,box-shadow .24s}
#studio-guide .guide-primary button span{transform:none;transition:none;font-size:inherit;font-weight:inherit}
#studio-guide .guide-primary .guide-card-icon{width:35px;height:38px;border-radius:12px;background:#e5ecd9;display:grid;place-items:center;color:#587047;transition:background .25s,rotate .35s var(--motion-out)}
#studio-guide .guide-primary .guide-card-copy{display:block;min-width:0}
#studio-guide .guide-primary strong{display:block;font-size:15px;font-weight:800;line-height:1.3;letter-spacing:-.02em}
#studio-guide .guide-primary small{display:block;font-size:11px;line-height:1.5;color:#73816a;font-weight:600;margin-top:5px}
#studio-guide .guide-primary .guide-card-arrow{font-size:20px;font-weight:400;align-self:start;line-height:1;opacity:.5;transition:translate .35s var(--motion-out),opacity .25s}
#studio-guide .guide-primary #panda-tour{grid-column:1/-1;grid-template-columns:49px minmax(0,1fr) 34px;min-height:92px;padding:19px 21px;background:#2e5143!important;border-color:#2e5143!important;color:#fff8e9!important;box-shadow:inset 0 1px 0 #ffffff18,0 4px 13px #204b3811!important}
#studio-guide #panda-tour .guide-card-icon{width:47px;height:47px;background:#dce8cc;color:#31533e;border-radius:16px;rotate:-5deg}
#studio-guide #panda-tour .ui-icon{width:32px;height:32px;stroke-width:1.5}
#studio-guide #panda-tour strong{font-family:var(--font-display);font-weight:500;font-size:24px}
#studio-guide #panda-tour small{color:#d1dbc6;font-weight:500;font-size:12px;margin-top:4px}
#studio-guide #panda-tour .guide-card-arrow{border:1px solid #ffffff3b;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;align-self:center;opacity:1}
#studio-guide #guide-balance .guide-card-icon{background:#f5dfce;color:#9b6a51}
#studio-guide #guide-feedback .guide-card-icon{background:#eae1ee;color:#816690}
.press-mark{position:absolute;inset:0;background:currentColor;opacity:0;pointer-events:none;border-radius:inherit}
#studio-guide .guide-section-label{display:flex;align-items:center;justify-content:space-between;padding-top:23px;margin:22px 0 12px;border-top:1px solid #e0e2d3;text-transform:none;letter-spacing:0;font-size:13px;font-weight:800;color:#4f6548}
#studio-guide .guide-section-label small{font-size:10px;font-weight:600;color:#87917f;letter-spacing:.04em}
#studio-guide #scene-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#studio-guide #scene-controls button{flex-direction:row;justify-content:flex-start;gap:9px;padding:12px;min-height:49px;border:1px solid #e1e4d5;border-radius:14px;background:transparent;color:#627358;font-size:12px;font-weight:700;transition:background .23s,border-color .23s,color .23s}
#studio-guide #scene-controls .ui-icon{width:18px;height:18px;transition:rotate .32s var(--motion-out)}
#studio-guide #scene-controls button[aria-pressed=true]{background:#e7eddd;border-color:#ceddbc;color:#34533c}
#studio-guide .guide-adjustments{margin-top:24px;border-top:1px solid #dce0d0;border-bottom:1px solid #dce0d0}
#studio-guide .guide-adjustments summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:18px 2px;list-style:none;font-size:13px;font-weight:800;color:#4b6347;min-height:64px}
#studio-guide .guide-adjustments summary::-webkit-details-marker{display:none}
#studio-guide .guide-adjustments summary>span{flex:1}
#studio-guide .guide-adjustments summary small{display:block;font-size:11px;font-weight:500;margin-top:3px;color:#7a8771}
#studio-guide .guide-adjustments summary b{font-size:23px;font-weight:400;transition:rotate .35s var(--motion-out)}
#studio-guide .guide-adjustments[open] summary b{rotate:45deg}
#studio-guide .guide-adjustments-body{padding-bottom:17px}
#studio-guide .guide-adjustments-body .guide-help{line-height:1.7;margin-top:16px;color:#73836b}
#studio-guide .guide-profile{border:0;padding:0;margin:18px 0 0;min-height:44px;display:flex;align-items:center;justify-content:space-between;color:#42633f;font-size:13px;font-weight:800}
#studio-guide .guide-profile span{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;border:1px solid #d5dfc8;font-size:20px;transition:translate .3s var(--motion-out),background .25s}

/* Native top-layer transitions keep Escape, focus return and form behavior intact. */
@supports (transition-behavior:allow-discrete) and (overlay:auto){
 dialog.studio-dialog-motion{opacity:0;translate:0 12px;transition:opacity .22s ease,translate .38s var(--motion-out),display .38s allow-discrete,overlay .38s allow-discrete}
 dialog.studio-dialog-motion[open]{opacity:1;translate:0 0}
 #studio-guide.studio-dialog-motion{translate:14px 0}
 #studio-guide.studio-dialog-motion[open]{translate:0 0}
 #viewer.studio-dialog-motion{translate:none}
 dialog.studio-dialog-motion::backdrop{background:#19372d00;backdrop-filter:blur(5px);transition:background-color .3s,display .38s allow-discrete,overlay .38s allow-discrete}
 dialog.studio-dialog-motion[open]::backdrop{background:#19372d7a}
 @starting-style{
  dialog.studio-dialog-motion[open]{opacity:0;translate:0 12px}
  #studio-guide.studio-dialog-motion[open]{translate:14px 0}
  #viewer.studio-dialog-motion[open]{translate:none}
  dialog.studio-dialog-motion[open]::backdrop{background:#19372d00}
 }
}
#studio-guide[open] .guide-primary>button{animation:guide-item-in .46s var(--motion-out) both;animation-delay:.04s}
#studio-guide[open] .guide-primary>button:nth-child(2){animation-delay:.07s}
#studio-guide[open] .guide-primary>button:nth-child(3){animation-delay:.10s}
#studio-guide[open] .guide-primary>button:nth-child(4){animation-delay:.13s}
#studio-guide[open] .guide-primary>button:nth-child(5){animation-delay:.16s}
@keyframes guide-item-in{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}

@media(hover:hover) and (pointer:fine){
 #studio-shell button:not(:disabled):hover,dialog button:not(:disabled):hover{translate:none;box-shadow:none!important}
 #studio-shell #guide-open:hover{background:#3c6350;box-shadow:inset 0 1px 0 #ffffff22,0 4px 10px #173a271e!important}
 #studio-shell #guide-open:hover .menu-line:last-child{transform:translateX(-4px)}
 #studio-shell .room-tabs>button:not([aria-pressed=true]):hover{color:#2c503d;background:transparent!important}
 #studio-shell .intro .enter:hover{background:#dce7cb;box-shadow:inset 0 1px 0 #ffffff8c,0 3px 8px #20432512!important}
 #studio-shell .intro .enter:hover>span,.prepare-email:hover>span,#viewer-link:hover>span{transform:rotate(-12deg);background:#ffffff35}
 #studio-shell .profile-link:hover>span{translate:2px -2px}
 #studio-shell #hint-toggle:hover,#studio-shell #all-projects:hover{background:#dbe7cd}
 #studio-guide .guide-primary button:hover{background:#edf1e2!important;border-color:#c4d3b7!important;transform:none;box-shadow:inset 0 1px 0 #fff!important}
 #studio-guide .guide-primary button:hover .guide-card-arrow{translate:2px -2px;opacity:1}
 #studio-guide .guide-primary button:hover .guide-card-icon{rotate:-6deg;background:#dbe5cb}
 #studio-guide .guide-primary #panda-tour:hover{background:#3a614e!important;border-color:#3a614e!important}
 #studio-guide .guide-primary #panda-tour:hover .guide-card-icon{rotate:4deg}
 #studio-guide #scene-controls button:hover{background:#edf1e2;border-color:#c8d7ba;color:#32533e}
 #studio-guide #scene-controls button:hover .ui-icon{rotate:-7deg}
 #studio-guide .guide-profile:hover span{translate:2px -2px;background:#e4ecd6}
 #guide-close:hover,#panda-chat-close:hover,.contact-close:hover,#signature-close:hover{rotate:90deg}
 #project-index-grid button:hover{translate:none;box-shadow:0 6px 20px #203e2710!important}
}
button:active{translate:none}
#studio-shell #guide-open:active,#studio-shell .intro .enter:active,#studio-guide .guide-primary button:active{box-shadow:inset 0 2px 5px #142b2524!important}
#studio-shell .room-tabs>button:active .dock-icon{scale:.93}
@media(max-width:760px){
 #studio-shell #guide-open{padding:0 12px;gap:12px;min-height:44px}
 #studio-shell .room-tabs{padding:4px;gap:1px;border-radius:22px;min-width:0}
 #studio-shell .room-tabs>button{padding:4px 9px;min-height:49px;flex-direction:column;gap:3px;font-size:11px!important;line-height:1.2}
 #studio-shell .room-tabs .dock-icon{width:18px;height:18px}
 #studio-shell .nav-selection{border-radius:17px}
 #studio-guide{width:calc(100vw - 24px);margin:auto;padding:22px;max-height:calc(100dvh - 24px)}
 #studio-guide #guide-title{font-size:39px;margin-top:12px}
 #studio-guide>.guide-lead{font-size:12px}
 #studio-guide .guide-primary{gap:8px;margin-top:20px}
 #studio-guide .guide-primary button{grid-template-columns:1fr 18px;gap:8px;min-height:108px;padding:14px;border-radius:17px;align-items:start}
 #studio-guide .guide-primary .guide-card-icon{width:32px;height:32px;border-radius:10px;grid-column:1;grid-row:1}
 #studio-guide .guide-primary .guide-card-arrow{grid-column:2;grid-row:1}
 #studio-guide .guide-primary .guide-card-copy{grid-column:1/-1;grid-row:2}
 #studio-guide .guide-primary strong{font-size:14px}
 #studio-guide .guide-primary small{font-size:10px;margin-top:3px}
 #studio-guide .guide-primary #panda-tour{grid-template-columns:40px minmax(0,1fr) 24px;min-height:81px;padding:14px;gap:10px;align-items:center}
 #studio-guide #panda-tour .guide-card-icon{width:40px;height:43px;border-radius:14px;grid-column:1;grid-row:1}
 #studio-guide #panda-tour .guide-card-copy{grid-column:2;grid-row:1}
 #studio-guide #panda-tour .guide-card-arrow{grid-column:3;grid-row:1;width:25px;height:25px;font-size:17px}
 #studio-guide #panda-tour strong{font-size:22px}
 #studio-guide #panda-tour small{font-size:10px}
 #studio-guide .guide-section-label{margin-top:20px;padding-top:18px}
 #studio-guide #scene-controls button{flex-direction:column;gap:7px;min-height:66px;padding:10px 6px;border-radius:13px;font-size:11px}
 #studio-guide .guide-adjustments{margin-top:20px}
 #studio-guide .guide-adjustments summary{font-size:12px}
 #studio-guide .guide-profile{font-size:12px}
}
@media(max-width:350px){
 #studio-shell .room-tabs>button{padding:4px 6px;font-size:10px!important}
 #studio-guide{padding:18px}
 #studio-guide .guide-primary{grid-template-columns:1fr 1fr}
 #studio-guide .guide-primary button{padding:12px;min-height:111px}
 #studio-guide #panda-tour strong{font-size:19px}
 #studio-guide #panda-tour small{font-size:10px;line-height:1.4}
 #studio-guide .guide-primary #panda-tour{padding:13px 11px;gap:7px;grid-column:1/-1}
}
@media(max-height:540px){#studio-guide{max-height:calc(100dvh - 20px)}#studio-shell .room-tabs>button{min-height:44px}}
@media(prefers-reduced-motion:reduce){
 #studio-shell .dock-icon,#guide-open .menu-line,#studio-guide button,#studio-guide button>span,#studio-guide .guide-profile span,#studio-guide summary b{transition:none!important;animation:none!important;translate:none!important;rotate:none!important;scale:1!important}
 dialog.studio-dialog-motion,dialog.studio-dialog-motion::backdrop{transition:none!important;translate:none!important}
 #studio-guide[open] .guide-primary>button{animation:none!important}
}
