:root{--studio-panel:linear-gradient(150deg,rgba(55,58,54,.94),rgba(28,31,29,.93));--studio-line:rgba(244,245,235,.16);--studio-ink:#f5f5eb;--studio-muted:#c1c7bc;--studio-shadow:0 1px 0 #ffffff12 inset,0 4px 9px #05100b29,0 18px 44px -12px #040c085e}
#connectDesktop,#devConnect{color:var(--studio-ink);background:var(--studio-panel);border:1px solid var(--studio-line);box-shadow:var(--studio-shadow);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
#connectDesktop{position:fixed;inset:max(16px,env(safe-area-inset-top)) auto auto 14px;z-index:7;display:flex;align-items:center;min-height:39px;gap:11px;padding:5px 13px;border-radius:99px}
.brandMark{display:block;flex:none;object-fit:contain}
#devConnect h2{display:flex;align-items:center;gap:8px}
.connectLabel{padding-left:11px;border-left:1px solid var(--studio-line);font-size:12px;color:#dce2d6}
#connectDesktop:hover .connectLabel{color:white}
#devConnect{box-sizing:border-box;position:fixed;inset:65px auto auto 14px;margin:0;padding:15px;width:var(--connection-width,284px);max-height:calc(100dvh - 82px);overflow:auto;overscroll-behavior:contain;scrollbar-width:none;border-radius:17px;font:13px/1.45 Inter,system-ui,sans-serif;transform-origin:24px 0}
#devConnect *{box-sizing:border-box}
#devConnect h2{margin:0;font-size:18px;line-height:1.2;font-weight:550;letter-spacing:-.035em}
.devHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
#devConnect button,#devConnect .launchers a{font:inherit;color:inherit}
#devConnect .dismiss{width:28px;height:28px;border-radius:50%;font-size:19px;color:var(--studio-muted)}
#devConnect [role=tablist]{display:flex;gap:3px;padding:3px;border-radius:11px;background:#10161159;box-shadow:inset 0 1px 2px #060b0826}
#devConnect [role=tab]{flex:1;min-height:28px;border-radius:8px;color:var(--studio-muted);font-size:12px;font-weight:550;letter-spacing:.02em}
#devConnect [aria-selected=true]{background:#ffffff17;color:#fff;box-shadow:0 1px 3px #0001,inset 0 1px 0 #ffffff0c}
#devConnect p{margin:9px 0;color:#d4dacf}
#devConnect .devIntro{margin:16px 0 11px;color:var(--studio-ink)}
.launchers{display:grid;gap:5px;margin-bottom:13px}
#devConnect .launchers a{display:flex;align-items:center;justify-content:space-between;min-height:38px;border-radius:10px;padding:7px 11px;text-decoration:none;font-weight:500;background:#ffffff0c;border:1px solid #ffffff12}
.launchers span{color:var(--studio-muted);font-size:14px}
#devConnect a:hover,#devConnect button:hover{background-color:#ffffff16;color:white}
#devConnect details{padding:0;border-top:1px solid #ffffff14}
#devConnect summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:35px;list-style:none;color:#dce1d7;font-size:12px}
#devConnect summary::-webkit-details-marker{display:none}
#devConnect summary::after{content:"+";color:#b6bdb2;font-size:15px}
#devConnect details[open]>summary::after{content:"−"}
#devConnect pre{margin:6px 0 9px;padding:10px;overflow:auto;max-height:220px;scrollbar-width:thin;font:11.5px/1.55 ui-monospace,monospace;background:#10141061;color:#e9efe2;border-radius:9px}
#devConnect p code{overflow-wrap:anywhere;font-size:.92em}
#devConnect #apiInstall{white-space:pre-wrap;overflow-wrap:anywhere}
#devConnect [data-copy]{min-height:30px;padding:4px 9px;background:#e6ebdf;color:#252b25;font-weight:550;font-size:12px;border-radius:7px;margin-bottom:10px}
#devConnect [data-copy]:hover{background:#fff;color:#202620}
#devConnect .devFoot{color:#b1baac;margin:12px 0 0;font-size:11px}
.devStatus:not(.copy-help){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px),(max-height:500px){#connectDesktop{display:none}#devConnect{inset:auto auto max(10px,env(safe-area-inset-bottom)) 50%;translate:-50% 0;width:min(420px,calc(100vw - 20px));max-height:calc(min(85dvh,var(--visible-height,85dvh)) - 20px);border-radius:21px;padding:16px 18px;transform-origin:center bottom}#devConnect :is(button,summary,.launchers a){min-height:44px}.launchers{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:no-preference){#devConnect:popover-open{animation:connect-arrive .15s ease-out}@keyframes connect-arrive{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}}

.clientLabel{font-size:12px;color:var(--studio-muted);display:block;margin:4px 0}
#clientFormat{width:100%;min-height:34px;color:#eef2e8;background:#272d29;border:1px solid var(--studio-line);border-radius:7px;padding:4px 6px}
.devHead{position:sticky;top:-15px;background:#333833;border-radius:8px;z-index:1}
.devHead:not(:hover){background:transparent}
#devConnect:has(details[open]) .devHead{background:#333833}

#devConnect [data-copy]{min-width:8.2em}
#devConnect :is(button,a,select,summary):focus-visible,#connectDesktop:focus-visible{outline:2px solid #dce9d6;outline-offset:2px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .launchers a span{transition:transform .15s ease}
  .launchers a:hover span,.launchers a:focus-visible span{transform:translate(1px,-1px)}
}
@media(min-width:701px) and (min-height:501px){.devHead .brandMark{display:none}}
