/* Shared action/technical notices. Severity never depends on the page theme. */
.pegasus-notice {
    --notice-color: #315f95;
    --notice-border: #688db7;
    --notice-soft: #eaf1f9;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    margin: 16px 0;
    padding: 15px 18px;
    border: 1px solid var(--notice-border);
    border-left: 4px solid var(--notice-border);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    color: var(--text-main, #26384d);
    font: 500 .84rem/1.6 Montserrat, Arial, sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
}
.pegasus-notice.is-success { --notice-color: #216b47; --notice-border: #32835a; --notice-soft: #e8f5ed; }
.pegasus-notice.is-warning { --notice-color: #8c500c; --notice-border: #bb751e; --notice-soft: #fff3df; }
.pegasus-notice.is-error { --notice-color: #aa2738; --notice-border: #c44252; --notice-soft: #fcebee; }
.pegasus-notice .pegasus-notice-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--notice-soft);
    color: var(--notice-color);
    font: 800 18px/1 Arial, sans-serif;
}
.pegasus-notice .pegasus-notice-content { min-width: 0; flex: 1 1 auto; }
.pegasus-notice .pegasus-notice-title { display: block; margin: 0 0 3px; color: var(--notice-color); font-size: .84rem; font-weight: 750; }
.pegasus-notice .pegasus-notice-content p { margin: 0; color: inherit; font: inherit; white-space: pre-line; }
.pegasus-notice.pegasus-form-notice { max-width: 1200px; margin: 12px auto; position: relative; z-index: 10; }
.pegasus-notice.pegasus-session-notice { position: sticky; top: 0; z-index: 4500; margin: 0; border-radius: 0 0 12px 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.pegasus-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pegasus-notice .pegasus-notice-actions a,
.pegasus-notice .pegasus-notice-actions button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; min-height: 38px; margin: 0; padding: 8px 12px; border: 1px solid var(--notice-border); border-radius: 8px; background: var(--card-bg, #fff); color: var(--text-main, #26384d); font: 700 .78rem/1.4 Montserrat, Arial, sans-serif; text-decoration: none; cursor: pointer; white-space: normal; text-align: center; }
.pegasus-notice .pegasus-notice-actions button:disabled { cursor: wait; opacity: .65; }
.pegasus-notice .pegasus-notice-actions :focus-visible { outline: 3px solid var(--notice-color); outline-offset: 3px; }
.pegasus-notice[hidden], .pegasus-notice [hidden] { display: none !important; }
.dark-mode .pegasus-notice { --notice-color: #a7caf2; --notice-border: #6c92bc; --notice-soft: #233d59; }
.dark-mode .pegasus-notice.is-success { --notice-color: #91ddb2; --notice-border: #58ae80; --notice-soft: #193f2f; }
.dark-mode .pegasus-notice.is-warning { --notice-color: #f1cb8d; --notice-border: #ce9749; --notice-soft: #49361e; }
.dark-mode .pegasus-notice.is-error { --notice-color: #ffb0ba; --notice-border: #db7684; --notice-soft: #4b2834; }
@media (max-width: 520px) {
    .pegasus-notice { gap: 10px; padding: 12px; }
    .pegasus-notice-actions { flex-direction: column; align-items: stretch; }
}
@media (forced-colors: active) {
    .pegasus-notice { border-color: CanvasText; }
    .pegasus-notice .pegasus-notice-icon { border: 1px solid CanvasText; }
}
