#oa-workspace[hidden],.oa-module-frame[hidden],.shell-sub-menu[hidden]{display:none!important}
#oa-workspace{min-width:0;width:100%;margin-top:12px}
.oa-shell-status:empty{display:none}.oa-shell-status{color:#526d82;padding:8px}
.oa-module-frame{display:block;border:0;width:100%;height:calc(100dvh - 136px);min-height:420px;background:#f3f6fa;border-radius:12px}
body.liquid-glass-home #portal-sidebar .shell-sub-menu{display:flex;flex-direction:column;gap:12px;padding:4px 12px 6px 24px;min-width:0;box-sizing:border-box}
body.liquid-glass-home #portal-sidebar .shell-sub-item{width:100%;box-sizing:border-box;min-height:34px!important;padding:7px 10px!important;font-size:12px!important;text-align:left;justify-content:flex-start;gap:8px;white-space:normal;overflow-wrap:anywhere}
body.liquid-glass-home #portal-sidebar .shell-sub-label{flex:1;min-width:0;line-height:1.35}
body.liquid-glass-home #portal-sidebar .shell-notice-badge{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#e72f44;color:white;font-size:11px;font-weight:800;line-height:1;box-shadow:0 2px 5px #c02d4433}
body.liquid-glass-home #portal-sidebar .shell-system-toggle .portal-work-badge{right:22px!important;min-width:20px!important;height:20px!important;font-size:11px!important;padding:0 4px!important;box-sizing:border-box}
#portal-sidebar .shell-system-toggle::after{content:'⌄';position:absolute;right:7px;font-size:14px}
#portal-sidebar .shell-system-toggle[aria-expanded=false]::after{content:'›'}
#portal-sidebar .shell-current{border-color:#81aac6!important;background:#dceaf5!important}
body.liquid-glass-home #portal-sidebar .shell-system-toggle .nav-copy{font-size:13px;line-height:1.35;min-width:0;flex:1}
body.liquid-glass-home #portal-sidebar .shell-system-toggle{gap:8px}
body.liquid-glass-home #portal-sidebar .shell-system-toggle .nav-symbol{flex:0 0 20px;width:20px}
#portal-sidebar .shell-sub-group::after{content:'›';margin-left:auto}
#portal-sidebar .shell-sub-group[aria-expanded=true]::after{content:'⌄'}
@media(max-width:760px){.oa-module-frame{height:calc(100dvh - 180px)}}
/* More specific than the shared 190px navigation rule: children remain smaller. */
body.liquid-glass-home #portal-shell #portal-sidebar .shell-sub-menu{width:190px;max-width:100%;margin:0 auto;padding:4px 8px 6px 20px}
body.liquid-glass-home #portal-shell #portal-sidebar .shell-sub-item{width:100%;max-width:100%;margin:0!important;min-height:34px!important;padding:7px 10px!important}
/* Shared navigation ink must never recolor red notification numbers. */
body.liquid-glass-home #portal-shell #portal-sidebar :is(.shell-notice-badge,.portal-work-badge){color:#fff!important;-webkit-text-fill-color:#fff!important}
/* A collapsed rail contains usable module icons, never unlabeled child buttons. */
@media(min-width:761px){
 html body.oa-ui.oa-ui.liquid-glass-home #portal-shell.sidebar-collapsed #portal-sidebar nav{width:100%!important;min-width:0;justify-items:center}
 html body.oa-ui.oa-ui.liquid-glass-home #portal-shell.sidebar-collapsed #portal-sidebar nav>.nav-item{width:48px!important;max-width:100%;margin:0 auto!important;padding:10px 6px!important;justify-content:center}
 html body.oa-ui.oa-ui.liquid-glass-home #portal-shell.sidebar-collapsed #portal-sidebar .shell-sub-menu{display:none!important}
 #portal-shell.sidebar-collapsed #portal-sidebar .shell-system-toggle::after{display:none}
}

/* Location and recovery stay outside the embedded business form. */
.oa-workspace-trail{display:flex;align-items:center;gap:10px;padding:4px 0 8px;min-width:0}
.oa-workspace-trail strong{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere;color:#24516b}
body.liquid-glass-home #portal-shell .oa-workspace-trail button{min-height:30px!important;padding:5px 10px!important;font-size:12px!important;white-space:nowrap}
.oa-module-frame{animation:none}
@keyframes oa-workspace-arrive{from{opacity:.75;transform:translateY(3px)}to{opacity:1;transform:none}}

@media(max-width:760px){.oa-workspace-trail{gap:6px;flex-wrap:wrap}.oa-workspace-trail strong{order:-1;flex-basis:100%}.oa-module-frame{height:calc(100dvh - 210px)}}

/* Mobile drawer: fixed parent width; all children share one shorter inset. */
@media(max-width:760px){
 body.liquid-glass-home #portal-shell #portal-sidebar nav>.nav-item,
 body.liquid-glass-home #portal-shell #portal-sidebar .sidebar-bottom>.nav-item{
  width:190px;max-width:100%;box-sizing:border-box;margin:0 auto!important;
  justify-self:center;align-self:center;justify-content:flex-start;text-align:left;
 }
 body.liquid-glass-home #portal-shell #portal-sidebar .shell-sub-menu{
  width:190px;max-width:100%;box-sizing:border-box;margin:0 auto;padding:4px 0 6px 24px;
 }
 body.liquid-glass-home #portal-shell #portal-sidebar .shell-sub-item{
  width:100%;max-width:100%;box-sizing:border-box;margin:0!important;
 }
 body.liquid-glass-home #portal-shell #portal-sidebar nav>.nav-item .nav-copy{
  flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;
 }
}

/* 2026-10-12 audit: compact phone chrome keeps every account control available. */
@media screen and (max-width:760px){
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .topbar{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:2px 6px!important;padding:4px 0!important;min-height:0!important;margin:0!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .topbar-heading{gap:6px;white-space:nowrap}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .account{display:flex!important;justify-content:flex-end;gap:4px!important;flex-wrap:nowrap!important;min-width:0}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .topbar :is(button,summary){min-height:44px!important;padding:5px 7px!important;font-size:11px!important;box-sizing:border-box;display:inline-flex;align-items:center;white-space:nowrap!important}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell #super-mode-menu{min-width:0;font-size:11px}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell #super-mode-menu>summary{max-width:100%;white-space:normal!important;line-height:1.3}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-language-switch{grid-column:1/2;gap:4px;white-space:nowrap}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-demo-tools{grid-column:2;justify-self:end;align-self:center}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-demo-tools>summary{padding-right:0!important}
 #oa-workspace{margin-top:4px}
 .oa-workspace-trail{flex-wrap:nowrap;gap:4px;padding:2px 0 4px}
 .oa-workspace-trail strong{order:0;flex:1;font-size:12px;line-height:1.4}
 html body.oa-responsive.oa-responsive.liquid-glass-home #portal-shell .oa-workspace-trail button{min-height:44px!important;padding:4px 6px!important;font-size:11px!important}
 .oa-module-frame{height:calc(100dvh - 154px);min-height:0;border-radius:8px}
}

/* Scoped to HR so the notification center retains its own layout. */
html body.oa-hr-workspace #portal-shell>.portal-content{padding-top:6px!important}
html body.oa-hr-workspace #portal-shell>.portal-content .topbar{padding-top:4px!important;padding-bottom:4px!important;margin-bottom:4px!important;min-height:38px!important}
html body.oa-hr-workspace #portal-shell>.portal-content .topbar button{min-height:32px!important;padding:4px 10px!important;font-size:12px!important}
html body.oa-hr-workspace #oa-workspace{margin-top:4px}
html body.oa-hr-workspace #oa-workspace .oa-workspace-trail{padding:2px 0 4px}

/* Shared sidebar typography and icon tracks for links and generated system buttons. */
html body.liquid-glass-home #portal-shell #portal-sidebar .nav-item{font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;text-align:left!important;align-items:center;gap:10px!important}
html body.liquid-glass-home #portal-shell #portal-sidebar .nav-item :is(.nav-copy,.shell-sub-label),
html body.liquid-glass-home #portal-shell #portal-sidebar .nav-copy>span{font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;text-align:left!important;letter-spacing:normal!important}
html body.liquid-glass-home #portal-shell #portal-sidebar .nav-item>:is(.nav-symbol,svg){display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 24px!important;width:24px!important;min-width:24px!important;height:24px!important;margin:0!important}
html body.liquid-glass-home #portal-shell #portal-sidebar .nav-symbol svg{width:19px;height:19px;flex:none}
html body.liquid-glass-home #portal-shell #portal-sidebar .nav-copy{display:block;flex:1;min-width:0;margin:0!important;padding:0!important;white-space:normal;overflow-wrap:anywhere}

/* Compact desktop rail. Touch targets retain the existing mobile dimensions. */
@media screen and (min-width:761px){
 html body.oa-ui.liquid-glass-home #portal-shell:not(.sidebar-collapsed){--sidebar-width:240px}
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar nav{gap:4px!important}
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar nav>.nav-item,
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .sidebar-bottom>.nav-item{width:170px!important;min-height:30px!important;padding:4px 8px!important;border-radius:8px!important;gap:7px!important;font-size:12px!important}
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .nav-item :is(.nav-copy,.shell-sub-label),
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .nav-copy>span{font-size:12px!important;line-height:1.35!important}
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .nav-item>:is(.nav-symbol,svg){flex:0 0 18px!important;width:18px!important;min-width:18px!important;height:18px!important}
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .nav-symbol svg{width:16px;height:16px}
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .shell-sub-menu{width:170px;gap:4px;padding:2px 0 2px 16px}
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .shell-sub-item{min-height:28px!important;padding:4px 7px!important;font-size:12px!important;border-radius:7px!important}
 html body.oa-ui.liquid-glass-home #portal-shell.sidebar-collapsed #portal-sidebar nav>.nav-item{width:40px!important;min-height:34px!important;padding:6px!important;justify-content:center}
}
/* Explicit user request: restore sidebar Dock motion even when Windows reduces
   animations. Keep the exception local; business forms retain their OS policy. */
@media screen and (min-width:761px) and (any-hover:hover) and (any-pointer:fine){
 html body.oa-ui.liquid-glass-home #portal-shell #portal-sidebar .nav-item.dock-sidebar.dock-sidebar{
  z-index:3;transform-origin:center!important;
  transform:translateY(var(--motion-lift,0px)) scale(var(--motion-scale,1))!important;
  transition:transform var(--oa-panel-duration) var(--oa-panel-easing),box-shadow .24s ease!important;
  box-shadow:inset 0 1px 0 #fffffff5,0 var(--motion-shadow-y,4px) var(--motion-shadow-blur,10px) rgba(21,65,93,var(--motion-shadow-alpha,.12))!important;
 }
}

/* Fit the active module to the actual remaining viewport, including HR ribbon. */
.oa-module-frame{height:var(--oa-workspace-height,calc(100dvh - 136px));min-height:min(420px,var(--oa-workspace-height,420px))}

#oa-workspace .oa-module-frame[aria-busy="true"]{visibility:hidden}

#oa-hr-home[hidden]{display:none!important}
#oa-hr-home{box-sizing:border-box;background:#fff;border:1px solid #cad6e1;border-radius:6px;padding:24px;margin:16px 0;min-height:calc(100dvh - 120px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#16324e}
#oa-hr-home h1{font-size:25px;font-weight:650;margin:0 0 28px}
.oa-hr-home-cards{display:grid;grid-template-columns:repeat(2,minmax(180px,260px));gap:24px;max-width:100%;width:100%;justify-content:center}
#oa-hr-home .oa-hr-home-card{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-height:210px;padding:28px;border:1px solid #c6d9e7;border-radius:12px;background:linear-gradient(145deg,#fff,#f0f6fa);box-shadow:inset 0 1px 0 #fff,0 4px 14px #16324e0b;text-decoration:none;color:var(--hr-card-color);transition:transform 160ms ease,box-shadow 160ms ease}
#oa-hr-home .oa-hr-home-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #16324e16}
#oa-hr-home .oa-hr-home-card:focus-visible{outline:2px solid var(--hr-card-color);outline-offset:4px}
.oa-hr-home-card svg{width:58px;height:58px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.oa-hr-home-card span{font-size:22px;font-weight:650}
@media(max-width:600px){#oa-hr-home{padding:22px 14px;min-height:calc(100dvh - 100px)}.oa-hr-home-cards{grid-template-columns:minmax(0,1fr);gap:16px}.oa-hr-home-card{min-height:150px!important}}

/* The full-viewport leave frame must escape the workspace's transition layer. */
#portal-shell > .portal-content:has(.oa-module-frame[data-leave-motion-stage]) {
  position: relative;
  z-index: 10001;
  view-transition-name: none !important;
  transform: none !important;
  opacity: 1 !important;
}
#portal-shell .oa-module-frame[data-leave-motion-stage] {
  transform: none !important;
  opacity: 1 !important;
}

html body.oa-ui #portal-shell:not(.sidebar-collapsed) #portal-sidebar nav > .nav-label {
  text-align:start;
  margin-inline:0;
  padding-inline:8px;
}
@media screen and (min-width:761px) {
  html body.oa-compact-center #portal-shell #portal-sidebar nav > .nav-item[data-oa-selection-moving] {
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
    isolation:isolate;
  }
  #portal-sidebar .oa-selection-highlight {
    position:absolute;inset:-1px;z-index:-1;pointer-events:none;
    border-radius:inherit;border:1px solid #b7d9f66b;
    background:linear-gradient(165deg,#b6dcff42,#8abbeb27);
    box-shadow:inset 0 1px #dcefff42;
  }
}

/* Keep the shell's navigation reachable when an editor uses the full viewport. */
#portal-shell:has(#oa-workspace:not([hidden]) .oa-module-frame:not([hidden]):is([data-contact-motion-stage],[data-leave-motion-stage])) > #portal-sidebar {
  z-index: 10002;
}
@media (max-width:760px) {
  #portal-shell:has(#oa-workspace:not([hidden]) .oa-module-frame:not([hidden]):is([data-contact-motion-stage],[data-leave-motion-stage])) > #sidebar-toggle {
    z-index: 10003 !important;
  }
}

#oa-workspace[hidden]:has(.oa-shell-staging) {
  display: block !important;
  position: absolute;
  visibility: hidden;
}
.oa-shell-staging {
  position: absolute !important;
  inset: 0 auto auto 0;
  visibility: hidden !important;
  pointer-events: none !important;
}
.oa-shell-loading {
  position: fixed;
  z-index: 2500;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px;
  max-width: calc(100vw - 32px);
  border: 1px solid #c4d8e7;
  border-radius: 24px;
  background: #f6fbfff5;
  box-shadow: 0 8px 28px #18384d26;
  color: #193d57;
  text-align: center;
  pointer-events: none;
}
.oa-shell-loading[hidden], .oa-shell-loading [hidden] { display: none !important; }
.oa-shell-loading-ring {
  display: flex;
  width: 112px;
  height: 112px;
  border: 6px solid transparent;
  box-sizing: border-box;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(#f6fbff, #f6fbff) padding-box,
    conic-gradient(#277cba var(--oa-loading-progress), #d9e8f2 0) border-box;
}
.oa-shell-loading-ring span { font-size: 13px; }
.oa-shell-loading-ring strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.oa-shell-loading button { pointer-events: auto; min-height: 44px; }
  .oa-shell-loading-ring { animation: oa-shell-loading-pulse 1.1s ease-in-out infinite alternate; }
  @keyframes oa-shell-loading-pulse {
    from { box-shadow: 0 0 0 0 #277cba00; }
    to { box-shadow: 0 0 0 6px #277cba19; }
  }
