html:root body #darkModeBtn{transform:rotate(0deg)!important;transition:transform .4s ease!important}
html[data-theme=dark]:root body #darkModeBtn{transform:rotate(180deg)!important}
html:root body #cardDetailBody>.comment-section{margin:0 auto 24px!important}
html:root body #userHomeModal{background:var(--bg)!important;color:var(--text)!important}
#userHomeModal .profile-scroll{width:100%;max-width:1000px;margin:0 auto;padding:24px;box-sizing:border-box}
#userHomeModal .profile-card{background:var(--surface);color:var(--text);border:2px solid var(--border);border-radius:18px;padding:24px;box-sizing:border-box;min-width:0}
#userHomeModal .profile-identity{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:20px}
#userHomeModal .profile-avatar-button{flex:none;width:100px;height:100px;padding:0;border:2px solid var(--border);border-radius:50%;overflow:hidden;background:var(--soft);cursor:pointer}
#userHomeModal .profile-avatar-button img{width:100%;height:100%;object-fit:cover;display:block}
#userHomeModal .profile-identity-text{min-width:0;flex:1}
#userHomeModal .profile-name-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#userHomeModal h1{margin:0;font:700 24px/1.4 var(--font-crayon);overflow-wrap:anywhere}
#userHomeModal h2,.avatar-crop-dialog h2{margin:0;font:600 16px/1.5 var(--font-crayon)}
#userHomeModal #homeLevelBadge{padding:3px 8px;border-radius:6px;font-size:12px;background:var(--soft)!important;color:var(--text)!important}
#userHomeModal .profile-id{margin:6px 0;font-size:13px;overflow-wrap:anywhere}
.profile-muted{color:var(--muted);font-size:13px;line-height:1.6;margin:8px 0}
#userHomeModal .profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
#userHomeModal .profile-balance{font-size:32px;font-weight:700;margin-bottom:16px}
.profile-button{background:var(--soft)!important;color:var(--text)!important;border:1.5px solid var(--border)!important;border-radius:10px!important;padding:9px 14px!important;font:500 14px/1.4 var(--font-crayon)!important;cursor:pointer;touch-action:manipulation;box-shadow:none!important}
.profile-button:hover{filter:brightness(.95)}
.profile-button:focus-visible,.profile-text-button:focus-visible,#homeAvatarDisplay:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.profile-button:disabled{opacity:.55;cursor:wait}
.profile-primary{background:var(--button)!important;color:var(--button-text)!important}
.profile-text-button{border:0;background:none;color:var(--muted);text-decoration:underline;cursor:pointer;font:inherit;margin-left:10px}
.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#userHomeModal .profile-exp-track{height:10px;background:var(--soft);border-radius:10px;overflow:hidden;margin:18px 0 12px}
#userHomeModal #homeExpProgress{height:100%;width:0;transition:width .3s ease;background:var(--muted)!important}
#userHomeModal #renameBox{margin:14px 0;line-height:1.7}
#userHomeModal input:not([type=file]){width:100%;padding:10px 12px;border:1px solid var(--rule);border-radius:8px;background:var(--soft);color:var(--text);box-sizing:border-box;font:14px/1.5 var(--font-crayon)}
#userHomeModal input::placeholder{color:var(--muted);opacity:1}
#userHomeModal .profile-content-links{display:flex;flex-direction:column;gap:10px}
#userHomeModal #homeEmailWrap{background:none!important;border:0!important;padding:0!important;margin-top:18px!important}
#userHomeModal #homeEmailWrap button{background:var(--button)!important;color:var(--button-text)!important}
#userHomeModal .profile-ban{flex-basis:100%;background:var(--soft);padding:14px;border:1px solid var(--rule);border-radius:10px;line-height:1.8}
.avatar-crop-modal[hidden]{display:none!important}
.avatar-crop-modal{position:fixed;inset:0;z-index:100010;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);padding:16px;box-sizing:border-box}
.avatar-crop-dialog{width:720px;max-width:100%;max-height:calc(100dvh - 32px);overflow-y:auto;background:var(--surface);color:var(--text);border:3px solid var(--border);border-radius:18px;padding:20px;box-sizing:border-box}
.avatar-crop-layout{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:18px;align-items:start}
.avatar-crop-stage{height:340px;background:var(--soft);overflow:hidden;border-radius:10px}
.avatar-crop-stage>img{max-width:100%;display:block}
.avatar-crop-preview{height:112px!important;width:112px!important;border-radius:50%;overflow:hidden;border:2px solid var(--border);box-sizing:border-box;background:var(--soft)}
.avatar-crop-stage .cropper-view-box{outline-color:#eee;outline-width:2px}
.avatar-crop-stage .cropper-line,.avatar-crop-stage .cropper-point{background-color:#eee}
.guide-choice{max-width:680px;margin:24px auto;padding:0 12px;box-sizing:border-box}
.guide-choice h2{font-size:20px;margin:0 0 10px}
.guide-choice p{color:var(--muted);line-height:1.7}
.guide-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}
.guide-choice-button{display:flex;flex-direction:column;gap:8px;text-align:left;background:var(--surface);color:var(--text);border:3px solid var(--border);border-radius:16px;padding:24px;cursor:pointer;font:600 18px/1.5 var(--font-crayon)}
.guide-choice-button span{font-size:13px;color:var(--muted);font-weight:400}
.guide-frame-wrap{display:flex;flex-direction:column;height:100%;min-height:400px}
.guide-frame-toolbar{padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--rule)}
.guide-frame-wrap iframe{width:100%;flex:1;border:0;min-height:0;background:var(--bg)}
.resource-guide-body{width:100%;height:100%;box-sizing:border-box}
@media(max-width:600px){#userHomeModal .profile-scroll{padding:16px 12px}#userHomeModal .profile-grid{grid-template-columns:1fr;gap:14px}#userHomeModal .profile-card{padding:18px}#userHomeModal .profile-identity{gap:16px;margin-bottom:14px}#userHomeModal .profile-avatar-button{width:80px;height:80px}#userHomeModal h1{font-size:21px}.avatar-crop-layout{grid-template-columns:minmax(0,1fr) 72px;gap:10px}.avatar-crop-preview{width:72px!important;height:72px!important}.avatar-crop-stage{height:260px}.avatar-crop-dialog{padding:14px}.guide-choice-grid{grid-template-columns:1fr}.guide-choice-button{padding:20px}}
