:root{color-scheme:dark;font-family:system-ui,"Noto Sans KR",sans-serif;background:#0b0d17;color:#f0e4da}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 85% 14%,#3e3047 0%,transparent 42%),#0b0d17}
a{color:#e3ae86}.topbar{border-bottom:1px solid #3a3348;padding:18px max(20px,5vw);display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand{font-size:30px;letter-spacing:-2px;font-weight:800;color:#f2e1d0;text-decoration:none}.back{font-size:14px}
main{max-width:560px;padding:48px 18px 80px;margin:0 auto}
.eyebrow{color:#ddae86;font-size:12px;font-weight:800;letter-spacing:2px}
h1{font-size:clamp(30px,6vw,42px);line-height:1.25;margin:14px 0 10px}p{line-height:1.75;color:#c6b9c5}
.panel{background:#191826;border:1px solid #514359;border-radius:18px;padding:24px;margin-top:30px}
.switch{display:flex;gap:8px;margin-bottom:25px}.switch button{flex:1}
button,input{font:inherit}button{cursor:pointer;min-height:44px;border-radius:10px;border:1px solid #65566b;padding:10px 18px;background:#2d273b;color:#f0e4da}
button[aria-pressed="true"],button.primary{background:#d7a678;color:#18131e;border-color:#d7a678;font-weight:800}
button:disabled{cursor:wait;opacity:.55}
form{display:grid;gap:17px}label{font-size:14px;color:#e7d8d8;display:grid;gap:8px;font-weight:650}
input{width:100%;padding:13px 14px;background:#0e0e18;color:#f3e8e8;border:1px solid #786579;border-radius:9px;min-height:48px}
input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #eabf7c;outline-offset:3px}
.note{font-size:13px;color:#b8adbd}.alert{border-left:3px solid #dba781;padding:11px;background:#262132;border-radius:5px;color:#f3e5de}
.status{margin-top:17px;min-height:24px;font-size:14px}.status.error{color:#ffc5c5}
.card-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0}
.stat{border-radius:11px;background:#222132;padding:12px;text-align:center}
.stat strong{display:block;color:#e7b58e;font-size:27px}.stat span{font-size:12px;color:#d4c5d0}
.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.actions a{padding:11px 13px;border:1px solid #65566b;border-radius:9px;text-decoration:none}
footer{margin-top:36px;font-size:12px;color:#b6adbc}
[hidden]{display:none!important}
@media(max-width:400px){.panel{padding:18px}.card-rows{gap:5px}.stat{padding:9px 4px}}
.password-help{text-align:right;font-size:14px;margin:0}
.password-help a{color:#edbc94}
.notice{padding:12px;border:1px solid #64576b;border-radius:10px;background:#221e2b}
.help-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.help-actions a{padding:10px 16px;border:1px solid #65566b;border-radius:10px;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.success{color:#bde7c8}
h2{font-size:23px;margin:0 0 16px}
.auth-help{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.auth-help a,.auth-help button{font-size:14px;color:#edbc94}
.auth-help button{padding:9px 12px;background:transparent;border:1px solid #776178;min-height:44px}
.auth-help button:hover{background:#2d273b}

.email-error{color:#ffaaaa;margin:0;overflow-wrap:anywhere}


/* Profile and account settings — preview only. */
body:has(#profilePanel:not([hidden])){background:#101113}
body:has(#profilePanel:not([hidden])) main{max-width:850px}
body:has(#profilePanel:not([hidden])) .panel{background:#191b1f;border-color:#383b40;border-radius:14px;padding:clamp(20px,4vw,38px)}
.profile-identity{display:flex;align-items:center;gap:20px;padding:10px 0 20px;min-width:0}
.profile-identity>div:last-child{min-width:0}
.profile-identity strong{font-size:clamp(22px,4vw,30px);overflow-wrap:anywhere}
.profile-identity p{margin:5px 0;overflow-wrap:anywhere}
.profile-avatar{width:86px;height:86px;flex:none;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#34343c;border:1px solid #ffffff28;color:#e5c899;font-size:34px;font-weight:800}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#34343c}
#profileOnboarding{border-color:#e5c89955;background:#e5c8990d;margin:12px 0 22px;padding:16px}
#profileOnboarding p{font-size:13px;margin:5px 0 0}
.account-section-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-bottom:1px solid #373b41;padding:8px 0 16px;margin-bottom:24px}
.account-section-tabs button{background:#23262b;border:1px solid #373b41;border-radius:7px;color:#c9c9ce;padding:9px;font-size:13px}
.account-section-tabs button[aria-pressed="true"]{background:#e5c899;border-color:#e5c899;color:#161719}
.account-subsection h3{font-size:20px;letter-spacing:-.03em;margin:0 0 18px}
.account-subsection input,.account-subsection textarea{width:100%;background:#101113;border:1px solid #4c5056;border-radius:8px;padding:12px;color:#f1eee7;font:inherit}
.account-subsection textarea{resize:vertical;min-height:92px}
.account-subsection .primary{background:#e5c899;border-color:#e5c899;color:#161719}
.account-subsection .status{min-height:0;margin:10px 0}
.account-subsection .status.error{color:#ffc5c5}
.account-info-list{display:grid;grid-template-columns:minmax(85px,1fr) minmax(0,2fr);gap:14px;border:1px solid #373b41;padding:18px;border-radius:10px;margin-bottom:28px}
.account-info-list dt{font-size:13px;color:#b4b8bf}
.account-info-list dd{margin:0;overflow-wrap:anywhere}
.account-bottom-actions{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:30px;padding-top:24px;border-top:1px solid #373b41;flex-wrap:wrap}
.home-return{border:1px solid #68636a;border-radius:8px;padding:12px;color:#f1eee7;text-decoration:none;font-size:13px}
#withdrawButton{margin-top:16px;background:transparent;font-size:12px;color:#dcacaf;min-height:40px}
@media(max-width:400px){.profile-avatar{width:68px;height:68px;font-size:27px}.profile-identity{gap:12px}.account-section-tabs button{font-size:11px;padding:7px 3px}}


.password-input-wrap{display:block;position:relative;width:100%;min-width:0}
.password-input-wrap input{display:block;width:100%;min-width:0;padding-right:58px}
.password-input-wrap input::-ms-reveal,.password-input-wrap input::-ms-clear{display:none}
.password-visibility{position:absolute;top:50%;right:5px;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:7px;background:transparent;color:inherit;box-shadow:none;cursor:pointer}
.password-visibility:hover{background:#ffffff0d;color:#fff}
.password-visibility:focus-visible{outline:2px solid #e5c899;outline-offset:-3px}
.password-visibility svg{display:block;pointer-events:none}
.password-strength{margin-top:-7px}
.password-strength-track{display:flex;gap:5px}
.password-strength-track i{height:4px;flex:1;background:#55515c;border-radius:3px}
.password-strength[data-score="1"] i:first-child{background:#daa378}
.password-strength[data-score="2"] i:nth-child(-n+2){background:#e5c899}
.password-strength[data-score="3"] i{background:#98c7a0}
.password-strength p{margin:6px 0 0;font-size:12px}

.profile-file-field{display:grid;gap:9px}.profile-file-actions{display:flex;gap:8px;flex-wrap:wrap}.profile-file-actions button{min-height:42px;border-radius:8px;padding:10px 15px}.profile-file-actions #profileChoosePhoto{background:#e5c899;color:#161719;border-color:#e5c899}.profile-file-field .note{margin:0}
.profile-identity{align-items:flex-start}.profile-identity-copy{flex:1;min-width:0}.profile-identity-copy .profile-file-field{margin-top:12px;gap:7px}.profile-identity-copy .profile-file-field[hidden]{display:none!important}.profile-identity-copy .profile-file-actions button{min-height:36px;padding:7px 12px;font-size:12px}.profile-identity-copy .profile-file-field .note{font-size:12px;line-height:1.5;overflow-wrap:anywhere}@media(max-width:400px){.profile-identity-copy .profile-file-actions{gap:5px}.profile-identity-copy .profile-file-actions button{padding:7px 9px}}

@media(max-width:640px){#accountForm input,#memberProfileForm input,#memberProfileForm textarea,#resetForm input{font-size:16px;max-width:100%;min-width:0}}
