.aun-account-page {
    width: 100%;
    padding: clamp(56px, 8vw, 96px) 20px;
}

.aun-account-page--form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
    min-height: calc(100svh - 96px);
    padding-block: clamp(40px, 6vw, 72px);
}

.aun-account-card {
    width: min(100%, 470px);
    margin-inline: auto;
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 48px;
    letter-spacing: 0;
}

.aun-account-card--mypage {
    width: min(100%, 760px);
}

.aun-account-card--message {
    display: grid;
    gap: 32px;
}

.aun-account-card__title {
    font-size: clamp(2.6rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    margin: 0 0 44px;
}

.aun-account-card--mypage .aun-account-card__title,
.aun-account-card--message .aun-account-card__title {
    text-align: left;
    margin-bottom: 0;
}

.aun-account-form {
    display: grid;
    gap: 22px;
}

.aun-account-field {
    display: grid;
    gap: 10px;
}

.aun-account-field__label,
.aun-account-plan__title,
.aun-account-profile__label,
.aun-account-status__label {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.4;
}

.aun-account-field__control {
    width: 100%;
    height: 56px;
    border: 2px solid #000;
    background: #fff;
    padding: 0 16px;
    font-size: 1.6rem;
    font-weight: 700;
}

.aun-account-field__control:focus {
    border-color: #1a73e8;
    outline: none;
}

.aun-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    color: #fff !important;
    background: #000;
    border: 2px solid #000;
    padding: 12px 18px;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    transition: color .2s ease, background-color .2s ease;
}

.aun-account-button--outline {
    color: #000 !important;
    background: #fff;
}

@media (hover: hover) {
    .aun-account-button:hover {
        color: #000 !important;
        background: #fff;
    }

    .aun-account-button--outline:hover {
        color: #fff !important;
        background: #000;
    }
}

.aun-account-form .aun-account-button {
    margin-top: 18px;
}

.aun-account-link-row {
    margin-top: 20px;
    text-align: center;
}

.aun-account-link-row a {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.5;
}

@media (hover: hover) {
    .aun-account-link-row a:hover,
    .aun-account-logout:hover {
        text-decoration: underline;
    }
}

.aun-account-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 40px 0;
}

.aun-account-plan {
    display: grid;
    gap: 10px;
}

.aun-account-alert {
    color: #b00020;
    background: #fff5f6;
    border: 1px solid #b00020;
    padding: 12px 14px;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.6;
}

.aun-account-mypage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.aun-account-eyebrow {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.3;
    color: #777;
    margin: 0 0 8px;
}

.aun-account-logout {
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.5;
}

.aun-account-profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.aun-account-profile > div,
.aun-account-status {
    border: 1px solid #d9d9d9;
    padding: 18px;
}

.aun-account-profile__label,
.aun-account-status__label {
    display: block;
    color: #777;
    margin-bottom: 6px;
}

.aun-account-profile strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.6rem;
    line-height: 1.5;
}

.aun-account-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.aun-account-status__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 34px;
    color: #000;
    background: #f1f1f1;
    padding: 4px 12px;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.4;
}

.aun-account-status__badge--active {
    color: #fff;
    background: #008f3a;
}

.aun-account-status__badge--scheduled {
    color: #000;
    background: #ffd84d;
}

.aun-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.aun-account-actions .aun-account-button:only-child {
    grid-column: 1 / -1;
}

.aun-account-subscription {
    border-top: 1px solid #d9d9d9;
    margin-top: 32px;
    padding-top: 28px;
}

.aun-account-subscription__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.aun-account-subscription__head h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin: 0;
}

.aun-account-subscription__text,
.aun-account-subscription__note {
    color: #111;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.8;
    margin: 0;
}

.aun-account-subscription__note {
    color: #555;
}

.aun-account-cancel-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.aun-account-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #111;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.7;
}

.aun-account-check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: #000;
}

.aun-account-button--danger {
    color: #fff !important;
    background: #b00020;
    border-color: #b00020;
}

@media (hover: hover) {
    .aun-account-button--danger:hover {
        color: #b00020 !important;
        background: #fff;
    }
}

.aun-account-favorites {
    border-top: 1px solid #d9d9d9;
    margin-top: 32px;
    padding-top: 28px;
}

.aun-account-favorites__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.aun-account-favorites__head h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin: 0;
}

.aun-account-favorites__head a {
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.5;
}

.aun-account-favorites__empty {
    color: #555;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.7;
    margin: 0;
}

.aun-account-favorites__list {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.aun-account-favorites__list a {
    display: block;
    color: #000;
    border: 1px solid #d9d9d9;
    padding: 13px 14px;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.5;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .aun-account-page {
        padding: 82px 12px 40px;
    }

    .aun-account-page--form {
        min-height: calc(100vh - 72px);
        min-height: calc(100svh - 72px);
        padding-block: 28px 48px;
    }

    .aun-account-card {
        border-radius: 14px;
        padding: 34px 28px;
    }

    .aun-account-card__title {
        margin-bottom: 34px;
    }

    .aun-account-mypage-head,
    .aun-account-status {
        display: grid;
    }

    .aun-account-profile,
    .aun-account-actions {
        grid-template-columns: 1fr;
    }

    .aun-account-favorites__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .aun-account-subscription__head {
        align-items: flex-start;
        flex-direction: column;
    }
}
