.parent-management-container {
    min-width: 0;
}

.parent-management-container #parentDirectory.dt-compact .premium-table-container tr td,
.parent-management-container #parentDirectory.dt-compact .premium-table-container tr th {
    padding: 7px 10px !important;
}

.parent-management-container #parentDirectory .btn-table-action {
    width: 29px;
    height: 29px;
    border-radius: 8px;
}

.parent-directory-person,
.parent-directory-actions {
    display: flex;
    align-items: center;
}

.parent-directory-person {
    gap: 9px;
}

.parent-directory-actions {
    gap: 5px;
}

.parent-directory-avatar {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: var(--primary-alpha);
    color: var(--primary);
}

.parent-dialog-card,
.parent-profile-modal-card,
.parent-cleanup-modal-card {
    display: flex;
    max-height: calc(100vh - 32px);
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden !important;
    text-align: left !important;
}

.parent-dialog-card > div:first-child,
.parent-cleanup-modal-card > div:first-child {
    padding: 17px 22px !important;
}

.parent-dialog-body {
    min-height: 0;
    padding: 20px 22px !important;
}

.parent-profile-modal-card > div:first-child {
    padding: 17px 22px !important;
}

.parent-profile-modal-body {
    min-height: 0;
    padding: 0 !important;
    background: #f6f8fc;
}

.parent-profile-shell {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.parent-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 40%), #fff;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07);
}

.parent-profile-identity,
.parent-profile-hero-actions,
.parent-profile-meta,
.parent-access-actions {
    display: flex;
    align-items: center;
}

.parent-profile-identity {
    min-width: 0;
    gap: 13px;
}

.parent-profile-avatar {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.23);
    font-size: 17px;
    font-weight: 900;
}

.parent-profile-kicker,
.parent-profile-detail-grid small,
.parent-access-row small {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parent-profile-kicker {
    color: #2563eb;
}

.parent-profile-hero h2 {
    margin: 2px 0 4px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.parent-profile-meta {
    flex-wrap: wrap;
    gap: 6px 12px;
}

.parent-profile-meta span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.parent-profile-hero-actions,
.parent-access-actions {
    gap: 7px;
}

.parent-profile-hero-actions button,
.parent-access-actions button,
.parent-students-card header button {
    min-height: 36px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
}

.parent-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 16px;
}

.parent-profile-stack {
    display: grid;
    align-content: start;
    gap: 16px;
}

.parent-profile-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.parent-profile-card > header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf2f7;
}

.parent-profile-card > header > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.parent-profile-card > header i {
    color: #2563eb;
    font-size: 16px;
}

.parent-profile-card > header b {
    display: grid;
    min-width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
}

.parent-profile-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #edf2f7;
}

.parent-profile-detail-grid > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 14px;
    background: #fff;
}

.parent-profile-detail-grid strong,
.parent-access-row strong {
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parent-access-status {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.parent-access-status.is-active {
    background: #ecfdf5;
    color: #059669;
}

.parent-access-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 13px 14px;
}

.parent-access-row > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.parent-access-actions {
    padding: 0 14px 14px;
}

.parent-access-empty {
    margin: 0;
    padding: 13px 14px 9px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.parent-access-card > .btn-premium {
    margin: 0 14px 14px;
}

.parent-icon-button {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
}

.parent-icon-button:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: #eff6ff;
    color: #2563eb;
}

.parent-student-list {
    display: grid;
    gap: 8px;
    max-height: 310px;
    overflow-y: auto;
    padding: 10px;
}

.parent-student-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.parent-student-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #ecfccb;
    color: #3f6212;
    font-size: 12px;
    font-weight: 900;
}

.parent-student-row > div:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.parent-student-row strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parent-student-row small {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parent-contact-whatsapp {
    color: #059669;
}

.parent-cleanup-modal-body {
    flex: 1;
    min-height: 0;
    max-height: none !important;
    padding: 0 !important;
    background: #f7f9fc;
}

.parent-cleanup-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    color: var(--text-primary, #0f172a);
}

.parent-cleanup-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 38%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 58%);
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.08);
}

.parent-cleanup-hero.is-clean {
    border-color: rgba(16, 185, 129, 0.22);
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 38%),
        linear-gradient(135deg, #ecfdf5 0%, #ffffff 58%);
}

.parent-cleanup-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.parent-cleanup-hero-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    font-size: 28px;
}

.parent-cleanup-hero.is-clean .parent-cleanup-hero-icon {
    background: linear-gradient(145deg, #10b981, #059669);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.22);
}

.parent-cleanup-kicker {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.parent-cleanup-hero h2,
.parent-cleanup-options h3 {
    margin: 0;
    color: #0f172a;
    font-family: var(--font-display);
    letter-spacing: 0;
    text-transform: capitalize;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.parent-cleanup-hero h2 {
    font-size: 22px;
}

.parent-cleanup-hero p {
    max-width: 570px;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.parent-health-score {
    display: flex;
    min-width: 140px;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 22px;
    border-left: 1px solid rgba(37, 99, 235, 0.18);
}

.parent-health-score span,
.parent-health-score small {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.parent-health-score span {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parent-health-score strong {
    color: #2563eb;
    font-family: var(--font-display);
    letter-spacing: 0;
    text-transform: capitalize;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.parent-audit-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.parent-audit-metric {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.parent-audit-metric-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
}

.parent-audit-metric > div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.parent-audit-metric span,
.parent-audit-metric small {
    overflow: hidden;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.parent-audit-metric span {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.parent-audit-metric strong {
    color: #0f172a;
    font-family: var(--font-display);
    letter-spacing: 0;
    text-transform: capitalize;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.parent-audit-metric.is-danger .parent-audit-metric-icon,
.parent-cleanup-option-icon.is-danger {
    background: #fff1f2;
    color: #e11d48;
}

.parent-audit-metric.is-warning .parent-audit-metric-icon,
.parent-cleanup-option-icon.is-warning {
    background: #fffbeb;
    color: #d97706;
}

.parent-audit-metric.is-healthy .parent-audit-metric-icon {
    background: #ecfdf5;
    color: #059669;
}

.parent-cleanup-options {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.parent-cleanup-options > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.parent-cleanup-options h3 {
    font-size: 16px;
}

.parent-cleanup-recommended {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
}

.parent-cleanup-recommended:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.parent-cleanup-option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.parent-cleanup-option {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.parent-cleanup-option:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.parent-cleanup-option.is-selected {
    border-color: rgba(37, 99, 235, 0.42);
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.parent-cleanup-option.is-destructive.is-selected {
    border-color: rgba(225, 29, 72, 0.38);
    background: #fff7f8;
}

.parent-cleanup-option:has(input:disabled) {
    cursor: default;
    opacity: 0.52;
}

.parent-cleanup-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #2563eb;
}

.parent-cleanup-option-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 17px;
}

.parent-cleanup-option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.parent-cleanup-option-copy strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 850;
}

.parent-cleanup-option-copy small {
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.parent-cleanup-count {
    display: grid;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}

.parent-cleanup-confirmation,
.parent-cleanup-result {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(225, 29, 72, 0.24);
    border-radius: 16px;
    background: #fff7f8;
    color: #be123c;
}

.parent-cleanup-confirmation.is-visible,
.parent-cleanup-result.is-visible {
    display: flex;
}

.parent-cleanup-confirmation > div {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.parent-cleanup-confirmation i,
.parent-cleanup-result i {
    font-size: 22px;
}

.parent-cleanup-confirmation span {
    display: flex;
    flex-direction: column;
}

.parent-cleanup-confirmation strong,
.parent-cleanup-confirmation small {
    font-size: 11px;
}

.parent-cleanup-confirmation input {
    width: 150px;
    height: 40px;
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 10px;
    outline: none;
    padding: 0 12px;
    color: #881337;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.parent-cleanup-result {
    font-size: 12px;
    font-weight: 800;
}

.parent-cleanup-result.is-success {
    border-color: rgba(16, 185, 129, 0.24);
    background: #ecfdf5;
    color: #047857;
}

.parent-cleanup-result.is-error {
    color: #be123c;
}

.parent-cleanup-footer {
    position: sticky;
    bottom: -1px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.parent-cleanup-footer > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.parent-cleanup-footer strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
}

.parent-cleanup-footer small {
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
}

.parent-cleanup-footer button {
    min-width: 210px;
    min-height: 44px;
    justify-content: center;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
}

.parent-contact-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
}

.parent-contact-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
}

.parent-contact-eyebrow {
    color: #2563eb;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.parent-contact-panel h3 {
    margin: 3px 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.parent-contact-panel p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.parent-contact-actions {
    display: grid;
    grid-column: 1 / -1;
    gap: 9px;
    margin-top: 8px;
}

.parent-contact-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #2563eb;
    text-decoration: none;
}

.parent-contact-action span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.parent-contact-action strong {
    color: #1e293b;
    font-size: 12px;
}

.parent-contact-action small {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    text-overflow: ellipsis;
}

.parent-contact-empty,
.parent-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.parent-empty-state {
    min-height: 130px;
    flex-direction: column;
}

.parent-empty-state i {
    font-size: 30px;
}

.parent-empty-state span {
    font-size: 11px;
}

@media (max-width: 980px) {
    .parent-audit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .parent-dialog-card,
    .parent-profile-modal-card {
        width: calc(100% - 16px) !important;
        max-height: calc(100vh - 16px);
        border-radius: 20px !important;
    }

    .parent-dialog-card > div:first-child,
    .parent-dialog-body {
        padding: 14px 16px !important;
    }

    .parent-profile-hero,
    .parent-profile-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .parent-profile-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .parent-profile-grid {
        grid-template-columns: 1fr;
    }

    .parent-cleanup-modal-card {
        width: calc(100% - 16px) !important;
        max-height: calc(100vh - 16px);
        border-radius: 20px !important;
    }

    .parent-cleanup-modal-card > div:first-child {
        padding: 14px 16px !important;
    }

    .parent-cleanup-center {
        gap: 14px;
        padding: 14px;
    }

    .parent-cleanup-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .parent-cleanup-hero-main {
        align-items: flex-start;
    }

    .parent-health-score {
        min-width: 0;
        align-items: flex-start;
        padding: 12px 0 0;
        border-top: 1px solid rgba(37, 99, 235, 0.15);
        border-left: 0;
    }

    .parent-health-score strong {
        font-size: 30px;
    }

    .parent-audit-grid,
    .parent-cleanup-option-grid {
        grid-template-columns: 1fr;
    }

    .parent-cleanup-options > header,
    .parent-cleanup-footer,
    .parent-cleanup-confirmation {
        align-items: stretch;
        flex-direction: column;
    }

    .parent-cleanup-recommended,
    .parent-cleanup-footer button,
    .parent-cleanup-confirmation input {
        width: 100%;
        min-width: 0;
    }

    .parent-cleanup-footer {
        bottom: -1px;
    }

    .parent-management-container #parentDirectory > header {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 12px;
    }

    .parent-management-container #parentDirectory > header > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .parent-management-container #parentDirectory > header .dt-primary-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .parent-cleanup-hero-main {
        flex-direction: column;
    }

    .parent-cleanup-option {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .parent-cleanup-count {
        display: none;
    }

    .parent-management-container #parentDirectory > header > div:last-child {
        grid-template-columns: 1fr;
    }
}

/* Tab Header styles */
.parent-cleanup-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.parent-cleanup-tab {
    padding: 14px 22px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 850;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 150ms ease;
}
.parent-cleanup-tab:hover {
    color: #1e293b;
    background: #f8fafc;
}
.parent-cleanup-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.parent-cleanup-tab .badge {
    background: #f1f5f9;
    color: #475569;
    border-radius: 99px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 900;
}
.parent-cleanup-tab.active .badge {
    background: #eff6ff;
    color: #2563eb;
}

/* Tab Content pane visibility toggles */
.tab-content-pane {
    display: none;
}
.tab-content-pane.active {
    display: block;
}

/* Duplicate Merge Section */
.duplicate-merge-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}
.duplicate-group-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.02);
    overflow: hidden;
}
.duplicate-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}
.duplicate-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.duplicate-group-title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: #1e293b;
}
.duplicate-group-title span {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}
.duplicate-group-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.duplicate-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 120ms ease;
}
.duplicate-member-row:hover {
    border-color: rgba(37, 99, 235, 0.25);
    background: #f8fbff;
}
.duplicate-member-row.is-primary {
    border-color: rgba(37, 99, 235, 0.4);
    background: #f0f7ff;
}
.duplicate-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.duplicate-member-radio {
    margin: 0;
    cursor: pointer;
}
.duplicate-member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.duplicate-member-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.duplicate-member-name {
    font-weight: 850;
    color: #1e293b;
    font-size: 13px;
}
.duplicate-member-badge {
    background: #dbeafe;
    color: #1e40af;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.duplicate-member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11px;
    color: #64748b;
    font-weight: 650;
}
.duplicate-member-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.duplicate-member-meta i {
    font-size: 12px;
    color: #94a3b8;
}
.duplicate-group-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
}
.btn-merge-group {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 8px;
    padding: 0 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
    transition: all 120ms ease;
}
.btn-merge-group:hover {
    background: #1d4ed8;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}
.btn-merge-group:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}
