/* Personal settings: one content plane with a stable section rail. */
.site-main:has(.profile-settings){width:100%;max-width:none;margin:0}
.profile-settings{--profile-ink:#193537;--profile-muted:#526c70;--profile-line:#dfe8e9;--profile-accent:#326b62;min-height:calc(100vh - 82px);padding:56px max(24px,calc((100% - 1160px)/2)) 80px;background:linear-gradient(135deg,#eef5f5 0%,#f7f9fa 55%,#f4f8f7 100%);color:var(--profile-ink)}
.profile-settings .settings-heading{max-width:none;margin:0 0 36px;padding:0}
.profile-settings .account-kicker{margin:0 0 12px!important;font-size:11px!important;letter-spacing:.12em}
.profile-settings .settings-heading h1{margin:0 0 12px;font-size:clamp(28px,3vw,40px);line-height:1.25;letter-spacing:-.035em}
.profile-settings .settings-heading>p:not(.account-kicker){max-width:640px;margin:0;color:var(--profile-muted);font-size:14px;line-height:1.65}
.profile-layout{display:grid;grid-template-columns:256px minmax(0,1fr);gap:40px;align-items:start}
.profile-rail{position:sticky;top:104px;min-width:0;padding-top:12px}
.profile-identity{display:flex;align-items:center;gap:14px;padding:0 8px 28px;border-bottom:1px solid var(--profile-line)}
.profile-identity-icon{display:grid;flex:0 0 48px;height:48px;place-items:center;border:1px solid #d2e2de;border-radius:16px;background:#e3eeea;color:var(--profile-accent)}
.profile-identity-icon svg{width:25px;height:25px}
.profile-identity>div{display:grid;gap:5px;min-width:0}
.profile-identity strong{overflow-wrap:anywhere;font-size:16px;font-weight:600;line-height:1.4}
.profile-identity>div>span{color:var(--profile-muted);font-size:12px;line-height:1.5}
.profile-nav{display:grid;gap:6px;margin:22px 0 32px}
.profile-nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;border-radius:10px;color:var(--profile-muted);font-size:13px;font-weight:500;line-height:1.5;text-decoration:none;transition:background .2s,color .2s}

.profile-nav a>b{margin-left:auto;font-size:17px;font-weight:400}
.profile-nav a:hover,.profile-nav a:focus-visible{background:#e2eeea;color:#234e46}
.profile-registration{display:grid;gap:8px;padding:0 12px}
.profile-registration>span{color:var(--profile-muted);font-size:12px}
.profile-registration strong{font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}
.profile-settings .settings-card{max-width:none;min-width:0;margin:0;padding:8px 36px 0;border:1px solid var(--profile-line);border-radius:18px;background:#fff;box-shadow:0 12px 40px #1b3d4206}
.profile-settings .settings-section,.profile-settings .settings-section:first-of-type{padding:28px 0;border-bottom:1px solid var(--profile-line);scroll-margin-top:110px}
.profile-settings .settings-section h2{margin:0 0 24px;color:var(--profile-ink);font-size:18px;line-height:1.45;letter-spacing:-.02em}
.profile-settings .settings-grid{gap:22px 24px}
.profile-settings .settings-grid>label{min-width:0;margin:0;align-content:start;gap:9px;font-size:14px}
.profile-settings .settings-grid label>span{color:var(--profile-muted);font-size:12px;font-weight:500;line-height:1.5}
.profile-settings .settings-grid input:not([type=radio]):not([type=checkbox]),.profile-settings .settings-grid select,.profile-settings .settings-section textarea{max-width:100%;min-height:46px;padding:11px 12px;border:1px solid #d8e3e5;border-radius:9px;background:#fafcfc;color:var(--profile-ink);font:inherit;font-size:14px;line-height:1.5;box-shadow:none;transition:border-color .2s,box-shadow .2s}
.profile-settings .settings-grid input:disabled{color:var(--profile-muted);background:#f1f5f5}
.profile-settings input[type=radio],.profile-settings input[type=checkbox]{accent-color:var(--profile-accent)}
.profile-settings :is(input,select,textarea):focus{outline:0;border-color:var(--profile-accent);box-shadow:0 0 0 3px #326b621a}
.profile-settings :is(a,button,summary):focus-visible{outline:2px solid var(--profile-accent);outline-offset:4px}
.profile-settings .settings-grid small,.profile-settings .settings-hint{color:var(--profile-muted);font-size:12px;line-height:1.65}
.profile-settings .settings-hint{margin:0 0 20px}
.profile-settings details{margin-top:24px;padding-top:20px;border-top:1px solid var(--profile-line)}
.profile-settings summary{color:var(--profile-accent);cursor:pointer;font-size:13px;line-height:1.6}
.profile-settings .password-section{margin:0;padding:28px 0!important;border:0;border-radius:0;background:transparent}
.profile-settings .password-section .settings-grid>label:first-child{grid-column:1/-1}
.profile-settings .password-section .settings-grid>label:first-child>input{max-width:calc(50% - 12px)}
.profile-savebar{display:flex;justify-content:flex-end;margin:0 -36px;padding:20px 36px;border-top:1px solid var(--profile-line);border-radius:0 0 18px 18px;background:#f8fbfa}
.profile-settings .settings-submit{display:flex;gap:32px;width:auto;min-width:190px;min-height:46px;margin:0;padding:12px 20px;border-radius:10px;background:var(--profile-accent);box-shadow:none;font-size:14px;line-height:1.5}
.profile-settings .settings-submit:hover{background:#27574f;transform:none;box-shadow:none}
.profile-settings .settings-card textarea{width:100%;resize:vertical}
@media(max-width:1024px){.profile-layout{grid-template-columns:210px minmax(0,1fr);gap:24px}.profile-settings .settings-card{padding-right:24px;padding-left:24px}.profile-savebar{margin-right:-24px;margin-left:-24px;padding-right:24px;padding-left:24px}.profile-settings .settings-grid{column-gap:16px}}
@media(max-width:767px){.profile-settings{padding:32px 20px 48px}.profile-settings .settings-heading{margin-bottom:24px}.profile-layout{grid-template-columns:minmax(0,1fr);gap:20px}.profile-rail{position:static;padding:0}.profile-identity{padding:0 0 16px;border:0}.profile-registration{display:none}.profile-nav{display:flex;gap:4px;margin:0;overflow-x:auto;padding:4px 0}.profile-nav a{flex:0 0 auto;min-height:44px;padding:10px;font-size:12px;background:#eaf1ef}.profile-nav a>b{display:none}.profile-settings .settings-card{padding:0 24px}.profile-settings .settings-section{scroll-margin-top:88px}.profile-settings .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-settings .settings-submit{width:100%;justify-content:space-between}}
@media(max-width:480px){.profile-settings{padding-right:16px;padding-left:16px}.profile-settings .settings-card{padding:0 20px;border-radius:14px}.profile-settings .settings-grid{grid-template-columns:minmax(0,1fr);gap:20px}.profile-settings .password-section .settings-grid>label:first-child>input{max-width:100%}.profile-savebar{margin:0 -20px;padding:16px 20px;border-radius:0 0 14px 14px}.profile-nav a{gap:6px}}

/* Radio options already contain labels; keep the group outside a label. */
.profile-settings .profile-choice{min-width:0;margin:0;padding:0;border:0}
.profile-settings .profile-choice legend{float:none;width:auto;margin:0 0 9px;padding:0;color:var(--profile-muted);font-size:12px;font-weight:500;line-height:1.5}
.profile-settings .profile-choice-options{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;min-height:46px}
.profile-settings .profile-choice-options label{display:inline-flex;align-items:center;gap:8px;margin:0;color:var(--profile-ink);font-size:14px;line-height:1.5;cursor:pointer}
.profile-settings .profile-choice-options input[type=radio]{flex:0 0 18px;width:18px;height:18px;margin:0}
.profile-settings .profile-choice small{display:block;margin-top:9px;color:var(--profile-muted);font-size:12px;line-height:1.65}

.profile-avatar-editor{display:flex;align-items:center;gap:24px}
.profile-avatar-preview{display:grid;place-items:center;flex:0 0 96px;width:96px;height:96px;overflow:hidden;border:1px solid #d2e2de;border-radius:50%;background:#eaf2ef;color:var(--profile-accent)}
.profile-avatar-preview img{width:100%;height:100%;object-fit:cover}
.profile-avatar-preview svg{width:40px;height:40px}
.profile-avatar-controls{min-width:0}
.profile-avatar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.profile-settings .profile-avatar-upload{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:10px 16px;border:1px solid #c9dbd5;border-radius:9px;background:#eff6f3;color:#28594f;font-size:14px;font-weight:500;cursor:pointer;overflow:hidden}
.profile-avatar-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.profile-avatar-upload:focus-within{outline:2px solid var(--profile-accent);outline-offset:3px}
.profile-avatar-upload:hover{background:#e1eee8}
.profile-avatar-delete{display:inline-flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:9px;color:#974646;font-size:13px;text-decoration:none}
.profile-avatar-delete:hover{background:#fbefef;color:#783434}
.profile-settings .profile-avatar-note,.profile-settings .profile-avatar-status{margin:10px 0 0;color:var(--profile-muted);font-size:12px;line-height:1.65}
.profile-settings .profile-avatar-status:empty{display:none}
@media(max-width:480px){.profile-avatar-editor{align-items:flex-start;gap:16px}.profile-avatar-preview{flex-basis:72px;width:72px;height:72px}.profile-avatar-actions{align-items:flex-start;gap:4px}.profile-settings .profile-avatar-upload{padding:10px 12px}}
.profile-avatar-preview .files-avatar{display:grid;place-items:center;width:100%;height:100%}
.profile-avatar-preview .files-avatar img{width:100%;height:100%;max-width:none;object-fit:cover;border-radius:50%}
.profile-avatar-delete{border:0;background:transparent;font-family:inherit;cursor:pointer}
.profile-avatar-delete[hidden]{display:none!important}
.profile-avatar-editor .progress{width:100%;height:4px;margin-top:12px;background:#e4eeea}
.profile-avatar-editor .progress.hidden{display:none}
.profile-avatar-editor .progress-bar{height:100%;background:var(--profile-accent)}
