/* Member pages share the public site shell and theme spacing rules. */
.member-auth-page,
.member-page { min-height: 100dvh; background: var(--theme-color-surface); color: var(--theme-color-text); }
.auth-page { width: 100%; min-height: 100dvh; padding: 30px; background: var(--theme-color-surface); color: var(--theme-color-text); }
.member-page { width: 100%; padding: 0 0 clamp(40px, 6vw, 100px) 0; }
.member-page :focus-visible,
.auth-page :focus-visible { outline: 2px solid var(--theme-color-primary); outline-offset: 3px; }
.member-auth-page { overflow-x: hidden; }
.member-page { overflow-x: hidden; }
.member-auth-page .auth-shell { height: calc(100vh - 60px); min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); }
.auth-main { min-width: 0; min-height: 0; overflow-y: auto; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(24px, 4vw, 72px); }
.auth-theme-toggle { display: grid; flex: 0 0 auto; }
.auth-theme-toggle svg { width: 24px; height: 24px; }
.auth-main__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-logo { color: var(--theme-color-text); font: 700 1.7rem/1.1 Poppins, Inter, sans-serif; text-decoration: none; }
.auth-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; padding: 0; border: 0; background: transparent; color: var(--theme-color-text); cursor: pointer; }
.auth-form-region { width: min(100%, 520px); align-self: center; justify-self: center; padding-block: clamp(48px, 8vh, 96px); }
.auth-eyebrow,.member-page-header__eyebrow { margin: 0 0 14px; color: var(--theme-color-primary); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-form-region h1 { margin: 0; color: var(--theme-color-text); font-size: clamp(2.5rem, 5vw, var(--theme-font-size-h1)); line-height: 1.15; }
.auth-description { margin: 14px 0 30px; color: var(--theme-color-summary); font-size: var(--theme-font-size-text); line-height: 1.75; }
.auth-form { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 10px; min-width: 0; }
.auth-form label:not(.auth-checkbox) { display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin: 0; color: var(--theme-color-text); font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.auth-form :is(.required-badge, .optional-badge) { display: inline-flex; min-height: 1.65rem; align-items: center; padding: .2rem .6rem; border: 0; border-radius: var(--theme-radius-extra); font-size: .72em; font-weight: 500; line-height: 1; white-space: nowrap; }
.auth-form .required-badge { background: var(--theme-color-primary); color: var(--theme-color-9); }
.auth-form .optional-badge { border: 1px solid var(--theme-color-border); background: var(--theme-color-surface-muted); color: var(--theme-color-text); }
.auth-form :is(input[type="text"], input[type="email"], input[type="password"], textarea, select) { width: 100%; min-height: 55px; border: 1.5px solid var(--theme-color-border); border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); color: var(--theme-color-text); padding: .875rem 1rem; font: inherit; }
.auth-form :is(input[type="text"], input[type="email"], input[type="password"], textarea, select)::placeholder { color: var(--theme-color-summary); opacity: .78; }
.auth-form :is(input[type="text"], input[type="email"], input[type="password"], textarea, select):focus { border-color: var(--theme-color-primary); outline: 0; }
.member-password-field { position: relative; display: block; }
.member-password-field input { padding-right: 72px; }
.member-password-field button { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; transform: translateY(-50%); border: 0; background: transparent; color: var(--theme-color-primary); cursor: pointer; }
.member-password-field .password-icon { width: 24px; height: 24px; display: block; }
.member-password-field .password-icon--hide { display: none; }
.member-password-field button[aria-pressed="true"] .password-icon--show { display: none; }
.member-password-field button[aria-pressed="true"] .password-icon--hide { display: block; }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .9rem; }
.auth-form a,.auth-legal a { color: var(--theme-color-text); text-decoration: none; }
.auth-form a:hover,.auth-legal a:hover { color: var(--theme-color-primary); }
.auth-checkbox { display: inline-flex; align-items: center; gap: 10px; color: var(--theme-color-summary); cursor: pointer; }
.auth-checkbox input { appearance: none; display: grid; flex: 0 0 22px; width: 22px; height: 22px; min-width: 22px; min-height: 22px; max-width: 22px; max-height: 22px; margin: 0; place-content: center; border: 1.5px solid var(--theme-color-border); border-radius: 4px; background: var(--theme-color-surface-muted); cursor: pointer; }
.auth-checkbox input::before { content: ""; width: 10px; height: 6px; border: solid var(--theme-color-button-text); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .12s ease-in-out; }
.auth-checkbox input:checked { border-color: var(--theme-color-primary); background: var(--theme-color-primary); }
.auth-checkbox input:checked::before { transform: rotate(-45deg) scale(1); }
.auth-checkbox--consent { align-items: flex-start; line-height: 1.6; }
.auth-help { margin: -6px 0 2px; color: var(--theme-color-summary); font-size: .8rem; }
.auth-password-strength { min-height: 1.25em; margin-top: -4px; color: var(--theme-color-summary); font-size: .8rem; font-weight: 600; }
.auth-password-strength[data-strength="良好"] { color: var(--theme-color-primary); }
.auth-password-strength[data-strength="普通"] { color: var(--theme-color-summary); }
.auth-password-strength[data-strength="弱"] { color: var(--theme-color-primary-hover); }
.auth-form > .member-button { width: 100%; }
.member-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid transparent; border-radius: var(--theme-radius-medium); padding: .875rem 1.5rem; color: var(--theme-color-9); font: inherit; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s ease, background-color .25s ease, border-color .25s ease; }
.member-button--primary { background: var(--theme-color-primary); }
.member-button--primary:hover { background: var(--theme-color-primary-hover); transform: translateY(-2px); }
.member-button[aria-busy="true"] { pointer-events: none; opacity: .72; }
.member-button:disabled { cursor: not-allowed; opacity: .58; }
.ui-spinner { display: none; position: static !important; transform: none !important; margin: 0 !important; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: member-spin .7s linear infinite; }
.member-button[aria-busy="true"] .ui-spinner { display: inline-block; }
@keyframes member-spin { to { transform: rotate(360deg); } }
.auth-register-step.is-enter-forward { animation: member-step-forward .32s ease both; }
.auth-register-step.is-enter-backward { animation: member-step-backward .32s ease both; }
@keyframes member-step-forward { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes member-step-backward { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
.auth-form__footer { margin: 4px 0 0; color: var(--theme-color-summary); text-align: center; font-size: .9rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-top: 0; color: var(--theme-color-summary); }
.auth-divider::before,.auth-divider::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--theme-color-border); }
.auth-divider span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
.auth-line-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 0; border: 0; border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); color: var(--theme-color-text); font: inherit; font-weight: 500; cursor: not-allowed; opacity: .78; }
.auth-line-button__hint { margin-left: 8px; font-size: .75em; font-weight: 500; opacity: .75; }
.auth-legal { margin-top: auto; color: var(--theme-color-summary); font-size: .78rem; line-height: 1.7; }
.member-alert { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; border: 1px solid var(--theme-color-border); border-left: 3px solid var(--theme-color-primary); border-radius: var(--theme-radius-light); padding: 13px 15px; color: var(--theme-color-text); background: var(--theme-color-surface-muted); font-size: .9rem; }
.member-alert--error { border-left-color: var(--theme-color-primary); }
.member-alert__icon { display: inline-grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--theme-color-primary); color: var(--theme-color-9); font-size: .75rem; font-weight: 700; line-height: 1; }
.member-alert strong,.member-alert p { margin: 0; }
.member-alert p { margin-top: 4px; color: var(--theme-color-summary); line-height: 1.6; }
.auth-success { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--theme-color-border); border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); padding: 22px; }
.auth-success h2,.auth-success p { margin: 0; }
.auth-success p { color: var(--theme-color-summary); line-height: 1.75; }
.auth-resend-form { display: flex; flex-direction: column; gap: 12px; }
.auth-resend-form .member-button { width: 100%; }
.auth-showcase { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); color: var(--theme-color-text); padding: clamp(32px, 6vw, 72px); }
.auth-showcase .auth-theme-toggle--showcase { position: absolute; z-index: 2; top: 24px; right: 24px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--theme-color-border); border-radius: 50%; background: var(--theme-color-surface); color: var(--theme-color-text); }
.auth-showcase::before,.auth-showcase::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--theme-color-button-text) 10%, transparent); }
.auth-showcase::before { width: 42vw; height: 42vw; right: -14vw; top: -14vw; }
.auth-showcase::after { width: 24vw; height: 24vw; left: -10vw; bottom: -8vw; }
.auth-showcase-copy { position: relative; z-index: 1; width: min(100%, 680px); max-width: 680px; margin: auto 0 24px; text-align: left; }
.auth-showcase__eyebrow { opacity: .72; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.auth-showcase h2 { margin: 14px 0; color: inherit; font-size: clamp(2rem, 3vw, 3.5rem); line-height: 1.12; }
.auth-showcase p { margin: 0; color: inherit; opacity: .82; font-size: var(--theme-font-size-text); line-height: 1.75; }
.auth-testimonials { position: relative; z-index: 1; width: 100%; margin-top: 0; overflow: visible; opacity: 1; }
.auth-testimonials__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.auth-testimonial-card { width: auto; min-width: 0; background: var(--theme-color-text-muted); border-radius: var(--theme-radius-medium); }
.auth-testimonial-card .testimonial-card__front { padding: 1.15rem; gap: .8rem; }
.auth-testimonial-card .testimonial-card__content { font-size: .9rem; line-height: 1.55; }
.auth-testimonial-card .testimonial-card__client img,
.auth-testimonial-card .testimonial-card__avatar-placeholder { width: 2.75rem; height: 2.75rem; }
.auth-testimonials--empty { color: var(--theme-color-summary); }
@keyframes member-marquee { to { transform: translateX(-50%); } }
html:has(.member-page), body:has(.member-page), main.member-page#main-content { overflow: visible !important; }
.member-page .member-shell { --member-sticky-offset: 30px; width: 100%; margin: 0; padding-inline: var(--theme-page-padding); display: grid; grid-template-columns: minmax(260px, 3fr) minmax(0, 9fr); align-items: start; gap: clamp(30px, 4vw, 72px); }
.member-sidebar { position: sticky; top: var(--member-sticky-offset, 30px); min-width: 0; }
.member-sidebar__identity { display: grid; grid-template-rows: auto auto; gap: 0; overflow: hidden; border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); }
.member-sidebar__profile-media { width: 100%; aspect-ratio: 16 / 9; }
.member-sidebar__profile-content { padding: 18px; }
.member-sidebar__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.member-sidebar__identity h2,.member-sidebar__identity p { margin: 0; }
.member-sidebar__profile-content strong { display: block; color: var(--theme-color-text); }
.member-sidebar__profile-content > span { display: block; margin-top: 5px; color: var(--theme-color-summary); font-size: var(--theme-font-size-post-meta); line-height: var(--theme-line-height-post-meta); overflow-wrap: anywhere; }
.member-sidebar__identity h2 { color: var(--theme-color-text); font-size: 1.1rem; line-height: 1.35; }
.member-sidebar__identity p { color: var(--theme-color-summary); font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.member-status-badge { display: none; }
.member-sidebar__eyebrow { margin-bottom: 4px !important; color: var(--theme-color-primary) !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.member-sidebar__nav { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; }
.member-sidebar__link { border-radius: var(--theme-radius-light); padding: 13px 14px; color: var(--theme-color-text); font-weight: 600; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.member-sidebar__link:hover,.member-sidebar__link.is-active { color: var(--theme-color-9); background: var(--theme-color-primary); }
.member-sidebar__link--logout { margin-top: 14px; color: var(--theme-color-summary); font-weight: 500; }
.member-main { min-width: 0; display: grid; align-content: start; gap: clamp(30px, 4vw, 56px); }
.member-page-header { display: flex; flex-direction: column; gap: 18px; padding-top: clamp(40px, 6vw, 60px); padding-bottom: 30px; padding-inline: var(--theme-page-padding); }
.member-page-header .breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--theme-color-summary); font-size: var(--theme-font-size-archive-breadcrumb); line-height: var(--theme-line-height-archive-breadcrumb); }
.member-page-header .breadcrumbs a { color: inherit; text-decoration: none; }
.member-page-header h1 { margin: 0; color: var(--theme-color-text); font-size: var(--theme-font-size-h1); line-height: 1.15; }
.member-page-header__description { max-width: 760px; margin: 0; color: var(--theme-color-summary); font-size: var(--theme-font-size-text); line-height: 1.75; }
.member-page-header__meta { margin: 0; color: var(--theme-color-primary); font-size: var(--theme-font-size-post-meta); font-weight: 600; line-height: 1.5; }
.member-welcome-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--theme-color-border); border-radius: var(--theme-radius-heavy); background: var(--theme-color-surface-muted); }
.member-welcome-card h2,.member-welcome-card p { margin: 0; }
.member-welcome-card h2 { color: var(--theme-color-text); font-size: var(--theme-font-size-h3); line-height: 1.2; }
.member-welcome-card p:not(.member-dashboard-card__eyebrow) { margin-top: 12px; color: var(--theme-color-summary); font-size: var(--theme-font-size-text); line-height: 1.75; }
.member-welcome-card .member-button { margin-top: 22px; }
.member-welcome-card__avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.member-dashboard-card__eyebrow { margin: 0 0 12px; color: var(--theme-color-primary); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.member-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.member-stat-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 24px; border: 1px solid var(--theme-color-border); border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); }
.member-stat-card__label { color: var(--theme-color-summary); font-size: var(--theme-font-size-post-meta); font-weight: 600; }
.member-stat-card__value { color: var(--theme-color-text); font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.member-stat-card__meta { color: var(--theme-color-summary); font-size: .85rem; }
.member-dashboard-section { margin-top: 0; }
.member-dashboard-section__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.member-dashboard-section__heading h2 { margin: 0; color: var(--theme-color-text); font-size: var(--theme-font-size-h4); }
.member-dashboard-section__heading a { color: var(--theme-color-primary); font-weight: 600; text-decoration: none; }
.member-bookmark-list--recent { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.member-dashboard-card { position: relative; min-height: 190px; border: 1px solid var(--theme-color-border); border-radius: var(--theme-radius-medium); padding: 24px; background: var(--theme-color-surface-muted); color: var(--theme-color-text); text-decoration: none; }
.member-dashboard-card h2,.member-dashboard-card p { margin: 0; }
.member-dashboard-card h2 { font-size: 1.45rem; }
.member-dashboard-card p:not(.member-dashboard-card__eyebrow) { margin-top: 10px; color: var(--theme-color-summary); line-height: 1.75; }
.member-dashboard-card__eyebrow { margin-bottom: 22px !important; color: var(--theme-color-primary); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.member-dashboard-card--link { transition: transform .25s ease, border-color .25s ease; }
.member-dashboard-card--link:hover { transform: translateY(-4px); border-color: var(--theme-color-primary); }
.member-dashboard-card--link > span { position: absolute; right: 24px; bottom: 20px; color: var(--theme-color-primary); font-size: 1.5rem; }
.member-dashboard-card--help { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.member-dashboard-card--help .member-button { align-self: flex-start; }
.member-bookmark-section__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding-block: 24px; border-bottom: 1px solid var(--theme-color-border); }
.member-bookmark-section__header h2, .member-bookmark-section__header p { margin: 0; }
.member-bookmark-section__header h2 { font-size: var(--theme-font-size-h3); }
.member-bookmark-section__count { color: var(--theme-color-summary); font-size: .52em; font-weight: 600; vertical-align: super; }
.member-slider-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.member-slider-controls button { width: 44px; height: 44px; border: 1px solid var(--theme-color-border); border-radius: 50%; background: var(--theme-color-surface-muted); color: var(--theme-color-text); cursor: pointer; font: inherit; }
.member-slider-controls button:hover { border-color: var(--theme-color-primary); color: var(--theme-color-primary); }
.member-bookmark-slider { overflow: hidden; }
.member-bookmark-list { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.member-bookmark-list::-webkit-scrollbar { display: none; }
.member-bookmark-list--recent { display: grid; overflow: visible; scroll-snap-type: none; }
.member-bookmark-card { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; }
.member-bookmark-list--recent .member-bookmark-card { flex-basis: auto; }
.member-bookmark-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--theme-color-surface-muted); }
.member-bookmark-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.member-bookmark-card__media > a { display: block; width: 100%; height: 100%; }
.member-bookmark-card__media .resource-card__mask { z-index: 2; }
.member-bookmark-card .resource-card__mask { display: flex; align-items: center; gap: 8px; padding: 10px; opacity: 1 !important; transform: none !important; }
.member-bookmark-card .resource-card__category,
.member-bookmark-card .member-bookmark-remove-badge { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 104px; min-width: 104px; height: 40px; min-height: 40px; margin: 0; padding: 0 8px; text-align: center; }
.member-bookmark-remove-badge { border: 0; border-radius: var(--theme-radius-extra); background: #ff0000; color: #fff; cursor: pointer; font: inherit; font-size: .68rem; font-weight: 700; }
.member-bookmark-remove-badge:hover { background: #c00; }
.member-bookmark-card__badge { position: absolute; top: 14px; right: 14px; border-radius: var(--theme-radius-extra); padding: 6px 11px; background: var(--theme-color-primary); color: var(--theme-color-button-text); font-size: .7rem; font-weight: 700; }
.member-bookmark-card__body { display: grid; align-content: start; gap: 10px; padding-top: 16px; }
.member-bookmark-card__body strong { font-size: var(--theme-font-size-card-title); line-height: var(--theme-line-height-card-title); }
.member-bookmark-card__body strong a { color: inherit; text-decoration: none; }
.member-bookmark-card__body > span:not(.member-bookmark-card__meta) { color: var(--theme-color-summary); font-size: var(--theme-font-size-text); line-height: var(--theme-line-height-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.member-bookmark-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--theme-color-summary); font-size: .78rem; }
.member-bookmark-card__remove { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--theme-color-summary); cursor: pointer; font: inherit; }
.member-bookmark-card__remove:hover { color: var(--theme-color-primary); }
.member-empty { grid-column: 1 / -1; }
.member-empty__icon { color: var(--theme-color-primary); font-size: 1.6rem; }
.member-empty h2,.member-empty p { margin: 0; }
.member-empty p { color: var(--theme-color-summary); line-height: 1.75; }
.member-empty .member-button { margin-top: 4px; }
.member-bookmark-section__empty { min-height: 120px; color: var(--theme-color-summary); }
.member-page-header__eyebrow:empty { display: none; }
.member-bookmark-section__empty { width: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 48px 32px; box-sizing: border-box; border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); }
.member-bookmark-section__empty > span { color: var(--theme-color-primary); font-size: 2rem; line-height: 1; }
.member-bookmark-section__empty strong { color: var(--theme-color-text); font-size: var(--theme-font-size-h4); }
.member-bookmark-section__empty p { margin: 0; color: var(--theme-color-summary); }
.member-bookmark-section__empty .member-button { margin-top: 4px; }
.home-posts-slider__btn:disabled { opacity: .45; filter: grayscale(1); cursor: not-allowed; }
.auth-main { padding: 20px; }
.auth-form-region h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.auth-eyebrow { color: var(--theme-color-text); }
.auth-form-region > .auth-eyebrow { display: none; }
.auth-showcase { padding: 20px; background: var(--theme-color-surface-muted); }
.auth-showcase-inner { width: 100%; height: 100%; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 56px); box-sizing: border-box; border-radius: var(--theme-radius-medium); background: var(--theme-color-surface-muted); }
.auth-showcase .auth-testimonial-card .testimonial-card__front { background: var(--theme-color-surface-muted); }
.auth-showcase .auth-testimonial-card .testimonial-card__inner { transform: none !important; }
.auth-showcase .auth-testimonial-card .testimonial-card__back { display: none !important; }
.auth-showcase .auth-testimonial-card .testimonial-card__client img,
.auth-showcase .auth-testimonial-card .testimonial-card__avatar-placeholder { width: 2.35rem; height: 2.35rem; }
.member-password-field button { color: var(--theme-color-text); }
.auth-main,
.auth-showcase { padding: clamp(24px, 1.5vw, 64px); }
.auth-showcase-inner { padding: 0; }
.auth-showcase-copy { padding: clamp(24px, 1.5vw, 64px) clamp(24px, 1.5vw, 64px) 0; }
.auth-testimonials { padding-bottom: clamp(24px, 1.5vw, 64px); }
.auth-form :is(input[type="text"], input[type="email"], input[type="password"], textarea, select):focus { border-color: var(--theme-color-secondary-hover); }
.member-button--primary:hover { background: var(--theme-color-secondary-hover); color: var(--theme-color-button-hover-text); }
.member-button--secondary:hover { color: var(--theme-color-button-hover-text); }
.member-auth-page .auth-shell { padding: 0; box-sizing: border-box; }
.auth-main, .auth-showcase { padding: 1.5vw; }
.auth-showcase-copy { padding: 50px 40px 0; }
.auth-showcase h2 { line-height: 1.22; }
.auth-form .required-badge, .auth-form .optional-badge { background: var(--theme-color-secondary-hover); color: var(--theme-color-button-hover-text); }
.auth-shell a:not(.auth-logo) { color: var(--theme-color-text); text-decoration-line: underline; text-decoration-color: currentColor; }
.auth-shell a:not(.auth-logo):hover, .auth-shell a:not(.auth-logo):focus-visible { color: var(--theme-color-text); }
.member-button--primary:hover, .member-button--secondary:hover { transform: none; }
.auth-testimonial-card .testimonial-card__info { gap: 0; }
@media (prefers-color-scheme: dark) { .auth-showcase .auth-testimonial-card .testimonial-card__front { background: var(--theme-color-surface-muted); } }
:root[data-theme="dark"] .auth-showcase .auth-testimonial-card .testimonial-card__front { background: var(--theme-color-surface-muted); }
@media (min-width: 1025px) { .member-auth-page .auth-main { overflow: hidden; } }
@media (min-width: 1025px) { body.member-auth-page { overflow: hidden; } }
@media (max-width: 1024px) { .member-auth-page .auth-shell { display: block; } .member-auth-page .auth-showcase { display: none; } .member-auth-page .auth-main { min-height: 100dvh; overflow: visible; } }
@media (max-width: 767px) { .member-auth-page .auth-form-region { width: 100%; padding-block: 64px; } .member-auth-page .auth-form-region h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); } .member-auth-page .auth-description { font-size: 1.05rem; } .member-auth-page .auth-form { gap: 24px; } }
@media (max-width: 1024px) {
	.member-auth-page .auth-shell { padding: 0; }
	.auth-main, .auth-showcase { padding: 30px 5vw; }
}
@media (max-width: 767px) {
	.member-auth-page .auth-shell { padding: 0; }
	.auth-main, .auth-showcase { padding: 20px 6vw; }
}
.member-bookmark-section__count { margin-left: -.18em; }
.member-bookmark-section__header { align-items: center; }
.member-bookmark-section__empty { align-items: center; gap: 10px; text-align: center; }
.member-bookmark-card .resource-card__category,
.member-bookmark-card .member-bookmark-remove-badge { width: 92px; min-width: 92px; }
.member-bookmark-section .home-posts-slider__arrows { display: flex; }
.member-page .member-shell { --member-sticky-offset: calc(var(--site-header-sticky-height, 120px) + 30px); scroll-margin-top: 120px; }
.member-sidebar { top: var(--member-sticky-offset, 150px); }
.member-page-header { margin-bottom: 0; padding-bottom: 30px; }
.member-main { gap: 30px; }
.auth-testimonials { width: 100%; align-self: stretch; }
.auth-line-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; }
.auth-line-button svg { width: 24px; height: 24px; flex: 0 0 24px; }
.auth-line-button__hint { display: none; }
.auth-form > .member-button { min-height: 64px; }
@media (max-width: 1024px) {
	.member-page .member-shell { grid-template-columns: 1fr; }
	.member-sidebar { position: static; }
	.member-sidebar__nav { flex-direction: row; overflow-x: auto; }
}
@media (max-width: 900px) {
	.auth-page { min-height: 100dvh; padding: 20px 6vw; }
	.member-auth-page .auth-shell { display: block; }
	.member-auth-page .auth-shell { height: auto; min-height: calc(100dvh - 40px); }
	.auth-showcase { display: none; }
	.auth-main { min-height: calc(100dvh - 40px); padding: 24px var(--theme-page-padding); }
	.auth-form-region { margin: auto 0; padding-block: 40px; }
	.member-page .member-shell { width: auto; padding-block: 0; display: block; }
	.member-sidebar { position: static; margin-bottom: 30px; }
	.member-sidebar__identity { padding-bottom: 0; }
	.member-sidebar__avatar { width: 48px; height: 48px; }
	.member-sidebar__nav { flex-direction: row; overflow-x: auto; padding: 0; gap: 8px; }
	.member-sidebar__link { flex: 0 0 auto; white-space: nowrap; }
	.member-sidebar__link--logout { margin-top: 0; }
	.member-dashboard-grid,.member-bookmark-list { grid-template-columns: 1fr; }
	.member-bookmark-card { flex-basis: min(82vw, 360px); }
	.member-welcome-card { grid-template-columns: 1fr; }
	.member-welcome-card__avatar { width: 88px; height: 88px; }
	.member-bookmark-list--recent { grid-template-columns: 1fr; }
	.member-page-header h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
}

/* Explicit final overrides */
.member-auth-page .auth-shell { padding: 0 !important; }
.member-auth-page .auth-main, .member-auth-page .auth-showcase { padding: 1.5vw !important; }
.member-bookmark-section__empty { flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.member-bookmark-list:has(.member-bookmark-section__empty) { display: block; overflow: visible; }
.member-bookmark-list:has(.member-bookmark-section__empty) .member-bookmark-section__empty { width: 100%; }
.member-bookmark-section .home-posts-slider__btn:disabled { opacity: .45; }
.member-bookmark-section .home-posts-slider__arrows { visibility: visible !important; opacity: 1 !important; }
.auth-showcase .auth-testimonial-card .testimonial-card__front { background: var(--theme-color-surface-muted); color: var(--theme-color-text); }
.member-page-header { display: flex !important; visibility: visible !important; }
@media (max-width: 1024px) {
	.member-auth-page .auth-main, .member-auth-page .auth-showcase { padding: 30px 5vw !important; }
	.member-bookmark-section__header .home-posts-slider__arrows { display: flex !important; visibility: visible !important; opacity: 1 !important; }
	.member-bookmark-section__header .home-posts-slider__btn { display: grid !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
	.member-bookmark-card { flex: 0 0 100%; width: 100%; max-width: 100%; }
}
@media (max-width: 767px) {
	.member-auth-page .auth-main, .member-auth-page .auth-showcase { padding: 20px 6vw !important; }
	.member-bookmark-section__header { flex-wrap: wrap; align-items: center; }
	.member-bookmark-section__header > div:first-child { flex: 1 1 auto; min-width: 0; }
	.member-bookmark-section__header .home-posts-slider__arrows { display: flex; flex: 0 0 auto; }
	.member-bookmark-section .home-posts-slider__btn:disabled { opacity: 1; filter: none; pointer-events: auto; }
	.member-bookmark-list:has(.member-bookmark-section__empty) { display: block; overflow: visible; }
	.member-bookmark-section__header .home-posts-slider__arrows { display: flex !important; visibility: visible !important; opacity: 1 !important; }
	.member-bookmark-section__header .home-posts-slider__btn { display: grid !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
	.member-bookmark-card { flex: 0 0 100%; width: 100%; max-width: 100%; }
}
@media (max-width: 767px) {
	.auth-page { padding: 20px 6vw; }
	.member-status-badge { margin-left: auto; }
	.member-stats-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.auth-testimonials__track,.member-button,.member-dashboard-card--link { animation: none; transition: none; }
}

/* Final responsive overrides: keep shell padding explicit and contain empty sliders. */
.member-auth-page .auth-shell { padding: 0 !important; }
.member-auth-page .auth-main,
.member-auth-page .auth-showcase { padding: 1.5vw !important; }
.member-bookmark-section__empty { flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 1024px) {
	.member-auth-page .auth-main,
	.member-auth-page .auth-showcase { padding: 30px 5vw !important; }
}
@media (max-width: 767px) {
	.member-auth-page .auth-main,
	.member-auth-page .auth-showcase { padding: 20px 6vw !important; }
	.member-bookmark-section__header { flex-wrap: wrap; align-items: center; }
	.member-bookmark-section__header > div:first-child { flex: 1 1 auto; min-width: 0; }
	.member-bookmark-section__header .home-posts-slider__arrows { flex: 0 0 auto; }
	.member-bookmark-section__empty { overflow: hidden; }
}

/* Registration flow and the full-height two-pane auth layout. */
.auth-page { min-height: 100dvh; padding: 0; }
.member-auth-page .auth-shell { height: 100dvh; min-height: 100dvh; gap: 0; }
.auth-main { padding: clamp(24px, 4vw, 64px); }
.auth-showcase { border-radius: 0; background: transparent; padding: clamp(24px, 6vw, 64px); }
.auth-showcase::before,
.auth-showcase::after { display: none; }
.auth-register-steps { display: flex; gap: 8px; margin: 0 0 26px; }
.auth-register-steps span { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--theme-color-surface-muted); transition: background-color .3s ease; }
.auth-register-steps span.is-active { background: var(--theme-color-primary); }
.auth-register-step[hidden] { display: none !important; }
.auth-register-step { display: grid; gap: 20px; }
.auth-register-step__actions { display: flex; gap: 12px; }
.auth-register-step__actions .member-button { flex: 1 1 0; }
.member-button--secondary { border-color: var(--theme-color-border); background: var(--theme-color-surface-muted); color: var(--theme-color-text); }
.member-button--secondary:hover { border-color: var(--theme-color-primary); background: var(--theme-color-surface-muted); color: var(--theme-color-text); transform: translateY(-2px); }
.auth-showcase-copy { margin: 0 0 28px; }
.auth-testimonials { width: 100%; overflow: hidden; }
.auth-testimonials__row { width: 100%; overflow: hidden; margin-top: 16px; }
.auth-testimonials__track { display: flex; width: max-content; gap: 16px; animation: auth-marquee-left 34s linear infinite; }
.auth-testimonials__row--reverse .auth-testimonials__track { animation-name: auth-marquee-right; transform: translateX(-50%); }
.auth-testimonial-card { flex: 0 0 min(320px, 34vw); }
@keyframes auth-marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes auth-marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 900px) {
	.auth-page { padding: 0; }
	.member-auth-page .auth-shell { min-height: 100dvh; }
	.auth-main { min-height: 100dvh; padding: 24px var(--theme-page-padding); }
	.auth-register-step__actions { flex-direction: column-reverse; }
}
