/* Analyzer landing-page live status. The analysis tool cards remain primary. */

body.analyzer .analyzer-live-job-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    max-width: 1280px;
    margin-top: 14px;
}

body.analyzer .analyzer-live-status-card {
    position: relative;
    display: grid;
    height: 66px;
    min-height: 66px;
    box-sizing: border-box;
    align-items: center;
    border: 1px solid #dbe5f0;
    border-radius: 13px;
    background: #ffffff;
}

body.analyzer .analyzer-live-status-card--summary {
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 10px;
    padding: 8px 10px 8px 17px;
}

body.analyzer .analyzer-live-status-card--summary::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -1px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--analyzer-blue, #2468d4);
    content: "";
}

body.analyzer .analyzer-live-status-heading {
    display: grid;
    min-width: 0;
    gap: 4px;
}

body.analyzer .analyzer-live-status-heading strong {
    overflow: hidden;
    color: var(--analyzer-ink, #192b44);
    font-size: var(--analyzer-font-body, .78rem);
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-live-status-heading small {
    overflow: hidden;
    color: #16835f;
    font-size: 10px;
    font-weight: 760;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-live-status-heading small span {
    margin-right: 3px;
}

body.analyzer .analyzer-live-status-counts {
    display: flex;
    align-items: center;
    gap: 7px;
}

body.analyzer .analyzer-live-status-count {
    display: flex;
    min-width: 88px;
    height: 48px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin: 0;
    padding: 7px 9px;
    border-radius: 8px;
}

body.analyzer .analyzer-live-status-count--running {
    color: #167456;
    background: #e8f7f1;
}

body.analyzer .analyzer-live-status-count--waiting {
    color: #a66108;
    background: #fff5df;
}

body.analyzer .analyzer-live-status-count span {
    font-size: 10px;
    font-weight: 740;
}

body.analyzer .analyzer-live-status-count strong {
    min-width: 22px;
    overflow: hidden;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-live-status-count strong.is-status-text {
    max-width: 68px;
    font-size: 10px;
    font-weight: 740;
}

body.analyzer .analyzer-live-status-card--lookup {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 7px 10px;
}

body.analyzer .analyzer-live-status-card--lookup label {
    color: #283c54;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

body.analyzer .analyzer-live-status-lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

body.analyzer .analyzer-live-status-lookup-row input {
    width: 100%;
    min-width: 0;
    height: 33px;
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid #b9cadb;
    border-radius: 8px;
    background: #ffffff;
    color: var(--analyzer-ink, #192b44);
    font: inherit;
    font-size: 11px;
    outline: none;
}

body.analyzer .analyzer-live-status-lookup-row input:focus {
    border-color: var(--analyzer-blue, #2468d4);
    box-shadow: 0 0 0 3px rgba(36, 104, 212, .12);
}

body.analyzer .analyzer-live-status-lookup-row button {
    height: 33px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--analyzer-blue, #2468d4);
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

body.analyzer .analyzer-live-status-lookup-row button:hover,
body.analyzer .analyzer-live-status-lookup-row button:focus-visible {
    background: #185bbd;
    outline: none;
}

body.analyzer .analyzer-live-status-result {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding: 14px 16px;
    border: 1px solid #dbe5f0;
    border-radius: 11px;
    background: #ffffff;
    color: var(--analyzer-ink, #192b44);
    font-size: var(--analyzer-font-body, .78rem);
    line-height: 1.5;
}

body.analyzer .analyzer-live-status-result:empty {
    display: none;
}

body.analyzer .analyzer-job-samples {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e8f0;
}

body.analyzer .analyzer-job-samples > strong {
    display: block;
    margin-bottom: 8px;
}

body.analyzer .analyzer-job-samples > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

body.analyzer .analyzer-job-sample {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #f1f5f9;
}

body.analyzer .analyzer-job-sample b {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.analyzer .analyzer-job-sample small {
    color: #66798d;
    font-size: 9px;
    font-weight: 750;
}

body.analyzer .analyzer-job-sample--running { background: #e8f7f1; }
body.analyzer .analyzer-job-sample--running small,
body.analyzer .analyzer-job-sample--completed small { color: #167456; }
body.analyzer .analyzer-job-sample--completed { background: #eaf4ff; }
body.analyzer .analyzer-job-sample--failed { background: #fdebea; }
body.analyzer .analyzer-job-sample--failed small { color: #a33b34; }

@media (max-width: 980px) {
    body.analyzer .analyzer-live-job-status {
        grid-template-columns: 1fr;
    }

    body.analyzer .analyzer-job-samples > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    body.analyzer .analyzer-live-status-card--summary {
        grid-template-columns: minmax(92px, 1fr) auto;
        padding-left: 14px;
    }

    body.analyzer .analyzer-job-samples > div {
        grid-template-columns: 1fr;
    }

    body.analyzer .analyzer-live-status-count {
        min-width: 68px;
        padding-right: 7px;
        padding-left: 7px;
    }

    body.analyzer .analyzer-live-status-count span {
        font-size: 9px;
    }

    body.analyzer .analyzer-live-status-lookup-row button {
        padding-right: 10px;
        padding-left: 10px;
    }
}
