.header-user-tools { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1); min-width: 0; }
.global-header-simple .header-user-tools { grid-column: -2; }
.task-menu { margin: 0; }
.task-trigger { position: relative; display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; cursor: pointer; border-radius:var(--radius-panel); list-style: none; }
.task-trigger::-webkit-details-marker { display: none; }
.task-trigger:hover, .task-menu[open] .task-trigger { background: var(--color-surface-subtle); }
.task-trigger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.task-badge { position: absolute; top: -2px; right: -2px; background: var(--color-primary); color:var(--color-on-primary); font-size:var(--font-small); line-height: 16px; min-width: 16px; padding: 0 var(--space-1); border-radius:var(--radius-panel); text-align: center; }
.task-badge[hidden] { display: none; }
.task-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 600px); overflow-y: auto; padding: var(--space-4); border: 1px solid var(--color-border); border-radius:var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-popover); z-index: 5; }
.task-dropdown h2 { font-size:var(--font-body); margin: 0 0 var(--space-2); }
.task-items { list-style: none; margin: 0; padding: 0; }
.task-items li + li { border-top: 1px solid var(--color-border); }
.task-items a { display: flex; flex-direction: column; gap: var(--space-1); color: var(--color-text); text-decoration: none; padding: var(--space-2) var(--space-1); overflow-wrap: anywhere; }
.task-items a:hover { color: var(--color-text); background: var(--color-surface-subtle); }
.task-title { font-weight:var(--weight-semibold); }
.task-open, .task-all { color: var(--color-primary); font-size:var(--font-small); }
.task-all { display: block; padding: var(--space-2) var(--space-1) 0; border-top: 1px solid var(--color-border); }
@media (max-width: 760px) {
  .header-user-tools { grid-area: user; gap: var(--space-1); }
  .global-header-simple .header-user-tools { grid-column: auto; }
  .task-trigger { min-width: 34px; }
}

.notification-event-open { display: flex; flex-direction: column; gap: var(--space-1); width: 100%; padding: var(--space-2) var(--space-1); text-align: left; border: 0; border-radius:var(--radius-small); background: transparent; color: var(--color-text); font: inherit; overflow-wrap: anywhere; box-shadow: none; }
.notification-event-open:hover { background: var(--color-surface-subtle); color: var(--color-text); }
.notification-event-open:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
