/* Alerts (BR Stage 6, PR 2; AlertsWindows and AlertsAccount boards): the "Get alerts" button, its window, and the
   rows in Account › Alerts. The window is the Step 7 modal frame; a bottom sheet on phones (modals.css). */
.ci-alerts-btn { gap: var(--ci-s2); }
.ci-alerts-btn[aria-pressed="true"] { background: var(--ci-moss); border-color: var(--ci-moss); color: var(--ci-deep-forest); }
.ci-phero__alerts, .ci-sum__alerts { margin: var(--ci-s3) 0 0; }

.ci-alert__for { margin: 0 0 var(--ci-s3); color: var(--ci-muted); }
.ci-alert__for strong { color: var(--ci-ink); }
.ci-alert__what { margin: 0 0 var(--ci-s3); padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--ci-s2); }
.ci-alert__option { display: flex; gap: var(--ci-s3); align-items: flex-start; padding: var(--ci-s3) var(--ci-s4); border: 1.5px solid var(--ci-line);
    border-radius: var(--ci-r-field); cursor: pointer; }
.ci-alert__option:has(input:checked) { border-color: var(--ci-forest); background: var(--ci-surface); }
.ci-alert__option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ci-forest); flex: none; }
.ci-alert__option span { display: flex; flex-direction: column; gap: 2px; }
.ci-alert__option small { color: var(--ci-muted); font: var(--ci-small); }
.ci-alert__how { margin: 0 0 var(--ci-s2); font: var(--ci-small); }
.ci-alert__note { margin: var(--ci-s3) 0 0; padding: var(--ci-s3) var(--ci-s4); border-radius: var(--ci-r-field); background: var(--ci-warn-tint);
    color: var(--ci-warn-text); font: var(--ci-small); }
.ci-alert__all { margin-top: var(--ci-s4); }
.ci-alert__all p { margin: 0 0 4px; color: var(--ci-muted); }

/* Account › Alerts */
.ci-account .ci-alerts__group, .ci-alerts__group { margin: var(--ci-s5) 0 var(--ci-s2); font: var(--ci-overline); text-transform: uppercase; letter-spacing: .08em; color: var(--ci-muted); }
.ci-alerts__rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--ci-line); border-radius: var(--ci-r-card); background: var(--ci-surface); }
.ci-alerts__row { display: flex; align-items: center; justify-content: space-between; gap: var(--ci-s3); padding: var(--ci-s3) var(--ci-s4); }
.ci-alerts__row + .ci-alerts__row { border-top: 1px solid var(--ci-line); }
.ci-alerts__row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-alerts__row > div span { color: var(--ci-muted); font: var(--ci-small); }
.ci-alerts__actions { display: inline-flex; align-items: center; gap: var(--ci-s4); flex: none; }
.ci-alerts__rows .ci-switch { min-height: 44px; }
input[role="switch"] { appearance: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--ci-track); position: relative;
    cursor: pointer; transition: background .15s ease; flex: none; }
input[role="switch"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ci-white);
    box-shadow: 0 1px 2px rgba(18, 51, 38, .25); transition: transform .15s ease; }
input[role="switch"]:checked { background: var(--ci-forest); }
input[role="switch"]:checked::after { transform: translateX(18px); }
input[role="switch"]:disabled { opacity: .5; cursor: not-allowed; }
input[role="switch"]:focus-visible { outline: none; box-shadow: var(--ci-focus-ring); }
@media (prefers-reduced-motion: reduce) { input[role="switch"], input[role="switch"]::after { transition: none; } }

/* BR Phase 4, WS-D: the Monitor box (beside the score block, never inside), its ticks, and Account › My watchlist */
/* WL-4a (22 Nov 2026): the compact Monitor box that sells, one row on desktop (about 140 px high at most), the buttons
   stacked full width under the text on a phone or in a narrow column (the project page's side rail) */
.ci-monitor { container-type: inline-size; margin: var(--ci-s4) 0 0; border: 1px solid var(--ci-line); border-radius: var(--ci-r-card);
    background: var(--ci-surface); }
.ci-monitor__in { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: var(--ci-s4); row-gap: var(--ci-s1);
    align-items: center; padding: var(--ci-s3) var(--ci-s5); }
.ci-monitor__in > * { min-width: 0; }
.ci-monitor__icon { width: 44px; height: 44px; border-radius: var(--ci-r-field); background: var(--ci-clay-tint); color: var(--ci-clay);
    display: grid; place-items: center; }
.ci-monitor__title { margin: 0; font: var(--ci-h3); color: var(--ci-ink); }
.ci-monitor__line { margin: 2px 0 0; font: var(--ci-small); color: var(--ci-muted); }
.ci-monitor__chips { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ci-monitor__chip { display: inline-block; padding: 2px 9px; border: 0; border-radius: var(--ci-r-pill); font: var(--ci-overline); letter-spacing: 0;
    background: var(--ci-clay-tint); color: var(--ci-clay-ink); }
.ci-monitor__chip--free { background: var(--ci-moss); color: var(--ci-forest); }
button.ci-monitor__chip { cursor: pointer; }
button.ci-monitor__chip:hover { text-decoration: underline; }
button.ci-monitor__chip:focus-visible { outline: none; box-shadow: var(--ci-focus-ring); }
.ci-monitor__actions { display: flex; gap: var(--ci-s3); }
.ci-monitor__actions .ci-btn { gap: var(--ci-s2); white-space: nowrap; }
.ci-monitor__btn[aria-pressed="true"] { background: var(--ci-moss); border-color: var(--ci-moss); color: var(--ci-deep-forest); }
.ci-monitor__note { grid-column: 1 / -1; margin: 0; font: var(--ci-caption); color: var(--ci-muted); }
@container (max-width: 720px) {
    .ci-monitor__in { grid-template-columns: 1fr; row-gap: var(--ci-s3); padding: var(--ci-s4); }
    .ci-monitor__actions { flex-direction: column; align-items: stretch; }
    .ci-monitor__actions .ci-btn { width: 100%; white-space: normal; }
}
.ci-tag { display: inline-block; padding: 0 6px; border-radius: 999px; font: 600 11px/18px var(--ci-sans, sans-serif); letter-spacing: .06em; }
.ci-tag--free { background: var(--ci-moss); color: var(--ci-deep-forest); }
.ci-tag--pro { background: var(--ci-warn-tint); color: var(--ci-warn-text); }
.ci-alert__option--pro { opacity: .8; }
.ci-wl__lead { margin: 0 0 var(--ci-s2); font-weight: 600; }
.ci-wl__step { display: flex; gap: var(--ci-s2); align-items: center; margin: var(--ci-s5) 0 var(--ci-s3); font-size: 18px; }
.ci-wl__step span { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ci-forest); color: var(--ci-white); font-size: 14px; }
.ci-wl__found, .ci-wl__chips { margin: var(--ci-s2) 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--ci-s2); }
.ci-wl__counter { margin: var(--ci-s3) 0 0; font-weight: 600; }
.ci-wl__segments { margin: var(--ci-s4) 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: var(--ci-s2); }
.ci-wl__score { font-weight: 600; color: var(--ci-forest); }
.ci-wl__per-item summary { cursor: pointer; font: var(--ci-small); color: var(--ci-forest); }
.ci-wl__pro { margin: var(--ci-s5) 0 var(--ci-s2); }
@media (max-width: 600px) { .ci-wl__row { flex-direction: column; align-items: stretch; } }
