.account-page {
    --account-gradient:radial-gradient(ellipse at 54% 14%,#ffcf7dcc,transparent 53%),linear-gradient(130deg,#bc281b 0%,#ea662b 20%,#ef9235 46%,#f2b74c 73%,#f0973a 89%,#eb8231 100%);
}

.account-page {
    min-height:100vh;
    min-height:100dvh;
    display:flow-root;
    background-color:#ef9235;
    background-image:var(--account-gradient);
    color:#261d15;
}

.account-page > header,.account-page > footer {display:none}

.account-shell {
    display:flex;
    min-height:100vh;
    min-height:100dvh;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:clamp(24px,5vh,56px) 0;
}

.account-panel {
    width:min(100%,29rem);
    margin:0;
    padding:clamp(20px,5vw,36px);
    border:1px solid #e4c9a6;
    border-radius:18px;
    background:#fff9ed;
    box-shadow:0 12px 36px #68300e29;
    text-align:center;
}

.account-home {
    display:inline-flex;
    align-items:center;
    min-height:44px;
    margin-bottom:4px;
}

.account-home img {display:block;width:175px;max-width:100%;height:auto}
.account-panel h1 {margin-bottom:1.35rem;color:#37271c}
.account-panel .account-form {width:100%;max-width:none;margin-inline:auto;text-align:start}
.account-panel .account-form label {font-weight:600}
.account-panel .account-form input {
    min-height:44px;
    border-color:#b79b7b;
    background:#fffefb;
    color:#261d15;
}

.account-fields {display:grid;gap:14px;min-width:0;margin:0;padding:0;border:0}
.account-fields small {margin-top:-7px;color:#5e4b3b}
.account-fields .cta {background:#863f24;font-weight:700}
.account-fields .cta:not(:disabled):hover {background:#6b331f}
.account-fields:disabled input {border-color:#d5c3ad;background:#f8f1e6;cursor:not-allowed}
.account-fields:disabled .cta {background:#dac8b1;color:#4f3e2f;cursor:not-allowed}

.account-consent {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:start;
    gap:8px;
    margin:2px 0;
    color:#49372a;
    line-height:1.4;
}

.account-panel .account-consent input {
    width:1.2rem;
    height:1.2rem;
    min-height:0;
    margin:2px 0 0;
    accent-color:#863f24;
}

.account-consent label {cursor:pointer}
.account-fields:disabled .account-consent label {cursor:not-allowed}
.account-consent a {color:#793d25;font-weight:700}

.account-switch {margin:22px 0 0;padding-top:17px;border-top:1px solid #e6d0b3;font-size:.94rem}
.account-switch a, .account-recovery a {font-weight:700;color:#793d25}
.account-recovery {margin:14px 0 0;font-size:.94rem}
.account-help {margin:0 0 1rem;color:#5e4b3b}

.account-legacy {
    margin-top:1rem;
    border-color:#e4c9a6;
    background:#fffdf6;
    text-align:start;
}

.account-legacy summary {
    min-height:44px;
    padding:11px 38px 11px 13px;
    border-radius:inherit;
    color:#653722;
    font-size:.94rem;
    font-weight:700;
}

.account-legacy summary::after {inset:50% 13px auto auto;transform:translateY(-50%);line-height:1}
.account-legacy > p {margin:0 13px 13px;color:#5e4b3b;font-size:.9rem}
.account-legacy .account-errors {margin:0 13px 12px}
.account-legacy .account-form {padding:0 13px 13px}

.account-legal {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px 16px;
    color:#3c291c;
    font-size:.87rem;
}

.account-errors {
    padding:12px 16px 12px 36px;
    border-radius:8px;
    background:#fff9ed;
    color:#8a3023;
    text-align:start;
}

.account-status {
    padding:10px 14px;
    border-radius:8px;
    background:#fff9ed;
    color:#261d15;
}

.account-page :focus-visible {outline-color:#403228}

.profile-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(ellipse at 52% 0%, #fff3d5, transparent 62%) #fbf6e9;
}

.profile-page > main {
    flex: 1;
    margin-block: 0;
}

.profile-page > footer {
    margin-block: 0;
}

.profile-panel {
    width: 100%;
    max-width: 1060px;
    margin: clamp(24px, 5vw, 58px) auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d4bea0;
    border-radius: clamp(18px, 3vw, 30px);
    background: #fffaf1;
    box-shadow: 0 15px 40px #66442512;
    color: #302419;
}

.profile-cover {
    position: relative;
    display: block;
    isolation: isolate;
    width: 100%;
    height: clamp(175px, 27vw, 285px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #b0c3a0;
    background: #e2ecdd;
    font: inherit;
    color: #39291c;
    cursor: pointer;
}

.profile-cover:focus-visible {
    outline-offset: -5px;
}

.profile-cover-default {
    background: radial-gradient(ellipse at 12% 15%, #fff4cf, transparent 62%),
        linear-gradient(113deg, #f3efd2, #b9d7ad 57%, #9bcdbb);
}

.profile-cover-default::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 31%;
    background: url('lagon.svg') center 53% / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 36%);
    content: "";
}

.profile-cover-brand {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 5%;
    width: clamp(112px, 26%, 250px);
    height: auto;
    transform: translateY(-50%);
}

.profile-cover-photo {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-cover-edit {
    position: absolute;
    inset-block-end: clamp(12px, 2vw, 22px);
    inset-inline-end: clamp(12px, 2vw, 22px);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .45rem .85rem;
    border: 1px solid #a98a66;
    border-radius: 11px;
    background: #fffaf0;
    box-shadow: 0 3px 11px #21180e26;
    font-size: .9rem;
    font-weight: 700;
}

.profile-cover:hover .profile-cover-edit {background: #f7e7c9}
.profile-cover-edit svg {flex: none; width: 1.1rem; height: 1.1rem}

.profile-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 2vw, 18px);
    min-height: 104px;
    padding: 0 clamp(16px, 3vw, 32px) clamp(18px, 3vw, 31px);
}

.profile-avatar {
    position: relative;
    align-self: start;
    display: grid;
    place-items: center;
    width: clamp(58px, 12vw, 82px);
    aspect-ratio: 1;
    margin-top: -24px;
    padding: 0;
    border: 4px solid #fffaf1;
    border-radius: 50%;
    background: #2c4b3d;
    color: #fff9e9;
    font: 700 clamp(1.2rem, 3vw, 1.7rem)/1 Georgia, serif;
    cursor: pointer;
}

.profile-avatar-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.profile-avatar-edit {
    position: absolute;
    inset-block-end: -5px;
    inset-inline-end: -5px;
    display: grid;
    width: clamp(24px, 4.5vw, 29px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #a98a66;
    border-radius: 50%;
    background: #fffaf0;
    color: #39291c;
    box-shadow: 0 2px 6px #21180e26;
}

.profile-avatar:hover .profile-avatar-edit,
.profile-avatar:focus-visible .profile-avatar-edit {background: #f7e7c9}
.profile-avatar-edit svg {width: 14px; height: 14px}

.profile-user {min-width: 0; padding-top: 14px; overflow-wrap: anywhere}
.profile-user h1 {margin: 0; font: 700 clamp(1.35rem, 4vw, 2rem)/1.12 Georgia, serif}
.profile-user p {margin: .3rem 0 0; color: #594735; font-size: .9rem}
.profile-user .profile-email {color: #3b4638}

.profile-status {
    margin: 0 clamp(16px, 3vw, 32px) clamp(18px, 3vw, 31px);
    padding: .65rem .9rem;
    border-radius: 9px;
    background: #edf2e4;
    color: #2c4b3d;
    font-size: .93rem;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    padding-top: 14px;
}

.profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .5rem .75rem;
    border: 1px solid #b09370;
    border-radius: 9px;
    background: #fffaf1;
    color: #39291c;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.24;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.profile-action:hover {background: #f8ead7}
.profile-tracking {border-color: #31513e; background: #31513e; color: #fffaf0}
.profile-tracking:hover {background: #254132}
.profile-action-delete {border-color: #bd9484; color: #842e23}

.profile-dialog {
    width: min(calc(100% - 24px), 505px);
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: clamp(17px, 4vw, 30px);
    border: 1px solid #d0b89a;
    border-radius: clamp(16px, 3vw, 24px);
    background: #fffaf1;
    box-shadow: 0 18px 65px #35220e52;
    color: #302419;
}

.profile-dialog::backdrop {background: #231c15b0}
.profile-dialog-head {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px}
.profile-dialog-head h2 {margin: 0; font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.1}

.profile-dialog-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d0b89a;
    border-radius: 50%;
    background: #fffdf8;
    color: inherit;
    font: 1.45rem/1 Arial, sans-serif;
    cursor: pointer;
}

.profile-dialog-close:hover {background: #f8ead7}
.profile-form {width: 100%; max-width: none; gap: 11px}
.profile-form > * {min-width: 0; margin: 0}
.profile-form small {color: #5f4a39}
.profile-form label {font-weight: 600}
.profile-form input:not([type="checkbox"]) {min-height: 44px; border-color: #b79b7b; background: #fffefb; color: #261d15}
.profile-form .profile-delete-button {background: #8a3023}

.profile-form input[type="file"]::file-selector-button {
    margin-inline-end: .65rem;
    padding: .3rem .64rem;
    border: 1px solid #b09370;
    border-radius: 6px;
    background: #f8ead7;
    color: #39291c;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.profile-banner-preview,
.profile-avatar-preview {
    display: block;
    background: #e2ecdd;
    object-fit: cover;
}

.profile-banner-preview {
    width: 100%;
    height: clamp(92px, 24vw, 145px);
    border-radius: 9px;
}

.profile-avatar-preview {
    width: clamp(92px, 30vw, 132px);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
}

.profile-image-reset {margin-top: .7rem}
.profile-image-reset button {width: 100%}

.profile-confirmation {
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    cursor:pointer;
}

.profile-confirmation input {
    flex:none;
    width:1.2rem;
    height:1.2rem;
    margin:0;
    accent-color:#8a3023;
}

@media (max-width: 840px) {
    .profile-identity {grid-template-columns: auto minmax(0, 1fr)}
    .profile-actions {grid-column: 1 / -1; padding-top: 0}
}

@media (max-width: 520px) {
    .profile-actions {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))}
    .profile-actions .profile-action-delete {grid-column: 1 / -1}
}
