:root { --portal-green: #195d3d; --portal-dark: #12432e; --portal-gold: #e49a1d; --portal-ink: #24382f; --portal-muted: #78877f; --portal-line: #e3ebe6; }
.portal-site { margin: 0; padding: 0; color: #182420; background: #fff; font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif; }
.portal-site *, .portal-member-home *, .portal-subscription * { box-sizing: border-box; }
.portal-site a, .portal-member-home a, .portal-subscription a { text-decoration: none; }
.portal-site button, .portal-period { font: inherit; }
.portal-site a:focus-visible, .portal-site button:focus-visible, .portal-content-card:focus-visible, .portal-period:focus-visible { outline: 3px solid #e5a636; outline-offset: 4px; }
.portal-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.portal-site section[id] { scroll-margin-top: 84px; }
.portal-site-nav { position: sticky; top: 0; z-index: 100; background: rgba(248,251,249,.97); border-bottom: 1px solid var(--portal-line); }
.portal-nav-inner { min-height: 64px; display: flex; align-items: center; gap: 36px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--portal-green); flex-shrink: 0; }
.portal-brand:hover { color: var(--portal-green); }
.portal-brand-mark { display: block; flex-shrink: 0; width: 42px; height: 42px; }
.portal-brand-mark img { display: block; width: 100%; height: 100%; }
.portal-brand strong { display: block; font-size: 17px; letter-spacing: .4px; }
.portal-brand small { display: block; font-size: 9px; color: var(--portal-muted); letter-spacing: 1.7px; margin-top: 4px; }
.portal-nav-links { display: flex; align-items: center; justify-content: flex-start; gap: 28px; flex: 1; }
.portal-nav-links a { position: relative; font-size: 13px; color: #617268; padding: 22px 0; white-space: nowrap; }
.portal-nav-links a:hover, .portal-nav-links a.is-current { color: var(--portal-green); }
.portal-nav-links a.is-current:after { content: ''; position: absolute; bottom: 14px; left: 0; right: 0; height: 2px; background: var(--portal-green); }
.portal-nav-actions, .portal-button-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.portal-nav-actions { flex-shrink: 0; }
.portal-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 42px; padding: 11px 22px; border: 1px solid transparent; border-radius: 9px; font-weight: 600; font-size: 13px; transition: transform .15s, background .15s; cursor: pointer; }
.portal-button:hover { transform: translateY(-2px); text-decoration: none; }
.portal-button-green { color: white; background: var(--portal-green); }
.portal-button-green:hover { color: white; background: var(--portal-dark); }
.portal-button-gold { background: #f5a014; color: white; }
.portal-button-gold:hover { background: #dd8810; color: white; }
.portal-button-outline { color: var(--portal-green); background: white; border-color: var(--portal-line); }
.portal-button-outline:hover { color: var(--portal-green); background: #f3f8f5; }
.portal-button-white { color: var(--portal-green); background: white; }
.portal-menu-toggle { display: none; border: 0; background: transparent; color: var(--portal-green); padding: 10px; font-size: 18px; }
.portal-hero { background: linear-gradient(160deg, #1e6a42 0%, #145030 55%, #0e3d24 100%); color: white; padding: 76px 0 90px; position: relative; overflow: hidden; }
.portal-hero:before { content: ''; position: absolute; width: 90px; height: 90px; right: 8%; top: 40px; border: 1px solid #ffffff19; transform: rotate(45deg); pointer-events: none; }
.portal-hero:after { content: ''; position: absolute; width: 150px; height: 150px; left: 4%; bottom: -42px; border: 1px solid #ffffff19; border-radius: 50%; pointer-events: none; }
.portal-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; }
.portal-eyebrow { display: inline-block; background: #e2f1e7; color: var(--portal-green); border-radius: 40px; font-size: 12px; padding: 8px 15px; letter-spacing: 1px; }
.portal-hero h1 { margin: 24px 0 22px; color: #182420; font-size: 44px; font-weight: 700; line-height: 1.28; letter-spacing: -1px; }
.portal-hero-title-line { display: block; }
.portal-hero h1 em { font-style: normal; color: #ffe7a6; background: linear-gradient(transparent 74%, #ccb73945 74%, #ccb73945 94%, transparent 94%); }
.portal-hero p { color: #daeadf; font-size: 16px; line-height: 1.9; min-height: 92px; margin-bottom: 32px; }
.portal-hero .portal-button { min-height: 49px; padding: 12px 24px; }
.portal-hero-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 36px; padding-top: 22px; border-top: 1px solid #ffffff25; }
.portal-hero-stats > div { padding: 12px 18px; border-left: 1px solid #ffffff21; }
.portal-hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.portal-hero-stats strong { display: block; color: #ffce65; font-size: 18px; font-weight: 700; white-space: nowrap; }
.portal-hero-stats span { display: block; margin-top: 8px; color: #c4d7ca; font-size: 12px; }
.portal-hero-art { position: relative; border-radius: 22px; background: #072d20; box-shadow: 0 25px 60px #05231435; }
.portal-hero-art .portal-media { aspect-ratio: 5/4; border-radius: 22px; background: radial-gradient(ellipse at 70% 15%,#44733a55,transparent 60%),linear-gradient(135deg,#062f20,#143f2b); }
.portal-hero-art .portal-media picture { z-index: 2; }
.portal-hero-art .portal-media img { object-fit: contain; }
.portal-hero-illustration { position: absolute; inset: 0; overflow: hidden; }
.portal-hero-media.has-image .portal-hero-illustration { visibility: hidden; }
.portal-art-orbit { position: absolute; width: 320px; height: 320px; border: 1px solid #d7ae352b; border-radius: 50%; top: -105px; right: -35px; box-shadow: 0 0 0 35px #d7ae3508,0 0 0 70px #d7ae3507; }
.portal-art-window { position: absolute; display: flex; gap: 0; left: 5%; right: 5%; top: 12%; bottom: 9%; background: #f4f7f5; border-radius: 17px 17px 0 0; overflow: hidden; box-shadow: 0 18px 45px #001b2240; }
.portal-art-sidebar { flex: 0 0 12%; padding: 14px 11px; background: #1c553b; display: flex; flex-direction: column; gap: 12px; }
.portal-art-sidebar b,.portal-art-sidebar span { display: block; aspect-ratio: 1; border-radius: 8px; background: #ffffff22; }
.portal-art-sidebar b { background: #f4a321; }
.portal-art-main { flex: 1; padding: 14px; }
.portal-art-cards { display: flex; gap: 10px; margin-bottom: 12px; }
.portal-art-cards > div { flex: 1; min-width: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px #1a412a09; padding-bottom: 12px; }
.portal-art-cards b { display: block; height: 44px; background: linear-gradient(115deg,#328c5a,#195d3d); margin-bottom: 8px; }
.portal-art-cards span { display: block; height: 6px; width: 74%; margin: 6px 9px 0; background: #dae6df; border-radius: 4px; }
.portal-art-cards span:last-child { width: 52%; background: #e8efeb; }
.portal-art-message { width: 68%; height: 26px; border-radius: 10px 10px 10px 2px; background: #fff; margin: 12px 0; box-shadow: 0 3px 10px #1a412a06; }
.portal-art-message-user { width: 54%; background: #195d3d; margin-left: auto; border-radius: 10px 10px 2px 10px; }
.portal-art-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; color: #25372e; padding: 13px 16px; border-radius: 14px; box-shadow: 0 10px 25px #02271420; }
.portal-art-badge > span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #fdf1dd; color: #68a080; }
.portal-art-badge strong { display: block; font-size: 12px; }
.portal-art-badge small { display: block; margin-top: 5px; font-size: 10px; color: #8a978f; }
.portal-art-badge-top { left: -30px; top: 6%; }
.portal-art-badge-bottom { right: -20px; bottom: 14%; }
.portal-art-badge-bottom > span { color: #09ba72; }
.portal-art-caption { position: absolute; z-index: 3; bottom: 12px; right: 17px; color: #b5cdbd; font-size: 10px; letter-spacing: 1px; }
.portal-hero-art.has-custom-image .portal-art-badge,.portal-hero-art.has-custom-image .portal-art-caption { display: none; }
.portal-media { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(115deg, #328c5a 0%, #195d3d 55%, #4b602b 100%); display: flex; align-items: center; justify-content: center; }
.portal-media-label { color: #fff; font-weight: 700; font-size: clamp(17px, 2vw, 26px); text-align: center; padding: 24px; line-height: 1.5; overflow-wrap: anywhere; }
.portal-media picture { display: block; position: absolute; inset: 0; opacity: 0; }
.portal-media img { width: 100%; height: 100%; object-fit: scale-down; display: block; }
.portal-media.has-image picture { opacity: 1; }
.portal-media.has-image .portal-media-label { visibility: hidden; }
.portal-media.has-image { background: #eef4f0; }
.portal-section { padding: 78px 0; }
.portal-section-soft { background: #f4f8f5; }
.portal-section-heading { text-align: center; margin-bottom: 34px; }
.portal-section-heading > span { font-size: 12px; letter-spacing: 3px; color: #257146; font-weight: 700; }
.portal-section-heading h2 { font-size: 29px; font-weight: 700; line-height: 1.5; margin: 10px 0 13px; color: var(--portal-ink); }
.portal-section-heading p { font-size: 14px; line-height: 1.8; color: var(--portal-muted); }
.portal-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.portal-feature { padding: 26px 22px; border: 1px solid var(--portal-line); border-radius: 12px; color: var(--portal-ink); background: white; transition: transform .15s, box-shadow .15s; }
.portal-feature:hover { color: var(--portal-ink); transform: translateY(-4px); box-shadow: 0 10px 30px #214a3010; }
.portal-feature > i { width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; border-radius: 12px; color: var(--portal-green); background: #eaf3ee; font-size: 20px; }
.portal-feature h3 { font-size: 17px; font-weight: 600; margin: 20px 0 12px; }
.portal-feature p { font-size: 13px; line-height: 1.9; color: var(--portal-muted); min-height: 74px; }
.portal-feature > span, .portal-card-copy > span { color: #b58a32; font-size: 12px; font-weight: 600; }
.portal-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.portal-content-card { display: block; min-width: 0; background: white; border: 1px solid var(--portal-line); border-radius: 12px; overflow: hidden; color: var(--portal-ink); transition: box-shadow .15s, transform .15s; }
.portal-content-card:hover { color: var(--portal-ink); transform: translateY(-3px); box-shadow: 0 12px 28px #163c2810; }
.portal-card-copy { padding: 20px; }
.portal-card-copy h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; line-height: 1.5; }
.portal-card-copy p { color: var(--portal-muted); font-size: 13px; line-height: 1.9; margin: 0 0 16px; overflow-wrap: anywhere; }
.portal-centered { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
/* Prototype showcase: static copy, scoped separately from member content cards. */
.portal-showcase { --showcase-green: #237448; --showcase-ink: #4b5b54; --showcase-muted: #8a968f; --showcase-line: #e6ebe8; padding: 84px 0; line-height: 1.6; }
.portal-showcase.portal-section-soft { background: #f4f6f5; }
.portal-showcase .portal-section-heading { max-width: 640px; margin: 0 auto 52px; }
.portal-showcase .portal-section-heading > span { display: block; font-size: 13px; letter-spacing: 3px; color: var(--showcase-green); margin-bottom: 10px; }
.portal-showcase .portal-section-heading h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.6; color: #182420; }
.portal-showcase .portal-section-heading p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--showcase-ink); }
.portal-showcase-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.portal-voices-images { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.portal-showcase-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; color: #1a5c39; background: #eaf3ee; }
.portal-band-card { display: block; min-width: 0; color: #182420; background: white; border: 1px solid var(--showcase-line); border-radius: 16px; overflow: hidden; transition: transform .25s,box-shadow .25s; }
.portal-band-card:hover { color: #182420; transform: translateY(-5px); box-shadow: 0 10px 30px #12281e1a; }
.portal-band-banner { height: 92px; background: linear-gradient(135deg,#2e8b57 0%,#1a5c39 55%,#145030 100%); display: grid; place-items: center; position: relative; }
.portal-band-banner:before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 78% 12%,#f5940b47,transparent 46%); }
.portal-band-banner h3 { margin: 0; padding: 0 18px; max-width: 100%; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 19px; font-weight: 700; letter-spacing: 2px; color: white; position: relative; }
.portal-band-body { padding: 16px 18px 18px; }
.portal-band-body p { font-size: 13px; color: var(--showcase-muted); margin: 6px 0 14px; min-height: 42px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.portal-band-body .portal-showcase-tag { max-width: 100%; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-band-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.portal-band-meta small { color: var(--showcase-muted); font-size: 11px; }
.portal-band-meta > span { color: #dd8504; font-size: 13px; font-weight: 600; white-space: nowrap; }
.portal-curriculum-legend { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--showcase-ink); margin: -28px 0 28px; }
.portal-curriculum-legend span { display: inline-flex; align-items: center; gap: 7px; }
.portal-curriculum-legend i { display: inline-block; flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; background: #237448; }
.portal-curriculum-legend i.is-gold { background: #f5940b; }
.portal-curriculum-legend i.is-dark { background: #1a5c39; }
.portal-week-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.portal-week-card { background: white; border: 1px solid var(--showcase-line); border-top: 3px solid #237448; border-radius: 12px; padding: 16px 16px 14px; display: flex; flex-direction: column; transition: transform .22s,box-shadow .22s; }
.portal-week-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px #12281e1a; }
.portal-week-card.is-peak { border-top-color: #f5940b; }
.portal-week-label { font-size: 11.5px; color: var(--showcase-muted); margin-bottom: 6px; letter-spacing: .3px; }
.portal-week-card h3 { font-size: 14.5px; font-weight: 700; line-height: 1.5; min-height: 44px; letter-spacing: .2px; margin: 0 0 10px; }
.portal-week-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; padding: 0; margin: 0; }
.portal-week-card li { font-size: 12px; color: var(--showcase-ink); display: flex; gap: 7px; line-height: 1.55; }
.portal-week-card li i { flex-shrink: 0; font-style: normal; }
.portal-week-card li span { color: var(--showcase-muted); }
.portal-week-tags { display: flex; margin-top: 12px; }
.portal-week-tags .portal-showcase-tag { font-weight: 600; }
.is-peak .portal-showcase-tag { color: #dd8504; background: #fff4e3; }
.portal-curriculum-actions { display: flex; justify-content: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.portal-curriculum-actions .portal-button { border-radius: 8px; font-size: 14px; gap: 8px; padding: 10px 22px; line-height: 1.6; }
.portal-curriculum-actions .portal-button-green { background: #1a5c39; }
.portal-curriculum-actions .portal-button-gold { background: #f5940b; }
.portal-curriculum-actions .portal-button-outline { color: #182420; border-color: var(--showcase-line); }
.portal-results-band { border-radius: 24px; background: linear-gradient(160deg,#164e32,#0e3d24); padding: 56px 48px; position: relative; overflow: hidden; }
.portal-results-band:before { content: ''; position: absolute; width: 70px; height: 70px; top: 24px; right: 36px; border: 1px solid #ffffff19; transform: rotate(45deg); }
.portal-results-band:after { content: ''; position: absolute; width: 120px; height: 120px; bottom: -46px; left: -30px; border: 1px solid #ffffff19; border-radius: 50%; }
.portal-results-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; text-align: center; position: relative; z-index: 1; }
.portal-results-grid strong { display: block; font-size: 17px; color: #f6c66b; font-weight: 800; }
.portal-results-grid small { display: block; font-size: 13px; color: #ffffffb8; }
.portal-results-cases { margin-top: 52px; }
.portal-result-card,.portal-quote { min-width: 0; background: white; border: 1px solid var(--showcase-line); border-radius: 16px; padding: 26px; transition: transform .25s,box-shadow .25s; }
.portal-result-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px #12281e1a; }
.portal-result-number { color: #237448; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.portal-result-card h3 { font-size: 15px; font-weight: 700; margin: 12px 0 8px; line-height: 1.6; }
.portal-result-card p { font-size: 13px; color: var(--showcase-ink); margin: 0; }
.portal-result-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 14px; }
.portal-quote { position: relative; }
.portal-quote:hover { box-shadow: 0 10px 30px #12281e1a; }
.portal-quote:before { content: '“'; position: absolute; top: 10px; right: 20px; font-size: 64px; font-family: Georgia,serif; line-height: 1; color: #eaf3ee; }
.portal-quote-stars { color: #f5940b; font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
.portal-quote p { position: relative; font-size: 13.5px; line-height: 1.85; color: var(--showcase-ink); margin: 0 0 18px; }
.portal-quote-person { display: flex; align-items: center; gap: 12px; }
.portal-quote-avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg,#2e8b57,#14532d); display: grid; place-items: center; color: white; font-size: 14px; font-weight: 700; }
.portal-quote-person strong { display: block; font-size: 13px; }
.portal-quote-person small { display: block; color: var(--showcase-muted); font-size: 11.5px; }
.portal-faq-wrap { max-width: 840px; }
.portal-faq { border-bottom: 1px solid var(--portal-line); }
.portal-faq summary { padding: 23px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.portal-faq summary::-webkit-details-marker { display: none; }
.portal-faq summary > span { color: var(--portal-gold); font-size: 20px; }
.portal-faq[open] summary > span { transform: rotate(45deg); }
.portal-faq p { white-space: pre-wrap; line-height: 1.9; color: var(--portal-muted); padding: 0 24px 20px 0; }
.portal-cta { text-align: center; color: white; padding: 64px 0; background: var(--portal-green); }
.portal-cta h2 { font-size: 29px; margin: 0 0 16px; line-height: 1.5; }
.portal-cta p { color: #d6e5dc; margin-bottom: 25px; line-height: 1.8; }
.portal-footer { background: #f6f9f7; padding: 48px 0 20px; font-size: 12px; }
.portal-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; }
.portal-footer-grid h3 { font-size: 13px; font-weight: 600; margin: 0 0 20px; }
.portal-footer-grid > div > a:not(.portal-brand) { display: block; color: var(--portal-muted); margin-bottom: 12px; }
.portal-footer-grid p { color: var(--portal-muted); line-height: 1.8; margin: 18px 0; }
.portal-contact-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-contact-image { max-width: 140px; }
.portal-contact-image .portal-media { aspect-ratio: 1; }
.portal-copyright { padding-top: 22px; margin-top: 32px; border-top: 1px solid var(--portal-line); color: #94a199; text-align: center; line-height: 2; }
.portal-copyright a { display: inline-block; color: #87978d; margin-left: 12px; }
.portal-copyright img { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
/* Shared workspace navigation, including the existing assistant and ledger pages. */
body.member-layout .sidenav .list-group { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
body.member-layout .sidenav .list-group-heading { position: sticky; top: 0; z-index: 2; background: #0a5c3a; }
body.member-layout .sidenav .list-group-heading + .list-group-item { margin-top: 16px; }
body.member-layout .sidenav-recent-panel { max-height: none; overflow: hidden; flex: 0 0 auto; margin-top: 10px; }
body.member-layout .sidenav .list-group-heading > .sidenav-brand-home { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px; width: 100%; height: 100%; min-width: 0; color: inherit; text-decoration: none; }
body.member-layout .sidenav-brand-home .sidenav-logo-wrap { flex: 0 0 32px; }
body.member-layout .sidenav-brand-home .sidenav-site-name { flex: 1; min-width: 0; white-space: nowrap; }
body.member-layout #content-container > .row > .col-md-9 { min-width: 0; }
body.member-layout .sidebar-toggle { border: 0; }
.portal-member-main { padding: 0 !important; background: #f3f6f4; }
.portal-member-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.portal-member-topbar { flex: 0 0 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: white; border-bottom: 1px solid var(--portal-line); }
.portal-member-topbar h1 { font-size: 18px; font-weight: 600; margin: 0; }
.portal-member-topbar .member-notice-btn { position: relative; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #65776b; border: 0; background: transparent; }
.portal-member-topbar .member-notice-dot { display: none; position: absolute; width: 8px; height: 8px; top: 4px; right: 4px; border-radius: 50%; background: #ef4444; }
.portal-member-topbar .has-unread .member-notice-dot { display: block; }
.portal-member-scroll { flex: 1; min-height: 0; padding: 28px; overflow-y: auto; }
.portal-section-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.portal-section-row h2 { margin: 0; padding-left: 11px; border-left: 3px solid var(--portal-gold); font-size: 16px; font-weight: 600; color: var(--portal-ink); }
.portal-section-row > span { color: var(--portal-muted); font-size: 12px; }
.portal-section-row a { font-size: 12px; color: var(--portal-green); }
.portal-member-section { max-width: 1180px; margin: 0 auto 28px; }
.portal-member-cases { max-width: 1440px; }
.portal-member-cases .portal-case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.portal-carousel { position: relative; border-radius: 14px; outline-offset: 3px; background: #eaf2ed; box-shadow: 0 4px 14px #1e4a3009; }
.portal-carousel-viewport { overflow: hidden; border-radius: 14px; }
.portal-carousel-track { display: flex; transition: transform .4s ease; }
.portal-carousel-slide { flex: 0 0 100%; min-width: 0; }
.portal-banner { display: block; text-decoration: none; }
.portal-banner .portal-media { aspect-ratio: 24/5; }
.portal-banner .portal-media.has-image { background: #eef4f0; }
.portal-carousel-controls button { position: absolute; z-index: 2; border: 0; cursor: pointer; background: #ffffffd9; color: #1c5b3d; }
.portal-carousel-controls[hidden] { display: none; }
.portal-carousel-prev,.portal-carousel-next { top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; font-size: 22px; opacity: .75; }
.portal-carousel-prev { left: 14px; } .portal-carousel-next { right: 14px; }
.portal-carousel-controls button:hover { opacity: 1; }
.portal-carousel-controls button:focus-visible,.portal-carousel:focus-visible { outline: 3px solid #e5a636; outline-offset: 3px; }
.portal-carousel-dots { position: absolute; z-index: 2; display: flex; gap: 7px; left: 50%; bottom: 13px; transform: translateX(-50%); }
.portal-carousel-controls .portal-carousel-dot { position: static; width: 8px; height: 8px; border-radius: 10px; padding: 0; background: #ffffff70; box-shadow: 0 0 0 1px #1b57371a; }
.portal-carousel-controls .portal-carousel-dot.is-active { width: 22px; background: #fff; }
.portal-advert-list { display: flex; flex-direction: column; gap: 16px; max-width: 1040px; margin: 0 auto; }
.portal-advert { position: relative; }
.portal-advert:hover { transform: none; }
.portal-media-natural.has-image { aspect-ratio: auto; background: #f6f9f7; }
.portal-media-natural.has-image .portal-media-label { display: none; }
.portal-media-natural.has-image picture { position: static; width: 100%; }
.portal-media-natural.has-image img { width: auto; height: auto; max-width: 100%; margin: 0 auto; }
.portal-media-natural.is-portrait img { max-width: min(100%,720px); }
.portal-ad-tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 10px; color: white; background: #0003; padding: 3px 8px; border-radius: 4px; }
.portal-home-note { color: var(--portal-muted); font-size: 12px; text-align: center; padding: 12px 0 22px; line-height: 1.8; }
.portal-home-note i { color: var(--portal-gold); margin-right: 6px; }
/* Member center: subscription display is independent of the working recharge form. */
.member-center-scroll .member-profile-card { margin-bottom: 24px; border-radius: 12px; }
.member-center-scroll .member-card { border-color: var(--portal-line); border-radius: 12px; }
.portal-subscription { margin: 0 0 28px; color: var(--portal-ink); }
.portal-subscription-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.portal-subscription-heading h2, .portal-balance-heading { font-size: 17px; font-weight: 600; margin: 0; }
.portal-subscription-heading p { color: var(--portal-muted); font-size: 12px; margin: 7px 0 0; }
.portal-periods { display: flex; border: 1px solid var(--portal-line); background: white; border-radius: 8px; padding: 4px; gap: 4px; }
.portal-period { cursor: pointer; border: 0; background: transparent; border-radius: 5px; font-size: 12px; padding: 7px 14px; color: #718178; }
.portal-period.is-active { background: #e6f0e9; color: var(--portal-green); }
.portal-subscription-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portal-plan { background: white; padding: 25px; border: 1px solid var(--portal-line); border-radius: 12px; position: relative; }
.portal-plan-current { border-color: #adc9b7; }
.portal-plan-badge { display: inline-block; border-radius: 20px; background: #e7f2eb; color: var(--portal-green); font-size: 11px; padding: 5px 10px; }
.portal-plan-gold { background: #fffdf8; border-color: #eadbc0; }
.portal-plan-gold .portal-plan-badge { color: #a78335; background: #faf0d8; }
.portal-plan h3 { font-size: 20px; font-weight: 700; margin: 16px 0 8px; }
.portal-plan p { color: var(--portal-muted); font-size: 12px; line-height: 1.8; }
.portal-plan-price { font-size: 24px; font-weight: 700; padding: 12px 0; }
.portal-plan ul { list-style: none; padding: 0; margin: 10px 0 22px; }
.portal-plan li { font-size: 13px; padding: 7px 0; color: #61776a; }
.portal-plan li > i { color: #71a286; margin-right: 8px; }
.portal-plan .portal-button { width: 100%; }
.portal-plan-footer { display: block; margin-top: 12px; text-align: center; font-size: 12px; color: #a18138; }
.portal-balance-heading { margin-bottom: 16px; }
.member-center-scroll .member-center-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
.member-center-scroll .member-power-footer { line-height: 1.8; }
@media (max-width: 1150px) {
    .portal-nav-inner { gap: 20px; } .portal-nav-links { gap: 15px; } .portal-nav-actions .portal-button { padding: 10px 14px; }
    .portal-member-home .portal-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .portal-nav-links { display: none; position: absolute; top: 63px; left: 0; right: 0; background: #f8fbf9; padding: 12px 24px; border-bottom: 1px solid var(--portal-line); flex-wrap: wrap; justify-content: flex-start; }
    .portal-nav-links.is-open { display: flex; } .portal-nav-links a { padding: 12px; }
    .portal-menu-toggle { display: block; } .portal-nav-inner { justify-content: space-between; }
    .portal-hero-grid { gap: 30px; } .portal-hero { padding: 60px 0; } .portal-hero h1 { font-size: 34px; }
    .portal-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-case-grid { gap: 16px; } .portal-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .portal-footer-grid > div:last-child { grid-column: 1/-1; }
    .member-center-scroll .member-center-grid { grid-template-columns: minmax(0, 1fr); }
    body.member-layout .portal-member-home > .row { display: flex; height: 100vh; height: 100dvh; }
    .portal-member-home > .row > .col-md-3 { flex: 0 0 0 !important; width: 0 !important; }
    .portal-member-home > .row > .col-md-9 { flex: 1; min-width: 0; }
}
@media (max-width: 767px) {
    .portal-wrap { padding: 0 20px; } .portal-nav-inner { min-height: 66px; gap: 12px; } .portal-brand strong { font-size: 14px; } .portal-brand small { font-size: 8px; letter-spacing: 1px; }
    .portal-brand-mark { width: 32px; height: 32px; } .portal-brand { gap: 8px; }
    .portal-nav-actions { gap: 5px; } .portal-nav-actions .portal-button { padding: 8px 12px; font-size: 12px; min-height: 36px; }
    .portal-nav-links { top: 65px; }
    .portal-hero-grid { grid-template-columns: 1fr; gap: 32px; } .portal-hero { padding: 42px 0; } .portal-hero h1 { font-size: clamp(26px,7vw,32px); margin: 22px 0 15px; } .portal-hero p { font-size: 14px; min-height: 0; }
    .portal-hero-stats { margin-top: 28px; } .portal-hero-stats > div { padding: 8px; } .portal-hero-stats strong { font-size: 15px; } .portal-hero-stats span { font-size: 10px; }
    .portal-art-badge { padding: 10px 12px; gap: 8px; } .portal-art-badge-top { left: -8px; } .portal-art-badge-bottom { right: -8px; }
    .portal-section { padding: 45px 0; } .portal-section-heading h2 { font-size: 23px; } .portal-section-heading p { font-size: 13px; }
    .portal-feature-grid { gap: 12px; } .portal-feature { padding: 20px 15px; } .portal-feature h3 { font-size: 15px; } .portal-feature p { min-height: 95px; font-size: 12px; }
    .portal-site .portal-case-grid { grid-template-columns: 1fr; }
    .portal-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .portal-footer-grid > div:first-child { grid-column: 1/-1; }
    .portal-cta { padding: 40px 0; } .portal-cta h2 { font-size: 23px; } .portal-copyright a { margin-left: 0; display: block; }
    .portal-member-scroll { padding: 20px 16px; } .portal-member-topbar { padding: 0 18px; }
    .portal-member-home .portal-case-grid { grid-template-columns: 1fr; gap: 16px; }
    .portal-banner .portal-media { aspect-ratio: 16/7; } .portal-carousel-prev { left: 9px; } .portal-carousel-next { right: 9px; }
    .portal-section-row > span { display: none; } .portal-card-copy { padding: 17px; }
    .portal-subscription-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .portal-subscription-grid { grid-template-columns: 1fr; gap: 16px; } .portal-plan { padding: 22px; }
    body.member-layout .sidebar-toggle { width: 44px; height: 44px; padding: 7px; right: 14px; bottom: 26px; background: #195d3d; color: white; box-shadow: 0 4px 16px #173c2835; }
}
@media (max-width: 1180px) { .portal-week-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } #agents .portal-showcase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) {
    .portal-showcase-grid,.portal-week-grid,#agents .portal-showcase-grid { grid-template-columns: 1fr; }
    .portal-results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 16px; }
    .portal-results-band { padding: 44px 28px; }
}
@media (max-width: 767px) {
    .portal-showcase { padding: 48px 0; }
    .portal-showcase .portal-section-heading h2 { font-size: 22px; }
    .portal-showcase .portal-section-heading p { font-size: 13px; }
    .portal-curriculum-legend { gap: 12px; }
    .portal-week-card li { flex-wrap: wrap; }
    .portal-curriculum-actions .portal-button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .portal-button, .portal-content-card, .portal-feature, .portal-carousel-track,.portal-band-card,.portal-week-card,.portal-result-card,.portal-quote { transition: none; } }
