.sync-status-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background-color: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.78);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.sync-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background-color: #adb5bd;
    box-shadow: 0 0 0 3px rgba(173,181,189,0.18);
}

.sync-status-pill.is-online .sync-status-dot {
    background-color: #55d274;
    box-shadow: 0 0 0 3px rgba(85,210,116,0.18);
}

.sync-status-pill.is-offline .sync-status-dot {
    background-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.18);
}

.sync-status-pill.is-server-down .sync-status-dot,
.sync-status-pill.is-db-error .sync-status-dot {
    background-color: #ff6b7a;
    box-shadow: 0 0 0 3px rgba(255,107,122,0.18);
}

.sync-pending-count {
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background-color: #ffc107;
    color: #23272b;
    font-size: 0.72rem;
    font-weight: 800;
}

a.sync-status-pill:hover,
a.sync-status-pill:focus {
    color: #fff;
    text-decoration: none;
    border-color: rgba(255,255,255,0.28);
}

.sync-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sync-summary-tile {
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sync-summary-label {
    display: block;
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sync-summary-tile strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.15;
}

.sync-summary-tile .sync-device-id {
    font-size: 0.95rem;
    word-break: break-all;
}

.sync-panel-table {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
}

.sync-panel-table thead th {
    border-top: 0;
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.sync-ref,
.sync-error {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .sync-status-pill {
        width: 32px;
        justify-content: center;
        padding: 5px;
    }

    .sync-status-pill .sync-status-text,
    .sync-status-pill .sync-pending-count {
        display: none !important;
    }
}
