:root {
  color-scheme: light;
  --ink: #50423b;
  --muted: #7d6c63;
  --paper: #f7f3ee;
  --surface: #fffdf9;
  --line: #e8dfd6;
  --brand: #7d2b3e;
  --heading: #6e2436;
  --copper: #a27766;
  --peach: #e6bfab;
  --sans: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body.cwam-member-login-page { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #b54060; outline-offset: 5px; }
svg { display: block; width: 24px; height: 24px; }
p, h1, h2, h3, h4 { margin: 0; }
.portal-container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.portal-skip { position: fixed; left: 16px; top: -80px; padding: 12px 20px; background: var(--surface); color: var(--ink); z-index: 5; }
.portal-skip:focus { top: 12px; }

.portal-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-brand { display: flex; align-items: center; gap: 13px; }
.portal-brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--brand); color: #fff7ee; font-family: var(--serif); font-size: 27px; border-radius: 4px; }
.portal-brand strong { font-family: var(--serif); font-size: 22px; font-weight: 650; letter-spacing: 2px; display: block; color: var(--heading); }
.portal-brand small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 1px; margin-top: 4px; }
.portal-header nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.portal-nav-login { border: 1px solid #d8c6bb; border-radius: 4px; padding: 12px 18px; color: var(--heading); }
.portal-nav-login span { margin-left: 14px; }
.portal-header nav a:hover { color: var(--brand); background: #f7ede6; }

.portal-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(345px,1fr); border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 12px 45px -30px #3a261138; border: 1px solid var(--line); }
.portal-story { position: relative; overflow: hidden; background: var(--brand); color: #fff7ee; padding: 49px 44px 35px; isolation: isolate; }
.portal-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #eed4ca; letter-spacing: 2px; }
.portal-eyebrow > span { width: 5px; height: 5px; transform: rotate(45deg); background: var(--peach); }
.portal-story h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.65; letter-spacing: 0; margin-top: 26px; }
.portal-story h1 em { font-style: normal; color: var(--peach); }
.portal-description { font-size: 14px; line-height: 1.95; color: #eed4ca; margin-top: 21px; }
.portal-story-link { display: inline-flex; align-items: center; gap: 30px; font-size: 13px; border-bottom: 1px solid #bd897c; padding-bottom: 8px; margin-top: 23px; color: #fff7ee; }
.portal-story-link:hover { color: var(--peach); }
.portal-lenses { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ac6b76; margin-top: 33px; padding-top: 16px; gap: 2px 24px; position: relative; z-index: 1; }
.portal-lenses a { display: flex; align-items: center; min-width: 0; min-height: 46px; gap: 10px; }
.portal-lenses a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.portal-lenses a:focus-visible { outline-color: var(--peach); outline-offset: 0; }
.portal-lenses a:hover strong { color: var(--peach); }
.portal-lenses span { color: var(--peach); font: italic 11px Georgia, serif; }
.portal-lenses strong { font-size: 13px; font-weight: 500; line-height: 1.7; }
.portal-lenses .portal-lens-arrow { margin-left: auto; font: 13px var(--sans); }
.portal-story-watermark { position: absolute; bottom: -28px; right: -9px; font-size: 134px; font-weight: 750; letter-spacing: -7px; color: #fff7ee05; z-index: -1; user-select: none; }

.cwam-login-card { padding: 43px 37px 34px; align-self: center; scroll-margin-top: 20px; }
.portal-login-top { display: flex; align-items: center; gap: 11px; font-size: 10px; letter-spacing: 1.8px; color: var(--brand); margin-bottom: 27px; }
.portal-login-lock { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #e6d6cd; border-radius: 4px; background: #f7ede6; }
.portal-login-lock svg { width: 20px; height: 20px; }
.cwam-login-card h2 { font-size: 25px; line-height: 1.5; font-weight: 650; letter-spacing: -.5px; color: var(--heading); }
.cwam-login-copy { font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 12px; }
.portal-member-onboarding { display: grid; grid-template-columns: 148px minmax(0,1fr); align-items: center; gap: 15px; padding: 14px; margin-top: 20px; background: #f7ede6; border: 1px solid #e6d6cd; border-radius: 4px; }
.portal-support-qr { display: block; width: 148px; height: 148px; line-height: 0; }
.portal-support-qr img { display: block; width: 100%; height: auto; border-radius: 2px; }
.portal-member-onboarding strong { display: block; color: var(--heading); font-size: 12px; line-height: 1.7; font-weight: 650; }
.portal-member-onboarding p { margin-top: 7px; font-size: 12px; line-height: 1.8; color: var(--ink); }
.portal-member-onboarding small { display: block; margin-top: 9px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.cwam-login-form { display: flex; flex-direction: column; margin-top: 28px; gap: 10px; }
.cwam-login-form label { font-size: 12px; font-weight: 600; line-height: 1.6; }
.cwam-login-form input[type=tel], .cwam-login-form input[type=password], .cwam-login-form input[type=text] { display: block; width: 100%; min-height: 50px; padding: 12px 15px; background: #fffdfa; color: var(--ink); border: 1px solid #d8c6bb; border-radius: 4px; outline: none; font-family: var(--sans); font-size: 16px; line-height: 1.4; transition: border-color .2s,box-shadow .2s; }
.cwam-login-form input::placeholder { color: #907d73; font-size: 13px; }
.cwam-login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #7d2b3e15; }
.portal-input-help { font-size: 11px; color: var(--muted); line-height: 1.6; }
.cwam-login-form > button[type=submit] { display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 50px; margin-top: 9px; padding: 12px 15px; border: 0; border-radius: 4px; background: var(--brand); color: #fff7ee; font-size: 14px; font-weight: 550; cursor: pointer; transition: background .18s,transform .18s; }
.cwam-login-form > button[type=submit]:hover { background: #6e2436; transform: translateY(-1px); }
.cwam-login-form > button[type=submit]:active { transform: translateY(0); }
.cwam-login-form > .cwam-password-reset { min-height: 40px; margin-top: 0; padding: 6px 10px; background: transparent; box-shadow: none; color: var(--brand); font-size: 12px; font-weight: 600; }
.cwam-login-form > .cwam-password-reset:hover { background: #7d2b3e0a; box-shadow: none; transform: none; }
.cwam-login-form > .cwam-password-reset:active { transform: none; }
.cwam-password-wrap { position: relative; }
.cwam-password-wrap input { padding-right: 64px!important; }
.cwam-password-toggle { position: absolute; right: 5px; top: 4px; min-width: 48px; min-height: 42px; padding: 8px; border: 0; background: transparent; color: var(--brand); font-size: 12px; cursor: pointer; }
.cwam-login-back { font-size: 12px; color: var(--brand); text-align: center; min-height: 40px; display: grid; place-items: center; }
.cwam-login-alert { padding: 12px 14px; font-size: 12px; line-height: 1.7; color: #923b26; background: #fff3ee; border: 1px solid #efd8cd; border-radius: 4px; margin-top: 19px; overflow-wrap: anywhere; }
.cwam-manual-login { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.cwam-manual-login summary { cursor: pointer; color: var(--brand); font-size: 12px; font-weight: 600; line-height: 1.7; }
.cwam-manual-login[open] summary { margin-bottom: 2px; }
.cwam-manual-login-form { margin-top: 13px; }
.portal-login-support { display: flex; flex-direction: column; gap: 7px; margin-top: 27px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.portal-login-support a { color: var(--brand); font-weight: 600; width: fit-content; min-height: 30px; display: flex; align-items: center; gap: 8px; }
.portal-login-note { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 12px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.portal-login-note span { color: var(--brand); margin-right: 6px; }

.portal-programs { padding-block: 68px 52px; scroll-margin-top: 26px; }
.portal-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.portal-section-kicker { color: #8b5b50; font-size: 10px; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 13px; }
.portal-section-heading h2, .portal-reading h2, .portal-help h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.55; letter-spacing: 1px; }
.portal-section-heading > p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.portal-group { margin-top: 36px; scroll-margin-top: 28px; }
.portal-group-heading { display: flex; align-items: center; gap: 17px; }
.portal-group-heading h3 { display: flex; align-items: center; gap: 12px; color: var(--heading); font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: .3px; }
.portal-group-heading h3 span { font: italic 14px Georgia,serif; color: #b18171; }
.portal-group-heading i { flex: 1; height: 1px; background: #e9ddd5; }
.portal-group-copy { margin: 7px 0 20px 29px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.portal-program-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.portal-program { display: flex; flex-direction: column; padding: 24px 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s,box-shadow .2s; }
.portal-program:last-child:nth-child(odd) { grid-column: 1 / -1; }
.portal-program:hover { border-color: #c6a394; box-shadow: 0 3px 12px #3a261107; }
.portal-program-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; gap: 16px; }
.portal-program-top > span:last-child { font-size: 10px; color: #876e61; letter-spacing: .5px; }
.portal-program-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: #f7ede6; color: #a27766; }
.portal-program:nth-child(even) .portal-program-icon { color: #7d2b3e; background: #f4e9e5; }
.portal-program h4 { font-size: 18px; line-height: 1.6; font-weight: 600; letter-spacing: .1px; }
.portal-program > p { font-size: 13px; color: var(--muted); line-height: 1.95; margin-top: 10px; flex: 1; }
.portal-program-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.portal-program-tags span { font-size: 10px; line-height: 1.5; color: #8b6555; border-top: 1px solid #e9ddd5; padding-top: 7px; padding-right: 12px; }
.portal-course-note { margin-top: 16px; padding: 18px 27px; color: var(--muted); font-size: 12px; line-height: 1.8; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }

.portal-reading { background: #eee2d9; border-radius: 4px; padding: 39px 42px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 55px; margin-bottom: 62px; }
.portal-reading > div > a { display: inline-flex; gap: 25px; font-size: 12px; color: var(--brand); border-bottom: 1px solid #c2a494; padding-bottom: 8px; margin-top: 26px; }
.portal-reading ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 21px; }
.portal-reading li { display: flex; gap: 20px; align-items: start; }
.portal-reading li > span { font: italic 12px Georgia,serif; color: #986d59; padding-top: 5px; }
.portal-reading h3 { font-size: 15px; font-weight: 600; color: var(--heading); }
.portal-reading li p { font-size: 12px; line-height: 1.9; color: #756056; margin-top: 6px; }
.portal-help { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; margin-bottom: 62px; scroll-margin-top: 25px; }
.portal-help-list details { border-top: 1px solid #dfd1c6; }
.portal-help-list details:last-child { border-bottom: 1px solid #dfd1c6; }
.portal-help-list summary { cursor: pointer; list-style: none; min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; font-weight: 550; line-height: 1.65; padding-block: 18px; }
.portal-help-list summary::-webkit-details-marker { display: none; }
.portal-help-list summary span { font-size: 19px; color: var(--brand); font-weight: 400; flex-shrink: 0; }
.portal-help-list details[open] summary span { transform: rotate(45deg); }
.portal-help-list details p { font-size: 12px; line-height: 1.95; color: var(--muted); padding-bottom: 22px; }
.portal-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 25px 35px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.portal-footer > div { display: flex; gap: 20px; align-items: center; }
.portal-footer strong { font: 600 15px var(--serif); color: var(--heading); letter-spacing: 1px; }

@media (min-width:1500px) {
  .portal-header { min-height: 122px; }
  .portal-story { padding: 54px 47px 39px; }
  .portal-story h1 { font-size: 42px; }
  .cwam-login-card { padding-inline: 40px; }
}
@media (max-width:1000px) {
  .portal-container { width: calc(100% - 48px); }
  .portal-header { min-height: 90px; }
  .portal-hero { grid-template-columns: minmax(0,1.2fr) minmax(305px,1fr); }
  .portal-story { padding: 34px 28px 27px; }
  .portal-story h1 { font-size: 30px; }
  .portal-description { font-size: 12px; }
  .desktop-break { display: none; }
  .cwam-login-card { padding: 32px 25px; }
  .cwam-login-card h2 { font-size: 23px; }
  .portal-member-onboarding { grid-template-columns: 148px minmax(0,1fr); padding: 12px 0; gap: 13px; background: transparent; border-inline: 0; border-radius: 0; }
  .portal-lenses { gap: 2px 14px; }
  .portal-lenses a { gap: 6px; }
  .portal-lenses strong { font-size: 11px; }
  .portal-lenses .portal-lens-arrow { display: none; }
  .portal-program-grid { gap: 13px; }
  .portal-program { padding: 22px; }
  .portal-section-heading h2, .portal-reading h2, .portal-help h2 { font-size: 26px; }
  .portal-section-heading { gap: 25px; }
  .portal-reading { padding: 32px; gap: 30px; }
}
@media (max-width:720px) {
  html { scroll-padding-top: 16px; }
  .portal-container { width: calc(100% - 32px); }
  .portal-header { min-height: 82px; gap: 10px; }
  .portal-brand { gap: 9px; }
  .portal-brand-mark { width: 36px; height: 36px; font-size: 23px; }
  .portal-brand strong { font-size: 19px; letter-spacing: 1.5px; }
  .portal-brand small { font-size: 8px; letter-spacing: .6px; }
  .portal-header nav { gap: 0; font-size: 11px; }
  .portal-header nav > a:first-child { display: none; }
  .portal-nav-login { padding: 10px 13px; }
  .portal-nav-login span { margin-left: 10px; }
  .portal-hero { display: flex; flex-direction: column; border-radius: 4px; }
  .portal-story { padding: 25px 25px 20px; }
  .portal-eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .portal-story h1 { font-size: 28px; line-height: 1.6; margin-top: 19px; letter-spacing: 0; }
  .portal-description { font-size: 12px; margin-top: 14px; line-height: 1.9; }
  .portal-story-link { display: none; }
  .portal-lenses { margin-top: 20px; padding-top: 10px; gap: 0 12px; }
  .portal-lenses a { min-height: 35px; gap: 7px; }
  .portal-lenses span { font-size: 10px; }
  .portal-lenses strong { font-size: 11px; line-height: 1.7; }
  .portal-story-watermark { font-size: 96px; bottom: -17px; }
  .cwam-login-card { padding: 25px 25px 24px; align-self: stretch; scroll-margin-top: 15px; }
  .portal-login-top { margin-bottom: 17px; font-size: 9px; gap: 10px; }
  .portal-login-lock { width: 31px; height: 31px; }
  .portal-login-lock svg { width: 18px; height: 18px; }
  .cwam-login-card h2 { font-size: 22px; }
  .cwam-login-copy { font-size: 12px; line-height: 1.8; margin-top: 7px; }
  .cwam-login-copy br { display: none; }
  .cwam-login-form { margin-top: 21px; }
  .cwam-login-form > button[type=submit] { min-height: 49px; }
  .portal-login-support { margin-top: 18px; font-size: 10px; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 10px; }
  .portal-login-note { font-size: 9px; padding-top: 15px; margin-top: 12px; }
  .portal-programs { padding-block: 42px 33px; }
  .portal-section-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 28px; }
  .portal-section-kicker { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 10px; }
  .portal-section-heading h2, .portal-reading h2, .portal-help h2 { font-size: 24px; }
  .portal-section-heading > p { font-size: 12px; }
  .portal-group { margin-top: 28px; scroll-margin-top: 18px; }
  .portal-group-heading { gap: 12px; }
  .portal-group-heading h3 { font-size: 17px; gap: 9px; }
  .portal-group-heading h3 span { font-size: 12px; }
  .portal-group-copy { margin: 7px 0 16px 24px; font-size: 11px; }
  .portal-program-grid { grid-template-columns: 1fr; gap: 12px; }
  .portal-program { padding: 22px 23px 21px; }
  .portal-program-top { margin-bottom: 15px; }
  .portal-program-icon { width: 36px; height: 36px; }
  .portal-program-icon svg { width: 22px; height: 22px; }
  .portal-program h4 { font-size: 17px; }
  .portal-program > p { font-size: 12px; margin-top: 8px; line-height: 1.9; }
  .portal-program-tags { margin-top: 16px; }
  .portal-course-note { padding: 17px 23px; }
  .portal-reading { padding: 29px 25px; grid-template-columns: 1fr; gap: 29px; margin-bottom: 39px; }
  .portal-reading h2 br { display: none; }
  .portal-reading h2 { font-size: 23px; }
  .portal-reading > div > a { margin-top: 17px; }
  .portal-reading ol { gap: 23px; }
  .portal-help { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .portal-help h2 br { display: none; }
  .portal-help summary { font-size: 12px; min-height: 60px; }
  .portal-footer { padding-block: 24px 28px; align-items: flex-start; font-size: 9px; }
  .portal-footer > div { flex-direction: column; align-items: start; gap: 7px; }
  .portal-footer strong { font-size: 14px; }
  .is-auth-step .portal-story { display: none; }
  .is-auth-step .cwam-login-card { padding-block: 32px; }
  .is-auth-step .portal-programs { padding-top: 35px; }
}
@media (min-width:480px) and (max-width:720px) {
  .portal-program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-program { padding: 21px; }
  .portal-program h4 { font-size: 16px; }
  .portal-lenses { gap: 2px 22px; }
  .portal-lenses strong { font-size: 13px; }
  .portal-story h1 { font-size: 36px; }
}
@media (max-width:370px) {
  .portal-container { width: calc(100% - 24px); }
  .portal-story { padding-inline: 21px; }
  .portal-story h1 { font-size: 26px; }
  .portal-lenses a { gap: 5px; }
  .portal-lenses strong { font-size: 10px; }
  .cwam-login-card { padding-inline: 21px; }
  .portal-program { padding-inline: 21px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none!important; animation: none!important; }
}
