/**
 * File: assets/css/frontend/account-profile.css
 * Purpose: Split piece of a larger source file (1.0.191 file-size programme; cascade/build order unchanged). Split from assets/css/frontend/account.css (1.0.191, 300-line standard): cascade order is preserved by the enqueue chain; this file holds lines 1191-1678 of the original file, verbatim.
 * Scope: Same feature scope as the source file named in the provenance line; not a standalone design source.
 * Package: HyperDAF Engine
 */
/* RC.49 marketplace profile, photo, social-account and button-legibility DNA. */
.hdf-account-avatar {
    overflow: hidden;
}

.hdf-account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hdf-account-avatar--hero {
    border-radius: 20px;
}

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

.hdf-account-profile-grid {
    display: grid;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 2.4vw, 28px);
}

.hdf-account-photo-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 22px 18px;
    border: 1px solid var(--hdf-engine-color-border-subtle);
    border-radius: 14px;
    background: var(--hdf-engine-color-surface-subtle);
    text-align: center;
}

.hdf-account-photo-card__preview {
    position: relative;
    width: 116px;
    height: 116px;
}

.hdf-account-avatar--profile {
    width: 116px;
    height: 116px;
    flex-basis: 116px;
    border-radius: 30px;
    font-size: 1.85rem;
}

.hdf-account-photo-card__preview > span:last-child {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 3px solid var(--hdf-engine-color-surface-subtle);
    border-radius: var(--hdf-engine-radius-pill, 999px);
    background: var(--hdf-engine-color-primary-strong);
    color: var(--hdf-engine-color-surface);
}

.hdf-account-photo-card__preview > span:last-child .hdf-account-icon {
    width: 15px;
    height: 15px;
}

.hdf-account-photo-card h3,
.hdf-account-security-card h3,
.hdf-account-socials__intro h3 {
    margin: 0;
    color: var(--hdf-engine-color-text);
    font-size: .96rem;
}

.hdf-account-photo-card p,
.hdf-account-security-card p,
.hdf-account-socials__intro p {
    margin: 6px 0 0;
    color: var(--hdf-engine-color-text-muted);
    font-size: .74rem;
    line-height: 1.55;
}

.hdf-account-photo-card > small {
    color: var(--hdf-engine-color-text-muted);
    font-size: .67rem;
    line-height: 1.45;
}

.hdf-account-file-control {
    display: grid;
    width: 100%;
    cursor: pointer;
}

.hdf-account-file-control > span {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--hdf-engine-color-border);
    border-radius: var(--hdf-engine-radius-md, 8px);
    background: var(--hdf-engine-color-surface);
    color: var(--hdf-engine-color-text);
    font-size: .76rem;
    font-weight: 750;
}

.hdf-account-file-control:hover > span,
.hdf-account-file-control:focus-within > span {
    border-color: var(--hdf-engine-color-primary-strong);
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-account-file-control .hdf-account-icon {
    width: 16px;
    height: 16px;
}

.hdf-account-file-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.hdf-account-profile-fields {
    min-width: 0;
}

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

.hdf-account-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.hdf-account-field > span {
    color: var(--hdf-engine-color-text);
    font-size: .75rem;
    font-weight: 750;
}

.hdf-account-field em {
    color: var(--hdf-engine-color-danger);
    font-style: normal;
}

.hdf-account-field input,
.hdf-account-social-input input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--hdf-engine-color-border);
    border-radius: var(--hdf-engine-radius-md, 8px);
    outline: 0;
    background: var(--hdf-engine-color-surface);
    color: var(--hdf-engine-color-text);
    font: inherit;
    font-size: .8rem;
}

.hdf-account-field input:focus,
.hdf-account-social-input input:focus {
    border-color: var(--hdf-engine-color-primary-strong);
    outline: 3px solid color-mix(in srgb, var(--hdf-engine-color-primary) 18%, transparent);
    outline-offset: 1px;
}

.hdf-account-field input[readonly] {
    background: var(--hdf-engine-color-surface-subtle);
    color: var(--hdf-engine-color-text-muted);
    cursor: not-allowed;
}

.hdf-account-field small {
    color: var(--hdf-engine-color-text-muted);
    font-size: .66rem;
    line-height: 1.45;
}

.hdf-account-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hdf-engine-color-border-subtle);
}

.hdf-account-form-actions .hdf-button,
.hdf-account-photo-remove,
.hdf-account-security-card .hdf-button {
    gap: 8px;
    white-space: nowrap;
}

.hdf-account-form-actions .hdf-account-icon,
.hdf-account-photo-remove .hdf-account-icon {
    width: 16px;
    height: 16px;
}

.hdf-account .hdf-button--primary,
.hdf-account .hdf-button--primary:visited {
    color: var(--hdf-engine-color-surface);
}

.hdf-account .hdf-button--primary:hover,
.hdf-account .hdf-button--primary:focus-visible {
    border-color: var(--hdf-engine-color-primary-strong);
    background: color-mix(in srgb, var(--hdf-engine-color-primary-strong) 88%, var(--hdf-engine-color-text));
    color: var(--hdf-engine-color-surface);
    filter: none;
}

.hdf-account .hdf-button--secondary,
.hdf-account .hdf-button--secondary:visited {
    color: var(--hdf-engine-color-text);
}

.hdf-account .hdf-button--secondary:hover,
.hdf-account .hdf-button--secondary:focus-visible {
    border-color: var(--hdf-engine-color-primary-strong);
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong);
    filter: none;
}

