/* Shared Studio navigation. Application workspaces keep their own toolbars. */
.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; }
