.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.topbar .topbar-user { margin-inline-start: 0; }
.pill-wrap { position: relative; }

.pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
    border-radius: 999px; border: 0; cursor: pointer; color: #fff;
    font-size: 13px; font-weight: 700; white-space: nowrap;
    transition: transform .12s, box-shadow .12s;
}
.pill:hover { transform: translateY(-1px); }
.pill:disabled { opacity: .6; cursor: default; transform: none; }
.pill-icon { width: 15px; height: 15px; flex-shrink: 0; }
.pill-icon.is-spinning { animation: pill-spin .8s linear infinite; }
@keyframes pill-spin { to { transform: rotate(360deg); } }

.pill-report { background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 2px 10px rgba(79, 70, 229, .45); }
.pill-report:hover { box-shadow: 0 4px 16px rgba(79, 70, 229, .55); }
.pill-report.is-capturing { opacity: .75; }
.pill-report.is-failed { background: linear-gradient(135deg, #b91c1c, #ef4444); box-shadow: 0 2px 10px rgba(185, 28, 28, .4); }
.pill-notify { background: linear-gradient(135deg, #f59e0b, #ea580c); box-shadow: 0 2px 10px rgba(234, 88, 12, .4); }
.pill-notify:hover { box-shadow: 0 4px 16px rgba(234, 88, 12, .5); }
.pill-install { background: linear-gradient(135deg, #059669, #0d9488); box-shadow: 0 2px 10px rgba(5, 150, 105, .4); }
.pill-install:hover { box-shadow: 0 4px 16px rgba(5, 150, 105, .5); }

.pill-popover {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; width: 18rem;
    padding: 12px 14px; background: #fff; color: var(--ink); border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 8px 24px rgba(10, 20, 25, .15); font-size: 14px; line-height: 1.45;
}
.pill-popover p { margin: 0; }
.pill-popover p + p { margin-top: 8px; }
.pill-popover a { color: var(--primary-ink); font-weight: 600; }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
    max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px;
    background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(10, 20, 25, .25);
}
.toast.is-error { background: var(--danger); }

@media (max-width: 767px) {
    .pill { padding: 8px 10px; }
    .pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .pill-popover { position: fixed; left: 16px; right: 16px; top: calc(var(--topbar-h) + 8px); width: auto; }
}
@media (prefers-reduced-motion: reduce) { .pill-icon.is-spinning { animation: none; } }

@media (max-width: 767px) {
    .topbar .topbar-user { display: none; }
    .topbar .topbar-title { flex: 1; min-width: 0; }
}
