/* Leave the bottom controls and the last footer links within reach on phones with a home indicator. */
body:has(.studio-dock) {--studio-bottom: max(.75rem,env(safe-area-inset-bottom));padding-bottom:calc(4.3rem + var(--studio-bottom))}
html:has(.studio-dock) {scroll-padding-bottom:calc(4.8rem + env(safe-area-inset-bottom))}
.studio-dock {position:fixed;z-index:900;inset:auto max(1.25rem,env(safe-area-inset-right)) var(--studio-bottom) auto;display:inline-flex;align-items:center;padding:.3rem;gap:.25rem;border:1px solid #d9cabe;border-radius:99px;background:#fffaf2f5;backdrop-filter:blur(16px);box-shadow:0 5px 26px #3722302b,0 1px 4px #37223012}
.studio-dock :is(button,a) {display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:46px;padding:.55rem 1rem;border:0;border-radius:99px;white-space:nowrap;text-decoration:none;font:600 .92rem/1.2 Inter,system-ui,sans-serif;cursor:pointer}
.studio-dock svg {width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dock-gifts {color:#583b48;background:transparent}
.dock-chat {color:#fffaf3;background:#542536}
.dock-chat:hover {background:#673046}
.studio-dock :focus-visible {outline:3px solid #a66b40;outline-offset:2px}
body:has(.studio-dock) .analytics-consent {bottom:calc(var(--studio-bottom) + 4.15rem)}
body.nav-open .studio-dock,body:has(.studio-dialog[open],.atelier-viewer[open]) .studio-dock {visibility:hidden}
body:has(.studio-dock) .studio-dialog[open] {margin:auto max(1.25rem,env(safe-area-inset-right)) var(--studio-bottom) auto;max-height:calc(100dvh - 2rem);overscroll-behavior:contain}
@media(max-width:760px){
  .studio-dock {inset:auto max(.8rem,env(safe-area-inset-right)) var(--studio-bottom) max(.8rem,env(safe-area-inset-left));max-width:27rem;margin-inline:auto}
  .dock-gifts {flex:1}.dock-chat {flex:2}
  body:has(.studio-dock) .studio-dialog[open] {margin:auto auto 0;max-height:calc(100dvh - max(1.25rem,env(safe-area-inset-top)));padding-bottom:env(safe-area-inset-bottom)}
}
