/* Gothic membership — deliberately scoped; no course or global theme changes. */
@font-face{font-family:WF Blackletter;src:url('/gothic-vip/blackletter.ttf') format('truetype');font-display:swap}
body .wf-billing-dialog.wf-billing-dialog{--vip-ink:#101114;--vip-fg:#f0ece3;--vip-muted:#bcb8b0;--vip-line:#55545a;color-scheme:dark;box-sizing:border-box;width:min(540px,calc(100vw - 32px));max-width:none;max-height:92dvh;margin:auto;padding:28px 28px 22px;border:1px solid #55545a;border-radius:10px;background:#101114!important;color:#f0ece3!important;box-shadow:0 24px 90px #0009;font:16px/1.5 'Museum Text','Songti SC',SimSun,serif;overflow:auto;overscroll-behavior:contain}
body .wf-billing-dialog.wf-vip-dialog{background:#101114 url('/gothic-vip/window.jpg') top right / 100% auto no-repeat!important}
.wf-billing-dialog::backdrop{background:#060709db;backdrop-filter:blur(4px)}
.wf-billing-dialog *{box-sizing:border-box}
body .wf-billing-dialog.wf-billing-dialog :is(h2,h3,p,ul){margin:0;color:inherit;font-weight:400}
body .wf-billing-dialog.wf-billing-dialog h2{font-family:'Museum Text','Songti SC',SimSun,serif!important;font-size:40px!important;line-height:1.25!important;letter-spacing:.06em}
body .wf-billing-dialog.wf-billing-dialog h3{font-family:'Museum Text','Songti SC',SimSun,serif!important;font-size:20px;line-height:1.5;letter-spacing:.03em}
body .wf-billing-dialog.wf-billing-dialog button{position:relative;appearance:none;min-height:44px;border:1px solid #646169;border-radius:4px;padding:9px 14px;background:#1b1c20!important;color:#f0ece3!important;box-shadow:none!important;font:inherit!important;cursor:pointer;text-shadow:none!important;letter-spacing:0}
body .wf-billing-dialog.wf-billing-dialog button::before,body .wf-billing-dialog.wf-billing-dialog button::after{content:none!important}
body .wf-billing-dialog.wf-billing-dialog button:disabled{cursor:default;opacity:.6}
body .wf-billing-dialog.wf-billing-dialog button:focus-visible,body .wf-vip-entry:focus-visible{outline:2px solid #eee7d9!important;outline-offset:4px}
body .wf-billing-dialog .wf-billing-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 8px}
body .wf-billing-dialog.wf-billing-dialog [data-close]{align-self:flex-start;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:9px;border:0!important;background:transparent!important}
body .wf-billing-dialog .wf-gothic-wordmark,body #accountPanel.wf-gothic-account .wf-gothic-wordmark{font:21px/1.2 'WF Blackletter',serif!important;letter-spacing:.035em;color:#f0ece3!important}
.wf-vip-icon{display:inline-block!important;width:22px!important;height:22px!important;object-fit:contain;flex-shrink:0;filter:invert(94%) sepia(7%) saturate(235%) hue-rotate(351deg) brightness(98%) contrast(89%)}
body .wf-billing-dialog .wf-vip-subtitle{font-size:15px;line-height:1.6;color:#bcb8b0;margin-bottom:24px}
body .wf-billing-dialog .wf-vip-hero{padding:0;margin:0 0 22px;border:0;background:none}
.wf-vip-hero-heading{display:flex;gap:18px;align-items:center}
body .wf-billing-dialog .wf-vip-badge{display:block;width:54px;height:70px;object-fit:contain}
body .wf-billing-dialog .wf-vip-hero-heading p{font-size:14px;line-height:1.8}
body .wf-billing-dialog .wf-vip-hero-note{font-size:13px;color:#bcb8b0;padding-left:72px;margin-top:-6px}
body .wf-billing-dialog .wf-vip-section-title{display:flex;align-items:center;gap:16px;font-size:21px;margin-bottom:12px}
.wf-vip-section-title::after{content:'';height:1px;flex:1;background:#55545a}
body .wf-billing-dialog .wf-billing-plans{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:0 0 18px}
body .wf-billing-dialog.wf-billing-dialog .wf-vip-plan{isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;min-height:0;aspect-ratio:1/1.02;padding:30% 5px 12px;border:0!important;border-radius:0;background:transparent!important;line-height:1.3!important;transition:opacity .15s ease}
body .wf-billing-dialog .wf-vip-plan-bg{position:absolute;inset:0;z-index:-1;display:block;width:100%;height:100%;object-fit:fill;filter:none;opacity:.42}
body .wf-billing-dialog [aria-pressed=true] .wf-vip-plan-bg{opacity:1}
body .wf-billing-dialog .wf-vip-plan-name{font-size:22px;line-height:1.3}
body .wf-billing-dialog .wf-vip-plan strong{font:42px/1.2 Georgia,'Times New Roman',serif;color:#f0ece3!important;font-weight:400!important;white-space:nowrap}
body .wf-billing-dialog .wf-vip-plan-duration{font-size:18px;line-height:1.3}
body .wf-billing-dialog.wf-billing-dialog .wf-vip-plan strong{font:400 42px/1.2 'Times New Roman',serif!important}
.wf-vip-selection{position:absolute;top:21%;right:10%;display:none}
[aria-pressed=true] .wf-vip-selection{display:block}
body .wf-billing-dialog .wf-vip-benefits{display:grid;gap:6px;padding:0;list-style:none;margin:0 0 16px;font-size:15px;line-height:1.5}
.wf-vip-benefits li{display:flex;gap:10px;align-items:center}
body .wf-billing-dialog .wf-vip-trial{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #55545a;border-bottom:1px solid #55545a;font-size:14px}
body .wf-billing-dialog .wf-vip-orders>summary{display:flex;align-items:center;gap:12px;min-height:52px;cursor:pointer;list-style:none}
.wf-vip-orders summary::-webkit-details-marker{display:none}
.wf-vip-orders summary>span{flex:1}
.wf-vip-orders summary>small{font:12px/1.4 system-ui,sans-serif;color:#c6afb5}
.wf-vip-orders[open] summary>.wf-vip-icon:last-child{transform:rotate(90deg)}
body .wf-billing-dialog .wf-vip-access{color:#bcb8b0;font:13px/1.5 system-ui,sans-serif;margin:0 0 12px}
.wf-vip-access summary{cursor:pointer;min-height:32px;padding:6px 0}
.wf-vip-access p{padding:8px 0}
body .wf-billing-dialog.wf-billing-dialog .wf-vip-primary{background:#eae5dd!important;color:#171619!important;border:1px solid #eae5dd!important;border-radius:4px!important;font-size:18px!important;font-weight:600!important;padding:12px 14px;min-height:48px}
body .wf-billing-dialog .wf-vip-checkout>button{width:100%}
body .wf-billing-dialog .wf-vip-checkout>p{font:12px/1.5 system-ui,sans-serif;text-align:center;color:#bcb8b0;padding-top:12px}
body .wf-billing-dialog .wf-billing-message{font:14px/1.6 system-ui,sans-serif;color:#f2c6cc!important;margin-top:12px;overflow-wrap:anywhere}
.wf-billing-message:empty{display:none}
body .wf-billing-dialog .wf-billing-muted,body .wf-billing-dialog .wf-vip-empty{font:13px/1.7 system-ui,sans-serif;color:#bcb8b0!important}
.wf-billing-card{border:1px solid #55545a;border-radius:4px;padding:16px;margin:12px 0;background:#17181c;overflow-wrap:anywhere}
.wf-billing-card p{padding:5px 0}.wf-order-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.wf-order-status{font:12px/1.5 system-ui,sans-serif;color:#d5c1c5;border:1px solid #6e545a;border-radius:3px;padding:3px 6px}
.wf-billing-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.wf-billing-actions h3{flex:1}
.wf-billing-card label{display:block;font:14px/1.7 system-ui,sans-serif;margin:14px 0}.wf-billing-card input[type=checkbox]{width:20px;height:20px;margin-right:8px;vertical-align:middle;accent-color:#875060}
.wf-billing-card input[type=text]{width:100%;padding:12px;border:1px solid #66616a;border-radius:4px;background:#101114;color:#f0ece3;font:14px/1.5 system-ui,sans-serif}
.wf-billing-teacher-entry{position:fixed;right:18px;bottom:90px;z-index:90;background:#17181c;color:#f0ece3;border:1px solid #77717c;border-radius:6px;padding:12px 18px;min-height:44px;cursor:pointer}
.wf-billing-teacher-entry[hidden],.wf-vip-entry[hidden],.wf-vip-badge-slot[hidden]{display:none!important}
/* Profile addition uses the live name and avatar, never demo identity. */
body.student-page #accountPanel.wf-gothic-account{background:#101114!important;color:#f0ece3!important;padding:24px 20px 28px!important;border:0!important}
body.student-page #accountPanel.wf-gothic-account .panel-heading{margin:8px 0 12px!important}
body.student-page #accountPanel.wf-gothic-account{row-gap:12px!important}
body.student-page #accountPanel.wf-gothic-account .panel-heading h2{font:40px/1.25 'Museum Text','Songti SC',serif!important;color:#f0ece3!important}
body.student-page #accountPanel.wf-gothic-account .panel-heading p{color:#bcb8b0!important;font-size:13px!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:18px!important;align-items:center!important;padding:0 0 22px!important;margin:0!important;border-bottom:1px solid #55545a!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar-button,body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar,body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar-image{width:86px!important;height:86px!important;border-radius:50%!important;background:#242529!important;color:#f0ece3!important;box-shadow:none!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar-button{border:1px solid #a8a6a4!important;overflow:visible!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar-image{object-fit:cover}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar-button>em{font:11px/1.2 system-ui,sans-serif!important;background:#17181c!important;border:1px solid #777!important;color:#e8e3db!important;bottom:-5px!important;right:0!important;border-radius:3px!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-name{display:flex;gap:8px;align-items:center;min-width:0}
body.student-page #accountPanel.wf-gothic-account .profile-summary-copy{display:block!important;min-width:0}
body.student-page #accountPanel.wf-gothic-account .profile-summary-copy>*{max-width:100%}
body.student-page #accountPanel.wf-gothic-account .wf-vip-name #profileName{font:23px/1.35 'Museum Text','Songti SC',serif!important;color:#f0ece3!important;overflow-wrap:anywhere}
body.student-page #accountPanel.wf-gothic-account .wf-vip-badge-slot{display:block!important;flex-shrink:0}
body.student-page #accountPanel.wf-gothic-account .wf-vip-badge-slot[hidden]{display:none!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-badge{display:block;width:30px;height:40px;object-fit:contain}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile-status{margin:5px 0 0!important;font:14px/1.5 'Museum Text','Songti SC',serif!important;color:#e4ded4!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile-expiry{font:11px/1.5 system-ui,sans-serif!important;color:#bcb8b0!important;margin:2px 0!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-entry{position:static!important;display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;min-height:44px!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;color:#e5ded2!important;box-shadow:none!important;font:15px/1.5 'Museum Text','Songti SC',serif!important;cursor:pointer}
body.student-page #accountPanel.wf-gothic-account .wf-vip-entry .wf-vip-icon{width:15px!important;height:15px!important}
body.student-page #accountPanel.wf-gothic-account #accountRefreshButton{background:transparent!important;border:1px solid #77717c!important;color:#d1cdc5!important;font:12px/1.5 system-ui,sans-serif!important;padding:8px 10px!important;min-height:40px}
body.student-page #accountPanel.wf-gothic-account #profileAccount{font:10px/1.5 system-ui,sans-serif!important;color:#9f9ba0!important;overflow-wrap:anywhere}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile>#profileStatus{display:none!important}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile>#profileStatus.danger{display:block!important;grid-column:2;color:#efbdc5!important;background:none!important}
body.student-page #accountPanel.wf-gothic-account .account-metric-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;margin:0 0 16px!important;background:none!important}
body.student-page #accountPanel.wf-gothic-account .account-metric{padding:20px 6px!important;border:0!important;border-radius:0!important;min-height:108px!important;background:transparent!important;box-shadow:none!important;text-align:center}
body.student-page #accountPanel.wf-gothic-account .account-metric:nth-child(odd){border-right:1px solid #3f4045!important}
body.student-page #accountPanel.wf-gothic-account .account-metric:nth-child(-n+2){border-bottom:1px solid #3f4045!important}
body.student-page #accountPanel.wf-gothic-account .account-metric strong{font:38px/1.2 Georgia,serif!important;color:#f0ece3!important}
body.student-page #accountPanel.wf-gothic-account #accountMetricGrid .account-metric strong{font:400 38px/1.2 'Times New Roman',serif!important}
body.student-page #accountPanel.wf-gothic-account .account-metric span{font:14px/1.5 'Museum Text','Songti SC',serif!important;color:#c4bfb5!important}
body.student-page #accountPanel.wf-gothic-account .account-metric{min-height:94px!important;padding:14px 6px!important}
body.student-page #accountPanel.wf-gothic-account .account-action-list{border:0!important;border-top:1px solid #55545a!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.student-page #accountPanel.wf-gothic-account .account-action-list>button{min-height:57px!important;padding:12px 24px 12px 34px!important;border:0!important;border-bottom:1px solid #424148!important;border-radius:0!important;background:transparent!important;color:#f0ece3!important;box-shadow:none!important}
body.student-page #accountPanel.wf-gothic-account .account-action-list>button::before,body.student-page #accountPanel.wf-gothic-account .account-action-list>button::after{background:#d1cdc5!important}
body.student-page #accountPanel.wf-gothic-account .account-action-list strong{font:19px/1.4 'Museum Text','Songti SC',serif!important;color:#f0ece3!important}
body.student-page #accountPanel.wf-gothic-account .account-action-list span{color:#b4b0ac!important;font-size:12px!important}
body.student-page.wf-gothic-profile-open #mobileStudyNav:not(.knowledge-module-dock){background:#101114!important;border-top-color:#55545a!important}
body.student-page.wf-gothic-profile-open #mobileStudyNav button{color:#bcb8b0!important}
body.student-page.wf-gothic-profile-open #mobileStudyNav button.active{color:#f0ece3!important}
@media(max-width:600px){body .wf-billing-dialog.wf-vip-dialog{width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0;padding:calc(20px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom))}body .wf-billing-dialog.wf-billing-dialog h2{font-size:38px!important}}
@media(max-width:360px){body .wf-billing-dialog.wf-vip-dialog{padding-left:16px;padding-right:16px}body .wf-billing-dialog .wf-vip-plan strong{font-size:36px}body .wf-billing-dialog .wf-vip-plan-name{font-size:20px}body.student-page #accountPanel.wf-gothic-account .wf-vip-profile{grid-template-columns:72px minmax(0,1fr)!important;gap:12px!important}body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar-button,body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar,body.student-page #accountPanel.wf-gothic-account .wf-vip-profile .profile-avatar-image{width:70px!important;height:70px!important}}
@media(max-width:360px){body .wf-billing-dialog.wf-billing-dialog .wf-vip-plan{gap:4px;padding-top:27%}body .wf-billing-dialog.wf-billing-dialog .wf-vip-plan strong{font-size:36px!important}}

/* Typography hierarchy pass: fewer competing headlines, clearer reading order. */
body .wf-billing-dialog.wf-vip-dialog h2{font-size:32px!important;line-height:1.15!important;letter-spacing:.08em}
body .wf-billing-dialog.wf-vip-dialog .wf-gothic-wordmark{font-size:15px!important;letter-spacing:.04em}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-subtitle{font-size:12px;line-height:1.5;margin-bottom:18px;color:#aaa6a0}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-hero-heading{gap:14px}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-hero-heading h3{font-size:17px;line-height:1.35;letter-spacing:.02em}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-hero-heading p{font-size:12px;line-height:1.45;color:#bcb8b0}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-hero-note{font-size:11px;line-height:1.5;padding-left:68px;margin-top:0;color:#99959a}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-section-title{font-size:17px;line-height:1.4;gap:10px;margin-bottom:9px}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-plan-name{font-size:18px;line-height:1.3}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-plan strong{font-size:34px!important;line-height:1.1}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-plan-duration{font-size:13px;line-height:1.35;color:#c4c0b9}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-benefits{font-size:12px;line-height:1.45;gap:4px;margin-bottom:11px}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-trial{font-size:12px;line-height:1.45;padding:10px 0}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-orders>summary{font-size:14px;min-height:45px}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-access{font-size:11px;line-height:1.5;margin-bottom:7px}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-primary{font-size:15px!important;line-height:1.4;min-height:44px;padding:10px 12px}
body .wf-billing-dialog.wf-vip-dialog .wf-vip-checkout>p{font-size:11px;line-height:1.5;padding-top:8px}
body.student-page #accountPanel.wf-gothic-account .panel-heading h2{font-size:32px!important;line-height:1.2!important;letter-spacing:.06em}
body.student-page #accountPanel.wf-gothic-account .panel-heading p{font-size:11px!important;line-height:1.5}
body.student-page #accountPanel.wf-gothic-account .wf-vip-name #profileName{font-size:20px!important;line-height:1.3}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile-status{font-size:13px!important;line-height:1.45}
body.student-page #accountPanel.wf-gothic-account .wf-vip-profile-expiry{font-size:10px!important;line-height:1.45}
body.student-page #accountPanel.wf-gothic-account .wf-vip-entry{font-size:13px!important;line-height:1.45}
body.student-page #accountPanel.wf-gothic-account #accountMetricGrid .account-metric strong{font-size:32px!important;line-height:1.15}
body.student-page #accountPanel.wf-gothic-account .account-metric span{font-size:12px!important;line-height:1.45}
body.student-page #accountPanel.wf-gothic-account .account-action-list strong{font-size:16px!important;line-height:1.35}
body.student-page #accountPanel.wf-gothic-account .account-action-list span{font-size:11px!important;line-height:1.4}
@media(max-width:600px){body .wf-billing-dialog.wf-vip-dialog{padding-left:20px;padding-right:20px}body .wf-billing-dialog.wf-vip-dialog h2{font-size:32px!important}}
@media(max-width:360px){body .wf-billing-dialog.wf-vip-dialog .wf-vip-plan strong{font-size:30px!important}body .wf-billing-dialog.wf-vip-dialog .wf-vip-plan-name{font-size:17px}}
