/*
 * Identity Warning Banner — S7 (2026-06-22)
 * Theme: amber-on-dark warning, intentionally subdued so it doesn't
 * compete with the SubnetLogo + KPI strip at the top of the page.
 * Higher-confidence events get a slightly stronger left-edge accent
 * to surface severity without changing the overall layout.
 */

.identity-warning {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    margin: 12px 0 18px;
    background: rgba(255, 184, 0, 0.06);
    border: 1px solid rgba(255, 184, 0, 0.35);
    border-left: 4px solid rgba(255, 184, 0, 0.75);
    border-radius: 8px;
    color: #f5e7c4;
    font-size: 14px;
    line-height: 1.5;
}

.identity-warning--high {
    background: rgba(255, 120, 60, 0.08);
    border-color: rgba(255, 120, 60, 0.4);
    border-left-color: rgba(255, 120, 60, 0.9);
    color: #fcdcc4;
}

.identity-warning--medium {
    background: rgba(255, 184, 0, 0.07);
    border-color: rgba(255, 184, 0, 0.35);
    border-left-color: rgba(255, 184, 0, 0.8);
}

/*
 * S26 — emission decline warning (operator-actionable, NOT archival).
 *
 * Amber tone, slightly stronger than the base banner but distinct from
 * --high (which is the red kill-switch tone for dereg / emission cessation).
 * Composes with --high / --medium / --low confidence classes via cascade
 * order: --decline rules come AFTER confidence rules so the decline-specific
 * tones win at equal specificity.
 */
.identity-warning--decline {
    background: rgba(255, 184, 0, 0.10);
    border-color: rgba(255, 184, 0, 0.55);
    border-left-color: rgba(255, 184, 0, 0.95);
    color: #f9e3b8;
}

.identity-warning--decline .identity-warning__icon {
    color: rgba(255, 184, 0, 1);
}

.identity-warning--decline .identity-warning__confidence {
    background: rgba(255, 184, 0, 0.22);
    color: #fff;
}

.identity-warning--decline .identity-warning__lead {
    color: #fbe9c8;
}

.identity-warning--decline .identity-warning__footer {
    color: #e1cc99;
}

.identity-warning__icon {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    padding-top: 2px;
    color: rgba(255, 184, 0, 0.95);
}

.identity-warning--high .identity-warning__icon {
    color: rgba(255, 120, 60, 1);
}

.identity-warning__body {
    flex: 1 1 auto;
    min-width: 0;
}

.identity-warning__title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.identity-warning__confidence {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fde4be;
}

.identity-warning--high .identity-warning__confidence {
    background: rgba(255, 120, 60, 0.22);
    color: #fff;
}

.identity-warning__lead {
    margin: 0 0 8px;
    color: #e9d7b3;
}

.identity-warning--high .identity-warning__lead {
    color: #f8e1ce;
}

.identity-warning__reasons {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.identity-warning__reason {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #f3e3c6;
}

.identity-warning__footer {
    margin: 0;
    font-size: 13px;
    color: #cfbf99;
}

.identity-warning__footer strong {
    color: #fff;
}

/* S11 verification block — sits between reasons + footer */
.identity-warning__verification {
    margin: 8px 0;
    padding: 7px 11px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.identity-warning__verification--pending {
    background: rgba(255, 255, 255, 0.05);
    color: #d7c89a;
    border-color: rgba(255, 255, 255, 0.1);
}

.identity-warning__verification--confirmed {
    background: rgba(60, 200, 120, 0.12);
    color: #b6f0c7;
    border-color: rgba(60, 200, 120, 0.4);
}

.identity-warning__verification--ambiguous {
    background: rgba(255, 184, 0, 0.12);
    color: #fde4be;
    border-color: rgba(255, 184, 0, 0.45);
}

.identity-warning__verification--unconfirmed {
    background: rgba(180, 180, 180, 0.10);
    color: #cfcfcf;
    border-color: rgba(180, 180, 180, 0.3);
}

.identity-warning__verification-confidence {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.75;
    margin-left: 4px;
}

@media (max-width: 640px) {
    .identity-warning {
        padding: 12px 14px;
        font-size: 13px;
        gap: 10px;
    }
    .identity-warning__title {
        font-size: 14px;
    }
    .identity-warning__icon {
        font-size: 19px;
    }
}
