.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.attn-wrap {
  position: relative;
  flex-shrink: 0;
}

.attn-btn {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--raise) 78%, transparent);
  color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ice) 8%, transparent);
}

.attn-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.attn-btn:hover,
.attn-btn[aria-expanded="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--ice) 38%, var(--line));
  background: color-mix(in srgb, var(--raise) 70%, #1a2240);
}

.attn-btn:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.attn-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff7a6e, #d94b7a);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 0 0 1px var(--ink);
  white-space: nowrap;
}

.attn-badge[hidden] {
  display: none !important;
}

.attn-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: 360px;
  box-sizing: border-box;
  max-height: min(72vh, 520px);
  overflow: auto;
  z-index: 40;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 94%, #05060c);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}
@media (max-width: 720px) {
  .attn-wrap { position: static; }
  .attn-panel {
    position: fixed;
    top: 52px;
    right: 12px;
    left: auto;
    width: 100%;
    max-width: min(360px, calc(100% - 24px));
    box-sizing: border-box;
  }
}

.attn-panel[hidden] {
  display: none !important;
}

.attn-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  position: static;
  gap: 12px;
  margin-bottom: 8px;
  padding: 2px 4px 8px;
  border-bottom: 1px solid var(--line);
}

.attn-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.attn-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.attn-empty {
  padding: 18px 8px 14px;
  text-align: left;
}

.attn-empty strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.attn-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.attn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.attn-group:first-of-type {
  margin-top: 8px;
}

.attn-group-title {
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attn-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--raise) 86%, transparent);
  color: inherit;
  text-align: left;
}

.attn-item:hover {
  background: var(--surface-hover);
}

.attn-item:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 1px;
}

.attn-item.is-urgent {
  border-color: color-mix(in srgb, var(--afwijzen) 34%, var(--line));
  background: color-mix(in srgb, var(--afwijzen) 8%, var(--raise));
}

.attn-item.is-today {
  border-color: color-mix(in srgb, var(--violet) 32%, var(--line));
  background: color-mix(in srgb, var(--ice) 8%, var(--raise));
}

.attn-item.is-soon {
  border-color: color-mix(in srgb, var(--ice) 16%, var(--line));
}

.attn-item-copy {
  min-width: 0;
}

.attn-item-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.attn-item-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attn-source {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attn-cta {
  justify-self: end;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ice) 16%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.attn-item.is-urgent .attn-cta {
  background: color-mix(in srgb, var(--afwijzen) 16%, transparent);
}

.attn-item.is-today .attn-cta {
  background: color-mix(in srgb, var(--violet) 16%, transparent);
}

.ap-card.is-attention,
.coach-assign.is-attention {
  outline: 1px solid color-mix(in srgb, var(--ice) 42%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ice) 12%, transparent);
}

html[data-theme="light"] .attn-panel {
  box-shadow: 0 16px 40px rgba(23, 26, 33, 0.14);
}

html[data-theme="light"] .attn-badge {
  box-shadow: 0 0 0 2px var(--panel);
}
