/* PeakFour Profile + dark shell. Native responsive layout, accessible tokens, no third-party assets. */
:root{--pf-night:#101326;--pf-night-2:#171a38;--pf-pane:#1c2143;--pf-line:rgba(183,192,255,.17);--pf-mint:#36dfbe;--pf-violet:#9387ff;--pf-ink:#f4f5ff;--pf-muted:#aeb9d1}
.pf-header-profile{display:flex;align-items:center;gap:11px;min-height:46px;padding:6px 12px;border-radius:15px;background:rgba(133,128,212,.13);border:1px solid var(--pf-line);color:#f5f6ff;font-size:13px;font-weight:750;cursor:pointer;max-width:260px}
.pf-header-profile:hover{background:#33315f}
.pf-header-symbol{width:32px;height:32px;display:grid;place-items:center;background:linear-gradient(135deg,#5554d9,#2bd6c2);border-radius:12px;color:#fff;flex-shrink:0}
.pf-header-username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf-profile-page{color:var(--pf-ink)!important;max-width:1240px;margin:0 auto}
.pf-profile-page.hidden{display:none!important}
.pf-profile-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:clamp(26px,4vw,48px);border:1px solid rgba(153,165,255,.23);border-radius:28px;background:radial-gradient(ellipse at 82% 38%,rgba(91,112,233,.37),transparent 56%),linear-gradient(125deg,#272557,#171d39 68%);box-shadow:0 19px 45px #090b1a55}
.pf-overline{font-size:11px;letter-spacing:.15em;font-weight:850;color:#75ead9}
.pf-profile-hero h1{font-size:clamp(30px,4vw,48px);line-height:1.15;letter-spacing:-.045em;margin:8px 0!important;color:#fff!important}
.pf-profile-hero p,.pf-profile-panel p{color:#c2c9dd;line-height:1.55}
.pf-profile-identity{display:flex;align-items:center;gap:13px;background:#ffffff0c;border:1px solid #ffffff24;padding:15px;border-radius:18px;min-width:290px}
.pf-profile-avatar{width:51px;height:51px;display:grid;place-items:center;flex:none;border-radius:17px;background:linear-gradient(130deg,#7865ed,#3ac3c0);color:#fff;font-size:24px;font-weight:850}
.pf-profile-identity strong,.pf-profile-identity small{display:block}.pf-profile-identity small{color:#adb9db;font-size:11px;margin-top:4px;max-width:180px}
.pf-primary,.pf-outline,.pf-auth-switch{font-family:inherit;cursor:pointer;border-radius:12px;padding:12px 17px;font-weight:750;min-height:43px}
.pf-primary{border:1px solid #29c2bc;background:linear-gradient(115deg,#29c8c0,#4692e9);color:#081a2a!important}
.pf-primary:hover{filter:brightness(1.1)}
.pf-primary:disabled{opacity:.55;cursor:not-allowed}
.pf-outline{border:1px solid #8286c45f;background:#ffffff11;color:#eff4ff!important}
.pf-outline:hover{background:#ffffff21}
.pf-profile-overview{margin:20px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.pf-profile-overview article,.pf-profile-panel{background:linear-gradient(145deg,#222646,#1a203c);border:1px solid var(--pf-line);box-shadow:0 10px 25px #05071820;border-radius:21px;padding:23px;min-width:0}
.pf-profile-overview article span,.pf-profile-overview article small{display:block;color:#b9c4de;font-size:12px}.pf-profile-overview article strong{display:block;font-size:clamp(28px,3.5vw,40px);letter-spacing:-.04em;color:#f7f8ff;margin:10px 0 4px}
.pf-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:18px}
.pf-panel-head{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:15px}.pf-panel-head h2,.pf-profile-settings h2{font-size:20px!important;color:#fff!important;margin:0!important}.pf-panel-head small{color:#9ce8d7}
.pf-panel-note{color:#a0b0ce!important;font-size:12px;margin:15px 0 0!important;line-height:1.65}
.pf-mini-tag{font-size:11px;padding:7px 10px;border-radius:100px;background:#35d8b31c;border:1px solid #35d8b34d;color:#74ead6}
.pf-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.pf-week-day{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;padding:12px 0;background:#ffffff08;border:1px solid #ffffff17;border-radius:13px}
.pf-week-day span{font-size:11px;color:#a5b1d1}.pf-week-day strong{font-size:19px;color:#657092}.pf-week-day.is-active{background:#1aa6a32a;border-color:#35d8b386}.pf-week-day.is-active strong{color:#57edc8}
.pf-phoneme-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pf-phoneme-columns h3{font-size:13px!important;color:#dfe6fa;margin:0 0 10px}
.pf-phone-items{display:grid;gap:7px}.pf-phone-pill{display:flex;align-items:center;justify-content:space-between;background:#ffffff0c;border:1px solid #ffffff12;border-radius:10px;padding:8px 10px}.pf-phone-pill strong{font-size:16px;color:#76f2d4}.pf-phone-pill small{font-size:10px;color:#b8c3dc}.pf-muted{color:#9ca9c6;font-size:12px}
.pf-profile-assessment{margin-bottom:18px}.pf-profile-assessment>p{margin-top:0}.pf-test-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.pf-test-controls label{color:#d4def3;font-weight:650}.pf-test-controls select{min-height:42px;border-radius:10px;padding:6px 12px;background:#2a2f53!important;color:#eff4ff!important;border:1px solid #585e91!important}
.pf-test-root{max-width:740px;margin-top:16px}.pf-test-stage{background:#13193188;border:1px solid #ffffff24;border-radius:18px;padding:22px;display:grid;gap:16px}.pf-test-stage h3{color:#fff;font-size:21px;margin:0}.pf-test-stage p{margin:0}.pf-test-skill-head{display:flex;gap:5px;flex-wrap:wrap}.pf-test-skill-head span{padding:6px 10px;background:#ffffff12;border-radius:15px;color:#b0bce0;font-size:11px}.pf-test-skill-head span.active{background:#2eceb53b;color:#a6fff0}
.pf-test-english{font-size:20px;font-weight:750;color:#fff!important}.pf-test-passage{background:#ffffff12;border-left:3px solid #57d6bf;padding:14px;border-radius:8px;color:#e3e8f9!important}
.pf-test-choices{display:grid;gap:9px}.pf-test-choice{padding:15px 14px;text-align:left;border:1px solid #7881a352;background:#33395d;color:#fff;border-radius:12px;cursor:pointer;min-height:48px}.pf-test-choice:hover{border-color:#67e1d1;background:#2f4566}
.pf-test-choice:disabled{opacity:.75;cursor:default}.pf-test-message{font-size:13px;color:#a8e6d6!important}.pf-test-message.warning{color:#f7b685!important}.pf-test-score{font-size:26px;font-weight:800;color:#a3f6df!important}.pf-test-finish{display:flex;gap:9px;flex-wrap:wrap}.pf-test-finish span{border:1px solid #ffffff33;border-radius:10px;padding:8px 11px}
.pf-test-answer{width:100%;border:1px solid #666f9d!important;background:#242a4b!important;color:#fff!important;padding:13px;border-radius:11px}
.pf-profile-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}.pf-profile-settings p{margin:8px 0 0}.pf-profile-settings .header-voice-area{display:flex;gap:8px;align-items:center}
.pf-profile-settings .voice-picker-button{background:#f8fbff!important}
.pf-auth-backdrop[hidden]{display:none!important}.pf-auth-backdrop{position:fixed;inset:0;z-index:1000;background:#070914c7;display:grid;place-items:center;padding:20px;backdrop-filter:blur(10px)}
.pf-auth-glass{width:min(100%,430px);position:relative;border-radius:25px;padding:clamp(24px,4vw,36px);background:linear-gradient(160deg,rgba(68,69,127,.92),rgba(25,31,63,.95));border:1px solid #e1e1ff5b;box-shadow:0 30px 100px #0009;color:#fff;display:grid;gap:13px}
.pf-auth-glass h2{color:#fff;margin:0;font-size:30px}.pf-auth-glass>p,.pf-auth-glass>small{color:#c2cae5;line-height:1.55}.pf-auth-glass>p{margin:0}.pf-auth-x{position:absolute;right:14px;top:12px;border:0;background:#ffffff17;color:#fff;border-radius:8px;font-size:24px;width:37px;height:37px;cursor:pointer}
.pf-auth-glass form{display:grid;gap:14px}.pf-auth-glass form label{display:grid;gap:6px;font-size:12px;color:#dde2ff}.pf-auth-glass form label[hidden]{display:none}.pf-auth-glass input{width:100%;background:#1b2140!important;color:#fff!important;border:1px solid #8a8eaf!important;border-radius:10px;padding:12px;min-height:44px}
.pf-auth-switch{border:0;background:transparent;color:#aef7e9;padding:7px;min-height:26px}.pf-auth-glass #pf-auth-error{color:#ffd5bb;font-size:12px;margin:0}
@media(max-width:1020px){.pf-profile-grid{grid-template-columns:1fr}.pf-profile-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.pf-profile-hero{flex-direction:column;align-items:stretch}.pf-profile-identity{min-width:0;flex-wrap:wrap}.pf-profile-overview{gap:10px}.pf-profile-overview article,.pf-profile-panel{padding:17px}.pf-header-username{max-width:95px}.pf-profile-settings{flex-direction:column;align-items:flex-start}.pf-phoneme-columns{grid-template-columns:1fr}}
@media(max-width:430px){.pf-profile-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.pf-week-days{gap:4px}.pf-week-day{padding:10px 0}.pf-week-day span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.pf-profile-page *{animation:none!important;transition:none!important}}

/* Profile is new; adapt its panels to the original PeakFour light palette, not a global dark theme. */
:root{--pf-line:#dae8ee;--pf-ink:#173b4b}
.pf-header-profile{background:#f4f8ff;color:#173759;border-color:#d7e5f7;box-shadow:0 2px 10px #16395b08}
.pf-header-profile:hover{background:#e7f3fd}
.pf-profile-page,.pf-profile-page .pf-profile-panel{color:#173b4b!important}
.pf-profile-hero{background:linear-gradient(118deg,#e8fff4,#eff6ff 80%)!important;border:1px solid #d8eee8!important;box-shadow:0 15px 32px #0c456014!important}
.pf-profile-hero h1,.pf-profile-hero h2{color:#164450!important}
.pf-profile-hero p,.pf-profile-panel p{color:#547081!important}
.pf-profile-identity{background:#ffffffd9!important;border-color:#cde7df!important}
.pf-profile-identity strong{color:#173b4b!important}.pf-profile-identity small{color:#567282!important}
.pf-profile-overview article,.pf-profile-panel{background:#fff!important;border:1px solid #dce9ee!important;box-shadow:0 8px 28px #14516b0b!important}
.pf-profile-overview article span,.pf-profile-overview article small{color:#577388!important}
.pf-profile-overview article strong{color:#173b4b!important}
.pf-panel-head h2,.pf-profile-settings h2,.pf-phoneme-columns h3{color:#173b4b!important}
.pf-panel-head small,.pf-phone-pill strong{color:#078d73!important}
.pf-week-day strong{color:#46647b!important}.pf-week-day.is-active strong{color:#057c64!important}
.pf-phone-pill{background:#f3faf7!important;border-color:#d6eee5!important}
.pf-phone-pill small,.pf-muted{color:#5e7385!important}
.pf-test-controls label{color:#173b4b!important}.pf-test-controls select{background:#fff!important;color:#173b4b!important;border:1px solid #b9d5e0!important}
.pf-test-stage{background:#f6fafc!important;border-color:#d7e6ec!important}
.pf-test-stage h3,.pf-test-english{color:#183d50!important}
.pf-test-skill-head span{background:#e7f3f3!important;color:#446674!important}
.pf-test-skill-head span.active{background:#d2f7e7!important;color:#08765c!important}
.pf-test-passage{background:#edf8f4!important;color:#214858!important}
.pf-test-choice{background:#fff!important;border-color:#cbdde7!important;color:#1e4052!important}
.pf-test-choice:hover{background:#ecf9f3!important;border-color:#10a580!important}
.pf-test-answer{background:#fff!important;border:1px solid #cbdde7!important;color:#183d50!important}
.pf-test-message{color:#216755!important}.pf-test-score{color:#087d62!important}
.pf-auth-glass{background:linear-gradient(142deg,#fff,#f4f8ff 85%)!important;border-color:#bcdbe7!important;color:#173b4b!important;box-shadow:0 24px 65px #0a38533b!important}
.pf-auth-glass h2{color:#173b4b!important}
.pf-auth-glass>p,.pf-auth-glass>small,.pf-auth-glass form label{color:#567081!important}
.pf-auth-glass input{background:#fff!important;color:#173b4b!important;border-color:#bbd1e2!important}
.pf-auth-glass .pf-auth-x{background:#eef3f7!important;color:#173b4b!important}
.pf-auth-switch{color:#087d62!important}
#page-profile button:focus-visible,#page-profile select:focus-visible{outline:3px solid #12a889!important;outline-offset:2px}
