.context-help { margin-top: 1.5rem; }
.context-help summary { cursor: pointer; font-weight: 650; }
.context-help p { max-width: 80ch; line-height: 1.65; }
#local-tour { margin-top: 1rem; padding: 1rem; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: .5rem; }
.workspace-switch { white-space: nowrap; }
.workspace-count { display: inline-block; margin-left: .4rem; border-radius: 1rem; padding: .1rem .45rem; background: var(--primary); color: var(--primary-contrast); }
.table-sort-status { display: block; font-size: .85rem; min-height: 1.2rem; }
.table-sort-button { font: inherit; color: inherit; border: 0; padding: .35rem; background: transparent; cursor: pointer; }
.table-sort-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wt-refined .panel { border-radius: 1rem; box-shadow: 0 3px 16px #20304a06; }
.wt-refined .module-card { border-radius: 1.1rem; }
.wt-refined .stat { border-radius: 1rem; }
.wt-refined h1 { letter-spacing: -.025em; }
.wt-home-illustration { width: 140px; max-width: 22vw; height: auto; }
.worker-vacation-head strong { display: block; font-size: 2.3rem; color: var(--primary); }
.metric-bar { display: grid; grid-template-columns: minmax(150px,1fr) 2fr; align-items: center; gap: 1rem; margin: .8rem 0; }
.metric-bar meter { width: 100%; height: 1.3rem; accent-color: var(--primary); }
@media(max-width:760px) { .workspace-switch { font-size: .8rem; padding: .4rem .6rem; } .context-help { margin-bottom: 5rem; } .table-sort-mobile { width: 100%; margin-bottom: .75rem; } }
@media(prefers-reduced-motion:reduce) { .wt-refined *, .wt-refined *::before, .wt-refined *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print { .context-help, .workspace-switch, .table-sort-status, .table-sort-mobile, .wt-home-illustration { display:none!important; } .wt-refined .panel { box-shadow:none; } }
#vacationRequestForm .request-duration-kind { display: none !important; }

/* Mobile header: identity and navigation above, labelled shortcuts below. */
.header-action-label { display:none; }
@media screen and (max-width:1050px) {
  .topbar .topbar-inner { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; padding:10px 0; }
  .topbar .brand { grid-area:1 / 1; max-width:none; min-width:0; gap:8px; }
  .topbar .brand strong { display:block; max-width:none; min-width:0; font-size:14px; overflow:hidden; text-overflow:ellipsis; }
  .topbar .platform-mode-badge { grid-area:1 / 2; margin:0; }
  .topbar .nav-toggle { grid-area:1 / 3; width:auto; min-width:76px; gap:7px; margin:0; font-size:14px; }
  .topbar .header-action-label { display:inline; font-size:13px; font-weight:650; }
  .topbar .top-actions { grid-area:2 / 1 / 3 / -1; display:flex; flex-wrap:wrap; width:100%; gap:6px; margin:0; padding-top:8px; border-top:1px solid var(--line); justify-content:flex-start; white-space:normal; }
  .topbar .top-actions>.button,.topbar .top-actions>.help-button,.topbar .top-actions>.notification-bell { display:flex; flex:1 1 auto; width:auto; height:auto; min-width:0; min-height:44px; padding:8px 10px; gap:6px; font-size:13px; line-height:1.3; border-radius:10px; }
  .topbar .top-actions>.button::first-letter { font-size:inherit; }
  .topbar .notification-bell b { position:static; min-width:23px; height:auto; line-height:20px; box-shadow:none; }
  .topbar .top-actions .user-menu { display:flex; flex:1 0 100%; width:100%; max-width:none; min-width:0; padding:2px 4px; }
  .topbar .top-actions .user-menu b { font-size:12px; white-space:normal; overflow-wrap:anywhere; }
  .topbar .top-actions .user-menu small { display:block; font-size:10px; margin-top:1px; }
  .topbar .main-nav { grid-area:3 / 1 / 4 / -1; max-height:55vh; }
  .pwa-standalone .topbar .brand strong { display:block; }
}
@media print { .header-action-label { display:none; } }
