@import url('/fortune-header-stats.css?v=20261026-daily');
@import url('/fortune-brand.css?v=20261014-pixel');
/* A single, balanced header; each page retains its own contextual actions. */
:root{--fortune-header-height:64px}
body [data-fortune-header].fortune-header{
 box-sizing:border-box;position:fixed;inset:0 0 auto;z-index:50;width:100%;max-width:none;
 height:var(--fortune-header-height);min-height:var(--fortune-header-height);margin:0;padding:0 24px;
 border:0;border-radius:0;
 background:transparent;color:var(--fortune-surface-text,#fafaf4);
 box-shadow:none;backdrop-filter:none;font-size:13px;line-height:1.3;
}

/* App headers share fixed left, center and right slots. The sidebar's existing
   star stays the single brand/navigation control and aligns with the first row. */
body.fortune-app-shell.fortune-header-compact{--fortune-header-height:116px;--fortune-header-row-height:60px}
body.fortune-app-shell .studio-heading[hidden],
body.fortune-app-shell .academy-toolbar[hidden]{display:none!important}
@layer fortune-design {
 body.fortune-app-shell [data-fortune-header].fortune-header{
  position:fixed!important;top:0!important;bottom:auto!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  grid-template-rows:64px;align-items:center!important;gap:0 12px!important;
  padding:0 20px!important;height:var(--fortune-header-height)!important;
  background:var(--fortune-surface-bg,#fbfbf8)!important;
 }
 html[data-fortune-theme] body.fortune-app-shell [data-fortune-header].fortune-header{background:var(--fortune-surface-bg,#fbfbf8)!important}
 body.fortune-app-shell [data-fortune-header].fortune-header>[data-fortune-header-start]{
  grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;
  gap:8px!important;min-width:0!important;width:100%;height:100%;overflow:visible!important;
 }
 body.fortune-app-shell [data-fortune-header].fortune-header>[data-fortune-header-center]{
  grid-column:2!important;grid-row:1!important;display:flex;align-items:center;justify-self:center;
  box-sizing:border-box;width:max-content;min-width:0;max-width:calc(100vw - var(--fortune-nav-offset,0px) - 200px);
  padding:8px 0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;pointer-events:auto;
 }
 body.fortune-app-shell [data-fortune-header-center]::-webkit-scrollbar{display:none}
 body.fortune-app-shell [data-fortune-header-center]:empty{display:none!important}
 body.fortune-app-shell [data-fortune-header].fortune-header>[data-fortune-header-actions]{
  grid-column:3!important;grid-row:1!important;justify-self:end;display:flex!important;
  align-items:center;gap:6px!important;min-width:0;max-width:100%;height:100%;
 }
 body.fortune-app-shell [data-fortune-header][data-fortune-header-centered=false]{grid-template-columns:minmax(0,1fr) auto!important}
 body.fortune-app-shell [data-fortune-header][data-fortune-header-centered=false]>[data-fortune-header-actions]{grid-column:2!important}
 body.fortune-app-shell [data-fortune-header].fortune-header [data-fortune-header-context]{
  display:flex!important;align-items:center!important;flex:0 1 auto!important;
  min-width:0!important;max-width:100%!important;width:auto!important;overflow:hidden!important;gap:8px!important;
 }
 body.fortune-app-shell [data-fortune-header] .fortune-header-title,
 body.fortune-app-shell [data-fortune-header] .studio-title-group h1{
  display:block!important;flex:0 1 auto;min-width:0;margin:0!important;
  font-size:18px!important;line-height:1.35!important;font-weight:600!important;
  letter-spacing:-.035em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 }
 body.fortune-app-shell [data-fortune-header] .studio-title-group{
  display:flex!important;align-items:center!important;flex:1 1 auto;gap:8px;min-width:0;overflow:visible;
 }
 body.fortune-app-shell [data-fortune-header] .studio-title-group h1{flex:none}
 body.fortune-app-shell [data-fortune-header] .studio-project-name{flex:0 1 auto;min-width:0;overflow:visible}
 body.fortune-app-shell [data-fortune-header] .studio-project-name input{flex:1 1 70px;width:100%!important;min-width:24px!important;max-width:132px!important}
 body.fortune-app-shell [data-fortune-header].fortune-header #board-title{
  flex:1 1 auto!important;min-width:0!important;max-width:100%!important;
  height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;
  font-size:16px!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;
 }
 body.fortune-app-shell [data-fortune-header-center] .studio-workspace-switch{
  display:flex!important;flex-wrap:nowrap!important;flex:none;width:max-content!important;max-width:none!important;
  margin:0!important;gap:2px!important;
 }
 body.fortune-app-shell [data-fortune-header-center] .studio-workspace-switch :is(a,button){
  flex:none;min-height:29px!important;white-space:nowrap!important;font-size:11px!important;padding:5px 9px!important;
 }
 body.fortune-app-shell [data-fortune-header-center] .research-workspace-nav,
 body.fortune-app-shell [data-fortune-header-center] .academy-filters,
 body.fortune-app-shell [data-fortune-header-center] .top-workspace-tabs{
  display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:center;
  flex:none;width:max-content;min-width:0;max-width:none;margin:0!important;padding:0!important;
  gap:3px!important;border:0!important;background:transparent!important;overflow:visible!important;
 }
 body.fortune-app-shell [data-fortune-header-center] .research-workspace-nav .adspy-nav{display:contents!important}
 body.fortune-app-shell [data-fortune-header-center] :is(.adspy-nav,.academy-filters) button{
  display:inline-flex!important;align-items:center;justify-content:center;flex:none;gap:5px!important;
  white-space:nowrap;min-height:34px!important;margin:0!important;padding:7px 9px!important;
  border:0;border-radius:8px;font-size:11px!important;line-height:1.25;background:transparent;
  color:var(--fortune-surface-muted,#707078);cursor:pointer;
 }
 body.fortune-app-shell [data-fortune-header-center] :is(.adspy-nav,.academy-filters) button[aria-pressed=true],
 body.fortune-app-shell [data-fortune-header-center] .adspy-nav button[aria-current=page]{background:var(--fortune-surface-inset,#f5f4ef)!important;color:var(--fortune-surface-text,#202124)!important}
 body.fortune-app-shell [data-fortune-header-center] .adspy-nav button>span:not(.nav-count):not(.nav-arrow){font-size:11px!important}
 body.fortune-app-shell [data-fortune-header-center] .adspy-nav svg{width:15px;height:15px;flex:none}
 body.fortune-app-shell [data-fortune-header-center] .director-project-views{position:static!important;inset:auto!important;transform:none!important}
 body.fortune-app-shell [data-fortune-header] .academy-search-disclosure{pointer-events:auto}
 body.fortune-app-shell [data-fortune-header] .academy-search{z-index:80;pointer-events:auto;max-width:calc(100vw - var(--fortune-nav-offset,0px) - 30px)}
 body.fortune-app-shell.fortune-header-compact [data-fortune-header].fortune-header{
  grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:60px 48px!important;
  align-content:start;gap:0 8px!important;padding:0 12px 8px!important;
 }
 body.fortune-app-shell.fortune-header-compact [data-fortune-header].fortune-header>[data-fortune-header-actions]{grid-column:2!important;grid-row:1!important;max-width:none}
 body.fortune-app-shell.fortune-header-compact [data-fortune-header].fortune-header>[data-fortune-header-center]{grid-column:1/-1!important;grid-row:2!important;max-width:100%!important}
 body.fortune-app-shell.fortune-header-compact [data-fortune-header] .studio-workspace-switch :is(a,button){font-size:10px!important;padding-inline:6px!important}
}
@media(max-width:700px){
 body.fortune-app-shell{--fortune-header-row-height:60px}
 body.fortune-app-shell:has([data-fortune-header-centered=true]){--fortune-header-height:116px}
 @layer fortune-design{
  body.fortune-app-shell [data-fortune-header].fortune-header{grid-template-rows:60px;padding-inline:12px!important}
  body.fortune-app-shell [data-fortune-header][data-fortune-header-centered=true]{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:60px 48px!important;padding:0 12px 8px!important}
  body.fortune-app-shell [data-fortune-header][data-fortune-header-centered=true]>[data-fortune-header-actions]{grid-column:2!important}
  body.fortune-app-shell [data-fortune-header][data-fortune-header-centered=true]>[data-fortune-header-center]{grid-column:1/-1!important;grid-row:2!important;max-width:100%!important}
  body.fortune-app-shell [data-fortune-header] .studio-workspace-switch :is(a,button){font-size:10px!important;padding-inline:6px!important}
 }
}
@layer fortune-design{
 body [data-fortune-header].fortune-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center;gap:20px;left:0!important}
 body [data-fortune-header].fortune-header>[data-fortune-header-start]{display:flex;align-items:center;gap:12px;width:100%;min-width:0!important;overflow:hidden!important}
 body [data-fortune-header].fortune-header [data-fortune-header-context]{display:flex;align-items:center;gap:10px;flex:1 1 0;min-width:0!important;overflow:hidden;justify-content:flex-start}
 body [data-fortune-header].fortune-header>[data-fortune-header-actions]{display:flex!important;align-items:center;justify-content:flex-end;justify-self:end;gap:8px!important;max-width:100%;min-width:0;height:auto;margin:0;padding:0!important}
 body [data-fortune-header].fortune-header .fortune-header-logo{--fortune-logo-width:144px;display:inline-grid!important;align-items:center!important;justify-self:center;gap:0!important;min-width:0!important;width:var(--fortune-logo-width)!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;line-height:0!important;color:inherit!important;text-decoration:none!important}
 body [data-fortune-header].fortune-header .fortune-header-logo>img{width:100%!important;height:auto!important;filter:none!important;mix-blend-mode:normal!important}
 body [data-fortune-header].fortune-header :is(.fortune-header-menu,.fortune-appearance-trigger,.fortune-account-link,.fortune-account-menu summary){box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;margin:0;padding:7px!important;border:1px solid var(--fortune-surface-line,#38383e)!important;border-radius:8px!important;background:transparent!important;color:inherit!important;box-shadow:none!important;cursor:pointer;list-style:none}
 body [data-fortune-header].fortune-header .fortune-header-menu{gap:7px;width:auto!important;border-color:transparent!important;font-size:12px;font-weight:500;line-height:1.2}
 body [data-fortune-header].fortune-header .fortune-header-menu svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
 body [data-fortune-header].fortune-header .fortune-menu-label{font-size:12px;font-weight:500;line-height:1;color:var(--fortune-surface-muted,#a1a1aa)}
 body [data-fortune-header].fortune-header :is(.fortune-header-menu,.fortune-appearance-trigger,.fortune-account-link,.fortune-account-menu summary):hover{background:var(--fortune-surface-hover,#27272b)!important}
 body [data-fortune-header].fortune-header :is(button,summary,a):focus-visible{outline:2px solid currentColor;outline-offset:3px}
 body [data-fortune-header].fortune-header .fortune-account-link,body [data-fortune-header].fortune-header .fortune-account-menu summary{font-size:0!important;white-space:nowrap}
 body [data-fortune-header].fortune-header :is(.fortune-account-link,.fortune-account-menu summary)::before{content:'';display:block;flex:0 0 22px;width:22px;height:22px;background:currentColor;mask:url('/assets/icon-account.svg') center/contain no-repeat}
 body [data-fortune-header].fortune-header :is(.fortune-account-menu summary,.fortune-appearance-trigger)::-webkit-details-marker{display:none}
 body [data-fortune-header].fortune-header .fortune-account-panel{background:var(--fortune-surface-panel,#1a1a1e)!important;color:var(--fortune-surface-text,#fafaf4)!important;border-color:var(--fortune-surface-line,#38383e)!important}
 body [data-fortune-header].fortune-header #fortune-account{display:block!important;flex:none}
 body [data-fortune-header].fortune-header a:not(.button){color:inherit!important}
 body [data-fortune-header].fortune-header .header-actions>.button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:34px!important;height:34px!important;padding:0 13px!important;border-radius:8px!important;font-size:12px!important;line-height:1;font-weight:500;white-space:nowrap;box-shadow:none}
 body [data-fortune-header].fortune-header .header-actions>.button [data-icon]{display:flex;align-items:center;justify-content:center;width:15px;height:15px}
 body [data-fortune-header].fortune-header .header-actions>.button svg{width:15px;height:15px}
 body [data-fortune-header].fortune-header .search-trigger{display:none!important}
 body [data-fortune-header].fortune-header #board-title{flex:1 1 0;min-width:0!important;position:static!important;transform:none!important;text-align:left!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body [data-fortune-header].fortune-header #projects-back{margin-right:0!important}
}
/* Appearance is a single quiet control, with full choices available on demand. */
body [data-fortune-header] .fortune-header-controls{display:flex;align-items:center;flex:none;margin:0}
body [data-fortune-header] .fortune-appearance-menu{position:relative;flex:none}
body [data-fortune-header] .fortune-appearance-trigger svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
body [data-fortune-header] [data-appearance-icon]{display:none}
body [data-fortune-header] [data-appearance-icon=light]{display:block}
html[data-fortune-theme-preference=dark] [data-fortune-header] [data-appearance-icon=light],html[data-fortune-theme-preference=system] [data-fortune-header] [data-appearance-icon=light]{display:none}
html[data-fortune-theme-preference=dark] [data-fortune-header] [data-appearance-icon=dark],html[data-fortune-theme-preference=system] [data-fortune-header] [data-appearance-icon=system]{display:block}
body [data-fortune-header] .fortune-theme-switcher{position:absolute;top:calc(100% + 9px);right:0;z-index:80;box-sizing:border-box;width:184px;padding:6px;border:1px solid var(--fortune-surface-line,#38383e);border-radius:11px;background:var(--fortune-surface-panel,#1a1a1e);color:inherit;box-shadow:0 10px 28px #0002}
@layer fortune-design{
 body [data-fortune-header].fortune-header .fortune-theme-switcher button{box-sizing:border-box;display:flex!important;align-items:center;gap:10px;width:100%!important;min-height:36px!important;height:36px!important;padding:0 10px!important;margin:0;border:0!important;border-radius:6px!important;background:transparent!important;color:inherit!important;font-size:12px!important;line-height:1.2;cursor:pointer;box-shadow:none!important}
 body [data-fortune-header].fortune-header .fortune-theme-switcher button:is(:hover,[aria-pressed=true]){background:var(--fortune-surface-hover,#27272b)!important}
 body [data-fortune-header].fortune-header .fortune-theme-switcher button[aria-pressed=true]::after{content:'✓';margin-left:auto;font-size:13px}
}
body [data-fortune-header] .fortune-theme-switcher svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
body [data-fortune-header] .fortune-appearance-menu:not([open])>.fortune-theme-switcher{display:none}
body [data-fortune-header] [hidden]{display:none!important}
/* Project context stays on the fixed left edge while the center controls keep
   their own space. Only the project name shrinks on a narrow viewport. */
@layer fortune-design{
 body.fortune-app-shell [data-fortune-header] .fortune-header-project-context{
  display:flex;align-items:center;flex:1 1 auto;gap:8px;min-width:0;max-width:100%;overflow:hidden;
 }
 body.fortune-app-shell [data-fortune-header] .fortune-header-project-context>.fortune-header-title{flex:none}
 body.fortune-app-shell [data-fortune-header] .fortune-project-divider{
  display:block;flex:none;color:var(--fortune-surface-muted,#707078);font-size:16px;font-weight:400;line-height:1.35;
 }
 body.fortune-app-shell [data-fortune-header] .sh-project-info{
  display:flex;align-items:center;flex:1 1 auto;gap:6px!important;min-width:0;max-width:none!important;margin:0;
 }
 body.fortune-app-shell [data-fortune-header] .sh-project-info strong{
  flex:1 1 auto;min-width:0;font-size:16px!important;font-weight:500;line-height:1.35;
  color:var(--fortune-surface-text,#202124);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
 body.fortune-app-shell [data-fortune-header] .sh-project-info button{
  display:grid;place-items:center;flex:0 0 22px;width:22px;height:28px;min-height:28px;
  padding:2px!important;border:0;border-radius:6px;background:transparent;color:var(--fortune-surface-muted,#707078);cursor:pointer;
 }
 body.fortune-app-shell [data-fortune-header] .sh-project-info button:hover{background:var(--fortune-surface-hover,#f0f0eb)}
 body.fortune-app-shell [data-fortune-header] .studio-title-group{pointer-events:auto;touch-action:manipulation}
 body.fortune-app-shell [data-fortune-header] #sh-project-name{cursor:text;outline-offset:3px}
 body.fortune-app-shell [data-fortune-header] .fortune-project-editor{display:grid;flex:1 1 0;min-width:0;max-width:100%;gap:2px}
 body.fortune-app-shell [data-fortune-header] #fortune-project-name-input{
  box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;height:22px;min-height:22px;
  margin:0!important;padding:0!important;border:0!important;border-radius:0;background:transparent!important;
  color:var(--fortune-surface-text,#202124);font:500 16px/1.35 var(--font-body,Inter,sans-serif)!important;
  letter-spacing:inherit;box-shadow:none!important;outline:0;text-overflow:clip;
 }
 body.fortune-app-shell [data-fortune-header] #fortune-project-name-input:focus-visible{outline:0!important;outline-offset:0!important;box-shadow:0 1px 0 var(--fortune-surface-muted,#707078)!important}
 body.fortune-app-shell [data-fortune-header] .fortune-project-name-status{font:400 11px/1.25 var(--font-body,Inter,sans-serif);color:var(--fortune-surface-muted,#707078);overflow-wrap:anywhere}
 body.fortune-app-shell [data-fortune-header] .fortune-project-name-status[hidden]{display:none!important}
 @media(min-width:761px){
  body.fortune-app-shell.has-studio-director [data-fortune-header] .studio-title-group{
   max-width:calc((100vw - var(--fortune-nav-offset,42px) - var(--studio-recents-reserve,0px)) * var(--studio-resting-chat-fraction,var(--studio-chat-fraction,.46)) - 40px)!important;overflow:hidden;
  }
 }
}
body.studio-shell #studio-voice-workspace>.studio-project-name{
 display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;margin:0 0 18px;
 color:var(--fortune-surface-muted,#707078);
}
body.studio-shell #studio-voice-workspace>.studio-project-name>.studio-project-divider{display:none}
body.studio-shell #studio-voice-workspace>.studio-project-name #project-title{max-width:260px;width:min(260px,70vw)}
body [data-fortune-header] .breadcrumb{border-left:1px solid var(--fortune-surface-line,#38383e);padding-left:12px;margin:0;min-height:23px;display:flex;align-items:center;color:var(--fortune-surface-muted,#a1a1aa);font-size:12px}
body [data-fortune-header] .top-workspace-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;min-width:0;max-width:100%;height:40px;margin:0}
body [data-fortune-header] .top-workspace-tabs>a{font-size:12px;white-space:nowrap;padding:9px 10px}
body [data-fortune-header] .projects-location{border:0;padding:0;margin:0}
body [data-fortune-header] .board-title{margin:0;max-width:100%;text-align:left;justify-self:auto}
body [data-fortune-header] .mobile-navigation{position:absolute;top:100%;left:0;right:0;border-bottom:1px solid var(--fortune-surface-line,#38383e);background:var(--fortune-surface-bg,#101013)}
/* Keep app content aligned to the shared bar. */
body.app-hub{--topbar:var(--fortune-header-height)}
body.app-hub>#main,body.app-hub.connections-active>#main{margin-top:var(--fortune-header-height)}
body.app-hub.workspace-home>.fortune-header{display:flex}
body.app-hub.workspace-home>#main{margin-top:var(--fortune-header-height);height:calc(100dvh - var(--fortune-header-height));min-height:0}
body.app-hub.workspace-home .founder-workspace{min-height:calc(100dvh - var(--fortune-header-height))}
body.app-editor{--topbar:var(--fortune-header-height)}
body.director-open-canvas{--canvas-topbar-height:var(--fortune-header-height)}
body .funnel-studio .ff-editor-head{top:var(--fortune-header-height)}
body.fortune-landing,body.fortune-projects,body.fortune-team,body.fortune-legal{padding-top:var(--fortune-header-height)}
body.fortune-signin{padding:calc(var(--fortune-header-height) + 32px) 24px 32px}
body.split-studio #studio-main{margin-top:var(--fortune-header-height);height:calc(100dvh - var(--fortune-header-height))}
body.split-studio .studio-rail,body.video-studio .video-studio-rail{top:var(--fortune-header-height)}
body.app-dev .dev-layout{margin-top:var(--fortune-header-height);height:calc(100dvh - var(--fortune-header-height))}
@layer fortune-design{body.app-editor.video-studio .create-main{margin-top:var(--fortune-header-height)!important;min-height:calc(100dvh - var(--fortune-header-height))!important}}
@media(max-width:900px){
 body [data-fortune-header].fortune-header{padding-inline:16px}
 body [data-fortune-header] .header-optional,body [data-fortune-header] .projects-location{display:none}
 body.app-hub.workspace-home>#main,body.app-dev .dev-layout{height:auto;min-height:calc(100dvh - var(--fortune-header-height))}
 body.video-studio .video-studio-menu{top:calc(var(--fortune-header-height) + 18px)}
}
@media(max-width:700px){
 body.fortune-landing [data-fortune-header] .header-actions>.button{display:inline-flex!important}
 body.split-studio .studio-grid{height:calc(100dvh - var(--fortune-header-height) - 48px)}
 body [data-fortune-header] .workspace-reopen,body [data-fortune-header] .mobile-workspace-toggle,body [data-fortune-header] .add-folder{display:none!important}
}
@media(max-width:600px){
 :root{--fortune-header-height:60px}
 body [data-fortune-header].fortune-header{padding-inline:12px}
 @layer fortune-design{
  body [data-fortune-header].fortune-header{gap:8px}
  body [data-fortune-header].fortune-header>.fortune-header-logo{--fortune-logo-width:124px}
  body [data-fortune-header].fortune-header>[data-fortune-header-start]{gap:6px}
  body [data-fortune-header].fortune-header>[data-fortune-header-actions]{gap:6px}
  body [data-fortune-header].fortune-header .fortune-menu-label,body [data-fortune-header].fortune-header .breadcrumb{display:none}
  body [data-fortune-header].fortune-header .fortune-header-menu{width:34px!important;padding:7px!important}
 }
 body [data-fortune-header] .top-workspace-tabs>.create-menu-trigger{display:none}
 body [data-fortune-header] .top-workspace-tabs>a{font-size:11px;padding:8px}
 body [data-fortune-header] .private-label,body [data-fortune-header] .header-context-secondary{display:none}
 /* Editor actions keep a separate row only while a save/publish action exists. */
 body.app-dev,body.director-open-canvas:has(.top-save:not([hidden])){--fortune-header-height:98px}
 @layer fortune-design{
  body.app-dev [data-fortune-header].fortune-header,body.director-open-canvas:has(.top-save:not([hidden])) [data-fortune-header].fortune-header{grid-template-rows:40px 36px;padding-block:7px;gap:4px 8px}
  body.app-dev [data-fortune-header].fortune-header>[data-fortune-header-start],body.director-open-canvas:has(.top-save:not([hidden])) [data-fortune-header].fortune-header>[data-fortune-header-start]{grid-column:1;grid-row:1}
  body.app-dev [data-fortune-header].fortune-header>.fortune-header-logo,body.director-open-canvas:has(.top-save:not([hidden])) [data-fortune-header].fortune-header>.fortune-header-logo{grid-column:2;grid-row:1}
  body.app-dev [data-fortune-header].fortune-header>[data-fortune-header-actions],body.director-open-canvas:has(.top-save:not([hidden])) [data-fortune-header].fortune-header>[data-fortune-header-actions]{grid-column:1/-1;grid-row:2;width:100%}
 }
}

/* Header controls float over the page; the strip itself never catches a click. */
@layer fortune-design {
 html[data-fortune-theme] body [data-fortune-header].fortune-header,
 body [data-fortune-header].fortune-header {
  background:transparent!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;pointer-events:none;
 }
 body [data-fortune-header].fortune-header>[data-fortune-header-start]{grid-column:1;grid-row:1}
 body [data-fortune-header].fortune-header>[data-fortune-header-actions]{grid-column:3;grid-row:1}
 body [data-fortune-header].fortune-header :is(a,button,summary,input,select,textarea,[role=button],.fortune-header-navigation,.fortune-theme-switcher,.fortune-account-panel){pointer-events:auto}
 body [data-fortune-header].fortune-header :is(.fortune-header-menu,.fortune-appearance-trigger,.fortune-account-link,.fortune-account-menu summary){border-color:transparent!important;background:transparent!important;box-shadow:none!important}
 body [data-fortune-header].fortune-header :is(.fortune-header-menu,.fortune-appearance-trigger,.fortune-account-link,.fortune-account-menu summary):hover{background:var(--fortune-surface-hover,#27272b)!important}
 body [data-fortune-header].fortune-header [data-fortune-header-context]>:is(span,h1),
 body [data-fortune-header].fortune-header :is(.breadcrumb,.fortune-menu-label,.projects-location,.private-label){display:none!important}
 @media(max-width:600px){
  body.app-dev [data-fortune-header].fortune-header>[data-fortune-header-actions],
  body.director-open-canvas:has(.top-save:not([hidden])) [data-fortune-header].fortune-header>[data-fortune-header-actions]{grid-column:1/-1;grid-row:2}
 }
}

/* The section name stays beside the sidebar star. Leave its space clear when
   Director also has a native project rename control in the same header row. */
@layer fortune-design {
  body.fortune-app-shell:not(.fortune-nav-open) [data-fortune-header-start]:has(#board-title) {
    padding-inline-start: 88px;
  }
}

/* Home and Projects share the reference's quiet, rounded dashboard chrome.
   The original contextual navigation is moved into the shared center slot. */
body.fortune-app-shell.fortune-home-dashboard {
 --fortune-header-height:96px;
 --fortune-header-row-height:96px;
}
@layer fortune-design {
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header {
  left:0!important;right:0!important;width:100%!important;
  grid-template-columns:minmax(164px,1fr) minmax(0,max-content) minmax(164px,1fr)!important;
  grid-template-rows:96px!important;gap:0 20px!important;padding:0 28px!important;
  background:var(--home-desk,#15161a)!important;
  color:var(--home-ink,#f4f4f5);font-family:var(--home-ui-font,var(--font-body,Inter,sans-serif));
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header>[data-fortune-header-start] {
  overflow:visible!important;padding:0!important;gap:0!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header>[data-fortune-header-center] {
  width:max-content;max-width:calc(100vw - 424px);padding:6px 0;overflow-x:auto;
  scrollbar-width:none;scroll-padding-inline:8px;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-logo {
  box-sizing:border-box;display:grid!important;grid-template-areas:"logo";justify-items:center;
  justify-self:start;flex:none;width:164px!important;min-width:164px!important;height:52px!important;
  min-height:52px!important;padding:9px 17px!important;border:1px solid var(--home-line,#ffffff10)!important;
  border-radius:30px!important;background:var(--home-sheet,#1d1e23);overflow:hidden;
  transition:background .18s ease,transform .18s ease;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-logo:hover {
  background:var(--home-hover,var(--home-sheet-top,#28292f));transform:translateY(-1px);
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-logo>img {
  grid-area:logo;display:block;width:128px!important;height:auto!important;max-width:100%;
  aspect-ratio:1219 / 360;object-fit:contain;pointer-events:none;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-wordmark-light {display:none!important}
 html[data-fortune-theme=light] body.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-wordmark-dark {display:none!important}
 html[data-fortune-theme=light] body.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-wordmark-light {display:block!important}
 html body.fortune-app-shell.fortune-home-dashboard .home-workspace-nav {
  box-sizing:border-box;display:flex;align-items:center;flex:none;gap:3px;width:max-content;min-width:0;
  margin:0;padding:5px;border:1px solid var(--home-line,#ffffff10);border-radius:32px;
  background:var(--home-sheet,#1d1e23);color:var(--home-ink,#f4f4f5);pointer-events:auto;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header] .home-workspace-nav>:is(a,button) {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;
  min-height:40px;margin:0;padding:10px 17px;border:0;border-radius:24px;background:transparent;
  color:var(--home-muted,#a8a8b1)!important;font:400 14px/1.25 var(--home-ui-font,var(--font-body,Inter,sans-serif));
  text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background .18s ease,color .18s ease;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header] .home-workspace-nav>:is(a,button):hover {
  background:var(--home-hover,var(--home-sheet-top,#28292f));color:var(--home-ink,#f4f4f5)!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header] .home-workspace-nav>:is(a,button):is([aria-current=page],[aria-pressed=true]) {
  background:var(--home-nav-active,var(--home-sheet-top,#303138));color:var(--home-ink,#f4f4f5)!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header] .home-workspace-nav>button:disabled {opacity:.5;cursor:wait;background:transparent}
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header :is(.fortune-account-link,.fortune-account-menu summary) {
  width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;
  border:1px solid var(--home-line,#ffffff10)!important;border-radius:50%!important;background:var(--home-sheet,#1d1e23)!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header :is(.fortune-account-link,.fortune-account-menu summary):hover {background:var(--home-hover,var(--home-sheet-top,#28292f))!important}
 html body.fortune-app-shell.fortune-report-home [data-fortune-header].fortune-header :is(.fortune-account-link,.fortune-account-menu summary) {
  padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;
 }
 html body.fortune-app-shell.fortune-report-home [data-fortune-header].fortune-header :is(.fortune-account-link,.fortune-account-menu summary):hover {
  background:transparent!important;opacity:.8;
 }
 html body.fortune-app-shell.fortune-report-home [data-fortune-header].fortune-header :is(.fortune-account-link,.fortune-account-menu summary)::before {
  width:26px;height:26px;flex-basis:26px;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7.5' r='4'/%3E%3Cpath d='M3.4 20.5c.8-4.1 3.9-6.7 8.6-6.7s7.8 2.6 8.6 6.7'/%3E%3C/svg%3E");
 }
 html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-account-panel {
  position:fixed;top:82px;right:28px;left:auto;bottom:auto;width:min(300px,calc(100vw - 32px));
  min-width:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 106px);overflow:auto;
  border:1px solid var(--home-line,#ffffff10)!important;border-radius:20px;background:var(--home-sheet,#1d1e23)!important;
  color:var(--home-ink,#f4f4f5)!important;
 }
 html body.fortune-home-dashboard [data-fortune-header].fortune-header :is(a,button,summary):focus-visible {
  outline:2px solid var(--home-ink,#f4f4f5);outline-offset:3px;
 }
}
body.fortune-app-shell.fortune-home-dashboard.fortune-header-compact {
 --fortune-header-height:136px;--fortune-header-row-height:72px;
}
@layer fortune-design {
 html body.fortune-app-shell.fortune-home-dashboard.fortune-header-compact [data-fortune-header].fortune-header {
  grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:72px 52px!important;
  gap:0 12px!important;padding:0 18px 12px!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard.fortune-header-compact [data-fortune-header].fortune-header>[data-fortune-header-center] {
  grid-column:1/-1!important;grid-row:2!important;justify-self:stretch;width:100%;max-width:100%!important;padding:0;
 }
 html body.fortune-app-shell.fortune-home-dashboard.fortune-header-compact [data-fortune-header].fortune-header>[data-fortune-header-actions] {grid-column:2!important;grid-row:1!important}
}
@media(max-width:900px) {
 body.fortune-app-shell.fortune-home-dashboard {--fortune-header-height:136px;--fortune-header-row-height:72px}
 @layer fortune-design {
  html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header {
   grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:72px 52px!important;
   gap:0 12px!important;padding:0 18px 12px!important;
  }
  html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header>[data-fortune-header-center] {
   grid-column:1/-1!important;grid-row:2!important;justify-self:stretch;width:100%;max-width:100%!important;padding:0;
  }
  html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header>[data-fortune-header-actions] {grid-column:2!important;grid-row:1!important}
  html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-logo {width:148px!important;min-width:148px!important;height:46px!important;min-height:46px!important;padding:7px 15px!important}
  html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-dashboard-logo>img {width:116px!important}
  html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header].fortune-header .fortune-account-panel {top:64px;right:18px;max-height:calc(100dvh - 82px)}
  html body.fortune-app-shell.fortune-home-dashboard [data-fortune-header] .home-workspace-nav>:is(a,button) {padding-inline:15px;font-size:13px}
 }
}
@media(prefers-reduced-motion:reduce) {
 body.fortune-home-dashboard .fortune-dashboard-logo,body.fortune-home-dashboard .home-workspace-nav>:is(a,button) {transition:none!important;transform:none!important}
}

/* The Home report puts its page tabs below the header. Only Projects needs
   the dashboard's second header row at narrow widths. */
body.fortune-app-shell.fortune-home-dashboard.fortune-report-home {
 --fortune-header-height:56px;
 --fortune-header-row-height:var(--fortune-header-height);
}
@layer fortune-design {
 html body.fortune-app-shell.fortune-home-dashboard.fortune-report-home [data-fortune-header].fortune-header {
  left:var(--fortune-nav-offset,0px)!important;width:calc(100% - var(--fortune-nav-offset,0px))!important;
  grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:var(--fortune-header-row-height)!important;
  padding:0 clamp(12px,2vw,24px)!important;
  background:var(--home-header-bg,var(--home-desk))!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard.fortune-report-home [data-fortune-header].fortune-header>[data-fortune-header-center] {
  display:none!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard.fortune-report-home [data-fortune-header].fortune-header>[data-fortune-header-actions] {
  grid-column:2!important;
 }
 html body.fortune-app-shell.fortune-home-dashboard.fortune-report-home [data-fortune-header].fortune-header .fortune-account-panel {
  top:calc(var(--fortune-header-height) - 2px);max-height:calc(100dvh - var(--fortune-header-height) - 12px);
 }
}

/* Director's project tools overlay the canvas. Its coordinate space stays
   fixed during the reveal, including while the navigation drawer is moving. */
body.director-open-canvas.director-edge-header {--canvas-topbar-height:0px}
body.director-edge-header #director-header-edge {
 position:fixed;z-index:60;top:0;left:var(--fortune-nav-offset,0px);right:0;
 width:calc(100% - var(--fortune-nav-offset,0px));height:10px;min-height:0;padding:0;border:0;border-radius:0;
 background:transparent;box-shadow:none;cursor:pointer;
}
body.director-edge-header #director-header-edge::after {
 content:"";display:block;width:32px;height:3px;margin:auto;border-radius:3px;
 background:var(--fortune-surface-muted,#898994);opacity:.55;
}
body.director-edge-header #director-header-edge[aria-expanded="true"]::after {opacity:0}
body.director-edge-header #director-header-edge:focus-visible::after {opacity:1}
@layer fortune-design {
 html body.director-edge-header > #director-project-header.fortune-header {
  translate:0 -100%;opacity:0;pointer-events:none!important;
  background:var(--fortune-surface-bg,var(--bg))!important;
  transition:translate .6s var(--st-spring,cubic-bezier(.3,1.55,.45,1)),opacity .35s var(--st-settle,cubic-bezier(.2,.9,.25,1)),transform .5s var(--st-spring,cubic-bezier(.3,1.55,.45,1))!important;
 }
 html body.director-edge-header > #director-header-edge[aria-expanded="true"] ~ #director-project-header {
  translate:0 0;opacity:1;pointer-events:auto!important;
 }
 @media(prefers-reduced-motion:reduce) {
  html body.director-edge-header > #director-project-header.fortune-header {transition:none!important}
 }
}
@media(hover:none), (pointer:coarse) {
 body.director-edge-header #director-header-edge {
  left:calc(50% + var(--fortune-nav-offset,0px)/2);right:auto;transform:translateX(-50%);
  width:64px;height:24px;
 }
 body.director-edge-header #director-header-edge[aria-expanded="true"] {height:12px}
 body.director-edge-header #director-header-edge[aria-expanded="true"]::after {opacity:.55}
}
