.profile-editor{overflow:visible}.profile-photo-row{display:flex;align-items:center;gap:16px;margin-bottom:18px}.profile-photo-preview{width:88px;height:88px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(145deg,#20160a,#0a0a0a);border:2px solid rgba(211,162,74,.68);box-shadow:0 0 0 5px rgba(211,162,74,.06);font-size:26px;color:var(--gold2);font-weight:900}.profile-photo-preview img{width:100%;height:100%;object-fit:cover}.profile-photo-actions{margin-top:9px}.profile-upload-btn{cursor:pointer}.profile-hint{font-size:10px;margin-top:4px}.readonly-input{opacity:.62;cursor:not-allowed}.theme-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.theme-option{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:'icon title' 'icon sub';column-gap:10px;align-items:center;padding:13px;border-radius:15px;border:1px solid rgba(211,162,74,.16);background:#0c0c0c;cursor:pointer;transition:.18s}.theme-option input{position:absolute;opacity:0;pointer-events:none}.theme-option>span{grid-area:icon;font-size:24px}.theme-option>strong{grid-area:title}.theme-option>small{grid-area:sub;color:var(--muted);font-size:10px;margin-top:2px}.theme-option.selected{border-color:#a97834;background:linear-gradient(135deg,rgba(211,162,74,.12),rgba(211,162,74,.035));box-shadow:0 0 0 2px rgba(211,162,74,.05)}

html[data-theme='light']{color-scheme:light;--bg:#f4efe5;--bg2:#f8f4ec;--surface:#fffdf8;--surface2:#f4ede0;--surface3:#ece2d2;--line:#d8c8ae;--text:#2c2419;--muted:#7b6e5d;--gold:#b58032;--gold2:#8f6425;--gold3:#6f4a19;--shadow:0 24px 70px rgba(75,55,25,.12);--soft:0 10px 30px rgba(75,55,25,.08)}
html[data-theme='light'] body{background:radial-gradient(circle at 85% -10%,rgba(211,162,74,.16),transparent 30%),linear-gradient(180deg,#faf7f0 0,#f3ecdf 48%,#eee5d7 100%);color:var(--text)}
html[data-theme='light'] body:before{opacity:.22;background-image:linear-gradient(rgba(92,67,34,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(92,67,34,.035) 1px,transparent 1px)}
html[data-theme='light'] .topbar{background:rgba(255,253,248,.82);border-color:rgba(158,113,47,.18)}
html[data-theme='light'] .card{background:linear-gradient(150deg,rgba(255,254,250,.98),rgba(247,240,228,.98));border-color:rgba(158,113,47,.2);box-shadow:var(--soft)}
html[data-theme='light'] .card:before{background:linear-gradient(90deg,transparent,rgba(181,128,50,.28),transparent)}
html[data-theme='light'] .hero{background:linear-gradient(135deg,#fff6e5 0,#f2e4ca 48%,#fffdf8 100%);border-color:rgba(181,128,50,.32);box-shadow:0 18px 55px rgba(140,94,29,.1),var(--soft)}
html[data-theme='light'] .hero:after{background:radial-gradient(circle,rgba(211,162,74,.2),transparent 68%)}
html[data-theme='light'] .avatar,html[data-theme='light'] .profile-photo-preview{background:linear-gradient(145deg,#fff6e2,#ead7b6);border-color:rgba(181,128,50,.62);color:#8b6025}
html[data-theme='light'] .metric{background:linear-gradient(155deg,#fffdf8,#f2e9db)}
html[data-theme='light'] .metric-label,html[data-theme='light'] .field label{color:#776955}
html[data-theme='light'] .input,html[data-theme='light'] select,html[data-theme='light'] textarea{background:#fffdfa;color:#2c2419;border-color:#d3c1a5}
html[data-theme='light'] .input:focus,html[data-theme='light'] select:focus,html[data-theme='light'] textarea:focus{border-color:#b58032;box-shadow:0 0 0 3px rgba(181,128,50,.12)}
html[data-theme='light'] .btn{background:#f5ecdd;color:#34281a;border-color:#d5c2a3}
html[data-theme='light'] .btn-primary{background:linear-gradient(135deg,#e7bd6a,#c48b35);color:#20170d;border-color:#d9a956}
html[data-theme='light'] .btn-ghost{background:transparent}
html[data-theme='light'] .btn-danger{background:#f6dddd;color:#7d2f2f;border-color:#e3b0b0}
html[data-theme='light'] .count-pill,html[data-theme='light'] .status{background:#f5ead8;border-color:#ddc49d}
html[data-theme='light'] .tab{background:#fffaf2;color:#786b59;border-color:#dbc8a9}
html[data-theme='light'] .tab.active{background:linear-gradient(135deg,#f1dfbd,#fbf4e8);color:#80591f;border-color:#bb8a44}
html[data-theme='light'] .bottom-nav{background:rgba(248,243,234,.94);border-top-color:rgba(158,113,47,.2)}
html[data-theme='light'] .nav-btn{color:#7d7162}html[data-theme='light'] .nav-btn.active{color:#8a5f20;background:linear-gradient(180deg,rgba(181,128,50,.12),rgba(181,128,50,.04))}
html[data-theme='light'] .modal{background:#fffaf2;border-color:#d5bd98;box-shadow:0 30px 90px rgba(79,54,20,.18)}
html[data-theme='light'] .toast{background:#fff5e4;color:#3b2d1c;border-color:#c9a66b}
html[data-theme='light'] .theme-option{background:#fffaf2;border-color:#d9c6a7}.theme-option.selected{border-color:#a97834}
html[data-theme='light'] .login-card{background:linear-gradient(160deg,rgba(255,253,248,.98),rgba(244,236,223,.98));border-color:rgba(181,128,50,.28);box-shadow:0 35px 100px rgba(84,61,28,.16)}
html[data-theme='light'] .login-title{color:#786b59}
html[data-theme='light'] .remember-row{color:#736653}
html[data-theme='light'] .registration-note{background:linear-gradient(135deg,rgba(181,128,50,.1),rgba(181,128,50,.035));color:#6f604a}
html[data-theme='light'] .registration-security{color:#80735f}
html[data-theme='light'] .pending-card{background:linear-gradient(145deg,#fff6e7,#fffdf9)}
html[data-theme='light'] .pending-meta>div{background:#fffaf2;border-color:#dfcfb4}.pending-meta strong{color:#493923}

@media(max-width:520px){.profile-photo-row{align-items:flex-start}.profile-photo-preview{width:76px;height:76px}.theme-choice{grid-template-columns:1fr}.profile-photo-actions .btn{font-size:11px;padding:8px 9px}}