.root { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-size-xs); font-family: var(--font-family); user-select: none; } /* ── Dot ──────────────────────────────────────────────────── */ .dot { position: relative; width: 10px; height: 10px; flex-shrink: 0; } .dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; transition: background var(--transition); } /* ── Pulse ring ───────────────────────────────────────────── */ .ring { position: absolute; inset: 0; border-radius: 50%; animation: pulse 0.8s ease-out 1; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 70%, transparent); } 70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-primary) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 0%, transparent); } } /* ── Clickable / hover ────────────────────────────────────── */ .clickable { cursor: pointer; border-radius: 99px; padding: 2px 6px; margin: -2px -6px; transition: background var(--transition); } .clickable:hover { background: color-mix(in srgb, var(--color-text) 8%, transparent); } .clickable:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } /* ── Active state ─────────────────────────────────────────── */ .active .dot::before { background: var(--color-primary); } .active .label { color: var(--color-primary-text); font-weight: 600; } /* ── Inactive / disabled state ────────────────────────────── */ .inactive .dot::before { background: var(--color-text-muted); opacity: 0.4; } .inactive .label { /* Not dimmed with opacity: muted text already reads as inactive and keeps 4.5:1 */ color: var(--color-text-muted); } /* ── Error state ──────────────────────────────────────────── */ .error .dot::before { background: var(--color-error-fg); } .error .ring { animation: none; } .error .label { color: var(--color-error-fg); font-weight: 600; }