:root {
    --color-bg: #fbf7f4;
    --color-bg-soft: #f8f1ef;
    --color-surface: #fffdfb;
    --color-surface-soft: #f6ecef;
    --color-ink: #302b2d;
    --color-muted: #766b6e;
    --color-line: #eadde0;
    --color-accent: #b85d73;
    --color-accent-deep: #7a2f45;
    --color-sage: #6f8172;
    --shadow-soft: 0 10px 30px rgba(77, 45, 55, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    background: var(--color-bg);
}

body {
    margin: 0;
    min-width: 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
    color: var(--color-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

main {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 24px 0 40px;
}

.discover-page__header {
    padding: 4px 0 18px;
}

.discover-page__header h1,
.member-profile h1 {
    margin: 0;
    color: var(--color-accent-deep);
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.discover-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.discover-page__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    color: var(--color-muted);
}

.discover-page__pagination a {
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
}

.discover-page__empty {
    margin: 32px 0;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-muted);
    text-align: center;
}

.member-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 253, 251, 0.94);
    box-shadow: var(--shadow-soft);
}

.member-card__link {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    min-width: 0;
}

.member-card__body {
    min-width: 0;
}

.member-card h2 {
    margin: 0 0 4px;
    color: var(--color-ink);
    font-size: 1.08rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.member-card p {
    margin: 3px 0;
    color: var(--color-muted);
    font-size: 0.94rem;
    overflow-wrap: anywhere;
}

.member-card__tags {
    color: var(--color-sage);
}

.member-profile {
    width: min(100% - 32px, 720px);
}

.member-profile__notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
    line-height: 1.5;
}

.member-profile__hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.member-profile__summary {
    min-width: 0;
}

.member-profile__summary p {
    margin: 6px 0 0;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.member-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.member-profile__actions form {
    margin: 0;
}

.member-profile__actions button,
.member-profile__login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    background: var(--color-accent);
    color: #fffdfb;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.member-profile__login-link {
    border-color: var(--color-line);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.member-profile__details {
    margin-top: 16px;
}

.member-profile__details dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.member-profile__details dl > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 253, 251, 0.86);
}

.member-profile__details dt {
    color: var(--color-muted);
}

.member-profile__details dd {
    margin: 0;
    color: var(--color-ink);
    overflow-wrap: anywhere;
}

.member-profile__albums {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 253, 251, 0.9);
    box-shadow: var(--shadow-soft);
}

.member-profile__albums-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.member-profile__albums h2 {
    margin: 0;
    color: var(--color-accent-deep);
    font-size: 1.08rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.member-profile__albums-empty {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.member-profile__album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
}

.member-profile__album-card {
    display: grid;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

.member-profile__album-card img,
.member-profile__album-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    object-fit: cover;
    object-position: center;
}

.member-profile__album-card figcaption {
    color: var(--color-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.avatar {
    display: block;
    inline-size: 80px;
    block-size: 80px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(184, 93, 115, 0.2);
    border-radius: 50%;
    background: var(--color-surface-soft);
}

.avatar--approved {
    object-fit: cover;
    object-position: center;
}

.avatar--placeholder {
    position: relative;
    background: radial-gradient(circle at 50% 34%, #fffaf7 0 18%, #efd6dc 19% 35%, #e8c9d1 36% 100%);
}

.avatar--placeholder::after {
    content: "";
    position: absolute;
    inset: 58% 22% 16%;
    border-radius: 999px;
    background: rgba(122, 47, 69, 0.18);
}

.avatar--reviewing {
    background: linear-gradient(135deg, #fff8ef, #eedee2);
}

.avatar--rejected {
    background: linear-gradient(135deg, #f9eeee, #e8c7cf);
}

.avatar--hidden,
.avatar--missing {
    background: linear-gradient(135deg, #fbf4f1, #e9dfe1);
}

.member-profile__hero .avatar {
    inline-size: 112px;
    block-size: 112px;
}

.home-page {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 28px 0 44px;
}

.home-page__hero {
    padding: 30px 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 253, 251, 0.96), rgba(248, 241, 239, 0.92)),
        var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.home-page__eyebrow {
    margin: 0 0 10px;
    color: var(--color-sage);
    font-size: 0.9rem;
    letter-spacing: 0;
}

.home-page__title {
    margin: 0;
    color: var(--color-accent-deep);
    font-size: 2rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.home-page__slogan {
    max-width: 34rem;
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.home-page__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-accent-deep);
    font-weight: 600;
}

.home-page__action--primary {
    border-color: var(--color-accent);
    background: var(--color-accent-deep);
    color: #fffdfb;
}

.home-page__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.home-card {
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 253, 251, 0.9);
    box-shadow: var(--shadow-soft);
}

.home-card h2 {
    margin: 0 0 8px;
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.home-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.register-body {
    background:
        linear-gradient(180deg, rgba(251, 247, 244, 0.98) 0%, rgba(248, 241, 239, 0.98) 100%),
        var(--color-bg);
}

.register-page {
    width: min(100% - 32px, 680px);
    padding: 24px 0 44px;
}

.register-page__header {
    padding-top: 20px;
}

.register-page__header h1,
.register-form h2 {
    margin: 0 0 14px;
    color: var(--color-accent-deep);
    letter-spacing: 0;
}

.register-page__header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
}

.register-form h2 {
    font-size: 1.18rem;
    line-height: 1.35;
}

.register-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.register-form__section {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(255, 253, 251, 0.94);
    box-shadow: var(--shadow-soft);
}

.register-form__row {
    display: grid;
    gap: 12px;
}

.register-form__field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--color-ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.register-form input,
.register-form select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fffdfb;
    color: var(--color-ink);
    font: inherit;
}

.register-form input:focus,
.register-form select:focus {
    border-color: rgba(184, 93, 115, 0.72);
    outline: 3px solid rgba(184, 93, 115, 0.15);
    outline-offset: 1px;
}

.register-form__actions {
    display: grid;
    gap: 10px;
}

.register-form button[type="submit"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: #fffdfb;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.register-form button[type="submit"]:focus {
    outline: 3px solid rgba(184, 93, 115, 0.2);
    outline-offset: 2px;
}

.register-errors {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(122, 47, 69, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 244, 246, 0.94);
    color: var(--color-accent-deep);
}

.register-errors p {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 680px) {
    main {
        padding-top: 36px;
    }

    .discover-page__grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }

    .member-card__link {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .member-card .avatar {
        inline-size: 88px;
        block-size: 88px;
    }

    .home-page {
        padding-top: 42px;
    }

    .home-page__hero {
        padding: 42px;
    }

    .home-page__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 374px) {
    main,
    .member-profile,
    .home-page {
        width: min(100% - 24px, 960px);
    }

    .discover-page__header h1,
    .member-profile h1,
    .home-page__title {
        font-size: 1.5rem;
    }

    .home-page__hero {
        padding: 22px 16px;
    }

    .home-page__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .member-card__link {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .member-card .avatar {
        inline-size: 72px;
        block-size: 72px;
    }

    .member-profile__hero {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .member-profile__hero .avatar {
        inline-size: 88px;
        block-size: 88px;
    }

    .member-profile__details dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .member-profile__album-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin member detail */
.admin-shell .admin-member-detail {
    width: calc(100% - 32px);
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.admin-shell .admin-member-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-shell .admin-member-detail__header h1 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.2;
}

.admin-shell .admin-member-detail__back {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.admin-shell .admin-member-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-shell .admin-member-card {
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 18px;
}

.admin-shell .admin-member-card h2 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.25;
}

.admin-shell .admin-member-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.admin-shell .admin-member-field {
    min-width: 0;
}

.admin-shell .admin-member-field .label {
    display: block;
    margin-bottom: 4px;
    color: rgba(55, 43, 47, 0.62);
    font-size: 13px;
}

.admin-shell .admin-member-field strong {
    display: block;
    overflow-wrap: anywhere;
    color: #33272b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.admin-shell .admin-member-detail__empty {
    margin: 0;
    color: rgba(55, 43, 47, 0.72);
    line-height: 1.6;
}

@media (max-width: 720px) {
    .admin-shell .admin-member-detail {
        width: calc(100% - 20px);
        padding-top: 16px;
    }

    .admin-shell .admin-member-detail__header {
        display: block;
    }

    .admin-shell .admin-member-detail__grid,
    .admin-shell .admin-member-fields {
        grid-template-columns: 1fr;
    }
}

/* Admin dashboard */
.admin-shell .admin-dashboard {
    width: calc(100% - 32px);
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.admin-shell .admin-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.admin-shell .admin-dashboard__quick-links,
.admin-shell .admin-dashboard__audit {
    margin-top: 18px;
}

.admin-shell .admin-dashboard__quick-links h2,
.admin-shell .admin-dashboard__audit h2 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.25;
}

.admin-shell .admin-dashboard__quick-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shell .admin-dashboard__quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(80, 43, 55, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-shell .admin-dashboard__quick-links p {
    margin: 12px 0 0;
    color: rgba(55, 43, 47, 0.72);
    line-height: 1.6;
}

.admin-shell .admin-dashboard__audit {
    overflow-x: auto;
}

.admin-shell .admin-dashboard__audit table {
    min-width: 640px;
}

@media (max-width: 720px) {
    .admin-shell .admin-dashboard {
        width: calc(100% - 20px);
        padding-top: 16px;
    }

    .admin-shell .admin-dashboard__grid {
        grid-template-columns: 1fr;
    }
}

.account-albums {
    width: min(960px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.account-albums__header,
.account-albums__upload,
.account-albums__list {
    margin-bottom: 18px;
}

.account-albums__header h1,
.account-albums__upload h2,
.account-albums__list h2 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.account-albums__header p,
.account-albums__empty,
.album-upload-form__help,
.album-upload-form__status {
    color: rgba(55, 43, 47, 0.72);
    line-height: 1.6;
}

.album-upload-form {
    display: grid;
    gap: 12px;
    max-width: 680px;
}

.album-upload-form__picker {
    display: grid;
    gap: 8px;
}

.album-upload-form input[type="file"] {
    width: 100%;
}

.album-upload-form button {
    min-height: 44px;
}

.album-upload-queue {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.album-upload-queue__item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.album-upload-queue__preview {
    width: 84px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(80, 43, 55, 0.06);
}

.album-upload-queue__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.album-upload-queue__meta {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.album-upload-queue__title,
.album-upload-queue__state,
.album-upload-queue__error {
    overflow-wrap: anywhere;
}

.album-upload-queue__title {
    font-size: 14px;
    line-height: 1.3;
}

.album-upload-queue__state {
    width: max-content;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(80, 43, 55, 0.08);
    color: rgba(55, 43, 47, 0.78);
    font-size: 12px;
    line-height: 1.4;
}

.album-upload-queue__item.is-uploading .album-upload-queue__state {
    background: rgba(143, 91, 43, 0.14);
    color: #70451f;
}

.album-upload-queue__item.is-success .album-upload-queue__state {
    background: rgba(48, 113, 82, 0.14);
    color: #276245;
}

.album-upload-queue__item.is-failed .album-upload-queue__state {
    background: rgba(156, 54, 72, 0.14);
    color: #8c2f43;
}

.album-upload-queue__progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(80, 43, 55, 0.1);
}

.album-upload-queue__progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #8f5b2b;
    transition: width 160ms ease;
}

.album-upload-queue__item.is-success .album-upload-queue__progress-bar {
    background: #307152;
}

.album-upload-queue__item.is-failed .album-upload-queue__progress-bar {
    background: #9c3648;
}

.album-upload-queue__error {
    color: #8c2f43;
    font-size: 13px;
    line-height: 1.5;
}

.album-upload-queue__retry {
    width: max-content;
    min-height: 36px;
    padding: 0 14px;
}

.account-albums__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.account-albums__item {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.account-albums__item img,
.account-albums__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #f4ece8, #eadcdf);
}

.account-albums__meta {
    display: grid;
    gap: 4px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.account-albums__meta span {
    overflow-wrap: anywhere;
    color: rgba(55, 43, 47, 0.72);
}

.account-notifications {
    width: min(960px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.account-notifications__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.account-notifications__header h1 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.account-notifications__header p,
.account-notifications__empty,
.account-notification__meta {
    color: rgba(55, 43, 47, 0.72);
}

.account-notifications__header form,
.account-notification__actions form {
    margin: 0;
}

.account-notifications__membership-entry {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.account-notifications__membership-entry h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.3;
}

.account-notifications__membership-entry p {
    margin: 0;
    color: rgba(55, 43, 47, 0.72);
    line-height: 1.6;
}

.account-notifications__membership-entry form {
    flex: 0 0 auto;
    margin: 0;
}

.account-notifications__membership-entry button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #7a3e4b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.account-notifications__membership-entry button:focus-visible {
    outline: 3px solid rgba(143, 91, 43, 0.28);
    outline-offset: 2px;
}

.account-notifications__list {
    display: grid;
    gap: 12px;
}

.account-notification {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.account-notification--unread {
    border-color: rgba(143, 91, 43, 0.36);
    background: rgba(255, 250, 242, 0.92);
}

.account-notification__body {
    min-width: 0;
}

.account-notification__body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.account-notification__body p {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.account-notification__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.account-notification__actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px;
}

.account-notification__actions a,
.account-notifications__pagination a {
    color: #7a3e4b;
    font-weight: 700;
}

.account-notifications__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 720px) {
    .album-upload-queue {
        grid-template-columns: 1fr;
    }

    .account-albums__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-notifications__header,
    .account-notifications__membership-entry,
    .account-notification {
        display: block;
    }

    .account-notifications__membership-entry form {
        margin-top: 12px;
    }

    .account-notification__actions {
        justify-content: flex-start;
        margin-top: 12px;
    }
}
.account-avatar {
    width: min(960px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.account-avatar__header,
.account-avatar__current,
.account-avatar__upload {
    margin-bottom: 18px;
}

.account-avatar__header h1,
.account-avatar__current h2,
.account-avatar__upload h2 {
    margin: 0 0 8px;
    line-height: 1.25;
}

.account-avatar__header p,
.account-avatar__preview p,
.avatar-upload-form__help,
.avatar-upload-form__status {
    color: rgba(55, 43, 47, 0.72);
    line-height: 1.6;
}

.account-avatar__preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.account-avatar__preview .avatar {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #f4ece8, #eadcdf);
}

.avatar-upload-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(80, 43, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.avatar-upload-form__picker {
    display: inline-flex;
    width: max-content;
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    background: #7a3e4b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.avatar-upload-form__picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.avatar-upload-form__local-preview {
    width: 128px;
    height: 128px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4ece8, #eadcdf);
}

.avatar-upload-form__local-preview[aria-hidden="true"] {
    display: none;
}

.avatar-upload-form__local-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.avatar-upload-form.is-uploading button,
.avatar-upload-form.is-uploading .avatar-upload-form__picker {
    opacity: 0.62;
    pointer-events: none;
}

.admin-avatar-review__preview {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    background: #f4ece8;
}

@media (max-width: 720px) {
    .account-avatar__preview {
        display: grid;
    }
}

.account-blocks {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 72px;
}

.account-blocks__header,
.account-blocks__notice,
.account-blocks__empty,
.account-blocks__item {
    margin-top: 16px;
}

.account-blocks__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eadfd8;
    padding: 14px 0;
}

.account-blocks__item h2 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.account-blocks__item p {
    margin: 0;
    color: #7c6f69;
    font-size: 0.9rem;
}

.member-profile__block-button {
    background: #7a2634;
    border-color: #7a2634;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px max(16px, calc((100vw - 1120px) / 2));
    border-bottom: 1px solid rgba(80, 43, 55, 0.12);
    background: rgba(255, 252, 249, 0.94);
    backdrop-filter: blur(10px);
}

.site-header__brand {
    color: #442b34;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__link,
.mobile-bottom-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #4b343c;
    font-weight: 700;
    text-decoration: none;
}

.site-header__link {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
}

.site-header__link--active,
.site-header__link:hover {
    background: rgba(143, 91, 43, 0.1);
}

.unread-badge {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #8c2f43;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 720px) {
    body {
        padding-bottom: 70px;
    }

    .site-header {
        padding: 10px 14px;
    }

    .site-header__nav {
        gap: 4px;
    }

    .site-header__link {
        padding: 0 8px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-top: 1px solid rgba(80, 43, 55, 0.14);
        background: rgba(255, 252, 249, 0.96);
        backdrop-filter: blur(10px);
    }

    .mobile-bottom-nav__link {
        min-height: 58px;
        flex-direction: column;
        font-size: 13px;
    }

    .mobile-bottom-nav__link--active {
        color: #8c2f43;
    }

    .mobile-bottom-nav__badge {
        position: absolute;
        top: 7px;
        right: calc(50% - 28px);
    }
}

.avatar-uploader__crop[aria-hidden="true"],
.avatar-upload-form__local-preview[aria-hidden="true"] {
    display: none;
}

.avatar-uploader__crop {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.avatar-uploader__viewport {
    position: relative;
    width: min(100%, 280px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(80, 43, 55, 0.18);
    border-radius: 999px;
    background: rgba(246, 236, 239, 0.72);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.avatar-uploader__viewport:active {
    cursor: grabbing;
}

.avatar-uploader__viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(122, 62, 75, 0.22);
    pointer-events: none;
}

.avatar-uploader__viewport img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    transform-origin: top left;
    -webkit-user-drag: none;
    user-select: none;
}

.avatar-uploader__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.avatar-uploader__controls label {
    grid-column: 1 / -1;
    color: rgba(55, 43, 47, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.avatar-uploader__controls input[type="range"] {
    width: 100%;
    min-width: 0;
}

.avatar-uploader__controls button,
.avatar-upload-form button {
    min-height: 40px;
    border: 1px solid rgba(122, 62, 75, 0.72);
    border-radius: 8px;
    background: #fffdfb;
    color: #7a3e4b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.avatar-upload-form > button[type="submit"] {
    width: min(100%, 220px);
    background: #7a3e4b;
    color: #fff;
}

.avatar-upload-form button:disabled,
.avatar-upload-form.is-uploading .avatar-upload-form__picker {
    opacity: 0.62;
    pointer-events: none;
}

@media (max-width: 520px) {
    .avatar-uploader__controls {
        grid-template-columns: 1fr 1fr;
    }

    .avatar-uploader__controls input[type="range"] {
        grid-column: 1 / -1;
    }
}


/* Frontend P0 invite trial usability */
.home-page--invite {
    padding-top: 34px;
}

.home-page--invite .home-page__hero {
    display: grid;
    gap: 16px;
    overflow: hidden;
    border: 1px solid rgba(122, 62, 75, 0.12);
    background: linear-gradient(135deg, rgba(255, 252, 249, 0.96), rgba(246, 236, 239, 0.72));
}

.home-page__trial-note,
.discover-page__eyebrow,
.member-profile__eyebrow,
.account-home__eyebrow,
.account-notifications__eyebrow,
.registration-closed__eyebrow {
    margin: 0;
    color: #8c2f43;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
}

.home-page__action--quiet {
    border: 1px solid rgba(122, 62, 75, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: #7a3e4b;
}

.discover-page--polished .discover-page__header--rich {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 2px 20px;
    border-bottom: 1px solid rgba(80, 43, 55, 0.12);
}

.discover-page__header--rich h1,
.account-home__header h1,
.account-notifications__header h1 {
    margin: 0;
    color: #2f2528;
}

.discover-page__header--rich p,
.account-home__header p,
.registration-closed__panel p {
    max-width: 680px;
    margin: 0;
    color: rgba(55, 43, 47, 0.72);
    line-height: 1.7;
}

.member-card--polished {
    border: 1px solid rgba(80, 43, 55, 0.11);
    border-radius: 8px;
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 12px 28px rgba(80, 43, 55, 0.08);
}

.member-card--polished .member-card__link {
    align-items: stretch;
}

.member-card__summary,
.member-card__meta {
    margin: 0;
    color: rgba(55, 43, 47, 0.74);
    font-size: 0.94rem;
    line-height: 1.55;
}

.member-card__meta--quiet {
    color: rgba(55, 43, 47, 0.58);
}

.member-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(122, 62, 75, 0.1);
    color: #7a3e4b;
    font-size: 0.9rem;
    font-weight: 800;
}

.member-profile--polished .member-profile__hero {
    border: 1px solid rgba(80, 43, 55, 0.11);
    border-radius: 8px;
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 14px 30px rgba(80, 43, 55, 0.08);
}

.member-profile__actions {
    gap: 10px;
}

.member-profile__message-link,
.member-profile__actions button,
.member-profile__login-link {
    min-height: 42px;
    border-radius: 8px;
    font-weight: 800;
}

.member-profile__details-empty,
.account-home__card--disabled .account-home__card-body p {
    color: rgba(55, 43, 47, 0.62);
}

.account-home,
.account-notifications--focused,
.registration-closed {
    width: min(100% - 32px, 900px);
    margin: 0 auto;
}

.account-home__header,
.account-notifications__header,
.registration-closed__panel {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

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

.account-home__card {
    min-width: 0;
    border: 1px solid rgba(80, 43, 55, 0.11);
    border-radius: 8px;
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 10px 24px rgba(80, 43, 55, 0.07);
}

.account-home__card a,
.account-home__card span {
    display: block;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.account-home__card-title {
    display: block;
    margin-bottom: 6px;
    color: #372b2f;
    font-weight: 800;
}

.account-home__card-body {
    margin: 0;
    color: rgba(55, 43, 47, 0.68);
    line-height: 1.6;
}

.account-home__card--disabled {
    opacity: 0.76;
}

.registration-closed {
    padding: 42px 0;
}

.registration-closed__panel {
    padding: 24px;
    border: 1px solid rgba(80, 43, 55, 0.11);
    border-radius: 8px;
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 14px 30px rgba(80, 43, 55, 0.08);
}

.registration-closed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.registration-closed__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: #7a3e4b;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.registration-closed__actions a + a {
    border: 1px solid rgba(122, 62, 75, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: #7a3e4b;
}

@media (max-width: 720px) {
    .mobile-bottom-nav--guest {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-bottom-nav--logged-in {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .account-home,
    .account-notifications--focused,
    .registration-closed {
        width: min(100% - 24px, 900px);
    }

    .account-home__grid {
        grid-template-columns: 1fr;
    }

    .member-profile__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .member-profile__message-link,
    .member-profile__login-link {
        grid-column: 1 / -1;
    }
}

/* Package 1 formal layout, navigation, and account center */
.site-header {
    border-bottom: 1px solid rgba(80, 43, 55, 0.12);
    background: rgba(255, 252, 249, 0.94);
    backdrop-filter: blur(12px);
}

.site-header__brand {
    color: #4a2730;
    font-weight: 900;
    letter-spacing: 0;
}

.site-header__link,
.mobile-bottom-nav__link {
    border-radius: 8px;
    color: rgba(55, 43, 47, 0.74);
    font-weight: 800;
    letter-spacing: 0;
}

.site-header__link--active,
.mobile-bottom-nav__link--active {
    background: rgba(122, 62, 75, 0.12);
    color: #7a3e4b;
}

.mobile-bottom-nav--primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-home--formal .account-home__header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(80, 43, 55, 0.1);
}

.account-home__card-link {
    display: grid;
    gap: 8px;
    min-height: 148px;
    text-decoration: none;
}

.account-home__card-action {
    align-self: end;
    width: fit-content;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(122, 62, 75, 0.1);
    color: #7a3e4b;
    font-size: 0.88rem;
    font-weight: 800;
}

.account-home__card--disabled .account-home__card-action {
    background: rgba(80, 43, 55, 0.07);
    color: rgba(55, 43, 47, 0.54);
}

.account-notifications__header {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(80, 43, 55, 0.1);
}

.account-notifications__header form button,
.account-notification__actions button,
.account-notification__actions a {
    min-height: 36px;
    border-radius: 8px;
    font-weight: 800;
}

.account-notifications__empty {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 1px solid rgba(80, 43, 55, 0.1);
    border-radius: 8px;
    background: rgba(255, 253, 251, 0.92);
    color: rgba(55, 43, 47, 0.68);
    box-shadow: 0 10px 24px rgba(80, 43, 55, 0.06);
}

.account-notifications__empty h2,
.account-notifications__empty p {
    margin: 0;
}

@media (max-width: 720px) {
    .site-header__nav {
        gap: 6px;
    }

    .site-header__link {
        min-height: 36px;
        padding: 0 10px;
    }

    .mobile-bottom-nav--primary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mobile-bottom-nav__link {
        min-width: 0;
        min-height: 58px;
        padding: 6px 2px;
    }

    .account-notifications__header {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.account-detail {
    max-width: 430px;
    margin: 0 auto;
    padding: 18px 16px 96px;
}

.account-detail__header,
.account-detail__summary,
.account-detail__fields,
.account-detail__notice {
    background: #fffaf4;
    border: 1px solid rgba(116, 51, 62, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(66, 35, 44, 0.06);
    margin-top: 14px;
    padding: 18px;
}

.account-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.account-detail__eyebrow {
    color: #8d6a32;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.account-detail__header h1,
.account-detail__summary h2,
.account-detail__notice h2 {
    color: #4d1f2a;
    font-size: 1.25rem;
    margin: 0;
}

.account-detail__header p,
.account-detail__summary p,
.account-detail__notice p {
    color: #765b62;
    line-height: 1.65;
    margin: 8px 0 0;
}

.account-detail__subtle-link {
    color: #7b2d3a;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.account-detail__summary {
    align-items: center;
    display: flex;
    gap: 14px;
}

.account-detail__avatar .avatar {
    height: 76px;
    width: 76px;
}

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

.account-detail__field {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(116, 51, 62, 0.1);
    border-radius: 12px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.account-detail__field span {
    color: #8c6a70;
    font-size: 0.82rem;
}

.account-detail__field strong {
    color: #42232c;
    font-size: 0.98rem;
    font-weight: 700;
}

.account-detail__field em {
    color: #8d6a32;
    font-size: 0.8rem;
    font-style: normal;
}

.account-detail__field--pending strong,
.account-detail__field--pending em {
    color: #9a4a57;
}

.account-home__logout-form {
    align-items: flex-start;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: 8px;
    height: 100%;
    padding: 0;
    text-align: left;
    width: 100%;
}

.account-home__logout-button {
    align-self: start;
    background: #74333e;
    border: 0;
    border-radius: 999px;
    color: #fffaf4;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 14px;
}

.account-home__logout-button:focus-visible,
.account-detail__subtle-link:focus-visible {
    outline: 2px solid #b08a3d;
    outline-offset: 3px;
}

/* Guest landing and auth visual shell */
.brand-mark {
    display: block;
    flex: 0 0 auto;
}

.brand-mark--header {
    width: 30px;
    height: 30px;
}

.brand-mark--hero {
    width: 86px;
    height: 86px;
    padding: 12px;
    border: 1px solid rgba(122, 47, 69, 0.14);
    border-radius: 24px;
    background: rgba(255, 253, 251, 0.82);
    box-shadow: 0 16px 42px rgba(80, 43, 55, 0.1);
}

.brand-mark--auth {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header__link--primary {
    border: 1px solid rgba(122, 47, 69, 0.16);
    background: rgba(122, 47, 69, 0.08);
    color: #7a2f45;
}

.guest-landing {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 34px 0 56px;
}

.guest-hero {
    position: relative;
    display: grid;
    gap: 22px;
    min-height: 520px;
    padding: clamp(28px, 6vw, 76px);
    overflow: hidden;
    border: 1px solid rgba(122, 47, 69, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 18%, rgba(176, 138, 61, 0.18), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(184, 93, 115, 0.16), transparent 32%),
        linear-gradient(135deg, #fffaf4 0%, #f7ecee 54%, #efe1dc 100%);
    box-shadow: 0 24px 70px rgba(80, 43, 55, 0.12);
}

.guest-hero::after {
    content: '';
    position: absolute;
    right: clamp(20px, 7vw, 86px);
    bottom: clamp(20px, 5vw, 68px);
    width: clamp(150px, 24vw, 280px);
    aspect-ratio: 1;
    border: 1px solid rgba(122, 47, 69, 0.16);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 253, 251, 0.86), rgba(255, 253, 251, 0.12) 58%, transparent 60%),
        repeating-radial-gradient(circle at 50% 50%, rgba(122, 47, 69, 0.16) 0 1px, transparent 1px 18px);
    opacity: 0.66;
}

.guest-hero__brand,
.guest-hero__copy,
.guest-actions {
    position: relative;
    z-index: 1;
}

.guest-hero__brand {
    display: grid;
    gap: 12px;
    align-content: start;
}

.guest-hero__eyebrow {
    margin: 0;
    color: #7a2f45;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0;
}

.guest-hero h1 {
    max-width: 10em;
    margin: 0;
    color: #3f222b;
    font-size: clamp(2.7rem, 7vw, 6.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.guest-hero__copy {
    display: grid;
    gap: 12px;
    max-width: 640px;
}

.guest-hero__slogan,
.guest-hero__summary {
    margin: 0;
    color: rgba(55, 43, 47, 0.78);
    line-height: 1.75;
}

.guest-hero__slogan {
    color: #5a2d39;
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 800;
}

.guest-hero__summary {
    font-size: 1.02rem;
}

.guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-self: end;
}

.guest-actions__link,
.auth-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(122, 47, 69, 0.18);
    border-radius: 999px;
    background: rgba(255, 253, 251, 0.76);
    color: #7a2f45;
    font-weight: 800;
    text-decoration: none;
}

.guest-actions__link--primary,
.auth-form button {
    border-color: #7a2f45;
    background: #7a2f45;
    color: #fffaf4;
}

.guest-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.feature-card {
    display: grid;
    gap: 10px;
    min-height: 184px;
    padding: 18px;
    border: 1px solid rgba(122, 47, 69, 0.1);
    border-radius: 18px;
    background: rgba(255, 253, 251, 0.88);
    box-shadow: 0 14px 36px rgba(80, 43, 55, 0.08);
}

.feature-card__icon {
    width: 42px;
    height: 42px;
}

.feature-card h2,
.feature-card p {
    margin: 0;
}

.feature-card h2 {
    color: #3f222b;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.feature-card p {
    color: rgba(55, 43, 47, 0.68);
    line-height: 1.65;
}

.auth-shell {
    width: min(100% - 32px, 460px);
    margin: 0 auto;
    padding: 42px 0 72px;
}

.auth-card {
    padding: 28px;
    border: 1px solid rgba(122, 47, 69, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(176, 138, 61, 0.12), transparent 34%),
        rgba(255, 253, 251, 0.94);
    box-shadow: 0 22px 60px rgba(80, 43, 55, 0.11);
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-bottom: 18px;
    text-align: center;
}

.auth-brand strong {
    color: #3f222b;
    font-size: 1.28rem;
}

.auth-brand span {
    color: #7a2f45;
    font-size: 0.88rem;
    font-weight: 800;
}

.auth-card h1 {
    margin: 0 0 18px;
    color: #3f222b;
    font-size: 1.45rem;
    text-align: center;
    letter-spacing: 0;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: rgba(55, 43, 47, 0.72);
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(122, 47, 69, 0.14);
    border-radius: 14px;
    background: #fffaf4;
    color: #302b2d;
    font: inherit;
    padding: 0 13px;
}

.auth-form input:focus {
    border-color: #b08a3d;
    outline: 2px solid rgba(176, 138, 61, 0.2);
}

.auth-panel__errors {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid rgba(122, 47, 69, 0.16);
    border-radius: 14px;
    background: rgba(122, 47, 69, 0.06);
    color: #7a2f45;
}

.auth-panel__errors p {
    margin: 0;
}

.auth-panel__links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: #7a2f45;
    font-weight: 800;
}

@media (max-width: 720px) {
    .mobile-bottom-nav--guest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-landing {
        width: min(100% - 24px, 1120px);
        padding-top: 22px;
    }

    .guest-hero {
        min-height: 470px;
        border-radius: 18px;
    }

    .guest-hero::after {
        right: -34px;
        bottom: -28px;
        width: 220px;
    }

    .guest-feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .auth-shell {
        width: min(100% - 24px, 460px);
        padding-top: 28px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 18px;
    }
}

@media (max-width: 374px) {
    .guest-actions,
    .auth-panel__links {
        display: grid;
        grid-template-columns: 1fr;
    }
}
/* Guest landing immersive hero layout */
.guest-landing--immersive {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.guest-hero--immersive {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 64px) clamp(22px, 4vw, 48px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #170d08;
    box-shadow: none;
    isolation: isolate;
}

.guest-hero--immersive::before,
.guest-hero--immersive::after {
    content: none;
    display: none;
}

.guest-hero--immersive .guest-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.guest-hero--immersive .guest-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.guest-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(16, 9, 5, 0.94) 0%, rgba(24, 14, 8, 0.84) 30%, rgba(38, 22, 12, 0.42) 58%, rgba(16, 9, 5, 0.16) 100%),
        linear-gradient(180deg, rgba(10, 7, 4, 0.2) 0%, rgba(10, 7, 4, 0.02) 38%, rgba(10, 7, 4, 0.76) 100%);
}

.guest-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 22px;
    width: min(48rem, 48vw);
    min-height: min(620px, calc(100vh - 160px));
    min-height: min(620px, calc(100svh - 160px));
}

.guest-hero--immersive .guest-hero__brand,
.guest-hero--immersive .guest-hero__copy,
.guest-hero--immersive .guest-actions {
    z-index: 2;
}

.guest-hero--immersive .brand-mark--hero {
    width: 74px;
    height: 74px;
    padding: 10px;
    border-color: rgba(216, 173, 115, 0.36);
    background: rgba(20, 12, 8, 0.34);
    box-shadow: none;
}

.guest-hero--immersive .guest-hero__eyebrow {
    color: #d9ad72;
    font-size: 0.96rem;
}

.guest-hero--immersive h1 {
    max-width: 10em;
    color: #f8ead8;
    font-size: clamp(3rem, 7vw, 6.6rem);
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.36);
}

.guest-hero--immersive .guest-hero__copy {
    max-width: 680px;
}

.guest-hero--immersive .guest-hero__slogan,
.guest-hero--immersive .guest-hero__summary {
    color: rgba(255, 244, 226, 0.84);
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.guest-hero--immersive .guest-hero__slogan {
    color: #fff3df;
    font-size: clamp(1.2rem, 2.15vw, 1.72rem);
}

.guest-hero--immersive .guest-actions {
    align-self: start;
}

.guest-hero--immersive .guest-actions__link {
    min-width: 168px;
    border-color: rgba(216, 173, 115, 0.52);
    background: rgba(18, 10, 6, 0.42);
    color: #f8ead6;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
}

.guest-hero--immersive .guest-actions__link--primary {
    border-color: rgba(238, 196, 123, 0.9);
    background: linear-gradient(135deg, #d2a15e 0%, #b77a35 100%);
    color: #211209;
}

.guest-hero--immersive .guest-feature-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 1050px);
    margin: clamp(24px, 5vh, 54px) auto 0;
}

.guest-hero--immersive .feature-card {
    min-height: 0;
    padding: 18px;
    border-color: rgba(216, 173, 115, 0.28);
    border-radius: 16px;
    background: rgba(20, 12, 8, 0.52);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.guest-hero--immersive .feature-card__icon {
    width: 42px;
    height: 42px;
    filter: brightness(0) saturate(100%) invert(76%) sepia(31%) saturate(715%) hue-rotate(349deg) brightness(91%) contrast(91%);
}

.guest-hero--immersive .feature-card h2 {
    color: #f8ead8;
}

.guest-hero--immersive .feature-card p {
    color: rgba(255, 244, 226, 0.78);
}

@media (max-width: 820px) {
    .guest-hero--immersive {
        min-height: calc(100vh - 58px);
        min-height: calc(100svh - 58px);
        grid-template-rows: minmax(0, 1fr) auto;
        padding: clamp(18px, 5vw, 28px) 18px 24px;
    }

    .guest-hero--immersive .guest-hero__media img {
        height: 125%;
        object-position: 62% center;
        transform: translateY(-16%);
        transform-origin: center top;
    }

    .guest-hero__overlay {
        background:
            linear-gradient(180deg, rgba(10, 6, 4, 0.08) 0%, rgba(10, 6, 4, 0.18) 34%, rgba(10, 6, 4, 0.72) 60%, rgba(10, 6, 4, 0.94) 100%);
    }

    .guest-hero__content {
        align-content: end;
        gap: 14px;
        width: 100%;
        max-width: none;
        min-height: 58vh;
        min-height: 58svh;
        padding-top: 38vh;
        padding-top: 38svh;
    }

    .guest-hero--immersive .brand-mark--hero {
        width: 58px;
        height: 58px;
        padding: 8px;
    }

    .guest-hero--immersive h1 {
        font-size: clamp(2.35rem, 14vw, 4.2rem);
    }

    .guest-hero--immersive .guest-hero__slogan {
        font-size: clamp(1.05rem, 5vw, 1.38rem);
    }

    .guest-hero--immersive .guest-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .guest-hero--immersive .guest-actions__link {
        width: 100%;
        min-width: 0;
    }

    .guest-hero--immersive .guest-feature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }

    .guest-hero--immersive .feature-card {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 6px 12px;
        padding: 14px;
    }

    .guest-hero--immersive .feature-card p {
        grid-column: 2;
        line-height: 1.55;
    }
}

@media (max-width: 374px) {
    .guest-hero--immersive {
        padding-right: 14px;
        padding-left: 14px;
    }

    .guest-hero__content {
        padding-top: 34vh;
        padding-top: 34svh;
    }
}
/* Discover member card visual shell */
.discover-page {
    width: min(100% - 32px, 1080px);
    padding: 28px 0 96px;
}

.discover-page--polished .discover-page__header--rich {
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: linear-gradient(180deg, var(--color-surface), var(--color-surface-soft));
    box-shadow: var(--shadow-soft);
}

.discover-page__header--rich h1 {
    color: var(--color-ink);
    font-size: clamp(1.7rem, 2.2vw, 2.15rem);
}

.discover-page__header--rich p {
    max-width: 680px;
    color: var(--color-muted);
}

.discover-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

.discover-page__empty {
    display: grid;
    place-items: center;
    min-height: 150px;
    margin: 22px 0;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    color: var(--color-muted);
    text-align: center;
}

.discover-page__empty h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.5;
}

.discover-page__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    color: var(--color-muted);
}

.discover-page__pagination a,
.discover-page__pagination span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 800;
}

.discover-page__pagination a {
    min-width: 82px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.discover-page__pagination a:hover,
.discover-page__pagination a:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-accent-deep);
    color: var(--color-surface);
}

.discover-page__pagination span {
    padding: 0 8px;
    color: var(--color-muted);
}

.member-card--polished {
    height: 100%;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.member-card--polished .member-card__link {
    min-height: 152px;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    height: 100%;
    padding: 18px;
    border-radius: inherit;
    background: var(--color-surface);
}

.member-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.member-card__avatar .avatar {
    inline-size: 96px;
    block-size: 96px;
    border-color: var(--color-line);
    background: var(--color-surface-soft);
}

.member-card__body {
    display: grid;
    gap: 10px;
    align-content: center;
}

.member-card__name {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.12rem;
    line-height: 1.28;
}

.member-card__meta-list {
    display: grid;
    gap: 3px;
}

.member-card__summary,
.member-card__meta {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.member-card__summary {
    color: var(--color-ink);
    font-weight: 800;
}

.member-card__meta--quiet {
    color: var(--color-muted);
}

.member-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    font-size: 0.9rem;
    font-weight: 900;
}

.member-card__link:hover .member-card__cta,
.member-card__link:focus-visible .member-card__cta {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-surface);
}

@media (min-width: 760px) {
    .discover-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1080px) {
    .discover-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .discover-page {
        width: min(100% - 24px, 1080px);
        padding: 20px 0 88px;
    }

    .discover-page--polished .discover-page__header--rich {
        padding: 16px;
    }

    .member-card--polished .member-card__link {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        min-height: 132px;
        padding: 14px;
    }

    .member-card__avatar .avatar {
        inline-size: 82px;
        block-size: 82px;
    }

    .member-card__body {
        gap: 8px;
    }

    .member-card__cta {
        justify-self: stretch;
        min-height: 38px;
    }
}

@media (max-width: 374px) {
    .member-card--polished .member-card__link {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .member-card__avatar .avatar {
        inline-size: 72px;
        block-size: 72px;
    }
}
/* Member detail visual shell */
.member-profile.member-profile--polished {
    width: min(100% - 32px, 960px);
    padding: 30px 0 104px;
}

.member-profile__shell {
    display: grid;
    gap: 18px;
}

.member-profile--polished .member-profile__notice {
    margin: 0 0 16px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.member-profile--polished .member-profile__hero {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: linear-gradient(180deg, var(--color-surface), var(--color-surface-soft));
    box-shadow: var(--shadow-soft);
}

.member-profile__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.member-profile__avatar .avatar,
.member-profile__hero .avatar {
    inline-size: 136px;
    block-size: 136px;
    border-color: var(--color-line);
    background: var(--color-surface-soft);
}

.member-profile__summary {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.member-profile__identity {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.member-profile__eyebrow {
    color: var(--color-sage);
}

.member-profile__summary-line {
    margin: 0;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.member-profile__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.member-profile__action-form {
    margin: 0;
    min-width: 0;
}

.member-profile__actions .member-profile__action-button,
.member-profile__actions button,
.member-profile__message-link,
.member-profile__login-link {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    font: inherit;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
}

.member-profile__actions .member-profile__action-button:hover,
.member-profile__actions .member-profile__action-button:focus-visible,
.member-profile__actions button:hover,
.member-profile__actions button:focus-visible,
.member-profile__message-link:hover,
.member-profile__message-link:focus-visible,
.member-profile__login-link:hover,
.member-profile__login-link:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-surface);
}

.member-profile__actions .member-profile__block-button,
.member-profile__actions .member-profile__login-link {
    border-color: var(--color-line);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.member-profile--polished .member-profile__details,
.member-profile--polished .member-profile__albums {
    margin-top: 0;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius) * 2);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.member-profile__detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.member-profile__details .member-profile__detail-row {
    display: grid;
    grid-template-columns: minmax(76px, 0.55fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
}

.member-profile__details .member-profile__detail-row dt {
    color: var(--color-muted);
    font-weight: 800;
}

.member-profile__details .member-profile__detail-row dd {
    margin: 0;
    color: var(--color-ink);
    overflow-wrap: anywhere;
}

.member-profile__albums-header {
    margin-bottom: 14px;
}

.member-profile__albums h2 {
    color: var(--color-ink);
}

.member-profile__albums-empty {
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-muted);
}

.member-profile__album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.member-profile__album-card {
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
}

.member-profile__album-card img,
.member-profile__album-image,
.member-profile__album-placeholder {
    border-color: var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
}

.member-profile__album-caption {
    color: var(--color-muted);
}

.member-profile__album-action-form {
    margin: 0;
}

.member-profile__album-like-button {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-accent-deep);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.member-profile__album-like-button:hover,
.member-profile__album-like-button:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-surface);
}

@media (max-width: 760px) {
    .member-profile.member-profile--polished {
        width: min(100% - 24px, 960px);
        padding: 22px 0 92px;
    }

    .member-profile--polished .member-profile__hero {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        text-align: center;
    }

    .member-profile__avatar {
        justify-content: center;
    }

    .member-profile__avatar .avatar,
    .member-profile__hero .avatar {
        inline-size: 112px;
        block-size: 112px;
    }

    .member-profile__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-profile__message-link,
    .member-profile__login-link {
        grid-column: 1 / -1;
    }

    .member-profile--polished .member-profile__details,
    .member-profile--polished .member-profile__albums {
        padding: 16px;
    }

    .member-profile__detail-list {
        grid-template-columns: 1fr;
    }

    .member-profile__details .member-profile__detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .member-profile__album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .member-profile__actions,
    .member-profile__album-grid {
        grid-template-columns: 1fr;
    }
}

/* Account center visual shell */
.account-home.account-shell,
.account-detail.account-shell,
.account-avatar.account-shell,
.account-albums.account-shell,
.account-blocks.account-shell {
    width: min(100% - 32px, 960px);
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 0 104px;
    color: var(--color-ink);
}

.account-shell__header,
.account-shell .account-card,
.account-form-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.account-shell__header {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 20px;
}

.account-shell__header h1,
.account-shell .account-card h2,
.account-shell .account-home__card-title {
    color: var(--color-ink);
}

.account-shell__header p,
.account-shell .account-home__card-body,
.account-shell .account-detail__header p,
.account-shell .account-detail__summary p,
.account-shell .account-detail__notice p,
.account-shell .account-avatar__header p,
.account-shell .account-avatar__preview p,
.account-shell .account-albums__header p,
.account-shell .account-albums__empty,
.account-shell .account-blocks__header p,
.account-shell .account-blocks__empty,
.account-shell .avatar-upload-form__help,
.account-shell .avatar-upload-form__status,
.account-shell .album-upload-form__help,
.account-shell .album-upload-form__status,
.account-shell .account-albums__meta span,
.account-shell .account-blocks__item p {
    color: var(--color-muted);
}

.account-shell .account-home__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-shell .account-home__card,
.account-shell .account-albums__item,
.account-shell .account-blocks__item {
    min-width: 0;
    overflow: hidden;
}

.account-shell .account-home__card-link,
.account-shell .account-home__logout-form {
    display: grid;
    gap: 10px;
    min-height: 156px;
    padding: 18px;
}

.account-shell .account-home__card-link > span,
.account-shell .account-home__logout-form > span {
    padding: 0;
}

.account-shell .account-home__card-action {
    border-color: var(--color-accent);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.account-shell .account-home__card--disabled {
    opacity: 0.68;
}

.account-detail.account-shell .account-detail__header,
.account-detail.account-shell .account-detail__summary,
.account-detail.account-shell .account-detail__fields,
.account-detail.account-shell .account-detail__notice {
    margin-top: 18px;
    padding: 20px;
}

.account-detail.account-shell .account-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.account-detail.account-shell .account-detail__eyebrow,
.account-detail.account-shell .account-detail__field em {
    color: var(--color-sage);
}

.account-detail.account-shell .account-detail__subtle-link {
    color: var(--color-accent-deep);
}

.account-detail.account-shell .account-detail__summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-detail.account-shell .account-detail__avatar .avatar {
    width: 84px;
    height: 84px;
}

.account-detail.account-shell .account-detail__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-detail.account-shell .account-detail__field {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
}

.account-detail.account-shell .account-detail__field span {
    color: var(--color-muted);
}

.account-detail.account-shell .account-detail__field strong {
    color: var(--color-ink);
}

.account-avatar.account-shell .account-avatar__header,
.account-avatar.account-shell .account-avatar__current,
.account-avatar.account-shell .account-avatar__upload,
.account-albums.account-shell .account-albums__header,
.account-albums.account-shell .account-albums__upload,
.account-albums.account-shell .account-albums__list,
.account-blocks.account-shell .account-blocks__header,
.account-blocks.account-shell .account-blocks__empty,
.account-blocks.account-shell .account-blocks__item {
    margin-top: 18px;
    padding: 20px;
}

.account-avatar.account-shell .account-avatar__preview,
.account-shell .account-form-panel,
.account-shell .album-upload-queue__item {
    display: grid;
    gap: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
}

.account-avatar.account-shell .account-avatar__preview {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 16px;
}

.account-avatar.account-shell .account-avatar__preview .avatar {
    width: 104px;
    height: 104px;
    background: var(--color-surface-soft);
}

.account-shell .account-form-panel {
    padding: 16px;
}

.account-shell .avatar-upload-form__picker,
.account-shell .album-upload-form__picker,
.account-shell .account-home__logout-button,
.account-shell .avatar-upload-form button,
.account-shell .album-upload-form button,
.account-shell .avatar-uploader__controls button,
.account-shell .account-blocks__item button,
.account-shell .album-upload-queue__retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-accent-deep);
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.account-shell .avatar-upload-form__picker,
.account-shell .album-upload-form__picker,
.account-shell .account-home__logout-button,
.account-shell .avatar-upload-form > button[type="submit"],
.account-shell .album-upload-form > button[type="submit"] {
    background: var(--color-accent-deep);
    color: var(--color-surface);
}

.account-shell .avatar-upload-form__picker input,
.account-shell .album-upload-form__picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.account-shell .avatar-upload-form.is-uploading button,
.account-shell .avatar-upload-form.is-uploading .avatar-upload-form__picker,
.account-shell .album-upload-form button:disabled,
.account-shell .avatar-upload-form button:disabled {
    opacity: 0.62;
    pointer-events: none;
}

.account-shell .avatar-uploader__crop,
.account-shell .avatar-uploader__controls,
.account-shell .album-upload-form,
.account-shell .album-upload-queue,
.account-shell .account-albums__meta,
.account-shell .account-blocks__list {
    display: grid;
    gap: 12px;
}

.account-shell .avatar-uploader__viewport,
.account-shell .avatar-upload-form__local-preview,
.account-shell .album-upload-queue__preview,
.account-shell .account-albums__placeholder {
    border: 1px solid var(--color-line);
    background: var(--color-surface);
}

.account-shell .avatar-uploader__viewport::after {
    border-color: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-line);
}

.account-albums.account-shell .account-albums__grid,
.account-shell .album-upload-queue {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.account-shell .album-upload-queue__item {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 12px;
}

.account-shell .album-upload-queue__state,
.account-shell .album-upload-queue__item.is-uploading .album-upload-queue__state,
.account-shell .album-upload-queue__item.is-success .album-upload-queue__state,
.account-shell .album-upload-queue__item.is-failed .album-upload-queue__state {
    background: var(--color-surface);
    color: var(--color-accent-deep);
}

.account-shell .album-upload-queue__progress {
    background: var(--color-line);
}

.account-shell .album-upload-queue__progress-bar,
.account-shell .album-upload-queue__item.is-success .album-upload-queue__progress-bar,
.account-shell .album-upload-queue__item.is-failed .album-upload-queue__progress-bar {
    background: var(--color-accent-deep);
}

.account-shell .album-upload-queue__error {
    color: var(--color-accent-deep);
}

.account-shell .account-albums__item {
    display: grid;
    gap: 0;
}

.account-shell .account-albums__item img,
.account-shell .account-albums__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.account-blocks.account-shell .account-blocks__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.account-blocks.account-shell .account-blocks__item h2,
.account-blocks.account-shell .account-blocks__item p {
    margin: 0;
}

@media (max-width: 720px) {
    .account-home.account-shell,
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell {
        width: min(100% - 24px, 960px);
        padding: 20px 0 96px;
    }

    .account-shell .account-home__grid,
    .account-detail.account-shell .account-detail__fields,
    .account-albums.account-shell .account-albums__grid,
    .account-shell .album-upload-queue {
        grid-template-columns: 1fr;
    }

    .account-shell .avatar-upload-form__picker,
    .account-shell .album-upload-form__picker,
    .account-shell .account-home__logout-button,
    .account-shell .avatar-upload-form button,
    .account-shell .album-upload-form button,
    .account-shell .account-blocks__item button {
        width: 100%;
    }

    .account-detail.account-shell .account-detail__header,
    .account-avatar.account-shell .account-avatar__preview,
    .account-blocks.account-shell .account-blocks__item {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-shell .album-upload-queue__item {
        grid-template-columns: 84px minmax(0, 1fr);
    }
}

/* Account avatar cropper replacement */
.account-shell [data-component="account-avatar-cropper"] {
    gap: 16px;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__grid[aria-hidden="true"],
.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__preview[aria-hidden="true"] {
    display: none;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
    grid-template-areas:
        "workspace preview"
        "controls controls";
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__workspace {
    grid-area: workspace;
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    min-height: 320px;
    overflow: visible;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    touch-action: none;
    user-select: none;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__image {
    display: block;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    height: auto;
    opacity: 1;
    -webkit-user-drag: none;
    user-select: none;
}

.account-shell [data-component="account-avatar-cropper"] cropper-canvas,
.account-shell [data-component="account-avatar-cropper"] cropper-image,
.account-shell [data-component="account-avatar-cropper"] cropper-selection {
    max-width: 100%;
}

.account-shell [data-component="account-avatar-cropper"] cropper-canvas {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

.account-shell [data-component="account-avatar-cropper"] cropper-image {
    display: block;
    visibility: visible;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.account-shell [data-component="account-avatar-cropper"] cropper-selection {
    outline: 2px solid var(--color-accent);
}

.account-shell [data-component="account-avatar-cropper"] cropper-handle {
    background: var(--color-accent);
}

.account-shell [data-component="account-avatar-cropper"] cropper-grid {
    color: var(--color-line);
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__preview {
    grid-area: preview;
    justify-self: center;
    width: min(100%, 168px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__preview-image,
.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__controls {
    grid-area: controls;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    min-width: 0;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__zoom {
    width: 100%;
    min-width: 0;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__actions button {
    min-width: 116px;
}

@media (max-width: 720px) {
    .account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "workspace"
            "preview"
            "controls";
    }

    .account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__workspace {
        max-width: 100%;
        min-height: 240px;
    }

    .account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__preview {
        width: min(100%, 148px);
    }

    .account-shell [data-component="account-avatar-cropper"] .account-avatar-cropper__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Account avatar Cropper.js classic replacement */
.account-shell [data-component="account-avatar-cropper-classic"] {
    display: grid;
    gap: 18px;
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__grid[aria-hidden="true"],
.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__preview[aria-hidden="true"] {
    display: none;
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    align-items: start;
    gap: 18px;
    width: 100%;
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__workspace {
    position: relative;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__image {
    display: block;
    max-width: 100%;
    visibility: visible;
    opacity: 1;
}

.account-shell [data-component="account-avatar-cropper-classic"] .cropper-container,
.account-shell [data-component="account-avatar-cropper-classic"] .cropper-wrap-box,
.account-shell [data-component="account-avatar-cropper-classic"] .cropper-canvas,
.account-shell [data-component="account-avatar-cropper-classic"] .cropper-drag-box,
.account-shell [data-component="account-avatar-cropper-classic"] .cropper-crop-box {
    display: block;
    visibility: visible;
    max-width: 100%;
}

.account-shell [data-component="account-avatar-cropper-classic"] .cropper-container {
    background: var(--color-surface);
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__preview {
    display: grid;
    place-items: center;
    width: 168px;
    min-height: 168px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__preview-image,
.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    visibility: visible;
    opacity: 1;
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__controls {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__zoom {
    width: 100%;
    max-width: 100%;
    accent-color: var(--color-accent);
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__actions button {
    min-height: 44px;
}

@media (max-width: 720px) {
    .account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__grid {
        grid-template-columns: 1fr;
    }

    .account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__workspace {
        min-height: 260px;
    }

    .account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__preview {
        width: 148px;
        min-height: 148px;
        justify-self: center;
    }

    .account-shell [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
/* Messages and notifications visual shell */
.messages-inbox.message-shell,
.message-thread.message-shell,
.account-notifications.notification-shell {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 28px 0 96px;
}

.message-shell__header,
.notification-shell__header {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--color-line);
}

.message-shell__header h1,
.notification-shell__header h1 {
    margin: 0;
    color: var(--color-accent-deep);
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.message-shell__body,
.notification-list,
.message-thread__list {
    display: grid;
    gap: 12px;
}

.message-shell__empty,
.notification-shell__empty {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-muted);
    box-shadow: var(--shadow-soft);
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-list__item,
.notification-list__item {
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.message-list__item--unread,
.notification-list__item--unread {
    border-color: var(--color-accent);
    background: var(--color-surface-soft);
}

.message-list__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px;
    color: inherit;
}

.message-list__main,
.message-list__meta {
    min-width: 0;
}

.message-list__name {
    display: block;
    color: var(--color-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.message-list__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    font-weight: 800;
}

.message-thread__nav {
    margin-bottom: 12px;
}

.message-thread__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--color-accent-deep);
    font-weight: 800;
}

.message-thread__notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-ink);
}

.message-thread__list {
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.message-thread__item {
    display: flex;
    min-width: 0;
}

.message-thread__item--incoming {
    justify-content: flex-start;
}

.message-thread__item--outgoing {
    justify-content: flex-end;
}

.message-thread__bubble {
    max-width: min(72%, 640px);
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-ink);
}

.message-thread__item--outgoing .message-thread__bubble {
    border-color: var(--color-accent-deep);
    background: var(--color-accent-deep);
    color: var(--color-surface);
}

.message-thread__message-body {
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.message-thread__time {
    display: block;
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.message-thread__item--outgoing .message-thread__time {
    color: var(--color-surface);
}

.message-composer {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.message-composer__field {
    display: grid;
    gap: 8px;
}

.message-composer label {
    color: var(--color-ink);
    font-weight: 800;
}

.message-composer__input {
    width: 100%;
    min-height: 132px;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-ink);
    font: inherit;
    line-height: 1.6;
}

.message-composer__button,
.notification-actions__button,
.notification-actions__link,
.notification-pagination a,
.notification-shell__header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.notification-actions__link,
.notification-pagination a {
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.message-composer__button:focus-visible,
.notification-actions__button:focus-visible,
.notification-actions__link:focus-visible,
.notification-pagination a:focus-visible,
.message-list__link:focus-visible,
.message-thread__nav a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.notification-shell__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.notification-shell__summary {
    min-width: 0;
}

.notification-shell__summary p {
    margin: 6px 0 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.notification-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
}

.notification-list__body {
    min-width: 0;
}

.notification-list__body h2 {
    margin: 0 0 8px;
    color: var(--color-ink);
    font-size: 1.05rem;
    line-height: 1.35;
}

.notification-list__body p {
    margin: 0 0 10px;
    color: var(--color-ink);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.notification-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px;
}

.notification-actions form {
    margin: 0;
}

.notification-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--color-muted);
}

.notification-pagination span {
    color: var(--color-muted);
    font-weight: 700;
}

@media (max-width: 720px) {
    .messages-inbox.message-shell,
    .message-thread.message-shell,
    .account-notifications.notification-shell {
        width: min(100% - 24px, 960px);
        padding: 22px 0 108px;
    }

    .message-list__link,
    .notification-shell__header,
    .notification-list__item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .message-list__meta,
    .notification-actions {
        justify-content: flex-start;
    }

    .message-thread__bubble {
        max-width: 100%;
    }

    .message-thread__list,
    .message-composer,
    .notification-list__item,
    .message-shell__empty,
    .notification-shell__empty {
        padding: 14px;
    }

    .message-composer__button,
    .notification-actions__button,
    .notification-actions__link,
    .notification-shell__header button {
        width: 100%;
    }
}

/* Registration closed formal shell */
.registration-closed.auth-shell {
    width: min(100% - 32px, 480px);
    padding: 42px 0 72px;
}

.registration-closed__card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.auth-card__eyebrow.registration-closed__eyebrow {
    margin: 0;
    color: var(--color-accent-deep);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-card__title {
    margin: 0;
    color: var(--color-ink);
    letter-spacing: 0;
}

.auth-card__text.registration-closed__text {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.auth-card__actions.registration-closed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.registration-closed .auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.registration-closed .auth-button--secondary {
    border-color: var(--color-line);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.registration-closed .auth-button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .registration-closed.auth-shell {
        width: min(100% - 24px, 480px);
        padding: 28px 0 64px;
    }

    .auth-card__actions.registration-closed__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
/* Auth secondary formal shell */
.auth-secondary.auth-shell {
    width: min(100% - 32px, 480px);
    padding: 42px 0 72px;
}

.auth-secondary__card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.auth-secondary__eyebrow,
.auth-secondary__title,
.account-membership-status__title {
    margin: 0;
    color: var(--color-ink);
    letter-spacing: 0;
}

.auth-secondary__eyebrow {
    color: var(--color-accent-deep);
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-secondary__text,
.auth-secondary__notice,
.account-membership-status__text {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.auth-secondary__form {
    gap: 14px;
}

.auth-secondary__links,
.auth-secondary__actions,
.account-membership-status__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.auth-secondary .auth-button,
.auth-secondary .auth-form button,
.account-membership-status__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.auth-secondary .auth-button--secondary,
.auth-secondary__links a,
.account-membership-status__actions a + a {
    border: 1px solid var(--color-line);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
}

.auth-secondary .auth-button:focus-visible,
.auth-secondary .auth-form button:focus-visible,
.auth-secondary__links a:focus-visible,
.account-membership-status__actions a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.auth-secondary-status {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
}

.auth-secondary-status__panel {
    display: grid;
    gap: 16px;
    max-width: 560px;
    margin: 22px auto 0;
    padding: 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
    .auth-secondary.auth-shell,
    .auth-secondary-status {
        width: min(100% - 24px, 960px);
    }

    .auth-secondary.auth-shell {
        padding: 28px 0 64px;
    }

    .auth-secondary__links,
    .auth-secondary__actions,
    .account-membership-status__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-secondary-status__panel {
        margin-top: 16px;
        padding: 22px;
    }
}

/* Account album FilePond uploader */
.account-shell [data-component="account-album-uploader-filepond"] .album-upload-form__filepond {
    display: block;
    min-width: 0;
}

.account-shell [data-component="account-album-uploader-filepond"] [data-album-upload-queue] {
    display: none;
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--root {
    margin: 0;
    color: var(--color-ink);
    font: inherit;
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--panel-root {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--drop-label {
    min-height: 128px;
    color: var(--color-muted);
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--label-action {
    color: var(--color-accent-deep);
    text-decoration-color: var(--color-accent);
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--item-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--file,
.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-info,
.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-status {
    color: var(--color-ink);
}

.account-shell [data-component="account-album-uploader-filepond"] .album-upload-form__status {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
    font-weight: 700;
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 2.75rem;
    height: 1.875rem;
    padding: 0 0.55rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    box-shadow: none;
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-action-button svg {
    display: none;
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-action-button:hover,
.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-action-button:focus-visible {
    background: var(--color-accent);
}

.account-shell [data-component="account-album-uploader-filepond"] .account-filepond-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1.1;
    white-space: nowrap;
}

.account-shell [data-component="account-album-uploader-filepond"] .account-filepond-action--process {
    max-width: 6.5rem;
    white-space: normal;
}

.account-shell [data-component="account-album-uploader-filepond"] .filepond--progress-indicator,
.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-status-main,
.account-shell [data-component="account-album-uploader-filepond"] .filepond--file-status-sub {
    color: var(--color-accent-deep);
    font-weight: 700;
}

@media (max-width: 640px) {
    .account-shell [data-component="account-album-uploader-filepond"] .filepond--drop-label {
        min-height: 104px;
    }

    .account-shell [data-component="account-album-uploader-filepond"] .filepond--file-action-button {
        min-width: 2.5rem;
        padding: 0 0.45rem;
        font-size: 0.68rem;
    }
}



/* Account album FilePond thumbnail grid correction */
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid {
    max-width: none;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .album-upload-form__filepond {
    min-width: 0;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--root {
    margin: 0;
    min-height: 0;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--drop-label {
    min-height: 112px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-muted);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--list-scroller {
    margin-top: 14px;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item {
    width: calc(33.333% - 10px);
    min-width: 0;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--image-preview-wrapper,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--image-preview {
    border-radius: var(--radius);
    background: var(--color-surface-soft);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--image-preview-overlay,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--image-preview-overlay-idle,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--image-preview-overlay-success,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--image-preview-overlay-failure {
    display: none;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file {
    display: grid;
    align-content: end;
    min-height: 100%;
    padding: 10px;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-info,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-status {
    width: max-content;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-ink);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-info-main,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-status-main {
    color: var(--color-ink);
    font-weight: 800;
    line-height: 1.2;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-info-sub,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-status-sub {
    color: var(--color-muted);
    line-height: 1.2;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state="processing-complete"] .filepond--file-status-main,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state="processing-complete"] .filepond--file-status-sub {
    color: var(--color-sage);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state*="error"] .filepond--file-status-main,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state="load-invalid"] .filepond--file-status-main,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state*="error"] .filepond--file-status-sub,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state="load-invalid"] .filepond--file-status-sub {
    color: var(--color-accent-deep);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state="processing-complete"] .filepond--file-status-main::before {
    content: "✓";
    margin-right: 4px;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state*="error"] .filepond--file-status-main::before,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item[data-filepond-item-state="load-invalid"] .filepond--file-status-main::before {
    content: "×";
    margin-right: 4px;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-action-button {
    z-index: 5;
    min-width: 3rem;
    min-height: 2rem;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-accent-deep);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-action-button:hover,
.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--file-action-button:focus-visible {
    background: var(--color-accent-deep);
    color: var(--color-surface);
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .account-filepond-action {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
}

.account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .account-filepond-action--process {
    max-width: 7rem;
}

.account-albums.account-shell .account-albums__status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-accent-deep);
    line-height: 1.2;
}

.account-albums.account-shell .account-albums__item.is-approved .account-albums__status {
    color: var(--color-sage);
}

.account-albums.account-shell .account-albums__item.is-approved .account-albums__status::before {
    content: "✓";
    margin-right: 4px;
}

.account-albums.account-shell .account-albums__item.is-rejected .account-albums__status::before {
    content: "×";
    margin-right: 4px;
}

@media (max-width: 860px) {
    .account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item {
        width: calc(50% - 8px);
    }
}

@media (max-width: 520px) {
    .account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--item {
        width: 100%;
    }

    .account-shell [data-component="account-album-uploader-filepond"].album-upload-form--thumbnail-grid .filepond--drop-label {
        min-height: 96px;
    }
}


/* Account album uploader Uppy replacement */
.account-shell [data-component="account-album-uploader-uppy"].album-upload-form--uppy-grid {
    display: grid;
    gap: 18px;
}

.account-shell [data-component="account-album-uploader-uppy"] .album-upload-form__uppy {
    max-width: 100%;
    overflow: hidden;
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard {
    width: 100%;
    max-width: 100%;
    color: var(--color-ink);
    font-family: inherit;
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-inner {
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    color: var(--color-ink);
    overflow: hidden;
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-AddFiles {
    background: var(--color-surface);
    border-color: var(--color-line);
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-AddFiles-title,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-note,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item-name,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item-status,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-statusPrimary,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-statusSecondary {
    color: var(--color-ink);
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-note,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item-status,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-statusSecondary {
    color: var(--color-muted);
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-browse,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-actionBtn--upload {
    min-height: 44px;
    display: inline-flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-deep);
    cursor: pointer;
    pointer-events: auto;
    border-color: var(--color-accent-deep);
    border-radius: var(--radius);
    color: var(--color-surface);
    line-height: 1.2;
    text-align: center;
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-browse:hover,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-browse:focus-visible,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-actionBtn--upload:hover,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-actionBtn--upload:focus-visible {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-surface);
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item-preview {
    background: var(--color-bg-soft);
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item-previewImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar {
    background: var(--color-surface);
    border-color: var(--color-line);
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-progress {
    background: var(--color-sage);
}

.account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item-action,
.account-shell [data-component="account-album-uploader-uppy"] .uppy-StatusBar-actionBtn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-deep);
    line-height: 1.2;
    text-align: center;
}

.account-shell [data-component="account-album-uploader-uppy"] .album-upload-form__status {
    margin: 0;
    color: var(--color-muted);
}

@media (max-width: 640px) {
    .account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-inner {
        min-height: 340px;
    }

    .account-shell [data-component="account-album-uploader-uppy"] .uppy-Dashboard-Item {
        width: 100%;
    }
}


/* Account album uploader native thumbnail grid */
.account-shell [data-component="account-album-uploader-native"].album-upload-form--native-grid {
    display: grid;
    gap: 16px;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__native {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 22px;
    border: 1px dashed var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__native.is-dragging {
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__select,
.account-shell [data-component="account-album-uploader-native"] .album-upload-form__submit,
.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--color-accent-deep);
    border-radius: var(--radius);
    background: var(--color-accent-deep);
    color: var(--color-surface);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__select,
.account-shell [data-component="account-album-uploader-native"] .album-upload-form__submit {
    padding: 0 18px;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__select:hover,
.account-shell [data-component="account-album-uploader-native"] .album-upload-form__select:focus-visible,
.account-shell [data-component="account-album-uploader-native"] .album-upload-form__submit:hover,
.account-shell [data-component="account-album-uploader-native"] .album-upload-form__submit:focus-visible,
.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__action:hover,
.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__action:focus-visible {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-surface);
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__submit:disabled {
    border-color: var(--color-line);
    background: var(--color-surface-soft);
    color: var(--color-muted);
    cursor: default;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-form__hint,
.account-shell [data-component="account-album-uploader-native"] .album-upload-form__help,
.account-shell [data-component="account-album-uploader-native"] .album-upload-form__status {
    margin: 0;
    color: var(--color-muted);
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-actions {
    display: flex;
    justify-content: flex-start;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    min-width: 0;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-soft);
    color: var(--color-accent-deep);
    overflow: hidden;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__body {
    display: grid;
    gap: 8px;
    padding: 12px;
    min-width: 0;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__name,
.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__size {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--color-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__size {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-accent-deep);
    font-size: 0.88rem;
    line-height: 1.2;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card[data-status="reviewing"] .album-upload-native-card__status {
    color: var(--color-sage);
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__progress {
    height: 8px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--color-sage);
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-shell [data-component="account-album-uploader-native"] .album-upload-native-card__action {
    min-height: 38px;
    padding: 0 12px;
    background: var(--color-surface);
    color: var(--color-accent-deep);
}

@media (max-width: 640px) {
    .account-shell [data-component="account-album-uploader-native"] .album-upload-form__native {
        padding: 18px;
    }

    .account-shell [data-component="account-album-uploader-native"] .album-upload-actions,
    .account-shell [data-component="account-album-uploader-native"] .album-upload-form__submit,
    .account-shell [data-component="account-album-uploader-native"] .album-upload-form__select {
        width: 100%;
    }

    .account-shell [data-component="account-album-uploader-native"] .album-upload-native-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}


/* Account album management P0 */
.account-albums.account-shell .account-albums__notice {
    margin: 8px 0 0;
    color: var(--color-accent-deep);
    font-size: 14px;
    line-height: 1.5;
}

.account-albums.account-shell .account-albums__grid {
    grid-template-columns: repeat(auto-fill, 128px);
    justify-content: start;
    align-items: start;
    gap: 12px;
}

.account-albums.account-shell .account-albums__item {
    width: 128px;
    min-width: 0;
}

.account-albums.account-shell .account-albums__item img,
.account-albums.account-shell .account-albums__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.account-albums.account-shell .account-albums__meta {
    gap: 6px;
    padding: 8px;
    font-size: 12px;
}

.account-albums.account-shell .account-albums__delete-form {
    margin: 2px 0 0;
}

.account-albums.account-shell .account-albums__delete-button {
    width: 100%;
    min-height: 30px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-accent-deep);
    font-size: 12px;
    line-height: 1.2;
}

.account-albums.account-shell .account-albums__delete-button:disabled {
    opacity: 0.64;
}

@media (max-width: 720px) {
    .account-albums.account-shell .account-albums__grid {
        grid-template-columns: repeat(3, minmax(0, 108px));
        gap: 10px;
    }

    .account-albums.account-shell .account-albums__item {
        width: 100%;
    }
}

@media (max-width: 340px) {
    .account-albums.account-shell .account-albums__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.account-verification__header h1 {
  margin: 0;
}

.account-verification__panel {
  display: grid;
  gap: 16px;
}

.account-verification__status {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.account-verification__status strong {
  font-size: 1.1rem;
}

.account-verification__notice,
.account-verification__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.account-verification__notice {
  background: #eef7f1;
  color: #28543a;
}

.account-verification__error {
  background: #fff0f0;
  color: #8d2d2d;
}

.account-verification__form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.account-verification__form input[type="file"] {
  max-width: 100%;
}

.admin-real-person-verification__panel {
  margin-top: 18px;
}

.admin-real-person-verification table {
  width: 100%;
}

.admin-real-person-verification td,
.admin-real-person-verification th {
  vertical-align: middle;
}

.admin-real-person-verification td span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.9rem;
}

.admin-real-person-verification form {
  margin: 0;
}


.account-verification__camera {
  display: grid;
  gap: 14px;
}

.account-verification__challenge {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(80, 80, 80, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.account-verification__challenge strong {
  font-size: 56px;
  line-height: 1;
}

.account-verification__camera-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}

.account-verification__video,
.account-verification__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-verification__video[hidden],
.account-verification__canvas[hidden] {
  display: none;
}

.account-verification__camera-status {
  min-height: 1.5em;
}

.account-verification__runtime {
  margin: -4px 0 0;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.2;
}

.account-verification__runtime[hidden] {
  display: none;
}

.account-verification__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-real-person-verification__preview {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-top: 8px;
}


.member-profile__report {
    width: 100%;
    max-width: 22rem;
}

.member-profile__report > summary {
    cursor: pointer;
    font-weight: 700;
}

.member-profile__report-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.member-profile__report-form label {
    display: grid;
    gap: 0.35rem;
}

.member-profile__report-form select {
    width: 100%;
    min-height: 2.75rem;
}

.admin-reports table form {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
}

.account-membership {
    display: grid;
    gap: 16px;
}

.account-membership__panel {
    display: grid;
    gap: 16px;
}

.account-membership__header {
    display: grid;
    gap: 8px;
}

.account-membership__header h1,
.account-membership__header p {
    margin: 0;
}

.account-membership__plans {
    display: grid;
    gap: 12px;
}

.account-membership__plan {
    border: 1px solid var(--color-border, #ded7d1);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 12px;
    background: var(--color-surface, #fff);
}

.account-membership__plan h2,
.account-membership__price,
.account-membership__status {
    margin: 0;
}

.account-membership__price {
    font-weight: 700;
}

.account-membership__button {
    width: 100%;
}

/* Login page style inheritance */
body:has(.auth-shell--login) {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 14%, rgba(210, 161, 94, 0.24), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(122, 47, 69, 0.2), transparent 32%),
        linear-gradient(135deg, #140b07 0%, #24120c 46%, #3f2219 100%);
    color: #f8ead8;
}

body:has(.auth-shell--login) .site-header {
    border-bottom-color: rgba(216, 173, 115, 0.22);
    background: rgba(20, 12, 8, 0.78);
    color: #f8ead8;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

body:has(.auth-shell--login) .site-header__brand,
body:has(.auth-shell--login) .site-header__link {
    color: #f8ead8;
}

body:has(.auth-shell--login) .site-header__link--active,
body:has(.auth-shell--login) .site-header__link:hover {
    background: rgba(216, 173, 115, 0.14);
    color: #f8ead8;
}

body:has(.auth-shell--login) .site-header__link--primary {
    border-color: rgba(238, 196, 123, 0.5);
    background: rgba(216, 173, 115, 0.16);
    color: #f8ead8;
}

.auth-shell--login {
    position: relative;
    display: grid;
    align-items: center;
    width: min(100% - 32px, 430px);
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    padding: clamp(34px, 7vh, 82px) 0 76px;
    isolation: isolate;
}

.auth-shell--login::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 6, 4, 0.08) 0%, rgba(10, 6, 4, 0.72) 100%),
        radial-gradient(circle at 50% 105%, rgba(216, 173, 115, 0.18), transparent 42%);
}

.auth-shell--login .auth-card {
    padding: 30px;
    border: 1px solid rgba(216, 173, 115, 0.32);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216, 173, 115, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(34, 19, 13, 0.9) 0%, rgba(24, 13, 9, 0.86) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.auth-shell--login .brand-mark--auth {
    padding: 8px;
    border: 1px solid rgba(216, 173, 115, 0.34);
    border-radius: 18px;
    background: rgba(20, 12, 8, 0.38);
}

.auth-shell--login .auth-brand strong,
.auth-shell--login .auth-card h1 {
    color: #f8ead8;
}

.auth-shell--login .auth-brand span {
    color: #d9ad72;
}

.auth-shell--login .auth-form label {
    color: rgba(248, 234, 216, 0.86);
}

.auth-shell--login .auth-form input {
    min-height: 48px;
    border-color: rgba(216, 173, 115, 0.3);
    background: rgba(255, 250, 244, 0.94);
    color: #302018;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.auth-shell--login .auth-form input::placeholder {
    color: rgba(90, 57, 45, 0.5);
}

.auth-shell--login .auth-form input:focus {
    border-color: #e0b66f;
    outline: 3px solid rgba(224, 182, 111, 0.22);
    box-shadow: 0 0 0 1px rgba(224, 182, 111, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.auth-shell--login .auth-form button {
    min-height: 48px;
    border-color: rgba(238, 196, 123, 0.9);
    background: linear-gradient(135deg, #d2a15e 0%, #b77a35 100%);
    color: #211209;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.auth-shell--login .auth-form button:hover,
.auth-shell--login .auth-form button:focus-visible {
    border-color: #f0c985;
    outline: 3px solid rgba(224, 182, 111, 0.22);
    background: linear-gradient(135deg, #e0b66f 0%, #be823b 100%);
}

.auth-shell--login .auth-panel__errors {
    border-color: rgba(216, 173, 115, 0.28);
    background: rgba(122, 47, 69, 0.18);
    color: #f8ead8;
}

.auth-shell--login .auth-panel__links {
    color: #d9ad72;
}

.auth-shell--login .auth-panel__links a:hover,
.auth-shell--login .auth-panel__links a:focus-visible {
    color: #f8ead8;
    outline: 2px solid rgba(216, 173, 115, 0.28);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    body:has(.auth-shell--login) {
        padding-bottom: 0;
    }

    body:has(.auth-shell--login) .mobile-bottom-nav--guest {
        display: none;
    }

    .auth-shell--login {
        width: min(100% - 24px, 430px);
        min-height: calc(100vh - 58px);
        min-height: calc(100svh - 58px);
        padding: 28px 0 34px;
    }

    .auth-shell--login .auth-card {
        padding: 24px 20px;
        border-radius: 18px;
    }
}

/* Register closed page style inheritance */
body:has(.auth-shell--register-closed) {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 14%, rgba(210, 161, 94, 0.22), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(122, 47, 69, 0.18), transparent 32%),
        linear-gradient(135deg, #140b07 0%, #24120c 46%, #3f2219 100%);
    color: #f8ead8;
}

body:has(.auth-shell--register-closed) .site-header {
    border-bottom-color: rgba(216, 173, 115, 0.22);
    background: rgba(20, 12, 8, 0.78);
    color: #f8ead8;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

body:has(.auth-shell--register-closed) .site-header__brand,
body:has(.auth-shell--register-closed) .site-header__link {
    color: #f8ead8;
}

body:has(.auth-shell--register-closed) .site-header__link--active,
body:has(.auth-shell--register-closed) .site-header__link:hover {
    background: rgba(216, 173, 115, 0.14);
    color: #f8ead8;
}

body:has(.auth-shell--register-closed) .site-header__link--primary {
    border-color: rgba(238, 196, 123, 0.5);
    background: rgba(216, 173, 115, 0.16);
    color: #f8ead8;
}

.auth-shell--register-closed {
    position: relative;
    display: grid;
    align-items: center;
    width: min(100% - 32px, 460px);
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    padding: clamp(34px, 7vh, 82px) 0 76px;
    isolation: isolate;
}

.auth-shell--register-closed::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 6, 4, 0.08) 0%, rgba(10, 6, 4, 0.72) 100%),
        radial-gradient(circle at 50% 105%, rgba(216, 173, 115, 0.18), transparent 42%);
}

.auth-shell--register-closed .auth-card {
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(216, 173, 115, 0.32);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216, 173, 115, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(34, 19, 13, 0.9) 0%, rgba(24, 13, 9, 0.86) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.auth-shell--register-closed .auth-card__eyebrow {
    color: #d9ad72;
}

.auth-shell--register-closed .auth-card__title {
    color: #f8ead8;
    font-size: 1.55rem;
}

.auth-shell--register-closed .auth-card__text {
    color: rgba(248, 234, 216, 0.78);
}

.auth-shell--register-closed .auth-card__actions {
    gap: 12px;
    margin-top: 4px;
}

.auth-shell--register-closed .auth-button {
    min-height: 48px;
    border-color: rgba(238, 196, 123, 0.9);
    border-radius: 999px;
    background: linear-gradient(135deg, #d2a15e 0%, #b77a35 100%);
    color: #211209;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.auth-shell--register-closed .auth-button--secondary {
    border-color: rgba(216, 173, 115, 0.38);
    background: rgba(20, 12, 8, 0.36);
    color: #f8ead8;
}

.auth-shell--register-closed .auth-button:hover,
.auth-shell--register-closed .auth-button:focus-visible {
    border-color: #f0c985;
    outline: 3px solid rgba(224, 182, 111, 0.22);
    outline-offset: 3px;
}

.auth-shell--register-closed .auth-button:not(.auth-button--secondary):hover,
.auth-shell--register-closed .auth-button:not(.auth-button--secondary):focus-visible {
    background: linear-gradient(135deg, #e0b66f 0%, #be823b 100%);
}

@media (max-width: 720px) {
    body:has(.auth-shell--register-closed) {
        padding-bottom: 0;
    }

    body:has(.auth-shell--register-closed) .mobile-bottom-nav--guest {
        display: none;
    }

    .auth-shell--register-closed {
        width: min(100% - 24px, 430px);
        min-height: calc(100vh - 58px);
        min-height: calc(100svh - 58px);
        padding: 28px 0 34px;
    }

    .auth-shell--register-closed .auth-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .auth-shell--register-closed .auth-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Auth password pages visual inheritance */
body:has(.auth-shell--forgot-password),
body:has(.auth-shell--reset-password) {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 14%, rgba(210, 161, 94, 0.22), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(122, 47, 69, 0.18), transparent 32%),
        linear-gradient(135deg, #140b07 0%, #24120c 46%, #3f2219 100%);
    color: #f8ead8;
}

body:has(.auth-shell--forgot-password) .site-header,
body:has(.auth-shell--reset-password) .site-header {
    border-bottom-color: rgba(216, 173, 115, 0.22);
    background: rgba(20, 12, 8, 0.78);
    color: #f8ead8;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

body:has(.auth-shell--forgot-password) .site-header__brand,
body:has(.auth-shell--forgot-password) .site-header__link,
body:has(.auth-shell--reset-password) .site-header__brand,
body:has(.auth-shell--reset-password) .site-header__link {
    color: #f8ead8;
}

body:has(.auth-shell--forgot-password) .site-header__link--active,
body:has(.auth-shell--forgot-password) .site-header__link:hover,
body:has(.auth-shell--reset-password) .site-header__link--active,
body:has(.auth-shell--reset-password) .site-header__link:hover {
    background: rgba(216, 173, 115, 0.14);
    color: #f8ead8;
}

body:has(.auth-shell--forgot-password) .site-header__link--primary,
body:has(.auth-shell--reset-password) .site-header__link--primary {
    border-color: rgba(238, 196, 123, 0.5);
    background: rgba(216, 173, 115, 0.16);
    color: #f8ead8;
}

.auth-shell--forgot-password,
.auth-shell--reset-password {
    position: relative;
    display: grid;
    align-items: center;
    width: min(100% - 32px, 460px);
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    padding: clamp(34px, 7vh, 82px) 0 76px;
    isolation: isolate;
}

.auth-shell--forgot-password::before,
.auth-shell--reset-password::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 6, 4, 0.08) 0%, rgba(10, 6, 4, 0.72) 100%),
        radial-gradient(circle at 50% 105%, rgba(216, 173, 115, 0.18), transparent 42%);
}

.auth-shell--forgot-password .auth-card,
.auth-shell--reset-password .auth-card {
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(216, 173, 115, 0.32);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216, 173, 115, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(34, 19, 13, 0.9) 0%, rgba(24, 13, 9, 0.86) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.auth-shell--forgot-password .auth-card__title,
.auth-shell--reset-password .auth-card__title {
    color: #f8ead8;
    font-size: 1.55rem;
}

.auth-shell--forgot-password .auth-panel__notice,
.auth-shell--reset-password .auth-panel__notice {
    color: rgba(248, 234, 216, 0.78);
}

.auth-shell--forgot-password .auth-form label,
.auth-shell--reset-password .auth-form label {
    color: rgba(248, 234, 216, 0.86);
}

.auth-shell--forgot-password .auth-form input,
.auth-shell--reset-password .auth-form input {
    min-height: 48px;
    border-color: rgba(216, 173, 115, 0.3);
    background: rgba(255, 250, 244, 0.94);
    color: #302018;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.auth-shell--forgot-password .auth-form input:focus,
.auth-shell--reset-password .auth-form input:focus {
    border-color: #e0b66f;
    outline: 3px solid rgba(224, 182, 111, 0.22);
    box-shadow: 0 0 0 1px rgba(224, 182, 111, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.auth-shell--forgot-password .auth-form button,
.auth-shell--reset-password .auth-form button {
    min-height: 48px;
    border-color: rgba(238, 196, 123, 0.9);
    border-radius: 999px;
    background: linear-gradient(135deg, #d2a15e 0%, #b77a35 100%);
    color: #211209;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.auth-shell--forgot-password .auth-form button:hover,
.auth-shell--forgot-password .auth-form button:focus-visible,
.auth-shell--reset-password .auth-form button:hover,
.auth-shell--reset-password .auth-form button:focus-visible {
    border-color: #f0c985;
    outline: 3px solid rgba(224, 182, 111, 0.22);
    background: linear-gradient(135deg, #e0b66f 0%, #be823b 100%);
}

.auth-shell--forgot-password .auth-panel__errors,
.auth-shell--reset-password .auth-panel__errors {
    border-color: rgba(216, 173, 115, 0.28);
    background: rgba(122, 47, 69, 0.18);
    color: #f8ead8;
}

.auth-shell--forgot-password .auth-panel__links,
.auth-shell--reset-password .auth-panel__links {
    color: #d9ad72;
}

.auth-shell--forgot-password .auth-panel__links a:hover,
.auth-shell--forgot-password .auth-panel__links a:focus-visible,
.auth-shell--reset-password .auth-panel__links a:hover,
.auth-shell--reset-password .auth-panel__links a:focus-visible {
    color: #f8ead8;
    outline: 2px solid rgba(216, 173, 115, 0.28);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    body:has(.auth-shell--forgot-password),
    body:has(.auth-shell--reset-password) {
        padding-bottom: 0;
    }

    body:has(.auth-shell--forgot-password) .mobile-bottom-nav--guest,
    body:has(.auth-shell--reset-password) .mobile-bottom-nav--guest {
        display: none;
    }

    .auth-shell--forgot-password,
    .auth-shell--reset-password {
        width: min(100% - 24px, 430px);
        min-height: calc(100vh - 58px);
        min-height: calc(100svh - 58px);
        padding: 28px 0 34px;
    }

    .auth-shell--forgot-password .auth-card,
    .auth-shell--reset-password .auth-card {
        padding: 24px 20px;
        border-radius: 18px;
    }
}


/* Auth register form visual inheritance */
body:has(.auth-shell--register-form) {
    min-height: 100vh;
    margin: 0;
    color: #f8ead8;
    background:
        radial-gradient(circle at 18% 6%, rgba(207, 166, 93, 0.22), transparent 30rem),
        radial-gradient(circle at 86% 12%, rgba(133, 67, 55, 0.26), transparent 28rem),
        linear-gradient(145deg, #1d100c 0%, #321b14 44%, #140c09 100%);
}

.auth-register-body {
    min-height: 100vh;
}

.auth-shell--register-form {
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 48px 18px 64px;
    overflow: hidden;
}

.auth-shell--register-form::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 246, 225, 0.08), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(238, 204, 140, 0.14), transparent 34rem);
}

.auth-shell--register-form .register-errors,
.auth-shell--register-form .register-form {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    box-sizing: border-box;
}

.auth-shell--register-form .register-errors {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(226, 154, 133, 0.42);
    border-radius: 18px;
    color: #ffe6dc;
    background: rgba(97, 38, 32, 0.58);
    box-shadow: 0 18px 46px rgba(10, 5, 3, 0.26);
}

.auth-shell--register-form .register-form {
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(226, 190, 125, 0.34);
    border-radius: 28px;
    color: #f8ead8;
    background: linear-gradient(145deg, rgba(63, 33, 24, 0.9), rgba(35, 19, 15, 0.92));
    box-shadow: 0 28px 80px rgba(9, 5, 3, 0.42), inset 0 1px 0 rgba(255, 246, 225, 0.08);
    backdrop-filter: blur(16px);
}

.auth-shell--register-form .register-form__section {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(226, 190, 125, 0.2);
    border-radius: 22px;
    background: rgba(255, 246, 225, 0.05);
}

.auth-shell--register-form .register-page__header {
    gap: 16px;
}

.auth-shell--register-form .register-page__header h1,
.auth-shell--register-form .register-form h2 {
    margin: 0;
    color: #fff4df;
    letter-spacing: 0;
}

.auth-shell--register-form .register-page__header h1 {
    font-size: 2rem;
    line-height: 1.15;
}

.auth-shell--register-form .register-form h2 {
    font-size: 1.08rem;
    line-height: 1.35;
}

.auth-shell--register-form .register-form__field {
    display: grid;
    gap: 8px;
    color: rgba(255, 246, 225, 0.88);
    font-weight: 600;
}

.auth-shell--register-form .register-form input,
.auth-shell--register-form .register-form select {
    min-height: 48px;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(226, 190, 125, 0.32);
    border-radius: 14px;
    color: #fff4df;
    background: rgba(20, 12, 9, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 246, 225, 0.06);
}

.auth-shell--register-form .register-form input::placeholder {
    color: rgba(255, 246, 225, 0.52);
}

.auth-shell--register-form .register-form input:focus,
.auth-shell--register-form .register-form select:focus {
    border-color: rgba(231, 190, 111, 0.86);
    outline: 3px solid rgba(231, 190, 111, 0.18);
    box-shadow: 0 0 0 1px rgba(231, 190, 111, 0.34);
}

.auth-shell--register-form .avatar-uploader__controls {
    color: rgba(255, 246, 225, 0.86);
}

.auth-shell--register-form .avatar-uploader__controls button {
    min-height: 44px;
    border: 1px solid rgba(226, 190, 125, 0.35);
    border-radius: 999px;
    color: #fff3dc;
    background: rgba(87, 45, 34, 0.72);
}

.auth-shell--register-form .register-form > button[type="submit"] {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    color: #23110c;
    background: linear-gradient(135deg, #efd28b 0%, #d9a85d 54%, #b97945 100%);
    box-shadow: 0 18px 40px rgba(12, 6, 4, 0.32);
    font-weight: 700;
}

.auth-shell--register-form .register-form > button[type="submit"]:hover,
.auth-shell--register-form .register-form > button[type="submit"]:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(12, 6, 4, 0.38);
}

@media (max-width: 640px) {
    body:has(.auth-shell--register-form) .mobile-bottom-nav--guest {
        display: none;
    }

    .auth-shell--register-form {
        justify-content: flex-start;
        padding: 24px 14px 38px;
    }

    .auth-shell--register-form .register-form {
        gap: 14px;
        padding: 18px;
        border-radius: 22px;
    }

    .auth-shell--register-form .register-form__section {
        padding: 16px;
        border-radius: 18px;
    }

    .auth-shell--register-form .register-page__header h1 {
        font-size: 1.7rem;
    }
}


/* Discover and member public visual inheritance batch 1 */
.discover-page--visual-batch1,
.member-profile--visual-batch1 {
    color: #4a2a21;
}

.discover-page--visual-batch1,
.member-profile--visual-batch1 {
    position: relative;
    isolation: isolate;
}

.discover-page--visual-batch1 {
    width: min(100% - 32px, 1120px);
    padding: 26px 0 92px;
}

.discover-page--visual-batch1::before,
.member-profile--visual-batch1::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 0%, rgba(229, 191, 126, 0.24), transparent 28rem),
        radial-gradient(circle at 86% 10%, rgba(143, 82, 62, 0.12), transparent 24rem),
        linear-gradient(180deg, #fff6e6 0%, #f7ead4 48%, #f1dfc4 100%);
}

.discover-page--visual-batch1 .discover-page__header--rich {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(213, 169, 94, 0.26);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(62, 34, 26, 0.92), rgba(96, 52, 39, 0.86));
    box-shadow: 0 14px 36px rgba(72, 38, 24, 0.14);
}

.discover-page--visual-batch1 .discover-page__header--rich h1,
.discover-page--visual-batch1 .discover-page__header--rich p {
    color: #fff4df;
}

.discover-page--visual-batch1 .discover-page__header--rich h1 {
    font-size: clamp(1.55rem, 2vw, 2rem);
}

.discover-page--visual-batch1 .discover-page__header--rich p {
    opacity: 0.82;
}

.discover-page--visual-batch1 .discover-page__grid {
    gap: 14px;
}

.discover-page--visual-batch1 .member-card--polished {
    border: 1px solid rgba(207, 161, 89, 0.24);
    border-radius: 18px;
    background: rgba(255, 249, 238, 0.88);
    box-shadow: 0 10px 26px rgba(91, 55, 35, 0.1);
    backdrop-filter: blur(10px);
}

.discover-page--visual-batch1 .member-card--polished .member-card__link {
    min-height: 132px;
    gap: 14px;
    padding: 14px;
    background: transparent;
}

.discover-page--visual-batch1 .member-card__avatar .avatar,
.member-profile--visual-batch1 .member-profile__avatar .avatar,
.member-profile--visual-batch1 .member-profile__hero .avatar {
    border-color: rgba(197, 145, 73, 0.28);
    background: rgba(255, 244, 223, 0.72);
    box-shadow: 0 10px 24px rgba(91, 55, 35, 0.12);
}

.discover-page--visual-batch1 .member-card__name,
.discover-page--visual-batch1 .member-card__summary,
.member-profile--visual-batch1 h1,
.member-profile--visual-batch1 .member-profile__albums h2,
.member-profile--visual-batch1 .member-profile__detail-row dd {
    color: #47251d;
}

.discover-page--visual-batch1 .member-card__meta,
.discover-page--visual-batch1 .member-card__meta--quiet,
.discover-page--visual-batch1 .discover-page__empty,
.discover-page--visual-batch1 .discover-page__pagination,
.discover-page--visual-batch1 .discover-page__pagination span,
.member-profile--visual-batch1 .member-profile__summary-line,
.member-profile--visual-batch1 .member-profile__detail-row dt,
.member-profile--visual-batch1 .member-profile__albums-empty,
.member-profile--visual-batch1 .member-profile__album-caption {
    color: #7c5d4b;
}

.discover-page--visual-batch1 .member-card__cta,
.discover-page--visual-batch1 .discover-page__pagination a,
.member-profile--visual-batch1 .member-profile__actions .member-profile__action-button,
.member-profile--visual-batch1 .member-profile__actions button,
.member-profile--visual-batch1 .member-profile__message-link,
.member-profile--visual-batch1 .member-profile__album-like-button {
    border: 1px solid rgba(203, 150, 73, 0.38);
    color: #32170f;
    background: linear-gradient(135deg, #edcf86 0%, #d9a356 100%);
    box-shadow: 0 10px 20px rgba(118, 73, 38, 0.14);
}

.discover-page--visual-batch1 .member-card__link:hover .member-card__cta,
.discover-page--visual-batch1 .member-card__link:focus-visible .member-card__cta,
.discover-page--visual-batch1 .discover-page__pagination a:hover,
.discover-page--visual-batch1 .discover-page__pagination a:focus-visible,
.member-profile--visual-batch1 .member-profile__actions .member-profile__action-button:hover,
.member-profile--visual-batch1 .member-profile__actions .member-profile__action-button:focus-visible,
.member-profile--visual-batch1 .member-profile__actions button:hover,
.member-profile--visual-batch1 .member-profile__actions button:focus-visible,
.member-profile--visual-batch1 .member-profile__message-link:hover,
.member-profile--visual-batch1 .member-profile__message-link:focus-visible,
.member-profile--visual-batch1 .member-profile__album-like-button:hover,
.member-profile--visual-batch1 .member-profile__album-like-button:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f0d895 0%, #e0ae62 100%);
    box-shadow: 0 12px 24px rgba(118, 73, 38, 0.18);
}

.discover-page--visual-batch1 .discover-page__empty,
.discover-page--visual-batch1 .discover-page__pagination,
.member-profile--visual-batch1 .member-profile__notice,
.member-profile--visual-batch1 .member-profile__details,
.member-profile--visual-batch1 .member-profile__albums {
    border: 1px solid rgba(207, 161, 89, 0.22);
    border-radius: 18px;
    background: rgba(255, 249, 238, 0.78);
    box-shadow: 0 8px 22px rgba(91, 55, 35, 0.08);
}

.discover-page--visual-batch1 .discover-page__pagination {
    margin-top: 20px;
    padding: 8px 10px;
    background: rgba(255, 249, 238, 0.56);
}

.member-profile--visual-batch1.member-profile--polished {
    width: min(100% - 32px, 980px);
    padding: 26px 0 94px;
}

.member-profile--visual-batch1 .member-profile__hero {
    border: 1px solid rgba(213, 169, 94, 0.24);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 249, 238, 0.9), rgba(248, 231, 203, 0.72));
    box-shadow: 0 12px 30px rgba(91, 55, 35, 0.11);
}

.member-profile--visual-batch1 .member-profile__eyebrow,
.member-profile--visual-batch1 .member-profile__report > summary {
    color: #9a6732;
}

.member-profile--visual-batch1 .member-profile__actions .member-profile__block-button,
.member-profile--visual-batch1 .member-profile__actions .member-profile__login-link {
    color: #6c382a;
    border-color: rgba(207, 161, 89, 0.32);
    background: rgba(255, 246, 229, 0.86);
    box-shadow: none;
}

.member-profile--visual-batch1 .member-profile__details .member-profile__detail-row,
.member-profile--visual-batch1 .member-profile__album-card,
.member-profile--visual-batch1 .member-profile__albums-empty,
.member-profile--visual-batch1 .member-profile__report-form {
    border-color: rgba(207, 161, 89, 0.2);
    background: rgba(255, 246, 229, 0.64);
    box-shadow: none;
}

.member-profile--visual-batch1 .member-profile__album-card img,
.member-profile--visual-batch1 .member-profile__album-image,
.member-profile--visual-batch1 .member-profile__album-placeholder {
    border-color: rgba(207, 161, 89, 0.2);
    background: rgba(255, 249, 238, 0.78);
    object-fit: cover;
}

.member-profile--visual-batch1 .member-profile__report-form select {
    border-color: rgba(207, 161, 89, 0.3);
    color: #47251d;
    background: rgba(255, 249, 238, 0.96);
}

.member-profile--visual-batch1 .member-profile__report-form select:focus {
    border-color: rgba(203, 150, 73, 0.7);
    outline: 3px solid rgba(203, 150, 73, 0.18);
}

@media (min-width: 760px) {
    .discover-page--visual-batch1 .discover-page__grid {
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .discover-page--visual-batch1,
    .member-profile--visual-batch1.member-profile--polished {
        width: min(100% - 24px, 980px);
        padding-top: 20px;
    }

    .discover-page--visual-batch1 .member-card--polished .member-card__link {
        min-height: 118px;
        padding: 12px;
    }

    .discover-page--visual-batch1 .discover-page__header--rich,
    .member-profile--visual-batch1 .member-profile__hero,
    .member-profile--visual-batch1 .member-profile__details,
    .member-profile--visual-batch1 .member-profile__albums {
        border-radius: 18px;
    }
}


/* Member card badge position fix */
.member-card__avatar {
    position: relative;
}

.member-card__badge,
.member-card__photo-count {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(70, 39, 24, 0.14);
}

.member-card__badge--verified {
    top: 8px;
    left: 8px;
    border: 1px solid rgba(207, 161, 89, 0.34);
    color: #7a4630;
    background: rgba(255, 249, 238, 0.9);
}

.member-card__badge--vip {
    top: 8px;
    right: 8px;
    border: 1px solid rgba(199, 143, 58, 0.28);
    color: #4a2417;
    background: linear-gradient(135deg, #f0d895 0%, #d9a356 100%);
}

.member-card__photo-count {
    right: 8px;
    bottom: 8px;
    color: #fff5e5;
    background: rgba(64, 39, 29, 0.72);
    backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
    .member-card__badge,
    .member-card__photo-count {
        min-height: 22px;
        padding: 0 7px;
        font-size: 0.72rem;
    }

    .member-card__badge--verified,
    .member-card__badge--vip {
        top: 6px;
    }

    .member-card__badge--verified {
        left: 6px;
    }

    .member-card__badge--vip,
    .member-card__photo-count {
        right: 6px;
    }

    .member-card__photo-count {
        bottom: 6px;
    }
}


/* Discover approved mockup visual alignment */
.discover-page--approved-mockup {
    width: min(100% - 32px, 1360px);
    padding: 18px 0 96px;
    color: #4b221d;
}

.discover-page--approved-mockup::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 12%, rgba(229, 192, 125, 0.26), transparent 28rem),
        radial-gradient(circle at 78% 8%, rgba(238, 207, 152, 0.2), transparent 30rem),
        linear-gradient(180deg, #fffaf0 0%, #f9edda 45%, #f6e6cb 100%);
}

.discover-page--approved-mockup .discover-page__hero {
    position: relative;
    min-height: 196px;
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid rgba(218, 177, 109, 0.3);
    border-radius: 18px;
    background: #4b221d;
    box-shadow: 0 18px 42px rgba(92, 48, 28, 0.12);
}

.discover-page--approved-mockup .discover-page__hero-media,
.discover-page--approved-mockup .discover-page__hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.discover-page--approved-mockup .discover-page__hero-media img {
    object-fit: cover;
    object-position: center;
}

.discover-page--approved-mockup .discover-page__hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(55, 24, 19, 0.92) 0%, rgba(72, 33, 26, 0.74) 28%, rgba(120, 67, 45, 0.22) 56%, rgba(255, 226, 179, 0.1) 100%),
        linear-gradient(180deg, rgba(255, 244, 222, 0.04), rgba(80, 38, 28, 0.16));
}

.discover-page--approved-mockup .discover-page__hero-content {
    position: relative;
    z-index: 1;
    width: min(44rem, 58%);
    padding: 34px 44px;
}

.discover-page--approved-mockup .discover-page__hero h1 {
    margin: 0 0 18px;
    color: #fff6e8;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.discover-page--approved-mockup .discover-page__hero p {
    margin: 0 0 8px;
    color: rgba(255, 246, 232, 0.92);
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.65;
}

.discover-page--approved-mockup .discover-page__list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 4px 16px;
}

.discover-avatar-onboarding {
    display: grid;
    gap: 16px;
    margin: 20px 0 18px;
    padding: 20px;
    border: 1px solid rgba(226, 196, 145, 0.58);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(255, 244, 226, 0.94));
    box-shadow: 0 16px 38px rgba(83, 40, 25, 0.085);
}

.discover-avatar-onboarding__header {
    display: grid;
    gap: 6px;
}

.discover-avatar-onboarding__header h2,
.discover-avatar-onboarding__header p {
    margin: 0;
}

.discover-avatar-onboarding__header h2 {
    color: #3d1518;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.discover-avatar-onboarding__header > p:last-child {
    max-width: 720px;
    color: rgba(61, 21, 24, 0.72);
    line-height: 1.65;
}

.discover-avatar-onboarding__eyebrow {
    color: #8a4b24;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.discover-page--approved-mockup .discover-page__list-head p {
    margin: 0;
    color: #55291f;
    font-size: 1rem;
    font-weight: 800;
}

.discover-page--approved-mockup .discover-page__list-head span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(215, 174, 113, 0.34);
    border-radius: 12px;
    background: rgba(255, 250, 240, 0.82);
    color: #5a2a21;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(90, 47, 29, 0.06);
}

.discover-page--approved-mockup .discover-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.discover-page--approved-mockup .member-card--image {
    overflow: hidden;
    border: 1px solid rgba(218, 174, 105, 0.28);
    border-radius: 10px;
    background: rgba(255, 249, 238, 0.96);
    box-shadow: 0 12px 28px rgba(87, 49, 31, 0.09);
    backdrop-filter: none;
}

.discover-page--approved-mockup .member-card--image .member-card__link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
}

.discover-page--approved-mockup .member-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.92;
    min-height: 0;
    overflow: hidden;
    background: #f4dfbd;
}

.discover-page--approved-mockup .member-card__media .avatar {
    width: 100%;
    height: 100%;
    inline-size: 100%;
    block-size: 100%;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #f8ead2, #eacb96);
}

.discover-page--approved-mockup .member-card__media .avatar[role="img"] {
    min-height: 100%;
}

.discover-page--approved-mockup .member-card__body {
    display: grid;
    gap: 9px;
    align-content: start;
    min-height: 170px;
    padding: 16px 16px 18px;
}

.discover-page--approved-mockup .member-card__name {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: #4a1d18;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.25;
}

.discover-page--approved-mockup .member-card__name span + span {
    font-size: 1rem;
    color: #5a2b22;
}

.discover-page--approved-mockup .member-card__meta {
    margin: 0;
    color: #684237;
    font-size: 0.92rem;
    line-height: 1.45;
}

.discover-page--approved-mockup .member-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 26px;
}

.discover-page--approved-mockup .member-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(246, 225, 210, 0.84);
    color: #a35e52;
    font-size: 0.78rem;
    font-weight: 800;
}

.discover-page--approved-mockup .member-card__cta {
    justify-self: stretch;
    min-height: 40px;
    margin-top: auto;
    border: 1px solid rgba(221, 174, 93, 0.52);
    border-radius: 8px;
    background: linear-gradient(135deg, #f4d184 0%, #dfa84e 100%);
    color: #3e1a12;
    font-size: 0.92rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(153, 93, 38, 0.12);
}

.discover-page--approved-mockup .member-card__link:hover .member-card__cta,
.discover-page--approved-mockup .member-card__link:focus-visible .member-card__cta {
    transform: none;
    background: linear-gradient(135deg, #f6d993 0%, #e6b45f 100%);
    box-shadow: 0 10px 20px rgba(153, 93, 38, 0.16);
}

.discover-page--approved-mockup .member-card__badge,
.discover-page--approved-mockup .member-card__photo-count {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    box-shadow: 0 6px 16px rgba(56, 31, 21, 0.16);
}

.discover-page--approved-mockup .member-card__badge--verified {
    top: 10px;
    left: 10px;
    border: 1px solid rgba(212, 167, 88, 0.42);
    color: #7a4630;
    background: rgba(255, 249, 238, 0.94);
}

.discover-page--approved-mockup .member-card__badge--vip {
    top: 10px;
    right: 10px;
    border: 1px solid rgba(210, 148, 47, 0.28);
    color: #4a2417;
    background: linear-gradient(135deg, #f4d98c 0%, #e3ac55 100%);
}

.discover-page--approved-mockup .member-card__photo-count {
    right: 10px;
    bottom: 10px;
    color: #fff7e8;
    background: rgba(62, 39, 31, 0.72);
    backdrop-filter: blur(8px);
}

.discover-page--approved-mockup .discover-page__pagination {
    gap: 12px;
    margin-top: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.discover-page--approved-mockup .discover-page__pagination a,
.discover-page--approved-mockup .discover-page__pagination span {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(218, 174, 105, 0.28);
    background: rgba(255, 250, 242, 0.84);
    color: #57251d;
    box-shadow: 0 8px 16px rgba(88, 47, 30, 0.07);
}

.discover-page--approved-mockup .discover-page__pagination .discover-page__page-current {
    border-color: #552119;
    background: #552119;
    color: #fff4df;
}

.discover-page--approved-mockup .discover-page__pagination .discover-page__page-total {
    min-width: auto;
    padding: 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #8a6656;
}

.discover-page--approved-mockup .discover-page__empty {
    border: 1px solid rgba(218, 174, 105, 0.24);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.86);
    box-shadow: 0 12px 28px rgba(87, 49, 31, 0.08);
}

@media (min-width: 760px) {
    .discover-page--approved-mockup .discover-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1080px) {
    .discover-page--approved-mockup .discover-page__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1320px) {
    .discover-page--approved-mockup .discover-page__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .discover-page--approved-mockup {
        width: min(100% - 28px, 680px);
        padding: 16px 0 108px;
    }

    .discover-page--approved-mockup .discover-page__hero {
        min-height: 340px;
        margin-bottom: 20px;
        border-radius: 18px;
    }

    .discover-page--approved-mockup .discover-page__hero-media img {
        object-position: 68% center;
    }

    .discover-page--approved-mockup .discover-page__hero-shade {
        background:
            linear-gradient(90deg, rgba(255, 239, 212, 0.88) 0%, rgba(255, 233, 197, 0.68) 42%, rgba(255, 222, 178, 0.08) 72%),
            linear-gradient(180deg, rgba(255, 246, 232, 0.12), rgba(91, 44, 31, 0.12));
    }

    .discover-page--approved-mockup .discover-page__hero-content {
        width: 58%;
        padding: 38px 20px;
    }

    .discover-page--approved-mockup .discover-page__hero h1 {
        color: #5a211d;
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .discover-page--approved-mockup .discover-page__hero p {
        color: #5d2d24;
        font-size: 1rem;
        line-height: 1.65;
    }

    .discover-page--approved-mockup .discover-page__list-head {
        margin: 18px 4px 14px;
    }

    .discover-page--approved-mockup .discover-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .discover-page--approved-mockup .member-card__media {
        aspect-ratio: 1 / 0.78;
    }

    .discover-page--approved-mockup .member-card__body {
        min-height: 164px;
        padding: 14px 12px 14px;
    }

    .discover-page--approved-mockup .member-card__name {
        gap: 7px;
        font-size: 1.02rem;
    }

    .discover-page--approved-mockup .member-card__name span + span,
    .discover-page--approved-mockup .member-card__meta {
        font-size: 0.88rem;
    }

    .discover-page--approved-mockup .member-card__cta {
        min-height: 38px;
    }
}

@media (max-width: 430px) {
    .discover-page--approved-mockup {
        width: min(100% - 24px, 430px);
    }

    .discover-page--approved-mockup .discover-page__hero {
        min-height: 330px;
    }

    .discover-page--approved-mockup .discover-page__hero-content {
        width: 61%;
        padding: 34px 18px;
    }

    .discover-page--approved-mockup .discover-page__list-head span {
        min-height: 38px;
        padding: 0 14px;
    }

    .discover-page--approved-mockup .discover-page__grid {
        gap: 18px 12px;
    }

    .discover-page--approved-mockup .member-card__tags span {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .discover-page--approved-mockup .member-card__badge,
    .discover-page--approved-mockup .member-card__photo-count {
        min-height: 22px;
        padding: 0 7px;
        font-size: 0.7rem;
    }
}


/* Discover Hero crop fix: CSS-only */
.discover-page--approved-mockup .discover-page__hero {
    min-height: 280px;
    max-height: 320px;
}

.discover-page--approved-mockup .discover-page__hero-media img {
    object-position: 58% 28%;
}

@media (max-width: 760px) {
    .discover-page--approved-mockup .discover-page__hero {
        min-height: 240px;
        max-height: 260px;
    }

    .discover-page--approved-mockup .discover-page__hero-media img {
        object-position: 68% 24%;
    }

    .discover-page--approved-mockup .discover-page__hero-content {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .discover-page--approved-mockup .discover-page__hero h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .discover-page--approved-mockup .discover-page__hero p {
        font-size: 0.92rem;
        line-height: 1.55;
    }
}

@media (max-width: 430px) {
    .discover-page--approved-mockup .discover-page__hero {
        min-height: 230px;
        max-height: 248px;
    }

    .discover-page--approved-mockup .discover-page__hero-media img {
        object-position: 70% 22%;
    }

    .discover-page--approved-mockup .discover-page__hero-content {
        width: 58%;
        padding-top: 26px;
        padding-bottom: 24px;
    }
}


/* Member profile approved visual and album lightbox */
.member-profile-page--approved-visual {
    width: min(100% - 40px, 1440px);
    padding: 28px 0 112px;
    color: #4a221c;
}

.member-profile-page--approved-visual::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 8%, rgba(230, 193, 127, 0.2), transparent 28rem),
        radial-gradient(circle at 80% 12%, rgba(221, 169, 92, 0.16), transparent 26rem),
        linear-gradient(180deg, #fffaf0 0%, #f9eddc 48%, #f7e7cb 100%);
}

.member-profile-page--approved-visual .member-profile__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px 4px;
    color: #6c4438;
    font-weight: 800;
}

.member-profile-page--approved-visual .member-profile__breadcrumb a {
    color: #56261f;
}

.member-profile-page--approved-visual .member-profile__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.15fr) minmax(260px, 0.78fr);
    grid-template-areas:
        "media hero side"
        "albums albums side"
        "about about side";
    gap: 24px;
    align-items: start;
}

.member-profile-page--approved-visual .member-profile__media-card,
.member-profile-page--approved-visual .member-profile__hero,
.member-profile-page--approved-visual .member-profile__info-card,
.member-profile-page--approved-visual .member-profile__albums,
.member-profile-page--approved-visual .member-profile__about-card,
.member-profile-page--approved-visual .member-profile__notice {
    border: 1px solid rgba(219, 177, 112, 0.26);
    border-radius: 18px;
    background: rgba(255, 250, 241, 0.88);
    box-shadow: 0 14px 34px rgba(86, 49, 31, 0.08);
}

.member-profile-page--approved-visual .member-profile__notice--success {
    border-color: rgba(39, 124, 89, 0.28);
    background: rgba(39, 124, 89, 0.08);
    color: #235c44;
}

.member-profile-page--approved-visual .member-profile__notice--warning {
    border-color: rgba(176, 119, 32, 0.3);
    background: rgba(176, 119, 32, 0.1);
    color: #76501f;
}

.member-profile-page--approved-visual .member-profile__notice--error {
    border-color: rgba(143, 47, 54, 0.28);
    background: rgba(143, 47, 54, 0.08);
    color: #7d2f36;
}

.member-profile-page--approved-visual .member-profile__media-card {
    grid-area: media;
    overflow: hidden;
    padding: 0;
}

.member-profile-page--approved-visual .member-profile__hero-avatar {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 0.82 / 1;
    overflow: hidden;
    background: #f1dcba;
}

.member-profile-page--approved-visual .member-profile__hero-avatar .avatar {
    width: 100%;
    height: 100%;
    inline-size: 100%;
    block-size: 100%;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #f8ead2, #eacb96);
}

.member-profile-page--approved-visual .member-profile__hero-avatar .avatar[role="img"] {
    min-height: 100%;
}

.member-profile-page--approved-visual .member-profile__badge,
.member-profile-page--approved-visual .member-profile__photo-count,
.member-profile-page--approved-visual .member-profile__vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.member-profile-page--approved-visual .member-profile__badge--verified {
    position: absolute;
    top: 18px;
    left: 18px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(214, 167, 88, 0.42);
    background: rgba(255, 249, 238, 0.95);
    color: #7a4630;
    box-shadow: 0 8px 20px rgba(63, 35, 24, 0.14);
}

.member-profile-page--approved-visual .member-profile__photo-count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    min-height: 30px;
    padding: 0 12px;
    color: #fff7e8;
    background: rgba(62, 39, 31, 0.72);
    backdrop-filter: blur(8px);
}

.member-profile-page--approved-visual .member-profile__hero {
    grid-area: hero;
    padding: 36px 42px;
    background: rgba(255, 250, 241, 0.9);
}

.member-profile-page--approved-visual .member-profile__summary {
    gap: 24px;
}

.member-profile-page--approved-visual .member-profile__eyebrow {
    margin: 0;
    color: #a06a35;
    font-weight: 900;
}

.member-profile-page--approved-visual .member-profile__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.member-profile-page--approved-visual h1 {
    margin: 0;
    color: #4a1d18;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.member-profile-page--approved-visual .member-profile__age {
    color: #51251e;
    font-size: 1.25rem;
    font-weight: 900;
}

.member-profile-page--approved-visual .member-profile__vip {
    min-height: 30px;
    padding: 0 14px;
    background: linear-gradient(135deg, #f3d88c 0%, #dfaa55 100%);
    color: #4b2218;
    font-size: 0.86rem;
}

.member-profile-page--approved-visual .member-profile__summary-line,
.member-profile-page--approved-visual .member-profile__intro-inline,
.member-profile-page--approved-visual .member-profile__about-card p,
.member-profile-page--approved-visual .member-profile__empty-copy {
    color: #6d4639;
    line-height: 1.75;
}

.member-profile-page--approved-visual .member-profile__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-profile-page--approved-visual .member-profile__tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(246, 225, 210, 0.84);
    color: #a35e52;
    font-weight: 800;
}

.member-profile-page--approved-visual .member-profile__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.member-profile-page--approved-visual .member-profile__actions .member-profile__action-button,
.member-profile-page--approved-visual .member-profile__actions button,
.member-profile-page--approved-visual .member-profile__message-link,
.member-profile-page--approved-visual .member-profile__login-link,
.member-profile-page--approved-visual .member-profile__album-like-button {
    min-height: 48px;
    border: 1px solid rgba(221, 174, 93, 0.52);
    border-radius: 9px;
    background: rgba(255, 250, 241, 0.86);
    color: #5a2a21;
    box-shadow: none;
}

.member-profile-page--approved-visual .member-profile__actions .member-profile__action-button--primary,
.member-profile-page--approved-visual .member-profile__actions button.member-profile__action-button--primary {
    background: linear-gradient(135deg, #f4d184 0%, #dfa84e 100%);
    color: #3e1a12;
    box-shadow: 0 10px 20px rgba(153, 93, 38, 0.12);
}

.member-profile-page--approved-visual .member-profile__actions .member-profile__block-button {
    background: rgba(255, 250, 241, 0.64);
    color: #8b6356;
}

.member-profile-page--approved-visual .member-profile__side {
    grid-area: side;
    display: grid;
    gap: 20px;
}

.member-profile-page--approved-visual .member-profile__info-card,
.member-profile-page--approved-visual .member-profile__about-card,
.member-profile-page--approved-visual .member-profile__albums {
    padding: 24px;
}

.member-profile-page--approved-visual .member-profile__info-card h2,
.member-profile-page--approved-visual .member-profile__albums h2,
.member-profile-page--approved-visual .member-profile__about-card h2 {
    margin: 0 0 18px;
    color: #4a1d18;
    font-size: 1.22rem;
    line-height: 1.25;
}

.member-profile-page--approved-visual .member-profile__info-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.member-profile-page--approved-visual .member-profile__info-row {
    display: grid;
    grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.member-profile-page--approved-visual .member-profile__info-row dt {
    color: #806051;
    font-weight: 800;
}

.member-profile-page--approved-visual .member-profile__info-row dd {
    margin: 0;
    color: #4d2a22;
    text-align: right;
    overflow-wrap: anywhere;
}

.member-profile-page--approved-visual .member-profile__albums {
    grid-area: albums;
}

.member-profile-page--approved-visual .member-profile__albums-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.member-profile-page--approved-visual .member-profile__albums-header span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(219, 177, 112, 0.3);
    border-radius: 9px;
    color: #7a4a36;
    font-weight: 800;
}

.member-profile-page--approved-visual .member-profile__album-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.member-profile-page--approved-visual .member-profile__album-card {
    flex: 0 0 150px;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    scroll-snap-align: start;
}

.member-profile-page--approved-visual .member-profile__album-thumb {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: zoom-in;
}

.member-profile-page--approved-visual .member-profile__album-card img,
.member-profile-page--approved-visual .member-profile__album-image,
.member-profile-page--approved-visual .member-profile__album-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1.18;
    display: block;
    border: 1px solid rgba(219, 177, 112, 0.22);
    border-radius: 10px;
    background: rgba(255, 244, 222, 0.72);
    object-fit: cover;
    object-position: center;
}

.member-profile-page--approved-visual .member-profile__album-like-button {
    min-height: 34px;
    font-size: 0.82rem;
}

.member-profile-page--approved-visual .member-profile__about-card {
    grid-area: about;
}

.member-gallery-lightbox[hidden] {
    display: none;
}

.member-gallery-lightbox.is-open {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.member-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(48, 25, 20, 0.82);
    cursor: zoom-out;
}

.member-gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px;
    width: min(100%, 980px);
}

.member-gallery-lightbox__image-button {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    cursor: zoom-out;
}

.member-gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: min(82vh, 780px);
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.member-gallery-lightbox__arrow {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(239, 211, 166, 0.34);
    border-radius: 999px;
    background: rgba(255, 246, 229, 0.92);
    color: #51251e;
    font-size: 2rem;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 860px) {
    .member-profile-page--approved-visual {
        width: min(100% - 24px, 680px);
        padding: 18px 0 104px;
    }

    .member-profile-page--approved-visual .member-profile__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "hero"
            "albums"
            "side"
            "about";
        gap: 16px;
    }

    .member-profile-page--approved-visual .member-profile__hero-avatar {
        aspect-ratio: 1 / 0.72;
    }

    .member-profile-page--approved-visual .member-profile__hero {
        padding: 22px;
        text-align: left;
    }

    .member-profile-page--approved-visual .member-profile__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .member-profile-page--approved-visual .member-profile__action-form--quiet,
    .member-profile-page--approved-visual .member-profile__report {
        display: none;
    }

    .member-profile-page--approved-visual .member-profile__album-card {
        flex-basis: 86px;
    }

    .member-profile-page--approved-visual .member-profile__info-card,
    .member-profile-page--approved-visual .member-profile__about-card,
    .member-profile-page--approved-visual .member-profile__albums {
        padding: 18px;
    }

    .member-gallery-lightbox.is-open {
        padding: 14px;
    }

    .member-gallery-lightbox__dialog {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
    }

    .member-gallery-lightbox__arrow {
        width: 42px;
        height: 42px;
        font-size: 1.55rem;
    }
}

@media (max-width: 430px) {
    .member-profile-page--approved-visual .member-profile__hero-avatar {
        aspect-ratio: 1 / 0.78;
    }

    .member-profile-page--approved-visual .member-profile__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .member-profile-page--approved-visual .member-profile__actions .member-profile__action-button,
    .member-profile-page--approved-visual .member-profile__actions button,
    .member-profile-page--approved-visual .member-profile__message-link,
    .member-profile-page--approved-visual .member-profile__login-link {
        min-height: 42px;
        padding: 0 8px;
        font-size: 0.86rem;
    }

    .member-profile-page--approved-visual .member-profile__info-row {
        grid-template-columns: minmax(78px, 0.8fr) minmax(0, 1fr);
        gap: 10px;
    }

    .member-gallery-lightbox__dialog {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
    }

    .member-gallery-lightbox__arrow {
        width: 36px;
        height: 36px;
    }
}


/* Member profile interaction controls preservation */
.member-profile-page--approved-visual .member-profile__action-form--quiet,
.member-profile-page--approved-visual .member-profile__report {
    display: block;
}


/* Member profile strict mockup tuning */
.member-profile-page--approved-visual {
    width: min(100% - 56px, 1420px);
    padding-top: 30px;
}

.member-profile-page--approved-visual .member-profile__layout {
    grid-template-columns: minmax(360px, 420px) minmax(460px, 1fr) minmax(280px, 320px);
    gap: 22px;
}

.member-profile-page--approved-visual .member-profile__media-card,
.member-profile-page--approved-visual .member-profile__hero,
.member-profile-page--approved-visual .member-profile__info-card,
.member-profile-page--approved-visual .member-profile__albums,
.member-profile-page--approved-visual .member-profile__about-card {
    border-radius: 16px;
    background: rgba(255, 250, 241, 0.92);
    box-shadow: 0 12px 28px rgba(86, 49, 31, 0.075);
}

.member-profile-page--approved-visual .member-profile__hero-avatar {
    aspect-ratio: 0.88 / 1;
}

.member-profile-page--approved-visual .member-profile__hero {
    min-height: 477px;
    display: flex;
    align-items: center;
    padding: 42px 54px;
}

.member-profile-page--approved-visual .member-profile__summary {
    width: 100%;
    gap: 22px;
}

.member-profile-page--approved-visual .member-profile__eyebrow {
    display: none;
}

.member-profile-page--approved-visual .member-profile__title-row {
    gap: 14px 18px;
}

.member-profile-page--approved-visual h1 {
    font-size: clamp(2.1rem, 2.6vw, 2.85rem);
}

.member-profile-page--approved-visual .member-profile__summary-line {
    font-size: 1.02rem;
    font-weight: 800;
}

.member-profile-page--approved-visual .member-profile__intro-inline {
    margin: 0;
    color: #5d352b;
    font-size: 1rem;
}

.member-profile-page--approved-visual .member-profile__metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 4px 0 0;
}

.member-profile-page--approved-visual .member-profile__metric-item {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.member-profile-page--approved-visual .member-profile__metric-item dt {
    color: #b8793d;
    font-size: 0.86rem;
    font-weight: 900;
}

.member-profile-page--approved-visual .member-profile__metric-item dd {
    margin: 0;
    color: #442019;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.member-profile-page--approved-visual .member-profile__actions {
    margin-top: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-profile-page--approved-visual .member-profile__action-form--quiet,
.member-profile-page--approved-visual .member-profile__report {
    grid-column: auto;
}

.member-profile-page--approved-visual .member-profile__side {
    gap: 20px;
}

.member-profile-page--approved-visual .member-profile__info-card {
    padding: 28px 28px;
}

.member-profile-page--approved-visual .member-profile__info-card h2,
.member-profile-page--approved-visual .member-profile__albums h2,
.member-profile-page--approved-visual .member-profile__about-card h2 {
    font-size: 1.28rem;
    margin-bottom: 22px;
}

.member-profile-page--approved-visual .member-profile__info-list {
    gap: 18px;
}

.member-profile-page--approved-visual .member-profile__albums {
    padding: 24px 26px;
}

.member-profile-page--approved-visual .member-profile__album-card {
    flex-basis: 142px;
}

.member-profile-page--approved-visual .member-profile__album-card img,
.member-profile-page--approved-visual .member-profile__album-image,
.member-profile-page--approved-visual .member-profile__album-placeholder {
    aspect-ratio: 1 / 1.22;
}

.member-profile-page--approved-visual .member-profile__mobile-back {
    display: none;
}

@media (max-width: 860px) {
    .member-profile-page--approved-visual {
        width: min(100% - 24px, 430px);
        padding-top: 18px;
    }

    .member-profile-page--approved-visual .member-profile__breadcrumb {
        margin-bottom: 12px;
    }

    .member-profile-page--approved-visual .member-profile__media-card {
        border-radius: 16px 16px 0 0;
    }

    .member-profile-page--approved-visual .member-profile__hero-avatar {
        aspect-ratio: 1 / 0.7;
    }

    .member-profile-page--approved-visual .member-profile__mobile-back {
        position: absolute;
        top: 18px;
        left: 18px;
        z-index: 3;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(76, 37, 27, 0.78);
        color: #fff7e8;
        font-size: 2rem;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 10px 22px rgba(54, 28, 20, 0.2);
    }

    .member-profile-page--approved-visual .member-profile__badge--verified {
        top: 18px;
        right: 18px;
        left: auto;
    }

    .member-profile-page--approved-visual .member-profile__hero {
        margin-top: -1px;
        min-height: 0;
        padding: 22px 22px 20px;
        border-radius: 0 0 16px 16px;
    }

    .member-profile-page--approved-visual .member-profile__metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .member-profile-page--approved-visual .member-profile__metric-item dt {
        font-size: 0.74rem;
    }

    .member-profile-page--approved-visual .member-profile__metric-item dd {
        font-size: 0.82rem;
    }

    .member-profile-page--approved-visual .member-profile__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .member-profile-page--approved-visual .member-profile__report,
    .member-profile-page--approved-visual .member-profile__action-form--quiet {
        display: block;
    }

    .member-profile-page--approved-visual .member-profile__report {
        grid-column: 1 / -1;
    }

    .member-profile-page--approved-visual .member-profile__album-card {
        flex-basis: 76px;
    }

    .member-profile-page--approved-visual .member-profile__album-like-button {
        display: none;
    }
}

@media (max-width: 430px) {
    .member-profile-page--approved-visual .member-profile__hero-avatar {
        aspect-ratio: 1 / 0.72;
    }

    .member-profile-page--approved-visual .member-profile__metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .member-profile-page--approved-visual .member-profile__actions .member-profile__action-button,
    .member-profile-page--approved-visual .member-profile__actions button,
    .member-profile-page--approved-visual .member-profile__message-link,
    .member-profile-page--approved-visual .member-profile__login-link {
        min-height: 44px;
        font-size: 0.88rem;
    }
}

/* Member profile deduplicated details layout */
.member-profile-page--approved-visual .member-profile__layout {
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    grid-template-areas:
        "media hero"
        "albums albums"
        "details details";
    align-items: stretch;
}

.member-profile-page--approved-visual .member-profile__hero {
    min-height: 0;
}

.member-profile-page--approved-visual .member-profile__metric-grid {
    display: none;
}

.member-profile-page--approved-visual .member-profile__detail-section {
    grid-area: details;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.member-profile-page--approved-visual .member-profile__detail-section .member-profile__info-card,
.member-profile-page--approved-visual .member-profile__detail-section .member-profile__about-card {
    min-height: 220px;
}

.member-profile-page--approved-visual .member-profile__detail-section .member-profile__about-card {
    grid-area: auto;
}

.member-profile-page--approved-visual .member-profile__detail-section .member-profile__empty-copy {
    margin: 0;
}

@media (max-width: 860px) {
    .member-profile-page--approved-visual .member-profile__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "hero"
            "albums"
            "details";
        align-items: start;
    }

    .member-profile-page--approved-visual .member-profile__detail-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .member-profile-page--approved-visual .member-profile__detail-section .member-profile__info-card,
    .member-profile-page--approved-visual .member-profile__detail-section .member-profile__about-card {
        min-height: 0;
        padding: 18px;
    }
}

/* Member photo like progressive enhancement */
.member-profile-page--approved-visual .member-photo-like-button.is-pending {
    opacity: 0.78;
    cursor: progress;
}

.member-profile-page--approved-visual .member-photo-like-button.is-liked,
.member-profile-page--approved-visual .member-photo-like-button:disabled.is-liked {
    border-color: rgba(92, 43, 31, 0.64);
    background: linear-gradient(135deg, #6b2d24 0%, #421812 100%);
    color: #fff8ea;
    cursor: default;
}

.member-profile-page--approved-visual .member-photo-like-button.is-failed {
    border-color: rgba(151, 70, 56, 0.5);
    color: #8a362d;
}

/* Messages visual inheritance batch 1 */
.messages-page--visual-batch1 {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 30px 0 112px;
    color: #4a1719;
}

.messages-page--visual-batch1 .messages-page__header,
.messages-page--visual-batch1 .messages-page__panel {
    border: 1px solid rgba(209, 172, 109, 0.26);
    border-radius: 22px;
    background: rgba(255, 250, 240, 0.9);
    box-shadow: 0 18px 48px rgba(82, 43, 24, 0.08);
}

.messages-page--visual-batch1 .messages-page__header {
    margin: 0 0 18px;
    padding: 24px;
    border-bottom: 1px solid rgba(209, 172, 109, 0.26);
}

.messages-page--visual-batch1 .messages-page__header h1 {
    margin: 0;
    color: #4a1719;
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
    letter-spacing: 0;
}

.messages-page--visual-batch1 .messages-page__header p {
    margin: 8px 0 0;
    color: #80645b;
    line-height: 1.7;
}

.messages-page--visual-batch1 .messages-page__eyebrow {
    color: #b9823e;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
}

.messages-page--visual-batch1 .messages-page__panel {
    padding: 18px;
}

.messages-page--visual-batch1 .message-list--visual {
    gap: 12px;
}

.messages-page--visual-batch1 .message-list__item {
    border-color: rgba(209, 172, 109, 0.22);
    border-radius: 18px;
    background: rgba(255, 252, 245, 0.92);
    box-shadow: 0 10px 28px rgba(82, 43, 24, 0.06);
    overflow: hidden;
}

.messages-page--visual-batch1 .message-list__item--unread {
    border-color: rgba(105, 32, 39, 0.28);
    background: linear-gradient(135deg, rgba(255, 248, 235, 0.98), rgba(255, 242, 219, 0.88));
}

.messages-page--visual-batch1 .message-list__link {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    min-height: 86px;
    padding: 16px 18px;
    gap: 14px;
}

.messages-page--visual-batch1 .message-list__avatar,
.messages-page--visual-batch1 .message-thread__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(209, 172, 109, 0.42);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff5df 0%, #e7b65c 100%);
    color: #5a1c20;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(112, 69, 34, 0.12);
}

.messages-page--visual-batch1 .message-list__name {
    color: #4a1719;
    font-size: 1.02rem;
}

.messages-page--visual-batch1 .message-list__preview {
    display: block;
    margin-top: 5px;
    color: #80645b;
    font-size: 0.92rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-page--visual-batch1 .message-list__meta {
    align-self: center;
    color: #9a8077;
}

.messages-page--visual-batch1 .message-list__badge {
    min-height: 22px;
    border-radius: 999px;
    background: #7a2630;
    color: #fff8ea;
    font-size: 0.78rem;
}

.messages-page--visual-batch1 .message-thread__nav {
    margin: 0 0 14px;
}

.messages-page--visual-batch1 .message-thread__nav a {
    min-height: 38px;
    color: #6a2627;
    font-weight: 800;
}

.messages-page--visual-batch1 .message-thread__profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.messages-page--visual-batch1 .message-thread__profile-main {
    min-width: 0;
}

.messages-page--visual-batch1 .message-thread__profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #80645b;
    font-size: 0.92rem;
}

.messages-page--visual-batch1 .message-thread__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.messages-page--visual-batch1 .message-thread__badge--vip {
    background: linear-gradient(135deg, #f0c978, #d99c38);
    color: #4b1a16;
}

.messages-page--visual-batch1 .message-thread__badge--verified {
    border: 1px solid rgba(209, 172, 109, 0.42);
    background: #fff7e8;
    color: #7a4b17;
}

.messages-page--visual-batch1 .message-thread__notice {
    border-color: rgba(209, 172, 109, 0.3);
    border-radius: 16px;
    background: rgba(255, 248, 235, 0.92);
    color: #5c332d;
}

.messages-page--visual-batch1 .message-thread__list--visual {
    min-height: 380px;
    padding: 20px;
    border-color: rgba(209, 172, 109, 0.22);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(250, 237, 214, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.messages-page--visual-batch1 .message-thread__bubble {
    max-width: min(70%, 620px);
    padding: 13px 15px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(82, 43, 24, 0.07);
}

.messages-page--visual-batch1 .message-thread__item--incoming .message-thread__bubble {
    border-color: rgba(209, 172, 109, 0.24);
    background: rgba(255, 252, 245, 0.98);
    color: #4a1719;
    border-bottom-left-radius: 8px;
}

.messages-page--visual-batch1 .message-thread__item--outgoing .message-thread__bubble {
    border-color: rgba(218, 170, 83, 0.42);
    background: linear-gradient(135deg, #f8dfaa 0%, #edbf64 100%);
    color: #4a1719;
    border-bottom-right-radius: 8px;
}

.messages-page--visual-batch1 .message-thread__time,
.messages-page--visual-batch1 .message-thread__item--outgoing .message-thread__time {
    color: #8d7168;
}

.messages-page--visual-batch1 .message-composer--visual {
    margin-top: 14px;
    border-color: rgba(209, 172, 109, 0.26);
    border-radius: 20px;
    background: rgba(255, 252, 245, 0.96);
    box-shadow: 0 14px 32px rgba(82, 43, 24, 0.07);
}

.messages-page--visual-batch1 .message-composer__input {
    min-height: 118px;
    border-color: rgba(209, 172, 109, 0.35);
    border-radius: 16px;
    background: #fffaf0;
    color: #4a1719;
}

.messages-page--visual-batch1 .message-composer__input:focus {
    border-color: rgba(217, 156, 56, 0.72);
    outline: 3px solid rgba(217, 156, 56, 0.2);
}

.messages-page--visual-batch1 .message-composer__button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f0c978 0%, #d99c38 100%);
    color: #4b1a16;
    box-shadow: 0 12px 26px rgba(158, 98, 32, 0.18);
}

.messages-page--visual-batch1 .message-composer__button:hover,
.messages-page--visual-batch1 .message-composer__button:focus-visible,
.messages-page--visual-batch1 .message-list__link:focus-visible,
.messages-page--visual-batch1 .message-thread__nav a:focus-visible {
    outline: 2px solid rgba(217, 156, 56, 0.55);
    outline-offset: 3px;
}

.messages-page--visual-batch1 .message-shell__empty {
    border-color: rgba(209, 172, 109, 0.24);
    border-radius: 18px;
    background: rgba(255, 252, 245, 0.92);
    color: #80645b;
}

@media (min-width: 900px) {
    .messages-page--visual-batch1.messages-page--thread {
        width: min(100% - 48px, 1120px);
    }

    .messages-page--visual-batch1.messages-page--inbox {
        width: min(100% - 48px, 760px);
    }
}

@media (max-width: 720px) {
    .messages-page--visual-batch1 {
        width: min(100% - 24px, 760px);
        padding: 18px 0 118px;
    }

    .messages-page--visual-batch1 .messages-page__header,
    .messages-page--visual-batch1 .messages-page__panel {
        border-radius: 18px;
    }

    .messages-page--visual-batch1 .messages-page__header,
    .messages-page--visual-batch1 .messages-page__panel,
    .messages-page--visual-batch1 .message-thread__list--visual,
    .messages-page--visual-batch1 .message-composer--visual {
        padding: 14px;
    }

    .messages-page--visual-batch1 .message-list__link {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .messages-page--visual-batch1 .message-list__meta {
        grid-column: 2;
        justify-content: flex-start;
    }

    .messages-page--visual-batch1 .message-list__avatar,
    .messages-page--visual-batch1 .message-thread__avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .messages-page--visual-batch1 .message-thread__profile {
        align-items: flex-start;
    }

    .messages-page--visual-batch1 .message-thread__list--visual {
        min-height: 320px;
    }

    .messages-page--visual-batch1 .message-thread__bubble {
        max-width: 88%;
        border-radius: 16px;
    }

    .messages-page--visual-batch1 .message-composer__button {
        width: 100%;
    }
}

/* Messages mainstream layout with conversation list data */
.messages-page--mainstream {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 32px 0 112px;
    color: #4d1719;
}

.messages-page--mainstream .messages-page__header--compact {
    margin: 0 0 18px;
    padding: 0 4px;
}

.messages-page--mainstream .messages-layout {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    min-height: min(720px, calc(100dvh - 170px));
}

.messages-page--mainstream .messages-sidebar,
.messages-page--mainstream .messages-thread {
    border: 1px solid rgba(215, 171, 102, 0.24);
    border-radius: 22px;
    background: rgba(255, 250, 241, 0.88);
    box-shadow: 0 18px 46px rgba(91, 37, 28, 0.08);
    overflow: hidden;
}

.messages-page--mainstream .messages-sidebar {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.messages-page--mainstream .messages-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(215, 171, 102, 0.18);
}

.messages-page--mainstream .messages-sidebar__title {
    color: #4d1719;
    font-weight: 800;
    text-decoration: none;
}

.messages-page--mainstream .messages-sidebar__count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(235, 196, 126, 0.25);
    color: #6b2a2d;
    font-weight: 700;
    font-size: 0.86rem;
}

.messages-page--mainstream .message-list--mainstream {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding: 10px;
}

.messages-page--mainstream .message-list__item {
    border-radius: 16px;
}

.messages-page--mainstream .message-list__link {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 10px;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.messages-page--mainstream .message-list__link:hover,
.messages-page--mainstream .message-list__item--active .message-list__link {
    background: rgba(249, 232, 204, 0.72);
    box-shadow: inset 0 0 0 1px rgba(215, 171, 102, 0.18);
}

.messages-page--mainstream .message-list__avatar {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2c46f, #fff1d2);
    color: #5a181d;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(104, 48, 30, 0.12);
}

.messages-page--mainstream .message-list__main {
    min-width: 0;
}

.messages-page--mainstream .message-list__name {
    display: block;
    overflow: hidden;
    color: #4d1719;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-page--mainstream .message-list__preview {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #8b7166;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-page--mainstream .message-list__meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.messages-page--mainstream .message-list__time {
    color: #a48a7a;
    font-size: 0.76rem;
    white-space: nowrap;
}

.messages-page--mainstream .message-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #7b2529;
    color: #fff7ea;
    font-size: 0.72rem;
    font-weight: 800;
}

.messages-page--mainstream .messages-thread {
    display: grid;
    min-width: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 247, 235, 0.92));
}

.messages-page--mainstream .messages-thread--empty {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.messages-page--mainstream .messages-empty-state {
    max-width: 320px;
    padding: 32px;
    text-align: center;
}

.messages-page--mainstream .messages-empty-state__mark {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(235, 196, 126, 0.28);
    color: #6b2a2d;
    font-weight: 900;
}

.messages-page--mainstream .messages-empty-state h2 {
    margin: 0 0 8px;
    color: #4d1719;
    font-size: 1.35rem;
}

.messages-page--mainstream .messages-empty-state p {
    margin: 0;
    color: #8b7166;
}

.messages-page--mainstream .messages-thread__topbar {
    display: grid;
    grid-template-columns: auto 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(215, 171, 102, 0.2);
    background: rgba(255, 250, 241, 0.92);
}

.messages-page--mainstream .messages-thread__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(215, 171, 102, 0.3);
    border-radius: 999px;
    color: #6b2a2d;
    font-weight: 800;
    text-decoration: none;
}

.messages-page--mainstream .messages-thread__avatar {
    width: 48px;
    height: 48px;
}

.messages-page--mainstream .messages-thread__identity {
    min-width: 0;
}

.messages-page--mainstream .messages-thread__name {
    display: block;
    overflow: hidden;
    color: #4d1719;
    font-size: 1.05rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-page--mainstream .messages-thread__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
    color: #8b7166;
    font-size: 0.82rem;
}

.messages-page--mainstream .message-thread__notice {
    margin: 10px 14px 0;
    padding: 10px 12px;
    border: 1px solid rgba(215, 171, 102, 0.22);
    border-radius: 14px;
    background: rgba(255, 247, 235, 0.8);
    color: #6b2a2d;
    font-size: 0.9rem;
}

.messages-page--mainstream .messages-thread__scroll {
    display: flex;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
}

.messages-page--mainstream .message-thread__item {
    display: flex;
}

.messages-page--mainstream .message-thread__item--outgoing {
    justify-content: flex-end;
}

.messages-page--mainstream .message-thread__item--incoming {
    justify-content: flex-start;
}

.messages-page--mainstream .message-thread__bubble {
    max-width: min(72%, 560px);
    border-radius: 20px;
    padding: 11px 13px 9px;
    box-shadow: 0 10px 24px rgba(91, 37, 28, 0.07);
}

.messages-page--mainstream .message-bubble--mine {
    border: 1px solid rgba(215, 171, 102, 0.28);
    background: linear-gradient(135deg, #f4d28b, #f8e5b7);
    color: #4d1719;
}

.messages-page--mainstream .message-bubble--other {
    border: 1px solid rgba(215, 171, 102, 0.22);
    background: rgba(255, 252, 246, 0.96);
    color: #4d1719;
}

.messages-page--mainstream .message-thread__message-body {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.messages-page--mainstream .message-thread__time {
    display: block;
    margin-top: 6px;
    color: rgba(82, 40, 38, 0.55);
    font-size: 0.74rem;
    text-align: right;
}

.messages-page--mainstream .messages-thread__compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 0;
    padding: 14px;
    border-top: 1px solid rgba(215, 171, 102, 0.22);
    background: rgba(255, 250, 241, 0.96);
}

.messages-page--mainstream .message-composer__field {
    min-width: 0;
}

.messages-page--mainstream .message-composer__field label {
    display: block;
    margin: 0 0 6px;
    color: #6b2a2d;
    font-size: 0.82rem;
    font-weight: 700;
}

.messages-page--mainstream .message-composer__input {
    width: 100%;
    min-height: 52px;
    max-height: 132px;
    resize: vertical;
    border: 1px solid rgba(215, 171, 102, 0.34);
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.98);
    color: #4d1719;
}

.messages-page--mainstream .message-composer__input:focus {
    border-color: #d6a34e;
    outline: 3px solid rgba(220, 173, 82, 0.2);
}

.messages-page--mainstream .message-composer__button {
    min-width: 106px;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #efc36e, #dca14d);
    color: #4d1719;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(134, 79, 31, 0.14);
}

@media (max-width: 720px) {
    .messages-page--mainstream {
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
    }

    .messages-page--mainstream .messages-page__header--compact {
        margin: 0 0 10px;
        padding: 4px 4px 0;
    }

    .messages-page--mainstream .messages-layout {
        display: block;
        min-height: 0;
    }

    .messages-page--inbox .messages-thread--empty {
        display: none;
    }

    .messages-page--mainstream .messages-sidebar {
        border-radius: 20px;
    }

    .messages-page--mainstream .message-list--mainstream {
        max-height: none;
        overflow: visible;
        padding: 8px;
    }

    .messages-page--mainstream .message-list__link {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        min-height: 68px;
        padding: 9px;
    }

    .messages-page--mainstream .message-list__avatar {
        width: 46px;
        height: 46px;
    }

    .messages-page--thread {
        padding: 0 8px calc(102px + env(safe-area-inset-bottom));
    }

    .messages-page--thread .messages-page__header--compact,
    .messages-page--thread .messages-sidebar {
        display: none;
    }

    .messages-page--thread .messages-thread {
        min-height: calc(100dvh - 104px - env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
        box-shadow: 0 14px 34px rgba(91, 37, 28, 0.08);
    }

    .messages-page--mainstream .messages-thread__topbar {
        position: sticky;
        top: 0;
        z-index: 4;
        grid-template-columns: auto 44px minmax(0, 1fr);
        min-height: 66px;
        padding: 9px 10px;
    }

    .messages-page--mainstream .messages-thread__back {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .messages-page--mainstream .messages-thread__back span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .messages-page--mainstream .messages-thread__avatar {
        width: 44px;
        height: 44px;
    }

    .messages-page--mainstream .messages-thread__scroll {
        padding: 14px 10px 12px;
    }

    .messages-page--mainstream .message-thread__bubble {
        max-width: 78%;
        border-radius: 18px;
    }

    .messages-page--mainstream .message-thread__notice {
        margin: 8px 10px 0;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .messages-page--mainstream .messages-thread__compose {
        position: sticky;
        bottom: calc(74px + env(safe-area-inset-bottom));
        z-index: 5;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(215, 171, 102, 0.24);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -12px 28px rgba(91, 37, 28, 0.1);
    }

    .messages-page--mainstream .message-composer__field label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .messages-page--mainstream .message-composer__input {
        min-height: 44px;
        max-height: 88px;
        resize: none;
        border-radius: 14px;
    }

    .messages-page--mainstream .message-composer__button {
        min-width: 74px;
        min-height: 44px;
        border-radius: 14px;
    }
}

/* Mobile layout hotfix: member profile overflow and messages compose */
@media (max-width: 720px) {
    body:has(.member-profile-page--approved-visual) {
        overflow-x: clip;
    }

    .member-profile-page--approved-visual {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .member-profile-page--approved-visual *,
    .member-profile-page--approved-visual *::before,
    .member-profile-page--approved-visual *::after {
        box-sizing: border-box;
    }

    .member-profile-page--approved-visual :is(
        .member-profile,
        .member-profile__hero,
        .member-profile__summary,
        .member-profile__details,
        .member-profile__albums,
        .member-profile__album-grid,
        .member-profile__actions,
        .member-profile__main,
        .member-profile__content,
        .member-profile__card,
        .member-profile__panel,
        .member-profile-card,
        .member-profile-layout,
        .member-profile-summary,
        .member-profile-detail,
        .member-profile-details,
        .profile-summary,
        .profile-detail,
        .profile-detail-card,
        .member-gallery,
        .member-gallery__track,
        .member-gallery__grid,
        .member-gallery__item
    ) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .member-profile-page--approved-visual :is(img, picture, video, canvas) {
        max-width: 100%;
    }

    .member-profile-page--approved-visual :is(.member-profile__actions, .member-profile-actions, .profile-actions) {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        min-width: 0;
    }

    .member-profile-page--approved-visual :is(.member-profile__actions a, .member-profile__actions button, .member-profile-actions a, .member-profile-actions button, .profile-actions a, .profile-actions button) {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }

    .member-profile-page--approved-visual :is(.member-profile__album-grid, .member-gallery__track, .member-gallery__grid) {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .messages-page--thread.messages-page--mainstream {
        min-height: calc(100dvh - 76px);
        padding: 0 8px calc(92px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .messages-page--thread .messages-layout--active {
        height: calc(100dvh - 156px - env(safe-area-inset-bottom));
        min-height: 460px;
        max-height: calc(100dvh - 132px - env(safe-area-inset-bottom));
    }

    .messages-page--thread .messages-thread {
        display: grid;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        overflow: hidden;
        border-radius: 20px 20px 0 0;
    }

    .messages-page--thread .messages-thread__topbar {
        min-height: 60px;
        padding: 8px 10px;
    }

    .messages-page--thread .messages-thread__scroll {
        min-height: 0;
        overflow-y: auto;
        padding: 12px 10px 14px;
        overscroll-behavior: contain;
    }

    .messages-page--thread .message-thread__bubble {
        max-width: 78%;
    }

    .messages-page--thread .messages-thread__compose {
        position: relative;
        bottom: auto;
        z-index: 3;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 10px;
        border-top: 1px solid rgba(215, 171, 102, 0.24);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        background: rgba(255, 250, 241, 0.98);
        box-shadow: 0 -10px 22px rgba(91, 37, 28, 0.08);
    }

    .messages-page--thread .message-composer__field {
        min-width: 0;
    }

    .messages-page--thread .message-composer__input {
        display: block;
        min-height: 44px;
        max-height: 84px;
        resize: none;
    }

    .messages-page--thread .message-composer__button {
        min-width: 72px;
        min-height: 44px;
        padding: 0 14px;
    }
}

@media (max-width: 380px) {
    .messages-page--thread .messages-layout--active {
        height: calc(100dvh - 146px - env(safe-area-inset-bottom));
        min-height: 430px;
    }

    .messages-page--thread .message-thread__bubble {
        max-width: 82%;
    }
}

/* Messages app layout contract rebuild */
.messages-page--app {
    --messages-bottom-nav-offset: 76px;
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 28px 0 112px;
    color: #4d1719;
}

.messages-page--app,
.messages-page--app * {
    box-sizing: border-box;
}

.messages-page--app .messages-page__header--app {
    margin: 0 0 18px;
    padding: 0 4px;
}

.messages-page--app .messages-page__header--app h1 {
    margin: 0;
    color: #4d1719;
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    line-height: 1.1;
}

.messages-page--app .messages-page__header--app p {
    margin: 8px 0 0;
    color: #8d7164;
}

.messages-page--app .messages-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    height: min(760px, calc(100dvh - 150px));
    min-height: 600px;
}

.messages-page--app .messages-sidebar,
.messages-page--app .messages-thread {
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(215, 171, 102, 0.24);
    border-radius: 24px;
    background: rgba(255, 250, 241, 0.92);
    box-shadow: 0 18px 48px rgba(91, 37, 28, 0.08);
    overflow: hidden;
}

.messages-page--app .messages-sidebar {
    display: flex;
    flex-direction: column;
}

.messages-page--app .messages-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(215, 171, 102, 0.18);
}

.messages-page--app .messages-sidebar__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #b47b3f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
}

.messages-page--app .messages-sidebar__header h2,
.messages-page--app .messages-sidebar__title {
    margin: 0;
    color: #4d1719;
    font-size: 1.18rem;
    font-weight: 900;
    text-decoration: none;
}

.messages-page--app .messages-sidebar__count {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(235, 196, 126, 0.28);
    color: #6b2a2d;
    font-weight: 900;
    font-size: 0.86rem;
}

.messages-page--app .messages-sidebar__empty {
    margin: 18px;
    padding: 18px;
    border: 1px solid rgba(215, 171, 102, 0.2);
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.84);
    color: #8d7164;
    text-align: center;
}

.messages-page--app .messages-list {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 10px;
}

.messages-page--app .messages-list__item {
    border-radius: 18px;
}

.messages-page--app .messages-list__link {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 10px;
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.messages-page--app .messages-list__link:hover,
.messages-page--app .messages-list__item--active .messages-list__link {
    background: rgba(249, 232, 204, 0.72);
    box-shadow: inset 0 0 0 1px rgba(215, 171, 102, 0.18);
}

.messages-page--app .messages-list__avatar,
.messages-page--app .messages-thread__avatar {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1c470, #fff0cf);
    color: #5a181d;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(104, 48, 30, 0.12);
}

.messages-page--app .messages-list__main,
.messages-page--app .messages-thread__identity {
    min-width: 0;
}

.messages-page--app .messages-list__name,
.messages-page--app .messages-thread__name {
    display: block;
    overflow: hidden;
    color: #4d1719;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-page--app .messages-list__snippet {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #8d7164;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-page--app .messages-list__meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.messages-page--app .messages-list__time {
    color: #a48a7a;
    font-size: 0.76rem;
    white-space: nowrap;
}

.messages-page--app .messages-list__unread {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #7b2529;
    color: #fff7ea;
    font-size: 0.76rem;
    font-weight: 900;
}

.messages-page--app .messages-thread {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 247, 235, 0.94));
}

.messages-page--app .messages-thread--empty {
    display: grid;
    place-items: center;
}

.messages-page--app .messages-empty-state {
    max-width: 330px;
    padding: 32px;
    text-align: center;
}

.messages-page--app .messages-empty-state__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(235, 196, 126, 0.28);
    color: #6b2a2d;
    font-weight: 900;
}

.messages-page--app .messages-empty-state h2 {
    margin: 0 0 8px;
    color: #4d1719;
    font-size: 1.35rem;
}

.messages-page--app .messages-empty-state p {
    margin: 0;
    color: #8d7164;
}

.messages-page--app .messages-thread__header {
    display: grid;
    grid-template-columns: auto 50px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    flex: 0 0 auto;
    min-height: 74px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(215, 171, 102, 0.2);
    background: rgba(255, 250, 241, 0.96);
}

.messages-page--app .messages-thread__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(215, 171, 102, 0.3);
    border-radius: 999px;
    color: #6b2a2d;
    font-weight: 900;
    text-decoration: none;
}

.messages-page--app .messages-thread__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
    color: #8d7164;
    font-size: 0.84rem;
}

.messages-page--app .messages-thread__badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
}

.messages-page--app .messages-thread__badge--vip {
    background: #edc46d;
    color: #5a181d;
}

.messages-page--app .messages-thread__badge--verified {
    border: 1px solid rgba(215, 171, 102, 0.38);
    background: rgba(255, 252, 246, 0.92);
    color: #8b552d;
}

.messages-page--app .messages-thread__notice {
    flex: 0 0 auto;
    margin: 10px 14px 0;
    padding: 9px 12px;
    border: 1px solid rgba(215, 171, 102, 0.22);
    border-radius: 14px;
    background: rgba(255, 247, 235, 0.86);
    color: #6b2a2d;
    font-size: 0.9rem;
}

.messages-page--app .messages-thread__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
    scroll-behavior: smooth;
}

.messages-page--app .messages-thread__empty {
    margin: auto;
    color: #8d7164;
    text-align: center;
}

.messages-page--app .messages-bubble-row {
    display: flex;
}

.messages-page--app .messages-bubble-row--mine {
    justify-content: flex-end;
}

.messages-page--app .messages-bubble-row--other {
    justify-content: flex-start;
}

.messages-page--app .messages-bubble {
    max-width: min(72%, 560px);
    border-radius: 20px;
    padding: 11px 13px 9px;
    box-shadow: 0 10px 24px rgba(91, 37, 28, 0.07);
}

.messages-page--app .messages-bubble--mine {
    border: 1px solid rgba(215, 171, 102, 0.28);
    background: linear-gradient(135deg, #f4d28b, #f8e5b7);
    color: #4d1719;
}

.messages-page--app .messages-bubble--other {
    border: 1px solid rgba(215, 171, 102, 0.22);
    background: rgba(255, 252, 246, 0.96);
    color: #4d1719;
}

.messages-page--app .messages-bubble__text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.messages-page--app .messages-bubble__time {
    display: block;
    margin-top: 6px;
    color: rgba(82, 40, 38, 0.55);
    font-size: 0.74rem;
    text-align: right;
}

.messages-page--app .messages-thread__compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    flex: 0 0 auto;
    margin: 0;
    padding: 14px;
    border-top: 1px solid rgba(215, 171, 102, 0.22);
    background: rgba(255, 250, 241, 0.98);
}

.messages-page--app .messages-thread__compose-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.messages-page--app .messages-thread__textarea {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    max-height: 120px;
    resize: vertical;
    border: 1px solid rgba(215, 171, 102, 0.34);
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.98);
    color: #4d1719;
}

.messages-page--app .messages-thread__textarea:focus {
    border-color: #d6a34e;
    outline: 3px solid rgba(220, 173, 82, 0.2);
}

.messages-page--app .messages-thread__send {
    min-width: 96px;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #efc36e, #dca14d);
    color: #4d1719;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(134, 79, 31, 0.14);
}

@media (max-width: 640px) {
    .messages-page--app {
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        padding: 14px 12px calc(var(--messages-bottom-nav-offset) + 18px + env(safe-area-inset-bottom));
    }

    .messages-page--app .messages-page__header--app {
        margin: 0 0 12px;
        padding: 0 2px;
    }

    .messages-page--app .messages-layout {
        display: block;
        height: auto;
        min-height: 0;
    }

    .messages-page--index .messages-thread--empty {
        display: none;
    }

    .messages-page--app .messages-sidebar {
        border-radius: 20px;
    }

    .messages-page--app .messages-list {
        overflow: visible;
        padding: 8px;
    }

    .messages-page--app .messages-list__link {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        min-height: 70px;
        padding: 9px;
    }

    .messages-page--thread {
        padding: 0 8px calc(var(--messages-bottom-nav-offset) + 12px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .messages-page--thread .messages-sidebar {
        display: none;
    }

    .messages-page--thread .messages-layout--thread {
        height: calc(100dvh - 92px - var(--messages-bottom-nav-offset) - env(safe-area-inset-bottom));
        min-height: 430px;
    }

    .messages-page--thread .messages-thread {
        height: 100%;
        min-height: 0;
        border-radius: 20px 20px 0 0;
    }

    .messages-page--thread .messages-thread__header {
        grid-template-columns: 38px 44px minmax(0, 1fr);
        min-height: 62px;
        padding: 8px 10px;
    }

    .messages-page--thread .messages-thread__back {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .messages-page--thread .messages-thread__back span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .messages-page--thread .messages-thread__avatar {
        width: 44px;
        height: 44px;
    }

    .messages-page--thread .messages-thread__notice {
        margin: 8px 10px 0;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .messages-page--thread .messages-thread__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 12px 10px 14px;
        overscroll-behavior: contain;
    }

    .messages-page--thread .messages-bubble {
        max-width: 78%;
        border-radius: 18px;
    }

    .messages-page--thread .messages-thread__compose {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
        border-radius: 0;
        box-shadow: 0 -10px 22px rgba(91, 37, 28, 0.08);
    }

    .messages-page--thread .messages-thread__textarea {
        min-height: 46px;
        max-height: 86px;
        resize: none;
        border-radius: 14px;
    }

    .messages-page--thread .messages-thread__send {
        min-width: 72px;
        min-height: 46px;
        padding: 0 14px;
        border-radius: 14px;
    }
}

@media (max-width: 380px) {
    .messages-page--thread .messages-layout--thread {
        height: calc(100dvh - 84px - var(--messages-bottom-nav-offset) - env(safe-area-inset-bottom));
        min-height: 410px;
    }

    .messages-page--thread .messages-bubble {
        max-width: 82%;
    }
}

/* Member profile mobile action buttons layout fix */
@media (max-width: 720px) {
    .member-profile-page--approved-visual .member-profile__actions {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
    }

    .member-profile-page--approved-visual .member-profile__actions > * {
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .member-profile-page--approved-visual .member-profile__actions > :nth-child(1),
    .member-profile-page--approved-visual .member-profile__actions > :nth-child(2) {
        grid-column: span 3;
    }

    .member-profile-page--approved-visual .member-profile__actions > :nth-child(n+3) {
        grid-column: span 2;
    }

    .member-profile-page--approved-visual .member-profile__actions .member-profile__action-button,
    .member-profile-page--approved-visual .member-profile__actions button,
    .member-profile-page--approved-visual .member-profile__message-link,
    .member-profile-page--approved-visual .member-profile__report > summary,
    .member-profile-page--approved-visual .member-profile__login-link {
        display: inline-flex;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 0.94rem;
        font-weight: 800;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }

    .member-profile-page--approved-visual .member-profile__actions > :nth-child(1) .member-profile__action-button,
    .member-profile-page--approved-visual .member-profile__message-link {
        min-height: 48px;
        border: 0;
        background: linear-gradient(135deg, #efc36e, #dca14d);
        color: #4d1719;
        box-shadow: 0 10px 22px rgba(134, 79, 31, 0.13);
    }

    .member-profile-page--approved-visual .member-profile__actions > :nth-child(n+3) .member-profile__action-button,
    .member-profile-page--approved-visual .member-profile__report > summary {
        border: 1px solid rgba(168, 69, 45, 0.18);
        background: rgba(255, 250, 242, 0.92);
        color: #7a2327;
        box-shadow: 0 8px 18px rgba(91, 37, 28, 0.06);
    }

    .member-profile-page--approved-visual .member-profile__report {
        position: relative;
        min-width: 0;
    }

    .member-profile-page--approved-visual .member-profile__report > summary {
        list-style: none;
        cursor: pointer;
    }

    .member-profile-page--approved-visual .member-profile__report > summary::-webkit-details-marker {
        display: none;
    }

    .member-profile-page--approved-visual .member-profile__report-form {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 20;
        width: min(292px, calc(100vw - 32px));
        padding: 12px;
        border: 1px solid rgba(215, 171, 102, 0.28);
        border-radius: 16px;
        background: rgba(255, 252, 246, 0.98);
        box-shadow: 0 16px 34px rgba(91, 37, 28, 0.14);
    }

    .member-profile-page--approved-visual .member-profile__report-form .member-profile__action-button {
        min-height: 42px;
        margin-top: 10px;
    }
}

@media (max-width: 374px) {
    .member-profile-page--approved-visual .member-profile__actions {
        gap: 8px;
    }

    .member-profile-page--approved-visual .member-profile__actions .member-profile__action-button,
    .member-profile-page--approved-visual .member-profile__actions button,
    .member-profile-page--approved-visual .member-profile__message-link,
    .member-profile-page--approved-visual .member-profile__report > summary,
    .member-profile-page--approved-visual .member-profile__login-link {
        min-height: 44px;
        padding: 0 8px;
        font-size: 0.88rem;
    }
}

/* NEW-muyfh Frontend Visual System Baseline */
:root {
  --muyfh-color-page: #fbf3e7;
  --muyfh-color-surface: rgba(255, 250, 241, 0.94);
  --muyfh-color-surface-strong: #fffaf1;
  --muyfh-color-text: #4d1719;
  --muyfh-color-muted: #8a7064;
  --muyfh-color-gold: #e3ad57;
  --muyfh-color-gold-strong: #d99a38;
  --muyfh-color-gold-soft: #f5d28b;
  --muyfh-color-border: rgba(213, 168, 97, 0.28);
  --muyfh-color-danger-soft: #7a252b;
  --muyfh-shadow-card: 0 16px 38px rgba(91, 37, 28, 0.08);
  --muyfh-shadow-card-soft: 0 10px 28px rgba(91, 37, 28, 0.06);
  --muyfh-radius-sm: 14px;
  --muyfh-radius-md: 18px;
  --muyfh-radius-lg: 24px;
  --muyfh-shell-max: 1180px;
  --muyfh-shell-wide: 1360px;
  --muyfh-mobile-pad: 14px;
  --muyfh-bottom-nav-offset: 76px;
}

.muyfh-page {
  color: var(--muyfh-color-text);
  background: var(--muyfh-color-page);
}

.muyfh-shell {
  width: min(100% - 32px, var(--muyfh-shell-max));
  margin-inline: auto;
}

.muyfh-shell--wide {
  width: min(100% - 32px, var(--muyfh-shell-wide));
}

.muyfh-card,
.muyfh-card--soft,
.muyfh-card--panel {
  box-sizing: border-box;
  max-width: 100%;
  color: var(--muyfh-color-text);
  border: 1px solid var(--muyfh-color-border);
  box-shadow: var(--muyfh-shadow-card-soft);
}

.muyfh-card {
  padding: 22px;
  border-radius: var(--muyfh-radius-md);
  background: var(--muyfh-color-surface-strong);
}

.muyfh-card--soft {
  padding: 20px;
  border-radius: var(--muyfh-radius-md);
  background: var(--muyfh-color-surface);
}

.muyfh-card--panel {
  padding: 26px;
  border-radius: var(--muyfh-radius-lg);
  background: linear-gradient(145deg, rgba(255, 251, 243, 0.98), rgba(248, 236, 218, 0.9));
  box-shadow: var(--muyfh-shadow-card);
}

.muyfh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.muyfh-button:focus-visible {
  outline: 2px solid rgba(227, 173, 87, 0.46);
  outline-offset: 2px;
}

.muyfh-button--primary {
  color: var(--muyfh-color-text);
  border-color: rgba(208, 151, 59, 0.38);
  background: linear-gradient(135deg, #f5d589 0%, var(--muyfh-color-gold) 100%);
  box-shadow: 0 10px 22px rgba(184, 119, 42, 0.16);
}

.muyfh-button--primary:hover {
  background: linear-gradient(135deg, #f7dc9b 0%, #dfa64d 100%);
  transform: translateY(-1px);
}

.muyfh-button--secondary {
  color: var(--muyfh-color-text);
  border-color: var(--muyfh-color-border);
  background: rgba(255, 250, 241, 0.88);
}

.muyfh-button--ghost {
  color: var(--muyfh-color-text);
  border-color: rgba(213, 168, 97, 0.18);
  background: rgba(255, 250, 241, 0.52);
}

.muyfh-button--danger-soft {
  color: var(--muyfh-color-danger-soft);
  border-color: rgba(122, 37, 43, 0.18);
  background: rgba(255, 244, 239, 0.78);
}

.muyfh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.muyfh-badge--vip {
  color: var(--muyfh-color-text);
  background: linear-gradient(135deg, #f7d98d, var(--muyfh-color-gold));
  border: 1px solid rgba(195, 136, 48, 0.28);
}

.muyfh-badge--verified {
  color: var(--muyfh-color-text);
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(213, 168, 97, 0.42);
}

.muyfh-badge--unread {
  min-width: 22px;
  min-height: 22px;
  padding-inline: 7px;
  color: #fffaf1;
  background: #8f2e35;
}

.muyfh-input,
.muyfh-textarea,
.muyfh-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--muyfh-color-border);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--muyfh-color-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.muyfh-input,
.muyfh-select {
  min-height: 46px;
  padding: 0 14px;
}

.muyfh-textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.muyfh-input:focus,
.muyfh-textarea:focus,
.muyfh-select:focus {
  outline: none;
  border-color: rgba(217, 154, 56, 0.62);
  box-shadow: 0 0 0 3px rgba(227, 173, 87, 0.16);
}

.muyfh-avatar,
.muyfh-photo {
  display: block;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 250, 241, 0.72);
}

.muyfh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.muyfh-photo--card {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.muyfh-photo--portrait {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.muyfh-photo--album {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.muyfh-empty {
  box-sizing: border-box;
  width: 100%;
  padding: 22px;
  border-radius: var(--muyfh-radius-md);
  border: 1px solid var(--muyfh-color-border);
  background: rgba(255, 250, 241, 0.78);
  color: var(--muyfh-color-muted);
  text-align: center;
}

.muyfh-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.muyfh-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.muyfh-mobile-safe {
  padding-bottom: calc(var(--muyfh-bottom-nav-offset) + env(safe-area-inset-bottom));
}

.muyfh-chat-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  min-height: min(720px, calc(100dvh - 128px));
}

.muyfh-chat-thread {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--muyfh-radius-lg);
  border: 1px solid var(--muyfh-color-border);
  background: var(--muyfh-color-surface-strong);
  box-shadow: var(--muyfh-shadow-card-soft);
}

.muyfh-chat-compose {
  flex: 0 0 auto;
  border-top: 1px solid rgba(213, 168, 97, 0.22);
  background: rgba(255, 250, 241, 0.96);
}

body:has(.member-profile-page--approved-visual) {
  overflow-x: clip;
}

.member-profile-page--approved-visual,
.member-profile-page--approved-visual * {
  box-sizing: border-box;
}

.member-profile-page--approved-visual {
  max-width: 100%;
  overflow-x: hidden;
}

.member-profile-page--approved-visual img,
.member-profile-page--approved-visual video,
.member-profile-page--approved-visual canvas {
  max-width: 100%;
}

.member-profile-page--approved-visual .member-profile__hero,
.member-profile-page--approved-visual .member-profile__summary,
.member-profile-page--approved-visual .member-profile__gallery,
.member-profile-page--approved-visual .member-profile__details,
.member-profile-page--approved-visual .member-profile__card {
  max-width: 100%;
  min-width: 0;
}

.member-profile-page--approved-visual .member-profile__actions,
.member-profile-page--approved-visual .profile-actions,
.member-profile-page--approved-visual .member-actions {
  max-width: 100%;
  min-width: 0;
}

.messages-page--app,
.messages-page--app * {
  box-sizing: border-box;
}

.messages-page--app {
  color: var(--muyfh-color-text);
}

.messages-page--app .messages-layout,
.messages-page--app .messages-sidebar,
.messages-page--app .messages-thread,
.messages-page--app .messages-thread__body,
.messages-page--app .messages-thread__compose {
  min-width: 0;
}

.messages-page--app .message-bubble--mine {
  background: linear-gradient(135deg, rgba(246, 215, 158, 0.92), rgba(240, 196, 117, 0.78));
  color: var(--muyfh-color-text);
}

.messages-page--app .message-bubble--other {
  background: rgba(255, 250, 241, 0.94);
  color: var(--muyfh-color-text);
  border-color: rgba(213, 168, 97, 0.24);
}

.messages-page--app .messages-unread,
.messages-page--app .unread-badge,
.messages-page--app .message-unread-badge {
  background: #8f2e35;
  color: #fffaf1;
}

@media (min-width: 900px) {
  .muyfh-shell {
    width: min(100% - 48px, var(--muyfh-shell-max));
  }

  .muyfh-shell--wide {
    width: min(100% - 48px, var(--muyfh-shell-wide));
  }

  .muyfh-card {
    padding: 24px;
  }

  .muyfh-card--panel {
    padding: 28px;
  }

  .muyfh-action-grid--three,
  .muyfh-info-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .muyfh-shell,
  .muyfh-shell--wide {
    width: calc(100% - (var(--muyfh-mobile-pad) * 2));
  }

  .muyfh-page {
    overflow-x: clip;
  }

  .muyfh-card,
  .muyfh-card--soft,
  .muyfh-card--panel {
    width: 100%;
    padding: 16px;
    border-radius: var(--muyfh-radius-md);
  }

  .muyfh-button {
    width: 100%;
    min-height: 44px;
    padding-inline: 14px;
  }

  .muyfh-button--secondary,
  .muyfh-button--ghost,
  .muyfh-button--danger-soft {
    min-height: 40px;
  }

  .muyfh-badge {
    min-height: 24px;
    font-size: 12px;
  }

  .muyfh-input,
  .muyfh-select {
    min-height: 46px;
  }

  .muyfh-info-grid,
  .muyfh-info-grid--three {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .muyfh-action-grid,
  .muyfh-action-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .muyfh-chat-shell {
    display: flex;
    min-height: calc(100dvh - 64px);
    flex-direction: column;
  }

  .muyfh-chat-thread {
    min-height: 0;
    flex: 1 1 auto;
  }

  .muyfh-chat-compose {
    position: sticky;
    bottom: calc(var(--muyfh-bottom-nav-offset) + env(safe-area-inset-bottom));
    z-index: 30;
  }

  .member-profile-page--approved-visual {
    width: 100%;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    padding-bottom: calc(var(--muyfh-bottom-nav-offset) + env(safe-area-inset-bottom));
  }

  .member-profile-page--approved-visual .member-profile__actions,
  .member-profile-page--approved-visual .profile-actions,
  .member-profile-page--approved-visual .member-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .member-profile-page--approved-visual .member-profile__actions > *,
  .member-profile-page--approved-visual .profile-actions > *,
  .member-profile-page--approved-visual .member-actions > * {
    min-width: 0;
  }

  .member-profile-page--approved-visual .member-profile__actions button,
  .member-profile-page--approved-visual .member-profile__actions a,
  .member-profile-page--approved-visual .profile-actions button,
  .member-profile-page--approved-visual .profile-actions a,
  .member-profile-page--approved-visual .member-actions button,
  .member-profile-page--approved-visual .member-actions a {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .member-profile-page--approved-visual .member-profile__gallery,
  .member-profile-page--approved-visual .profile-gallery,
  .member-profile-page--approved-visual .member-gallery {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .messages-page--thread {
    min-height: calc(100dvh - 64px);
    padding-bottom: calc(var(--muyfh-bottom-nav-offset) + env(safe-area-inset-bottom));
  }

  .messages-page--thread .messages-layout {
    display: flex;
    min-height: calc(100dvh - 64px - var(--muyfh-bottom-nav-offset));
    flex-direction: column;
  }

  .messages-page--thread .messages-sidebar {
    display: none;
  }

  .messages-page--thread .messages-thread {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .messages-page--thread .messages-thread__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 18px;
  }

  .messages-page--thread .messages-thread__compose,
  .messages-page--app .message-compose {
    position: sticky;
    bottom: calc(var(--muyfh-bottom-nav-offset) + env(safe-area-inset-bottom));
    z-index: 30;
    border-top: 1px solid rgba(213, 168, 97, 0.24);
    background: rgba(255, 250, 241, 0.97);
    box-shadow: 0 -12px 28px rgba(91, 37, 28, 0.08);
  }

  .messages-page--thread .messages-thread__compose textarea,
  .messages-page--app .message-compose textarea {
    min-height: 48px;
    max-height: 120px;
  }
}

/* Messages mobile compose overlap targeted fix */
@media (max-width: 640px) {
  .messages-page--thread {
    --messages-compose-height: 104px;
    --messages-compose-reserve: calc(var(--messages-compose-height) + 18px);
    min-height: calc(100dvh - 64px);
    overflow: hidden;
  }

  .messages-page--thread .messages-layout,
  .messages-page--thread .messages-layout--thread {
    display: flex;
    height: calc(100dvh - 64px - var(--muyfh-bottom-nav-offset, 76px) - env(safe-area-inset-bottom));
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .messages-page--thread .messages-thread {
    display: flex;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }

  .messages-page--thread .messages-thread__header,
  .messages-page--thread .messages-thread__notice,
  .messages-page--thread .messages-thread__compose {
    flex: 0 0 auto;
  }

  .messages-page--thread .messages-thread__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: var(--messages-compose-reserve);
    scroll-padding-bottom: var(--messages-compose-reserve);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .messages-page--thread .messages-thread__body::after {
    content: "";
    display: block;
    height: 1px;
    flex: 0 0 auto;
  }

  .messages-page--thread .messages-thread__compose {
    position: relative;
    inset: auto;
    bottom: auto;
    z-index: 3;
    width: 100%;
    min-height: 0;
    margin: 0;
    transform: none;
    border-top: 1px solid rgba(213, 168, 97, 0.24);
    background: rgba(255, 250, 241, 0.98);
    box-shadow: 0 -8px 22px rgba(91, 37, 28, 0.07);
  }

  .messages-page--thread .messages-thread__textarea {
    min-height: 48px;
    max-height: 96px;
  }

  .messages-page--thread .messages-thread__send {
    min-height: 48px;
  }
}

/* Notifications visual inheritance batch 1 */
.notifications-page--visual-batch1 {
  min-height: calc(100dvh - 72px);
  padding: 28px min(32px, 4vw) 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(227, 173, 87, 0.18), transparent 36%),
    linear-gradient(180deg, #fbf1e4 0%, #f8ead8 100%);
  color: var(--muyfh-color-text, #4d1719);
}

.notifications-page--visual-batch1 .notifications-layout {
  display: grid;
  grid-template-columns: minmax(280px, 328px) minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 1360px);
  margin: 0 auto;
}

.notifications-page--visual-batch1 .notifications-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(227, 173, 87, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(245, 210, 139, 0.18), transparent 26%),
    linear-gradient(145deg, #32110f 0%, #5a201c 56%, #3a1412 100%);
  box-shadow: 0 18px 38px rgba(68, 22, 18, 0.18);
  color: #fff3dc;
  padding: 18px 14px;
}

.notifications-page--visual-batch1 .notifications-sidebar::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 32px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(245, 210, 139, 0.12);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.notifications-page--visual-batch1 .notifications-sidebar__brand {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 10px 6px;
  z-index: 1;
}

.notifications-page--visual-batch1 .notifications-sidebar__mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #4d1719;
  background: linear-gradient(135deg, #f7dc9b, #e3ad57);
  font-weight: 800;
}

.notifications-page--visual-batch1 .notifications-sidebar h1,
.notifications-page--visual-batch1 .notifications-main h1 {
  margin: 0;
  letter-spacing: 0;
}

.notifications-page--visual-batch1 .notifications-sidebar h1 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  line-height: 1.1;
  color: #fff9ec;
}

.notifications-page--visual-batch1 .notifications-sidebar p {
  margin: 10px 0 0;
  color: rgba(255, 243, 220, 0.74);
  line-height: 1.65;
}

.notifications-page--visual-batch1 .notifications-sidebar__nav {
  position: relative;
  display: grid;
  gap: 10px;
  z-index: 1;
}

.notifications-page--visual-batch1 .notifications-sidebar__item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fff3dc;
}

.notifications-page--visual-batch1 .notifications-sidebar__item.is-active {
  border-color: rgba(227, 173, 87, 0.45);
  background: linear-gradient(135deg, rgba(227, 173, 87, 0.26), rgba(255, 250, 241, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.13), 0 10px 22px rgba(0, 0, 0, 0.12);
}

.notifications-page--visual-batch1 .notifications-sidebar__icon,
.notifications-page--visual-batch1 .notifications-sidebar__tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #f8d58c;
  background: rgba(255, 250, 241, 0.08);
  font-weight: 800;
}

.notifications-page--visual-batch1 .notifications-sidebar__icon {
  width: 38px;
  height: 38px;
}

.notifications-page--visual-batch1 .notifications-sidebar__count,
.notifications-page--visual-batch1 .notifications-tabs__count {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fffaf1;
  background: #8f2e35;
  font-size: 0.78rem;
  font-weight: 800;
}

.notifications-page--visual-batch1 .notifications-sidebar__tip {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(227, 173, 87, 0.28);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.06);
  z-index: 1;
}

.notifications-page--visual-batch1 .notifications-sidebar__tip-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(247, 220, 155, 0.28), rgba(227, 173, 87, 0.1));
}

.notifications-page--visual-batch1 .notifications-sidebar__tip strong {
  display: block;
  color: #fff9ec;
  line-height: 1.45;
}

.notifications-page--visual-batch1 .notifications-sidebar__tip p {
  margin-top: 6px;
  font-size: 0.92rem;
}

.notifications-page--visual-batch1 .notifications-main {
  min-width: 0;
  border: 1px solid rgba(213, 168, 97, 0.3);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 16px 38px rgba(91, 37, 28, 0.08);
  padding: clamp(16px, 2vw, 20px);
}

.notifications-page--visual-batch1 .notifications-main__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.notifications-page--visual-batch1 .notifications-main__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9b6c3a;
  font-size: 0.85rem;
  font-weight: 800;
}

.notifications-page--visual-batch1 .notifications-main h1 {
  color: var(--muyfh-color-text, #4d1719);
  font-size: clamp(2rem, 2.6vw, 2.65rem);
  line-height: 1.12;
}

.notifications-page--visual-batch1 .notifications-main__summary p {
  margin: 10px 0 0;
  color: var(--muyfh-color-muted, #8a7064);
}

.notifications-page--visual-batch1 .notifications-read-all-form {
  flex: 0 0 auto;
}

.notifications-page--visual-batch1 .notifications-read-all-button {
  min-height: 44px;
  border-color: rgba(213, 168, 97, 0.38);
  background: rgba(255, 250, 241, 0.78);
  color: var(--muyfh-color-text, #4d1719);
}

.notifications-page--visual-batch1 .notifications-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.notifications-page--visual-batch1 .notifications-tabs__item {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(213, 168, 97, 0.3);
  border-radius: 999px;
  color: var(--muyfh-color-text, #4d1719);
  background: rgba(255, 250, 241, 0.72);
  font-weight: 700;
}

.notifications-page--visual-batch1 .notifications-tabs__item.is-active {
  border-color: rgba(208, 151, 59, 0.35);
  background: linear-gradient(135deg, #f6d78f, #e3ad57);
  box-shadow: 0 10px 20px rgba(184, 119, 42, 0.14);
}

.notifications-page--visual-batch1 .notifications-list {
  display: grid;
  gap: 14px;
}

.notifications-page--visual-batch1 .notification-card {
  position: relative;
  display: grid;
  grid-template-columns: 12px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(213, 168, 97, 0.26);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 10px 26px rgba(91, 37, 28, 0.055);
}

.notifications-page--visual-batch1 .notification-card--unread {
  border-color: rgba(213, 168, 97, 0.42);
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(250, 238, 216, 0.78));
}

.notifications-page--visual-batch1 .notification-card__unread {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
}

.notifications-page--visual-batch1 .notification-card--unread .notification-card__unread {
  background: #bd303b;
  box-shadow: 0 0 0 4px rgba(189, 48, 59, 0.08);
}

.notifications-page--visual-batch1 .notification-card__icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f9d789;
  background: radial-gradient(circle at 35% 25%, rgba(247, 220, 155, 0.32), transparent 32%), linear-gradient(145deg, #5a201c, #32110f);
  font-weight: 900;
}

.notifications-page--visual-batch1 .notification-card--interaction .notification-card__icon {
  color: #fff1d3;
  background: linear-gradient(145deg, #8d323a, #5a201c);
}

.notifications-page--visual-batch1 .notification-card--verification .notification-card__icon {
  color: #4d1719;
  background: linear-gradient(145deg, #f7dc9b, #dca24a);
}

.notifications-page--visual-batch1 .notification-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notifications-page--visual-batch1 .notification-card h2 {
  margin: 0;
  color: var(--muyfh-color-text, #4d1719);
  font-size: 1.05rem;
  line-height: 1.35;
}

.notifications-page--visual-batch1 .notification-card__type {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #8c5d30;
  background: rgba(227, 173, 87, 0.14);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.notifications-page--visual-batch1 .notification-card p {
  margin: 6px 0 0;
  color: #6f5047;
  line-height: 1.58;
}

.notifications-page--visual-batch1 .notification-card__meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  color: var(--muyfh-color-muted, #8a7064);
  font-size: 0.86rem;
}

.notifications-page--visual-batch1 .notification-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.notifications-page--visual-batch1 .notification-card__link,
.notifications-page--visual-batch1 .notification-card__read-button,
.notifications-page--visual-batch1 .notifications-pagination a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(213, 168, 97, 0.28);
  border-radius: 999px;
  color: var(--muyfh-color-text, #4d1719);
  background: rgba(255, 250, 241, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.notifications-page--visual-batch1 .notification-card__read-button {
  cursor: pointer;
}

.notifications-page--visual-batch1 .notifications-empty {
  margin-top: 14px;
}

.notifications-page--visual-batch1 .notifications-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muyfh-color-muted, #8a7064);
}

@media (max-width: 760px) {
  .notifications-page--visual-batch1 {
    padding: 18px 12px calc(var(--muyfh-bottom-nav-offset, 76px) + 18px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, #32110f 0 118px, transparent 118px),
      radial-gradient(circle at 86% 0%, rgba(227, 173, 87, 0.16), transparent 32%),
      linear-gradient(180deg, #fff3e2 0%, #f8ead8 100%);
  }

  .notifications-page--visual-batch1 .notifications-layout {
    display: block;
    width: 100%;
  }

  .notifications-page--visual-batch1 .notifications-sidebar {
    position: static;
    min-height: 0;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--muyfh-color-text, #4d1719);
  }

  .notifications-page--visual-batch1 .notifications-sidebar::after,
  .notifications-page--visual-batch1 .notifications-sidebar__nav,
  .notifications-page--visual-batch1 .notifications-sidebar__tip {
    display: none;
  }

  .notifications-page--visual-batch1 .notifications-sidebar__brand {
    padding: 10px 4px 8px;
  }

  .notifications-page--visual-batch1 .notifications-sidebar__mark {
    color: #4d1719;
  }

  .notifications-page--visual-batch1 .notifications-sidebar h1 {
    color: #fff6e8;
    font-size: 2.2rem;
  }

  .notifications-page--visual-batch1 .notifications-sidebar p {
    color: rgba(255, 246, 232, 0.78);
  }

  .notifications-page--visual-batch1 .notifications-main {
    padding: 20px 14px 18px;
    border-radius: 24px 24px 18px 18px;
  }

  .notifications-page--visual-batch1 .notifications-main__header {
    align-items: flex-start;
    gap: 12px;
  }

  .notifications-page--visual-batch1 .notifications-main__eyebrow {
    display: none;
  }

  .notifications-page--visual-batch1 .notifications-main h1 {
    font-size: 2.15rem;
  }

  .notifications-page--visual-batch1 .notifications-main__summary p {
    max-width: 14rem;
    line-height: 1.6;
  }

  .notifications-page--visual-batch1 .notifications-read-all-button {
    min-height: 40px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .notifications-page--visual-batch1 .notifications-tabs {
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    margin: 18px 0 22px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4b1916, #32110f);
    scrollbar-width: none;
  }

  .notifications-page--visual-batch1 .notifications-tabs::-webkit-scrollbar {
    display: none;
  }

  .notifications-page--visual-batch1 .notifications-tabs__item {
    flex: 0 0 auto;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #fff2d8;
  }

  .notifications-page--visual-batch1 .notifications-tabs__item.is-active {
    background: linear-gradient(135deg, #f7dc9b, #e3ad57);
    color: #4d1719;
  }

  .notifications-page--visual-batch1 .notification-card {
    grid-template-columns: 10px 54px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 15px 12px;
    border-radius: 18px;
  }

  .notifications-page--visual-batch1 .notification-card__icon {
    width: 52px;
    height: 52px;
  }

  .notifications-page--visual-batch1 .notification-card__heading {
    display: block;
  }

  .notifications-page--visual-batch1 .notification-card__type {
    margin-top: 6px;
  }

  .notifications-page--visual-batch1 .notification-card__actions {
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .notifications-page--visual-batch1 .notification-card__link,
  .notifications-page--visual-batch1 .notification-card__read-button {
    min-width: 42px;
    min-height: 34px;
    padding-inline: 9px;
  }

  .notifications-page--visual-batch1 .notification-card__read-button {
    font-size: 0.78rem;
  }
}

/* Notifications promo removal and category tabs fix */
.notifications-page--visual-batch1 .notifications-sidebar__tip {
  display: none;
}

.notifications-page--visual-batch1 .notifications-sidebar__item,
.notifications-page--visual-batch1 .notifications-tabs__item {
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.notifications-page--visual-batch1 .notifications-sidebar__item:focus-visible,
.notifications-page--visual-batch1 .notifications-tabs__item:focus-visible {
  outline: 2px solid rgba(227, 173, 87, 0.5);
  outline-offset: 3px;
}

.notifications-page--visual-batch1 .notification-card[hidden] {
  display: none;
}

/* Notifications sidebar button color fix */
.notifications-page--visual-batch1 .notifications-sidebar .notifications-sidebar__item,
.notifications-page--visual-batch1 .notifications-sidebar [data-notification-filter] {
  border: 1px solid rgba(230, 183, 99, 0.28);
  background: rgba(255, 244, 218, 0.08);
  color: #f7ead2;
  box-shadow: inset 0 1px 0 rgba(255, 244, 218, 0.08);
}

.notifications-page--visual-batch1 .notifications-sidebar .notifications-sidebar__item:not(.is-active):hover,
.notifications-page--visual-batch1 .notifications-sidebar [data-notification-filter]:not(.is-active):hover {
  border-color: rgba(230, 183, 99, 0.46);
  background: rgba(230, 183, 99, 0.14);
  color: #fff3dc;
}

.notifications-page--visual-batch1 .notifications-sidebar .notifications-sidebar__item.is-active,
.notifications-page--visual-batch1 .notifications-sidebar [data-notification-filter].is-active {
  border-color: rgba(247, 220, 155, 0.58);
  background: linear-gradient(135deg, rgba(227, 173, 87, 0.34), rgba(92, 33, 28, 0.58));
  color: #fff8e8;
  box-shadow: inset 0 1px 0 rgba(255, 244, 218, 0.16), 0 10px 22px rgba(0, 0, 0, 0.14);
}

.notifications-page--visual-batch1 .notifications-sidebar .notifications-sidebar__icon {
  color: #f4cf86;
  background: rgba(230, 183, 99, 0.12);
}

.notifications-page--visual-batch1 .notifications-sidebar .notifications-sidebar__item.is-active .notifications-sidebar__icon,
.notifications-page--visual-batch1 .notifications-sidebar [data-notification-filter].is-active .notifications-sidebar__icon {
  color: #4d1719;
  background: linear-gradient(135deg, #f7dc9b, #e3ad57);
}

.notifications-page--visual-batch1 .notifications-sidebar .notifications-sidebar__count {
  color: #fff8e8;
  background: #8f2e35;
}

/* Notifications mobile header removal and tabs reflow */
@media (max-width: 760px) {
  .notifications-page--visual-batch1 {
    padding-top: 12px;
    background:
      radial-gradient(circle at 86% 0%, rgba(227, 173, 87, 0.13), transparent 30%),
      linear-gradient(180deg, #fff3e2 0%, #f8ead8 100%);
  }

  .notifications-page--visual-batch1 .notifications-sidebar {
    display: none;
  }

  .notifications-page--visual-batch1 .notifications-main__header {
    display: none;
  }

  .notifications-page--visual-batch1 .notifications-main {
    border-radius: 20px;
    padding-top: 14px;
  }

  .notifications-page--visual-batch1 .notifications-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    margin: 0 0 18px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4b1916, #32110f);
  }

  .notifications-page--visual-batch1 .notifications-tabs__item[data-notification-filter="all"] {
    display: none;
  }

  .notifications-page--visual-batch1 .notifications-tabs__item {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
  }

  .notifications-page--visual-batch1 .notifications-tabs__count {
    min-width: 22px;
    min-height: 22px;
    font-size: 0.74rem;
  }
}

/* Messages restyle to final notifications style */
.messages-page--app {
  min-height: calc(100dvh - 72px);
  padding: 28px min(32px, 4vw) 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(227, 173, 87, 0.16), transparent 34%),
    linear-gradient(180deg, #fbf1e4 0%, #f8ead8 100%);
  color: var(--muyfh-color-text, #4d1719);
}

.messages-page--app .messages-page__header--app {
  width: min(100%, 1360px);
  margin: 0 auto 18px;
  padding: 0 2px;
  color: var(--muyfh-color-text, #4d1719);
}

.messages-page--app .messages-page__eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: #9b6c3a;
  font-weight: 800;
}

.messages-page--app .messages-page__header--app h1 {
  margin: 0;
  color: var(--muyfh-color-text, #4d1719);
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  letter-spacing: 0;
}

.messages-page--app .messages-page__header--app p {
  margin: 8px 0 0;
  color: var(--muyfh-color-muted, #8a7064);
}

.messages-page--app .messages-layout {
  width: min(100%, 1360px);
  margin: 0 auto;
  gap: 18px;
}

.messages-page--app .messages-sidebar {
  overflow: hidden;
  border: 1px solid rgba(227, 173, 87, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(245, 210, 139, 0.17), transparent 26%),
    linear-gradient(145deg, #32110f 0%, #5a201c 56%, #3a1412 100%);
  box-shadow: 0 18px 38px rgba(68, 22, 18, 0.17);
  color: #fff3dc;
}

.messages-page--app .messages-sidebar__header {
  min-height: 76px;
  border-bottom: 1px solid rgba(227, 173, 87, 0.2);
  background: rgba(255, 244, 218, 0.04);
}

.messages-page--app .messages-sidebar__title,
.messages-page--app .messages-sidebar__eyebrow,
.messages-page--app .messages-sidebar h2 {
  color: #fff9ec;
}

.messages-page--app .messages-sidebar__title {
  text-decoration: none;
}

.messages-page--app .messages-sidebar__count {
  color: #fff8e8;
  background: #8f2e35;
}

.messages-page--app .messages-sidebar__empty {
  margin: 14px;
  border-color: rgba(227, 173, 87, 0.24);
  background: rgba(255, 244, 218, 0.08);
  color: rgba(255, 243, 220, 0.76);
}

.messages-page--app .messages-list {
  background: transparent;
}

.messages-page--app .messages-list__item {
  border-color: rgba(230, 183, 99, 0.2);
}

.messages-page--app .messages-list__link {
  background: rgba(255, 244, 218, 0.08);
  border: 1px solid rgba(230, 183, 99, 0.18);
  color: #fff3dc;
}

.messages-page--app .messages-list__link:hover,
.messages-page--app .messages-list__link:focus-visible,
.messages-page--app .messages-list__item--active .messages-list__link {
  border-color: rgba(247, 220, 155, 0.56);
  background: linear-gradient(135deg, rgba(227, 173, 87, 0.3), rgba(92, 33, 28, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 244, 218, 0.14), 0 10px 22px rgba(0, 0, 0, 0.12);
}

.messages-page--app .messages-list__avatar {
  color: #4d1719;
  background: linear-gradient(135deg, #f7dc9b, #e3ad57);
}

.messages-page--app .messages-list__name {
  color: #fff9ec;
}

.messages-page--app .messages-list__snippet,
.messages-page--app .messages-list__time {
  color: rgba(255, 243, 220, 0.72);
}

.messages-page--app .messages-list__unread,
.messages-page--app .messages-unread,
.messages-page--app .unread-badge,
.messages-page--app .message-unread-badge {
  color: #fff8e8;
  background: #8f2e35;
}

.messages-page--app .messages-thread {
  border: 1px solid rgba(213, 168, 97, 0.3);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 16px 38px rgba(91, 37, 28, 0.08);
}

.messages-page--app .messages-thread--empty,
.messages-page--app .messages-empty-state {
  background: rgba(255, 250, 241, 0.88);
  color: var(--muyfh-color-text, #4d1719);
}

.messages-page--app .messages-empty-state__icon {
  color: #4d1719;
  background: linear-gradient(135deg, #f7dc9b, #e3ad57);
}

.messages-page--thread .messages-thread__header {
  border-bottom: 1px solid rgba(227, 173, 87, 0.22);
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 210, 139, 0.16), transparent 30%),
    linear-gradient(135deg, #4b1916, #32110f);
  color: #fff3dc;
}

.messages-page--thread .messages-thread__back {
  color: #fff3dc;
  border-color: rgba(230, 183, 99, 0.28);
  background: rgba(255, 244, 218, 0.08);
}

.messages-page--thread .messages-thread__back:hover,
.messages-page--thread .messages-thread__back:focus-visible {
  border-color: rgba(247, 220, 155, 0.48);
  background: rgba(230, 183, 99, 0.14);
}

.messages-page--thread .messages-thread__avatar {
  color: #4d1719;
  background: linear-gradient(135deg, #f7dc9b, #e3ad57);
}

.messages-page--thread .messages-thread__name {
  color: #fff9ec;
}

.messages-page--thread .messages-thread__meta {
  color: rgba(255, 243, 220, 0.72);
}

.messages-page--thread .messages-thread__badge--vip {
  color: #4d1719;
  background: linear-gradient(135deg, #f7dc9b, #e3ad57);
}

.messages-page--thread .messages-thread__badge--verified {
  color: #fff3dc;
  border-color: rgba(247, 220, 155, 0.42);
  background: rgba(255, 244, 218, 0.08);
}

.messages-page--thread .messages-thread__notice {
  border-color: rgba(213, 168, 97, 0.24);
  background: rgba(255, 244, 218, 0.68);
  color: #795848;
}

.messages-page--thread .messages-thread__body {
  background:
    radial-gradient(circle at 0% 0%, rgba(227, 173, 87, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.78), rgba(248, 236, 218, 0.72));
}

.messages-page--thread .messages-bubble {
  box-shadow: 0 10px 24px rgba(91, 37, 28, 0.06);
}

.messages-page--thread .messages-bubble--mine {
  border-color: rgba(208, 151, 59, 0.32);
  background: linear-gradient(135deg, #f7dc9b, #e7b967);
  color: #4d1719;
}

.messages-page--thread .messages-bubble--other {
  border-color: rgba(213, 168, 97, 0.26);
  background: rgba(255, 250, 241, 0.94);
  color: #4d1719;
}

.messages-page--thread .messages-bubble__time {
  color: rgba(91, 37, 28, 0.62);
}

.messages-page--thread .messages-thread__compose {
  border-top: 1px solid rgba(213, 168, 97, 0.26);
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 -10px 24px rgba(91, 37, 28, 0.06);
}

.messages-page--thread .messages-thread__textarea {
  border-color: rgba(213, 168, 97, 0.34);
  background: rgba(255, 250, 241, 0.92);
  color: #4d1719;
}

.messages-page--thread .messages-thread__textarea:focus {
  border-color: rgba(217, 154, 56, 0.68);
  box-shadow: 0 0 0 3px rgba(227, 173, 87, 0.16);
}

.messages-page--thread .messages-thread__send {
  border-color: rgba(208, 151, 59, 0.34);
  background: linear-gradient(135deg, #f7dc9b, #e3ad57);
  color: #4d1719;
  box-shadow: 0 10px 22px rgba(184, 119, 42, 0.14);
}

.messages-page--thread .messages-thread__send:hover,
.messages-page--thread .messages-thread__send:focus-visible {
  background: linear-gradient(135deg, #f9e1a5, #dfa64d);
}

@media (max-width: 640px) {
  .messages-page--app {
    padding: 14px 12px calc(var(--muyfh-bottom-nav-offset, 76px) + 18px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, #32110f 0 86px, transparent 86px),
      radial-gradient(circle at 86% 0%, rgba(227, 173, 87, 0.14), transparent 30%),
      linear-gradient(180deg, #fff3e2 0%, #f8ead8 100%);
  }

  .messages-page--app .messages-page__header--app {
    margin-bottom: 12px;
    color: #fff3dc;
  }

  .messages-page--app .messages-page__eyebrow,
  .messages-page--app .messages-page__header--app h1,
  .messages-page--app .messages-page__header--app p {
    color: #fff3dc;
  }

  .messages-page--index .messages-sidebar {
    border-radius: 20px;
  }

  .messages-page--thread .messages-thread {
    border-radius: 20px;
  }

  .messages-page--thread .messages-thread__header {
    min-height: 64px;
    padding: 8px 10px;
  }

  .messages-page--thread .messages-thread__body {
    padding-bottom: var(--messages-compose-reserve, 122px);
    scroll-padding-bottom: var(--messages-compose-reserve, 122px);
  }

  .messages-page--thread .messages-thread__compose {
    background: rgba(255, 250, 241, 0.99);
  }
}

/* Account navigation dedup + real person wording fix */
@media (min-width: 721px) {
    .account-home--formal.account-shell .account-home__grid > .account-home__card:not(.account-home__card--logout) {
        display: none;
    }

    .account-home--formal.account-shell .account-home__grid {
        grid-template-columns: minmax(0, 360px);
        max-width: 360px;
    }
}

@media (max-width: 720px) {
    .account-home--formal.account-shell .account-home__grid > .account-home__card {
        display: block;
    }
}

/* Account page visual rebuild to approved mockup */
.account-page--visual-batch1 {
    width: min(100% - 32px, 1360px);
    margin: 0 auto;
    padding: 28px 0 112px;
    color: #3d1518;
}

.account-page--visual-batch1 .account-layout {
    display: grid;
    grid-template-columns: minmax(280px, 326px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-page--visual-batch1 .account-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(232, 190, 111, 0.34);
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 12%, rgba(230, 183, 99, 0.24), transparent 28%),
        linear-gradient(145deg, #3a1617 0%, #4b1d22 48%, #291011 100%);
    box-shadow: 0 22px 52px rgba(57, 22, 18, 0.2);
    color: #fff3d9;
}

.account-page--visual-batch1 .account-sidebar__header {
    display: grid;
    gap: 8px;
    padding: 4px 2px 8px;
}

.account-page--visual-batch1 .account-sidebar__eyebrow,
.account-page--visual-batch1 .account-main__eyebrow,
.account-page--visual-batch1 .account-profile-card__eyebrow,
.account-page--visual-batch1 .account-panel-card__eyebrow {
    margin: 0;
    color: #dcae60;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.account-page--visual-batch1 .account-sidebar h1,
.account-page--visual-batch1 .account-main__header h2,
.account-page--visual-batch1 .account-profile-card h3,
.account-page--visual-batch1 .account-panel-card h3 {
    margin: 0;
    letter-spacing: 0;
}

.account-page--visual-batch1 .account-sidebar h1 {
    color: #fff5df;
    font-size: 30px;
    line-height: 1.18;
}

.account-page--visual-batch1 .account-sidebar p {
    margin: 0;
    color: rgba(255, 243, 217, 0.72);
    line-height: 1.65;
}

.account-page--visual-batch1 .account-sidebar__nav {
    display: grid;
    gap: 9px;
}

.account-page--visual-batch1 .account-sidebar__item,
.account-page--visual-batch1 .account-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(232, 190, 111, 0.24);
    border-radius: 16px;
    background: rgba(255, 244, 218, 0.08);
    color: #fff3d9;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.account-page--visual-batch1 .account-sidebar__item[href]:hover,
.account-page--visual-batch1 .account-sidebar__logout:hover {
    border-color: rgba(238, 196, 114, 0.72);
    background: rgba(232, 190, 111, 0.16);
    transform: translateY(-1px);
}

.account-page--visual-batch1 .account-sidebar__item.is-active {
    border-color: rgba(247, 211, 138, 0.82);
    background: linear-gradient(135deg, rgba(226, 174, 85, 0.9), rgba(122, 62, 43, 0.54));
    box-shadow: 0 14px 30px rgba(30, 10, 8, 0.18);
}

.account-page--visual-batch1 .account-sidebar__item.is-disabled {
    opacity: 0.62;
}

.account-page--visual-batch1 .account-sidebar__icon,
.account-page--visual-batch1 .account-mobile-grid__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(238, 196, 114, 0.18);
    color: #f1cb7c;
    font-size: 14px;
    font-weight: 900;
}

.account-page--visual-batch1 .account-sidebar__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.account-page--visual-batch1 .account-sidebar__text span {
    font-weight: 800;
}

.account-page--visual-batch1 .account-sidebar__text small {
    color: rgba(255, 243, 217, 0.62);
    font-size: 12px;
}

.account-page--visual-batch1 .account-sidebar__logout-form,
.account-page--visual-batch1 .account-mobile-grid__logout-form {
    margin: 0;
}

.account-page--visual-batch1 .account-sidebar__logout {
    cursor: pointer;
    font: inherit;
}

.account-page--visual-batch1 .account-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.account-page--visual-batch1 .account-main__header,
.account-page--visual-batch1 .account-profile-card,
.account-page--visual-batch1 .account-panel-card {
    border: 1px solid rgba(226, 196, 145, 0.64);
    border-radius: 22px;
    background: rgba(255, 250, 240, 0.9);
    box-shadow: 0 16px 40px rgba(83, 40, 25, 0.08);
}

.account-page--visual-batch1 .account-main__header {
    display: grid;
    gap: 8px;
    padding: 24px 26px;
}

.account-page--visual-batch1 .account-main__header h2 {
    color: #3d1518;
    font-size: 32px;
    line-height: 1.2;
}

.account-page--visual-batch1 .account-main__header p,
.account-page--visual-batch1 .account-profile-card p,
.account-page--visual-batch1 .account-panel-card p {
    margin: 0;
    color: rgba(61, 21, 24, 0.72);
    line-height: 1.65;
}

.account-page--visual-batch1 .account-profile-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 90% 8%, rgba(237, 196, 119, 0.28), transparent 30%),
        linear-gradient(135deg, rgba(71, 26, 25, 0.98), rgba(97, 40, 43, 0.94));
    color: #fff3d9;
}

.account-page--visual-batch1 .account-profile-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(247, 211, 138, 0.7);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(248, 217, 151, 0.92), rgba(173, 101, 56, 0.72));
    color: #401719;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(26, 10, 8, 0.2);
}

.account-page--visual-batch1 .account-profile-card h3 {
    color: #fff7e6;
    font-size: 28px;
    line-height: 1.18;
}

.account-page--visual-batch1 .account-profile-card p {
    color: rgba(255, 244, 222, 0.76);
}

.account-page--visual-batch1 .account-profile-card__body {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.account-page--visual-batch1 .account-profile-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-page--visual-batch1 .account-profile-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(247, 211, 138, 0.36);
    border-radius: 999px;
    background: rgba(255, 244, 218, 0.12);
    color: #f5d28b;
    font-size: 13px;
    font-weight: 800;
}

.account-page--visual-batch1 .account-profile-card__intro {
    max-width: 620px;
}

.account-page--visual-batch1 .account-profile-card__action,
.account-page--visual-batch1 .account-panel-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(156, 88, 39, 0.16);
    border-radius: 14px;
    background: linear-gradient(135deg, #f2c46f, #dda24e);
    color: #43191a;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(173, 101, 56, 0.18);
}

.account-page--visual-batch1 .account-main__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.account-page--visual-batch1 .account-panel-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 22px;
}

.account-page--visual-batch1 .account-panel-card h3 {
    color: #3d1518;
    font-size: 22px;
    line-height: 1.22;
}

.account-page--visual-batch1 .account-panel-card a {
    width: fit-content;
    min-height: 40px;
    padding: 0 14px;
    box-shadow: none;
}

.account-page--visual-batch1 .account-mobile-grid {
    display: none;
}

@media (max-width: 920px) {
    .account-page--visual-batch1 .account-layout {
        grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
        gap: 18px;
    }

    .account-page--visual-batch1 .account-main__grid {
        grid-template-columns: 1fr;
    }

    .account-page--visual-batch1 .account-profile-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .account-page--visual-batch1 .account-profile-card__action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .account-page--visual-batch1 {
        width: min(100% - 24px, 640px);
        padding: 16px 0 calc(102px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .account-page--visual-batch1 .account-layout,
    .account-page--visual-batch1 .account-main {
        display: grid;
        gap: 14px;
        min-width: 0;
    }

    .account-page--visual-batch1 .account-sidebar,
    .account-page--visual-batch1 .account-main__header {
        display: none;
    }

    .account-page--visual-batch1 .account-profile-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
        border-radius: 22px;
    }

    .account-page--visual-batch1 .account-profile-card__avatar {
        width: 64px;
        height: 64px;
        border-radius: 22px;
        font-size: 24px;
    }

    .account-page--visual-batch1 .account-profile-card h3 {
        font-size: 24px;
    }

    .account-page--visual-batch1 .account-profile-card__badges,
    .account-page--visual-batch1 .account-profile-card__intro,
    .account-page--visual-batch1 .account-profile-card__action {
        grid-column: 1 / -1;
    }

    .account-page--visual-batch1 .account-profile-card__action {
        width: 100%;
        min-height: 46px;
    }

    .account-page--visual-batch1 .account-main__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-page--visual-batch1 .account-panel-card {
        padding: 18px;
        border-radius: 18px;
    }

    .account-page--visual-batch1 .account-panel-card h3 {
        font-size: 20px;
    }

    .account-page--visual-batch1 .account-mobile-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .account-page--visual-batch1 .account-mobile-grid__item {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 8px;
        min-width: 0;
        min-height: 92px;
        padding: 12px 8px;
        border: 1px solid rgba(226, 196, 145, 0.64);
        border-radius: 18px;
        background: rgba(255, 250, 240, 0.88);
        color: #4a1c1f;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 12px 28px rgba(83, 40, 25, 0.07);
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-mobile-grid__item.is-disabled {
        opacity: 0.58;
    }

    .account-page--visual-batch1 .account-mobile-grid__icon {
        width: 40px;
        height: 40px;
        border-radius: 15px;
        background: rgba(226, 174, 85, 0.18);
        color: #8a4b24;
    }

    .account-page--visual-batch1 .account-mobile-grid__logout-form button {
        display: grid;
        justify-items: center;
        gap: 8px;
        width: 100%;
        height: 100%;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        cursor: pointer;
    }
}

@media (max-width: 380px) {
    .account-page--visual-batch1 .account-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Account mobile layout cleanup */
@media (max-width: 720px) {
    .account-page--visual-batch1 {
        width: min(100% - 24px, 640px);
        max-width: 100%;
        padding: 12px 0 calc(116px + env(safe-area-inset-bottom));
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-layout,
    .account-page--visual-batch1 .account-main {
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-profile-card,
    .account-page--visual-batch1 .account-panel-card,
    .account-page--visual-batch1 .account-mobile-grid__item {
        max-width: 100%;
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-profile-card {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 16px;
        border-radius: 20px;
        align-items: center;
    }

    .account-page--visual-batch1 .account-profile-card__avatar {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        font-size: 21px;
    }

    .account-page--visual-batch1 .account-profile-card__body {
        gap: 5px;
        min-width: 0;
    }

    .account-page--visual-batch1 .account-profile-card__eyebrow {
        font-size: 12px;
    }

    .account-page--visual-batch1 .account-profile-card h3 {
        font-size: 22px;
        line-height: 1.15;
    }

    .account-page--visual-batch1 .account-profile-card p {
        font-size: 13px;
        line-height: 1.45;
    }

    .account-page--visual-batch1 .account-profile-card__badges {
        grid-column: 1 / -1;
        gap: 6px;
        margin-top: 2px;
    }

    .account-page--visual-batch1 .account-profile-card__badge {
        min-height: 24px;
        padding: 0 8px;
        font-size: 12px;
    }

    .account-page--visual-batch1 .account-profile-card__intro {
        grid-column: 1 / -1;
        display: -webkit-box;
        margin-top: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.45;
    }

    .account-page--visual-batch1 .account-profile-card__action {
        grid-column: 1 / -1;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 14px;
    }

    .account-page--visual-batch1 .account-main__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-page--visual-batch1 .account-panel-card {
        gap: 6px;
        padding: 14px 16px;
        border-radius: 17px;
        box-shadow: 0 10px 22px rgba(83, 40, 25, 0.06);
    }

    .account-page--visual-batch1 .account-panel-card__eyebrow {
        font-size: 12px;
    }

    .account-page--visual-batch1 .account-panel-card h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .account-page--visual-batch1 .account-panel-card p {
        font-size: 13px;
        line-height: 1.45;
    }

    .account-page--visual-batch1 .account-panel-card a {
        min-height: 38px;
        width: 100%;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 14px;
    }

    .account-page--visual-batch1 .account-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .account-page--visual-batch1 .account-mobile-grid__item {
        min-height: 98px;
        padding: 10px 8px;
        gap: 7px;
        border-radius: 16px;
        background: rgba(255, 248, 235, 0.9);
        font-size: 14px;
        line-height: 1.25;
        box-shadow: 0 9px 20px rgba(83, 40, 25, 0.055);
    }

    .account-page--visual-batch1 .account-mobile-grid__icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 13px;
    }

    .account-page--visual-batch1 .account-mobile-grid__item.is-disabled {
        opacity: 0.68;
        background: rgba(255, 248, 235, 0.72);
    }

    .account-page--visual-batch1 .account-mobile-grid__logout-form button {
        gap: 7px;
        min-height: 0;
    }
}

/* Account PC duplicate header removal */
@media (min-width: 721px) {
    .account-page--visual-batch1 .account-main__header {
        display: none;
    }
}

/* Account mobile app layout rebuild */
.account-page--visual-batch1 .account-mobile-app {
    display: none;
}

@media (max-width: 720px) {
    .account-page--visual-batch1 {
        width: min(100% - 24px, 640px);
        padding: 10px 0 calc(116px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .account-page--visual-batch1 .account-profile-card,
    .account-page--visual-batch1 .account-main__grid,
    .account-page--visual-batch1 .account-mobile-grid {
        display: none;
    }

    .account-page--visual-batch1 .account-main {
        gap: 0;
        min-width: 0;
    }

    .account-page--visual-batch1 .account-mobile-app {
        display: grid;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-mobile-summary {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        grid-template-areas:
            "avatar body"
            "action action";
        gap: 10px 12px;
        padding: 16px;
        border: 1px solid rgba(238, 196, 114, 0.34);
        border-radius: 20px;
        background:
            radial-gradient(circle at 88% 8%, rgba(239, 199, 124, 0.28), transparent 32%),
            linear-gradient(145deg, #3a1617 0%, #5a2429 58%, #2b1112 100%);
        color: #fff4dc;
        box-shadow: 0 14px 32px rgba(70, 28, 20, 0.16);
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-mobile-summary__avatar {
        grid-area: avatar;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        border: 1px solid rgba(247, 211, 138, 0.64);
        border-radius: 18px;
        background: linear-gradient(135deg, #f4cf89, #b5693f);
        color: #401719;
        font-size: 21px;
        font-weight: 900;
    }

    .account-page--visual-batch1 .account-mobile-summary__body {
        grid-area: body;
        display: grid;
        gap: 5px;
        min-width: 0;
    }

    .account-page--visual-batch1 .account-mobile-summary__eyebrow {
        margin: 0;
        color: #efc77c;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0;
    }

    .account-page--visual-batch1 .account-mobile-summary h2 {
        margin: 0;
        color: #fff7e6;
        font-size: 22px;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .account-page--visual-batch1 .account-mobile-summary__badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .account-page--visual-batch1 .account-mobile-summary__badges span {
        display: inline-flex;
        align-items: center;
        min-height: 23px;
        padding: 0 8px;
        border: 1px solid rgba(247, 211, 138, 0.32);
        border-radius: 999px;
        background: rgba(255, 244, 218, 0.12);
        color: #f4d58e;
        font-size: 12px;
        font-weight: 800;
    }

    .account-page--visual-batch1 .account-mobile-summary p {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: rgba(255, 244, 222, 0.78);
        font-size: 13px;
        line-height: 1.42;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .account-page--visual-batch1 .account-mobile-summary__action {
        grid-area: action;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        border-radius: 14px;
        background: linear-gradient(135deg, #f2c46f, #dda24e);
        color: #401719;
        font-size: 14px;
        font-weight: 900;
        text-decoration: none;
    }

    .account-page--visual-batch1 .account-mobile-status {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .account-page--visual-batch1 .account-mobile-status__item {
        display: grid;
        justify-items: center;
        gap: 4px;
        min-width: 0;
        padding: 10px 6px;
        border: 1px solid rgba(226, 196, 145, 0.58);
        border-radius: 16px;
        background: rgba(255, 248, 235, 0.88);
        color: #4a1c1f;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 8px 18px rgba(83, 40, 25, 0.055);
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-mobile-status__icon,
    .account-page--visual-batch1 .account-mobile-actions__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 13px;
        background: rgba(226, 174, 85, 0.18);
        color: #8a4b24;
        font-size: 12px;
        font-weight: 900;
    }

    .account-page--visual-batch1 .account-mobile-status__item strong {
        color: #3d1518;
        font-size: 16px;
        line-height: 1.1;
    }

    .account-page--visual-batch1 .account-mobile-status__item > span:last-child {
        color: rgba(61, 21, 24, 0.72);
        font-size: 12px;
        font-weight: 800;
    }

    .account-page--visual-batch1 .account-mobile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .account-page--visual-batch1 .account-mobile-actions__item {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 7px;
        min-width: 0;
        min-height: 90px;
        padding: 10px 8px;
        border: 1px solid rgba(226, 196, 145, 0.58);
        border-radius: 16px;
        background: rgba(255, 248, 235, 0.9);
        color: #4a1c1f;
        font-size: 14px;
        font-weight: 850;
        line-height: 1.22;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 9px 20px rgba(83, 40, 25, 0.055);
        box-sizing: border-box;
    }

    .account-page--visual-batch1 .account-mobile-actions__item.is-disabled {
        opacity: 0.68;
        background: rgba(255, 248, 235, 0.72);
    }

    .account-page--visual-batch1 .account-mobile-actions__logout-form {
        margin: 0;
    }

    .account-page--visual-batch1 .account-mobile-actions__logout-form button {
        display: grid;
        justify-items: center;
        gap: 7px;
        width: 100%;
        height: 100%;
        min-height: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        font-weight: 850;
        cursor: pointer;
    }
}



/* Account subpages visual inheritance batch 1 */
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership,
    .account-membership-status
) {
    width: min(100% - 32px, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 0 calc(104px + env(safe-area-inset-bottom));
    color: #3d1518;
    box-sizing: border-box;
    overflow-x: hidden;
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership,
    .account-membership-status
) *,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership,
    .account-membership-status
) *::before,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership,
    .account-membership-status
) *::after {
    box-sizing: border-box;
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell
) .account-shell__header,
.account-membership .account-membership__header,
.account-membership-status .account-membership-status__panel {
    border: 1px solid rgba(230, 183, 99, 0.28);
    background:
        radial-gradient(circle at 88% 10%, rgba(239, 205, 144, 0.18), transparent 30%),
        linear-gradient(135deg, #3b1417 0%, #5a2422 58%, #351012 100%);
    color: #fff4de;
    box-shadow: 0 18px 42px rgba(57, 22, 16, 0.14);
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell
) .account-shell__header h1,
.account-membership .account-membership__header h1,
.account-membership-status .account-membership-status__title {
    color: #fff7e8;
    letter-spacing: 0;
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell
) .account-shell__header p,
.account-membership .account-membership__header p,
.account-membership-status .account-membership-status__text {
    color: rgba(255, 242, 218, 0.84);
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell
) .account-card,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell
) .account-form-panel,
.account-membership .account-membership__panel,
.account-membership .account-membership__plan,
.account-verification.account-shell .account-verification__panel {
    border: 1px solid rgba(226, 196, 145, 0.58);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.96), rgba(255, 244, 226, 0.9));
    box-shadow: 0 16px 38px rgba(83, 40, 25, 0.085);
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) h2,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) h3 {
    color: #3d1518;
    letter-spacing: 0;
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) p,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) li,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) label {
    color: rgba(61, 21, 24, 0.74);
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) input:not([type="hidden"]):not([type="file"]),
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) select,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) textarea {
    min-height: 46px;
    border: 1px solid rgba(211, 168, 109, 0.46);
    border-radius: 14px;
    background: rgba(255, 252, 244, 0.94);
    color: #3d1518;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) input:not([type="hidden"]):not([type="file"]):focus,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) select:focus,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership
) textarea:focus {
    border-color: rgba(226, 174, 85, 0.82);
    outline: 3px solid rgba(226, 174, 85, 0.18);
}

:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership,
    .account-membership-status
) button,
:is(
    .account-detail.account-shell,
    .account-avatar.account-shell,
    .account-albums.account-shell,
    .account-blocks.account-shell,
    .account-verification.account-shell,
    .account-membership,
    .account-membership-status
) .account-membership__button,
.account-membership-status .account-membership-status__actions a {
    min-height: 44px;
    border-radius: 14px;
    font-weight: 850;
}

.account-avatar.account-shell .avatar-upload-form__picker,
.account-albums.account-shell .album-upload-form__picker,
.account-avatar.account-shell .avatar-upload-form > button[type="submit"],
.account-albums.account-shell .album-upload-form > button[type="submit"],
.account-verification.account-shell .account-verification__actions button,
.account-membership .account-membership__button,
.account-membership-status .account-membership-status__actions a:first-child {
    border: 0;
    background: linear-gradient(135deg, #e5ad51 0%, #f4cf86 100%);
    color: #3d1518;
    box-shadow: 0 12px 24px rgba(202, 142, 55, 0.22);
}

.account-blocks.account-shell .account-blocks__item button,
.account-verification.account-shell .account-verification__actions button[type="button"],
.account-membership-status .account-membership-status__actions a + a {
    border: 1px solid rgba(139, 62, 58, 0.28);
    background: rgba(255, 246, 233, 0.86);
    color: #7b2d32;
    box-shadow: none;
}

.account-avatar.account-shell .account-avatar__preview,
.account-avatar.account-shell .avatar-uploader__crop,
.account-avatar.account-shell .avatar-uploader__controls,
.account-albums.account-shell .account-albums__upload,
.account-albums.account-shell .album-upload-form,
.account-albums.account-shell .album-upload-queue,
.account-verification.account-shell .account-verification__camera,
.account-verification.account-shell .account-verification__runtime {
    border: 1px solid rgba(226, 196, 145, 0.54);
    border-radius: 20px;
    background: rgba(255, 248, 235, 0.72);
}

.account-avatar.account-shell .avatar-uploader__viewport,
.account-avatar.account-shell .avatar-upload-form__local-preview,
.account-albums.account-shell .album-upload-queue__preview,
.account-albums.account-shell .account-albums__item img,
.account-albums.account-shell .account-albums__placeholder,
.account-verification.account-shell .account-verification__video,
.account-verification.account-shell .account-verification__canvas {
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.account-detail.account-shell .account-detail__fields,
.account-membership .account-membership__plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-detail.account-shell .account-detail__field {
    min-width: 0;
    border-color: rgba(226, 196, 145, 0.42);
    background: rgba(255, 248, 235, 0.62);
}

.account-membership .account-membership__plan {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 22px;
}

.account-membership .account-membership__price {
    color: #8a4b24;
}

.account-verification.account-shell .account-verification__notice {
    border: 1px solid rgba(226, 196, 145, 0.48);
    background: rgba(255, 246, 230, 0.72);
    color: rgba(61, 21, 24, 0.78);
}

@media (max-width: 760px) {
    :is(
        .account-detail.account-shell,
        .account-avatar.account-shell,
        .account-albums.account-shell,
        .account-blocks.account-shell,
        .account-verification.account-shell,
        .account-membership,
        .account-membership-status
    ) {
        width: calc(100% - 24px);
        padding: 14px 0 calc(110px + env(safe-area-inset-bottom));
    }

    :is(
        .account-detail.account-shell,
        .account-avatar.account-shell,
        .account-albums.account-shell,
        .account-blocks.account-shell,
        .account-verification.account-shell
    ) .account-shell__header,
    .account-membership .account-membership__header,
    .account-membership-status .account-membership-status__panel {
        padding: 18px;
        border-radius: 20px;
    }

    :is(
        .account-detail.account-shell,
        .account-avatar.account-shell,
        .account-albums.account-shell,
        .account-blocks.account-shell,
        .account-verification.account-shell
    ) .account-shell__header h1,
    .account-membership .account-membership__header h1,
    .account-membership-status .account-membership-status__title {
        font-size: 24px;
        line-height: 1.16;
    }

    :is(
        .account-detail.account-shell,
        .account-avatar.account-shell,
        .account-albums.account-shell,
        .account-blocks.account-shell,
        .account-verification.account-shell
    ) .account-card,
    :is(
        .account-detail.account-shell,
        .account-avatar.account-shell,
        .account-albums.account-shell,
        .account-blocks.account-shell,
        .account-verification.account-shell
    ) .account-form-panel,
    .account-membership .account-membership__panel,
    .account-membership .account-membership__plan {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        border-radius: 18px;
    }

    .account-detail.account-shell .account-detail__fields,
    .account-membership .account-membership__plans,
    .account-albums.account-shell .album-upload-queue {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-albums.account-shell .account-albums__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .account-avatar.account-shell .avatar-uploader__controls,
    .account-verification.account-shell .account-verification__actions,
    .account-membership-status .account-membership-status__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-avatar.account-shell .avatar-upload-form__picker,
    .account-albums.account-shell .album-upload-form__picker,
    .account-avatar.account-shell .avatar-upload-form > button[type="submit"],
    .account-albums.account-shell .album-upload-form > button[type="submit"],
    .account-verification.account-shell .account-verification__actions button,
    .account-membership .account-membership__button {
        width: 100%;
        min-height: 46px;
    }

    .account-verification.account-shell .account-verification__camera-stage,
    .account-verification.account-shell .account-verification__video,
    .account-verification.account-shell .account-verification__canvas {
        width: 100%;
        max-width: 100%;
    }
}


/* Account onboarding compact two-column layout */
.account-onboarding.account-shell {
    width: min(calc(100% - 32px), 1180px);
    max-width: 1180px;
    overflow-x: clip;
}

.account-onboarding.account-shell .account-onboarding__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 0;
    margin: 0 0 20px;
    padding: 10px 18px;
    border: 1px solid rgba(226, 196, 145, 0.58);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(255, 244, 226, 0.94));
    color: #3d1518;
    box-shadow: 0 10px 26px rgba(83, 40, 25, 0.07);
}

.account-onboarding.account-shell .account-onboarding__intro-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.account-onboarding.account-shell .account-onboarding__intro .account-detail__eyebrow,
.account-onboarding.account-shell .account-onboarding__intro h1,
.account-onboarding.account-shell .account-onboarding__intro p {
    margin: 0;
    color: #3d1518;
}

.account-onboarding.account-shell .account-onboarding__intro .account-detail__eyebrow {
    color: #8a4b24;
    font-size: 0.82rem;
    font-weight: 800;
}

.account-onboarding.account-shell .account-onboarding__intro h1 {
    font-size: clamp(1.45rem, 2.3vw, 1.7rem);
    line-height: 1.15;
}

.account-onboarding.account-shell .account-onboarding__intro p:last-child {
    color: rgba(61, 21, 24, 0.78);
    font-size: 0.94rem;
    line-height: 1.4;
}

.account-onboarding .account-onboarding__intro-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.account-onboarding .account-onboarding__intro-actions .account-detail__subtle-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid rgba(139, 62, 58, 0.24);
    border-radius: 12px;
    background: rgba(255, 252, 244, 0.82);
    color: #7b2d32;
    font-weight: 750;
    text-decoration: none;
}

.account-onboarding .account-onboarding__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
    gap: 24px;
    align-items: start;
    min-width: 0;
}

.account-onboarding .account-onboarding__profile,
.account-onboarding .account-onboarding__avatar {
    min-width: 0;
    margin: 0;
    padding: 22px;
}

.account-onboarding .account-onboarding__profile > h2,
.account-onboarding .account-onboarding__avatar > h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.account-onboarding .profile-form.account-form-panel {
    display: grid;
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.account-onboarding .profile-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-onboarding .profile-form__field {
    align-content: start;
}

.account-onboarding .profile-form__field--location,
.account-onboarding .profile-form__help,
.account-onboarding .profile-form__error,
.account-onboarding .profile-form__choices {
    grid-column: 1 / -1;
}

.account-onboarding .profile-form__help,
.account-onboarding .profile-form__error {
    margin: -8px 0 0;
}

.account-onboarding .profile-form__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-onboarding .profile-form__choices legend {
    width: 100%;
    margin: 0 0 2px;
    padding: 0;
    color: rgba(61, 21, 24, 0.8);
    font-size: 0.94rem;
    font-weight: 750;
}

.account-onboarding .profile-form__choice {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.account-onboarding .profile-form__choice input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.account-onboarding .profile-form__choice span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(211, 168, 109, 0.46);
    border-radius: 999px;
    background: rgba(255, 252, 244, 0.94);
    color: rgba(61, 21, 24, 0.76);
    font-size: 0.9rem;
    line-height: 1.2;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.account-onboarding .profile-form__choice input[type="checkbox"]:checked + span {
    border-color: rgba(139, 62, 58, 0.66);
    background: rgba(139, 62, 58, 0.1);
    color: #6c252c;
}

.account-onboarding .profile-form__choice input[type="checkbox"]:focus-visible + span {
    outline: 3px solid rgba(226, 174, 85, 0.22);
    outline-offset: 2px;
}

.account-onboarding .profile-form__submit {
    justify-self: end;
    width: auto;
    min-width: 132px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    background: linear-gradient(135deg, #7b2d32 0%, #96454a 100%);
    color: #fffaf1;
    box-shadow: 0 8px 18px rgba(123, 45, 50, 0.16);
}

.account-onboarding .account-onboarding__avatar {
    position: static;
}

.account-onboarding .account-avatar__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid rgba(226, 196, 145, 0.48);
    border-radius: 16px;
    background: rgba(255, 248, 235, 0.64);
}

.account-onboarding .account-avatar__preview .avatar {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
}

.account-onboarding .account-onboarding__avatar-content {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.account-onboarding .account-onboarding__avatar-content > p,
.account-onboarding .avatar-upload-form__help,
.account-onboarding .avatar-upload-form__status {
    margin: 0;
    line-height: 1.5;
}

.account-onboarding .avatar-upload-form.account-form-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.account-onboarding .avatar-upload-form__picker {
    width: max-content;
    min-height: 40px;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__workspace {
    width: min(100%, 360px);
    max-width: 360px;
    min-height: 0;
    max-height: 360px;
    aspect-ratio: 1 / 1;
    justify-self: center;
    overflow: hidden;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .cropper-container,
.account-onboarding [data-component="account-avatar-cropper-classic"] .cropper-wrap-box,
.account-onboarding [data-component="account-avatar-cropper-classic"] .cropper-canvas,
.account-onboarding [data-component="account-avatar-cropper-classic"] .cropper-drag-box,
.account-onboarding [data-component="account-avatar-cropper-classic"] .cropper-crop-box {
    max-width: 100%;
    max-height: 360px;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__preview {
    width: 76px;
    min-height: 76px;
    height: 76px;
    justify-self: center;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__controls {
    gap: 8px;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__zoom {
    width: 100%;
    min-height: 24px;
    height: 24px;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__actions button {
    flex: 1 1 108px;
    min-width: 0;
    min-height: 40px;
    padding: 0 11px;
}

@media (max-width: 1023px) {
    .account-onboarding .account-onboarding__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .account-onboarding.account-shell {
        width: calc(100% - 24px);
    }

    .account-onboarding.account-shell .account-onboarding__intro {
        display: grid;
        gap: 12px;
        margin-bottom: 14px;
        padding: 15px 16px;
    }

    .account-onboarding .account-onboarding__intro-actions {
        justify-content: flex-start;
    }

    .account-onboarding .account-onboarding__profile,
    .account-onboarding .account-onboarding__avatar {
        padding: 16px;
    }

    .account-onboarding .profile-form__fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .account-onboarding .profile-form__field--location,
    .account-onboarding .profile-form__help,
    .account-onboarding .profile-form__error,
    .account-onboarding .profile-form__choices {
        grid-column: 1;
    }

    .account-onboarding .profile-form__submit {
        justify-self: stretch;
        width: 100%;
    }

    .account-onboarding [data-component="account-avatar-cropper-classic"] .account-avatar-cropper__workspace {
        width: 100%;
        max-width: 360px;
        max-height: none;
    }
}


/* Public error pages visual batch 1 */
.error-page--visual {
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(231, 186, 105, 0.22), transparent 32%),
        linear-gradient(145deg, #fff8ea 0%, #f7ead8 54%, #ead9c2 100%);
    color: #3d1518;
}

.error-page--visual .error-page__shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.error-page--visual .error-card {
    position: relative;
    width: min(100%, 760px);
    padding: 42px;
    overflow: hidden;
    border: 1px solid rgba(226, 183, 99, 0.34);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 8%, rgba(240, 204, 136, 0.2), transparent 34%),
        linear-gradient(135deg, #3b1417 0%, #5a2422 54%, #351012 100%);
    box-shadow: 0 28px 70px rgba(57, 22, 16, 0.22);
    color: #fff5e4;
}

.error-page--visual .error-card__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff5e4;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.error-page--visual .error-card__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(244, 207, 134, 0.5);
    border-radius: 999px;
    background: rgba(255, 244, 218, 0.1);
    color: #f4cf86;
    font-size: 13px;
    font-weight: 900;
}

.error-page--visual .error-code {
    margin: 42px 0 12px;
    color: #f4cf86;
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
}

.error-page--visual h1 {
    margin: 0;
    color: #fff8ea;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.16;
    letter-spacing: 0;
}

.error-page--visual .error-card__subtitle,
.error-page--visual .error-card__secondary {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 244, 226, 0.82);
    font-size: 16px;
    line-height: 1.75;
}

.error-page--visual .error-card__secondary {
    margin-top: 8px;
    color: rgba(255, 244, 226, 0.68);
}

.error-page--visual .error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.error-page--visual .error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 132px;
    padding: 0 20px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
}

.error-page--visual .error-button--primary {
    border: 0;
    background: linear-gradient(135deg, #e5ad51 0%, #f4cf86 100%);
    color: #3d1518;
    box-shadow: 0 14px 28px rgba(226, 174, 85, 0.24);
}

.error-page--visual .error-button--secondary {
    border: 1px solid rgba(244, 207, 134, 0.42);
    background: rgba(255, 244, 218, 0.1);
    color: #fff5e4;
}

@media (max-width: 640px) {
    .error-page--visual .error-page__shell {
        width: calc(100% - 24px);
        padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
    }

    .error-page--visual .error-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .error-page--visual .error-code {
        margin-top: 34px;
    }

    .error-page--visual .error-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .error-page--visual .error-button {
        width: 100%;
        min-height: 46px;
    }
}


/* NEW-muyfh Admin Dashboard/Nav Visual Batch 1 */
.admin-shell .admin-dashboard--visual {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    padding: 24px 0 44px;
    color: #351316;
}

.admin-shell .admin-dashboard--visual,
.admin-shell .admin-dashboard--visual * {
    box-sizing: border-box;
}

.admin-shell .admin-nav--visual {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid rgba(232, 194, 121, 0.24);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(232, 194, 121, 0.18), transparent 34%),
        linear-gradient(135deg, #3a1516 0%, #5a2020 54%, #2a1114 100%);
    box-shadow: 0 18px 40px rgba(58, 21, 22, 0.14);
}

.admin-shell .admin-nav--visual > a,
.admin-shell .admin-nav--visual .admin-nav__logout button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(242, 205, 132, 0.26);
    border-radius: 13px;
    background: rgba(255, 244, 218, 0.08);
    color: #f8ead0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.admin-shell .admin-nav--visual > a:hover,
.admin-shell .admin-nav--visual .admin-nav__logout button:hover {
    border-color: rgba(242, 205, 132, 0.72);
    background: rgba(232, 194, 121, 0.18);
    transform: translateY(-1px);
}

.admin-shell .admin-nav--visual > a.is-active {
    border-color: rgba(242, 205, 132, 0.78);
    background: linear-gradient(135deg, #edc66f 0%, #d89c3f 100%);
    color: #351316;
    box-shadow: 0 10px 24px rgba(216, 156, 63, 0.22);
}

.admin-shell .admin-nav--visual .admin-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(133, 38, 45, 0.92);
    color: #fff4da;
    font-size: 11px;
    font-weight: 800;
}

.admin-shell .admin-nav--visual .admin-nav__badge--warning {
    background: #8b3b24;
}

.admin-shell .admin-nav--visual .admin-nav__badge--critical {
    background: #8f2730;
}

.admin-shell .admin-nav__logout--visual {
    margin: 0 0 0 auto;
}

.admin-shell .admin-nav__logout--visual button {
    cursor: pointer;
    font-family: inherit;
}

.admin-shell .admin-panel--visual.admin-dashboard__main {
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-shell .admin-dashboard__hero {
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid rgba(232, 194, 121, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 0%, rgba(232, 194, 121, 0.18), transparent 34%),
        linear-gradient(135deg, #3a1516 0%, #5a2020 58%, #2b1114 100%);
    color: #fff4da;
    box-shadow: 0 18px 44px rgba(58, 21, 22, 0.15);
}

.admin-shell .admin-dashboard__eyebrow {
    margin: 0 0 8px;
    color: #eac77b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.admin-shell .admin-dashboard__hero h1 {
    margin: 0;
    color: #fff4da;
    font-size: 30px;
    line-height: 1.18;
}

.admin-shell .admin-dashboard__hero p:last-child {
    margin: 10px 0 0;
    color: rgba(255, 244, 218, 0.78);
}

.admin-shell .admin-dashboard--visual .admin-dashboard__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.admin-shell .admin-dashboard--visual .admin-member-card,
.admin-shell .admin-dashboard--visual .admin-panel--visual {
    border: 1px solid rgba(222, 182, 112, 0.42);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.96), rgba(250, 237, 215, 0.9));
    box-shadow: 0 12px 30px rgba(67, 32, 22, 0.08);
}

.admin-shell .admin-dashboard--visual .admin-member-card {
    padding: 18px;
}

.admin-shell .admin-dashboard--visual .admin-member-card h2,
.admin-shell .admin-dashboard--visual .admin-dashboard__quick-links h2,
.admin-shell .admin-dashboard--visual .admin-dashboard__audit h2 {
    color: #351316;
    font-size: 17px;
    font-weight: 800;
}

.admin-shell .admin-dashboard--visual .admin-member-field .label {
    color: rgba(69, 39, 33, 0.62);
    font-size: 12px;
}

.admin-shell .admin-dashboard--visual .admin-member-field strong {
    color: #351316;
    font-size: 18px;
    font-weight: 800;
}

.admin-shell .admin-dashboard--visual .admin-summary-card--warning {
    border-color: rgba(179, 107, 38, 0.42);
    background: linear-gradient(145deg, rgba(255, 247, 231, 0.98), rgba(244, 221, 187, 0.92));
}

.admin-shell .admin-dashboard--visual .admin-summary-card--critical {
    border-color: rgba(139, 39, 48, 0.36);
    background: linear-gradient(145deg, rgba(255, 246, 238, 0.98), rgba(238, 218, 206, 0.94));
}

.admin-shell .admin-dashboard--visual .admin-member-card p a,
.admin-shell .admin-dashboard--visual .admin-dashboard__quick-links a {
    color: #5a2020;
    font-weight: 700;
}

.admin-shell .admin-dashboard--visual .admin-dashboard__quick-links,
.admin-shell .admin-dashboard--visual .admin-dashboard__audit {
    padding: 20px;
}

.admin-shell .admin-dashboard--visual .admin-dashboard__quick-links div {
    gap: 9px;
}

.admin-shell .admin-dashboard--visual .admin-dashboard__quick-links a {
    min-height: 38px;
    border-color: rgba(222, 182, 112, 0.46);
    border-radius: 12px;
    background: rgba(255, 244, 218, 0.72);
    text-decoration: none;
}

.admin-shell .admin-dashboard--visual .admin-dashboard__quick-links a:hover {
    border-color: rgba(216, 156, 63, 0.78);
    background: rgba(232, 194, 121, 0.22);
}

.admin-shell .admin-dashboard--visual .admin-dashboard__audit {
    overflow-x: auto;
}

.admin-shell .admin-dashboard--visual .admin-table--visual {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-shell .admin-dashboard--visual .admin-table--visual th,
.admin-shell .admin-dashboard--visual .admin-table--visual td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(222, 182, 112, 0.28);
    color: #351316;
    text-align: left;
}

.admin-shell .admin-dashboard--visual .admin-table--visual th {
    color: rgba(53, 19, 22, 0.72);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .admin-shell .admin-dashboard--visual .admin-dashboard__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-shell .admin-dashboard--visual {
        width: calc(100% - 20px);
        padding-top: 14px;
    }

    .admin-shell .admin-nav--visual {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 12px;
        border-radius: 18px;
        scrollbar-width: thin;
    }

    .admin-shell .admin-nav--visual > a,
    .admin-shell .admin-nav--visual .admin-nav__logout button {
        min-height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    .admin-shell .admin-nav__logout--visual {
        margin-left: 0;
    }

    .admin-shell .admin-dashboard__hero {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .admin-shell .admin-dashboard__hero h1 {
        font-size: 24px;
    }

    .admin-shell .admin-dashboard--visual .admin-dashboard__grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-dashboard--visual .admin-member-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* NEW-muyfh Admin Nav Left Sidebar Mainstream Layout */
@media (min-width: 901px) {
    .admin-shell main:has(> .admin-nav--sidebar) {
        width: min(1320px, calc(100% - 32px));
        max-width: 1320px;
        margin: 0 auto;
        padding: 24px 0 48px;
        display: grid;
        grid-template-columns: 286px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .admin-shell main:has(> .admin-nav--sidebar) > .admin-nav--sidebar {
        grid-column: 1;
        grid-row: 1 / span 100;
        position: sticky;
        top: 20px;
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
    }

    .admin-shell main:has(> .admin-nav--sidebar) > :not(.admin-nav--sidebar) {
        grid-column: 2;
        min-width: 0;
    }

    .admin-shell main:has(> .admin-nav--sidebar).admin-dashboard--visual {
        width: min(1320px, calc(100% - 32px));
        max-width: 1320px;
        padding: 24px 0 48px;
    }
}

.admin-shell .admin-nav--sidebar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
}

.admin-shell .admin-nav--sidebar .admin-nav__brand {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 4px 4px 10px;
    border-bottom: 1px solid rgba(242, 205, 132, 0.18);
}

.admin-shell .admin-nav--sidebar .admin-nav__brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(242, 205, 132, 0.5);
    border-radius: 16px;
    background: rgba(255, 244, 218, 0.1);
    color: #eac77b;
    font-size: 20px;
    font-weight: 900;
}

.admin-shell .admin-nav--sidebar .admin-nav__brand strong,
.admin-shell .admin-nav--sidebar .admin-nav__brand small {
    display: block;
}

.admin-shell .admin-nav--sidebar .admin-nav__brand strong {
    color: #fff4da;
    font-size: 16px;
    line-height: 1.25;
}

.admin-shell .admin-nav--sidebar .admin-nav__brand small {
    margin-top: 3px;
    color: rgba(255, 244, 218, 0.66);
    font-size: 12px;
}

.admin-shell .admin-nav--sidebar .admin-nav__section {
    display: grid;
    gap: 7px;
}

.admin-shell .admin-nav--sidebar .admin-nav__section-title {
    margin: 0 0 2px;
    padding: 0 4px;
    color: rgba(234, 199, 123, 0.78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.admin-shell .admin-nav--sidebar .admin-nav__section a,
.admin-shell .admin-nav--sidebar .admin-nav__logout button {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(242, 205, 132, 0.26);
    border-radius: 13px;
    background: rgba(255, 244, 218, 0.08);
    color: #f8ead0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.admin-shell .admin-nav--sidebar .admin-nav__section a:hover,
.admin-shell .admin-nav--sidebar .admin-nav__logout button:hover {
    border-color: rgba(242, 205, 132, 0.72);
    background: rgba(232, 194, 121, 0.18);
    transform: translateY(-1px);
}

.admin-shell .admin-nav--sidebar .admin-nav__section a.is-active {
    border-color: rgba(242, 205, 132, 0.82);
    background: linear-gradient(135deg, #edc66f 0%, #d89c3f 100%);
    color: #351316;
    box-shadow: 0 10px 24px rgba(216, 156, 63, 0.22);
}

.admin-shell .admin-nav--sidebar .admin-nav__logout--visual {
    width: 100%;
    margin: 4px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(242, 205, 132, 0.18);
}

@media (max-width: 900px) {
    .admin-shell main:has(> .admin-nav--sidebar) {
        width: calc(100% - 20px);
        margin: 0 auto;
        padding: 14px 0 36px;
    }

    .admin-shell .admin-nav--sidebar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        overflow-x: auto;
        margin-bottom: 16px;
        padding: 12px;
    }

    .admin-shell .admin-nav--sidebar .admin-nav__brand {
        flex: 0 0 auto;
        min-width: 176px;
        padding: 0 10px 0 0;
        border-right: 1px solid rgba(242, 205, 132, 0.18);
        border-bottom: 0;
    }

    .admin-shell .admin-nav--sidebar .admin-nav__brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        font-size: 18px;
    }

    .admin-shell .admin-nav--sidebar .admin-nav__section {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
    }

    .admin-shell .admin-nav--sidebar .admin-nav__section-title {
        display: none;
    }

    .admin-shell .admin-nav--sidebar .admin-nav__section a,
    .admin-shell .admin-nav--sidebar .admin-nav__logout button {
        width: auto;
        min-height: 36px;
        justify-content: center;
    }

    .admin-shell .admin-nav--sidebar .admin-nav__logout--visual {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        padding-top: 0;
        border-top: 0;
    }
}


/* NEW-muyfh Admin Content Baseline Batch 1 */
.admin-shell .admin-content-area {
    min-width: 0;
    color: #351316;
}

.admin-shell .admin-content-area,
.admin-shell .admin-content-area * {
    box-sizing: border-box;
}

.admin-shell .admin-content-area > h1:first-child,
.admin-shell .admin-content-area > header:first-child,
.admin-shell .admin-content-area > section:first-child,
.admin-shell .admin-content-area > div:first-child:not(.admin-table-wrap) {
    margin-top: 0;
}

.admin-shell .admin-content-area h1 {
    margin: 0 0 14px;
    color: #351316;
    font-size: 28px;
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: 0;
}

.admin-shell .admin-content-area h2 {
    margin: 0 0 12px;
    color: #351316;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-shell .admin-content-area p {
    color: rgba(53, 19, 22, 0.72);
    line-height: 1.58;
}

.admin-shell .admin-content-area > p,
.admin-shell .admin-content-area > form,
.admin-shell .admin-content-area > section,
.admin-shell .admin-content-area > article,
.admin-shell .admin-content-area > .admin-table-wrap,
.admin-shell .admin-content-area > div:not(.admin-dashboard__hero):not(.admin-dashboard__grid) {
    margin-bottom: 16px;
}

.admin-shell .admin-content-area > form,
.admin-shell .admin-content-area > section,
.admin-shell .admin-content-area > article,
.admin-shell .admin-content-area > div:not(.admin-dashboard__hero):not(.admin-dashboard__grid):not(.admin-table-wrap),
.admin-shell .admin-content-area > .admin-table-wrap {
    border: 1px solid rgba(222, 182, 112, 0.42);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.97), rgba(250, 237, 215, 0.9));
    box-shadow: 0 12px 30px rgba(67, 32, 22, 0.08);
}

.admin-shell .admin-content-area > form,
.admin-shell .admin-content-area > section,
.admin-shell .admin-content-area > article,
.admin-shell .admin-content-area > div:not(.admin-dashboard__hero):not(.admin-dashboard__grid):not(.admin-table-wrap) {
    padding: 18px;
}

.admin-shell .admin-content-area form {
    display: grid;
    gap: 12px;
    align-items: end;
}

.admin-shell .admin-content-area form:not(.admin-nav__logout) {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-shell .admin-content-area label {
    display: grid;
    gap: 6px;
    color: rgba(53, 19, 22, 0.72);
    font-size: 13px;
    font-weight: 750;
}

.admin-shell .admin-content-area input,
.admin-shell .admin-content-area select,
.admin-shell .admin-content-area textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(222, 182, 112, 0.5);
    border-radius: 12px;
    background: rgba(255, 252, 245, 0.92);
    color: #351316;
    font: inherit;
    line-height: 1.35;
    padding: 9px 11px;
}

.admin-shell .admin-content-area textarea {
    min-height: 84px;
    resize: vertical;
}

.admin-shell .admin-content-area input:focus,
.admin-shell .admin-content-area select:focus,
.admin-shell .admin-content-area textarea:focus {
    outline: 2px solid rgba(232, 194, 121, 0.34);
    border-color: rgba(216, 156, 63, 0.78);
}

.admin-shell .admin-content-area button,
.admin-shell .admin-content-area input[type="submit"],
.admin-shell .admin-content-area a[href^="/admin"]:not(.admin-table a):not(.admin-nav--sidebar a) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(216, 156, 63, 0.44);
    border-radius: 12px;
    background: rgba(255, 244, 218, 0.68);
    color: #5a2020;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.admin-shell .admin-content-area button[type="submit"],
.admin-shell .admin-content-area input[type="submit"] {
    background: linear-gradient(135deg, #edc66f 0%, #d89c3f 100%);
    color: #351316;
}

.admin-shell .admin-content-area form[action*="reject"] button,
.admin-shell .admin-content-area form[action*="ban"] button,
.admin-shell .admin-content-area form[action*="revoke"] button,
.admin-shell .admin-content-area form[action*="dismiss"] button {
    border-color: rgba(139, 39, 48, 0.34);
    background: rgba(139, 39, 48, 0.1);
    color: #6b1f27;
}

.admin-shell .admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 0;
}

.admin-shell .admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-shell .admin-table th,
.admin-shell .admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(222, 182, 112, 0.28);
    color: #351316;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
}

.admin-shell .admin-table th {
    background: rgba(255, 244, 218, 0.72);
    color: rgba(53, 19, 22, 0.76);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-shell .admin-table tr:hover td {
    background: rgba(255, 244, 218, 0.3);
}

.admin-shell .admin-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.admin-shell .admin-table td a {
    color: #5a2020;
    font-weight: 750;
    white-space: nowrap;
}

.admin-shell .admin-table code,
.admin-shell .admin-content-area code,
.admin-shell .admin-code {
    display: inline-block;
    max-width: 34ch;
    padding: 2px 6px;
    border: 1px solid rgba(222, 182, 112, 0.34);
    border-radius: 8px;
    background: rgba(255, 244, 218, 0.5);
    color: #4a1b1d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
    overflow-x: auto;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-shell .admin-content-area pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 14px;
    border: 1px solid rgba(222, 182, 112, 0.36);
    border-radius: 14px;
    background: rgba(255, 244, 218, 0.42);
    color: #351316;
    font-size: 12px;
    line-height: 1.55;
}

.admin-shell .admin-content-area img {
    max-width: 128px;
    max-height: 128px;
    border-radius: 14px;
    border: 1px solid rgba(222, 182, 112, 0.42);
    object-fit: cover;
    background: rgba(255, 244, 218, 0.56);
}

.admin-shell .admin-content-area .admin-member-card,
.admin-shell .admin-content-area .admin-panel,
.admin-shell .admin-content-area .admin-summary-card {
    border-color: rgba(222, 182, 112, 0.42);
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.97), rgba(250, 237, 215, 0.9));
    box-shadow: 0 12px 30px rgba(67, 32, 22, 0.08);
}

.admin-shell .admin-content-area dl {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 10px 16px;
    margin: 0;
}

.admin-shell .admin-content-area dt {
    color: rgba(53, 19, 22, 0.62);
    font-size: 13px;
    font-weight: 750;
}

.admin-shell .admin-content-area dd {
    min-width: 0;
    margin: 0;
    color: #351316;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-shell .admin-content-area .status,
.admin-shell .admin-content-area .badge,
.admin-shell .admin-content-area [class*="status"],
.admin-shell .admin-content-area [class*="badge"] {
    border-radius: 999px;
}

.admin-shell .admin-content-area p:only-child,
.admin-shell .admin-content-area td[colspan] {
    color: rgba(53, 19, 22, 0.7);
}

@media (max-width: 900px) {
    .admin-shell .admin-content-area {
        min-width: 0;
    }

    .admin-shell .admin-content-area h1 {
        font-size: 23px;
    }

    .admin-shell .admin-content-area > form,
    .admin-shell .admin-content-area form:not(.admin-nav__logout) {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-content-area > section,
    .admin-shell .admin-content-area > article,
    .admin-shell .admin-content-area > div:not(.admin-dashboard__hero):not(.admin-dashboard__grid):not(.admin-table-wrap),
    .admin-shell .admin-content-area > form {
        padding: 14px;
        border-radius: 16px;
    }

    .admin-shell .admin-table {
        min-width: 680px;
    }

    .admin-shell .admin-content-area dl {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Admin members list/detail targeted fix */
.admin-shell .admin-members-page,
.admin-shell .admin-member-detail-page {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 16px;
}

.admin-shell .admin-members-page .admin-page-header,
.admin-shell .admin-member-detail-page .admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-shell .admin-members-page .admin-page-header h1,
.admin-shell .admin-member-detail-page .admin-page-header h1 {
    margin: 0;
}

.admin-shell .admin-members-page .admin-page-header p,
.admin-shell .admin-member-detail-page .admin-page-header p {
    margin: 8px 0 0;
    color: rgba(53, 19, 22, 0.68);
}

.admin-shell .admin-filter-card {
    padding: 18px;
    border: 1px solid rgba(222, 182, 112, 0.42);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 250, 239, 0.97), rgba(250, 237, 215, 0.9));
    box-shadow: 0 12px 30px rgba(67, 32, 22, 0.08);
}

.admin-shell .admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
    align-items: end;
}

.admin-shell .admin-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-shell .admin-filter-field label {
    color: rgba(53, 19, 22, 0.7);
    font-size: 13px;
    font-weight: 750;
}

.admin-shell .admin-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-shell .admin-member-hero {
    align-items: flex-start;
}

.admin-shell .admin-member-status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-shell .admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(216, 156, 63, 0.34);
    border-radius: 999px;
    background: rgba(255, 244, 218, 0.68);
    color: #5a2020;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-shell .admin-member-media {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 16px;
    align-items: stretch;
}

.admin-shell .admin-member-photo-empty {
    display: grid;
    min-height: 160px;
    place-items: center;
    border: 1px dashed rgba(139, 39, 48, 0.24);
    border-radius: 16px;
    background: rgba(255, 244, 218, 0.42);
    color: rgba(53, 19, 22, 0.62);
    font-size: 14px;
    font-weight: 750;
    text-align: center;
}

.admin-shell .admin-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.admin-shell .admin-kv-grid > div {
    min-width: 0;
}

.admin-shell .admin-kv-grid span {
    display: block;
    margin-bottom: 4px;
    color: rgba(53, 19, 22, 0.62);
    font-size: 12px;
    font-weight: 750;
}

.admin-shell .admin-kv-grid strong {
    display: block;
    min-width: 0;
    color: #351316;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.admin-shell .admin-member-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-shell .admin-member-detail-page .admin-member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-top: 14px;
}

.admin-shell .admin-member-detail-page .admin-member-actions label {
    min-width: min(220px, 100%);
}

.admin-shell .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.admin-shell .admin-table {
    width: 100%;
    min-width: 860px;
}

.admin-shell .admin-table .admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(216, 156, 63, 0.44);
    border-radius: 10px;
    background: rgba(255, 244, 218, 0.68);
    color: #5a2020;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.admin-shell .admin-table .admin-code {
    max-width: 18ch;
}

@media (max-width: 1100px) {
    .admin-shell .admin-filter-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-shell .admin-members-page .admin-page-header,
    .admin-shell .admin-member-detail-page .admin-page-header,
    .admin-shell .admin-member-media,
    .admin-shell .admin-member-detail-grid,
    .admin-shell .admin-kv-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-members-page .admin-page-header,
    .admin-shell .admin-member-detail-page .admin-page-header {
        display: grid;
    }

    .admin-shell .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-filter-actions,
    .admin-shell .admin-member-status-row {
        justify-content: flex-start;
    }

    .admin-shell .admin-table {
        min-width: 760px;
    }
}


.admin-shell .admin-members-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(53, 19, 22, 0.64);
    font-size: 12px;
    font-weight: 750;
}

.admin-shell .admin-members-bulk-delete,
.admin-shell .admin-table .admin-action-link--disabled {
    opacity: 0.54;
    cursor: not-allowed;
}

.admin-shell .admin-members-table .admin-members-select-cell {
    width: auto;
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
}

.admin-shell .admin-members-select-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    accent-color: #8b2730;
    cursor: pointer;
}

.admin-shell .admin-member-avatar-thumb,
.admin-shell .admin-member-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.admin-shell .admin-member-avatar-thumb {
    display: block;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(222, 182, 112, 0.42);
    background: rgba(255, 244, 218, 0.56);
}

.admin-shell .admin-member-avatar-placeholder {
    display: inline-grid;
    place-items: center;
    border: 1px dashed rgba(139, 39, 48, 0.24);
    background: rgba(255, 244, 218, 0.58);
    color: rgba(53, 19, 22, 0.58);
    font-size: 12px;
    font-weight: 850;
}

.admin-shell .admin-member-status-action,
.admin-shell .admin-member-actions-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-shell .admin-member-identity {
    display: grid;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-member-identity strong {
    display: block;
    max-width: 100%;
    color: #351316;
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.admin-shell .admin-member-identity > span {
    color: rgba(53, 19, 22, 0.66);
    font-size: 12px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.admin-shell .admin-member-actions-inline {
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-content-area .admin-member-status-action form:not(.admin-nav__logout),
.admin-shell .admin-content-area .admin-member-actions-inline form:not(.admin-nav__logout) {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: 0;
    margin: 0;
}

.admin-shell .admin-table .admin-member-actions-inline .admin-action-link {
    max-width: 100%;
    min-height: 32px;
    padding: 0 11px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.admin-shell .admin-table .admin-member-actions-inline .admin-action-link--danger {
    border-color: rgba(139, 39, 48, 0.34);
    background: rgba(139, 39, 48, 0.1);
    color: #6b1f27;
}

.admin-shell .admin-table .admin-action-link--disabled {
    color: rgba(53, 19, 22, 0.56);
}

.admin-shell .admin-members-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.admin-shell .admin-members-page .admin-panel,
.admin-shell .admin-members-page .admin-table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-members-table th,
.admin-shell .admin-members-table td {
    padding: 10px 6px;
}

.admin-shell .admin-members-col--select {
    width: 4%;
}

.admin-shell .admin-members-col--avatar {
    width: 7%;
}

.admin-shell .admin-members-col--nickname {
    width: 15%;
}

.admin-shell .admin-members-col--gender {
    width: 5%;
}

.admin-shell .admin-members-col--birth-date {
    width: 9%;
}

.admin-shell .admin-members-col--city {
    width: 9%;
}

.admin-shell .admin-members-col--member-type {
    width: 10%;
}

.admin-shell .admin-members-col--created-at {
    width: 13%;
}

.admin-shell .admin-members-col--actions {
    width: 28%;
}

.admin-shell .admin-members-table [data-member-display="nickname"],
.admin-shell .admin-members-table [data-member-display="location_area_id"] {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.admin-shell .admin-members-table [data-member-display="birth_date"],
.admin-shell .admin-member-created-at {
    font-variant-numeric: tabular-nums;
}

.admin-shell .admin-members-table [data-member-display="birth_date"] {
    display: inline-block;
    font-size: 12px;
    white-space: nowrap;
}

.admin-shell .admin-member-created-at {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: normal;
}

.admin-shell .admin-members-table .admin-status-badge {
    max-width: 100%;
    flex-shrink: 0;
    padding-right: 7px;
    padding-left: 7px;
}

.admin-shell .admin-member-actions-cell {
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-members-table tr.is-inline-editing {
    background: rgba(255, 244, 218, 0.34);
}

.admin-shell .admin-member-inline-editor,
.admin-shell .admin-member-inline-editor--gender,
.admin-shell .admin-member-inline-editor--birth-date,
.admin-shell .admin-member-inline-editor--location {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-member-inline-editor input,
.admin-shell .admin-member-inline-editor select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 13px;
}

.admin-shell .admin-member-inline-form,
.admin-shell .admin-member-inline-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.admin-shell .admin-member-inline-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-member-inline-form__actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-member-inline-form[hidden],
.admin-shell [data-member-editor][hidden],
.admin-shell [data-member-display-actions][hidden],
.admin-shell [data-member-display][hidden],
.admin-shell .admin-member-inline-error[hidden],
.admin-shell .admin-member-inline-toast[hidden] {
    display: none !important;
}

.admin-shell .admin-member-inline-error {
    display: block;
    margin-top: 5px;
    color: #8b2730;
    font-size: 12px;
    line-height: 1.35;
}

.admin-shell .admin-member-inline-error--row {
    flex: 0 0 100%;
    margin-top: 0;
}

.admin-shell .admin-member-inline-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    max-width: min(360px, calc(100vw - 32px));
    padding: 11px 16px;
    border: 1px solid rgba(78, 126, 86, 0.38);
    border-radius: 10px;
    background: #f4fbf3;
    box-shadow: 0 10px 24px rgba(53, 19, 22, 0.14);
    color: #2c6334;
    font-size: 14px;
    font-weight: 750;
}

.admin-shell .admin-inline-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1199px) {
    .admin-shell .admin-members-page,
    .admin-shell .admin-members-page .admin-panel,
    .admin-shell .admin-members-page .admin-table-wrap {
        max-width: 100%;
        min-width: 0;
    }

    .admin-shell .admin-members-page .admin-table-wrap {
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .admin-shell .admin-members-table {
        min-width: 900px;
    }
}

@media (max-width: 720px) {
    .admin-shell .admin-member-inline-toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }
}

/* Admin member detail media display batch 1 */
.admin-shell .admin-member-media-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    gap: 16px;
    min-width: 0;
}

.admin-shell .admin-member-media-card,
.admin-shell .admin-member-photo-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(222, 182, 112, 0.4);
    border-radius: 14px;
    background: rgba(255, 250, 239, 0.78);
}

.admin-shell .admin-member-media-card h3,
.admin-shell .admin-member-photo-card h3,
.admin-shell .admin-member-media > div > h3 {
    margin: 0 0 10px;
    color: #351316;
    font-size: 14px;
    font-weight: 850;
}

.admin-shell .admin-member-media-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(139, 39, 48, 0.16);
    border-radius: 12px;
    background: rgba(255, 244, 218, 0.5);
}

.admin-shell .admin-member-photo-card .admin-member-media-thumb {
    aspect-ratio: 4 / 3;
}

.admin-shell .admin-member-media-meta {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    color: rgba(53, 19, 22, 0.68);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.admin-shell .admin-member-media-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-shell .admin-member-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    min-width: 0;
}

.admin-shell .admin-member-photo-empty {
    width: 100%;
}

@media (max-width: 1180px) {
    .admin-shell .admin-member-photo-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-shell .admin-member-media-gallery {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-member-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .admin-shell .admin-member-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin review pages visual batch 1 */
.admin-shell .admin-review-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 16px;
}

.admin-shell .admin-review-page .admin-page-header {
    display: grid;
    gap: 6px;
    margin: 0;
}

.admin-shell .admin-review-page .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.admin-shell .admin-review-table {
    min-width: 860px;
    table-layout: fixed;
}

.admin-shell .admin-review-table th,
.admin-shell .admin-review-table td {
    vertical-align: top;
}

.admin-shell .admin-review-media {
    display: grid;
    gap: 8px;
    justify-items: start;
    min-width: 0;
    max-width: 150px;
}

.admin-shell .admin-review-thumb {
    display: block;
    width: 128px;
    height: 128px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(139, 39, 48, 0.16);
    border-radius: 12px;
    background: rgba(255, 244, 218, 0.5);
}

.admin-shell .admin-review-media-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 800;
}

.admin-shell .admin-review-actions {
    display: grid;
    gap: 10px;
    min-width: min(260px, 100%);
    max-width: 320px;
}

.admin-shell .admin-review-action-row {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-shell .admin-review-reason {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-shell .admin-review-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-shell .admin-review-actions button {
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .admin-shell .admin-review-page {
        gap: 12px;
    }

    .admin-shell .admin-review-table {
        min-width: 720px;
    }

    .admin-shell .admin-review-media {
        max-width: 132px;
    }

    .admin-shell .admin-review-thumb {
        width: 112px;
        height: 112px;
    }

    .admin-shell .admin-review-actions,
    .admin-shell .admin-review-buttons {
        display: grid;
        justify-items: start;
        max-width: 100%;
    }
}

/* Admin technical pages visual batch 1 */
.admin-shell .admin-tech-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 16px;
}

.admin-shell .admin-tech-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.admin-shell .admin-tech-table {
    min-width: 900px;
    table-layout: fixed;
}

.admin-shell .admin-tech-table th,
.admin-shell .admin-tech-table td {
    min-width: 0;
    vertical-align: top;
}

.admin-shell .admin-tech-detail {
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-tech-detail-card {
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-tech-kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-tech-kv .admin-member-field {
    min-width: 0;
}

.admin-shell .admin-tech-kv-wide {
    grid-column: 1 / -1;
}

.admin-shell .admin-tech-code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.45;
}

.admin-shell .admin-tech-pre {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    overflow-x: auto;
    border: 1px solid rgba(139, 39, 48, 0.14);
    border-radius: 10px;
    background: rgba(255, 250, 239, 0.72);
    color: rgba(53, 19, 22, 0.78);
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-shell .admin-tech-pre code {
    display: block;
    min-width: 0;
    white-space: inherit;
    overflow-wrap: inherit;
}

.admin-shell .admin-tech-summary {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.5;
}

.admin-shell .admin-tech-muted {
    color: rgba(53, 19, 22, 0.58);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .admin-shell .admin-tech-page {
        gap: 12px;
    }

    .admin-shell .admin-tech-table {
        min-width: 760px;
    }

    .admin-shell .admin-tech-kv {
        grid-template-columns: 1fr;
    }
}

/* Admin member album grid overflow fix */
.admin-shell .admin-member-detail-page,
.admin-shell .admin-member-detail-page .admin-panel,
.admin-shell .admin-member-media,
.admin-shell .admin-member-media > div,
.admin-shell .admin-member-media-gallery,
.admin-shell .admin-member-photo-grid {
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-member-media,
.admin-shell .admin-member-media > div,
.admin-shell .admin-member-photo-grid,
.admin-shell .admin-member-photo-card {
    overflow: hidden;
}

.admin-shell .admin-member-photo-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 16px;
    align-items: start;
}

.admin-shell .admin-member-photo-card {
    min-width: 0;
    max-width: 100%;
}

.admin-shell .admin-member-photo-card .admin-member-media-thumb,
.admin-shell .admin-member-photo-card img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
}

.admin-shell .admin-member-photo-card,
.admin-shell .admin-member-media-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 720px) {
    .admin-shell .admin-member-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .admin-shell .admin-member-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin technical pages text overlap fix */
.admin-shell .admin-tech-page {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.admin-shell .admin-tech-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.admin-shell .admin-tech-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.admin-shell .admin-tech-table th,
.admin-shell .admin-tech-table td {
    min-width: 7rem;
    max-width: none;
    vertical-align: top;
    white-space: normal;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
}

.admin-shell .admin-tech-table td:has(.admin-tech-code),
.admin-shell .admin-tech-table td:has(.admin-code) {
    min-width: 10rem;
}

.admin-shell .admin-tech-page .admin-code,
.admin-shell .admin-tech-code {
    display: inline-block;
    max-width: 18rem;
    min-width: 0;
    box-sizing: border-box;
    vertical-align: top;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-shell .admin-tech-code--scroll {
    display: block;
    max-width: 16rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.admin-shell .admin-tech-summary,
.admin-shell .admin-tech-pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-shell .admin-tech-table .admin-tech-summary {
    min-width: 12rem;
}

.admin-shell .admin-payment-orders .admin-tech-table th:nth-child(7),
.admin-shell .admin-payment-orders .admin-tech-table td:nth-child(7),
.admin-shell .admin-payment-orders .admin-tech-table th:nth-child(11),
.admin-shell .admin-payment-orders .admin-tech-table td:nth-child(11),
.admin-shell .admin-payment-orders .admin-tech-table th:nth-child(12),
.admin-shell .admin-payment-orders .admin-tech-table td:nth-child(12),
.admin-shell .admin-payment-orders .admin-tech-table th:nth-child(13),
.admin-shell .admin-payment-orders .admin-tech-table td:nth-child(13),
.admin-shell .admin-payment-orders .admin-tech-table th:nth-child(14),
.admin-shell .admin-payment-orders .admin-tech-table td:nth-child(14),
.admin-shell .admin-payment-orders .admin-tech-table th:nth-child(15),
.admin-shell .admin-payment-orders .admin-tech-table td:nth-child(15),
.admin-shell .admin-stripe-events .admin-tech-table th:nth-child(4),
.admin-shell .admin-stripe-events .admin-tech-table td:nth-child(4),
.admin-shell .admin-stripe-events .admin-tech-table th:nth-child(7),
.admin-shell .admin-stripe-events .admin-tech-table td:nth-child(7),
.admin-shell .admin-stripe-events .admin-tech-table th:nth-child(8),
.admin-shell .admin-stripe-events .admin-tech-table td:nth-child(8),
.admin-shell .admin-stripe-events .admin-tech-table th:nth-child(9),
.admin-shell .admin-stripe-events .admin-tech-table td:nth-child(9),
.admin-shell .admin-user-entitlements .admin-tech-table th:nth-child(8),
.admin-shell .admin-user-entitlements .admin-tech-table td:nth-child(8),
.admin-shell .admin-user-entitlements .admin-tech-table th:nth-child(9),
.admin-shell .admin-user-entitlements .admin-tech-table td:nth-child(9),
.admin-shell .admin-user-entitlements .admin-tech-table th:nth-child(10),
.admin-shell .admin-user-entitlements .admin-tech-table td:nth-child(10),
.admin-shell .admin-user-entitlements .admin-tech-table th:nth-child(11),
.admin-shell .admin-user-entitlements .admin-tech-table td:nth-child(11),
.admin-shell .admin-user-entitlements .admin-tech-table th:nth-child(12),
.admin-shell .admin-user-entitlements .admin-tech-table td:nth-child(12) {
    min-width: 7.5rem;
}

.admin-shell .admin-dashboard .admin-tech-table th:nth-child(2),
.admin-shell .admin-dashboard .admin-tech-table td:nth-child(2),
.admin-shell .admin-dashboard .admin-tech-table th:nth-child(7),
.admin-shell .admin-dashboard .admin-tech-table td:nth-child(7),
.admin-shell .admin-dashboard .admin-tech-table th:nth-child(8),
.admin-shell .admin-dashboard .admin-tech-table td:nth-child(8) {
    min-width: 8rem;
}

.admin-shell .admin-dashboard .admin-tech-table th:nth-child(9),
.admin-shell .admin-dashboard .admin-tech-table td:nth-child(9) {
    min-width: 14rem;
}

@media (max-width: 720px) {
    .admin-shell .admin-tech-table {
        min-width: 760px;
    }

    .admin-shell .admin-tech-page .admin-code,
    .admin-shell .admin-tech-code {
        max-width: 14rem;
    }
}


/* Admin demo member tools skeleton */
.admin-shell .admin-demo-tools .admin-content-area {
    gap: 18px;
}

.admin-shell .admin-demo-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.admin-shell .admin-demo-heading p {
    margin: 0;
    color: #6f5f67;
    line-height: 1.65;
}

.admin-shell .admin-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.admin-shell .admin-demo-card {
    border: 1px solid #eadfe3;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(80, 55, 64, 0.06);
}

.admin-shell .admin-demo-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.admin-shell .admin-demo-card p {
    margin: 0 0 12px;
    color: #665960;
    line-height: 1.65;
}

.admin-shell .admin-demo-warning {
    border: 1px solid #e5c36d;
    border-radius: 8px;
    background: #fff8e5;
    color: #5f4611;
    padding: 14px 16px;
    line-height: 1.65;
}

.admin-shell .admin-demo-warning ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.admin-shell .admin-demo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.admin-shell .admin-demo-stat {
    min-height: 72px;
    border: 1px solid #eee3e7;
    border-radius: 8px;
    background: #fbf8f9;
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 4px;
}

.admin-shell .admin-demo-stat span {
    color: #7c6c73;
    font-size: 13px;
}

.admin-shell .admin-demo-stat strong {
    color: #3f3036;
    font-size: 24px;
}

.admin-shell .admin-demo-link,
.admin-shell .admin-demo-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    padding: 0 14px;
    font-weight: 700;
    text-decoration: none;
}

.admin-shell .admin-demo-link {
    background: #7b2941;
    color: #fff;
}

.admin-shell .admin-demo-disabled {
    border: 1px solid #d8cfd3;
    background: #eee8eb;
    color: #7c6f75;
    cursor: not-allowed;
}

.admin-shell .admin-demo-form {
    display: grid;
    gap: 14px;
}

.admin-shell .admin-demo-form fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-shell .admin-demo-form label,
.admin-shell .admin-demo-upload-slot {
    display: grid;
    gap: 6px;
    color: #4d4047;
}

.admin-shell .admin-demo-form input,
.admin-shell .admin-demo-form select,
.admin-shell .admin-demo-upload-slot {
    min-height: 42px;
    border: 1px solid #ddd2d7;
    border-radius: 8px;
    background: #f7f2f4;
    padding: 9px 10px;
}

.admin-shell .admin-demo-check {
    align-content: center;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.admin-shell .admin-demo-full {
    grid-column: 1 / -1;
}

.admin-shell .admin-demo-option-group {
    display: grid;
    gap: 10px;
}

.admin-shell .admin-demo-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shell .admin-demo-option-list .admin-demo-check {
    min-height: 38px;
    border: 1px solid #ddd2d7;
    border-radius: 8px;
    background: #f7f2f4;
    padding: 8px 10px;
}

.admin-shell .admin-demo-confirm {
    border: 1px solid #e5c36d;
    border-radius: 8px;
    background: #fff8e5;
    padding: 12px;
}

.admin-shell .admin-demo-empty {
    color: #7c6f75;
}

.admin-shell .admin-demo-folder-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.admin-shell .admin-demo-folder-list li {
    border: 1px solid #eee3e7;
    border-radius: 8px;
    background: #fbf8f9;
    padding: 10px 12px;
}

.admin-shell .admin-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* Admin demo import scanner preview */
.admin-shell .admin-demo-import .admin-demo-import-status {
    color: #62545b;
}

.admin-shell .admin-demo-import .admin-demo-stat small {
    display: block;
    margin-top: 4px;
    color: #8a7a82;
    font-size: 12px;
}

.admin-shell .admin-demo-import-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid #eee3e7;
    border-radius: 8px;
    background: #fff;
}

.admin-shell .admin-demo-import-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-shell .admin-demo-import-table th,
.admin-shell .admin-demo-import-table td {
    border-bottom: 1px solid #eee3e7;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.admin-shell .admin-demo-import-table th {
    background: #f7f2f4;
    color: #5b4a52;
    font-size: 13px;
}

.admin-shell .admin-demo-import-table td small {
    display: block;
    margin-top: 3px;
    color: #8a7a82;
}

.admin-shell .admin-demo-import-candidate:last-child td {
    border-bottom: 0;
}

.admin-shell .admin-demo-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-shell .admin-demo-import-disabled {
    cursor: not-allowed;
}

/* Admin demo batch create skeleton */
.admin-shell .admin-demo-batch .admin-demo-batch-grid {
    display: grid;
    gap: 18px;
}

.admin-shell .admin-demo-candidate {
    display: grid;
    gap: 16px;
}

.admin-shell .admin-demo-candidate-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-shell .admin-demo-candidate-header h2 {
    margin: 0;
}

.admin-shell .admin-demo-candidate-actions,
.admin-shell .admin-demo-batch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shell .admin-demo-candidate-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.admin-shell .admin-demo-candidate-fields label {
    display: grid;
    gap: 6px;
    color: #4d4047;
}

.admin-shell .admin-demo-candidate-fields input,
.admin-shell .admin-demo-candidate-fields select {
    min-height: 42px;
    border: 1px solid #ddd2d7;
    border-radius: 8px;
    background: #f7f2f4;
    padding: 9px 10px;
}

.admin-shell .admin-demo-candidate-tags {
    grid-template-columns: 1fr;
}

.admin-shell .admin-demo-ai-placeholder {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px dashed #d8cbd1;
    border-radius: 8px;
    background: #fbf8f9;
    padding: 12px;
    color: #65545c;
}

.admin-shell .admin-demo-batch .admin-demo-batch-form {
    display: grid;
    gap: 18px;
}

.admin-shell .admin-demo-batch .admin-demo-batch-alert {
    border-color: #c43b58;
    background: #fff4f6;
}

.admin-shell .admin-demo-batch .admin-demo-batch-alert strong {
    display: block;
    margin-bottom: 8px;
    color: #8f1f3a;
}

.admin-shell .admin-demo-batch .admin-demo-enable-check {
    border: 1px solid #d8b1bd;
    border-radius: 8px;
    background: #fff7f9;
    padding: 8px 10px;
    font-weight: 700;
}

.admin-shell .admin-demo-batch .admin-demo-enable-check input {
    accent-color: #7d324a;
}

.admin-shell .admin-demo-batch .admin-demo-batch-actions button[type="submit"] {
    border: 0;
    border-radius: 8px;
    background: #7d324a;
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.admin-shell .admin-demo-batch-results {
    display: grid;
    gap: 14px;
}

.admin-shell .admin-demo-batch .admin-demo-result-list {
    border: 1px solid #eadfe3;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.admin-shell .admin-demo-batch .admin-demo-result-list h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.admin-shell .admin-demo-batch .admin-demo-result-list ul {
    margin: 0;
    padding-left: 18px;
}

.admin-shell .admin-demo-batch .admin-demo-result-success {
    border-color: #c8dfd2;
}

.admin-shell .admin-demo-batch .admin-demo-result-failure {
    border-color: #e9c9cf;
}

/* Admin demo batch AI local fill skeleton */
.admin-shell .admin-demo-batch .admin-demo-ai-placeholder > div {
    display: grid;
    gap: 4px;
}

.admin-shell .admin-demo-ai-skeleton-note {
    color: #7b6870;
    font-size: 13px;
}

.admin-shell .admin-demo-ai-status {
    border: 1px solid #d8cbd1;
    border-radius: 999px;
    background: #fff;
    color: #6a5860;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
}

.admin-shell .admin-demo-ai-status.is-filled {
    border-color: #bfd8c9;
    background: #f3fbf6;
    color: #356146;
}

.admin-shell .admin-demo-ai-fill-button {
    border: 0;
    cursor: pointer;
}

.admin-shell .admin-demo-ai-status.is-loading {
    border-color: #d9c388;
    background: #fff9e8;
    color: #725a19;
}

.admin-shell .admin-demo-ai-status.is-error {
    border-color: #e3b6bf;
    background: #fff3f5;
    color: #8b263d;
}
/* Admin demo batch desktop two-column layout */
.admin-shell .admin-demo-batch .admin-demo-candidate-body {
    display: grid;
    gap: 16px;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-main,
.admin-shell .admin-demo-batch .admin-demo-candidate-side {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-mid {
    min-width: 0;
}

.admin-shell .admin-demo-batch .admin-demo-field-grid,
.admin-shell .admin-demo-batch .admin-demo-upload-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-shell .admin-demo-batch .admin-demo-tag-grid {
    gap: 16px;
}

@media (min-width: 960px) {
    .admin-shell .admin-demo-batch .admin-demo-candidate-body {
        grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
        align-items: start;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-main .admin-demo-field-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side .admin-demo-field-grid,
    .admin-shell .admin-demo-batch .admin-demo-candidate-side .admin-demo-upload-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 959px) {
    .admin-shell .admin-demo-batch .admin-demo-candidate-body {
        grid-template-columns: 1fr;
    }
}
/* Admin demo batch layout round 2 full width three-column desktop */
.admin-shell .admin-demo-batch .admin-content-area,
.admin-shell .admin-demo-batch .admin-content-area > .admin-panel,
.admin-shell .admin-demo-batch .admin-demo-batch-form,
.admin-shell .admin-demo-batch .admin-demo-batch-grid,
.admin-shell .admin-demo-batch .admin-demo-card {
    width: 100%;
    max-width: none;
}

.admin-shell .admin-demo-batch .admin-demo-batch-grid,
.admin-shell .admin-demo-batch .admin-demo-batch-form {
    gap: 14px;
}

.admin-shell .admin-demo-batch .admin-demo-candidate {
    gap: 12px;
    padding: 14px;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-head {
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0e5e8;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-head h2 {
    margin: 0;
    font-size: 17px;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-actions,
.admin-shell .admin-demo-batch .admin-demo-batch-actions {
    align-items: center;
    gap: 8px;
}

.admin-shell .admin-demo-batch .admin-demo-enable-check {
    min-height: 34px;
    padding: 6px 9px;
}

.admin-shell .admin-demo-batch .admin-demo-ai-placeholder {
    gap: 8px;
    padding: 10px;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-fields {
    gap: 10px;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-fields label {
    gap: 4px;
}

.admin-shell .admin-demo-batch .admin-demo-candidate-fields input,
.admin-shell .admin-demo-batch .admin-demo-candidate-fields select {
    min-height: 38px;
    padding: 7px 9px;
}

.admin-shell .admin-demo-batch .admin-demo-option-group {
    gap: 6px;
}

.admin-shell .admin-demo-batch .admin-demo-option-group strong {
    font-size: 13px;
    line-height: 1.25;
}

.admin-shell .admin-demo-batch .admin-demo-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 6px;
}

.admin-shell .admin-demo-batch .admin-demo-tag-chip,
.admin-shell .admin-demo-batch .admin-demo-tag-grid .admin-demo-check {
    min-height: 30px;
    border-radius: 999px;
    gap: 5px;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.2;
}

.admin-shell .admin-demo-batch .admin-demo-tag-grid .admin-demo-check input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.admin-shell .admin-demo-batch .admin-demo-tag-grid .admin-demo-check span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 1280px) {
    .admin-shell .admin-demo-batch .admin-demo-candidate-body {
        grid-template-columns: minmax(280px, 0.9fr) minmax(760px, 2.1fr);
        gap: 14px;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-main .admin-demo-field-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-main .admin-demo-field-grid label:first-child,
    .admin-shell .admin-demo-batch .admin-demo-candidate-main .admin-demo-field-grid label:nth-child(4) {
        grid-column: 1 / -1;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side {
        display: grid;
        grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.2fr);
        grid-template-rows: auto auto;
        gap: 12px 14px;
        align-items: start;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side .admin-demo-field-grid {
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side .admin-demo-upload-grid {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side .admin-demo-tag-grid {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
    }
}

@media (min-width: 960px) and (max-width: 1279px) {
    .admin-shell .admin-demo-batch .admin-demo-candidate-body {
        grid-template-columns: minmax(300px, 0.9fr) minmax(520px, 1.2fr);
        gap: 14px;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side {
        display: grid;
        gap: 12px;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side .admin-demo-field-grid,
    .admin-shell .admin-demo-batch .admin-demo-candidate-side .admin-demo-upload-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 959px) {
    .admin-shell .admin-demo-batch .admin-demo-candidate-body,
    .admin-shell .admin-demo-batch .admin-demo-candidate-side {
        grid-template-columns: 1fr;
    }

    .admin-shell .admin-demo-batch .admin-demo-candidate-side {
        display: grid;
        gap: 12px;
    }
}

/* Admin AI settings skeleton */
.admin-shell .admin-ai-settings .admin-content-area {
    gap: 18px;
}

.admin-shell .admin-ai-settings-card {
    display: grid;
    gap: 18px;
}

.admin-shell .admin-ai-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.admin-shell .admin-ai-settings-grid label {
    display: grid;
    gap: 6px;
    color: #4d4047;
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-shell .admin-ai-settings-grid input,
.admin-shell .admin-ai-settings-grid select {
    min-height: 42px;
    border: 1px solid rgba(91, 69, 83, 0.2);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #6a5a63;
}

.admin-shell .admin-ai-settings-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(128, 88, 110, 0.18);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(252, 247, 250, 0.76);
    color: #5d4b56;
}

.admin-shell .admin-ai-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shell .admin-ai-settings-warning {
    border: 1px solid rgba(162, 104, 116, 0.24);
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(255, 248, 250, 0.82);
    color: #5b4853;
}

.admin-shell .admin-ai-settings-warning h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.admin-shell .admin-ai-settings-warning ul {
    margin: 0;
    padding-left: 18px;
}

/* Admin AI settings storage */
.admin-shell .admin-ai-settings-form { display: grid; gap: 18px; }
.admin-shell .admin-demo-ai-items { display: grid; gap: 12px; }
.admin-shell .admin-demo-ai-items-note { margin: 0; color: #75656d; font-size: 13px; }
.admin-shell .admin-demo-ai-items details { border: 1px solid #eadfe3; border-radius: 8px; background: #fff; }
.admin-shell .admin-demo-ai-items summary { cursor: pointer; padding: 11px 12px; font-weight: 700; color: #5b4650; }
.admin-shell .admin-demo-ai-items-table-wrap { overflow-x: auto; border-top: 1px solid #eadfe3; }
.admin-shell .admin-demo-ai-items-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-shell .admin-demo-ai-items-table th,
.admin-shell .admin-demo-ai-items-table td { padding: 9px 10px; border-bottom: 1px solid #f1e8eb; text-align: left; vertical-align: top; font-size: 13px; }
.admin-shell .admin-demo-ai-items-table th { color: #59474f; background: #faf6f7; }
.admin-shell .admin-ai-settings-status--success { border-color: rgba(39, 124, 89, 0.28); background: rgba(39, 124, 89, 0.08); color: #235c44; }
.admin-shell .admin-ai-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-shell .admin-ai-settings-danger { border-top: 1px solid rgba(94, 65, 50, 0.12); padding-top: 16px; margin-top: 4px; }

/* Admin AI settings encryption status */
.admin-shell .admin-ai-settings-encryption {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(128, 88, 110, 0.18);
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(252, 247, 250, 0.76);
    color: #5d4b56;
}

.admin-shell .admin-ai-settings-encryption-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.admin-shell .admin-ai-settings-encryption-head h2 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.admin-shell .admin-ai-settings-encryption-head p,
.admin-shell .admin-ai-settings-encryption-message {
    margin: 0;
    color: #76636e;
    font-size: 0.9rem;
}

.admin-shell .admin-ai-settings-encryption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.admin-shell .admin-ai-settings-encryption-grid div {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(128, 88, 110, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-shell .admin-ai-settings-encryption-grid span,
.admin-shell .admin-ai-settings-encryption-grid small {
    color: #806d78;
    font-size: 0.82rem;
}

.admin-shell .admin-ai-settings-encryption-grid strong {
    color: #4f3f49;
}

.admin-shell .admin-ai-settings-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.85rem;
    color: #7a5a32;
    background: rgba(212, 151, 72, 0.14);
}

.admin-shell .admin-ai-settings-pill--ok {
    color: #235c44;
    background: rgba(39, 124, 89, 0.12);
}
/* Admin AI settings runtime status */
.admin-shell .admin-ai-settings-runtime {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(94, 118, 148, 0.18);
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(247, 250, 252, 0.78);
    color: #4d5560;
}

.admin-shell .admin-ai-settings-runtime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.admin-shell .admin-ai-settings-runtime-grid div {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(94, 118, 148, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.66);
}

.admin-shell .admin-ai-settings-runtime-grid span {
    color: #697482;
    font-size: 0.82rem;
}

.admin-shell .admin-ai-settings-runtime-grid strong {
    color: #384452;
}

/* Admin AI settings model availability check */
.admin-shell .admin-ai-settings-model-check {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(94, 65, 50, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-shell .admin-ai-settings-model-check-form {
    margin: 0;
}

.admin-shell .admin-ai-settings-model-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.admin-shell .admin-ai-settings-model-check-grid div,
.admin-shell .admin-ai-settings-model-list {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-shell .admin-ai-settings-model-check-grid span,
.admin-shell .admin-ai-settings-model-list span {
    color: #7b665b;
    font-size: 12px;
}

.admin-shell .admin-ai-settings-model-check-grid strong {
    color: #2f2621;
}

.admin-shell .admin-ai-settings-model-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.admin-shell .admin-ai-settings-model-list li {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(122, 77, 55, 0.1);
    color: #4a342a;
    font-size: 12px;
}

/* Admin demo folder batch skeleton */
.admin-shell .admin-demo-folder {
    --admin-demo-folder-border: rgba(96, 78, 91, 0.16);
}

.admin-shell .admin-demo-folder-flow,
.admin-shell .admin-demo-folder-upload,
.admin-shell .admin-demo-folder-limit,
.admin-shell .admin-demo-folder-preview {
    display: grid;
    gap: 16px;
}

.admin-shell .admin-demo-folder-flow ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #5f5159;
}

.admin-shell .admin-demo-folder-upload label {
    display: grid;
    gap: 8px;
    color: #4d4047;
    font-weight: 700;
}

.admin-shell .admin-demo-folder-upload input[type="file"] {
    width: 100%;
    min-height: 42px;
    border: 1px dashed var(--admin-demo-folder-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #786873;
}

.admin-shell .admin-demo-folder-upload pre {
    overflow-x: auto;
    margin: 0;
    border: 1px solid var(--admin-demo-folder-border);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #594b55;
    line-height: 1.5;
}

.admin-shell .admin-demo-folder-limit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.admin-shell .admin-demo-folder-limit-grid div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--admin-demo-folder-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.66);
}

.admin-shell .admin-demo-folder-limit-grid span {
    color: #806f78;
    font-size: 0.82rem;
}

.admin-shell .admin-demo-folder-limit-grid strong {
    color: #4f3f49;
}

.admin-shell .admin-demo-folder-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--admin-demo-folder-border);
    border-radius: 8px;
}

.admin-shell .admin-demo-folder-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.admin-shell .admin-demo-folder-table th,
.admin-shell .admin-demo-folder-table td {
    border-bottom: 1px solid rgba(96, 78, 91, 0.1);
    padding: 10px 12px;
    text-align: left;
    color: #5a4d55;
    font-size: 0.9rem;
}

.admin-shell .admin-demo-folder-table th {
    background: rgba(248, 243, 246, 0.86);
    color: #463a42;
    font-weight: 800;
}

.admin-shell .admin-demo-folder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-shell .admin-demo-folder-actions .admin-demo-folder-inline-form {
    margin: 0;
}

/* Admin demo folder batch upload controls */
.admin-shell .admin-demo-folder-summary,
.admin-shell .admin-demo-folder-progress,
.admin-shell .admin-demo-folder-result {
    display: grid;
    gap: 12px;
}

.admin-shell .admin-demo-folder-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.admin-shell .admin-demo-folder-summary-item {
    display: grid;
    gap: 4px;
    border: 1px solid var(--admin-demo-folder-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-shell .admin-demo-folder-summary-item span {
    color: #806f78;
    font-size: 0.82rem;
}

.admin-shell .admin-demo-folder-summary-item strong {
    color: #4f3f49;
    font-size: 1.05rem;
}

.admin-shell .admin-demo-folder-progress-track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(96, 78, 91, 0.12);
}

.admin-shell .admin-demo-folder-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #8f3650;
    transition: width 0.2s ease;
}

.admin-shell .admin-demo-folder-progress-text {
    margin: 0;
    color: #6b5b64;
    font-size: 0.9rem;
}


.admin-shell .admin-demo-folder-summary-grid > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--admin-demo-folder-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-shell .admin-demo-folder-summary-grid > div span {
    color: #806f78;
    font-size: 0.82rem;
}

.admin-shell .admin-demo-folder-summary-grid > div strong {
    color: #4f3f49;
    font-size: 1.05rem;
}


.admin-shell .admin-demo-folder .folder-upload-inline-progress {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(96, 78, 91, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.58);
}

.admin-shell .admin-demo-folder .folder-batch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-shell .admin-demo-folder .folder-batch-current {
    border: 1px solid rgba(143, 54, 80, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(143, 54, 80, 0.07);
    color: #6f3448;
    font-weight: 800;
    font-size: 0.88rem;
}

.admin-shell .admin-demo-folder .folder-upload-status {
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(143, 54, 80, 0.18);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(143, 54, 80, 0.08);
    color: #713047;
    font-weight: 800;
    font-size: 0.88rem;
}

.admin-shell .admin-demo-folder .folder-upload-progress {
    display: grid;
    gap: 8px;
}

.admin-shell .admin-demo-folder .folder-upload-progress__bar {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(96, 78, 91, 0.12);
}

.admin-shell .admin-demo-folder .folder-upload-progress__fill,
.admin-shell .admin-demo-folder-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #8f3650;
    transition: width 0.2s ease;
}

.admin-shell .admin-demo-folder .folder-upload-progress__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 14px;
    color: #6b5b64;
    font-size: 0.9rem;
}

.admin-shell .admin-demo-folder .folder-upload-progress__meta span:first-child {
    font-weight: 800;
    color: #4f3f49;
}

.admin-shell .admin-demo-folder .folder-upload-details {
    border: 1px solid var(--admin-demo-folder-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-shell .admin-demo-folder .folder-upload-details summary {
    cursor: pointer;
    padding: 8px 12px;
    color: #5b4a54;
    font-weight: 800;
}

.admin-shell .admin-demo-folder .folder-upload-details[open] summary {
    border-bottom: 1px solid rgba(96, 78, 91, 0.1);
}

.admin-shell .admin-demo-folder .folder-upload-details .admin-demo-folder-runtime {
    margin: 10px 12px 12px;
    max-height: 220px;
    overflow: auto;
}

.admin-shell .admin-demo-folder .admin-demo-folder-technical-details .admin-demo-folder-limit-grid {
    padding: 10px 12px 12px;
}

.admin-shell .admin-demo-folder-runtime {
    display: grid;
    gap: 8px;
    border: 1px solid var(--admin-demo-folder-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-shell .admin-demo-folder-runtime[hidden] {
    display: none;
}

.admin-shell .admin-demo-folder-runtime-entry {
    border-left: 3px solid rgba(96, 78, 91, 0.24);
    padding: 2px 0 2px 10px;
    color: #5d4d56;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-shell .admin-demo-folder-runtime-entry strong {
    display: block;
    margin-bottom: 4px;
    color: #4f3f49;
}

.admin-shell .admin-demo-folder-runtime-entry ul {
    margin: 0;
    padding-left: 18px;
}

.admin-shell .admin-demo-folder-runtime-entry--success {
    border-left-color: #2a7e5b;
    color: #226b4c;
}

.admin-shell .admin-demo-folder-runtime-entry--warning {
    border-left-color: #b26b2e;
    color: #8b4e21;
}

.admin-shell .admin-demo-folder-runtime-entry--error {
    border-left-color: #a92646;
    color: #9b1f3c;
}

.admin-shell .admin-demo-folder-error,
.admin-shell .admin-demo-folder-success {
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    line-height: 1.45;
}

.admin-shell .admin-demo-folder-error {
    border: 1px solid rgba(169, 38, 70, 0.24);
    background: rgba(169, 38, 70, 0.08);
    color: #9b1f3c;
}

.admin-shell .admin-demo-folder-success {
    border: 1px solid rgba(42, 126, 91, 0.24);
    background: rgba(42, 126, 91, 0.08);
    color: #226b4c;
}

.admin-shell .admin-demo-folder-success a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-shell .admin-demo-folder-preview-empty {
    margin: 0;
    color: #7b6a74;
}

.impersonation-banner {
    position: sticky;
    top: 61px;
    z-index: 19;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 46px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(122, 38, 52, 0.18);
    background: #f8eee6;
    color: #5f2632;
    box-shadow: 0 4px 14px rgba(68, 43, 52, 0.08);
}

.impersonation-banner form {
    margin: 0;
}

.impersonation-banner__exit {
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #7a2634;
    border-radius: 999px;
    background: #fffaf6;
    color: #7a2634;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.impersonation-banner__exit:focus-visible {
    outline: 3px solid rgba(122, 38, 52, 0.24);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .impersonation-banner {
        top: 57px;
        justify-content: space-between;
        gap: 10px;
        padding-inline: 14px;
        font-size: 0.92rem;
    }
}


/* Shared server-side flash and interaction submit states */
.app-flash-messages {
    width: min(100% - 32px, 1120px);
    margin: 16px auto 0;
}

.app-flash-message {
    margin: 0 0 10px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.app-flash-message--success {
    border-color: rgba(42, 126, 91, 0.28);
    background: #edf8f2;
    color: #226b4c;
}

.app-flash-message--warning {
    border-color: rgba(178, 107, 46, 0.3);
    background: #fff7e8;
    color: #8b4e21;
}

.app-flash-message--error {
    border-color: rgba(169, 38, 70, 0.26);
    background: #fff0f3;
    color: #9b1f3c;
}

.member-interaction-toast {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 116px);
    left: 50%;
    z-index: 1100;
    width: min(calc(100% - 32px), 520px);
    transform: translateX(-50%);
    pointer-events: none;
}

.member-interaction-toast[hidden] {
    display: none;
}

.member-interaction-toast__message {
    margin: 0;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 14px 32px rgba(72, 39, 29, 0.18);
}

.member-interaction-toast[data-level='success'] .member-interaction-toast__message {
    border-color: rgba(42, 126, 91, 0.28);
    background: #edf8f2;
    color: #226b4c;
}

.member-interaction-toast[data-level='warning'] .member-interaction-toast__message {
    border-color: rgba(178, 107, 46, 0.3);
    background: #fff7e8;
    color: #8b4e21;
}

.member-interaction-toast[data-level='error'] .member-interaction-toast__message {
    border-color: rgba(169, 38, 70, 0.26);
    background: #fff0f3;
    color: #9b1f3c;
}

.member-interaction-button[aria-busy='true'],
.member-interaction-button.is-complete {
    cursor: default;
    opacity: 0.72;
}

.member-interaction-button[aria-busy='true'] {
    pointer-events: none;
}

.member-interaction-button.is-complete {
    border-color: rgba(42, 126, 91, 0.34);
    background: #edf8f2;
    color: #226b4c;
}

@media (max-width: 860px) {
    .member-profile-page--approved-visual .member-profile__album-like-button.member-interaction-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
    }
}
.auth-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.auth-security-unavailable {
    color: var(--color-danger, #7f1d1d);
    font-size: 0.9rem;
    line-height: 1.5;
}
.status-badge--reviewing {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: #f7ead2;
    color: #795427;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-ai-review-summary {
    min-width: 12rem;
    max-width: 18rem;
}

.admin-ai-review-summary strong,
.admin-ai-review-summary span,
.admin-ai-review-summary small {
    display: block;
    margin-block: 0.18rem;
}

.admin-ai-review-summary small {
    color: var(--color-text-muted, #6f6863);
}

/* Account center compact sidebar system */
.account-settings-shell {
    --account-page-top-space: 20px;
    --account-page-bottom-space: 32px;
    --account-section-gap: 16px;
    --account-card-padding: 18px;
    --account-card-padding-mobile: 16px;
    --account-card-radius: 16px;
    --account-title-gap: 8px;
    --account-sidebar-width: 240px;
    --account-sidebar-item-height: 48px;
    --account-sidebar-item-gap: 6px;
    --account-form-row-gap: 14px;
    --account-control-height: 44px;
    --account-main-max-width: 780px;
    width: min(calc(100% - 24px), calc(var(--account-sidebar-width) + 24px + var(--account-main-max-width)));
    margin: 0 auto;
    padding: var(--account-page-top-space) 0 calc(var(--account-page-bottom-space) + env(safe-area-inset-bottom));
    color: var(--color-text, #3d1518);
    box-sizing: border-box;
}

.account-settings-shell *,
.account-settings-shell *::before,
.account-settings-shell *::after {
    box-sizing: border-box;
}

.ui-icon {
    display: block;
    flex: 0 0 auto;
    color: currentColor;
}

.account-settings-shell__layout {
    display: grid;
    grid-template-columns: var(--account-sidebar-width) minmax(0, 1fr);
    justify-content: center;
    align-items: start;
    gap: 24px;
}

.account-settings-shell__rail {
    position: sticky;
    top: 88px;
    min-width: 0;
}

.account-settings-sidebar {
    display: grid;
    gap: var(--account-sidebar-item-gap);
    padding: 10px;
    border: 1px solid rgba(230, 183, 99, 0.28);
    border-radius: var(--account-card-radius);
    background: linear-gradient(145deg, #32110f 0%, #54201d 58%, #3a1412 100%);
    box-shadow: 0 12px 28px rgba(68, 22, 18, 0.14);
}

.account-settings-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: var(--account-sidebar-item-height);
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 244, 224, 0.84);
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.account-settings-nav-item:hover,
.account-settings-nav-item:focus-visible {
    border-color: rgba(247, 220, 155, 0.38);
    background: rgba(255, 244, 218, 0.1);
    color: #fff8e8;
}

.account-settings-nav-item:focus-visible,
.account-settings-shell a:focus-visible,
.account-settings-shell button:focus-visible,
.account-settings-shell input:focus-visible,
.account-settings-shell select:focus-visible,
.account-settings-shell textarea:focus-visible {
    outline: 2px solid #dca24a;
    outline-offset: 2px;
}

.account-settings-nav-item.is-active {
    border-color: rgba(247, 220, 155, 0.56);
    background: linear-gradient(135deg, #f5d78e, #dfa64f);
    color: #431619;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.account-settings-sidebar .account-settings-nav-item.is-active::before {
    content: '';
    position: absolute;
    left: -7px;
    width: 3px;
    height: 24px;
    border-radius: 999px;
    background: #f7dc9b;
}

.account-settings-nav-item__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-settings-nav-item__badge {
    display: inline-flex;
    min-width: 22px;
    min-height: 22px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: #8f2e35;
    font-size: 12px;
}

.account-settings-shell__mobile {
    display: none;
}

.account-settings-shell__main {
    min-width: 0;
    width: 100%;
}

.account-settings-shell__header {
    display: grid;
    gap: var(--account-title-gap);
    margin-bottom: var(--account-section-gap);
    padding: 0 2px;
}

.account-settings-shell__header h1,
.account-settings-shell__header p {
    margin: 0;
}

.account-settings-shell__header h1 {
    color: #4d1719;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    line-height: 1.2;
}

.account-settings-shell__header p {
    color: var(--color-muted, #7b6660);
    line-height: 1.55;
}

.account-settings-shell__content > div {
    display: grid;
    gap: var(--account-section-gap);
}

.account-settings-shell .account-card,
.account-settings-shell .account-membership__panel,
.account-settings-shell .account-membership-status__panel {
    margin: 0;
    padding: var(--account-card-padding);
    border: 1px solid rgba(213, 168, 97, 0.25);
    border-radius: var(--account-card-radius);
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 8px 22px rgba(91, 37, 28, 0.055);
}

.account-settings-shell .account-card h2,
.account-settings-shell .account-card h3,
.account-settings-shell .account-card p {
    margin-top: 0;
}

.account-home-compact__identity {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.account-home-compact__avatar {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: #6f2529;
    background: #f7ead2;
}

.account-home-compact__identity-copy h2,
.account-home-compact__identity-copy p,
.account-home-compact__identity-copy small {
    display: block;
    margin: 0;
}

.account-home-compact__identity-copy p,
.account-home-compact__identity-copy small {
    margin-top: 4px;
    color: var(--color-muted, #7b6660);
}

.account-home-compact__primary,
.account-home-compact__logout button {
    display: inline-flex;
    min-height: var(--account-control-height);
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(138, 60, 68, 0.26);
    border-radius: 12px;
    color: #fff;
    background: #742d36;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.account-settings-shell .account-home-compact__status {
    display: grid;
    padding-block: 8px;
}

.account-home-compact__status > a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(213, 168, 97, 0.18);
    color: #4d1719;
    text-decoration: none;
}

.account-home-compact__status > a:last-child {
    border-bottom: 0;
}

.account-home-compact__status strong,
.account-home-compact__status small {
    display: block;
}

.account-home-compact__status small {
    margin-top: 3px;
    color: var(--color-muted, #7b6660);
}

.account-home-compact__logout {
    display: flex;
    justify-content: flex-end;
}

.account-home-compact__logout button {
    color: #742d36;
    background: transparent;
}

.account-profile-settings .account-detail__summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.account-profile-settings .account-detail__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-profile-settings .account-detail__field {
    display: grid;
    grid-template-columns: minmax(72px, 0.62fr) minmax(0, 1.38fr) auto;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid rgba(213, 168, 97, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
}

.account-profile-settings .account-detail__field > span {
    color: var(--color-muted, #7b6660);
    font-size: 0.88rem;
}

.account-profile-settings .account-detail__field > strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #4d1719;
    line-height: 1.4;
}

.account-profile-settings .account-detail__field > em {
    padding: 3px 7px;
    border-radius: 999px;
    color: #59684c;
    background: #eef2e8;
    font-size: 0.75rem;
    font-style: normal;
    white-space: nowrap;
}

.account-profile-settings .account-detail__field--pending > em {
    color: #87464b;
    background: #f8e8e5;
}

.account-security-settings .account-detail__fields {
    display: grid;
    gap: 0;
}

.account-security-settings .account-detail__field {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.6fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(213, 168, 97, 0.18);
}

.account-security-settings .account-detail__field:last-child {
    border-bottom: 0;
}

.account-profile-settings .account-profile-editor {
    overflow: hidden;
    border: 1px solid rgba(213, 168, 97, 0.28);
    border-radius: var(--account-card-radius);
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 8px 22px rgba(91, 37, 28, 0.055);
}

.account-profile-settings .account-profile-editor__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    min-height: 56px;
    padding: 13px 18px;
    color: #5a2024;
    cursor: pointer;
    list-style-position: inside;
}

.account-profile-settings .account-profile-editor__summary::marker {
    color: #9c6732;
}

.account-profile-settings .account-profile-editor__summary > span {
    font-weight: 780;
}

.account-profile-settings .account-profile-editor__summary > small {
    color: var(--color-muted, #7b6660);
    font-size: 0.82rem;
}

.account-profile-settings .account-profile-editor[open] .account-profile-editor__summary {
    border-bottom: 1px solid rgba(213, 168, 97, 0.2);
    background: rgba(252, 244, 231, 0.62);
}

.account-profile-settings .account-profile-editor__panel {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.account-profile-settings .profile-form.account-form-panel {
    display: grid;
    gap: var(--account-form-row-gap);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.account-profile-settings .profile-form__fields,
.account-profile-settings .profile-form__choices {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-profile-settings .profile-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.account-profile-settings .profile-form__field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    margin: 0;
    color: #5a2024;
    font-size: 0.9rem;
    font-weight: 720;
}

.account-profile-settings .profile-form__field--location,
.account-profile-settings .profile-form__help,
.account-profile-settings .profile-form__error,
.account-profile-settings .profile-form__choices {
    grid-column: 1 / -1;
}

.account-profile-settings .profile-form__help,
.account-profile-settings .profile-form__error {
    margin: -5px 0 0;
    line-height: 1.45;
}

.account-profile-settings .profile-form__help {
    color: var(--color-muted, #7b6660);
    font-size: 0.8rem;
}

.account-profile-settings .profile-form__error {
    padding: 8px 10px;
    border-radius: 9px;
    color: #7b2029;
    background: #fae9e8;
    font-size: 0.82rem;
}

.account-profile-settings .profile-form select,
.account-profile-settings .profile-form input:not([type='hidden']):not([type='checkbox']):not([type='file']),
.account-profile-settings .profile-form textarea {
    width: 100%;
    min-width: 0;
    min-height: var(--account-control-height);
    padding: 9px 12px;
    border: 1px solid rgba(144, 89, 70, 0.3);
    border-radius: 10px;
    color: #3d1518;
    background: #fffdf9;
    font: inherit;
}

.account-profile-settings .profile-form select:hover,
.account-profile-settings .profile-form input:not([type='hidden']):not([type='checkbox']):not([type='file']):hover,
.account-profile-settings .profile-form textarea:hover {
    border-color: rgba(144, 89, 70, 0.5);
}

.account-profile-settings .profile-form select:focus-visible,
.account-profile-settings .profile-form input:not([type='hidden']):not([type='checkbox']):not([type='file']):focus-visible,
.account-profile-settings .profile-form textarea:focus-visible {
    border-color: #b97b35;
    outline: 2px solid rgba(220, 162, 74, 0.28);
    outline-offset: 1px;
}

.account-profile-settings .profile-form__choices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.account-profile-settings .profile-form__choices > legend {
    grid-column: 1 / -1;
    margin-bottom: 1px;
    color: #5a2024;
    font-size: 0.9rem;
    font-weight: 760;
}

.account-profile-settings .profile-form__choice {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.account-profile-settings .profile-form__choice > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.account-profile-settings .profile-form__choice > span {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(144, 89, 70, 0.24);
    border-radius: 10px;
    color: #664246;
    background: #fffdf9;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
}

.account-profile-settings .profile-form__choice:hover > span {
    border-color: rgba(144, 89, 70, 0.5);
    background: #fcf5e9;
}

.account-profile-settings .profile-form__choice > input:checked + span {
    border-color: #a9672e;
    color: #5a2024;
    background: #f5dfb7;
    box-shadow: inset 0 0 0 1px rgba(169, 103, 46, 0.18);
}

.account-profile-settings .profile-form__choice > input:focus-visible + span {
    outline: 2px solid #dca24a;
    outline-offset: 2px;
}

.account-profile-settings .profile-form__choice > input:disabled + span {
    cursor: not-allowed;
    opacity: 0.62;
}

.account-profile-settings .profile-form select:disabled,
.account-profile-settings .profile-form input:disabled,
.account-profile-settings .profile-form textarea:disabled {
    color: #806f6b;
    background: #f4f0e9;
}

.account-profile-settings .profile-form__submit,
.account-profile-settings .account-profile-editor__cancel {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    padding: 0 16px;
    border-radius: 10px;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
}

.account-profile-settings .profile-form__submit {
    border: 1px solid #742d36;
    color: #fff;
    background: #742d36;
    cursor: pointer;
}

.account-profile-settings .account-profile-editor__cancel {
    min-height: 36px;
    padding-inline: 10px;
    color: #74494c;
}

.account-settings-shell .profile-form,
.account-settings-shell .account-form-panel {
    display: grid;
    gap: var(--account-form-row-gap);
}

.account-settings-shell input:not([type='hidden']):not([type='file']):not([type='range']),
.account-settings-shell select,
.account-settings-shell textarea {
    min-height: var(--account-control-height);
}

.account-settings-shell button,
.account-settings-shell a[role='button'] {
    min-height: var(--account-control-height);
}

.account-avatar-settings {
    grid-template-columns: minmax(176px, 0.42fr) minmax(0, 1.58fr);
    align-items: start;
}

.account-avatar-settings .account-avatar__current,
.account-avatar-settings .account-avatar__upload {
    min-width: 0;
}

.account-avatar-settings .account-avatar__preview {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__grid {
    grid-template-columns: minmax(280px, 380px) minmax(120px, 1fr);
    gap: 16px;
    align-items: start;
}

.account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__workspace {
    width: min(100%, 380px);
    height: clamp(300px, 44dvh, 380px);
    max-height: 380px;
    min-height: 300px;
    margin-inline: auto;
}

.account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__preview {
    width: 104px;
    height: 104px;
    min-height: 104px;
    margin-inline: auto;
}

.account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__controls {
    grid-column: 2;
    align-self: start;
}

.account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.account-settings-shell .account-avatar-settings .avatar-upload-form__status {
    order: 3;
}

.account-settings-shell .account-avatar-settings .avatar-upload-form__help {
    order: 4;
}

.account-albums-settings .account-albums__upload {
    padding: 16px;
}

.account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'].album-upload-form--native-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px 12px;
}

.account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-actions,
.account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-form__status {
    grid-column: 2;
}

.account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-native-grid {
    grid-column: 1 / -1;
}

.account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-native-grid:empty {
    display: none;
}

.account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-form__native {
    min-height: 96px;
    padding: 12px;
}

.account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-native-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.account-albums-settings .account-albums__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.account-albums-settings .account-albums__item {
    padding: 0;
    overflow: hidden;
}

.account-albums-settings .account-albums__item > img,
.account-albums-settings .account-albums__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.account-blocks-settings .account-blocks__list {
    display: grid;
    gap: 10px;
}

.account-blocks-settings .account-blocks__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 9px 14px;
}

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

.account-membership-settings .account-membership__plan {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(213, 168, 97, 0.24);
    border-radius: 14px;
}

.account-membership-status-settings .account-membership-status__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notifications-page--visual-batch1 .notifications-layout {
    grid-template-columns: 240px minmax(0, 920px);
    justify-content: center;
    gap: 24px;
    width: min(100%, 1184px);
}

.notifications-page--visual-batch1 .notifications-sidebar__brand {
    gap: 10px;
    padding: 8px 6px 4px;
}

.notifications-page--visual-batch1 .notifications-sidebar h1 {
    font-size: 1.65rem;
}

.notifications-page--visual-batch1 .notifications-sidebar p {
    margin-top: 5px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.notifications-page--visual-batch1 .notifications-sidebar__nav {
    gap: 6px;
}

.notifications-page--visual-batch1 .notifications-sidebar__item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
    border-radius: 12px;
}

.notifications-page--visual-batch1 .notifications-sidebar__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.notifications-page--visual-batch1 .notification-card {
    grid-template-columns: 8px 44px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
}

.notifications-page--visual-batch1 .notification-card__icon {
    width: 42px;
    height: 42px;
}

@media (max-width: 1279px) {
    .account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-native-grid,
    .account-albums-settings .account-albums__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-native-grid,
    .account-albums-settings .account-albums__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 959px) {
    .account-settings-shell {
        width: min(100% - 24px, var(--account-main-max-width));
        padding-top: 12px;
        overflow-x: clip;
    }

    .account-settings-shell__layout {
        display: block;
    }

    .account-settings-shell__rail {
        display: none;
    }

    .account-settings-shell__mobile {
        display: block;
        margin: 0 0 14px;
    }

    .account-settings-mobile-nav {
        display: flex;
        gap: 8px;
        max-width: 100%;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
    }

    .account-settings-mobile-nav .account-settings-nav-item {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 12px;
        border-color: rgba(213, 168, 97, 0.28);
        color: #5d3537;
        background: rgba(255, 252, 247, 0.88);
    }

    .account-settings-mobile-nav .account-settings-nav-item.is-active {
        color: #431619;
        background: linear-gradient(135deg, #f5d78e, #dfa64f);
    }

    .account-settings-mobile-nav .account-settings-nav-item.is-active::after {
        content: '';
        position: absolute;
        right: 12px;
        bottom: 3px;
        left: 12px;
        height: 2px;
        border-radius: 999px;
        background: #6f2529;
    }
}

@media (max-width: 767px) {
    .account-settings-shell {
        width: min(100% - 20px, var(--account-main-max-width));
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .account-settings-shell .account-card,
    .account-settings-shell .account-membership__panel,
    .account-settings-shell .account-membership-status__panel {
        padding: var(--account-card-padding-mobile);
    }

    .account-home-compact__identity,
    .account-avatar-settings,
    .account-membership-settings .account-membership__plans {
        grid-template-columns: 1fr;
    }

    .account-home-compact__identity {
        justify-items: start;
    }

    .account-security-settings .account-detail__field {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }

    .account-profile-settings .account-detail__fields,
    .account-profile-settings .profile-form__fields {
        grid-template-columns: 1fr;
    }

    .account-profile-settings .account-detail__field {
        grid-template-columns: minmax(72px, 0.62fr) minmax(0, 1.38fr) auto;
    }

    .account-profile-settings .account-profile-editor__summary,
    .account-profile-settings .account-profile-editor__panel {
        padding-inline: var(--account-card-padding-mobile);
    }

    .account-profile-settings .profile-form__field--location,
    .account-profile-settings .profile-form__help,
    .account-profile-settings .profile-form__error,
    .account-profile-settings .profile-form__choices {
        grid-column: 1;
    }

    .account-profile-settings .profile-form__choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__grid {
        grid-template-columns: 1fr;
    }

    .account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__workspace {
        height: clamp(280px, 76vw, 360px);
    }

    .account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__controls {
        grid-column: 1;
    }

    .account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-native-grid,
    .account-albums-settings .account-albums__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-blocks-settings .account-blocks__item {
        grid-template-columns: 1fr;
    }

    .account-settings-shell button,
    .account-settings-shell a[role='button'],
    .account-home-compact__primary,
    .account-home-compact__logout button {
        min-height: 44px;
    }

    .notifications-page--visual-batch1 .notification-card {
        grid-template-columns: 8px 40px minmax(0, 1fr);
        padding: 12px;
    }

    .notifications-page--visual-batch1 .notification-card__actions {
        grid-column: 3;
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .account-profile-settings .account-detail__field {
        grid-template-columns: minmax(68px, 0.68fr) minmax(0, 1.32fr);
    }

    .account-profile-settings .account-detail__field > em {
        grid-column: 2;
        justify-self: start;
    }

    .account-profile-settings .account-profile-editor__summary {
        grid-template-columns: 1fr;
    }

    .account-profile-settings .profile-form__choices {
        grid-template-columns: 1fr;
    }

    .account-profile-settings .profile-form__submit,
    .account-profile-settings .account-profile-editor__cancel {
        width: 100%;
        justify-self: stretch;
    }

    .account-settings-shell .account-avatar-settings [data-component='account-avatar-cropper-classic'] .account-avatar-cropper__actions {
        grid-template-columns: 1fr;
    }

    .account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'].album-upload-form--native-grid {
        grid-template-columns: 1fr;
    }

    .account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-actions,
    .account-settings-shell .account-albums-settings [data-component='account-album-uploader-native'] .album-upload-form__status {
        grid-column: 1;
    }

    .account-membership-status-settings .account-membership-status__actions > a,
    .account-home-compact__primary,
    .account-home-compact__logout button {
        width: 100%;
    }
}

/* Public information documents and directory Footer */
.public-page-shell {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
}

.public-page-shell > main {
    flex: 1 0 auto;
}

.public-page-shell.error-page--visual .error-page__shell {
    min-height: 0;
}

.public-information {
    width: min(calc(100% - 40px), 820px);
    margin: 0 auto;
    padding: 56px 0 72px;
}

.public-information__article {
    color: var(--color-ink);
}

.public-information__header {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-line);
}

.public-information__eyebrow {
    margin: 0 0 10px;
    color: var(--color-accent-deep);
    font-size: 0.875rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-information__header h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.public-information__lead {
    max-width: 46rem;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.public-information__meta {
    margin: 16px 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.public-information__language {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 20px;
}

.public-information__language a,
.public-information__toc a,
.public-information__related a {
    color: var(--color-accent-deep);
    text-underline-offset: 3px;
}

.public-information__language a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.public-information__language a[aria-current='page'] {
    color: var(--color-ink);
    font-weight: 750;
    text-decoration: none;
}

.public-information__toc {
    margin: 32px 0 40px;
    padding-left: 20px;
    border-left: 3px solid var(--color-line);
}

.public-information__toc h2 {
    margin: 0 0 12px;
    font-size: 1.125rem;
    line-height: 1.45;
}

.public-information__toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
    margin: 0;
    padding-left: 20px;
}

.public-information__toc li {
    padding-left: 2px;
    color: var(--color-muted);
    line-height: 1.55;
}

.public-information__body > section {
    margin-top: 40px;
    scroll-margin-top: 88px;
}

.public-information__body h2,
.public-information__related h2 {
    margin: 0 0 14px;
    font-size: 1.375rem;
    line-height: 1.36;
}

.public-information__body h3 {
    margin: 28px 0 10px;
    font-size: 1.125rem;
    line-height: 1.45;
}

.public-information__body p,
.public-information__body li,
.public-information__body dd,
.public-information__body dt {
    font-size: 1rem;
    line-height: 1.75;
}

.public-information__body p {
    margin: 0;
}

.public-information__body p + p {
    margin-top: 14px;
}

.public-information__body a {
    color: var(--color-accent-deep);
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

.public-information__facts p {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
}

.public-information__contact-list {
    margin: 0;
}

.public-information__contact-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
}

.public-information__contact-list dt {
    color: var(--color-muted);
    font-weight: 700;
}

.public-information__contact-list dd {
    margin: 0;
}

.public-information__related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--color-line);
}

.public-information__related h2 {
    flex-basis: 100%;
}

.public-information__related a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.public-footer {
    width: 100%;
    flex-shrink: 0;
    border-top: 1px solid var(--color-line);
    background: var(--color-bg-soft);
    color: var(--color-ink);
}

.public-footer__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 40px;
    width: min(calc(100% - 40px), 1160px);
    margin: 0 auto;
    padding: 40px 0 36px;
}

.public-footer__group h2 {
    margin: 0 0 12px;
    color: var(--color-accent-deep);
    font-size: 0.9375rem;
    font-weight: 750;
    line-height: 1.45;
}

.public-footer__group p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.public-footer__group p + p {
    margin-top: 8px;
}

.public-footer__adult {
    color: var(--color-ink);
    font-weight: 700;
}

.public-footer__group ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-footer__link,
.public-footer__brand-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--color-accent-deep);
    font-size: 0.9375rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.public-footer__link:hover,
.public-footer__brand-link:hover {
    color: var(--color-accent);
}

.public-footer__link:focus-visible,
.public-footer__brand-link:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.public-footer__bottom {
    width: min(calc(100% - 40px), 1160px);
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid var(--color-line);
}

.public-footer__bottom p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .public-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .public-information {
        width: min(calc(100% - 32px), 820px);
        padding: 40px 0 56px;
    }

    .public-information__header h1 {
        font-size: 1.75rem;
        line-height: 1.2857;
    }

    .public-information__toc ol {
        grid-template-columns: 1fr;
    }

    .public-information__contact-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .public-footer__inner {
        grid-template-columns: 1fr;
        width: min(calc(100% - 32px), 1160px);
        padding: 32px 0;
    }

    .public-footer__bottom {
        width: min(calc(100% - 32px), 1160px);
    }
}

@media print {
    .public-information {
        width: 100%;
        max-width: 820px;
        padding: 0;
    }

    .public-information__language,
    .public-information__toc,
    .public-information__related,
    .public-footer {
        display: none;
    }
}

/* Admin public content editor: scoped CMS workspace layout and controls. */
.admin-shell .admin-public-content-editor__content {
    min-width: 0;
    width: 100%;
    max-width: 1280px;
}

.admin-shell .admin-public-content-editor__page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: 0 6px 18px rgba(77, 45, 55, 0.05);
}

.admin-shell .admin-public-content-editor__heading {
    min-width: 0;
}

.admin-shell .admin-public-content-editor__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.admin-shell .admin-public-content-editor__breadcrumbs a,
.admin-shell .admin-public-content-editor__side-link {
    color: var(--color-accent-deep);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.admin-shell .admin-public-content-editor__heading h1 {
    margin: 0;
    color: var(--color-accent-deep);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.25;
}

.admin-shell .admin-public-content-editor__heading > p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.admin-shell .admin-public-content-editor__header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.admin-shell .admin-public-content-editor__header-meta code,
.admin-shell .admin-public-content-editor__details code {
    overflow-wrap: anywhere;
    color: var(--color-ink);
}

.admin-shell .admin-public-content-editor__header-actions,
.admin-shell .admin-public-content-editor__form-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-shell .admin-public-content-editor__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
}

.admin-shell .admin-public-content-editor__primary,
.admin-shell .admin-public-content-editor__side-panel {
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: 0 6px 18px rgba(77, 45, 55, 0.05);
}

.admin-shell .admin-public-content-editor__primary {
    padding: 24px;
}

.admin-shell .admin-public-content-editor__section-heading,
.admin-shell .admin-public-content-editor__side-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-shell .admin-public-content-editor__section-heading {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-line);
}

.admin-shell .admin-public-content-editor__section-heading h2,
.admin-shell .admin-public-content-editor__side-heading h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.125rem;
    line-height: 1.4;
}

.admin-shell .admin-public-content-editor__section-heading p {
    margin: 5px 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.admin-shell .admin-public-content-editor .admin-public-content-editor__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 0;
}

.admin-shell .admin-public-content-editor__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.admin-shell .admin-public-content-editor__field label,
.admin-shell .admin-public-content-editor__editor-heading label {
    color: var(--color-ink);
    font-weight: 750;
}

.admin-shell .admin-public-content-editor__field input,
.admin-shell .admin-public-content-editor__field textarea,
.admin-shell .admin-public-content-editor__markdown > textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9c8cc;
    background: #fff;
    color: var(--color-ink);
}

.admin-shell .admin-public-content-editor__field input {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 650;
}

.admin-shell .admin-public-content-editor__field textarea {
    min-height: 104px;
    resize: vertical;
}

.admin-shell .admin-public-content-editor__field > p,
.admin-shell .admin-public-content-editor__help {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.admin-shell .admin-public-content-editor__markdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
}

.admin-shell .admin-public-content-editor__editor-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 8px;
}

.admin-shell .admin-public-content-editor__editor-heading span {
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.admin-shell .admin-public-content-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 9px;
    border: 1px solid #d9c8cc;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--color-bg-soft);
}

.admin-shell .admin-public-content-editor__toolbar button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--color-line);
    border-radius: 7px;
    background: var(--color-surface);
    color: var(--color-accent-deep);
    font-size: 0.8125rem;
    font-weight: 750;
    line-height: 1;
}

.admin-shell .admin-public-content-editor__toolbar button:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-soft);
}

.admin-shell .admin-public-content-editor__markdown > textarea {
    min-height: 560px;
    padding: 18px;
    border-radius: 0 0 10px 10px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9375rem;
    line-height: 1.7;
    resize: vertical;
    tab-size: 4;
}

.admin-shell .admin-public-content-editor__help {
    margin-top: 10px;
}

.admin-shell .admin-public-content-editor__form-actions {
    justify-content: flex-start;
    padding-top: 4px;
}

.admin-shell .admin-public-content-editor__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.admin-shell .admin-public-content-editor__button--primary {
    border-color: var(--color-accent-deep);
    background: var(--color-accent-deep);
    color: #fff;
}

.admin-shell .admin-public-content-editor__button--secondary {
    border-color: var(--color-line);
    background: var(--color-surface);
    color: var(--color-accent-deep);
}

.admin-shell .admin-public-content-editor__button--text {
    background: transparent;
    color: var(--color-muted);
}

.admin-shell .admin-public-content-editor__button--danger {
    border-color: #c99aa4;
    background: #fff8f8;
    color: #8a3348;
}

.admin-shell .admin-public-content-editor__button:hover {
    filter: brightness(0.97);
}

.admin-shell .admin-public-content-editor__button:focus-visible,
.admin-shell .admin-public-content-editor__toolbar button:focus-visible,
.admin-shell .admin-public-content-editor__breadcrumbs a:focus-visible,
.admin-shell .admin-public-content-editor__side-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.admin-shell .admin-public-content-editor__sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    align-content: start;
}

.admin-shell .admin-public-content-editor__side-panel {
    padding: 20px;
}

.admin-shell .admin-public-content-editor__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 18px 0;
}

.admin-shell .admin-public-content-editor__details > div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    row-gap: 4px;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-line);
}

.admin-shell .admin-public-content-editor__details > div:first-child {
    padding-top: 0;
}

.admin-shell .admin-public-content-editor__details dt {
    color: var(--color-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.admin-shell .admin-public-content-editor__details dd {
    min-width: 0;
    margin: 0;
    color: var(--color-ink);
    font-size: 0.9rem;
    overflow-wrap: normal;
    word-break: normal;
}

.admin-shell .admin-public-content-editor__details > div:nth-child(3) dd,
.admin-shell .admin-public-content-editor__details > div:nth-child(3) code {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.admin-shell .admin-public-content-editor__side-description {
    margin: 8px 0 16px;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.admin-shell .admin-public-content-editor .admin-public-content-editor__publishing-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
}

.admin-shell .admin-public-content-editor__publishing-actions form {
    display: block;
    margin: 0;
}

.admin-shell .admin-public-content-editor__publishing-actions .admin-public-content-editor__button {
    width: 100%;
}

@media (min-width: 1100px) {
    .admin-shell main.admin-public-content-editor:has(> .admin-nav--sidebar) {
        grid-template-columns: 286px minmax(0, 1fr);
        width: min(calc(100% - 32px), 1560px);
        max-width: 1560px;
    }

    .admin-shell .admin-public-content-editor__workspace {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
        align-items: start;
    }
}

@media (max-width: 760px) {
    .admin-shell .admin-public-content-editor__page-header {
        flex-direction: column;
        padding: 20px;
    }

    .admin-shell .admin-public-content-editor__header-actions,
    .admin-shell .admin-public-content-editor__form-actions {
        width: 100%;
    }

    .admin-shell .admin-public-content-editor__header-actions .admin-public-content-editor__button,
    .admin-shell .admin-public-content-editor__form-actions .admin-public-content-editor__button {
        flex: 1 1 140px;
    }

    .admin-shell .admin-public-content-editor__primary {
        padding: 18px;
    }

    .admin-shell .admin-public-content-editor__markdown > textarea {
        min-height: 520px;
        padding: 14px;
    }

    .admin-shell .admin-public-content-editor__side-panel {
        padding: 18px;
    }
}
