/* aggregatorStatus.css — Neo Aggregator Status panel.
   Layers panel-specific styles ON TOP of the shared `.neo-oos` visual system.
   Apply `.neo-oos .neo-as` together on the root element so all shared styles
   (header gradient, surface, modal chrome) cascade — this file only defines
   what differs from the OOS panel. */

/* ════════════════════════ modal corner cleanup ════════════════════════
   The ui-bootstrap modal stack is:
     .modal (overlay) > .modal-dialog > .modal-content > .rw-modal
   `.modal-content` has its own border-radius + a white background and is
   what was leaking white wedges at the header's rounded top corners. The
   open call wires `windowClass: 'neo-as-modal-window'` onto `.modal` so we
   can clip `.modal-content` here without affecting any other modal in the
   app. */
.neo-as-modal-window .modal-content {
  overflow: hidden !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.10) !important;
}
.neo-as-modal-window .modal-body,
.neo-as-modal-window .modal-header,
.neo-as-modal-window .modal-footer {
  padding: 0 !important;
  border: 0 !important;
}
.rw-modal.neo-oos.neo-as {
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}
/* Drop any default padding/margin around the header so the gradient lands
   flush with the modal's outer rounded corner. */
.neo-as.neo-oos > .rw-modal-header.neo-head.neo-as-head {
  margin: 0 !important;
}

/* The parent `.rw-modal-header` rules in theme.css leak a white background
   into the rounded top corners (visible as bright patches behind the
   indigo gradient) AND force a dark title color. Bump specificity here so
   the gradient owns the corners and the text stays white. */
.neo-as.neo-oos > .rw-modal-header.neo-head.neo-as-head,
.neo-as .rw-modal-header.neo-head.neo-as-head,
.neo-as .neo-head.neo-as-head {
  background: linear-gradient(135deg, var(--neo-header-start) 0%, var(--neo-header-end) 100%) !important;
  border: 0 !important;
  border-radius: var(--neo-radius-lg) var(--neo-radius-lg) 0 0 !important;
  overflow: hidden;
}

/* Force white header text — overrides .rw-modal-header h3 and any other
   theme-level color rules. */
.neo-as .rw-modal-header.neo-head.neo-as-head .neo-head-title,
.neo-as .neo-head.neo-as-head .neo-head-title,
.neo-as .rw-modal-header.neo-head.neo-as-head h3,
.neo-as .neo-head.neo-as-head h3 {
  color: #ffffff !important;
}
.neo-as .rw-modal-header.neo-head.neo-as-head .neo-head-sub,
.neo-as .neo-head.neo-as-head .neo-head-sub {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* ════════════════════════ header status chips ════════════════════════
   Translucent white chips sit on the indigo gradient at the header's
   right edge. WCAG: white text on the indigo background runs ~3.8:1 at
   13px/600 weight which clears the 3:1 large-text bar; we also pair every
   chip with a colored dot so status never relies on hue alone. */
.neo-as .neo-as-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.neo-as .neo-as-head-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.neo-as .neo-as-head-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--neo-radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.neo-as .neo-as-head-chip strong {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.neo-as .neo-as-head-chip span { color: rgba(255, 255, 255, 0.92); }
.neo-as .neo-as-head-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.neo-as .neo-as-head-chip.is-online .neo-as-head-dot   { background: #4ADE80; }
.neo-as .neo-as-head-chip.is-offline .neo-as-head-dot  { background: #FB7185; }
.neo-as .neo-as-head-chip.is-pending .neo-as-head-dot  { background: #FBBF24; }
.neo-as .neo-as-head-chip.is-unknown .neo-as-head-dot  { background: rgba(255, 255, 255, 0.55); }
.neo-as .neo-as-head-chip.is-pending {
  animation: neo-as-head-pulse 1.8s ease-in-out infinite;
}
.neo-as .neo-as-head-chip.is-total {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.30);
}
@keyframes neo-as-head-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 0 rgba(251, 191, 36, 0.4); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 4px rgba(251, 191, 36, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .neo-as .neo-as-head-chip.is-pending { animation: none; }
}

/* ════════════════════════ skeleton loader ════════════════════════
   Professional placeholder loader. Three cards matching the final
   channel-card silhouette (avatar circle + name + meta + status pill +
   toggle) so the layout doesn't shift when real data lands. A linear
   shimmer sweeps left→right across each card; a tiny ring spinner sits
   beside the "Loading channels…" label for an explicit progress cue. */
.neo-as .neo-as-loader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0 4px;
}
.neo-as .neo-as-skel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--rw-border);
  border-radius: var(--neo-radius);
  position: relative;
  overflow: hidden;
}
/* Card surface stays static — no sweep over the whole card. Shimmer
   lives ONLY on the inner placeholder elements (avatar / lines / pill /
   toggle) so the loader feels like the FUTURE row arriving piece by
   piece, not a header flashing. */

/* placeholder shimmer — 3-stop indigo-tinted gradient that slides across
   each piece. Bright enough to read clearly, contained within each
   element so the card frame stays calm. */
.neo-as .neo-as-skel-avatar,
.neo-as .neo-as-skel-line,
.neo-as .neo-as-skel-pill,
.neo-as .neo-as-skel-toggle {
  background: linear-gradient(
    100deg,
    #E4E8F1 0%,
    #E4E8F1 30%,
    rgba(94, 114, 228, 0.22) 50%,
    #E4E8F1 70%,
    #E4E8F1 100%
  );
  background-size: 220% 100%;
  animation: neo-as-skel-bg 1.3s linear infinite;
}
.neo-as .neo-as-skel-card:nth-child(2) .neo-as-skel-avatar,
.neo-as .neo-as-skel-card:nth-child(2) .neo-as-skel-line,
.neo-as .neo-as-skel-card:nth-child(2) .neo-as-skel-pill,
.neo-as .neo-as-skel-card:nth-child(2) .neo-as-skel-toggle { animation-delay: 0.12s; }
.neo-as .neo-as-skel-card:nth-child(3) .neo-as-skel-avatar,
.neo-as .neo-as-skel-card:nth-child(3) .neo-as-skel-line,
.neo-as .neo-as-skel-card:nth-child(3) .neo-as-skel-pill,
.neo-as .neo-as-skel-card:nth-child(3) .neo-as-skel-toggle { animation-delay: 0.24s; }
.neo-as .neo-as-skel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.neo-as .neo-as-skel-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.neo-as .neo-as-skel-line {
  height: 11px;
  border-radius: 4px;
}
.neo-as .neo-as-skel-line-name { width: 38%; }
.neo-as .neo-as-skel-line-meta { width: 24%; height: 9px; }
.neo-as .neo-as-skel-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.neo-as .neo-as-skel-pill {
  width: 70px;
  height: 22px;
  border-radius: 999px;
}
.neo-as .neo-as-skel-toggle {
  width: 60px;
  height: 32px;
  border-radius: 999px;
}

.neo-as .neo-as-loader-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
  font-size: 13px;
  color: var(--rw-text-light);
  letter-spacing: 0.01em;
}
.neo-as .neo-as-loader-spinner {
  display: inline-flex;
  color: var(--neo-header-start);
  animation: neo-as-loader-spin 0.9s linear infinite;
}
@keyframes neo-as-skel-bg {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes neo-as-loader-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .neo-as .neo-as-skel-card::after,
  .neo-as .neo-as-skel-avatar,
  .neo-as .neo-as-skel-line,
  .neo-as .neo-as-skel-pill,
  .neo-as .neo-as-skel-toggle,
  .neo-as .neo-as-loader-spinner { animation: none; }
}

/* ════════════════════════ footer override (close only) ════════════════════════
   Aggregator-status footer carries only the Close button — push it to the
   right and let the row collapse otherwise. */
.neo-as .rw-modal-footer.neo-foot.neo-as-foot,
.neo-as .neo-foot.neo-as-foot {
  justify-content: flex-end !important;
}

/* ════════════════════════ channel cards list ════════════════════════ */
.neo-as .neo-as-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.neo-as .neo-as-card {
  background: #fff;
  border: 1px solid var(--rw-border);
  border-radius: var(--neo-radius);
  padding: 16px 20px;
  outline: none;
  transition:
    border-color 0.2s cubic-bezier(0.2, 0, 0, 1),
    box-shadow   0.2s cubic-bezier(0.2, 0, 0, 1),
    background   0.2s cubic-bezier(0.2, 0, 0, 1);
}
.neo-as .neo-as-card:hover {
  border-color: rgba(94, 114, 228, 0.32);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.neo-as .neo-as-card:focus,
.neo-as .neo-as-card:focus-visible,
.neo-as .neo-as-card:focus-within {
  outline: none;
  border-color: var(--neo-header-start);
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.16);
}
/* Card surface tint per channel state (constructed by ng-class as
   `neo-as-card-{state}` — see statusClass() in the controller). State is
   communicated PRIMARILY via the status pill on the right; the card tint
   is a soft secondary signal that lets users scan a list of channels for
   what needs attention without reading every pill. */
/* online = theme indigo tint (drops the prior green to match brand identity) */
.neo-as .neo-as-card-online {
  background: rgba(94, 114, 228, 0.05);
  border-color: rgba(94, 114, 228, 0.22);
}
.neo-as .neo-as-card-offline {
  background: rgba(231, 76, 60, 0.05);
  border-color: rgba(231, 76, 60, 0.22);
}
.neo-as .neo-as-card-pending {
  background: rgba(229, 169, 41, 0.07);
  border-color: rgba(229, 169, 41, 0.30);
}
.neo-as .neo-as-card-unknown {
  background: #fff;
  border-color: var(--rw-border);
}

.neo-as .neo-as-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* right cluster: pill + actions live in one tight group so they read as a
   single "what you can do here" zone, separate from the channel identity. */
.neo-as .neo-as-card-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Channel badge — renders ch.logoUrl as a 40px circle; falls back to an initial-letter
   chip in the theme indigo when no logo is configured. */
.neo-as .neo-as-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(94, 114, 228, 0.10);
  border: 1px solid rgba(94, 114, 228, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.neo-as .neo-as-initial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.neo-as .neo-as-initial-fallback {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--neo-header-start);
}
.neo-as .neo-as-card-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.neo-as .neo-as-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rw-text, #2C3E50);
  text-transform: capitalize;
  letter-spacing: -0.005em;
}
.neo-as .neo-as-meta {
  font-size: 11px;
  color: var(--rw-text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-weight: 400;
}
.neo-as .neo-as-meta .neo-mono { font-weight: 400; }
.neo-as .neo-as-setup-warn {
  color: var(--neo-warn-text);
  font-weight: 500;
}

/* ════════════════════════ status pill ════════════════════════ */
.neo-as .neo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--neo-radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  background: var(--rw-bg, #F4F6F9);
  color: var(--rw-text, #2C3E50);
  border: 1px solid var(--rw-border);
  white-space: nowrap;
  min-height: 22px;
  transition:
    background   0.2s cubic-bezier(0.2, 0, 0, 1),
    color        0.2s cubic-bezier(0.2, 0, 0, 1),
    border-color 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.neo-as .neo-status-pill .neo-dot {
  width: 6px;
  height: 6px;
}
/* online pill = theme indigo (not green) per brand-coherence pass */
.neo-as .neo-status-pill.is-online {
  background: rgba(94, 114, 228, 0.12);
  color: var(--neo-header-start);
  border-color: rgba(94, 114, 228, 0.32);
}
.neo-as .neo-status-pill.is-offline {
  background: rgba(231, 76, 60, 0.10);
  color: #C0392B;
  border-color: rgba(231, 76, 60, 0.25);
}
.neo-as .neo-status-pill.is-pending {
  background: rgba(229, 169, 41, 0.14);
  color: var(--neo-warn-text);
  border-color: rgba(229, 169, 41, 0.30);
  animation: neo-as-pulse 1.6s ease-in-out infinite;
}
@keyframes neo-as-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 169, 41, 0.18); }
  50%      { box-shadow: 0 0 0 4px rgba(229, 169, 41, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .neo-as .neo-status-pill.is-pending { animation: none; }
}
.neo-as .neo-status-pill.is-unknown {
  background: var(--rw-bg, #F4F6F9);
  color: var(--rw-text-light);
  border-color: var(--rw-border);
  border-style: dashed;
}
.neo-as .neo-status-pill i.fa-circle-o-notch { font-size: 10px; }

/* ════════════════════════ toggle switch (premium) ════════════════════════
   On-brand indigo toggle with a spring-physics thumb. Track has an inset
   shadow for depth + edge marks (|/O) that fade as the thumb slides over
   them. ON adds an outer indigo glow; PENDING swaps glow for a pulsing
   ring. Thumb carries a power glyph that rotates 180° between states (or
   a spinner during the e3 polling window). Reduced-motion freezes the
   slide and rotation — the switch still flips, just without the animation
   flourish. */
.neo-as .neo-as-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 60px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.neo-as .neo-as-toggle:focus { outline: none; }
.neo-as .neo-as-toggle:focus-visible .neo-as-toggle-track {
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.10),
    0 0 0 3px rgba(94, 114, 228, 0.30);
}

.neo-as .neo-as-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #DCE0E8 0%, #C8CFDC 100%);
  border: 1px solid #B6BFCD;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition:
    background   0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow   0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.neo-as .neo-as-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6FB 100%);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.06),
    0 2px 4px rgba(15, 23, 42, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 11px;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
    color     0.28s ease,
    box-shadow 0.28s ease;
}
.neo-as .neo-as-toggle-glyph {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.neo-as .neo-as-toggle:hover:not(:disabled) .neo-as-toggle-thumb {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 3px 6px rgba(15, 23, 42, 0.20),
    0 6px 14px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
/* click compression — fast scale-down for tactile feedback */
.neo-as .neo-as-toggle:active:not(:disabled) .neo-as-toggle-thumb {
  transform: translateX(var(--neo-as-thumb-x, 0)) scale(0.94);
  transition-duration: 0.08s;
}

/* ════════ ON state — indigo gradient + outer glow ════════ */
.neo-as .neo-as-toggle.is-on {
  --neo-as-thumb-x: 28px;
}
.neo-as .neo-as-toggle.is-on .neo-as-toggle-track {
  background: linear-gradient(135deg, var(--neo-header-start) 0%, #6E5EE8 50%, #7A4FE2 100%);
  border-color: rgba(94, 114, 228, 0.85);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 2px 10px rgba(94, 114, 228, 0.45),
    0 0 0 1px rgba(94, 114, 228, 0.20);
}
.neo-as .neo-as-toggle.is-on .neo-as-toggle-thumb {
  transform: translateX(28px);
  color: var(--neo-header-start);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.10),
    0 2px 5px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(94, 114, 228, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.neo-as .neo-as-toggle.is-on .neo-as-toggle-glyph {
  transform: rotate(180deg);
}

/* ════════ PENDING — indigo with pulsing ring while polling e3 ════════ */
.neo-as .neo-as-toggle.is-pending .neo-as-toggle-track {
  background: linear-gradient(135deg, #8B96E8 0%, #9C8AE0 100%);
  border-color: rgba(139, 150, 232, 0.75);
  animation: neo-as-toggle-pulse 1.6s ease-in-out infinite;
}
.neo-as .neo-as-toggle.is-pending .neo-as-toggle-thumb {
  color: var(--neo-header-start);
}
.neo-as .neo-as-toggle-spin { font-size: 10px; }
@keyframes neo-as-toggle-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 2px rgba(15, 23, 42, 0.18),
      0 0 0 0 rgba(94, 114, 228, 0.50);
  }
  50% {
    box-shadow:
      inset 0 1px 2px rgba(15, 23, 42, 0.18),
      0 0 0 6px rgba(94, 114, 228, 0);
  }
}

/* ════════ DISABLED — setupComplete:false channels ════════ */
.neo-as .neo-as-toggle.is-disabled,
.neo-as .neo-as-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.50;
}
.neo-as .neo-as-toggle.is-disabled .neo-as-toggle-track {
  background: linear-gradient(180deg, #ECEFF4 0%, #DDE1E9 100%);
  border-color: #CBD5E1;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.10);
}
.neo-as .neo-as-toggle.is-disabled .neo-as-toggle-thumb {
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

@media (prefers-reduced-motion: reduce) {
  .neo-as .neo-as-toggle-track,
  .neo-as .neo-as-toggle-thumb,
  .neo-as .neo-as-toggle-glyph { transition: none; }
  .neo-as .neo-as-toggle.is-pending .neo-as-toggle-track { animation: none; }
}

/* ════════════════════════ inline error banner ════════════════════════
   Slides in from the right and lives inside the channel card so the error
   is anchored to the channel it belongs to. Auto-dismisses (8s, in the
   controller); user can dismiss earlier via the X. */
.neo-as .neo-as-error {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.06), rgba(231, 76, 60, 0.10));
  border: 1px solid rgba(231, 76, 60, 0.28);
  border-left: 3px solid var(--rw-coral, #E74C3C);
  border-radius: var(--neo-radius-sm);
  color: #9B2B22;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(231, 76, 60, 0.06);
  animation: neo-as-error-slide 0.32s cubic-bezier(0.2, 0, 0, 1) both;
}
.neo-as .neo-as-error-icon {
  color: var(--rw-coral, #E74C3C);
  font-size: 14px;
  flex-shrink: 0;
}
.neo-as .neo-as-error-text {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}
.neo-as .neo-as-error-dismiss {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #9B2B22;
  opacity: 0.55;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: background 0.16s, opacity 0.16s;
}
.neo-as .neo-as-error-dismiss:hover {
  background: rgba(231, 76, 60, 0.10);
  opacity: 1;
}
.neo-as .neo-as-error-dismiss:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.35);
  opacity: 1;
}
@keyframes neo-as-error-slide {
  0%   { opacity: 0; transform: translateX(8px); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .neo-as .neo-as-error { animation: none; }
}

/* ════════════════════════ responsive ════════════════════════ */
@media (max-width: 1024px) {
  /* keep chips visible but tighter — labels still readable */
  .neo-as .neo-as-head-chips { gap: 4px; }
  .neo-as .neo-as-head-chip { padding: 4px 8px; font-size: 11.5px; }
  .neo-as .neo-as-head-chip strong { font-size: 12px; }
  /* toggle slightly larger on touch */
  .neo-as .neo-as-toggle { width: 66px; height: 36px; }
  .neo-as .neo-as-toggle-thumb { width: 30px; height: 30px; }
  .neo-as .neo-as-toggle.is-on {
    --neo-as-thumb-x: 30px;
  }
  .neo-as .neo-as-toggle.is-on .neo-as-toggle-thumb { transform: translateX(30px); }
}
@media (max-width: 720px) {
  /* narrowest: drop the word labels, keep dot + count so the chips stay
     scannable without wrapping into a second row */
  .neo-as .neo-as-head-chips { gap: 4px; }
  .neo-as .neo-as-head-chip span { display: none; }
  .neo-as .neo-as-head-chip.is-total span { display: inline; }
  .neo-as .neo-as-skel-card { padding: 14px 16px; gap: 12px; }
  .neo-as .neo-as-skel-pill { display: none; }
}
