:root {
    --profile-ink: #3d2b20;
    --profile-muted: #71685f;
    --profile-paper: #fbfaf7;
    --profile-line: #e7e4dc;
    --profile-sage: #e5ebe1;
    --profile-sage-ink: #70503a;
    --profile-coral: #9b5128;
}

.profile-page {
    background: var(--profile-paper);
    color: var(--profile-ink);
}

.profile-main {
    padding-top: 120px;
}

.profile-container {
    max-width: 1120px;
}

.profile-heading-band {
    position: relative;
    overflow: hidden;
    padding: 2.6rem 0;
    background: #f2e9df;
}

.profile-heading-band::after {
    position: absolute;
    content: '';
    width: 330px;
    height: 330px;
    right: max(calc((100vw - 1120px) / 2 - 80px), 2vw);
    top: -205px;
    border: 1px solid rgba(79, 96, 75, 0.19);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(79, 96, 75, 0.035), 0 0 0 58px rgba(79, 96, 75, 0.025);
    pointer-events: none;
}

.profile-heading-band .profile-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.profile-kicker,
.profile-section-label,
.profile-identity-label {
    color: var(--profile-sage-ink);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.profile-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.profile-kicker span,
.profile-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--profile-coral);
}

.profile-heading-copy h1 {
    overflow-wrap: anywhere;
    margin: 0.55rem 0 0.3rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.04;
}

.profile-heading-copy h1 em {
    color: var(--profile-coral);
    font-weight: 400;
}

.profile-heading-copy p {
    margin: 0.85rem 0 0;
    color: #62655e;
    font-size: 0.95rem;
}

.profile-browse-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--profile-ink);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-browse-link {
    margin-bottom: 0.25rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #a6a79c;
}

.profile-browse-link:hover {
    color: var(--profile-coral);
}

.profile-workspace {
    min-height: 590px;
    padding: 2.7rem 0 4.5rem;
    background: var(--profile-paper);
}

.profile-identity {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--profile-line);
    border-radius: 16px;
    background: #fff;
    overflow-wrap: anywhere;
    text-align: center;
}

.profile-avatar {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 1.1rem;
    place-items: center;
    border: 1px solid #d5d9cf;
    border-radius: 50%;
    background: var(--profile-sage);
    color: var(--profile-sage-ink);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.3rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-identity-label {
    margin: 0 0 0.45rem;
}

.profile-identity h2 {
    margin: 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.profile-identity-note {
    margin: 0.35rem 0 0;
    color: var(--profile-muted);
    font-size: 0.81rem;
}

.profile-tabs {
    display: grid;
    gap: 0.25rem;
    padding: 0.55rem;
    border: 1px solid var(--profile-line);
    border-radius: 14px;
    background: #fff;
}

.profile-tab {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #555950;
    font: inherit;
    font-size: 0.87rem;
    text-align: left;
    transition: background 160ms ease, color 160ms ease;
}

.profile-tab > i:first-child {
    width: 18px;
    color: #81857b;
    font-size: 1rem;
    text-align: center;
}

.profile-tab:hover,
.profile-tab.active {
    background: #eef1eb;
    color: var(--profile-sage-ink);
}

.profile-tab.active {
    font-weight: 600;
}

.profile-tab.active > i:first-child {
    color: var(--profile-sage-ink);
}

.tab-arrow {
    margin-left: auto;
    font-size: 0.72rem;
    opacity: 0;
}

.profile-tab.active .tab-arrow {
    opacity: 1;
}

.profile-sidebar-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.3rem;
    padding: 0.85rem 0.2rem;
    color: var(--profile-sage-ink);
}

.profile-sidebar-note i {
    font-size: 1.15rem;
}

.profile-sidebar-note p {
    margin: 0;
    color: var(--profile-muted);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 0.95rem;
}

.profile-panel {
    min-height: 458px;
    padding: clamp(1.25rem, 3vw, 2.1rem);
    border: 1px solid var(--profile-line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(74, 44, 27, 0.035);
    background: #fff;
    animation: profile-panel-in 240ms ease both;
}

.profile-panel[hidden] {
    display: none;
}

@keyframes profile-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-panel-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.profile-section-label {
    display: block;
    margin-bottom: 0.55rem;
}

.profile-panel-heading h2 {
    margin: 0;
    color: var(--profile-ink);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
}

.profile-panel-heading p {
    margin: 0.45rem 0 0;
    color: var(--profile-muted);
    font-size: 0.87rem;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.43rem 0.65rem;
    border: 1px solid #e2e9dd;
    border-radius: 3px;
    background: #f5f8f2;
    color: #53614e;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.profile-status span {
    width: 6px;
    height: 6px;
    background: #71886c;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.overview-tile {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid var(--profile-line);
    border-radius: 4px;
    background: #fff;
    color: inherit;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease;
}

.overview-tile:hover {
    border-color: #c8d2c1;
    background: #fbfcf9;
}

.overview-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-size: 1.05rem;
}

.orders-icon {
    background: #e9eee5;
    color: #52664d;
}

.favorites-icon {
    background: #f5e9e2;
    color: #a65d43;
}

.overview-tile-copy {
    display: grid;
    gap: 0.15rem;
}

.overview-tile-copy strong {
    font-size: 0.87rem;
    font-weight: 600;
}

.overview-tile-copy small {
    color: var(--profile-muted);
    font-size: 0.74rem;
}

.overview-arrow {
    margin-left: auto;
    color: #85887f;
    font-size: 0.85rem;
}

.profile-panel-divider {
    height: 1px;
    margin: 1.85rem 0 1.55rem;
    background: var(--profile-line);
}

.details-heading {
    align-items: center;
}

.profile-text-button {
    padding: 0.4rem 0;
    border: 0;
    background: transparent;
    color: var(--profile-sage-ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.profile-text-button i {
    margin-left: 0.25rem;
}

.profile-text-button[data-auth-open] {
    color: var(--profile-coral);
}

.profile-detail-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.profile-detail-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.profile-detail-preview div {
    display: grid;
    gap: 0.35rem;
    padding-left: 0.8rem;
    border-left: 2px solid #dbe2d6;
}

.profile-detail-preview span {
    color: var(--profile-muted);
    font-size: 0.72rem;
}

.profile-detail-preview strong {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    font-weight: 500;
}

.profile-heading-icon {
    color: #788673;
    font-size: 1.5rem;
}

.profile-form {
    margin-top: 1.8rem;
}

.profile-form .form-label {
    margin-bottom: 0.45rem;
    color: #454940;
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-form .form-label span {
    color: var(--profile-muted);
    font-weight: 400;
}

.profile-form .form-control {
    min-height: 46px;
    border-color: #dedfd8;
    border-radius: 4px;
    background-color: #fafaf8;
    color: var(--profile-ink);
    font-size: 0.87rem;
    box-shadow: none;
}

.profile-form .form-control:focus {
    border-color: #8b9a83;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 127, 99, 0.12);
}

.profile-form .form-control::placeholder {
    color: #a1a39c;
}

.profile-form-footer {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
}

.profile-form-message {
    margin: 0;
    color: var(--profile-sage-ink);
    font-size: 0.78rem;
}

.profile-edit-button,
.profile-primary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--profile-sage-ink);
    border-radius: 10px;
    background: var(--profile-coral);
    color: #fff;
    font-size: 0.81rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-edit-button:hover,
.profile-primary-button:hover {
    border-color: #394837;
    background: #394837;
    color: #fff;
}

.profile-preview-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.35rem;
    padding-top: 0.95rem;
    border-top: 1px solid #efeee9;
    color: var(--profile-muted);
    font-size: 0.75rem;
}

.profile-preview-note i {
    color: var(--profile-sage-ink);
}

.profile-empty-state {
    display: flex;
    min-height: 315px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.empty-cup-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 1.1rem;
    place-items: center;
    border: 1px solid #dce4d7;
    border-radius: 50%;
    background: #f1f4ee;
    color: var(--profile-sage-ink);
    font-size: 1.55rem;
}

.favorites-empty-icon {
    border-color: #efdcd2;
    background: #f9f0eb;
    color: var(--profile-coral);
}

.profile-favorite-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
    padding: 0.9rem;
    border: 1px solid #eee3dc;
    border-radius: 14px;
    background: #fff;
}

.profile-favorite-image,
.profile-favorite-image-placeholder {
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f4eee8;
}

.profile-favorite-image {
    object-fit: cover;
}

.profile-favorite-image-placeholder {
    position: relative;
    border: 1px solid #eee3dc;
    color: var(--profile-coral);
}

.profile-favorite-image-placeholder img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    opacity: 0.72;
}

.profile-favorite-image-placeholder i {
    position: absolute;
    right: 6px;
    bottom: 5px;
    font-size: 1rem;
}

.profile-favorite-card h3 {
    margin: 0 0 0.45rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.profile-favorite-details {
    flex: 1;
    min-width: 0;
}

.profile-favorite-details .form-select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-favorite-details > p {
    margin: 0 0 0.45rem;
    color: var(--profile-muted);
    font-size: 0.76rem;
}

.profile-favorite-card .profile-text-button {
    display: block;
    padding: 0.15rem 0;
}

.profile-favorite-card .profile-primary-button {
    width: 100%;
    margin: 0.25rem 0;
}

.profile-identity > #profileLogoutButton {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    margin: 0.8rem auto 0;
    border: 1px solid #e5cfc2;
    border-radius: 9px;
    background: #fbf5f1;
    color: #8d4528;
    font-weight: 600;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.profile-identity > #profileLogoutButton:hover {
    border-color: #a4542d;
    background: #a4542d;
    color: #fff;
}

.profile-identity > #profileLogoutButton:focus-visible {
    outline: 3px solid #d9a98d;
    outline-offset: 2px;
}

.profile-identity > #profileSessionMessage {
    margin-top: 0.4rem;
}

.profile-empty-state h3 {
    margin: 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.profile-empty-state p {
    max-width: 340px;
    margin: 0.55rem 0 1.2rem;
    color: var(--profile-muted);
    font-size: 0.86rem;
}

.profile-primary-button {
    min-height: 41px;
}

.profile-footer {
    padding: 1.35rem 0;
    border-top: 1px solid var(--profile-line);
    background: #f5f3ed;
}

.profile-footer a {
    color: #62665e;
    font-size: 0.77rem;
    text-decoration: none;
}

.profile-footer a:hover {
    color: var(--profile-coral);
}

.profile-footer-brand {
    font-weight: 500;
}

.profile-footer-brand span {
    padding: 0 0.25rem;
    color: var(--profile-coral);
}

@media (max-width: 991.98px) {
    .profile-main {
        padding-top: 120px;
    }

    .profile-heading-band {
        padding: 2rem 0;
    }

    .profile-heading-band .profile-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .profile-heading-copy h1 {
        font-size: 2.65rem;
    }

    .profile-heading-copy p {
        max-width: 34ch;
    }

    .profile-workspace {
        padding: 1.7rem 0 3rem;
    }

    .profile-identity {
        padding-bottom: 1.1rem;
    }

    .profile-sidebar-note {
        display: none;
    }

    .profile-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 0.25rem;
    }

    .profile-tab {
        gap: 0.45rem;
        padding: 0.6rem 0.55rem;
        font-size: 0.77rem;
    }

    .tab-arrow {
        display: none;
    }

    .profile-panel {
        min-height: 420px;
    }

    .profile-overview-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-top: 1.3rem;
    }

    .profile-detail-preview {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .profile-detail-preview div {
        grid-template-columns: minmax(90px, 0.65fr) minmax(0, 1fr);
        align-items: baseline;
    }
}

@media (max-width: 420px) {
    .profile-panel-heading {
        gap: 0.5rem;
    }

    .profile-panel-heading h2 {
        font-size: 1.5rem;
    }

    .profile-status {
        padding: 0.35rem 0.45rem;
        font-size: 0.68rem;
    }

    .details-heading {
        align-items: flex-start;
    }

    .profile-text-button {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-panel {
        animation: none;
    }

    .profile-tab,
    .overview-tile {
        transition: none;
    }
}

.profile-account-form {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--profile-line);
    border-radius: 12px;
    background: #fcfaf7;
}

.profile-order-card { padding: 1.25rem; margin-top: 1rem; border: 1px solid var(--profile-line); border-radius: 12px; }
.profile-order-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.profile-order-status { padding: 0.3rem 0.65rem; border-radius: 6px; background: #f5f0eb; color: #70503a; text-transform: capitalize; font-size: 0.75rem; }
.profile-order-status.status-pending { background: #fff2d7; color: #896112; }
.profile-order-status.status-preparing { background: #e9edf9; color: #485d91; }
.profile-order-status.status-ready { background: #e8f1e1; color: #4e6e3e; }
.profile-order-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.profile-order-progress li { position: relative; display: flex; min-width: 0; align-items: center; flex-direction: column; gap: 0.35rem; color: var(--profile-muted); text-align: center; text-transform: capitalize; }
.profile-order-progress li:not(:last-child)::after { position: absolute; top: 13px; left: calc(50% + 17px); width: calc(100% - 24px); height: 2px; background: var(--profile-line); content: ""; }
.profile-order-progress li.is-complete:not(:last-child)::after { background: #9b5128; }
.profile-order-progress li > span { z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid var(--profile-line); border-radius: 50%; background: #fff; font-size: 0.75rem; font-weight: 700; }
.profile-order-progress li.is-complete, .profile-order-progress li.is-current { color: #704128; }
.profile-order-progress li.is-complete > span, .profile-order-progress li.is-current > span { border-color: #9b5128; background: #9b5128; color: #fff; }
.profile-order-progress li small { font-size: 0.68rem; }
.profile-order-cancelled { color: #a33123; font-weight: 600; }
.profile-order-card details { margin: 1rem 0; font-size: 0.85rem; }
.profile-order-card summary { cursor: pointer; min-height: 36px; }
.profile-order-card .profile-order-item-list { list-style: none; padding: 0; }
.profile-order-card .profile-order-item-list > li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--profile-line); }
.profile-order-card .profile-order-item-list > li > span { white-space: nowrap; }
.profile-order-product > div { min-width: 0; }
.profile-order-addons { margin: 0.35rem 0 0; padding-left: 1.2rem; color: var(--profile-muted); }
.profile-order-card .profile-order-addons li { display: list-item; padding: 0.25rem 0 0.25rem 0.15rem; border: 0; }
.profile-order-card .profile-order-addons li::marker { color: #9b5128; }
.profile-order-card .profile-order-addons li span:last-child { float: right; margin-left: 0.75rem; color: var(--profile-ink); white-space: nowrap; }

.profile-account-form label {
    margin-top: 0.35rem;
    color: #454940;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-account-form .form-control {
    min-height: 48px;
    border-color: #dedfd8;
    border-radius: 8px;
    font-size: 1rem;
}

.profile-photo-controls {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.profile-photo-controls span {
    color: var(--profile-muted);
    font-size: 0.72rem;
}

.profile-account-form-footer {
    display: flex;
    flex-wrap: wrap;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
}

.profile-account-form-footer p {
    margin: 0;
    color: var(--profile-sage-ink);
    font-size: 0.78rem;
}

.profile-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-left: auto;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.profile-nav-back:hover { color: var(--giliw-cream); }

.profile-member-since {
    margin: 1rem 0 0;
    color: var(--profile-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.profile-member-since i { margin-right: 0.3rem; }
.profile-member-since time { display: inline-block; }
.profile-identity > .profile-primary-button { margin-top: 1rem; }
.profile-identity > .profile-text-button { display: block; margin: 0.5rem auto 0; }

.profile-photo-editor {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--profile-line);
}

.profile-photo-preview {
    display: grid;
    place-items: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 50%;
    background: #ede2d6;
    color: var(--profile-sage-ink);
    font-size: 1.75rem;
    font-weight: 600;
}

.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-crop-dialog {
    box-sizing: border-box;
    width: min(440px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 1.5rem;
    overflow-y: auto;
    border: 1px solid var(--profile-line);
    border-radius: 20px;
    background: var(--profile-paper);
    color: var(--profile-ink);
    box-shadow: 0 24px 80px rgba(61, 43, 32, 0.25);
}
.profile-crop-dialog::backdrop { background: rgba(38, 26, 18, 0.65); }
.profile-crop-dialog h2 { font-size: 1.4rem; font-weight: 700; }
.profile-crop-dialog > p { color: var(--profile-muted); font-size: 0.85rem; }
.profile-crop-stage {
    position: relative;
    width: min(100%, 320px);
    margin: 1.25rem auto;
    overflow: hidden;
    border-radius: 12px;
    background: #e7e4dc;
}
.profile-crop-stage::after {
    position: absolute;
    inset: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 100px rgba(38, 26, 18, 0.55);
    pointer-events: none;
    content: '';
}
.profile-crop-stage canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
.profile-crop-stage canvas:active { cursor: grabbing; }
.profile-crop-stage:focus-within { outline: 3px solid var(--profile-coral); outline-offset: 3px; }
.profile-crop-zoom { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; }
.profile-crop-dialog input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--profile-coral); }
.profile-crop-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1rem; }
.profile-photo-controls .form-control { width: 100%; }
.profile-photo-controls .form-control::file-selector-button { padding: 0.75rem; }
.profile-optional { color: var(--profile-muted); font-weight: 400; }
.profile-field-help { margin: 0; color: var(--profile-muted); font-size: 0.8rem; }
.profile-record-heading { margin: 2rem 0 0; font-size: 1rem; font-weight: 600; }
.profile-form-actions { display: flex; gap: 0.65rem; margin-left: auto; }
.profile-cancel-button {
    min-height: 46px;
    padding: 0.6rem 1rem;
    border: 1px solid #d5ccc3;
    border-radius: 10px;
    background: #fff;
    color: var(--profile-ink);
    font-size: 0.85rem;
}

.profile-cancel-button:disabled,
.profile-edit-button:disabled { opacity: 0.55; cursor: default; }
.profile-account-form-footer .is-error,
.profile-account-form .form-control:focus {
    border-color: var(--profile-coral);
    box-shadow: 0 0 0 3px rgba(155, 81, 40, 0.12);
}

.profile-page button:focus-visible,
.profile-page a:focus-visible {
    outline: 3px solid var(--profile-coral);
    outline-offset: 3px;
}

.profile-panel { scroll-margin-top: 140px; }
.profile-order-receipts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}
.profile-order-receipts a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--profile-line);
    border-radius: 8px;
    color: var(--profile-sage-ink);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}
.profile-order-receipts a:hover { background: #edf2ec; }
@media (max-width: 767.98px) {
    .profile-main { padding-top: 96px; }
}
@media (max-width: 480px) {
    .profile-photo-editor { align-items: flex-start; flex-direction: column; }
    .profile-account-form { padding: 1rem; }
    .profile-form-actions { width: 100%; }
    .profile-form-actions > button { flex: 1; }
}
