#accountPanel{line-height:1.8}#accountPanel>.small{margin-top:20px}.profile-layout{display:grid;grid-template-columns:1fr 1.4fr;gap:60px}.profile-layout h3{margin:16px 0}.profile-layout progress{width:100%;height:6px;accent-color:#111}.profile-layout label{display:block;margin-bottom:20px;font-size:12px}.profile-layout input,.profile-layout textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #aaa;background:transparent;font:inherit;font-size:16px}.profile-layout img{width:80px;height:80px;object-fit:cover}.profile-layout button:not(.button){background:transparent;border:1px solid #aaa;padding:10px;margin:10px 0}#memberGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.member-card{border:1px solid #333;padding:25px;overflow-wrap:anywhere}.member-card img,.avatar-placeholder{width:64px;height:64px;object-fit:cover;background:#222;margin-bottom:20px}.avatar-placeholder{display:grid;place-items:center;font-size:25px}.member-card h3{font-size:21px}.member-card p{font-size:13px;line-height:1.8;color:#aaa;margin:12px 0}.member-card .small{display:block;margin-top:20px}@media(max-width:700px){header nav a[href="#account"],header nav a[href="#members"]{display:block}header nav a[href="#simulator"]{display:none}header nav{gap:12px}.profile-layout{grid-template-columns:1fr;gap:30px}#memberGrid{grid-template-columns:1fr}.profile-layout input{max-width:100%}}
.auth-switch{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.auth-switch button{font-size:12px}#authStatus{margin-top:18px;line-height:1.7;font-size:13px}
/* Dedicated member views and shared account components. */
[hidden]{display:none!important}.account-nav{display:flex;align-items:center;gap:24px;flex-shrink:0;font-size:12px}.account-nav a{padding:12px 0;color:#aaa}.account-nav a:hover,.account-nav a[aria-current]{color:#fff}.account-nav #accountLink{border:1px solid #555;padding:11px 18px}.member-view main{min-height:calc(100svh - 82px)}.member-view #account,.member-view #members{min-height:calc(100svh - 82px);padding-top:64px;padding-bottom:80px}.member-view .section-heading{margin-bottom:24px}.back-academy{display:inline-block;font-size:12px;margin:0 0 40px;color:inherit;opacity:.65}.back-academy:hover{opacity:1}#accountPanel{max-width:1120px;margin:0 auto;overflow-wrap:anywhere}.profile-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:48px;align-items:start}.profile-layout>*{min-width:0}.profile-layout>div{padding:28px 0}.profile-layout h3{font-size:clamp(24px,3vw,38px);line-height:1.2;letter-spacing:-1px}.profile-layout p{font-size:14px;line-height:1.8}.profile-layout .small{font-size:12px;color:#666}.profile-layout form{padding:36px;background:#fafaf8;border:1px solid #d8d8d2;min-width:0}.profile-form-heading{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #ddd}.profile-form-heading h3{font-size:28px;margin:10px 0}.profile-form-heading p{color:#777}.profile-layout label{font-size:12px;font-weight:500;line-height:1.6;margin-bottom:24px}.profile-layout input,.profile-layout textarea{box-sizing:border-box;min-width:0;max-width:100%;width:100%;border:1px solid #c8c8c3;background:#fff;padding:14px 16px;line-height:1.5;border-radius:0;color:#111}.profile-layout textarea{resize:vertical;min-height:120px}.profile-layout input:focus,.profile-layout textarea:focus{outline:2px solid #111;outline-offset:3px}.profile-layout input[type=file]{font-size:12px;padding:12px;overflow:hidden}.profile-layout input::file-selector-button{font:inherit;padding:8px 10px;border:0;background:#e9e9e4;margin-right:10px}.profile-layout button{cursor:pointer;color:#111;min-height:44px;white-space:normal;line-height:1.5}.profile-layout .button{display:flex;justify-content:center;width:100%;background:#111;color:#fff;padding:16px;border:1px solid #111;font-size:13px}.profile-layout button:disabled{opacity:.5;cursor:wait}.photo-editor{padding:20px;background:#f0f0eb;margin-bottom:24px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.photo-editor label{width:100%;margin:0}.photo-editor img{width:88px;height:88px;object-fit:cover;border:1px solid #ddd}.profile-layout .photo-editor button{margin:0;font-size:12px;padding:10px 14px}.profile-layout progress{margin:20px 0}.auth-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid #ddd;padding-top:20px}.profile-layout .auth-switch button{margin:0;border:0;padding:10px 4px;font-size:12px;color:#555}.profile-layout .auth-switch button:hover{background:#eee}#authStatus,#profileStatus{overflow-wrap:anywhere;margin-top:16px}.member-card{padding:28px;background:#111}.member-card h3{line-height:1.4}.member-card p{white-space:pre-wrap}#loadMembers{margin-top:28px}
@media(max-width:1100px){header{gap:18px}header nav{gap:14px}header .nav-button{display:none}.account-nav{gap:16px}.profile-layout{gap:28px}}
@media(max-width:850px){header nav{display:none}.account-nav{margin-left:auto}.profile-layout{grid-template-columns:minmax(0,1fr)}.profile-layout>div{padding:0}.profile-layout form{padding:28px}.profile-layout h3{font-size:28px}#memberGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.account-nav{gap:12px;font-size:11px}.account-nav #accountLink{padding:9px 12px}.member-view #account,.member-view #members{padding:36px 20px 60px}.member-view .section-heading{gap:12px;align-items:start}.member-view .section-heading>p{display:none}.back-academy{margin-bottom:28px}.profile-layout form{padding:22px 18px}.profile-layout{gap:24px}.profile-layout input,.profile-layout textarea{font-size:16px}.profile-layout h3{font-size:26px}.auth-switch{gap:4px}#memberGrid{grid-template-columns:minmax(0,1fr)}.member-card{padding:24px}}
.member-name,.profile-display-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-display-name{font-size:26px;line-height:1.4;font-weight:500;margin-bottom:30px;letter-spacing:-.6px}.owner-badge{position:relative;display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;flex:0 0 23px;background:#080808;color:#fff;border:1px solid #626262;border-radius:7px;box-shadow:0 0 0 2px #8882;overflow:hidden;vertical-align:middle;animation:badge-glow 4s ease-in-out infinite}.owner-badge svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;z-index:1}.owner-badge:after{content:'';position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 35%,#ffffff50 50%,transparent 65%);transform:translateX(-100%);animation:badge-sheen 5s ease-in-out infinite}@keyframes badge-sheen{0%,65%{transform:translateX(-100%)}90%,100%{transform:translateX(100%)}}@keyframes badge-glow{0%,100%{border-color:#555;box-shadow:0 0 0 2px #8882}50%{border-color:#aaa;box-shadow:0 0 10px #aaa3}}@media(prefers-reduced-motion:reduce){.owner-badge,.owner-badge:after{animation:none}.owner-badge:after{display:none}}
.account-nav .leaderboard-link{display:grid;place-items:center;width:34px;height:34px;padding:7px;background:#deded9;border:1px solid #777;border-radius:7px;color:#080808}.leaderboard-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.account-nav .leaderboard-link:hover,.account-nav .leaderboard-link[aria-current]{background:#fff;color:#000}.chapter-badge{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;flex:0 0 23px;border-radius:7px;background:linear-gradient(135deg,#080808,#262626);border:1px solid currentColor;color:var(--metal);box-shadow:inset 0 0 6px #ffffff0a}.chapter-badge svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}.tier-bronze{--metal:#be8c64}.tier-silver{--metal:#c9ced4}.tier-gold{--metal:#e1c36f}.tier-diamond{--metal:#e0f5ff}.member-view #leaderboard{min-height:calc(100svh - 82px);padding-top:64px}.rank-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.rank-legend>div{display:flex;align-items:center;gap:14px;border:1px solid #ccc;padding:20px}.rank-legend b{display:block;font-size:14px;font-weight:500}.rank-legend small{display:block;color:#777;font-size:11px;margin-top:5px}.rank-note{color:#666;line-height:1.7;margin-bottom:32px}.rank-row{display:grid;grid-template-columns:50px minmax(0,1fr) 140px;gap:24px;align-items:center;border-top:1px solid #ccc;padding:24px 0}.rank-row:last-child{border-bottom:1px solid #ccc}.rank-position{font-size:22px;color:#777;font-variant-numeric:tabular-nums}.rank-name{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:20px;overflow-wrap:anywhere}.rank-person{min-width:0}.rank-role{display:block;font-size:11px;color:#777;margin-top:8px}.rank-score b{display:block;text-align:right;font-size:22px;font-weight:500}.rank-score b span{font-size:12px;color:#777}.rank-score progress{display:block;width:100%;height:4px;margin-top:12px;accent-color:#111}.rank-score progress::-webkit-progress-bar{background:#d7d7d2}.rank-score progress::-webkit-progress-value{background:#111}@media(max-width:700px){.rank-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rank-legend>div{padding:14px;gap:10px}.rank-row{grid-template-columns:28px minmax(0,1fr) 68px;gap:12px;padding:22px 0}.rank-name{font-size:16px;gap:7px}.rank-position{font-size:16px}.rank-score b{font-size:18px}.member-view #leaderboard{padding:36px 20px 60px}.account-nav{gap:10px}.account-nav .leaderboard-link{width:30px;height:30px;padding:5px}}@media(max-width:380px){header .brand-group{gap:7px}header .owner-line{display:none}.account-nav{gap:8px}}
.rank-person{display:flex;align-items:center;gap:14px}.rank-avatar{display:block;width:44px;height:44px;flex:0 0 44px;object-fit:cover;border:1px solid #c9c9c4;border-radius:7px}.rank-avatar-placeholder{display:grid;place-items:center;background:#171717;color:#eee;font-size:18px}.rank-identity{min-width:0;flex:1}@media(max-width:700px){.rank-person{gap:10px}.rank-avatar{width:36px;height:36px;flex-basis:36px}.rank-avatar-placeholder{font-size:15px}}

#profileAdmin{margin-top:64px;padding:32px;border:1px solid #c8c8c0;border-radius:14px;background:#e7e7e1;max-width:900px}#profileAdmin[hidden],#profileAdminForm[hidden]{display:none}#profileAdmin h3{font-size:30px;letter-spacing:-1px;margin:12px 0 28px}#profileAdmin label{display:block;font-size:13px;line-height:1.6;margin:20px 0}#profileAdmin input,#profileAdmin textarea,#profileAdmin select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;border:1px solid #aaa;background:#f4f4ee;color:#111;font:inherit;font-size:16px;padding:12px;border-radius:7px;margin-top:8px}#profileAdmin fieldset{padding:0;border:0;min-width:0}#profileAdmin button{padding:12px 18px;border:1px solid #aaa;border-radius:7px;background:transparent;color:#111;cursor:pointer;font:inherit;font-size:13px}#profileAdmin button[type=submit]{background:#111;color:#eee;border-color:#111}#profileAdminStatus{font-size:13px;line-height:1.7;margin-top:20px}.admin-photo-row{display:flex;flex-wrap:wrap;align-items:center;gap:18px}.admin-photo-row label{flex:1;min-width:0}#adminPhotoPreview{width:72px;height:72px;border-radius:12px;object-fit:cover}.admin-profile-actions{display:flex;flex-wrap:wrap;gap:12px}#profileAdmin button:disabled{opacity:.5;cursor:wait}@media(max-width:600px){#profileAdmin{padding:20px;margin-top:40px}#profileAdmin h3{font-size:26px}.admin-photo-row{align-items:start}.admin-photo-row label{flex-basis:100%}.admin-profile-actions{flex-direction:column}}
