/* SkyEye HF12 — LIVE COURSE INTELLIGENCE V10 */

.hf12-ci-admin{
    margin:0 0 14px;
    overflow:hidden;
    border:1px solid #d8dee6;
    border-radius:12px;
    background:#fff;
}

.hf12-ci-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    border-bottom:1px solid #e8ebef;
    background:#fafbfc;
}

.hf12-ci-header strong{
    display:block;
    font-size:13px;
}

.hf12-ci-header span{
    display:block;
    margin-top:2px;
    color:#667085;
    font-size:9px;
}

.hf12-ci-summary{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 14px;
    padding:7px 12px;
    border-bottom:1px solid #eef0f2;
    background:#fff;
    color:#667085;
    font-size:9px;
}

.hf12-ci-summary strong{
    color:#20252b;
}

.hf12-ci-summary .warn{
    color:#a12b27;
}

.hf12-ci-freshness{
    margin-left:auto;
}

.hf12-ci-category-filter{
    min-width:155px;
    height:32px;
    border:1px solid #ccd3db;
    border-radius:7px;
    background:#fff;
    padding:0 8px;
    font-size:10px;
}

.hf12-ci-table-wrap{
    overflow:auto;
    max-height:520px;
}

.hf12-ci-table{
    width:100%;
    border-collapse:collapse;
    white-space:nowrap;
    font-size:10px;
}

.hf12-ci-table th{
    position:sticky;
    top:0;
    z-index:2;
    padding:7px 8px;
    border-bottom:1px solid #dfe3e8;
    background:#f7f8fa;
    color:#667085;
    text-align:left;
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.hf12-ci-table td{
    padding:7px 8px;
    border-bottom:1px solid #f0f1f3;
    vertical-align:middle;
}

.hf12-ci-table tbody tr:hover{
    background:#fafcff;
}

.hf12-ci-rank{
    width:40px;
    text-align:center!important;
    font-weight:900;
    font-size:12px;
}

.hf12-ci-participant{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:130px;
    font-weight:800;
}

.hf12-ci-number{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:24px;
    height:22px;
    padding:0 5px;
    border-radius:6px;
    background:#eef2f6;
    font-size:9px;
}

.hf12-ci-category{
    color:#667085;
}

.hf12-ci-status{
    display:inline-flex;
    align-items:center;
    min-height:21px;
    padding:0 6px;
    border-radius:999px;
    font-size:7px;
    font-weight:900;
    letter-spacing:.03em;
}

.hf12-ci-status.on{
    background:#e9f7ee;
    color:#19723a;
}

.hf12-ci-status.off{
    background:#fff0ef;
    color:#ae2925;
}

.hf12-ci-status.finished{
    background:#edf3ff;
    color:#2558a5;
}

.hf12-ci-status.neutral{
    background:#eef1f4;
    color:#56606b;
}

.hf12-ci-progress{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:120px;
}

.hf12-ci-progress-track{
    position:relative;
    width:76px;
    height:6px;
    overflow:hidden;
    border-radius:999px;
    background:#e8ebef;
}

.hf12-ci-progress-track span{
    display:block;
    height:100%;
    border-radius:999px;
    background:#268dc5;
}

.hf12-ci-progress strong{
    min-width:42px;
    font-size:9px;
    text-align:right;
}

.hf12-ci-distance,
.hf12-ci-remaining,
.hf12-ci-gap,
.hf12-ci-eta,
.hf12-ci-route-distance,
.hf12-ci-split{
    font-variant-numeric:tabular-nums;
}

.hf12-ci-empty{
    padding:20px!important;
    color:#667085;
    text-align:center;
}

.hf12-ci-muted{
    color:#98a2b3;
}


/* PUBLIC */

.hf12-ci-public{
    position:fixed;
    left:14px;
    bottom:14px;
    z-index:9100;
    width:min(960px,calc(100vw - 28px));
    max-height:min(62vh,620px);
    overflow:hidden;
    border:1px solid rgba(38,46,56,.2);
    border-radius:13px;
    background:rgba(255,255,255,.97);
    box-shadow:0 8px 28px rgba(20,27,34,.2);
    backdrop-filter:blur(8px);
}

.hf12-ci-public.collapsed{
    width:auto;
    max-width:calc(100vw - 28px);
}

.hf12-ci-public-header{
    background:#fff;
}

#hf12CiCollapse{
    display:flex;
    width:100%;
    min-height:42px;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    border:0;
    background:transparent;
    padding:8px 12px;
    color:#242a31;
    cursor:pointer;
}

#hf12CiCollapse>span{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:11px;
    font-weight:800;
}

#hf12CiCollapse>span strong{
    display:inline-flex;
    align-items:center;
    min-height:21px;
    padding:0 6px;
    border-radius:999px;
    background:#c7282f;
    color:#fff;
    font-size:8px;
    letter-spacing:.05em;
}

.hf12-ci-chevron{
    font-size:14px;
}

.hf12-ci-public-body{
    border-top:1px solid #e4e7eb;
}

.hf12-ci-public-tools{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:7px 9px 0;
}

.hf12-ci-public-tools .hf12-ci-summary{
    flex:1;
    justify-content:flex-end;
    border:0;
    padding:0;
    background:transparent;
}

.hf12-ci-public .hf12-ci-table-wrap{
    max-height:46vh;
    margin-top:7px;
    border-top:1px solid #edf0f2;
}


/* TABLET / MOBILE */

@media(max-width:820px){
    .hf12-ci-public{
        left:7px;
        right:7px;
        bottom:7px;
        width:auto;
        max-height:65vh;
    }

    .hf12-ci-public-tools{
        align-items:stretch;
        flex-direction:column;
    }

    .hf12-ci-public-tools .hf12-ci-summary{
        justify-content:flex-start;
    }

    .hf12-ci-freshness{
        margin-left:0;
    }

    .hf12-ci-table th,
    .hf12-ci-table td{
        padding:6px;
    }

    .hf12-ci-table .hf12-ci-route-distance,
    .hf12-ci-table th:nth-child(10),
    .hf12-ci-table .hf12-ci-split,
    .hf12-ci-table th:nth-child(11){
        display:none;
    }
}

@media(max-width:600px){
    .hf12-ci-table .hf12-ci-category,
    .hf12-ci-table th:nth-child(3),
    .hf12-ci-table .hf12-ci-gap,
    .hf12-ci-table th:nth-child(8){
        display:none;
    }

    .hf12-ci-progress{
        min-width:92px;
    }

    .hf12-ci-progress-track{
        width:48px;
    }

    .hf12-ci-participant{
        min-width:100px;
    }
}
