/* Explore Services — compact layout (/Client/Services/Explore) */

.services-frame--explore {
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 32px;
    background: #fff;
    min-height: auto;
}

.svc-explore-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* —— Slim page header (no large hero) —— */
.svc-explore-header {
    margin-bottom: 10px;
}

.svc-explore-header__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--colors-primary-600, #372a58);
    font-size: 0.8125rem;
    font-weight: 600 !important;
    text-decoration: none;
    transition: background 0.15s ease;
}

.svc-explore-header__back:hover {
    background: var(--colors-primary-50, #f3f2f6);
}

[dir="rtl"] .svc-explore-header__back svg {
    transform: scaleX(-1);
}

.svc-explore-header__title {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", Helvetica, sans-serif;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--colors-primary-600, #372a58) !important;
}

.svc-explore-header__subtitle {
    margin: 2px 0 0;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #6b7280 !important;
}

/* —— Workspace: filters + table in one card —— */
.svc-explore-hub {
    width: 100%;
    gap: 0;
}

.svc-explore-workspace {
    background: #fff;
    border: 1px solid #e8e4f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(55, 42, 88, 0.06);
    overflow: hidden;
}

.svc-explore-hub__toolbar {
    padding: 12px 14px 8px;
    border-bottom: 1px solid #f0ecf5;
    background: #faf9fc;
}

.svc-explore-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}

.svc-explore-search {
    position: relative;
    flex: 1 1 200px;
    min-width: 160px;
    overflow: hidden;
}

.svc-explore-search__icon {
    position: absolute;
    inset-inline-start: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
}

.svc-explore-search__input {
    width: 100%;
    min-height: 36px;
    height: 36px;
    box-sizing: border-box;
    padding: 8px 12px 8px 34px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-family: "IBM Plex Sans Arabic", Helvetica, sans-serif;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    color: #111;
}

[dir="rtl"] .svc-explore-search__input {
    padding: 8px 34px 8px 12px;
}

.svc-explore-search__input:focus {
    outline: none;
    border-color: rgba(106, 93, 139, 0.45);
    box-shadow: 0 0 0 2px rgba(106, 93, 139, 0.1);
}

/* Filter dropdowns — single native select (no custom-select overlay) */
.svc-explore-filter-select {
    flex: 0 1 auto;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
}

.svc-explore-filter-select__label {
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.svc-explore-filter-select__input {
    width: 100%;
    min-height: 36px;
    height: 36px;
    box-sizing: border-box;
    min-width: 140px;
    padding: 8px 32px 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236a5d8b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: "IBM Plex Sans Arabic", Helvetica, sans-serif;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #111;
    appearance: none;
    cursor: pointer;
    line-height: 1.2;
}

[dir="rtl"] .svc-explore-filter-select__input {
    padding: 8px 10px 8px 32px;
    background-position: left 10px center;
}

.svc-explore-filter-select__input:focus {
    outline: none;
    border-color: rgba(106, 93, 139, 0.45);
    box-shadow: 0 0 0 2px rgba(106, 93, 139, 0.1);
}

#client-services-explore-page .client-custom-select__trigger {
    display: none !important;
}

#client-services-explore-page select.client-select-native--hidden {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    clip: auto !important;
    pointer-events: auto !important;
}

.svc-explore-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-self: flex-end;
}

.svc-explore-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    box-sizing: border-box;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e8e4ef;
    background: #fff;
    color: #4b5563;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.svc-explore-chip--active {
    background: var(--colors-primary-500, #6a5d8b);
    border-color: transparent;
    color: #fff;
}

.svc-explore-clear {
    align-self: flex-end;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: var(--colors-primary-600, #372a58);
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    white-space: nowrap;
}

/* —— Table (dense) —— */
.svc-explore-table-panel {
    position: relative;
    width: 100%;
}

.svc-explore-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.svc-explore-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-family: "IBM Plex Sans Arabic", Helvetica, sans-serif;
}

.svc-explore-table__th {
    padding: 8px 12px;
    text-align: start;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #6b7280 !important;
    background: #f5f3f8;
    border-bottom: 1px solid #e8e4f0;
    white-space: nowrap;
}

.svc-explore-table__th--providers {
    width: 200px;
    min-width: 180px;
    text-align: start;
}

.svc-explore-table__th--actions {
    width: 168px;
    text-align: end;
}

.svc-explore-table__row:hover {
    background: #faf9fc;
}

.svc-explore-table__td {
    padding: 8px 12px;
    vertical-align: middle;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f0ecf5;
}

.svc-explore-table__td--providers {
    text-align: start;
    overflow: visible;
    vertical-align: middle;
}

.svc-explore-table__row {
    position: relative;
}

.svc-explore-providers {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.svc-explore-providers--empty {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.svc-explore-providers__avatars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.svc-explore-providers__avatar {
    display: block;
    width: 32px;
    height: 32px;
    margin-inline-start: -4px;
    flex-shrink: 0;
    overflow: visible;
    transition: transform 0.12s ease;
}

.svc-explore-providers__avatars .svc-explore-providers__avatar:first-child {
    margin-inline-start: 0;
}

.svc-explore-providers__avatar:hover,
.svc-explore-providers__avatar:focus-visible {
    transform: translateY(-2px);
    z-index: 2;
}

.svc-explore-providers__avatar:hover .svc-explore-providers__avatar-ring,
.svc-explore-providers__avatar:focus-visible .svc-explore-providers__avatar-ring {
    box-shadow: 0 0 0 2px var(--colors-primary-400, #9b8fb8);
}

/* Partner tooltip — fixed layer (avoids table overflow clipping) */
.svc-explore-tip-float {
    position: fixed;
    z-index: 100060;
    max-width: 260px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #372a58 0%, #5c4f82 100%);
    color: #fff;
    font-family: "IBM Plex Sans Arabic", Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    pointer-events: none;
    box-shadow:
        0 6px 20px rgba(55, 42, 88, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
    animation: svc-explore-tip-in 0.15s ease;
    transform: translate(-50%, -100%);
}

.svc-explore-tip-float::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

.svc-explore-tip-float:not(.svc-explore-tip-float--below)::after {
    bottom: -11px;
    border-top-color: #372a58;
}

.svc-explore-tip-float--below::after {
    top: -11px;
    border-bottom-color: #372a58;
}

@keyframes svc-explore-tip-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.svc-explore-tip-float--below {
    transform: translate(-50%, 0) !important;
}

.svc-explore-providers__avatar-ring {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e8e4ef;
}

.svc-explore-providers__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-explore-providers__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 50%;
    background: var(--colors-primary-50, #f3f2f6);
    color: var(--colors-primary-600, #372a58);
    font-size: 0.6875rem;
    font-weight: 700;
    margin-inline-start: -4px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e8e4ef;
}

.svc-explore-providers__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

.svc-explore-providers__names {
    display: block;
    font-size: 0.6875rem;
    color: #6b7280;
    line-height: 1.3;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: start;
}

.svc-explore-providers__toggle {
    display: inline;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    /* Override Shared/typography.css button { font-size: base; font-weight: bold } */
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    color: var(--colors-primary-500, #6a5d8b);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: start;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.svc-explore-providers__toggle:hover {
    color: var(--colors-primary-600, #372a58);
}

.svc-explore-providers__toggle[aria-expanded="true"] {
    color: var(--colors-primary-600, #372a58);
}

/* Inline partners panel (expand row) */
.svc-explore-table__expand-row {
    background: #faf9fc;
}

.svc-explore-table__expand-cell {
    padding: 0 !important;
    border-bottom: 1px solid #e8e4f0 !important;
}

.svc-explore-partners-panel {
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, #faf9fc 0%, #fff 100%);
    border-top: 1px solid #ece8f2;
}

.svc-explore-partners-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.svc-explore-partners-panel__title {
    margin: 0;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: var(--colors-primary-600, #372a58) !important;
}

.svc-explore-partners-panel__hide {
    display: inline;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    color: var(--colors-primary-500, #6a5d8b);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.svc-explore-partners-panel__hide:hover {
    color: var(--colors-primary-600, #372a58);
}

.svc-explore-partners-panel__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #6b7280;
    font-size: 0.8125rem;
}

.svc-explore-partners-panel__empty {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8125rem;
}

.svc-explore-partners-panel__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 93, 139, 0.45) #ece8f2;
}

.svc-explore-partners-panel__scroll::-webkit-scrollbar {
    height: 6px;
}

.svc-explore-partners-panel__scroll::-webkit-scrollbar-track {
    background: #ece8f2;
    border-radius: 999px;
}

.svc-explore-partners-panel__scroll::-webkit-scrollbar-thumb {
    background: rgba(106, 93, 139, 0.45);
    border-radius: 999px;
}

.svc-explore-partners-panel__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: max-content;
    min-width: min(100%, max-content);
    padding-bottom: 2px;
}

.svc-explore-partner-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ece8f2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(55, 42, 88, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.svc-explore-partner-card:hover {
    border-color: rgba(106, 93, 139, 0.35);
    box-shadow: 0 4px 14px rgba(55, 42, 88, 0.1);
}

.svc-explore-partner-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ece8f2;
    background: #f3f2f6;
}

.svc-explore-partner-card__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.svc-explore-partner-card__name {
    margin: 0;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    line-height: 1.3;
    word-break: break-word;
}

.svc-explore-partner-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.svc-explore-partner-card__tier {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f2f6;
    color: var(--colors-primary-600, #372a58);
    font-size: 0.625rem;
    font-weight: 600 !important;
}

.svc-explore-partner-card__rating {
    font-size: 0.6875rem;
    color: #6b7280;
    font-weight: 500;
}

.svc-explore-partner-card__link {
    font-size: 0.6875rem;
    font-weight: 600 !important;
    color: var(--colors-primary-500, #6a5d8b);
    text-decoration: none;
    margin-top: 2px;
}

.svc-explore-partner-card__link:hover {
    text-decoration: underline;
}

.svc-explore-table__td--actions {
    text-align: end;
}

.svc-explore-table__service {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.svc-explore-table__thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ece8f2;
}

.svc-explore-table__name {
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    color: var(--colors-primary-600, #372a58);
    line-height: 1.3;
}

.svc-explore-table__desc {
    margin: 0;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.svc-explore-table__badge {
    display: inline-flex;
    min-width: 1.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--colors-primary-500, #6a5d8b);
    color: #fff;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    justify-content: center;
}

.svc-explore-table__badge--zero {
    background: #f3f2f6;
    color: #9ca3af;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
}

.svc-explore-table__service-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.svc-explore-table__category {
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    color: #8b7b9e;
    line-height: 1.25;
}

.svc-explore-providers--single {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.svc-explore-providers--single .svc-explore-providers__avatar {
    margin-inline-start: 0;
    flex-shrink: 0;
}

.svc-explore-providers--single .svc-explore-providers__meta {
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
    width: auto;
}

.svc-explore-providers--single .svc-explore-providers__names {
    max-width: 100%;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.svc-explore-providers__names--link {
    color: inherit;
    text-decoration: none;
}

.svc-explore-providers__names--link:hover {
    color: var(--colors-primary-600, #372a58);
    text-decoration: underline;
}

.svc-explore-providers__rating {
    font-size: 0.625rem !important;
    color: #6b7280;
}

.svc-explore-table__actions {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end;
}

.svc-explore-table__actions--single {
    justify-content: flex-start;
}

.svc-explore-table__btn {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.svc-explore-table__btn--create {
    border: none;
    background: var(--colors-primary-500, #6a5d8b);
    color: #fff;
}

.svc-explore-table__btn--view {
    border: 1px solid #e0dae8;
    background: #fff;
    color: var(--colors-primary-600, #372a58);
}

.svc-explore-table-loading,
.svc-explore-table-empty,
.svc-explore-no-match {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #6b7280;
}

.svc-explore-no-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.svc-explore-no-match[hidden] {
    display: none !important;
}

.svc-explore-no-match__btn {
    padding: 7px 14px;
    border: none;
    border-radius: 8px;
    background: var(--colors-primary-500, #6a5d8b);
    color: #fff;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.svc-explore-table-panel:not(.svc-explore-table-panel--data) .svc-explore-table-scroll {
    display: none;
}

.svc-explore-table-panel:not(.svc-explore-table-panel--loading) .svc-explore-table-loading {
    display: none;
}

/* Desktop: one-row toolbar — inputs share a baseline; labels sit above dropdowns */
@media (min-width: 901px) {
    .svc-explore-toolbar__row {
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .svc-explore-search {
        flex: 1 1 240px;
        min-width: 200px;
    }

    .svc-explore-filter-select {
        flex: 0 0 152px;
        width: 152px;
        min-width: 152px;
    }

    .svc-explore-chips {
        flex: 0 0 auto;
        align-self: flex-end;
        margin-inline-start: 4px;
    }

    .svc-explore-clear {
        flex: 0 0 auto;
        align-self: flex-end;
    }
}

@media (max-width: 900px) {
    .svc-explore-hub__toolbar {
        padding: 12px;
    }

    .svc-explore-toolbar__row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .svc-explore-search,
    .svc-explore-filter-select {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .svc-explore-chips {
        width: 100%;
        align-self: stretch;
        justify-content: flex-start;
        gap: 6px;
    }

    .svc-explore-clear {
        align-self: stretch;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .services-frame--explore {
        padding: 6px 12px 20px !important;
        overflow-x: hidden;
    }

    .svc-explore-header {
        margin-bottom: 12px;
    }

    .svc-explore-header__back {
        margin-bottom: 8px;
        font-size: 0.75rem;
    }

    .svc-explore-header__title {
        font-size: 1.0625rem !important;
        line-height: 1.3 !important;
    }

    .svc-explore-header__subtitle {
        font-size: 0.8125rem !important;
        line-height: 1.45 !important;
    }

    .svc-explore-workspace {
        border-radius: 10px;
    }

    .svc-explore-hub__toolbar {
        padding: 12px;
    }

    .svc-explore-toolbar__row {
        gap: 14px;
    }

    .svc-explore-search__input {
        min-height: 40px;
        font-size: 0.875rem !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .svc-explore-filter-select {
        gap: 3px;
    }

    .svc-explore-filter-select__label {
        font-size: 0.6875rem !important;
    }

    .svc-explore-filter-select__input {
        min-height: 40px;
        font-size: 0.875rem !important;
    }

    .svc-explore-chip {
        flex: 1 1 calc(50% - 3px);
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.75rem !important;
        text-align: center;
    }

    .svc-explore-clear {
        min-height: 40px;
        font-size: 0.75rem !important;
    }

    /* Results: card layout (no horizontal table scroll) */
    .svc-explore-table-scroll {
        overflow-x: visible;
    }

    .svc-explore-table {
        min-width: 0;
        width: 100%;
    }

    .svc-explore-table thead {
        display: none;
    }

    .svc-explore-table__row {
        display: block;
        padding: 12px;
        border-bottom: 1px solid #e8e4f0;
    }

    .svc-explore-table__row:last-child {
        border-bottom: none;
    }

    .svc-explore-table__td {
        display: block;
        padding: 10px 0 0;
        border: none;
        text-align: start !important;
    }

    .svc-explore-table__td--service {
        padding: 0 0 10px;
        margin-bottom: 2px;
        border-bottom: 1px solid #f0ecf5;
    }

    .svc-explore-table__td:not(.svc-explore-table__td--service)::before {
        content: attr(data-label);
        display: block;
        font-size: 0.625rem;
        font-weight: 700;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1.2;
        margin: 0 0 4px;
        padding: 0;
    }

    .svc-explore-table__td--providers {
        padding-top: 12px;
    }

    .svc-explore-table__td--actions {
        padding-top: 12px;
        margin-top: 0;
        border-top: 1px solid #f0ecf5;
    }

    .svc-explore-table__row--partners-open .svc-explore-table__td--actions {
        margin-top: 4px;
        padding-top: 14px;
    }

    .svc-explore-table__td--actions::before {
        margin-top: 0;
        margin-bottom: 4px;
    }

    .svc-explore-providers__toggle {
        margin-top: 2px;
    }

    /* Mobile: partners panel opens inside providers cell (before Actions) */
    .svc-explore-partners-panel--inline {
        margin-top: 12px;
        padding: 12px 0 0;
        background: transparent;
        border-top: 1px solid #ece8f2;
        border-radius: 0;
        box-shadow: none;
    }

    .svc-explore-partners-panel--inline .svc-explore-partners-panel__head {
        margin-bottom: 10px;
    }

    .svc-explore-partners-panel--inline .svc-explore-partners-panel__title {
        font-size: 0.875rem !important;
    }

    .svc-explore-partners-panel--inline .svc-explore-partners-panel__scroll {
        overflow: visible;
        padding-bottom: 0;
    }

    .svc-explore-partners-panel--inline .svc-explore-partners-panel__track {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .svc-explore-partners-panel--inline .svc-explore-partner-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .svc-explore-table__desc {
        -webkit-line-clamp: 3;
    }

    .svc-explore-providers {
        width: 100%;
    }

    .svc-explore-providers__names {
        max-width: 100%;
        white-space: normal;
    }

    .svc-explore-table__actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        justify-content: stretch;
    }

    .svc-explore-table__btn {
        flex: 1 1 auto;
        width: 100%;
        min-height: 40px;
        padding: 10px 14px;
        font-size: 0.75rem !important;
        text-align: center;
        box-sizing: border-box;
    }

    .svc-explore-partners-panel {
        padding: 12px;
    }

    .svc-explore-partners-panel__head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .svc-explore-partner-card {
        flex: 0 0 200px;
        width: 200px;
        max-width: min(200px, 85vw);
    }
}

@media (max-width: 480px) {
    .services-frame--explore {
        padding: 4px 10px 16px !important;
    }

    .svc-explore-hub__toolbar {
        padding: 10px;
    }

    .svc-explore-toolbar__row {
        gap: 12px;
    }

    .svc-explore-chip {
        flex: 1 1 100%;
    }

    .svc-explore-table__row {
        padding: 10px;
    }
}

@media (min-width: 1440px) {
    .services-frame--explore {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 28px 36px;
    }
}

@media (max-width: 1024px) {
    .services-frame--explore {
        padding: 8px 16px 28px;
    }
}
