/* LAB Agent — overlay on home-lab-service shell (body.lab-agt-page) */

body.lab-agt-page {
    --lab-agt-accent: #2a5f6e;
    --lab-agt-accent-soft: rgba(42, 95, 110, 0.1);
}

body.lab-agt-page .lab-svc-rail__lab {
    color: var(--lab-agt-accent);
    letter-spacing: 0.07em;
}

body.lab-agt-page .lab-svc-brand__mark {
    background: var(--lab-agt-accent);
}

body.lab-agt-page .lab-svc-nav a.is-active {
    background: rgba(221, 237, 173, 0.65);
    box-shadow: inset 0 0 0 1px rgba(23, 59, 66, 0.08);
}

body.lab-agt-page .lab-agt-nav {
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 2px 6px;
    scrollbar-width: thin;
}

body.lab-agt-page .lab-agt-nav > a {
    padding: 9px 12px;
    font-size: 0.88rem;
}

/* Accordion sections: Partners / Agent */
body.lab-agt-page .lab-agt-acc {
    margin: 0;
    border: 1px solid var(--lab-line, #e4e8e1);
    border-radius: 12px;
    background: rgba(250, 251, 247, 0.92);
    overflow: hidden;
}

body.lab-agt-page .lab-agt-acc[open] {
    background: #fff;
    border-color: rgba(23, 59, 66, 0.14);
    box-shadow: 0 1px 0 rgba(18, 32, 58, 0.03);
}

body.lab-agt-page .lab-agt-acc__sum {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 10px 10px 12px;
    cursor: pointer;
    user-select: none;
    color: var(--lab-ink, #173b42);
    transition: background 160ms ease;
}

body.lab-agt-page .lab-agt-acc__sum::-webkit-details-marker {
    display: none;
}

body.lab-agt-page .lab-agt-acc__sum:hover {
    background: rgba(23, 59, 66, 0.04);
}

body.lab-agt-page .lab-agt-acc__sum:focus-visible {
    outline: 2px solid rgba(23, 59, 66, 0.28);
    outline-offset: -2px;
}

body.lab-agt-page .lab-agt-acc__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--lab-agt-accent-soft);
    color: var(--lab-agt-accent);
    flex-shrink: 0;
}

body.lab-agt-page .lab-agt-acc__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

body.lab-agt-page .lab-agt-acc__count {
    flex: 0 0 auto;
    min-width: 1.4em;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.3;
    color: var(--lab-muted, #6b7280);
    background: rgba(23, 59, 66, 0.06);
}

body.lab-agt-page .lab-agt-acc[open] .lab-agt-acc__count {
    color: var(--lab-agt-accent);
    background: rgba(221, 237, 173, 0.65);
}

body.lab-agt-page .lab-agt-acc__chev {
    width: 14px;
    height: 14px;
    margin-right: 2px;
    flex-shrink: 0;
    opacity: 0.55;
    color: var(--lab-ink, #173b42);
    transition: transform 160ms ease, opacity 160ms ease;
}

body.lab-agt-page .lab-agt-acc[open] .lab-agt-acc__chev {
    transform: rotate(180deg);
    opacity: 0.8;
}

body.lab-agt-page .lab-agt-acc__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 6px 8px;
    border-top: 1px solid rgba(23, 59, 66, 0.06);
}

body.lab-agt-page .lab-agt-acc__body a {
    padding: 8px 10px;
    font-size: 0.84rem;
    border-radius: 9px;
}

body.lab-agt-page .lab-agt-acc.has-active:not([open]) .lab-agt-acc__sum {
    background: rgba(221, 237, 173, 0.35);
}

body.lab-agt-page .lab-agt-acc.has-active:not([open]) .lab-agt-acc__ico {
    background: rgba(221, 237, 173, 0.75);
}

/* Collapsed rail: hide accordion chrome, show only icons of open body if needed */
body.lab-agt-page.is-rail-collapsed .lab-agt-acc__title,
body.lab-agt-page.is-rail-collapsed .lab-agt-acc__count,
body.lab-agt-page.is-rail-collapsed .lab-agt-acc__chev {
    display: none;
}

body.lab-agt-page.is-rail-collapsed .lab-agt-acc__sum {
    justify-content: center;
    padding: 8px;
}

body.lab-agt-page.is-rail-collapsed .lab-agt-acc__body a .lab-svc-nav__label {
    display: none;
}

body.lab-agt-page.is-rail-collapsed .lab-agt-acc__body a {
    justify-content: center;
    padding: 8px;
}

body.lab-agt-page .lab-agt-status:not([hidden]) {
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--lab-ink, #173b42);
    border: 1px solid rgba(23, 59, 66, 0.12);
    background: rgba(221, 237, 173, 0.45);
}

body.lab-agt-page .lab-agt-status.is-err:not([hidden]) {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.22);
    color: #7f1d1d;
}

body.lab-agt-page .lab-agt-status.is-info:not([hidden]) {
    background: rgba(232, 240, 254, 0.9);
}

body.lab-agt-page .lab-agt-period {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lab-muted, #6b7280);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 59, 66, 0.05);
}

body.lab-agt-page .lab-agt-kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 22px;
}

body.lab-agt-page .lab-agt-kpi__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 118px;
    padding: 14px 16px 12px;
    border-radius: 14px;
    border: 1px solid var(--lab-line, #e4e8e1);
    background: var(--lab-panel, #fff);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(18, 32, 58, 0.03);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

a.lab-agt-kpi__card:hover {
    border-color: rgba(23, 59, 66, 0.22);
    background: #fafbf8;
    box-shadow: 0 6px 18px rgba(18, 32, 58, 0.06);
}

body.lab-agt-page .lab-agt-kpi__card--mix {
    background: linear-gradient(160deg, rgba(221, 237, 173, 0.4), #fff 72%);
}

body.lab-agt-page .lab-agt-kpi__label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--lab-muted, #6b7280);
}

body.lab-agt-page .lab-agt-kpi__value {
    margin: 4px 0 0;
    font-family: 'Unbounded', 'Manrope', sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--lab-ink, #173b42);
    line-height: 1.15;
}

body.lab-agt-page .lab-agt-kpi__value--sm {
    font-size: 1.05rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

body.lab-agt-page .lab-agt-kpi__hint {
    margin: auto 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--lab-muted, #6b7280);
}

body.lab-agt-page .lab-agt-regions {
    margin: 0 0 28px;
    padding: 16px 16px 12px;
    border-radius: 16px;
    border: 1px solid var(--lab-line, #e4e8e1);
    background: var(--lab-panel, #fff);
}

body.lab-agt-page .lab-agt-regions__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 12px;
}

body.lab-agt-page .lab-agt-regions__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lab-ink, #173b42);
}

body.lab-agt-page .lab-agt-regions__sub {
    margin: 0;
    max-width: 36rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--lab-muted, #6b7280);
}

body.lab-agt-page .lab-agt-regions__seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(23, 59, 66, 0.06);
}

body.lab-agt-page .lab-agt-regions__seg button {
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--lab-muted, #6b7280);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

body.lab-agt-page .lab-agt-regions__seg button:hover {
    color: var(--lab-ink, #173b42);
}

body.lab-agt-page .lab-agt-regions__seg button.is-active {
    background: #fff;
    color: var(--lab-ink, #173b42);
    box-shadow: 0 1px 2px rgba(18, 32, 58, 0.08);
}

body.lab-agt-page .lab-agt-regions__table-wrap {
    overflow-x: auto;
}

body.lab-agt-page .lab-agt-regions__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

body.lab-agt-page .lab-agt-regions__table th,
body.lab-agt-page .lab-agt-regions__table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--lab-line, #e4e8e1);
    vertical-align: middle;
}

body.lab-agt-page .lab-agt-regions__table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lab-muted, #6b7280);
}

body.lab-agt-page .lab-agt-regions__table td:nth-child(2),
body.lab-agt-page .lab-agt-regions__table td:nth-child(3),
body.lab-agt-page .lab-agt-regions__table td:nth-child(4),
body.lab-agt-page .lab-agt-regions__table th:nth-child(2),
body.lab-agt-page .lab-agt-regions__table th:nth-child(3),
body.lab-agt-page .lab-agt-regions__table th:nth-child(4) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body.lab-agt-page .lab-agt-regions__name {
    font-weight: 650;
    color: var(--lab-ink, #173b42);
}

body.lab-agt-page .lab-agt-regions__empty {
    text-align: center !important;
    color: var(--lab-muted, #6b7280);
    padding: 22px 12px !important;
}

body.lab-agt-page .lab-agt-regions__foot {
    margin: 12px 0 0;
    font-size: 0.82rem;
}

body.lab-agt-page .lab-agt-regions__foot a {
    color: var(--lab-agt-accent);
    text-decoration: none;
    font-weight: 650;
    transition: opacity 160ms ease;
}

body.lab-agt-page .lab-agt-regions__foot a:hover {
    opacity: 0.8;
}

@media (max-width: 960px) {
    body.lab-agt-page .lab-agt-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.lab-agt-page .lab-agt-kpi {
        grid-template-columns: 1fr;
    }
}

/* —— LAB Agent regions list —— */
body.lab-agt-regions-page .lab-agt-reg-lead {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: var(--lab-muted, #6b7280);
    line-height: 1.4;
}

body.lab-agt-regions-page .lab-agt-reg-lead strong {
    color: var(--lab-ink, #173b42);
    font-weight: 700;
}

body.lab-agt-regions-page .lab-agt-reg-connect-wrap {
    display: inline-flex;
}

body.lab-agt-regions-page .lab-agt-reg-connect-wrap .lab-svc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.lab-agt-regions-page .lab-agt-reg-toolbar {
    margin: 0 0 12px;
}

body.lab-agt-regions-page .lab-agt-reg-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 420px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--lab-line, #e4e8e1);
    border-radius: 12px;
    background: #fff;
    color: var(--lab-muted, #6b7280);
}

body.lab-agt-regions-page .lab-agt-reg-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    color: var(--lab-ink, #173b42);
}

body.lab-agt-regions-page .lab-agt-reg-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--lab-line, #e4e8e1);
    border-radius: 14px;
    background: #fff;
}

body.lab-agt-regions-page .lab-agt-reg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

body.lab-agt-regions-page .lab-agt-reg-table th,
body.lab-agt-regions-page .lab-agt-reg-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--lab-line, #e4e8e1);
    vertical-align: middle;
}

body.lab-agt-regions-page .lab-agt-reg-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lab-muted, #6b7280);
    background: rgba(250, 251, 247, 0.9);
}

body.lab-agt-regions-page .lab-agt-reg-table tr:last-child td {
    border-bottom: 0;
}

body.lab-agt-regions-page .lab-agt-reg-name {
    font-weight: 650;
    color: var(--lab-ink, #173b42);
}

body.lab-agt-regions-page .lab-agt-reg-num {
    font-variant-numeric: tabular-nums;
}

body.lab-agt-regions-page .lab-agt-reg-empty {
    text-align: center !important;
    color: var(--lab-muted, #6b7280);
    padding: 28px 14px !important;
}

body.lab-agt-regions-page .lab-agt-reg-actions {
    white-space: nowrap;
}

body.lab-agt-regions-page .lab-svc-pager {
    margin-top: 14px;
}

/* Connect / confirm POP */
body.lab-agt-regions-page .lab-agt-reg-pop {
    position: fixed;
    inset: 0;
    z-index: 52000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 32, 58, 0.42);
}

body.lab-agt-regions-page .lab-agt-reg-pop[hidden] {
    display: none !important;
}

body.lab-agt-regions-page .lab-agt-reg-pop__card {
    width: 100%;
    max-width: 440px;
    padding: 20px 20px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 59, 66, 0.1);
    background: #fff;
    box-shadow: 0 16px 48px rgba(18, 32, 58, 0.18);
    color: var(--lab-ink, #173b42);
}

body.lab-agt-regions-page .lab-agt-reg-pop__card--sm {
    max-width: 380px;
}

body.lab-agt-regions-page .lab-agt-reg-pop__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

body.lab-agt-regions-page .lab-agt-reg-pop__head h2,
body.lab-agt-regions-page .lab-agt-reg-pop__card--sm > h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.lab-agt-regions-page .lab-agt-reg-pop__close {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--lab-muted, #6b7280);
    cursor: pointer;
    padding: 0 4px;
}

body.lab-agt-regions-page .lab-agt-reg-pop__hint {
    margin: 0 0 14px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--lab-muted, #6b7280);
}

body.lab-agt-regions-page .lab-agt-reg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--lab-ink, #173b42);
}

body.lab-agt-regions-page .lab-agt-reg-field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(23, 59, 66, 0.16);
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    color: var(--lab-ink, #173b42);
}

body.lab-agt-regions-page .lab-agt-reg-stats {
    margin: 4px 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(250, 251, 247, 0.95);
    border: 1px solid var(--lab-line, #e4e8e1);
}

body.lab-agt-regions-page .lab-agt-reg-stats__intro {
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: var(--lab-muted, #6b7280);
}

body.lab-agt-regions-page .lab-agt-reg-stats__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.86rem;
    padding: 4px 0;
}

body.lab-agt-regions-page .lab-agt-reg-pop__err {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid rgba(185, 28, 28, 0.22);
    color: #7f1d1d;
    font-size: 0.84rem;
}

body.lab-agt-regions-page .lab-agt-reg-pop__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}
/* —— LAB Agent companies —— */
body.lab-agt-companies-page .lab-agt-co-lead {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: var(--lab-muted, #6b7280);
    line-height: 1.4;
}
body.lab-agt-companies-page .lab-agt-co-toolbar { margin: 0 0 12px; }
body.lab-agt-companies-page .lab-agt-co-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 420px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--lab-line, #e4e8e1);
    border-radius: 12px;
    background: #fff;
    color: var(--lab-muted, #6b7280);
}
body.lab-agt-companies-page .lab-agt-co-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    color: var(--lab-ink, #173b42);
}
body.lab-agt-companies-page .lab-agt-co-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--lab-line, #e4e8e1);
    border-radius: 14px;
    background: #fff;
}
body.lab-agt-companies-page .lab-agt-co-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
body.lab-agt-companies-page .lab-agt-co-table th,
body.lab-agt-companies-page .lab-agt-co-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--lab-line, #e4e8e1);
    vertical-align: top;
}
body.lab-agt-companies-page .lab-agt-co-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lab-muted, #6b7280);
    background: rgba(250, 251, 247, 0.9);
}
body.lab-agt-companies-page .lab-agt-co-table tr:last-child td { border-bottom: 0; }
body.lab-agt-companies-page .lab-agt-co-name {
    font-weight: 650;
    color: var(--lab-ink, #173b42);
}
body.lab-agt-companies-page .lab-agt-co-empty {
    text-align: center !important;
    color: var(--lab-muted, #6b7280);
    padding: 28px 14px !important;
}
body.lab-agt-companies-page .lab-agt-co-actions { white-space: nowrap; }
body.lab-agt-companies-page .lab-agt-co-limits {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--lab-ink, #173b42);
}
body.lab-agt-companies-page .lab-agt-co-limits span { color: var(--lab-muted, #6b7280); }
body.lab-agt-companies-page .lab-agt-co-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 650;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}
body.lab-agt-companies-page .lab-agt-co-badge--ok {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1b5e20;
}
body.lab-agt-companies-page .lab-agt-co-badge--off {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}
body.lab-agt-companies-page .lab-svc-pager { margin-top: 14px; }

body.lab-agt-companies-page .lab-agt-co-pop {
    position: fixed;
    inset: 0;
    z-index: 52000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 32, 58, 0.42);
}
body.lab-agt-companies-page .lab-agt-co-pop[hidden] { display: none !important; }
body.lab-agt-companies-page .lab-agt-co-pop__card {
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 900px);
    overflow: auto;
    padding: 20px 20px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 59, 66, 0.1);
    background: #fff;
    box-shadow: 0 16px 48px rgba(18, 32, 58, 0.18);
    color: var(--lab-ink, #173b42);
}
body.lab-agt-companies-page .lab-agt-co-pop__card--wide { max-width: 640px; }
body.lab-agt-companies-page .lab-agt-co-pop__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
body.lab-agt-companies-page .lab-agt-co-pop__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
body.lab-agt-companies-page .lab-agt-co-pop__close {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--lab-muted, #6b7280);
    cursor: pointer;
    padding: 0 4px;
}
body.lab-agt-companies-page .lab-agt-co-pop__hint {
    margin: 0 0 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--lab-muted, #6b7280);
}
body.lab-agt-companies-page .lab-agt-co-pop__hint--tight { margin-bottom: 8px; }
body.lab-agt-companies-page .lab-agt-co-pop__err {
    margin: 8px 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid rgba(185, 28, 28, 0.22);
    color: #7f1d1d;
    font-size: 0.84rem;
}
body.lab-agt-companies-page .lab-agt-co-pop__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}
body.lab-agt-companies-page .lab-agt-co-pick-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 8px;
}
body.lab-agt-companies-page .lab-agt-co-pick-filters select,
body.lab-agt-companies-page .lab-agt-co-pick-search {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(23, 59, 66, 0.16);
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    background: #fff;
    color: var(--lab-ink, #173b42);
}
body.lab-agt-companies-page .lab-agt-co-pick-search { margin: 0 0 10px; }
body.lab-agt-companies-page .lab-agt-co-pick-list {
    max-height: 48vh;
    overflow: auto;
    margin: 4px 0 0;
}
body.lab-agt-companies-page .lab-agt-co-pick-empty {
    margin: 12px 0;
    font-size: 0.88rem;
    color: var(--lab-muted, #6b7280);
}
body.lab-agt-companies-page .lab-agt-co-pick-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    border: 1px solid var(--lab-line, #e4e8e1);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 8px;
    cursor: pointer;
    font: inherit;
    color: var(--lab-ink, #173b42);
    transition: background 160ms ease, border-color 160ms ease;
}
body.lab-agt-companies-page .lab-agt-co-pick-row:hover {
    background: rgba(250, 251, 247, 0.95);
    border-color: rgba(23, 59, 66, 0.22);
}
body.lab-agt-companies-page .lab-agt-co-pick-row.is-selected {
    border-color: var(--lab-ink, #173b42);
    background: rgba(23, 59, 66, 0.06);
}
body.lab-agt-companies-page .lab-agt-co-pick-row:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
body.lab-agt-companies-page .lab-agt-co-pick-logo,
body.lab-agt-companies-page .lab-agt-co-pick-logo-ph {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}
body.lab-agt-companies-page .lab-agt-co-pick-logo {
    object-fit: cover;
    background: #e8eef2;
}
body.lab-agt-companies-page .lab-agt-co-pick-logo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9e6ee;
    color: #5a6d78;
    font-size: 16px;
    font-weight: 600;
}
body.lab-agt-companies-page .lab-agt-co-pick-body { min-width: 0; flex: 1; }
body.lab-agt-companies-page .lab-agt-co-pick-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
body.lab-agt-companies-page .lab-agt-co-pick-rating {
    font-size: 12px;
    color: #b45309;
    white-space: nowrap;
}
body.lab-agt-companies-page .lab-agt-co-pick-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
body.lab-agt-companies-page .lab-agt-co-pick-badge {
    display: inline-block;
    font-size: 11px;
    line-height: 1.3;
    padding: 2px 7px;
    border-radius: 8px;
    background: #eef2f0;
    color: #2d4a5c;
    border: 1px solid #d5ddd8;
}
body.lab-agt-companies-page .lab-agt-co-pick-badge.is-overlap {
    background: #e3f7ea;
    border-color: #a5d6a7;
    color: #1b5e20;
}
body.lab-agt-companies-page .lab-agt-co-pick-badge.is-slot {
    background: #fff8e1;
    border-color: #ffe082;
    color: #8d6e00;
}
body.lab-agt-companies-page .lab-agt-co-pick-badge.is-pool-ok {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}
body.lab-agt-companies-page .lab-agt-co-pick-badge.is-pool-tight {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #e65100;
}
body.lab-agt-companies-page .lab-agt-co-pick-badge.is-pool-fail {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
}
body.lab-agt-companies-page .lab-agt-co-pick-badge.is-score {
    background: #eef2ff;
    border-color: #c5cae9;
    color: #3949ab;
}
body.lab-agt-companies-page .lab-agt-co-pick-meta {
    font-size: 12px;
    color: #5a6d78;
    margin-top: 4px;
    line-height: 1.4;
}
body.lab-agt-companies-page .lab-agt-co-pick-divider {
    margin: 14px 0 10px;
    border: 0;
    border-top: 1px solid var(--lab-line, #e4e8e1);
}
body.lab-agt-companies-page .lab-agt-co-lim-company {
    margin: 0 0 12px;
    font-size: 0.92rem;
    font-weight: 650;
}
body.lab-agt-companies-page .lab-agt-co-stepper__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--lab-line, #e4e8e1);
    font-size: 0.86rem;
}
body.lab-agt-companies-page .lab-agt-co-stepper__row:last-child { border-bottom: 0; }
body.lab-agt-companies-page .lab-agt-co-stepper__label { line-height: 1.35; }
body.lab-agt-companies-page .lab-agt-co-stepper__used {
    font-size: 0.75rem;
    color: var(--lab-muted, #6b7280);
    margin-top: 4px;
}
body.lab-agt-companies-page .lab-agt-co-stepper__ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
body.lab-agt-companies-page .lab-agt-co-step {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(23, 59, 66, 0.2);
    background: #fff;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--lab-ink, #173b42);
    padding: 0;
    transition: background 160ms ease;
}
body.lab-agt-companies-page .lab-agt-co-step:hover { background: rgba(23, 59, 66, 0.06); }
body.lab-agt-companies-page .lab-agt-co-step:disabled { opacity: 0.45; cursor: not-allowed; }
body.lab-agt-companies-page .lab-agt-co-stepper__ctrl input {
    width: 5ch;
    min-width: 5ch;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.86rem;
    border-radius: 8px;
    border: 1px solid rgba(23, 59, 66, 0.16);
    -moz-appearance: textfield;
}
body.lab-agt-companies-page .lab-agt-co-stepper__ctrl input::-webkit-outer-spin-button,
body.lab-agt-companies-page .lab-agt-co-stepper__ctrl input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
@media (max-width: 560px) {
    body.lab-agt-companies-page .lab-agt-co-pick-filters { grid-template-columns: 1fr; }
}
