/* A single contextual menu row, with the wordmark centered in its own space. */
@media screen {
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn) {--workspace-nav-pad:10px;position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:0;box-sizing:border-box;padding-inline:var(--workspace-nav-pad);color:var(--dim);border-color:transparent;background:none;font:600 14px/20px var(--sans);transition:color 180ms ease;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn):hover:not(:disabled) {color:var(--text);border-color:transparent;background:none;}
  @media(prefers-reduced-motion:reduce) {body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn) {transition:none;}}
  body.studio-refined #brand #workspaceDock .workspaceGlyph {opacity:1;filter:none;}
  body.studio-refined #brand #workspaceDock .workspaceLabel {position:relative;z-index:2;top:-2px;min-height:0;margin:0;padding:0;font-size:14px;font-weight:600;line-height:20px;}
  body.studio-refined #brand #workspaceDock #toolsBtn {overflow:visible;}
  body.studio-refined #brand #workspaceDock #toolsBadge {position:relative;}
  body.studio-refined #brand #workspaceDock .workspaceConstruction {position:absolute;z-index:2;display:grid;place-items:center;top:50%;left:calc(100% - 4px);transform:translateY(-50%);box-sizing:border-box;width:28px;min-width:28px;height:28px;min-height:28px;margin:0;padding:1px;border:1px solid transparent;border-radius:5px;background:transparent;color:#ce9c83;line-height:0;cursor:pointer;}
  body.studio-refined #brand #workspaceDock .workspaceConstruction[hidden] {display:none;}
  body.studio-refined #brand #workspaceDock .workspaceConstruction:is(:hover,[aria-expanded="true"]) {background:color-mix(in srgb,#ce9c83 10%,transparent);border-color:color-mix(in srgb,#ce9c83 45%,transparent);}
  body.studio-refined #brand #workspaceDock .workspaceConstruction:focus-visible {outline:1px solid #ce9c83;outline-offset:2px;}
  .workspaceConstruction svg {display:block;width:24px;height:24px;overflow:visible;transform-origin:50% 85%;}
  .workspaceConstructionFill {fill:currentColor;fill-opacity:.24;}
  .workspaceConstructionStripe {fill:var(--text);fill-opacity:.88;}
  .workspaceConstructionOutline,.workspaceConstructionBase {stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
  .workspaceConstructionOutline {fill:none;}
  .workspaceConstructionBase {fill:currentColor;fill-opacity:.5;}
  .productionConstructionBubble {position:fixed;z-index:1100;box-sizing:border-box;margin:0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--bubble-accent,#ce9c83) 45%,var(--line));border-radius:9px;background:var(--panel);color:var(--text);box-shadow:0 10px 30px #0005;font:400 12px/18px var(--sans);animation:construction-bubble-in 150ms ease-out;}
  .productionConstructionBubble[hidden] {display:none;}
  .productionConstructionBubble::before {content:'';position:absolute;left:calc(var(--bubble-arrow) - 5px);top:-6px;width:9px;height:9px;transform:rotate(45deg);border-left:1px solid color-mix(in srgb,var(--bubble-accent,#ce9c83) 45%,var(--line));border-top:1px solid color-mix(in srgb,var(--bubble-accent,#ce9c83) 45%,var(--line));background:var(--panel);}
  .productionConstructionBubble strong {display:block;font-weight:600;color:var(--bubble-title,var(--icon-gold));}
  .productionConstructionBubble p {margin:4px 0 0;color:var(--dim);}
  @keyframes construction-bubble-in {from {opacity:0;translate:0 -3px;}to {opacity:1;translate:0 0;}}
  @media(prefers-reduced-motion:reduce) {.productionConstructionBubble {animation:none;}}
  body.studio-refined #brand #workspaceDock :is(.workspaceGlyph,.workspaceIllustration) {width:20px;height:20px;}
  #headerSaveStatus {position:absolute;left:calc(var(--studio-side) + 12px);top:18px;display:grid;place-items:center;width:28px;height:28px;border-radius:6px;}
  #headerSaveStatus>i {display:block;width:8px;height:8px;border-radius:50%;background:var(--dim);}
  #headerSaveStatus[data-state="saved"]>i {background:var(--icon-mint);}
  #headerSaveStatus[data-state="saving"]>i {background:var(--icon-gold);}
  #headerSaveStatus[data-state="error"]>i {background:var(--icon-coral);}
  #headerSaveStatus:focus-visible {outline:1px solid var(--line-strong);outline-offset:0;}
  #headerSaveStatus.just-saved>i {animation:header-save-pulse .7s ease-out;}
  body.splash-home #headerSaveStatus {display:none;}
  body.studio-refined.splash-home #brand :is(#workspaceDock,.systemGlobalActions) {display:none!important;}
  body.writer-sidebar-hidden #headerSaveStatus {left:12px;}
  @keyframes header-save-pulse {0% {box-shadow:0 0 0 0 color-mix(in srgb,var(--icon-mint) 35%,transparent);}100% {box-shadow:0 0 0 9px transparent;}}
  @media(prefers-reduced-motion:reduce) {#headerSaveStatus.just-saved>i {animation:none;}}
  @media(min-width:981px) {
    body.studio-refined #sidebar header#brand {display:grid;grid-template-columns:var(--studio-side) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:center;align-content:stretch;}
    body.studio-refined #brand .brandHeading {grid-column:1;grid-row:1;min-width:0;border-right:1px solid var(--line);background:var(--panel);}
    body.studio-refined #brand #workspaceDock {grid-column:2;grid-row:1;align-self:stretch;justify-self:center;justify-content:center;align-items:center;box-sizing:border-box;height:100%;min-height:0;gap:8px;margin-block:0;padding:0 8px;}
    body.studio-refined #brand #workspaceDock>div {display:flex;align-items:center;height:36px;min-height:0;margin:0;padding:0;}
    body.studio-refined #brand #workspaceDock .workspaceGlyph {display:none!important;}
    body.studio-refined #brand .systemGlobalActions {position:absolute;left:auto;right:18px;top:18px;height:28px;transform:none;margin-left:0;padding:0;}
    body.studio-refined #brand #systemFileMenu>summary {display:grid;place-items:center;box-sizing:border-box;width:28px;min-width:0;height:28px;min-height:0;margin:0;padding:0;gap:0;border:1px solid var(--line);border-radius:5px;background:var(--surface-2);text-align:center;font:500 11px/18px var(--sans);}
    body.studio-refined #brand #systemFileMenu>summary>svg {display:block;width:16px;height:16px;stroke-width:1.8;color:var(--icon-mint);}
    body.studio-refined #brand #systemFileMenu>summary>span {display:block;margin:0;padding:0;line-height:18px;}
    body.studio-refined #brand #systemFileMenu>.systemMenuPanel {left:auto;right:0;width:max-content;min-width:0;}
    body.studio-refined.writer-mode.writer-sidebar-hidden:not(.splash-home) #sidebar header#brand {grid-template-columns:0 minmax(0,1fr);}
    body.studio-refined.writer-mode.writer-sidebar-hidden:not(.splash-home) #brand .brandHeading {display:none!important;}
    body.studio-refined.splash-home #sidebar header#brand {border-bottom:1px solid var(--line);background:var(--panel);}
    body.studio-refined.splash-home #brand .brandHeading {border-right:0;background:transparent;}
    body.studio-refined.splash-home #brand #workspaceDock {position:absolute;left:50%;top:0;bottom:0;height:auto;transform:translateX(-50%);}
  }
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn)[aria-pressed="true"] {color:var(--text);border-color:transparent;background:none;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn)[aria-pressed="true"]:hover:not(:disabled) {color:var(--text);border-color:transparent;background:none;}
  /* Approved real-photo crops. Only the decorative layer clips; File and Import
     stay outside it, and navigation retains the existing 64px header geometry. */
  .workspaceHeaderPhoto {display:none;}
  body.studio-refined #brand #workspaceDock #writerBtn {--workspace-tone:#80b6a6;}
  body.studio-refined #brand #workspaceDock #brandHome {--workspace-tone:#a9a0c8;}
  body.studio-refined #brand #workspaceDock #toolsBtn {--workspace-tone:#ce9c83;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn)::after {display:none;content:none;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn)[aria-pressed="true"]::after {content:'';position:absolute;display:block;z-index:2;left:50%;right:auto;bottom:5px;width:24px;height:2px;border-radius:2px;background:var(--workspace-tone);transform:translateX(-50%);}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn):focus-visible {outline:1px solid var(--workspace-tone);outline-offset:2px;}
  @media(min-width:981px) {
    body.studio-refined #brand {--workspace-photo-rail:var(--studio-side);}
    body.studio-refined.writer-mode.writer-sidebar-hidden #brand {--workspace-photo-rail:0px;}
    body.studio-refined #brand>.workspaceHeaderPhoto {position:absolute;display:block;z-index:0;left:calc(var(--workspace-photo-rail) + (100% - var(--workspace-photo-rail))/2);top:0;width:calc((100% - var(--workspace-photo-rail))*.56);height:64px;overflow:hidden;transform:translateX(-50%);pointer-events:none;opacity:0;mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent);transition:opacity 220ms ease;}
    body.studio-refined #brand>.workspaceHeaderPhoto>img {position:absolute;display:block;left:50%;top:50%;width:100%;max-width:none;height:var(--workspace-photo-height,64px);margin:0;object-fit:cover;object-position:var(--workspace-photo-crop);transform:translate(-50%,-50%) translate(var(--workspace-photo-x,0px),0px) scale(var(--workspace-photo-scale,1));filter:grayscale(1) brightness(.78) contrast(1.06);}
    body.studio-refined #brand>.workspaceHeaderPhoto[data-workspace="write"] {--workspace-photo-height:65px;--workspace-photo-crop:50% 62%;}
    body.studio-refined #brand>.workspaceHeaderPhoto[data-workspace="read"] {--workspace-photo-crop:50% 88%;--workspace-photo-scale:1;}
    body.studio-refined #brand>.workspaceHeaderPhoto[data-workspace="production"] {--workspace-photo-crop:50% 42%;--workspace-photo-scale:1.42;}
    body.studio-refined:not(.splash-home) #brand:has(#writerBtn[aria-pressed="true"])>[data-workspace="write"],
    body.studio-refined:not(.splash-home) #brand:has(#brandHome[aria-pressed="true"])>[data-workspace="read"],
    body.studio-refined:not(.splash-home) #brand:has(#toolsBtn[aria-pressed="true"])>[data-workspace="production"] {opacity:.28;}
    body.studio-refined #brand :is(.brandHeading,#workspaceDock,.systemGlobalActions,#headerSaveStatus) {z-index:2;}
    body.studio-refined #brand :is(.brandHeading,#workspaceDock) {position:relative;}
    @media(prefers-reduced-motion:reduce) {body.studio-refined #brand>.workspaceHeaderPhoto {transition:none;}}
  }
  body.studio-refined #sidebar header#brand::after {content:none;display:none;}
  body.studio-refined #brand #systemFileMenu>summary>.systemIcon {transform:none;}
  body.studio-refined #brand #systemFileMenu[open]>summary {border-color:color-mix(in srgb,var(--accent) 70%,var(--line));background:color-mix(in srgb,var(--accent) 7%,var(--surface-2));}
  @media(min-width:981px) {
    body.studio-refined:not(.splash-home) #brand .brandHeading {border-right-color:#000;}
    body.studio-refined:not(.splash-home) #sidebar {border-right-color:#000;}
    /* Keep the existing border's layout space so the brand never moves. Only
       the workspace side receives a horizontal rule; the logo joins its rail. */
    body.studio-refined:not(.splash-home) #sidebar header#brand {border-bottom-color:transparent;}
    body.studio-refined:not(.splash-home) #sidebar header#brand::after {content:'';display:block;position:absolute;z-index:1;left:var(--studio-side);right:0;bottom:-1px;height:1px;background:#000;pointer-events:none;}
    body.studio-refined:is(.writer-sidebar-hidden,.workspace-sidebar-hidden):not(.splash-home) #sidebar header#brand::after {left:0;}
    body.studio-refined #writerToolbar {border-bottom-color:#000;}
  }
  body.studio-refined #main {scrollbar-gutter:stable;}
  /* Title Page fields belong to the drawer scroller; avoid a cramped inner rail. */
  body.studio-refined #writerDrawer .writerDetailsBody {max-height:none;overflow:visible;}
  body.studio-refined #brand .brandHeading {flex:0 0 var(--studio-side);width:var(--studio-side);height:64px;padding:0 16px;align-items:center;justify-content:center;text-align:center;}
  body.studio-refined #brand #brandSplash {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:36px;width:max-content;max-width:100%;padding-inline:12px;}
  @media(min-width:981px) {
    /* The brand owns one stable 304px slot in every workspace. */
    body.studio-refined #sidebar header#brand {--brand-anchor-width:304px;box-sizing:border-box;height:64px;min-height:64px;margin:0;padding:0;border-bottom:1px solid var(--line);}
    body.studio-refined #brand .brandHeading {position:relative;top:auto;left:auto;align-self:stretch;display:grid;grid-template-columns:var(--brand-anchor-width) minmax(0,1fr);align-items:center;justify-content:start;justify-items:center;height:100%;min-height:0;margin:0;padding:0;}
    body.studio-refined #brand #brandSplash {grid-column:1;grid-row:1;align-self:center;justify-self:center;}
    body.studio-refined #brand #brandSplash {gap:9px;translate:-1px 0;}
    body.studio-refined #brand #brandSplash {min-height:44px;padding:5px 14px;border-radius:7px;}
    body.studio-refined #brand #brandSplash:is(:hover,:active) {border-color:color-mix(in srgb,var(--icon-mint) 20%,transparent);background:color-mix(in srgb,var(--icon-mint) 6%,transparent);box-shadow:none;}
    body.studio-refined #brand #brandSplash:focus-visible {outline:1px solid var(--icon-mint);outline-offset:2px;}
    body.studio-refined #brand #brandSplash>.brandMark {width:32px;height:32px;}
    body.studio-refined #brand #brandSplash>span {font-size:22px;}
    /* Center the visible E/S cap height instead of the font's padded line box. */
    @supports (text-box-trim:trim-both) and (text-box-edge:cap alphabetic) {
      body.studio-refined #brand #brandSplash>span {padding:0;line-height:1;text-box-trim:trim-both;text-box-edge:cap alphabetic;}
    }
  }
  body.studio-refined .systemGlobalActions {position:relative;gap:4px;margin-left:auto;padding:0 16px 0 0;flex:none;}
  /* Save feedback floats outside the menu's layout; the name centers on nav â†’ File. */
  body.studio-refined .systemProjectName {display:none!important;}
  .systemProjectField {position:relative;display:flex;align-items:center;width:min(100%,var(--project-title-limit,360px));min-width:0;height:36px;}
  body.studio-refined #brand #writerDocumentName {box-sizing:border-box;display:block;flex:none;width:100%;height:36px;min-width:0;margin:0;padding:0 32px;border:1px solid var(--line-soft);border-radius:6px;background:color-mix(in srgb,var(--accent) 4%,var(--panel));color:var(--text);text-align:center;font-size:13px;line-height:34px;text-overflow:ellipsis;}
  .systemProjectEdit {position:absolute;top:50%;right:10px;display:grid;place-items:center;width:16px;height:16px;line-height:0;transform:translateY(-50%);color:var(--dim);opacity:.65;pointer-events:none;}
  .systemProjectEdit .systemIcon {display:block;width:14px;height:14px;}
  body.studio-refined #brand #writerDocumentName:hover {border-color:var(--line);background:var(--surface-2);}
  body.studio-refined #brand #writerDocumentName:focus {border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 20%,transparent);outline-offset:1px;background:var(--surface-0);}
  .systemProjectField:focus-within .systemProjectEdit {color:var(--accent);opacity:1;}
  body.studio-refined .systemGlobalActions>.systemSaveState {position:absolute;top:50%;right:calc(100% + 8px);justify-content:center;width:72px;min-width:72px;margin:0;transform:translateY(-50%);}
  body.studio-refined .systemGlobalActions[data-save-compact="true"]>.systemSaveState {width:16px;min-width:16px;font-size:0;gap:0;}
  body.studio-refined .systemGlobalActions>.systemViewButton {min-width:56px;min-height:36px;padding:8px 10px;border-color:transparent;background:none;}
  body.studio-refined .systemGlobalActions>.systemViewButton:hover,body.studio-refined .systemGlobalActions>.systemViewButton[aria-expanded="true"] {background:var(--surface-3);border-color:var(--line);}
  body.studio-refined .systemGlobalActions>.systemMenu>summary {min-height:36px;gap:6px;padding:8px 10px;border-color:transparent;background:none;}
  body.studio-refined .systemGlobalActions>.systemMenu>summary:hover,
  body.studio-refined .systemGlobalActions>.systemMenu[open]>summary {background:var(--surface-3);border-color:var(--line);}
  body.studio-refined #appUtilityDock,body.studio-refined #appearanceSettings {display:contents!important;}
  body.studio-refined #appearanceSettingsBtn {display:none!important;}
  body.studio-refined #brand #systemFilePanel>button {display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;width:100%;height:28px;min-height:28px;min-width:0;margin:0;padding:4px 8px;border:0;border-radius:5px;background:none;color:var(--text);font:500 11px/18px var(--sans);text-align:left;white-space:nowrap;}
  body.studio-refined #brand #systemFilePanel>button:hover {background:var(--surface-3);}
  body.studio-refined #readExport,body.studio-refined #writerExportMenu {display:none!important;}
  body.studio-refined .systemGlobalActions .systemMenuPanel {max-height:calc(100dvh - 84px);overflow:auto;}
  body.studio-refined .systemWriterView .systemMenuPanel {min-width:270px;}
  body.studio-refined .systemReaderView .systemMenuPanel {min-width:220px;}
  body.studio-refined .systemWriterTools .systemMenuPanel {min-width:240px;}
  body.studio-refined .systemWriterView .systemMenuPanel>button {width:100%;}
  @media(max-width:900px) {
    body.studio-refined:not(.splash-home) #brand .brandHeading {flex-basis:56px;width:56px;padding-inline:14px;}
    body.studio-refined:not(.splash-home) #brand .brandLockup>span {display:none;}
    body.studio-refined:not(.splash-home) #brand #brandSplash {width:36px;max-width:none;padding:0;}
    body.studio-refined .systemProjectName {padding-inline:10px;}
  }
  @media(max-width:700px) {
    body.studio-refined #sidebar :is(#mobileDrawer,#writerDrawer,#productionDrawer,#homeDrawer) {scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:var(--es-scrollbar-thumb,transparent) transparent;}
    body.studio-refined #brand .brandHeading {position:absolute;top:0;left:0;width:calc(100% - var(--shell-actions-width,174px) - 12px);height:56px;min-height:56px;padding:0 10px;}
    body.studio-refined #brand .brandLockup>span {font-size:16px;}
    body.studio-refined .systemGlobalActions {position:absolute;top:10px;right:12px;gap:2px;height:36px;padding:0;margin:0;}
    body.studio-refined .systemGlobalActions>.systemMenu>summary {min-width:0;padding:8px 6px;gap:4px;font-size:12px;}
    body.studio-refined .systemGlobalActions>.systemViewButton {min-width:44px;padding:8px 6px;font-size:12px;}
    body.studio-refined:not(.splash-home) #brand .brandHeading {display:grid;place-items:center;width:56px;flex-basis:56px;height:56px;padding:0;}
    body.studio-refined:not(.splash-home) #brand #brandSplash {display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0;padding:0;line-height:0;}
    body.studio-refined:not(.splash-home) #brand #brandSplash>.brandMark {display:block;width:24px;height:24px;margin:0;}
    body.studio-refined .systemProjectName {position:absolute;top:10px;left:56px;right:calc(var(--shell-actions-width,174px) + 20px);height:36px;padding:0 6px;}
    body.studio-refined #brand #writerDocumentName {padding-inline:10px;font-size:12px;}
    .systemProjectEdit {display:none;}
    body.studio-refined #systemFileMenu>summary {min-width:54px;}
    body.studio-refined .systemGlobalActions .systemMenuPanel {max-width:calc(100vw - 24px);max-height:calc(100dvh - 72px);}
    body.studio-refined #writerToolbar {justify-content:flex-start;}
    body.studio-refined #writerFormatRail {width:100%;}
    body.studio-refined #writerFormatRail .studioMobileFormats>summary {justify-content:space-between;}
  }
  @media(max-width:360px) {
    body.studio-refined #brand .brandLockup {gap:6px;}
    body.studio-refined #brand .brandLockup>span {font-size:13.5px;letter-spacing:-.4px;}
    body.studio-refined #brand .brandMark {width:20px;height:20px;}
  }
}

/* Approved Cinema header: fixed geometry, centered capitals and a close fine rule. */
@media screen and (min-width:981px) {
  :root {--workspace-nav-photo-opacity:.46;--workspace-nav-photo-width:.64;--workspace-nav-tone:#80b6a6;}
  body:has(#brandHome[aria-pressed="true"]) {--workspace-nav-tone:#a9a0c8;}
  body:has(#toolsBtn[aria-pressed="true"]) {--workspace-nav-tone:#ce9c83;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn) {height:36px;min-height:36px;box-sizing:border-box;padding:0 13px;transition:color .2s,background-color .2s,border-color .2s,box-shadow .2s;}
  body.studio-refined #brand #workspaceDock .workspaceLabel {top:-1px;line-height:20px;white-space:nowrap;transition:color .2s,text-shadow .2s;}
  @supports(text-box-trim:trim-both) and (text-box-edge:cap alphabetic) {
    body.studio-refined #brand #workspaceDock .workspaceLabel {top:0;text-box-trim:trim-both;text-box-edge:cap alphabetic;line-height:1;}
  }
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn):hover .workspaceLabel {color:#f1eee6;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn)[aria-pressed="true"] .workspaceLabel {text-shadow:0 1px 8px #000b;}
  body.studio-refined #brand>.workspaceHeaderPhoto {width:calc((100% - var(--workspace-photo-rail))*var(--workspace-nav-photo-width));transition:opacity .26s ease,width .26s ease;}
  body.studio-refined:not(.splash-home) #brand:has(#writerBtn[aria-pressed="true"])>[data-workspace="write"],
  body.studio-refined:not(.splash-home) #brand:has(#brandHome[aria-pressed="true"])>[data-workspace="read"],
  body.studio-refined:not(.splash-home) #brand:has(#toolsBtn[aria-pressed="true"])>[data-workspace="production"] {opacity:var(--workspace-nav-photo-opacity)!important;}
  body.studio-refined #brand>.workspaceHeaderPhoto::after {content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 45% 120% at 50% 50%,color-mix(in srgb,var(--workspace-nav-tone) 28%,transparent),transparent 85%);mix-blend-mode:screen;}

  /* B · Cinema: small tracked capitals and a wider photographic strip. */
  body {--workspace-nav-photo-opacity:.52;--workspace-nav-photo-width:.82;}
  body.studio-refined #brand #workspaceDock .workspaceLabel {font-family:var(--sans);font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:1.7px;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn) {padding-inline:20px;color:#9da7a4;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn)[aria-pressed="true"] {color:#f3f0e6;}
  body.studio-refined #brand #workspaceDock :is(#writerBtn,#brandHome,#toolsBtn)[aria-pressed="true"]::after {width:calc(100% - 40px);height:1.5px;bottom:6px;box-shadow:0 1px 7px color-mix(in srgb,var(--workspace-tone) 35%,transparent);}
  body.studio-refined #brand>.workspaceHeaderPhoto::after {background:linear-gradient(0deg,color-mix(in srgb,var(--workspace-nav-tone) 26%,transparent),transparent 90%);}

  @media(prefers-reduced-motion:reduce) {body.studio-refined #brand :is(.workspaceHeaderPhoto,.workspaceLabel,#writerBtn,#brandHome,#toolsBtn) {transition:none!important;}}
}

@media screen {
  #headerSaveStatus {box-sizing:border-box;min-width:28px;min-height:28px;margin:0;padding:0;border:1px solid transparent;background:transparent;cursor:pointer;border-radius:5px;}
  #headerSaveStatus:is(:hover,[aria-expanded="true"]) {border-color:color-mix(in srgb,var(--icon-mint) 45%,transparent);background:color-mix(in srgb,var(--icon-mint) 10%,transparent);}
  #headerSaveStatus:focus-visible {outline:1px solid var(--icon-mint);outline-offset:2px;}
  .headerSaveBubble {--bubble-accent:var(--icon-mint);--bubble-title:var(--icon-mint);}
}

/* Reserve the utility hit areas in the compact desktop header as well. */
@media screen and (min-width:821px) and (max-width:980px) {
  html:not(.ipad-device) body.studio-refined:not(.splash-home) #brand #workspaceDock {position:absolute;top:0;bottom:0;left:calc(var(--studio-side) + 56px);right:56px;display:flex;align-items:center;justify-content:center;gap:8px;width:auto;height:64px;margin:0;padding:0;transform:none;}
  html:not(.ipad-device) body.studio-refined.workspace-sidebar-hidden:not(.splash-home) #brand #workspaceDock {left:56px;}
}
