:root{--workspace-header-h:64px}
.workspace-header{position:sticky;top:0;z-index:1200;min-height:var(--workspace-header-h);padding:10px 24px;display:flex;align-items:center;gap:14px;background:color-mix(in srgb,var(--bg,#f7f8f6) 92%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line,#e2e7e3);font-family:Manrope,Inter,system-ui,-apple-system,sans-serif}
.workspace-brand{display:flex;align-items:center;gap:10px;min-width:180px;color:var(--text,#243029);text-decoration:none}
.workspace-brand:hover{text-decoration:none}
.workspace-brand-mark{width:34px;height:34px;border-radius:10px;background:var(--accent,#2f9b72);color:var(--on-accent,#fff);display:grid;place-items:center;font-weight:900;box-shadow:0 1px 3px rgba(30,55,40,.08)}
.workspace-brand strong{display:block;font-size:15px;line-height:1.05;letter-spacing:-.02em}
.workspace-brand span{display:block;margin-top:2px;color:var(--text-3,var(--muted,#68766e));font-size:11px;font-weight:700}
.workspace-nav{display:flex;align-items:center;gap:6px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:none}
.workspace-nav::-webkit-scrollbar{display:none}
.workspace-link,.workspace-drop-btn{height:37px;border:1px solid transparent;background:transparent;color:var(--text-2,var(--muted,#68766e));border-radius:9px;padding:0 12px;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;text-decoration:none;cursor:pointer}
.workspace-link:hover,.workspace-drop-btn:hover{background:var(--surface-2,var(--surface2,#f2f5f3));color:var(--text,#243029);text-decoration:none}
.workspace-link.active,.workspace-drop-btn.active{background:var(--accent-soft,var(--soft,#eaf7f1));color:var(--accent-strong,var(--accent2,#217a59));border-color:color-mix(in srgb,var(--accent,#2f9b72) 20%,var(--line,#e2e7e3))}
.workspace-drop-btn:after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;opacity:.75}
.workspace-popover{position:fixed;z-index:2000;min-width:220px;padding:6px;background:var(--surface,#fff);border:1px solid var(--line,#e2e7e3);border-radius:12px;box-shadow:0 14px 34px rgba(30,55,40,.16);display:grid;gap:2px;font-family:Manrope,Inter,system-ui,-apple-system,sans-serif}
.workspace-popover a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border-radius:8px;color:var(--text-2,var(--muted,#68766e));font-size:13px;font-weight:850;text-decoration:none}
.workspace-popover a:hover,.workspace-popover a.active{background:var(--accent-soft,var(--soft,#eaf7f1));color:var(--accent-strong,var(--accent2,#217a59));text-decoration:none}
.workspace-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.workspace-primary{height:37px;border:1px solid transparent;border-radius:9px;padding:0 14px;background:var(--accent,#2f9b72);color:var(--on-accent,#fff);font-weight:850;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.workspace-primary:hover{background:var(--accent-strong,var(--accent2,#217a59));text-decoration:none}
.workspace-status{display:inline-flex;align-items:center;gap:7px;color:var(--text-3,var(--muted,#68766e));font:700 10px/1 ui-monospace,monospace;text-transform:uppercase;letter-spacing:.08em}.workspace-status i{width:7px;height:7px;border-radius:50%;background:var(--good,#39b77a);box-shadow:0 0 12px var(--good,#39b77a)}
body.has-workspace-header #shell,body.has-workspace-header #app{grid-template-columns:1fr!important}
body.has-workspace-header .sidebar,body.has-workspace-header .side,body.has-workspace-header .mobile-bar,body.has-workspace-header .sidebar-backdrop{display:none!important}
body.has-workspace-header .global-topnav{display:none!important}
body.has-workspace-header .main{min-width:0!important;width:100%!important}
body.has-workspace-header .topbar,body.has-workspace-header .head{position:static!important;top:auto!important}
body.has-workspace-header .sheet-panel{max-width:calc(100vw - 48px)!important}
@media(max-width:900px){
  .workspace-header{align-items:stretch;flex-wrap:wrap;padding:10px 14px}
  .workspace-brand{min-width:0;flex:1}
  .workspace-nav{order:3;width:100%;flex-basis:100%}
  .workspace-actions{margin-left:auto}
  body.has-workspace-header .sheet-panel{max-width:calc(100vw - 28px)!important}
}
@media(max-width:560px){
  .workspace-header{padding:9px 12px;gap:9px}
  .workspace-brand span{display:none}
  .workspace-actions{width:100%}
  .workspace-primary{width:100%}
  .workspace-popover{left:12px!important;right:12px!important;width:auto!important;min-width:0}
}
