@import url('./studio-loading.css?v=5');
@import url('./studio-profile.css?v=3-settings');
@import url('./studio-settings.css?v=1');
/* Shared Studio navigation. Application workspaces keep their own toolbars. */
.studio-global-header .studio-personal-brand{min-width:0;max-width:min(280px,40vw);overflow:hidden}
.studio-global-header .studio-brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:500 14px 'DM Sans',Arial,sans-serif;letter-spacing:-.02em}
.studio-global-header .brand-logo-frame.studio-brand-initials{display:grid;place-items:center;background:#292229;color:#ff60d3;font:500 14px 'DM Sans',Arial,sans-serif}
.studio-global-header {
  box-sizing:border-box; position:relative; z-index:40; display:flex;
  flex:0 0 auto; align-items:center; gap:20px; width:100%; height:54px;
  min-height:54px; margin:0; padding:0 18px; border:0;
  border-bottom:1px solid #333; background:#050505; color:#fff;
  font:500 12px/1.4 Arial,sans-serif;
}
html[data-studio-app] .studio-global-header { background:#050505; border-bottom:1px solid #333; }
.studio-global-header :is(.studio-global-brand,[data-studio-brand]) {
  display:inline-flex; flex:0 0 auto; align-items:center; gap:13px;
  width:auto; margin:0; padding:0; color:#fff; background:transparent;
  text-decoration:none; white-space:nowrap; letter-spacing:normal;
}
.studio-global-header .brand-logo-frame { display:block; flex:0 0 40px; width:40px; height:40px; margin:0; padding:0; border:0; }
.studio-global-header .brand-logo-studio { display:block; position:static; width:40px; height:40px; object-fit:contain; filter:none; }
.studio-global-header .brand-divider { display:block; flex:0 0 1px; width:1px; height:29px; margin:0; padding:0; border:0; background:#505050; }
.studio-global-header .brand-product { display:block; margin:0; padding:0; border:0; color:#fff; font:600 10px/1.08 monospace; letter-spacing:1.5px; }
.studio-global-header .brand-product em { color:inherit; font:inherit; }
.studio-global-header .studio-global-context { overflow:hidden; min-width:0; color:#aaa; font:500 11px/1.4 'DM Mono',monospace; text-overflow:ellipsis; white-space:nowrap; }
.studio-global-header .studio-global-actions { display:flex; flex:0 0 auto; align-items:center; gap:8px; margin-left:auto; }
.studio-global-header .studio-global-account {
  display:inline-flex; flex:0 1 auto; align-items:center; gap:8px;
  min-height:36px; max-width:190px; margin:0; padding:3px 8px 3px 4px;
  overflow:hidden; border:1px solid #4b4b4b; border-radius:2px;
  background:transparent; color:#fff; font:500 11px/1.4 Arial,sans-serif;
  text-overflow:ellipsis; white-space:nowrap; cursor:pointer;
}
.studio-global-header button.studio-global-account::before { content:'G'; display:grid; flex:0 0 27px; width:27px; height:27px; place-items:center; border-radius:50%; color:#fff; background:#555; font:600 12px Arial,sans-serif; }
.studio-global-header .studio-global-account:hover { border-color:#fff; background:#fff; color:#000; }
.studio-global-header .studio-global-account:disabled { opacity:.55; cursor:wait; }
.studio-global-header :is(a,button):focus-visible { outline:2px solid #FF60D3; outline-offset:3px; }
.studio-global-header .studio-global-account[hidden] { display:none; }
.studio-app-toolbar { flex-shrink:0; }
body.studio-has-toolbar { display:flex; flex-direction:column; height:100dvh; overflow:hidden; }
body.studio-has-toolbar > .workspace { flex:1; height:auto; min-height:0; }
html.studio-embedded .studio-global-header { display:none; }
body.studio-eddie-page #root > .app { height:calc(100dvh - 54px); }
html.studio-embedded body.studio-eddie-page #root > .app { height:100dvh; }
@media (max-width:900px) {
  html[data-studio-app="home"] .studio-global-header { height:auto; flex-wrap:wrap; }
}
@media (max-width:800px) {
  .studio-global-header { gap:12px; padding:0 12px; }
  .studio-global-header .studio-global-context { display:none; }
  .studio-global-header .studio-global-account { max-width:150px; }
  .studio-app-toolbar { overflow-x:auto; }
}
@media (max-width:1000px) {
  body.studio-eddie-page #root > .app { height:auto; min-height:calc(100dvh - 54px); }
  html.studio-embedded body.studio-eddie-page #root > .app { height:auto; min-height:100dvh; }
}
@media print { .studio-global-header { display:none; } }

body.studio-has-toolbar[data-pres-view="home"] { overflow:auto; }
body.studio-has-toolbar > #pres-home { flex:1; min-height:calc(100dvh - 54px); }
body[data-pres-view="home"] .studio-global-header #pres-account,
body[data-pres-view="editor"] .studio-global-header #pres-home-account { display:none; }
.studio-global-header.studio-shared-header{display:flex!important;height:54px!important;min-height:54px!important;gap:16px!important;background:#050505!important;color:#fff!important;border-bottom:1px solid #333!important;font:500 12px/1.4 Arial,sans-serif!important}
.studio-global-header.studio-shared-header .studio-global-context{color:#aaa!important;font:500 11px/1.4 Arial,sans-serif!important}
.studio-global-header.studio-shared-header .brand-product,.studio-global-header.studio-shared-header .studio-brand-name{color:#fff!important}
.studio-global-header.studio-shared-header .studio-global-actions,.studio-global-header.studio-shared-header .top-actions{display:flex!important;align-items:center;gap:8px;margin-left:auto}
.studio-global-header.studio-shared-header button.studio-global-account:not([data-studio-shell-account]),.studio-global-header.studio-shared-header .studio-nav{display:none!important}
.studio-global-header.studio-shared-header[data-in-app="true"] .studio-header-home-link{display:none!important}
.studio-global-header.studio-shared-header :is([data-studio-shell-account],.account-button){display:inline-flex;align-items:center;gap:8px;min-height:36px;max-width:190px;padding:3px 8px 3px 4px;border:1px solid #4b4b4b!important;border-radius:6px!important;background:transparent!important;color:#fff!important;font:500 11px/1.4 Arial,sans-serif;cursor:pointer}
.studio-global-header.studio-shared-header [data-studio-shell-account]::before{display:none!important}
.studio-global-header.studio-shared-header :is(.studio-shell-avatar,.account-avatar){display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;overflow:hidden;background:#555;color:#fff;font:600 12px Arial,sans-serif}
.studio-global-header.studio-shared-header :is(.studio-shell-avatar,.account-avatar) img{width:100%;height:100%;object-fit:cover}
.studio-global-header.studio-shared-header :is(.studio-settings-button,.studio-admin-button){box-sizing:border-box;display:grid;place-items:center;flex:none;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;line-height:1;border:1px solid #4b4b4b;border-radius:6px;background:transparent;color:#fff;font:19px Arial,sans-serif;cursor:pointer;text-decoration:none}
.studio-global-header.studio-shared-header .studio-settings-button[hidden]{display:none!important}
.studio-global-header.studio-shared-header :is([data-studio-shell-account],.account-button,.studio-settings-button,.studio-admin-button):hover{border-color:#ff60d3!important;background:#222!important;color:#ff60d3!important}
.studio-account-dialog{color-scheme:dark;box-sizing:border-box;width:min(1120px,calc(100vw - 24px));height:min(920px,calc(100dvh - 24px));max-width:none;max-height:none;padding:0;border:0;background:transparent;overflow:hidden}
.studio-account-dialog::backdrop{background:#000b}
.studio-account-dialog iframe{color-scheme:dark;display:block;width:100%;height:100%;border:0;background:transparent}
@media(max-width:600px){.studio-shared-header{gap:8px!important;padding-inline:10px!important}.studio-global-header.studio-shared-header :is(.studio-brand-name,.studio-shell-user,.account-label){display:none!important}.studio-global-header.studio-shared-header :is([data-studio-shell-account],.account-button){padding:4px!important;min-width:36px;justify-content:center}.studio-account-dialog{width:100vw;height:100dvh;margin:0}}
@media(prefers-reduced-motion:no-preference){#gate:has(#login[disabled]) img{animation:studio-loading-breathe 1.8s ease-in-out infinite}}
#gate:has(#login[disabled]){position:fixed;inset:54px 0 0;max-width:none;margin:0;border:0;background:#101010;display:grid;place-content:center;justify-items:center;gap:16px}
#gate:has(#login[disabled])>*{display:none!important}
#gate:has(#login[disabled])::before{content:'';width:64px;height:64px;background:url('./gb-studio-icon.svg?v=2') center/contain no-repeat;animation:studio-loading-breathe 1.8s ease-in-out infinite}
#gate:has(#login[disabled])::after{content:'';width:56px;height:4px;background:linear-gradient(90deg,transparent,#ff60d3,transparent);animation:studio-loading-sweep 1.2s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#gate:has(#login[disabled])::before,#gate:has(#login[disabled])::after{animation:none}}
.studio-shared-header+.screen{min-height:calc(100dvh - 54px)}
.studio-global-header.studio-shared-header a.studio-global-account{display:none!important}
.studio-global-header.studio-shared-header .studio-shell-user{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-app-commandbar{display:flex;flex:none;align-items:center;justify-content:flex-end;gap:8px;padding:8px 18px;background:#151515;border-bottom:1px solid #333}
.studio-app-commandbar:not(:has(button:not([hidden]))){display:none}
.studio-app-commandbar .breadcrumbs{margin-right:auto;min-width:0;overflow:hidden}
@media(pointer:coarse){.studio-global-header.studio-shared-header :is(.studio-settings-button,.studio-admin-button,[data-studio-shell-account],.account-button,.studio-switcher-toggle){min-width:44px;min-height:44px}}

.studio-global-header.studio-shared-header :is(.studio-settings-button,.studio-admin-button) svg{display:block;width:18px;height:18px;pointer-events:none}

/* Both the hub profile and the shared native dialog keep background scroll locked. */
html:has(#profileModal.profile-backdrop:not([hidden]),#profileModal.studio-native-profile[open]),
body:has(#profileModal.profile-backdrop:not([hidden]),#profileModal.studio-native-profile[open]){overflow:hidden!important}
#profileModal .profile-modal,#profileModal.studio-native-profile{overscroll-behavior:contain}

/* App workspaces expose only their local controls, with a quiet exit to the hub. */
.studio-global-header[data-in-app="true"]:not(.studio-public-view) :is([data-studio-brand],.studio-global-brand,.studio-global-context),
.studio-global-header[data-in-app="true"] :is(#reviewsAdminBtn,[data-studio-shell-settings],[data-studio-shell-admin]){display:none!important}
html[data-studio-app]:not([data-studio-app="home"]) #reviewsAdminBtn,html[data-studio-tool] [data-studio-shell-settings]{display:none!important}
.studio-app-home{display:inline-flex;align-items:center;gap:8px;min-width:0;color:#aaa;text-decoration:none;white-space:nowrap;font:500 12px/1.4 Poppins,Arial,sans-serif}
.studio-app-home strong{color:#f4f4f4;border-left:1px solid #444;padding-left:14px;margin-left:8px;font-weight:600}
.studio-app-home:hover{color:#fff}
@media(max-width:600px){.studio-app-home>span:not([aria-hidden]){display:none}.studio-app-home strong{border:0;padding:0;margin:0}.studio-global-header[data-in-app="true"] .studio-global-actions{gap:5px!important}.studio-global-header[data-in-app="true"] .studio-projects-return{display:none!important}}

/* One consistent icon toolbar inside applications. The studio hub keeps its labels. */
.studio-global-header[data-in-app="true"] .studio-app-home{min-height:36px;gap:12px;color:#aaa}
.studio-global-header[data-in-app="true"] .studio-app-home strong{border:0;margin:0;padding:0}
.studio-global-header[data-in-app="true"] .studio-app-home svg{flex:none}
.studio-global-header.studio-shared-header[data-in-app="true"] :is(.studio-shell-user,.account-label){display:none!important}
.studio-global-header.studio-shared-header[data-in-app="true"] :is([data-studio-shell-account],.account-button){width:36px;height:36px;min-width:36px;max-width:36px;padding:3px!important;justify-content:center;border-radius:50%!important}
.studio-global-header[data-in-app="true"] :is(.top-actions,.studio-global-actions){gap:12px!important}
.studio-global-header[data-in-app="true"] #studio-app-switcher{order:1;margin:0;gap:6px}
.studio-global-header[data-in-app="true"] #studio-project-settings-actions{order:2;gap:6px}
.studio-global-header[data-in-app="true"] :is([data-studio-shell-account],.account-button){order:3}
.studio-global-header[data-in-app="true"] :is(#studio-app-switcher>button,#studio-project-settings-actions>button){border-color:transparent;background:transparent;color:#bbb}
.studio-global-header[data-in-app="true"] :is(#studio-app-switcher>button,#studio-project-settings-actions>button):hover,
.studio-global-header[data-in-app="true"] #studio-app-switcher>button[aria-expanded="true"]{background:#262626;border-color:#444;color:#fff}
/* Roda's native exit remains a fallback until the shared project picker is ready. */
.studio-global-header:has(#studio-app-switcher:not([hidden]) .studio-projects-return:not([hidden])) #roda-back{display:none!important}
@media(max-width:600px){
 .studio-global-header[data-in-app="true"] :is(.top-actions,.studio-global-actions){gap:6px!important}
 .studio-global-header[data-in-app="true"] #studio-app-switcher .studio-projects-return:not([hidden]){display:grid!important}
}
@media(pointer:coarse){.studio-global-header[data-in-app="true"] #studio-project-settings-actions button,.studio-global-header.studio-shared-header[data-in-app="true"] :is([data-studio-shell-account],.account-button){width:44px;height:44px;min-width:44px;max-width:44px}}

.studio-global-header[data-in-app="true"] .studio-app-home{flex-shrink:0}
.studio-global-header[data-in-app="true"] .roda-save-state{display:block;min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;padding:0}
.studio-global-header[data-in-app="true"] .roda-save-state::before{margin-right:6px}
