.profile-menu{position:relative}.profile-trigger{display:grid;place-items:center;list-style:none;width:39px;height:39px;border-radius:50%;border:2px solid rgba(255,255,255,0.2);font:700 12px Manrope,sans-serif;cursor:pointer;user-select:none;transition:all .2s ease}.profile-trigger::-webkit-details-marker{display:none}.profile-menu[open] .profile-trigger{outline:2px solid var(--accent,#a855f7);outline-offset:3px}.avatar-sand{background:#d6c2a0;color:#473c2a}.avatar-sage{background:#10b981;color:#fff}.avatar-blue{background:#0284c7;color:#fff}.avatar-rose{background:#ec4899;color:#fff}.avatar-purple{background:#a855f7;color:#fff}.avatar-amber{background:#f59e0b;color:#fff}.profile-dropdown{position:absolute;top:52px;right:0;width:245px;padding:10px;background:#10131ee6;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(255,255,255,0.14);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,0.75);z-index:100;text-align:left}.menu-identity{padding:10px 10px 16px;border-bottom:1px solid rgba(255,255,255,0.08);margin-bottom:7px}.menu-identity strong{font-size:14px;display:block;color:#f8fafc;overflow-wrap:anywhere}.menu-identity>span{font-size:10px;color:#94a3b8;display:block;margin-top:6px}.profile-dropdown>a{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:9px;font-size:13px;color:#cbd5e1;transition:all .15s ease}.profile-dropdown>a:hover{background:rgba(255,255,255,0.08);color:#fff}.profile-dropdown>a>span{width:17px;color:var(--accent,#a855f7)}.profile-dropdown>a>svg{margin-left:auto;width:14px;height:14px}.member-nav{display:flex;gap:8px;padding:0 0 20px;border-bottom:1px solid rgba(255,255,255,0.08);margin:0 0 27px;flex-wrap:wrap}.member-nav a{font-size:13px;color:#94a3b8;padding:10px 17px;border-radius:22px;border:1px solid transparent;transition:all .15s ease}.member-nav a.active{background:rgba(255,255,255,0.1);color:#fff;border-color:rgba(255,255,255,0.15)}.member-nav a:hover{color:#fff;background:rgba(255,255,255,0.06)}.profile-banner{display:flex;align-items:center;gap:25px;background:linear-gradient(135deg,#131627 0%,#0c0e18 100%);padding:36px;border:1px solid rgba(255,255,255,0.1);border-radius:18px;margin-bottom:26px;position:relative;overflow:hidden}.profile-large-avatar{display:grid;place-items:center;width:96px;height:96px;flex:0 0 96px;border-radius:29px;font:700 34px Manrope,sans-serif;border:3px solid rgba(255,255,255,0.18);background:#0c0e18;position:relative}.profile-banner-copy{flex:1;min-width:0}.profile-banner h1{font-weight:700;font-size:32px;margin:12px 0 9px;color:#f8fafc;overflow-wrap:anywhere}.profile-banner p{font-size:14px;color:#94a3b8;margin:0 0 12px;line-height:1.7;overflow-wrap:anywhere}.profile-banner .eyebrow{font-size:9px;letter-spacing:2px;color:var(--accent,#a855f7)}.profile-local-label{font-size:11px;color:#64748b}.profile-banner>.button{font-size:12px}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.profile-stats>div{background:#0e111d;border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:22px;text-align:center}.profile-stats strong{display:block;font:700 31px Manrope,sans-serif;color:#f8fafc}.profile-stats span{font-size:9px;color:#94a3b8;letter-spacing:1.5px;display:block;margin-top:8px}.profile-content{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:25px}.profile-saved-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px 16px}.profile-saved-art{aspect-ratio:2/2.7;overflow:hidden;border-radius:12px;background:#141727;display:grid;place-items:center;color:#64748b;font-size:35px}.profile-saved-art img{width:100%;height:100%;object-fit:cover}.profile-saved-grid h3{font-size:13px;line-height:1.5;margin:10px 0 6px;font-weight:600;color:#f1f5f9}.profile-saved-grid a>span{font-size:11px;color:#94a3b8}.member-panel{background:linear-gradient(165deg,#111422 0%,#0b0d16 100%);border:1px solid rgba(255,255,255,0.09);border-radius:18px;padding:28px;position:relative;overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,0.55)}.member-panel h2{font-size:22px;font-weight:700;letter-spacing:-.5px;color:#f8fafc}.member-panel h3{font-size:18px;font-weight:600;margin:16px 0 12px;color:#f1f5f9}.member-panel p{font-size:13px;color:#94a3b8;line-height:1.8}.anilist-badge{display:inline-flex;align-items:end;background:#2b9bc9;color:white;padding:9px 11px;border-radius:9px;font:800 23px Manrope;line-height:1}.anilist-badge span{color:#152f4b}.profile-side .button{font-size:11px;width:100%;padding:9px 10px}.profile-community-link{display:block;margin-top:18px;padding:21px;background:#10131e;border-radius:14px;border:1px solid rgba(255,255,255,0.09)}.profile-community-link strong{display:block;font-size:14px;font-weight:600;color:#f8fafc;margin-bottom:10px}.profile-community-link>span{display:flex;justify-content:space-between;font-size:11px;color:#94a3b8}.profile-community-link svg{width:15px;height:15px}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:24px;position:relative;z-index:1}.panel-title h2{margin:0;font-size:20px;font-weight:700;display:flex;align-items:center;gap:8px}.panel-title>span,.panel-tag{font-size:9px;font-weight:800;letter-spacing:1.4px;color:var(--accent,#a855f7);background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);padding:3px 8px;border-radius:6px;text-transform:uppercase}.avatar-editor{display:flex;align-items:flex-start;gap:24px;margin-bottom:24px;position:relative;z-index:1}.avatar-editor .profile-large-avatar{width:88px;height:88px;flex-basis:88px;border-radius:26px;font-size:28px}.avatar-editor strong{font-size:13px;font-weight:700;color:#f8fafc}.avatar-options{display:flex;gap:9px;margin-top:12px}.avatar-option{width:25px;height:25px;border-radius:50%;position:relative;cursor:pointer}.avatar-option input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.avatar-option:has(input:checked){outline:2px solid var(--accent,#a855f7);outline-offset:3px}.avatar-option:focus-within{outline:2px solid white;outline-offset:3px}.settings-field{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#cbd5e1;margin-bottom:20px;position:relative;z-index:1}.settings-field input,.settings-field textarea{width:100%;border:1px solid rgba(255,255,255,0.12);background:#0b0d14;color:#f8fafc;border-radius:10px;padding:12px 14px;font:14px 'DM Sans',sans-serif;outline:none;transition:border-color .15s,box-shadow .15s}.settings-field textarea{resize:vertical;min-height:90px;line-height:1.7}.settings-field input:focus,.settings-field textarea:focus{border-color:var(--accent,#a855f7);box-shadow:0 0 0 3px var(--accent-glow,rgba(168,85,247,0.25))}.settings-field small{font-size:11px;color:#64748b;line-height:1.6}.member-panel .button{font-size:12px;min-height:40px}.form-feedback{font-size:12px!important;color:var(--accent,#a855f7)!important;margin:12px 0 0;min-height:18px}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,0.06)}.preference-row:first-child{padding-top:0}.preference-row>span{flex:1}.preference-row strong{font-size:13px;font-weight:600;color:#f1f5f9;display:block}.preference-row small{font-size:11px;color:#94a3b8;line-height:1.65;display:block;margin-top:6px}.preference-row select,.library-row select{background:#0e111d;border:1px solid rgba(255,255,255,0.12);border-radius:8px;padding:8px 12px;font-size:12px;color:#f8fafc;max-width:180px}.preference-row input.setting-switch{appearance:none;width:38px;height:22px;flex:0 0 38px;position:relative;background:#202538;border-radius:15px;cursor:pointer;margin:0;transition:background .2s}.setting-switch:before{content:'';width:16px;height:16px;position:absolute;top:3px;left:3px;background:#94a3b8;border-radius:50%;transition:transform .2s}.preference-row input.setting-switch:checked{background:var(--accent,#a855f7)}.setting-switch:checked:before{background:#fff;transform:translateX(16px)}#preference-settings>.button{margin-top:21px}.data-panel{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.data-panel h2{font-size:20px;margin-bottom:9px}.data-panel>div:first-child{max-width:600px}.data-panel p{margin:0}.data-panel .member-note{width:100%;font-size:11px;color:#64748b}.member-note{font-size:12px;color:#64748b;line-height:1.75;margin:20px 0 0}.library-tools{margin-bottom:24px}.library-status-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:9px;scrollbar-width:none}.library-status-tabs a{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;padding:9px 12px;border-radius:8px;color:#94a3b8;background:#121524}.library-status-tabs a.active{color:#fff;background:rgba(255,255,255,0.14)}.library-status-tabs span{font-size:10px;color:#64748b}.library-actions{display:flex;justify-content:space-between;align-items:center;margin-top:16px;gap:15px}.library-actions .search-form{max-width:360px;flex:1;background:#121524}.library-table{border:1px solid rgba(255,255,255,0.08);border-radius:14px;overflow:hidden;background:#0d0f19}.library-table-heading,.library-row{display:grid;grid-template-columns:minmax(0,1fr) 145px 110px 60px 25px;gap:20px;align-items:center;padding:15px 20px}.library-table-heading{font-size:9px;letter-spacing:1.4px;color:#94a3b8;background:#131626}.library-row{border-top:1px solid rgba(255,255,255,0.06)}.library-anime{display:flex;align-items:center;gap:14px;min-width:0}.library-anime img,.library-no-image{width:41px;height:59px;border-radius:6px;object-fit:cover;flex-shrink:0}.library-no-image{display:grid;place-items:center;background:#1c2035;color:var(--accent,#a855f7)}.library-anime>div{min-width:0}.library-anime h3{font-size:13px;line-height:1.5;font-weight:600;margin:0 0 5px;color:#f1f5f9;overflow-wrap:anywhere}.library-anime span{font-size:10px;color:#94a3b8}.library-progress{display:flex;align-items:center;gap:6px}.library-progress input{width:55px;border:1px solid rgba(255,255,255,0.12);background:#131626;padding:8px 4px 8px 8px;border-radius:6px;color:#f8fafc;font-size:12px}.library-progress>span{font-size:10px;color:#94a3b8}.library-score{font-size:12px;color:#f59e0b;font-weight:700}.library-remove{padding:0;background:none;color:#64748b;font-size:21px}.library-remove:hover{color:#ef4444}.import-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:25px;margin-bottom:25px}.import-panel{padding:30px}.import-brand-line{display:flex;align-items:center;gap:22px;margin-bottom:24px}.import-brand-line>span:nth-child(2){font-size:22px;color:#94a3b8}.import-brand-line .brand{font-size:30px}.import-panel h2{font-size:25px;margin-bottom:12px}.import-panel>p{max-width:530px;margin-bottom:22px}.import-input{display:flex;align-items:center;background:#0d0f19;border:1px solid rgba(255,255,255,0.12);border-radius:8px;padding-left:13px}.import-input>span{font-size:12px;color:#94a3b8;white-space:nowrap}.import-input input{background:transparent;border:0;min-width:0;padding-left:4px;color:#f8fafc}.import-assurances{border-top:1px solid rgba(255,255,255,0.08);padding-top:18px;display:flex;gap:11px;flex-wrap:wrap}.import-assurances>span{font-size:10px;color:#94a3b8}.import-guide>ol{list-style:none;counter-reset:steps;padding:0;margin:23px 0}.import-guide li{counter-increment:steps;position:relative;padding:0 0 12px 35px}.import-guide li:before{content:counter(steps);position:absolute;left:0;top:-3px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#1d2238;color:#cbd5e1;font-size:11px}.import-guide li strong{font-size:13px;font-weight:600;color:#f1f5f9}.import-guide li p{font-size:12px;margin:7px 0 13px}.import-guide>a{font-size:11px;color:var(--accent,#a855f7)}.form-error{font-size:12px!important;color:#f87171!important;line-height:1.7}.form-error:empty{display:none}.import-statuses{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.import-statuses label{display:flex;gap:7px;align-items:center;padding:9px 11px;background:#121524;border:1px solid rgba(255,255,255,0.08);border-radius:7px;font-size:12px;color:#cbd5e1}.import-statuses input,.import-overwrite input{accent-color:var(--accent,#a855f7)}.import-statuses label>span{font-size:10px;color:#94a3b8}.import-summary{display:flex;gap:25px;font-size:12px;color:#94a3b8;margin:18px 0}.import-summary b{font-size:20px;font-weight:700;margin-right:5px;color:#f8fafc}.import-overwrite{display:flex;align-items:center;gap:9px;font-size:12px;color:#cbd5e1;line-height:1.7;margin-bottom:20px}.import-preview-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.import-preview-list>div{display:flex;align-items:center;gap:10px;padding:10px;background:#101320;border-radius:8px}.import-preview-list img,.import-no-cover{width:33px;height:48px;object-fit:cover;border-radius:4px;flex-shrink:0}.import-no-cover{display:grid;place-items:center;color:var(--accent,#a855f7);background:#1e2338}.import-preview-list strong{font-size:12px;font-weight:600;color:#f1f5f9;line-height:1.5;display:block}.import-preview-list small{font-size:10px;color:#94a3b8;line-height:1.5;display:block;margin-top:5px}.import-review-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid rgba(255,255,255,0.08);margin-top:23px;padding-top:20px}.import-review-footer p{font-size:12px;margin:0}.import-review-footer .button{white-space:nowrap}
html[data-ratings=hide] .poster-top{display:none}html[data-density=compact] .poster-grid.wide{grid-template-columns:repeat(7,minmax(0,1fr))}html[data-density=compact] .poster-grid:not(.wide){gap:18px 12px}html[data-motion=off] *,html[data-motion=off] *:before,html[data-motion=off] *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
@media(max-width:1200px){.header-inner{gap:18px}.header-nav{gap:15px}.header-tools{gap:10px}.header-tools .search-form{max-width:170px}.profile-content{grid-template-columns:minmax(0,1fr) 240px}.library-table-heading,.library-row{gap:13px;grid-template-columns:minmax(0,1fr) 125px 90px 45px 20px}.import-preview-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.settings-layout{grid-template-columns:1fr}.import-layout{grid-template-columns:1fr}.profile-content{grid-template-columns:1fr}.profile-side{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.profile-community-link{margin:0}.profile-banner{padding:25px;gap:20px}.profile-banner h1{font-size:28px}.profile-large-avatar{width:80px;height:80px;flex-basis:80px;border-radius:25px;font-size:29px}html[data-density=compact] .poster-grid.wide{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:600px){.profile-trigger{width:34px;height:34px;font-size:10px}.header-tools{gap:8px}.header-tools .button{padding:8px 10px}.profile-dropdown{top:46px;width:225px}.member-page .page-title{display:block}.member-page .page-title>.local-badge{display:inline-flex;margin-top:12px}.member-nav{gap:3px;padding-bottom:16px;margin-bottom:22px}.member-nav a{font-size:12px;padding:9px 12px}.profile-banner{padding:22px;flex-wrap:wrap;gap:15px}.profile-large-avatar{width:65px;height:65px;flex-basis:65px;border-radius:21px;font-size:23px}.profile-banner-copy{min-width:160px}.profile-banner h1{font-size:25px;margin-top:8px}.profile-banner .eyebrow{font-size:8px}.profile-banner p{font-size:12px}.profile-banner>.button{font-size:11px;min-height:36px;margin-left:80px;padding:8px 15px}.profile-stats{grid-template-columns:repeat(2,1fr);gap:12px}.profile-stats>div{padding:18px}.profile-stats strong{font-size:27px}.profile-stats span{font-size:8px}.profile-saved-grid{gap:19px 12px}.profile-saved-grid h3{font-size:12px}.profile-side{grid-template-columns:1fr}.member-panel{padding:20px}.member-panel h2{font-size:20px}.preference-row{gap:14px}.preference-row small{font-size:11px}.preference-row select{font-size:11px;max-width:115px}.settings-field{font-size:12px}.data-panel{display:block}.data-panel .actions{margin:18px 0}.panel-title>span{font-size:7px}.library-table-heading{display:none}.library-row{grid-template-columns:minmax(0,1fr) 90px 23px;gap:12px;padding:15px}.library-anime{grid-column:1/3;gap:12px}.library-remove{grid-column:3;grid-row:1}.library-row select{grid-column:1;grid-row:2;max-width:150px}.library-progress{grid-column:2;grid-row:2}.library-score{grid-column:3;grid-row:2;font-size:11px}.library-anime h3{font-size:12px}.library-actions{gap:10px}.library-actions .search-form input{font-size:12px;width:100px}.library-actions .button{font-size:11px;padding:8px 10px;gap:5px}.library-status-tabs a{font-size:11px}.import-panel{padding:22px}.import-brand-line{gap:17px}.import-panel h2{font-size:23px}.import-input>span{font-size:10px}.import-input input{font-size:13px}.import-assurances{display:grid;gap:9px}.import-preview-list{grid-template-columns:1fr}.import-summary{flex-wrap:wrap;gap:13px}.import-summary span{font-size:11px}.import-summary b{font-size:18px}.import-statuses{gap:7px}.import-statuses label{font-size:11px;padding:8px}.import-review-footer{display:block}.import-review-footer .button{margin-top:15px}.import-overwrite{font-size:11px}.member-note{font-size:11px}html[data-density=compact] .poster-grid.wide{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* ── Pixel-Perfect Account Card ── */
.account-card{max-width:480px!important;margin:32px auto!important;background:linear-gradient(165deg,rgba(26,27,36,0.9) 0%,rgba(18,19,26,0.96) 100%)!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(255,255,255,0.12)!important;border-radius:20px!important;padding:36px 32px!important;box-shadow:0 20px 60px rgba(0,0,0,0.65),inset 0 1px 0 rgba(255,255,255,0.08)!important}
.account-card-header{text-align:center;margin-bottom:28px}
.account-card-brand{display:flex;justify-content:center;margin-bottom:14px}
.account-card h2{font-size:24px!important;font-weight:700!important;color:#fff!important;margin:0 0 8px!important;letter-spacing:-0.5px}
.account-card-desc{font-size:13px;color:#9ca3af;margin:0;line-height:1.6}
.account-card .settings-field{margin-bottom:18px;text-align:left;font-size:12px;font-weight:600;color:#c9c6bc;letter-spacing:0.4px}
.account-card .settings-field input{margin-top:6px;background:#14151e;border:1px solid rgba(255,255,255,0.12);border-radius:10px;padding:12px 14px;font-size:14px;color:#fff;transition:border-color .15s,box-shadow .15s;width:100%;box-sizing:border-box}
.account-card .settings-field input:focus{border-color:#dec5a3;box-shadow:0 0 0 3px rgba(222,197,163,0.18)}
.account-card .actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.account-card .actions .button{justify-content:center;min-height:46px;font-size:13px;font-weight:600;width:100%}
.account-card-hint{font-size:11px;color:#71717a;text-align:center;margin:16px 0 0}
.account-signed-in{text-align:center}
.account-email{font-size:16px;font-weight:700;color:#e8be89;margin:0 0 8px}
.account-note{font-size:13px;color:#a5af97;line-height:1.7;margin:0 0 20px}
.account-conflict{font-size:12px;color:#fca5a5;margin-top:14px;line-height:1.6}
#cloud-feedback:empty{display:none}
#cloud-feedback{margin-top:16px;padding:10px 14px;border-radius:8px;font-size:12px;text-align:center;background:rgba(239,68,68,0.12);border:1px solid rgba(239,68,68,0.25);color:#fca5a5}
@media(max-width:520px){
  .account-card{padding:26px 20px!important;margin:20px auto!important;border-radius:16px!important}
  .account-card .actions{grid-template-columns:1fr}
}

/* ── Custom PFP & Settings (Yoru Nocturnal Lounge Theme) ── */
.profile-trigger.has-custom-avatar,
.menu-identity-pfp.has-custom-avatar,
.profile-large-avatar.has-custom-avatar {
  background: var(--raised, #24212d) !important;
  border-color: var(--line, #302c3b) !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.header-pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.menu-identity {
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.menu-identity-pfp {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--line, #302c3b);
  background: var(--raised, #24212d);
}
.menu-identity-pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-large-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Yoru Member Panels & Profile Banner */
.member-panel {
  background: var(--panel, #1b1922) !important;
  border: 1px solid var(--line, #302c3b) !important;
  border-radius: 12px !important;
  padding: 26px !important;
  box-shadow: none !important;
}
.profile-banner {
  background: var(--panel, #1b1922) !important;
  border: 1px solid var(--line, #302c3b) !important;
  border-radius: 14px !important;
  padding: 28px !important;
  margin-bottom: 24px !important;
}
.profile-banner h1 {
  font-family: 'Manrope', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--ink, #f4f1fb) !important;
  letter-spacing: -0.5px !important;
}
.profile-banner p {
  color: var(--muted, #aaa5b7) !important;
  font-size: 13px !important;
}
.profile-banner .eyebrow {
  color: var(--accent, #ad8aff) !important;
}
.profile-stats > div {
  background: var(--panel, #1b1922) !important;
  border: 1px solid var(--line, #302c3b) !important;
  border-radius: 10px !important;
}
.profile-stats strong {
  color: var(--ink, #f4f1fb) !important;
}
.profile-stats span {
  color: var(--muted, #aaa5b7) !important;
}

/* Settings Layout */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel-head {
  margin-bottom: 20px;
}
.panel-head h2 {
  font-family: 'Manrope', sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
  margin: 0 0 5px !important;
  color: var(--ink, #f4f1fb) !important;
}
.panel-head p {
  font-size: 13px !important;
  color: var(--muted, #aaa5b7) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Avatar Editor */
.avatar-editor {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line, #302c3b);
}
.avatar-stage-wrap {
  flex-shrink: 0;
}
.avatar-editor .profile-large-avatar {
  width: 74px !important;
  height: 74px !important;
  flex: 0 0 74px !important;
  border-radius: 50% !important;
  border: 2px solid var(--line, #302c3b) !important;
  background: var(--raised, #24212d) !important;
  font-size: 24px !important;
  color: var(--muted, #aaa5b7) !important;
}
.avatar-meta {
  flex: 1;
  min-width: 0;
}
.avatar-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.avatar-subhead {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted, #aaa5b7);
  margin-bottom: 8px;
}
.preset-avatar-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preset-avatar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
}
.preset-avatar-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line, #302c3b);
  background: var(--raised, #24212d);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.preset-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preset-avatar-btn:hover .preset-avatar-thumb {
  border-color: var(--accent, #ad8aff);
  transform: scale(1.06);
}
.preset-avatar-btn.active .preset-avatar-thumb {
  border-color: var(--accent, #ad8aff);
  outline: 2px solid var(--accent, #ad8aff);
  outline-offset: 2px;
}
.preset-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted, #aaa5b7);
}
.preset-avatar-btn.active .preset-name {
  color: var(--ink, #f4f1fb);
  font-weight: 600;
}

/* Settings Form Fields */
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink, #f4f1fb);
}
.settings-field span {
  font-weight: 600;
}
.settings-field input,
.settings-field textarea {
  width: 100%;
  background: var(--raised, #24212d) !important;
  border: 1px solid var(--line, #302c3b) !important;
  border-radius: 8px !important;
  color: var(--ink, #f4f1fb) !important;
  padding: 10px 14px !important;
  font: 14px 'DM Sans', sans-serif !important;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.settings-field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.settings-field input:focus,
.settings-field textarea:focus {
  border-color: var(--accent, #ad8aff) !important;
}
.settings-field small {
  font-size: 11px;
  color: var(--muted, #aaa5b7);
  line-height: 1.5;
}

/* Theme Accent Swatches */
.theme-accent-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.theme-swatch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--raised, #24212d);
  border: 1px solid var(--line, #302c3b);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.theme-swatch-item:hover {
  border-color: #484158;
}
.theme-swatch-item.active {
  border-color: var(--accent, #ad8aff);
  background: rgba(173, 138, 255, 0.07);
}
.theme-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-swatch-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #f4f1fb);
}
.theme-swatch-check {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent, #ad8aff);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.theme-swatch-item.active .theme-swatch-check {
  opacity: 1;
}

/* Preference Rows & Toggles */
.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #302c3b) !important;
}
.preference-row:first-of-type {
  padding-top: 0;
}
.preference-row:last-of-type {
  border-bottom: 0 !important;
  padding-bottom: 0;
}
.preference-row > span {
  flex: 1;
}
.preference-row strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #f4f1fb);
  display: block;
}
.preference-row small {
  font-size: 12px;
  color: var(--muted, #aaa5b7);
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}
.preference-row select {
  background: var(--raised, #24212d) !important;
  border: 1px solid var(--line, #302c3b) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: var(--ink, #f4f1fb) !important;
  max-width: 200px;
  outline: none;
}
.preference-row select:focus {
  border-color: var(--accent, #ad8aff) !important;
}
.preference-row input.setting-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  flex: 0 0 40px;
  position: relative;
  background: #2b2737;
  border: 1px solid var(--line, #302c3b);
  border-radius: 12px;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, border-color 0.2s;
}
.preference-row input.setting-switch:before {
  content: '';
  width: 16px;
  height: 16px;
  position: absolute;
  top: 2px;
  left: 2px;
  background: #847d92;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.preference-row input.setting-switch:checked {
  background: var(--accent, #ad8aff);
  border-color: var(--accent, #ad8aff);
}
.preference-row input.setting-switch:checked:before {
  background: #17101f;
  transform: translateX(18px);
}
.form-feedback {
  font-size: 12px !important;
  color: var(--accent, #ad8aff) !important;
  margin: 12px 0 0 !important;
  min-height: 18px;
}

/* Data Panel */
.data-panel {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.data-panel h2 {
  font-family: 'Manrope', sans-serif !important;
  font-size: 18px !important;
  margin: 0 0 6px !important;
  color: var(--ink, #f4f1fb) !important;
}
.data-panel p {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #aaa5b7);
}
.data-panel .actions {
  display: flex;
  gap: 10px;
}
.data-panel .member-note {
  width: 100%;
  font-size: 11px;
  color: #797188;
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .member-panel {
    padding: 18px !important;
  }
  .avatar-editor {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .avatar-action-row {
    justify-content: center;
  }
  .preset-avatar-grid {
    justify-content: center;
  }
  .theme-accent-swatches {
    grid-template-columns: 1fr;
  }
  .preference-row select {
    max-width: 140px;
    font-size: 12px !important;
  }
}
