/* api-error-panel.css — ``'s own styling, colour + layout both. Not slotted into `` (see the component's own header for why) — the border/background/pulse below are deliberately copied from `hive-warn.css`'s `level="error"` rule rather than invented fresh, so this still reads as "the same error banner" everywhere it appears, just declared locally instead of shared through a shadow root. Reuses theme.css's own documented semantics (`--red` = "errors, fail state"), same as `hive-warn.css` does. */ .api-error-panel { display: block; margin-top: 1em; margin-bottom: 0.6em; border: 1px solid var(--red); border-radius: 4px; padding: 0.5em 0.8em; color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); text-shadow: 0 0 6px color-mix(in srgb, currentColor 40%, transparent); animation: api-error-panel-pulse 2.4s ease-in-out infinite; } @keyframes api-error-panel-pulse { 0%, 100% { box-shadow: 0 0 12px -4px color-mix(in srgb, currentColor 55%, transparent); } 50% { box-shadow: 0 0 22px -2px color-mix(in srgb, currentColor 95%, transparent); } } .api-error-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8em; } .api-error-title { font-weight: 600; } .api-error-copy { flex: none; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 0.3em; padding: 0.1em 0.6em; font: inherit; font-size: 0.85em; cursor: pointer; } .api-error-copy:hover { background: color-mix(in srgb, currentColor 12%, transparent); } .api-error-detail { margin: 0.5em 0 0; white-space: pre-wrap; word-break: break-word; font-size: 0.9em; opacity: 0.9; }