/* Workflow navigation consumes the shared UI palette without restyling page content. */
.staff-shell { --shell-width: 220px; --shell-height: 64px; padding-top: var(--shell-height); }
.shell-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--shell-height); display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 1rem; background: var(--ui-green); color: #fff; }
.shell-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.shell-brand-name { color: #fff; font-weight: 750; font-size: 1.125rem; }
.shell-brand-name:hover { color: #fff; }
.shell-menu-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem; border: 1px solid rgb(255 255 255 / 40%); border-radius: var(--ui-radius-control); }
.shell-menu-button[hidden] { display: none; }
.shell-environment { background: var(--ui-orange); color: var(--ui-on-orange); border-radius: var(--ui-radius-small); padding: .125rem .375rem; font-size: .7rem; font-weight: 750; }
.shell-account { position: relative; }
.shell-account > summary, .shell-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .5rem; cursor: pointer; list-style: none; }
.shell-account > summary::-webkit-details-marker, .shell-settings > summary::-webkit-details-marker { display: none; }
.shell-account-panel { position: absolute; right: 0; top: 100%; width: 14rem; max-width: calc(100vw - 2rem); padding: .5rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-panel); background: var(--ui-surface); color: var(--ui-ink); box-shadow: var(--ui-shadow-card); }
.shell-account-name { padding: .5rem; font-size: .8rem; overflow-wrap: anywhere; border-bottom: 1px solid var(--ui-line); }
.shell-account-panel a, .shell-account-panel button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: .5rem; text-align: left; color: inherit; border-radius: var(--ui-radius-small); }
.shell-account-panel a:hover, .shell-account-panel button:hover { background: var(--ui-hover); }
.shell-sidebar { position: fixed; top: var(--shell-height); bottom: 0; left: 0; width: var(--shell-width); overflow-y: auto; padding: .75rem; border-right: 1px solid var(--ui-line); background: var(--ui-surface); z-index: 40; }
.shell-nav-group { margin-bottom: .625rem; }
.shell-nav-group h2 { padding: .375rem .625rem; font-size: .7rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--ui-muted); }
.shell-sidebar a { display: flex; align-items: center; min-height: 38px; padding: .375rem .625rem; border-left: 3px solid transparent; border-radius: var(--ui-radius-small); color: var(--ui-ink); font-size: .875rem; font-weight: 550; }
.shell-sidebar a:hover { background: var(--ui-hover); }
.shell-sidebar a[aria-current="page"] { background: var(--ui-selected); border-left-color: var(--ui-orange); font-weight: 750; }
.shell-settings { border-top: 1px solid var(--ui-line); color: var(--ui-ink); font-size: .875rem; }
.staff-shell > main, .staff-shell > #flash_messages { margin-left: var(--shell-width); }
.staff-shell .ui-workspace-header.sticky { top: var(--shell-height); }
.staff-shell[data-sidebar-collapsed="true"] > main, .staff-shell[data-sidebar-collapsed="true"] > #flash_messages { margin-left: 0; }
.staff-shell[data-sidebar-collapsed="true"] .shell-sidebar { display: none; }
.shell-skip-link { position: fixed; left: 1rem; top: -100px; z-index: 60; background: #fff; color: #103f2c; padding: .75rem; }
.shell-skip-link:focus { top: .5rem; }
.shell-topbar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.shell-account-panel :focus-visible, .shell-sidebar :focus-visible { outline: 2px solid var(--ui-green); outline-offset: 1px; }
@media (max-width: 1023px) {
  .staff-shell > main, .staff-shell > #flash_messages { margin-left: 0; }
  .shell-sidebar { position: static; width: 100%; border-bottom: 1px solid var(--ui-line); }
  .staff-shell[data-shell-enhanced="true"] .shell-sidebar { display: none; }
  .staff-shell[data-mobile-navigation-open="true"] .shell-sidebar { display: block; }
  .shell-sidebar a { min-height: 44px; }
  .shell-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .shell-brand { gap: .375rem; }
  .shell-brand-name { font-size: 1rem; }
  .shell-topbar { padding-inline: .5rem; }
}
@media (max-width: 380px) { .shell-brand-name { font-size: .875rem; } .shell-environment { display: none; } }
[data-theme="dark"] .shell-sidebar, [data-theme="dark"] .shell-account-panel { background: var(--ui-dark-canvas); border-color: var(--ui-dark-line); color: var(--ui-dark-ink); }
[data-theme="dark"] .shell-sidebar a, [data-theme="dark"] .shell-settings { color: var(--ui-dark-ink); }
[data-theme="dark"] .shell-nav-group h2 { color: var(--ui-dark-muted); }
[data-theme="dark"] .shell-sidebar a:hover, [data-theme="dark"] .shell-sidebar a[aria-current="page"], [data-theme="dark"] .shell-account-panel a:hover, [data-theme="dark"] .shell-account-panel button:hover { background: var(--ui-dark-surface); }
