﻿/* ================================================================
   SYNC DASHBOARD
   Premium Pastel Blue / Corporate Control Center
   ================================================================ */

.sync-page {
    --sync-bg: #f4f8fc;
    --sync-surface: #ffffff;
    --sync-surface-soft: #f8fafc;
    --sync-border: #e2e8f0;
    --sync-border-soft: #eef2f7;
    --sync-text: #0f172a;
    --sync-muted: #64748b;
    --sync-muted-soft: #94a3b8;
    --sync-blue: #3b82f6;
    --sync-blue-dark: #153286;
    --sync-blue-soft: #eff6ff;
    --sync-success: #10b981;
    --sync-success-soft: #ecfdf5;
    --sync-warning: #f59e0b;
    --sync-warning-soft: #fffbeb;
    --sync-danger: #ef4444;
    --sync-danger-soft: #fef2f2;
    --sync-purple: #8b5cf6;
    --sync-purple-soft: #f5f3ff;
    --sync-radius: 20px;
    --sync-radius-sm: 14px;
    --sync-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.025);
    --sync-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
    --sync-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.07);
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 20px 0 48px;
    color: var(--sync-text);
}


/* ================================================================
   HERO
   ================================================================ */

.sync-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #102a73 0%, #153286 42%, #1d4ed8 100% );
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(21, 50, 134, 0.14);
    margin-bottom: 22px;
    color: white;
    isolation: isolate;
}


/* ------------------------------------------------
   Decorative light spots
   ------------------------------------------------ */

.sync-hero__decor {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(1px);
    z-index: -1;
}


.sync-hero__decor--one {
    width: 390px;
    height: 390px;
    right: -170px;
    top: -240px;
    background: radial-gradient( circle, rgba(147, 197, 253, 0.28), transparent 68% );
}


.sync-hero__decor--two {
    width: 320px;
    height: 320px;
    left: 38%;
    bottom: -260px;
    background: radial-gradient( circle, rgba(196, 181, 253, 0.22), transparent 68% );
}


/* ------------------------------------------------
   Main area
   ------------------------------------------------ */

.sync-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 32px 26px;
}


.sync-hero__identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}


.sync-hero__icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    font-size: 31px;
    color: white;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09) );
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}


.sync-hero__heading {
    min-width: 0;
}


.sync-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.68);
}


.sync-live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}


    .sync-live-dot::after {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: inherit;
        border: 1px solid rgba(74, 222, 128, 0.6);
        animation: syncPulse 2s ease-out infinite;
    }


.sync-hero__heading h1 {
    margin: 0;
    color: white;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.035em;
}


.sync-hero__heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.55;
}


/* ================================================================
   HERO ACTIONS
   ================================================================ */

.sync-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}


.sync-btn {
    height: 44px;
    border: none;
    border-radius: 13px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}


    .sync-btn:disabled {
        opacity: 0.62;
        cursor: not-allowed;
        transform: none !important;
    }


.sync-btn--glass {
    color: white;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}


    .sync-btn--glass:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.16);
        transform: translateY(-1px);
    }


.sync-btn--primary {
    background: white;
    color: #153286;
    box-shadow: 0 8px 22px rgba(3, 16, 55, 0.18);
}


    .sync-btn--primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(3, 16, 55, 0.24);
    }


/* ================================================================
   HERO FOOTER
   ================================================================ */

.sync-hero__footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(4, 16, 57, 0.12);
}


.sync-hero-info {
    display: flex;
    align-items: center;
    gap: 10px;
}


.sync-hero-info__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.10);
}


.sync-hero-info > div:last-child {
    display: flex;
    flex-direction: column;
}


.sync-hero-info span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: rgba(255, 255, 255, 0.58);
}


.sync-hero-info strong {
    margin-top: 1px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}


.sync-hero-divider {
    width: 1px;
    height: 27px;
    background: rgba(255, 255, 255, 0.12);
}


.sync-overall--success {
    color: #86efac !important;
}


.sync-overall--warning {
    color: #fde68a !important;
}


.sync-overall--danger {
    color: #fca5a5 !important;
}


/* ================================================================
   KPIS
   ================================================================ */

.sync-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}


.sync-kpi {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 19px;
    border: 1px solid var(--sync-border);
    border-radius: var(--sync-radius);
    background: var(--sync-surface);
    box-shadow: var(--sync-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}


    .sync-kpi::after {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        right: -46px;
        bottom: -47px;
        border-radius: 999px;
        opacity: 0.5;
        transition: transform 0.3s ease;
    }


    .sync-kpi:hover {
        transform: translateY(-3px);
        box-shadow: var(--sync-shadow);
        border-color: #cbd5e1;
    }


        .sync-kpi:hover::after {
            transform: scale(1.15);
        }


.sync-kpi__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.sync-kpi__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 20px;
}


.sync-kpi__indicator {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #edf2f7;
}


.sync-kpi__value {
    margin-top: 16px;
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--sync-text);
}


.sync-kpi__label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 650;
    color: #334155;
}


.sync-kpi__footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 10px;
    color: var(--sync-muted);
}


/* BLUE */

.sync-kpi--blue .sync-kpi__icon {
    color: #2563eb;
    background: #eff6ff;
}


.sync-kpi--blue::after {
    background: #dbeafe;
}


/* DANGER */

.sync-kpi--danger .sync-kpi__icon {
    color: #dc2626;
    background: #fef2f2;
}


.sync-kpi--danger::after {
    background: #fee2e2;
}


/* WARNING */

.sync-kpi--warning .sync-kpi__icon {
    color: #d97706;
    background: #fffbeb;
}


.sync-kpi--warning::after {
    background: #fef3c7;
}


/* PURPLE */

.sync-kpi--purple .sync-kpi__icon {
    color: #7c3aed;
    background: #f5f3ff;
}


.sync-kpi--purple::after {
    background: #ede9fe;
}


/* ================================================================
   GENERIC PANEL
   ================================================================ */

.sync-panel {
    background: var(--sync-surface);
    border: 1px solid var(--sync-border);
    border-radius: 22px;
    box-shadow: var(--sync-shadow-sm);
    padding: 22px;
    margin-bottom: 22px;
}


.sync-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}


.sync-panel__title-group {
    display: flex;
    align-items: center;
    gap: 13px;
}


.sync-panel__icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 13px;
    font-size: 19px;
}


.sync-panel__icon--health {
    color: #2563eb;
    background: linear-gradient( 135deg, #eff6ff, #dbeafe );
}


.sync-panel__icon--history {
    color: #7c3aed;
    background: linear-gradient( 135deg, #f5f3ff, #ede9fe );
}


.sync-panel__title-group h2 {
    margin: 0;
    color: var(--sync-text);
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.02em;
}


.sync-panel__title-group p {
    margin: 3px 0 0;
    font-size: 11px;
    color: var(--sync-muted);
}


.sync-panel__count {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}


/* ================================================================
   HEALTH SUMMARY
   ================================================================ */

.sync-health-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}


.sync-health-summary__item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    font-size: 9px;
    color: var(--sync-muted);
}


    .sync-health-summary__item strong {
        color: #334155;
        font-size: 10px;
    }


.sync-health-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
}


.sync-health-dot--success {
    background: var(--sync-success);
}


.sync-health-dot--warning {
    background: var(--sync-warning);
}


.sync-health-dot--danger {
    background: var(--sync-danger);
}


/* ================================================================
   HEALTH GRID
   ================================================================ */

.sync-health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}


/* ================================================================
   HEALTH CARD
   ================================================================ */

.sync-health-card {
    position: relative;
    overflow: hidden;
    padding: 17px;
    border: 1px solid var(--sync-border);
    border-radius: 17px;
    background: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


    .sync-health-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
    }


.sync-health-card__accent {
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 6px 6px 0;
}


/* HEALTHY */

.sync-health-card--healthy:hover {
    border-color: #bbf7d0;
}


.sync-health-card--healthy
.sync-health-card__accent {
    background: var(--sync-success);
}


/* DEGRADED */

.sync-health-card--degraded {
    background: linear-gradient( 180deg, #ffffff, #fffdfa );
}


    .sync-health-card--degraded:hover {
        border-color: #fde68a;
    }


    .sync-health-card--degraded
    .sync-health-card__accent {
        background: var(--sync-warning);
    }


/* CRITICAL */

.sync-health-card--critical {
    background: linear-gradient( 180deg, #ffffff, #fffafa );
}


    .sync-health-card--critical:hover {
        border-color: #fecaca;
    }


    .sync-health-card--critical
    .sync-health-card__accent {
        background: var(--sync-danger);
    }


/* ================================================================
   HEALTH HEADER
   ================================================================ */

.sync-health-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-left: 3px;
}


.sync-entity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}


.sync-entity__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    color: #2563eb;
    background: #eff6ff;
}


.sync-entity__name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


    .sync-entity__name span {
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--sync-muted-soft);
    }


    .sync-entity__name strong {
        max-width: 180px;
        margin-top: 1px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 750;
        color: var(--sync-text);
    }


/* ================================================================
   HEALTH STATUS
   ================================================================ */

.sync-health-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.sync-health-status__dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
}


.sync-health-status--success {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}


.sync-health-status--warning {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fef3c7;
}


.sync-health-status--danger {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fee2e2;
}


/* ================================================================
   HEALTH METRICS
   ================================================================ */

.sync-health-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}


.sync-health-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}


.sync-health-metric__icon {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}


.sync-health-metric > div:last-child {
    display: flex;
    flex-direction: column;
}


.sync-health-metric span {
    font-size: 8px;
    color: var(--sync-muted);
}


.sync-health-metric strong {
    margin-top: 1px;
    font-size: 15px;
    font-weight: 750;
    color: var(--sync-text);
}


    .sync-health-metric strong small {
        font-size: 8px;
        font-weight: 500;
        color: var(--sync-muted);
    }


/* ================================================================
   LAST SUCCESS
   ================================================================ */

.sync-health-card__success {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #f8fafc;
}


.sync-health-card__success-icon {
    color: #10b981;
    font-size: 16px;
}


.sync-health-card__success > div:last-child {
    display: flex;
    flex-direction: column;
}


.sync-health-card__success span {
    font-size: 8px;
    color: var(--sync-muted);
}


.sync-health-card__success strong {
    margin-top: 1px;
    font-size: 10px;
    font-weight: 700;
    color: #334155;
}


/* ================================================================
   HEALTH FOOTER
   ================================================================ */

.sync-health-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}


.sync-health-card__hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8px;
    color: var(--sync-muted-soft);
}


.sync-entity-action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}


    .sync-entity-action:hover:not(:disabled) {
        background: #2563eb;
        border-color: #2563eb;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18);
    }


    .sync-entity-action:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }


/* ================================================================
   RUNS
   ================================================================ */

.sync-runs {
    overflow: hidden;
    border: 1px solid #edf2f7;
    border-radius: 15px;
}


.sync-runs__header,
.sync-run {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(110px, 0.7fr) minmax(150px, 0.9fr);
    align-items: center;
    column-gap: 15px;
}


.sync-runs__header {
    padding: 9px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    color: #64748b;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}


.sync-run {
    position: relative;
    min-height: 61px;
    padding: 9px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.18s ease;
}


    .sync-run:last-child {
        border-bottom: none;
    }


    .sync-run:hover {
        background: #fbfdff;
    }


/* ================================================================
   RUN ENTITY
   ================================================================ */

.sync-run__entity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}


.sync-run__entity-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 15px;
}


.sync-run__entity-icon--success {
    color: #15803d;
    background: #f0fdf4;
}


.sync-run__entity-icon--danger {
    color: #dc2626;
    background: #fef2f2;
}


.sync-run__entity-icon--warning {
    color: #d97706;
    background: #fffbeb;
}


.sync-run__entity-icon--blue {
    color: #2563eb;
    background: #eff6ff;
}


.sync-run__entity-icon--neutral {
    color: #64748b;
    background: #f8fafc;
}


.sync-run__entity > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.sync-run__entity span {
    font-size: 7px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.08em;
}


.sync-run__entity strong {
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
}


/* ================================================================
   RUN STATUS
   ================================================================ */

.sync-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
}


.sync-status__dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
}


.sync-status--success {
    color: #15803d;
    background: #f0fdf4;
}


.sync-status--danger {
    color: #b91c1c;
    background: #fef2f2;
}


.sync-status--warning {
    color: #b45309;
    background: #fffbeb;
}


.sync-status--running {
    color: #1d4ed8;
    background: #eff6ff;
}


.sync-status--neutral {
    color: #475569;
    background: #f1f5f9;
}


/* ================================================================
   RUN METRICS
   ================================================================ */

.sync-run__metric strong {
    font-size: 10px;
    font-weight: 700;
    color: #334155;
}


.sync-run__time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: #64748b;
}


.sync-run__mobile-label {
    display: none;
}


/* ================================================================
   EMPTY STATE
   ================================================================ */

.sync-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 20px;
    text-align: center;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}


.sync-empty__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 15px;
    color: #3b82f6;
    background: #eff6ff;
    font-size: 23px;
}


.sync-empty h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}


.sync-empty p {
    max-width: 420px;
    margin: 5px 0 0;
    font-size: 10px;
    line-height: 1.5;
    color: #94a3b8;
}


/* ================================================================
   SPINNERS
   ================================================================ */

.sync-btn-spinner {
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 999px;
    animation: syncSpin 0.7s linear infinite;
}


.sync-btn-spinner--dark {
    border-color: rgba(21, 50, 134, 0.18);
    border-top-color: #153286;
}


.sync-btn-spinner--blue {
    width: 12px;
    height: 12px;
    border-color: rgba(37, 99, 235, 0.20);
    border-top-color: #2563eb;
}


/* ================================================================
   SKELETONS
   ================================================================ */

.sync-loading-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}


.sync-skeleton-card {
    min-height: 130px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
}


.sync-skeleton-content {
    flex: 1;
}


.sync-skeleton {
    position: relative;
    overflow: hidden;
    background: #edf2f7;
    border-radius: 8px;
}


    .sync-skeleton::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.7), transparent );
        animation: syncSkeleton 1.4s infinite;
    }


.sync-skeleton--icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}


.sync-skeleton--small {
    width: 54%;
    height: 9px;
    margin-bottom: 13px;
}


.sync-skeleton--value {
    width: 35%;
    height: 30px;
}


.sync-skeleton-panel {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: white;
}


.sync-skeleton--title {
    width: 190px;
    height: 16px;
    margin-bottom: 20px;
}


.sync-skeleton-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.sync-skeleton--row {
    width: 100%;
    height: 58px;
    border-radius: 12px;
}


/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes syncSpin {
    to {
        transform: rotate(360deg);
    }
}


@keyframes syncPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.9);
        opacity: 0;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}


@keyframes syncSkeleton {
    100% {
        transform: translateX(100%);
    }
}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 1250px) {

    .sync-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sync-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 1050px) {

    .sync-hero__content {
        align-items: flex-start;
        flex-direction: column;
    }

    .sync-hero__actions {
        width: 100%;
    }

        .sync-hero__actions .sync-btn {
            flex: 1;
        }

    .sync-runs__header,
    .sync-run {
        grid-template-columns: minmax(170px, 1.4fr) 110px 100px 90px 130px;
    }
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 768px) {

    .sync-page {
        padding-top: 10px;
    }

    .sync-hero {
        border-radius: 18px;
    }

    .sync-hero__content {
        padding: 22px 18px;
    }

    .sync-hero__identity {
        align-items: flex-start;
    }

    .sync-hero__icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 23px;
    }

    .sync-hero__heading h1 {
        font-size: 22px;
    }

    .sync-hero__heading p {
        font-size: 11px;
    }

    .sync-hero__actions {
        flex-direction: column;
    }

        .sync-hero__actions .sync-btn {
            width: 100%;
        }

    .sync-hero__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
    }

    .sync-hero-divider {
        width: 100%;
        height: 1px;
    }

    .sync-kpis {
        grid-template-columns: 1fr;
    }

    .sync-health-grid {
        grid-template-columns: 1fr;
    }

    .sync-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .sync-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sync-health-summary {
        width: 100%;
        flex-wrap: wrap;
    }

    .sync-runs {
        border: none;
        overflow: visible;
    }

    .sync-runs__header {
        display: none;
    }

    .sync-run {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
        margin-bottom: 10px;
        padding: 14px;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px;
        min-height: auto;
    }

    .sync-run__entity {
        grid-column: 1 / -1;
    }

    .sync-run__metric,
    .sync-run__time {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .sync-run__mobile-label {
        display: block;
        font-size: 7px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
    }

    .sync-loading-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   VERY SMALL MOBILE
   ================================================================ */

@media (max-width: 480px) {

    .sync-hero__identity {
        flex-direction: column;
    }

    .sync-health-card__metrics {
        grid-template-columns: 1fr;
    }

    .sync-health-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .sync-entity-action {
        width: 100%;
        min-height: 38px;
    }

    .sync-run {
        grid-template-columns: 1fr;
    }

    .sync-run__entity {
        grid-column: auto;
    }
}
