/* WorkHub shell refinement 04.11.2026.
   Layout only: reuses the live EP:bernhard palette and existing Fachansichten. */
@media (min-width:1121px) {
  .app-shell { grid-template-columns: 232px minmax(0,1fr); }
  .sidebar#sidebar { padding-inline: 12px; padding-top: 17px; padding-bottom: 12px; }
}
.sidebar#sidebar .brand {
  padding-inline: 9px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar#sidebar .primary-nav#workspace-primary-nav { padding-right: 3px; }
.sidebar#sidebar .workspace-home-link {
  margin: 2px 0 10px;
  min-height: 42px;
  border-radius: 9px;
  font-weight: 700;
}
.sidebar#sidebar .workspace-nav-group { margin-block: 2px; }
.sidebar#sidebar .workspace-nav-title {
  min-height: 49px;
  grid-template-columns: 20px minmax(0,1fr) 15px;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
}
.sidebar#sidebar .workspace-nav-title > svg { width: 18px; height: 18px; }
.sidebar#sidebar .workspace-nav-label strong { font-size: 12px; letter-spacing: .01em; }
.sidebar#sidebar .workspace-nav-label small { font-size: 10px; line-height: 1.3; }
.sidebar#sidebar .workspace-nav-group.current > .workspace-nav-title {
  color: white;
  background: rgba(255,255,255,.07);
}
.sidebar#sidebar .workspace-nav-group.expanded > .workspace-nav-title {
  background: rgba(255,255,255,.1);
}
.sidebar#sidebar .workspace-nav-children {
  margin: 4px 0 8px 20px;
  padding: 2px 0 2px 13px;
  border-left: 1px solid rgba(255,255,255,.13);
  gap: 3px;
}
.sidebar#sidebar .workspace-nav-children[hidden] { display: none !important; }
.sidebar#sidebar .workspace-nav-link {
  min-height: 36px;
  padding: 9px 9px 9px 12px;
  font-size: 11px;
  border-radius: 7px;
  line-height: 1.35;
}
.sidebar#sidebar .workspace-nav-link.active {
  color: white;
  background: rgba(255,255,255,.13);
  box-shadow: inset 3px 0 var(--coral);
}
.sidebar#sidebar .workspace-nav-title:focus-visible,
.sidebar#sidebar .workspace-nav-link:focus-visible,
.sidebar#sidebar .workspace-home-link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: -2px;
}
.sidebar#sidebar .sidebar-bottom { padding-top: 9px; gap: 7px; }
.sidebar#sidebar .workspace-utilities a { min-height: 33px; }
.sidebar#sidebar .sync-card { padding-block: 8px; }
.sidebar#sidebar .user-card { padding-block: 8px; }
.main-area { min-width: 0; }
.topbar { height: 65px; }
.content { max-width: 1580px; padding-top: 25px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { letter-spacing: -.65px; }
.panel,.kpi { min-width: 0; }
.context-navigation { border-color: var(--line); box-shadow: var(--shadow); }
.context-tab.active,.context-tab[aria-selected="true"] {
  box-shadow: inset 0 -3px var(--coral);
}
/* Mobile prioritises daily work. All specialist pages stay in the drawer. */
@media (max-width:820px) {
  .sidebar#sidebar { width: min(280px, 88vw); }
  .topbar { height: 59px; padding-inline: 11px; }
  .content { padding-top: 16px; }
  .sidebar#sidebar .workspace-nav-title { min-height: 48px; }
}
@media (max-width:600px) {
  .mobile-nav {
    grid-template-columns: repeat(4,minmax(0,1fr));
    height: 70px;
    gap: 2px;
    padding-bottom: max(6px,env(safe-area-inset-bottom));
  }
  .mobile-nav a,.mobile-nav #mobile-more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    height: 53px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
  }
  .mobile-nav a.active { color: var(--coral); }
  .mobile-nav #mobile-more {
    place-self: stretch;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
  }
  .mobile-nav #mobile-more svg { color: var(--muted); }
  .mobile-nav #mobile-new { width: 45px; height: 45px; margin-top: -15px; }
  .mobile-nav #mobile-new svg { color: white; }
  .feedback-fab { bottom: 80px; }
  .content { padding-bottom: calc(91px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
  .sidebar#sidebar .workspace-nav-chevron { transition: none; }
}
