body.welluna-account {
    --portal-ink: #382d3e;
    --portal-muted: #625767;
    --portal-line: #e2d9e3;
    --portal-plum: #58446a;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    color: var(--portal-ink);
    background: linear-gradient(150deg, #eee6f2, #faf6f0 45%, #f7f3f7);
    font: 16px/1.5 "Segoe UI", Aptos, sans-serif;
}

.portal-wrap { width: min(100% - 36px, 900px); margin-inline: auto; }
.portal-header { border-bottom: 1px solid var(--portal-line); background: #fffdfb; }
.portal-header .portal-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 67px; }
.portal-brand { color: var(--portal-plum); text-decoration: none; font-weight: 700; }
.portal-brand span { font-size: 1.4em; margin-right: 4px; }
.portal-main { padding-block: clamp(28px, 5vw, 62px) 32px; }
.portal-main h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.028em; }
.portal-lead { max-width: 52ch; color: var(--portal-muted); margin: 12px 0 21px; }
.portal-email { overflow-wrap: anywhere; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 18px; }
.portal-panel { background: #fffdfa; border: 1px solid var(--portal-line); border-radius: 15px; padding: 20px; min-width: 0; }
.portal-panel h2 { font-size: 1.16rem; font-weight: 700; line-height: 1.25; }
.portal-panel p { color: var(--portal-muted); margin-top: 8px; }
.portal-panel p + .portal-button { margin-top: 12px; }
.portal-deletion { max-width: 680px; margin-top: 16px; }
.portal-form { display: grid; justify-items: start; gap: 11px; margin-top: 13px; }
.portal-form label { display: grid; gap: 4px; width: 100%; font-size: .88rem; font-weight: 600; }
.portal-form input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d0c5d4; border-radius: 7px; padding: 8px 10px; font: inherit; background: #fff; color: var(--portal-ink); }
.portal-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #cfc2d5;
    border-radius: 8px;
    background: #fffdfa;
    color: var(--portal-plum);
    font: inherit;
    font-size: .89rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
.portal-button:hover { background: #f4edf7; }
.portal-button.is-primary { color: #fff; border-color: var(--portal-plum); background: var(--portal-plum); }
.portal-button.is-primary:hover { background: #49365c; }
.portal-button.is-danger { color: #fff; background: #8d3644; border-color: #8d3644; }
.portal-button.is-danger:hover { background: #732734; }
.portal-main a:not(.portal-button), .portal-footer a { color: var(--portal-plum); text-underline-offset: 3px; }
.portal-access { display: inline-block; padding: 4px 10px; border-radius: 7px; background: #e8efe3; color: #39553a; font-size: .86rem; font-weight: 650; }
.portal-feedback { display: block; margin-top: 13px; padding: 10px 12px; border: 1px solid #cfddc6; border-radius: 8px; background: #edf3e9; color: #39553a; }
.portal-feedback.is-error { background: #fbecee; border-color: #ebcbd1; color: #7e3443; }
.portal-footer { padding-block: 18px 30px; border-top: 1px solid var(--portal-line); }
.portal-footer nav { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 8px; font-size: .88rem; }
.welluna-account :focus-visible { outline: 3px solid #9a6bbb; outline-offset: 2px; }
.auth-shell .auth-tab-strip.auth-tab-strip--account { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 590px) {
    .portal-wrap { width: calc(100% - 26px); }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-panel { padding: 16px; }
}
