﻿:root {
    --erc-border: rgba(255,255,255,0.08);
    --erc-border-strong: rgba(111,220,255,0.18);
    --erc-text: #f5f9ff;
    --erc-text-soft: rgba(222,231,244,0.78);
    --erc-text-muted: rgba(174,191,215,0.66);
    --erc-cyan: #00d1ff;
    --erc-green: #43f39f;
    --erc-amber: #ffc56d;
    --erc-red: #ff7d89;
    --erc-shadow-lg: 0 24px 60px rgba(0,0,0,0.30);
    --erc-shadow-md: 0 16px 36px rgba(0,0,0,0.24);
    --erc-radius-xl: 28px;
    --erc-radius-lg: 22px;
    --erc-radius-md: 18px;
    --erc-radius-sm: 14px;
    --erc-radius-pill: 999px;
}

.erc-page {
    color: var(--erc-text);
}

.erc-shell {
    gap: 1.15rem;
}

.erc-breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--erc-text-muted);
}

    .erc-breadcrumb a {
        color: inherit;
        text-decoration: none;
    }

        .erc-breadcrumb a:hover {
            color: #fff;
        }

.erc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto;
    gap: 1.2rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--erc-radius-xl);
    border: 1px solid var(--erc-border);
    background: radial-gradient(circle at top right, rgba(0,209,255,0.12), transparent 30%), radial-gradient(circle at 18% 0%, rgba(67,243,159,0.08), transparent 22%), linear-gradient(180deg, rgba(12,20,34,0.96), rgba(9,15,27,0.96));
    box-shadow: var(--erc-shadow-md);
    margin-bottom: 1.5rem;
}

.erc-hero-main {
    display: grid;
    gap: .75rem;
    min-width: 0;
}

.erc-hero-copy {
    display: grid;
    gap: .42rem;
}

.erc-eyebrow {
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(167,218,255,0.86);
}

.erc-title {
    font-size: 2.05rem;
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.04;
    color: #fff;
}

.erc-subtitle {
    max-width: 860px;
    font-size: .96rem;
    line-height: 1.6;
    color: var(--erc-text-soft);
}

.erc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: flex-start;
    justify-content: flex-end;
}

.erc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 16px;
    border: 1px solid var(--erc-border);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
    transition: .18s ease;
}

.erc-btn-secondary {
    color: var(--erc-text);
    background: rgba(255,255,255,0.04);
}

.erc-btn-ghost {
    color: var(--erc-text-soft);
    background: rgba(255,255,255,0.03);
}

    .erc-btn-secondary:hover,
    .erc-btn-ghost:hover {
        transform: translateY(-1px);
        border-color: var(--erc-border-strong);
        color: #fff;
        background: rgba(255,255,255,0.06);
    }

.erc-banner {
    padding: .95rem 1rem;
    border-radius: var(--erc-radius-lg);
    border: 1px solid var(--erc-border);
    font-size: .9rem;
    color: var(--erc-text-soft);
}

.erc-banner-success {
    border-color: rgba(67,243,159,0.18);
    background: rgba(67,243,159,0.08);
}

.erc-banner-error {
    border-color: rgba(255,125,137,0.18);
    background: rgba(255,125,137,0.08);
}

.erc-overview,
.erc-queue-section {
    display: grid;
    gap: 1rem;
    padding: 1.05rem;
    border-radius: var(--erc-radius-lg);
    border: 1px solid var(--erc-border);
    background: radial-gradient(circle at top right, rgba(0,209,255,0.08), transparent 34%), linear-gradient(180deg, rgba(14,24,39,0.97), rgba(8,15,26,0.97));
    box-shadow: var(--erc-shadow-md);
    margin-bottom: 1.5rem;
}

.erc-queue-ready {
    border-color: rgba(67,243,159,0.14);
}

.erc-queue-attention {
    border-color: rgba(255,197,109,0.14);
}

.erc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.erc-section-kicker {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    color: var(--erc-text-muted);
}

.erc-section-title {
    margin-top: .16rem;
    font-size: 1.32rem;
    font-weight: 950;
    line-height: 1.08;
    color: #fff;
}

.erc-section-subtitle {
    margin-top: .24rem;
    font-size: .9rem;
    line-height: 1.58;
    color: var(--erc-text-soft);
}

.erc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.erc-kpi-card {
    display: grid;
    gap: .18rem;
    padding: .88rem .92rem;
    border-radius: var(--erc-radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
}

.erc-kpi-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
    color: var(--erc-text-muted);
}

.erc-kpi-value {
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1;
    color: #fff;
}

    .erc-kpi-value.is-positive {
        color: var(--erc-green);
    }

    .erc-kpi-value.is-danger {
        color: var(--erc-red);
    }

.erc-focus-card {
    display: grid;
    gap: .9rem;
    height: 100%;
    padding: 1rem;
    border-radius: var(--erc-radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.erc-focus-title {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
}

.erc-focus-list {
    display: grid;
    gap: .75rem;
}

.erc-focus-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

    .erc-focus-row strong {
        font-size: 1rem;
        font-weight: 950;
        color: #fff;
    }

.erc-focus-note {
    padding-top: .35rem;
    font-size: .84rem;
    line-height: 1.55;
    color: var(--erc-text-soft);
}

.erc-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 .78rem;
    border-radius: var(--erc-radius-pill);
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.erc-pill-soft {
    color: var(--erc-text-soft);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
}

.erc-pill-success {
    color: #e7fff1;
    border: 1px solid rgba(67,243,159,0.22);
    background: rgba(67,243,159,0.12);
}

.erc-pill-warn {
    color: #fff2dc;
    border: 1px solid rgba(255,197,109,0.22);
    background: rgba(255,197,109,0.14);
}

.erc-empty-state {
    padding: 1rem 1.05rem;
    border-radius: var(--erc-radius-md);
    border: 1px dashed rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
    font-size: .9rem;
    line-height: 1.58;
    color: var(--erc-text-soft);
}

@media (max-width: 1200px) {
    .erc-hero {
        grid-template-columns: 1fr;
    }

    .erc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .erc-hero,
    .erc-overview,
    .erc-queue-section,
    .erc-focus-card {
        padding: 1rem;
    }

    .erc-title {
        font-size: 1.8rem;
    }

    .erc-kpi-grid {
        grid-template-columns: 1fr;
    }

    .erc-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .erc-hero-actions {
        justify-content: flex-start;
    }
}

/* ---------- snapshot cards ---------- */
.erc-snapshot-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--erc-radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    background: radial-gradient(circle at top right, rgba(0,209,255,0.06), transparent 36%), linear-gradient(180deg, rgba(17,27,42,0.97), rgba(10,17,29,0.97));
    box-shadow: var(--erc-shadow-md);
}

.erc-snapshot-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.erc-snapshot-identity {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
}

.erc-snapshot-logos {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
}

.erc-team-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    padding: .3rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.erc-snapshot-vs {
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--erc-text-muted);
}

.erc-snapshot-copy {
    min-width: 0;
}

.erc-snapshot-matchup {
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.15;
    color: #fff;
}

.erc-snapshot-meta {
    margin-top: .14rem;
    font-size: .84rem;
    color: var(--erc-text-soft);
}

.erc-snapshot-submeta {
    margin-top: .12rem;
    font-size: .78rem;
    color: var(--erc-text-muted);
}

.erc-snapshot-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.erc-snapshot-recommendation {
    padding: .9rem .95rem;
    border-radius: var(--erc-radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
    font-size: .86rem;
    line-height: 1.58;
    color: var(--erc-text-soft);
}

.erc-snapshot-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .7rem;
}

.erc-snapshot-kpi {
    display: grid;
    gap: .16rem;
    padding: .8rem .84rem;
    border-radius: var(--erc-radius-md);
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

.erc-snapshot-kpi-label {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
    color: var(--erc-text-muted);
}

.erc-snapshot-kpi-value {
    font-size: .98rem;
    font-weight: 950;
    line-height: 1.15;
    color: #fff;
}

.erc-snapshot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: .1rem;
}

.erc-snapshot-footer-note {
    font-size: .84rem;
    line-height: 1.55;
    color: var(--erc-text-soft);
}

.erc-snapshot-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.erc-btn-inline {
    min-height: 40px;
    padding: 0 .95rem;
}

@media (max-width: 1400px) {
    .erc-snapshot-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .erc-snapshot-top,
    .erc-snapshot-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .erc-snapshot-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .erc-snapshot-card {
        padding: 1rem;
    }

    .erc-snapshot-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .erc-snapshot-identity {
        align-items: flex-start;
    }
}

.erc-btn:disabled,
.erc-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(.1);
}