/**
 * File: assets/css/frontend/account-profile-part2.css
 * Purpose: Split piece of a larger source file (1.0.191 file-size programme; cascade/build order unchanged). Continuation part 2 of assets/css/frontend/account-profile.css (split for the 300-line standard; cascade order is preserved by the enqueue chain).
 * Scope: Same feature scope as the source file named in the provenance line; not a standalone design source.
 * Package: HyperDAF Engine
 */
.hdf-button--danger,
.hdf-button--danger:visited {
    border-color: color-mix(in srgb, var(--hdf-engine-color-danger) 35%, var(--hdf-engine-color-border));
    background: var(--hdf-engine-color-surface);
    color: var(--hdf-engine-color-danger);
}

.hdf-button--danger:hover,
.hdf-button--danger:focus-visible {
    border-color: var(--hdf-engine-color-danger);
    background: var(--hdf-engine-color-danger-soft);
    color: var(--hdf-engine-color-danger);
    filter: none;
}

.hdf-account-security-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--hdf-engine-color-border-subtle);
    border-radius: 13px;
    background: var(--hdf-engine-color-surface-subtle);
}

.hdf-account-security-card > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.hdf-account-security-card__icon,
.hdf-account-socials__intro > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-account-security-card__icon .hdf-account-icon,
.hdf-account-socials__intro > span .hdf-account-icon {
    width: 19px;
    height: 19px;
}

.hdf-account-security-card form {
    flex: 0 0 auto;
    margin: 0;
}

.hdf-account-socials__intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--hdf-engine-color-border-subtle);
    border-radius: 12px;
    background: var(--hdf-engine-color-surface-subtle);
}

.hdf-account-social-form {
    margin: 0;
}

.hdf-account-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hdf-account-social-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--hdf-engine-color-border-subtle);
    border-radius: 12px;
    background: var(--hdf-engine-color-surface);
}

.hdf-account-social-card__head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hdf-account-social-card__head > span:first-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong);
    font-size: .76rem;
    font-weight: 850;
}

.hdf-account-social-card__head > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.hdf-account-social-card__head label {
    color: var(--hdf-engine-color-text);
    font-size: .76rem;
    font-weight: 800;
}

.hdf-account-social-card__head small {
    overflow: hidden;
    color: var(--hdf-engine-color-text-muted);
    font-size: .63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdf-account-social-card__head a {
    color: var(--hdf-engine-color-primary-strong);
    font-size: .68rem;
    font-weight: 750;
    text-decoration: none;
}

.hdf-account-social-card__head a:hover,
.hdf-account-social-card__head a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hdf-account-social-input {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
}

.hdf-account-social-input > span {
    display: grid;
    place-items: center;
    border: 1px solid var(--hdf-engine-color-border);
    border-right: 0;
    border-radius: var(--hdf-engine-radius-md, 8px) 0 0 var(--hdf-engine-radius-md, 8px);
    background: var(--hdf-engine-color-surface-subtle);
    color: var(--hdf-engine-color-text-muted);
    font-size: .8rem;
    font-weight: 800;
}

.hdf-account-social-input input {
    border-radius: 0 var(--hdf-engine-radius-md, 8px) var(--hdf-engine-radius-md, 8px) 0;
}

.hdf-account-notice--success {
    border-color: color-mix(in srgb, var(--hdf-engine-color-success) 40%, var(--hdf-engine-color-border));
    background: var(--hdf-engine-color-success-soft, var(--hdf-engine-color-surface-selected));
    color: var(--hdf-engine-color-success-text);
}

.hdf-account-notice--error {
    border-color: color-mix(in srgb, var(--hdf-engine-color-danger) 35%, var(--hdf-engine-color-border));
    background: var(--hdf-engine-color-danger-soft);
    color: var(--hdf-engine-color-danger);
}

@media (max-width: 1080px) {
    .hdf-account-profile-grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .hdf-account-profile-grid,
    .hdf-account-social-grid {
        grid-template-columns: 1fr;
    }

    .hdf-account-photo-card {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }

    .hdf-account-photo-card__preview {
        grid-row: 1 / span 3;
    }

    .hdf-account-file-control,
    .hdf-account-photo-card > small,
    .hdf-account-photo-remove {
        grid-column: 2;
    }

    .hdf-account-security-card {
        align-items: stretch;
        flex-direction: column;
    }

    .hdf-account-security-card .hdf-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .hdf-account-field-grid {
        grid-template-columns: 1fr;
    }

    .hdf-account-photo-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .hdf-account-photo-card__preview,
    .hdf-account-file-control,
    .hdf-account-photo-card > small,
    .hdf-account-photo-remove {
        grid-column: 1;
        grid-row: auto;
    }

    .hdf-account-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hdf-account-form-actions .hdf-button {
        width: 100%;
    }

    .hdf-account-socials__intro {
        align-items: flex-start;
    }
}

