.navigationWorkspaceTabs{display:flex;align-items:center;gap:7px;padding:9px 24px;background:#eeefeb;border-bottom:1px solid #dce0d9;overflow-x:auto;scrollbar-width:thin;min-height:52px}.navigationWorkspaceTab{display:inline-flex;flex:none;align-items:center;background:#e3e6df;border:1px solid transparent;border-radius:10px;max-width:290px}.navigationWorkspaceTab.active{background:#fff;border-color:#d5b42c;box-shadow:inset 0 -3px #f4c400}.navigationWorkspaceTab button{border:0;background:none;min-height:34px;padding:8px 10px;color:#30372f;font-size:13px}.navigationWorkspaceTab button:first-child{min-width:75px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.navigationWorkspaceTab button:last-child{flex:none;font-size:19px;padding:4px 9px}.navigationNewPage{flex:none;width:36px;height:36px;border:1px solid #cdd3c8;border-radius:9px;background:#fff;font-size:23px}.navigationOpenPages{width:auto!important;flex:none;gap:5px!important;white-space:nowrap}.navigationOpenPages b{display:grid;place-items:center;min-width:20px;height:20px;border-radius:6px;background:#f4c400;color:#111;font-size:11px}.navigationPagesDialog{width:min(540px,calc(100% - 24px));padding:0;border-radius:19px;border:0;max-height:85dvh;background:#f7f8f4}.navigationPagesDialog header{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;background:#202620;color:#fff;border-bottom:4px solid #f4c400}.navigationPagesDialog h2{font-size:21px;margin:0}.navigationPagesDialog header button{color:#fff;background:none;border:0;font-size:27px;width:40px;height:40px}.navigationPageList{padding:12px;overflow-y:auto;max-height:55dvh}.navigationPageRow{display:flex;gap:4px;background:#fff;border:1px solid #dce0d7;border-radius:12px;margin-bottom:8px}.navigationPageRow:has([aria-current=page]){border-color:#c4a520;background:#fff9d9}.navigationPageRow button{min-height:56px;background:none;border:0;text-align:left;padding:12px;color:#252c25}.navigationPageRow button:first-child{flex:1;min-width:0}.navigationPageRow b,.navigationPageRow small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.navigationPageRow small{color:#63705f;margin-top:4px;font-size:12px}.navigationPageRow button:last-child{width:45px;text-align:center;font-size:23px}.navigationPagesDialog footer{display:grid;gap:8px;padding:12px 16px 18px;border-top:1px solid #dce0d7}.navigationPagesDialog footer button{min-height:44px;padding:10px;border:1px solid #d2d8cb;border-radius:10px;background:#fff;font-weight:750}.navigationPagesDialog footer button:first-child{background:#f4c400;border-color:#e4bc00}.navigationWorkspaceTabs button:focus-visible,.navigationPagesDialog button:focus-visible,.navigationOpenPages:focus-visible{outline:3px solid #8b7100;outline-offset:2px}@media(max-width:980px){.navigationWorkspaceTabs{display:none}.navigationOpenLabel{display:none}.navigationOpenPages{min-width:48px!important;padding:5px!important}.viewHistoryControls{flex:none;gap:3px!important}}@media(max-width:620px){.navigationOpenLabel{display:inline}.navigationOpenPages{min-width:96px!important;padding:5px 10px!important}.navigationOpenPages>span:first-child{display:none}}@media print{.navigationWorkspaceTabs,.navigationPagesDialog,.navigationOpenPages{display:none!important}}

#modalContent .navigationModalHeader{gap:8px}#modalContent .navigationModalHeader h3{flex:1;min-width:0;overflow-wrap:anywhere}#modalContent .navigationModalHeader .close{flex:none}#modalContent .navigationModalPages{flex:none;min-height:44px;border:1px solid #dbc66c;border-radius:9px;padding:8px 10px;background:#fff7cc;color:#28291f;font-size:12px;font-weight:750;white-space:nowrap}#modalContent .navigationModalPages:focus-visible{outline:3px solid #8b7100;outline-offset:2px}
#modalContent .navigationModalHeader>:first-child{flex:1;min-width:0}#modalContent .navigationModalHeader small{overflow-wrap:anywhere}
@media(max-width:620px){
  #modalContent .navigationModalHeader{flex-wrap:wrap;align-items:center}
  #modalContent .navigationModalHeader>:first-child{flex:1 0 100%;width:100%}
  #modalContent .navigationModalHeader>.kcLauncher{min-height:44px}
  #modalContent .navigationModalHeader>.close{width:44px;height:44px;min-height:44px;margin-left:auto}
}

/* Keep navigation and signed-in tools on separate rows. The cloud account,
   photo button, activity bell and Kira are inserted after the initial render. */
@media(min-width:621px){
  body:not([data-role="worker"]) .topbar{
    display:grid;grid-template-columns:44px minmax(0,1fr) auto;
    align-items:center;height:auto;min-height:76px;gap:8px 14px;padding:10px 24px;
  }
  body:not([data-role="worker"]) .topbar>.desktopSidebarToggle{grid-column:1;grid-row:1}
  body:not([data-role="worker"]) .topbar>h1{
    grid-column:2;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  }
  body:not([data-role="worker"]) .topbar>.viewHistoryControls{
    grid-column:3;grid-row:1;position:static;min-width:0;justify-self:end;
  }
  body:not([data-role="worker"]) .topbar>.topActions{
    grid-column:1/-1;grid-row:2;min-width:0;width:100%;flex-wrap:wrap;
    justify-content:flex-start;gap:8px;
  }
  .topbar .topActions>.topSearch{flex:1 1 220px;min-width:180px;max-width:none}
  .topbar .topActions>.topSearch input{min-width:0}
  .topbar .topActions>.role,.topbar .topActions>button,.topbar .topActions>.syncState{flex-shrink:0}
  .topbar .topActions>.cloudAccount{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
  .topbar .cloudAccount>span{min-width:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar .cloudAccount>button{flex:none}
  .topbar #quickPhotoGlobal,.topbar #activityBell,.topbar .cloudAccount>button{min-height:44px}
  .topbar .role>label{white-space:nowrap}
}
@media(min-width:621px) and (max-width:980px), (orientation:landscape) and (max-height:620px){
  body:not([data-role="worker"]) .topbar{grid-template-columns:minmax(0,1fr) auto;padding:8px 14px}
  body:not([data-role="worker"]) .topbar>.mobileBrand{grid-column:1;grid-row:1}
  body:not([data-role="worker"]) .topbar>.viewHistoryControls{grid-column:2;grid-row:1}
}
@media(max-width:620px){
  /* Search uses the first mobile row; account tools must not squeeze its input. */
  body[data-role="office"].mobileSearchOpen .topbar .topActions>:not(.topSearch):not(.kcLauncher){display:none!important}
  body[data-role="office"].mobileSearchOpen .topbar .topSearch{min-width:0;max-width:none;flex:1}
}

/* One scrollable desktop menu. Automatic expansion overlays the page, so its
   content and reading position never jump when the pointer enters the rail. */
.sidebarMenuSearch,.sidebarPersonalize,#sidebarMenuEmpty{display:none}
.sidebarOptionsDialog{position:fixed;margin:0;width:292px;max-width:calc(100vw - 16px);padding:10px;border:1px solid #dde2d9;border-radius:16px;background:#fff;box-shadow:0 16px 48px #15201530;color:#182019}
.sidebarOptionsDialog::backdrop{background:transparent}
.sidebarOptionsDialog header{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 10px}
.sidebarOptionsDialog button{font:inherit;cursor:pointer}
.sidebarOptionsDialog header button{border:0;background:none;width:36px;height:36px;font-size:24px}
.sidebarOptionsDialog>button{display:block;text-align:left;width:100%;padding:12px;border:1px solid transparent;border-radius:10px;background:#fff;min-height:44px;font-weight:750}
.sidebarOptionsDialog>button:hover,.sidebarOptionsDialog>button[aria-pressed="true"]{background:#fff8d5;border-color:#e3ca65}
.sidebarOptionsDialog small{display:block;font-size:12px;font-weight:400;color:#65705f;margin-top:4px}
.navigationOrganizerDialog [hidden]{display:none!important}
@media(min-width:981px) and (min-height:621px){
  body[data-role="office"] .sidebar{width:248px;padding:16px 10px 10px;transform:none;visibility:visible;transition:width .18s ease;z-index:25}
  body[data-role="office"] .main{margin-left:248px}
  body[data-role="office"] .sidebar .brand{gap:10px;padding:0 2px 14px;min-height:54px}
  body[data-role="office"] .sidebar .mark{width:40px;height:40px;flex:none}
  body[data-role="office"] #desktopNav{min-height:0;flex:1 1 auto;grid-auto-rows:minmax(44px,auto);align-content:start;gap:4px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#c2c8bd transparent;padding-right:3px}
  body[data-role="office"] #desktopNav::-webkit-scrollbar{display:block;width:5px}
  body[data-role="office"] #desktopNav::-webkit-scrollbar-thumb{background:#c2c8bd;border-radius:6px}
  body[data-role="office"] #desktopNav button{grid-template-columns:24px minmax(0,1fr) auto;min-height:44px;gap:6px;padding:9px 10px}
  body[data-role="office"] #desktopNav button span{white-space:normal;line-height:1.3}
  body[data-role="office"] #desktopNav button[hidden]{display:none}
  body[data-role="office"] #desktopNav .navSection{display:none}
  body[data-role="office"] .sidebarMenuSearch{display:block;margin-bottom:10px}
  .sidebarMenuSearch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .sidebarMenuSearch input{width:100%;min-width:0;min-height:40px;padding:8px 10px;border:1px solid #dbe0d6;border-radius:10px;background:#fff;font:inherit;font-size:13px}
  body[data-role="office"] .sidebarPersonalize{display:flex;align-items:center;gap:10px;min-height:44px;flex:none;border:1px solid #dce1d7;border-radius:10px;margin-top:10px;padding:9px 10px;background:#fff;color:#343c31;font-size:13px;font-weight:700;text-align:left}
  .sidebarPersonalize i{width:24px;flex:none;font-style:normal;font-size:20px}
  body[data-role="office"] #sidebarMenuEmpty:not([hidden]){display:block;font-size:12px;color:#68717c}
  body[data-role="office"] .sidebarFoot{flex:none;max-height:64px;overflow:hidden}
}
@media(min-width:981px) and (min-height:621px) and (hover:hover) and (pointer:fine){
  body[data-role="office"][data-sidebar-mode="auto"] .main{margin-left:64px;transition:none}
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar{width:64px}
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:is(.sidebarHoverOpen,:has(:focus-visible)){width:248px;box-shadow:8px 0 28px #15201525}
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) .brand>div:last-child,
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) .sidebarMenuSearch,
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) .sidebarFoot{display:none}
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) #desktopNav{padding-right:0;scrollbar-width:none}
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) #desktopNav::-webkit-scrollbar{display:none}
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) #desktopNav button{grid-template-columns:24px;padding:9px 10px;gap:0}
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) #desktopNav button span,
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) #desktopNav .navBadge,
  body[data-role="office"][data-sidebar-mode="auto"] .sidebar:not(.sidebarHoverOpen):not(:has(:focus-visible)) .sidebarPersonalize span{display:none}
}
@media(prefers-reduced-motion:reduce){body[data-role="office"] .sidebar{transition:none}}
