/* ==========================================================================
   Edit Profile Wizard Styles
   ========================================================================== */

.hh-edit-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.4rem;
    width: 100%;
}

/* Override onboarding.css .hh-wizard (flex-direction: row) for edit profile */
.hh-edit-profile .hh-wizard {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
}

.hh-profile-editor-fieldset {
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hh-edit-profile button.hh-radio-option,
.hh-edit-profile button.hh-checkbox-option {
    width: 100%;
}

.hh-edit-profile button.hh-radio-option,
.hh-edit-profile button.hh-checkbox-option,
.hh-edit-profile button.hh-interest-tag-btn {
    appearance: none;
    font-family: inherit;
}

.hh-profile-header {
    text-align: center;
    padding: 0.55rem 0 1.15rem;
}

.hh-profile-title {
    font-size: clamp(1.95rem, 8.2vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--hh-text-primary);
}

.hh-profile-subtitle {
    font-size: 0.95rem;
    color: var(--hh-text-secondary);
    margin: 0;
    line-height: 1.35;
    max-width: 28ch;
    margin-inline: auto;
}

.hh-profile-progress-meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.hh-profile-progress-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: var(--hh-radius-full);
    border: 1px solid var(--hh-glass-border-highlight);
    background: var(--hh-surface-soft);
    color: var(--hh-text-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hh-profile-progress-name {
    color: var(--hh-text-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Steps Navigation */
.hh-edit-profile .hh-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
    padding: 0.2rem 0 0.35rem;
    overflow-x: visible;
}

.hh-edit-profile .hh-step {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.4rem;
    background: var(--hh-dark-elevated);
    border: 1px solid var(--hh-glass-border);
    border-radius: var(--hh-radius-lg);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    color: var(--hh-text-muted);
}

.hh-edit-profile .hh-step:hover:not(:disabled) {
    background: var(--hh-surface-soft-hover);
    transform: translateY(-2px);
}

.hh-edit-profile .hh-step:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.hh-edit-profile .hh-step.active {
    background: var(--hh-dark-surface);
    border-color: var(--hh-primary);
    color: var(--hh-text-primary);
    box-shadow: 0 4px 12px rgba(var(--hh-primary-rgb), 0.2);
}

.hh-edit-profile .hh-step.completed {
    color: var(--hh-success);
    border-color: var(--hh-success);
}

.hh-edit-profile .hh-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hh-surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--hh-glass-border);
}

.hh-edit-profile .hh-step.active .hh-step-number {
    background: var(--hh-gradient-primary);
    border-color: transparent;
    color: var(--hh-text-inverse);
}

.hh-edit-profile .hh-step.completed .hh-step-number {
    background: var(--hh-success);
    color: var(--hh-dark);
    border-color: transparent;
}

.hh-edit-profile .hh-step-label {
    font-size: 0.68rem;
    font-weight: 500;
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-transform: none;
    letter-spacing: normal;
}

/* Wizard Content */
.hh-edit-profile .hh-step-content {
    background: var(--hh-glass-bg);
    backdrop-filter: var(--hh-glass-blur);
    border: 1px solid var(--hh-glass-border);
    border-radius: var(--hh-radius-xl);
    padding: 1rem 0.9rem 0.9rem;
    box-shadow: var(--hh-shadow-lg);
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.hh-form-section {
    min-width: 0;
}

.hh-form-section h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--hh-text-primary);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hh-form-section>p {
    color: var(--hh-text-secondary);
    margin: 0 0 1.2rem;
    font-size: 0.92rem;
}

.hh-form-subsections {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.hh-form-subsection {
    padding: 0.9rem 0.85rem 0.1rem;
}

.hh-subsection-header {
    margin-bottom: 0.9rem;
}

.hh-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
}

.hh-form-grid--two {
    grid-template-columns: 1fr;
}

.hh-form-grid .hh-form-group {
    margin-bottom: 1rem;
}

.hh-form-group-card {
    padding: 1rem;
}

.hh-profile-optional-details {
    margin-top: 0.1rem;
}

.hh-profile-optional-details > summary {
    padding: 0.9rem 1rem;
}

.hh-profile-optional-sections {
    display: grid;
    gap: 1rem;
}

.hh-profile-optional-sections .hh-form-group-card {
    margin-bottom: 0;
}

.hh-char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--hh-text-muted);
    margin-top: 0.5rem;
}

/* Range Inputs */
.hh-range-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hh-range-inputs input[type="number"] {
    flex: 1;
    min-width: 110px;
}

.hh-range-separator {
    color: var(--hh-text-muted);
}

/* Distance Selector */
.hh-distance-group {
    margin-top: 0.5rem;
    position: relative;
    padding: 0.9rem 0.85rem 0.8rem;
    border-radius: var(--hh-radius-lg);
    border: 1px solid var(--hh-glass-border);
    background: var(--hh-dark-elevated);
    box-shadow: var(--hh-shadow-sm);
}

.hh-distance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hh-distance-header label {
    margin-bottom: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hh-text-secondary);
}

.hh-distance-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.hh-distance-selector input[type="range"] {
    width: 100%;
    height: 1.9rem;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.hh-distance-selector input[type="range"]:focus {
    outline: none;
}

.hh-distance-selector input[type="range"]:focus-visible {
    outline: 2px solid var(--hh-accent);
    outline-offset: 2px;
}

.hh-distance-selector input[type="range"]::-webkit-slider-runnable-track {
    height: 0.62rem;
    border-radius: var(--hh-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(
            90deg,
            var(--hh-primary) 0%,
            var(--hh-primary-light) var(--hh-distance-progress, 0%),
            rgba(255, 255, 255, 0.2) var(--hh-distance-progress, 0%),
            rgba(255, 255, 255, 0.08) 100%
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.1) 0 1px,
            transparent 1px 12px
        );
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

.hh-distance-selector input[type="range"]::-moz-range-track {
    height: 0.62rem;
    border-radius: var(--hh-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

.hh-distance-selector input[type="range"]::-moz-range-progress {
    height: 0.62rem;
    border-radius: var(--hh-radius-full);
    background: var(--hh-primary);
}

.hh-distance-selector input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.3rem;
    height: 1.3rem;
    margin-top: -0.41rem;
    border-radius: 50%;
    border: 2px solid var(--hh-primary);
    background: var(--hh-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hh-distance-selector input[type="range"]::-moz-range-thumb {
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid var(--hh-primary);
    border-radius: 50%;
    background: var(--hh-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hh-distance-selector input[type="range"]:hover::-webkit-slider-thumb,
.hh-distance-selector input[type="range"]:hover::-moz-range-thumb {
    transform: scale(1.12);
}

.hh-distance-selector input[type="range"]:focus-visible::-webkit-slider-thumb,
.hh-distance-selector input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(var(--hh-primary-rgb), 0.2), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hh-distance-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 0.36rem 0.8rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.045em;
    color: var(--hh-text-primary);
    border-radius: var(--hh-radius-full);
    border: 1px solid var(--hh-glass-border-highlight);
    background: var(--hh-surface-soft);
}

.hh-distance-scale {
    display: flex;
    justify-content: space-between;
    padding: 0 0.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hh-text-muted);
}

/* Photo Grid */
.hh-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hh-photo-slot {
    aspect-ratio: 3/4;
    border-radius: var(--hh-radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--hh-dark-elevated);
    border: 2px dashed var(--hh-glass-border);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hh-photo-slot.primary {
    border-color: var(--hh-primary);
    box-shadow: var(--hh-glow-primary);
}

.hh-photo-slot:hover {
    border-color: var(--hh-text-secondary);
}

.hh-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hh-photo-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.hh-photo-actions {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hh-photo-actions button {
    pointer-events: auto;
}

.hh-photo-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    gap: 0.5rem;
    color: var(--hh-text-secondary);
}

.hh-photo-add:hover {
    color: var(--hh-primary);
}

.hh-photo-add.disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.hh-photo-add.disabled:hover {
    color: var(--hh-text-secondary);
}

.hh-photo-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.hh-photo-add input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hh-photo-add:focus-within {
    outline: 3px solid var(--hh-primary);
    outline-offset: -3px;
}

.hh-photo-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hh-photo-remove:hover {
    background: var(--hh-danger);
    border-color: var(--hh-danger);
}

.hh-photo-remove:focus-visible {
    outline: 3px solid var(--hh-primary);
    outline-offset: 2px;
}

.hh-photo-remove:disabled,
.hh-photo-order-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.hh-photo-order-controls {
    position: absolute;
    left: 50%;
    bottom: 0.35rem;
    display: flex;
    gap: 0.35rem;
    padding: 0.3rem;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--hh-radius-full);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.hh-photo-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
}

.hh-photo-order-button:hover:not(:disabled) {
    border-color: var(--hh-primary);
    color: var(--hh-primary-light);
}

.hh-photo-order-button:focus-visible {
    outline: 3px solid var(--hh-primary);
    outline-offset: 2px;
}

.hh-photo-mutation-alert,
.hh-photo-mutation-status {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(var(--hh-danger-rgb), 0.48);
    border-radius: var(--hh-radius-md);
    background: rgba(var(--hh-danger-rgb), 0.1);
    color: var(--hh-text-primary);
}

.hh-photo-feedback:focus-visible,
.hh-photo-category:focus-visible {
    outline: 3px solid var(--hh-primary);
    outline-offset: 3px;
}

.hh-photo-mutation-alert.is-restored {
    border-color: rgba(var(--hh-success-rgb), 0.48);
    background: rgba(var(--hh-success-rgb), 0.1);
}

.hh-photo-mutation-alert > div,
.hh-photo-mutation-status > span {
    min-width: 0;
}

.hh-photo-mutation-alert p {
    margin: 0;
    line-height: 1.45;
}

.hh-photo-mutation-status {
    align-items: center;
    border-color: rgba(var(--hh-primary-rgb), 0.38);
    background: rgba(var(--hh-primary-rgb), 0.1);
}

.hh-photo-mutation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.hh-photo-mutation-actions .btn-primary,
.hh-photo-mutation-actions .btn-secondary,
.hh-photo-mutation-alert .btn-secondary {
    width: auto;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
}

/* Photo Categories */
.hh-photo-category {
    margin-bottom: 1.25rem;
}

.hh-photo-category-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.hh-photo-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hh-text-primary);
    margin: 0;
}

.hh-photo-category-desc {
    font-size: 0.8rem;
    color: var(--hh-text-secondary);
    line-height: 1.35;
    margin: 0;
}

.hh-photo-grid--matching {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 200px;
}

.hh-photo-grid--chat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 420px) {
    .hh-photo-grid--chat {
        grid-template-columns: repeat(auto-fit, minmax(min(7rem, 100%), 1fr));
        gap: 0.75rem;
    }
}

@media (forced-colors: active) {
    .hh-photo-slot,
    .hh-photo-order-controls,
    .hh-photo-mutation-alert,
    .hh-photo-mutation-status {
        border-color: CanvasText;
    }

    .hh-photo-slot.primary,
    .hh-photo-feedback:focus-visible,
    .hh-photo-category:focus-visible,
    .hh-photo-remove:focus-visible,
    .hh-photo-order-button:focus-visible,
    .hh-photo-add:focus-within {
        outline-color: Highlight;
        border-color: Highlight;
    }
}

.hh-photo-slot.chat-shareable {
    border-color: var(--hh-secondary, var(--hh-accent));
    border-style: dashed;
}

.hh-photo-slot.chat-shareable:hover {
    border-color: var(--hh-text-secondary);
}

.hh-photo-hint {
    color: var(--hh-text-muted);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

/* Navigation Buttons — base .hh-wizard-nav defined in onboarding.css */

.hh-wizard-nav {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.35rem);
    padding: 0.65rem 0.75rem;
    margin-top: 1rem;
    border-radius: var(--hh-radius-lg);
    border: 1px solid var(--hh-glass-border);
    background: var(--hh-dark-surface);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    z-index: var(--hh-z-card-overlay);
}

.hh-wizard-nav > * {
    flex: 1;
}

.hh-wizard-nav > div {
    flex: 1;
}

.hh-wizard-nav .btn-primary,
.hh-wizard-nav .btn-secondary {
    min-height: 3.1rem;
    width: 100%;
    justify-content: center;
}

.hh-wizard-nav .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 248, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.18);
}

.hh-wizard-nav .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(var(--hh-primary-rgb), 0.45);
}

.hh-wizard-nav > .hh-save-btn {
    flex: 0 0 auto;
    width: auto;
}

.hh-wizard-nav .hh-save-btn {
    min-width: 8.75rem;
    padding: 0.75rem 0.95rem;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hh-wizard-nav .hh-save-btn span {
    white-space: nowrap;
}

.hh-save-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--hh-radius-md);
    text-align: center;
}

.hh-save-message.success {
    background: rgba(var(--hh-success-rgb), 0.1);
    color: var(--hh-success);
    border: 1px solid var(--hh-success);
}

.hh-save-message.error {
    background: rgba(var(--hh-danger-rgb), 0.1);
    color: var(--hh-danger);
    border: 1px solid var(--hh-danger);
}

/* Phone Verification Flow */
.hh-phone-verify-flow {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.hh-phone-verify-flow input[type="tel"],
.hh-phone-verify-flow .hh-phone-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--hh-input-bg);
    border: 1px solid var(--hh-glass-border);
    border-radius: var(--hh-radius-md);
    color: var(--hh-text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hh-phone-verify-flow input:focus {
    outline: none;
    border-color: var(--hh-primary);
    box-shadow: 0 0 0 1px var(--hh-primary), var(--hh-glow-primary);
    background: var(--hh-input-bg-focus);
}

.hh-verify-code-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hh-verify-code-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.hh-verify-code-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--hh-input-bg);
    border: 1px solid var(--hh-glass-border);
    border-radius: var(--hh-radius-md);
    color: var(--hh-text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    max-width: 280px;
}

.hh-verify-code-input:focus {
    outline: none;
    border-color: var(--hh-primary);
    box-shadow: 0 0 0 1px var(--hh-primary), var(--hh-glow-primary);
    background: var(--hh-input-bg-focus);
}

.hh-verify-code-input::placeholder {
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 400;
    color: var(--hh-text-muted);
}

.hh-phone-status {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hh-phone-status.error {
    color: var(--hh-danger);
}

.hh-phone-status.info {
    color: var(--hh-text-secondary);
}

.hh-resend-link {
    background: none;
    border: none;
    color: var(--hh-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.hh-resend-link:hover {
    color: var(--hh-primary-light);
}

.hh-resend-link:disabled {
    color: var(--hh-text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.hh-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(var(--hh-success-rgb), 0.1);
    border: 1px solid rgba(var(--hh-success-rgb), 0.3);
    border-radius: var(--hh-radius-full);
    color: var(--hh-success);
    font-weight: 500;
    font-size: 0.9375rem;
}

.hh-verified-badge.pending {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--hh-text-muted);
}

.hh-verification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hh-settings-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--hh-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0;
    margin-top: 0.5rem;
    transition: opacity 0.2s ease;
}

.hh-settings-link-inline:hover {
    opacity: 0.8;
}

.hh-edit-guest {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 400px;
    margin: 2rem auto;
}

@media (min-width: 601px) {
    .hh-edit-profile {
        padding: 1rem;
    }

    .hh-profile-header {
        padding: 1rem 0 2rem;
    }

    .hh-profile-title {
        font-size: 2.5rem;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .hh-profile-subtitle {
        font-size: 1.125rem;
        line-height: inherit;
        max-width: none;
        margin-inline: unset;
    }

    .hh-profile-progress-meta {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.55rem;
    }

    .hh-profile-progress-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
        letter-spacing: 0.05em;
    }

    .hh-profile-progress-name {
        font-size: 0.9rem;
    }

    .hh-edit-profile .hh-steps {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 2rem;
        overflow-x: auto;
        padding: 0.5rem 0;
    }

    .hh-edit-profile .hh-step {
        flex: 1;
        min-width: 80px;
        width: auto;
        padding: 1rem;
        gap: 0.5rem;
    }

    .hh-edit-profile .hh-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .hh-edit-profile .hh-step-label {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .hh-edit-profile .hh-step-content {
        padding: 2.5rem;
        margin-bottom: 2rem;
    }

    .hh-form-section h2 {
        font-size: 1.5rem;
        gap: 0.75rem;
    }

    .hh-form-section > p {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .hh-photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hh-distance-group {
        padding: 1rem 1.1rem 0.9rem;
    }

    .hh-distance-value {
        min-width: 86px;
        font-size: 0.8125rem;
    }

    .hh-form-subsection {
        padding: 1rem 1rem 0.25rem;
    }

    .hh-wizard-nav {
        position: static;
        bottom: auto;
        padding: 0;
        padding-top: 1rem;
        margin-top: 1rem;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--hh-glass-border);
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        z-index: auto;
    }

    .hh-wizard-nav > * {
        flex: 0 1 auto;
    }

    .hh-wizard-nav > div {
        flex: 0 1 auto;
    }

    .hh-wizard-nav .btn-primary,
    .hh-wizard-nav .btn-secondary {
        width: auto;
        justify-content: center;
    }

    .hh-wizard-nav > .hh-save-btn {
        flex: 0 0 auto;
    }

    .hh-wizard-nav .hh-save-btn {
        min-width: 10.25rem;
        padding: 0.75rem 1.1rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 761px) {
    .hh-form-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Note: Loading screen CSS (#app-loading, .hh-heartbeat-*, .hh-ecg-*, etc.)
   lives ONLY in App.razor inline <style> so it renders before CSS files load. */

/* DeleteAccount */
.hh-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.hh-radio-card:hover {
    border-color: rgba(var(--hh-primary-rgb), 0.3);
}

.hh-radio-active {
    border-color: var(--hh-primary);
    background: rgba(var(--hh-primary-rgb), 0.06);
}

.hh-radio-card input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--hh-primary);
}

/* ── Voice Intro Recorder ── */
.hh-voice-intro-recorder {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.hh-voice-intro-recording {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.hh-voice-intro-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e53e3e;
    animation: hh-rec-pulse 1s ease-in-out infinite;
}

@keyframes hh-rec-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.hh-voice-intro-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 5ch;
}

.hh-voice-intro-recorded {
    margin-top: 0.5rem;
}

.hh-voice-intro-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.hh-voice-intro-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hh-btn-danger {
    color: #e53e3e !important;
    border-color: #e53e3e !important;
}

.hh-btn-danger:hover {
    background: #e53e3e !important;
    color: #fff !important;
}
