/* ==========================================================
   EcoSignal V92.1
   Facility Identity Module
   ========================================================== */

/* Future Facility Identity styles start here */

/* V99.3 presentation boundary: identity engines remain active as governed
   data services but their internal diagnostic panels are not user-facing. */
#v89EntityResolutionPanel,
#v920FacilityIdentityEngine,
.v921-legacy-identity-compat{
    display:none !important;
}
/* ==========================================================
   V92.1 Release Cleanup
   Verified Facility Identity
   ========================================================== */

.v912-identity-banner{
    border:1px solid rgba(120,255,170,.25);
    border-radius:18px;
    padding:24px;
    margin-bottom:22px;
    background:linear-gradient(
        145deg,
        rgba(16,45,33,.98),
        rgba(9,26,18,.98)
    );
}
/* ==========================================================
   EcoSignal V92.1
   Facility Identity Engine
   ========================================================== */

.v920-identity-engine{
    margin:18px 0;
    padding:22px;
    border:1px solid rgba(151,255,181,.24);
    border-radius:18px;
    background:
        linear-gradient(
            145deg,
            rgba(14,39,29,.98),
            rgba(7,24,17,.98)
        );
    box-shadow:0 18px 48px rgba(0,0,0,.24);
}

.v920-engine-header{
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:flex-start;
    flex-wrap:wrap;
}

.v920-engine-header h3{
    margin:6px 0;
    font-size:clamp(1.3rem,2vw,2rem);
}

.v920-engine-header p{
    margin:0;
    color:var(--muted);
}

.v920-version{
    color:#98ffb5;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.09em;
}

.v920-confidence{
    min-width:150px;
    text-align:right;
}

.v920-confidence small,
.v920-confidence span{
    display:block;
    color:var(--muted);
}

.v920-confidence strong{
    display:block;
    margin:4px 0;
    color:#c9ffd5;
    font-size:2rem;
    line-height:1;
}

.v920-confidence-track{
    height:7px;
    margin:18px 0;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.08);
}

.v920-confidence-track span{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(
        90deg,
        #95ffb6,
        #9ecaff
    );
}

.v920-summary-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.v920-summary-grid > div{
    min-width:0;
    padding:13px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(255,255,255,.025);
}

.v920-summary-grid small,
.v920-summary-grid strong{
    display:block;
}

.v920-summary-grid small{
    margin-bottom:5px;
    color:var(--muted);
}

.v920-summary-grid strong{
    overflow-wrap:anywhere;
}

.v920-engine-section{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid var(--line);
}

.v920-section-heading{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-end;
    margin-bottom:12px;
}

.v920-section-heading small{
    color:#98ffb5;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.v920-section-heading h4{
    margin:4px 0 0;
}

.v920-section-heading > span{
    color:var(--muted);
    font-size:.82rem;
}

.v920-evidence-list{
    display:grid;
    gap:8px;
}

.v920-evidence-row{
    display:grid;
    grid-template-columns:
        minmax(130px,.8fr)
        minmax(220px,1.5fr)
        minmax(90px,.4fr);
    gap:12px;
    align-items:center;
    padding:12px;
    border:1px solid var(--line);
    border-radius:11px;
    background:rgba(255,255,255,.02);
}

.v920-evidence-row strong,
.v920-evidence-row span,
.v920-evidence-row b,
.v920-evidence-row small{
    display:block;
}

.v920-evidence-row small{
    margin-top:4px;
    color:var(--muted);
    overflow-wrap:anywhere;
}

.v920-timeline{
    display:grid;
    gap:8px;
}

.v920-timeline-row{
    padding:12px 14px;
    border-left:3px solid rgba(151,255,181,.45);
    background:rgba(255,255,255,.025);
}

.v920-timeline-row strong,
.v920-timeline-row span{
    display:block;
}

.v920-timeline-row span{
    margin-top:3px;
    color:var(--muted);
    font-size:.78rem;
}

.v920-timeline-row p{
    margin:7px 0 0;
}

.v920-actions-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.v920-action-card{
    padding:13px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(255,255,255,.025);
}

.v920-action-card small{
    display:block;
    margin-bottom:5px;
    color:#98ffb5;
    font-weight:800;
}

.v920-action-card strong{
    display:block;
}

.v920-action-card p{
    margin:7px 0 0;
    color:var(--muted);
}

.v920-empty{
    padding:18px;
    border:1px dashed var(--line);
    border-radius:11px;
    color:var(--muted);
    text-align:center;
}

.v920-governance-note{
    margin-top:18px;
    padding:11px 13px;
    border-left:3px solid #e7ce62;
    background:rgba(231,206,98,.06);
    color:var(--muted);
    font-size:.8rem;
}

@media(max-width:900px){
    .v920-summary-grid,
    .v920-actions-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .v920-evidence-row{
        grid-template-columns:1fr;
    }

    .v920-confidence{
        text-align:left;
    }
}

@media(max-width:560px){
    .v920-identity-engine{
        padding:16px;
    }

    .v920-summary-grid,
    .v920-actions-grid{
        grid-template-columns:1fr;
    }
}

/* ==========================================================
   EcoSignal V92.1 Release Cleanup
   Legacy renderer compatibility disclosure
   ========================================================== */
.v921-legacy-identity-compat{
    margin:14px 0 18px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(255,255,255,.018);
    overflow:hidden;
}
.v921-legacy-identity-compat>summary{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    padding:12px 14px;
    cursor:pointer;
    color:var(--muted);
    font-size:.78rem;
    list-style:none;
}
.v921-legacy-identity-compat>summary::-webkit-details-marker{display:none}
.v921-legacy-identity-compat>summary span{
    color:#dcebe4;
    font-weight:800;
}
.v921-legacy-identity-compat>summary small{
    color:var(--muted);
}
.v921-legacy-identity-compat>summary::after{
    content:"＋";
    color:#98ffb5;
    font-size:1rem;
}
.v921-legacy-identity-compat[open]>summary::after{content:"−"}
.v921-legacy-identity-compat[open]>summary{
    border-bottom:1px solid rgba(255,255,255,.08);
}
.v921-legacy-identity-compat>#v89EntityResolutionPanel,
.v921-legacy-identity-compat>.v911-identity-card{
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
@media(max-width:700px){
    .v921-legacy-identity-compat>summary{
        align-items:flex-start;
        flex-direction:column;
    }
}
