.gcb-services {
    display: grid;
    gap: 12px;
    color: #e5e7eb;
}

.gcb-services__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gcb-services__title {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.gcb-services__controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gcb-services__filters {
    display: flex;
    gap: 6px;
}

.gcb-services__chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.gcb-services__chip.is-active {
    border-color: var(--gcb-accent, #22d3ee);
    background: rgba(14, 165, 233, 0.14);
}

.gcb-services__search {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    padding: 6px 10px;
    border-radius: 10px;
}

.gcb-services__search-wrap {
    position: relative;
}

.gcb-services__fake {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 1px;
    width: 1px;
    left: -9999px;
    top: 0;
}

.gcb-services__button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.gcb-services__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.gcb-services__button--ghost {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.gcb-services__grid {
    display: grid;
    grid-template-columns: minmax(220px, var(--gcb-services-left, 1fr)) minmax(12px, 20px) minmax(320px, 1fr);
    column-gap: 0;
    min-height: 380px;
    align-items: stretch;
}

.gcb-services__panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.gcb-services__panel-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.gcb-services__list {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    flex: 1;
    min-height: 0;
}

.gcb-services__info {
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 4px 2px 6px;
}

.gcb-services__row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr;
    gap: 6px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.gcb-services__row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.gcb-services__row.is-selected {
    background: rgba(14, 165, 233, 0.12);
    border-left: 2px solid var(--gcb-accent, #22d3ee);
}

.gcb-services__unit {
    font-weight: 700;
    font-size: 0.92rem;
}

.gcb-services__desc {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.gcb-services__state {
    justify-self: end;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.gcb-services__state.is-ok {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.16);
}

.gcb-services__state.is-bad {
    color: #f87171;
    background: rgba(248, 113, 113, 0.16);
}

.gcb-services__state.is-warn {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.16);
}

.gcb-services__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    align-items: center;
}

.gcb-services__detail {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
}

.gcb-services__detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    font-size: 0.92rem;
}

.gcb-services__detail-row span:first-child {
    color: #cbd5e1;
}

.gcb-services__log-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.gcb-services__logs {
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    padding: 10px;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    min-height: 160px;
    max-height: 260px;
    overflow: auto;
    flex: 1;
    color: #e5e7eb;
}

.gcb-services__muted {
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 8px 4px;
}



@media (max-width: 900px) {
    .gcb-services__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    

    .gcb-services__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .gcb-services__state {
        justify-self: start;
    }

    .gcb-services__detail-row {
        grid-template-columns: 1fr;
    }
}


.gcb-services__divider {
    width: 100%;
    cursor: col-resize;
    background: transparent;
    height: 100%;
}
