/* Compact operational alerts shared by every admin page. */
.shell .operational-alerts {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-left: 3px solid var(--warning);
    border-radius: var(--radius-lg);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.shell .operational-alerts.error {
    border-color: hsl(var(--border));
    border-left-color: hsl(var(--destructive));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.shell .operational-alerts-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 13px 18px;
    cursor: pointer;
    list-style: none;
}

.shell .operational-alerts-summary::-webkit-details-marker { display: none; }
.shell .operational-alerts-summary:hover { background: hsl(var(--muted) / .35); }
.shell .operational-alerts-summary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: -3px; }

.shell .operational-alerts-icon {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: hsl(var(--muted));
    color: var(--warning);
}

.shell .operational-alerts.error .operational-alerts-icon {
    background: hsl(var(--destructive) / .12);
    color: hsl(var(--destructive));
}

.shell .operational-alerts-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.shell .operational-alerts-heading { display: grid; flex: 1; gap: 2px; min-width: 0; }
.shell .operational-alerts-heading strong { font-size: 13px; font-weight: 700; line-height: 1.3; }
.shell .operational-alerts-heading small { color: hsl(var(--muted-foreground)); font-size: 11px; line-height: 1.3; }

.shell .operational-alerts-total {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 26px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    background: hsl(var(--muted) / .55);
    color: hsl(var(--foreground));
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.shell .operational-alerts-chevron {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: hsl(var(--muted-foreground));
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 160ms ease;
}

.shell .operational-alerts-disclosure[open] .operational-alerts-chevron { transform: rotate(180deg); }
.shell .operational-alerts-content { border-top: 1px solid hsl(var(--border)); }
.shell .operational-alerts-list { display: block; margin: 0; padding: 0; list-style: none; }

.shell .operational-alerts .operational-alerts-item {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 14px 18px;
    color: hsl(var(--foreground));
    font-size: 12px;
}

.shell .operational-alerts-item + .operational-alerts-item { border-top: 1px solid hsl(var(--border) / .7); }
.shell .operational-alerts-marker { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--warning); }
.shell .operational-alerts-item.error .operational-alerts-marker { background: hsl(var(--destructive)); }
.shell .operational-alerts-item-content { display: grid; gap: 5px; min-width: 0; }

.shell .operational-alerts .alert-level {
    display: inline;
    width: max-content;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--warning);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    line-height: 1.2;
}

.shell .operational-alerts .alert-level.error { background: transparent; color: hsl(var(--destructive)); }
.shell .operational-alerts .alert-action,
.shell .operational-alerts-description { max-width: 100%; line-height: 1.5; overflow-wrap: anywhere; }
.shell .operational-alerts .alert-action { width: fit-content; color: hsl(var(--foreground)); text-decoration: none; }
.shell .operational-alerts .alert-action:hover { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.shell .operational-alerts .alert-action:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; border-radius: 2px; }
.shell .operational-alerts .alert-action span { margin-left: 3px; font-size: 13px; white-space: nowrap; }

.shell .operational-alerts .operational-alerts-item-count {
    min-width: 28px;
    padding: 4px 7px;
    border-radius: var(--radius-md);
    background: hsl(var(--muted) / .65);
    color: hsl(var(--foreground));
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: center;
}

.shell .operational-alerts-note {
    margin: 0;
    padding: 9px 18px;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 11px;
    line-height: 1.4;
}

@media (max-width: 650px) {
    .shell .operational-alerts-summary { min-height: 64px; padding: 12px 13px; gap: 10px; }
    .shell .operational-alerts .operational-alerts-item { grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; padding: 12px 13px; }
    .shell .operational-alerts-note { padding: 10px 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .shell .operational-alerts-chevron { transition: none; }
}
