/* Scoped Settings styles: no inherited dark hero or legacy completion score. */
#page-profile{max-width:1000px;margin:auto}
#page-profile .profile-modern{display:grid;gap:20px}
#page-profile .settings-intro{background:transparent;border:0;padding:0;color:var(--ref-ink)}
#page-profile .settings-intro h2{font-size:clamp(24px,4vw,32px);letter-spacing:-.04em;margin:0 0 10px}
#page-profile p{line-height:1.65}
#page-profile .profile-kicker{color:#c24127}
#page-profile .settings-card{padding:24px;border:1px solid var(--ref-line);border-radius:16px;background:var(--ref-surface)}
#page-profile h3{margin:0 0 6px;font-size:18px;color:var(--ref-ink)}
#page-profile .field label{color:var(--ref-muted)}
#page-profile .settings-heading{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
#page-profile .settings-heading p{margin:0;color:var(--ref-muted);max-width:600px}
#page-profile .settings-heading button{flex-shrink:0}
#page-profile .settings-help,#page-profile .field small{color:var(--ref-muted);font-size:13px;line-height:1.6}
#page-profile .settings-account{display:grid;grid-template-columns:1fr 2fr;gap:20px;margin:0}
#page-profile dt{font-size:12px;color:var(--ref-muted);margin-bottom:6px}
#page-profile dd{margin:0;overflow-wrap:anywhere;font-weight:600}
#page-profile fieldset{border:0;border-top:1px solid var(--ref-line);padding:20px 0;margin:20px 0 0;min-width:0}
#page-profile legend{padding:0 8px 0 0;font-weight:600}
#page-profile input:not([type=checkbox]),#page-profile select,#page-profile textarea{color:var(--ref-ink);background:var(--ref-surface);border:1px solid var(--ref-line);border-radius:9px;padding:11px 12px;min-height:44px;max-width:100%;box-sizing:border-box}
#page-profile #settingsInterests,#page-profile #settingsRegionSearch{width:100%}
#page-profile .settings-options,#page-profile .settings-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#page-profile #settingsRegions{max-height:240px;overflow-y:auto;padding:3px}
#page-profile .settings-choice{min-height:40px;padding:8px 12px;border-radius:9px;border:1px solid var(--ref-line);background:var(--ref-surface);color:var(--ref-ink);font:inherit;font-size:13px;cursor:pointer}
#page-profile .settings-choice[aria-pressed=true]{border-color:#d9442b;background:#fff2ee;color:#a52c19}
#page-profile .settings-check{display:flex;align-items:center;gap:10px;min-height:44px}
#page-profile .settings-check input{width:18px;height:18px;accent-color:#c24127}
#page-profile .settings-save-status{padding:14px 18px;border-radius:10px;background:var(--ref-surface);border:1px solid var(--ref-line);color:var(--ref-ink)}
#page-profile .settings-optional{border:1px solid var(--ref-line);border-radius:16px;padding:20px;background:var(--ref-surface)}
#page-profile summary{cursor:pointer;font-weight:600;font-size:16px;min-height:28px}
#page-profile .profile-steps{margin:20px 0;display:flex;flex-wrap:wrap}
#page-profile .profile-card{margin-top:16px;padding:18px}
#page-profile .savebar{position:sticky;bottom:12px;z-index:10;background:var(--ref-surface);border:1px solid var(--ref-line);padding:14px 18px;border-radius:12px;box-shadow:0 5px 20px #0001}
#page-profile .savebar span{color:var(--ref-muted)}
#page-profile .primary{background:#c63f29!important;border-color:#c63f29!important;color:#fff!important}
#page-profile [aria-invalid=true]{border-color:#dc2626!important}
.profile-dirty #page-profile #profileSaveHint{color:#b3371f}
.dark-mode.profile-dirty #page-profile #profileSaveHint{color:#ffb29c}
#page-profile button:focus-visible,#page-profile summary:focus-visible,#page-profile input:focus-visible{outline:3px solid #e56543;outline-offset:3px}
#page-profile button:disabled{opacity:.6;cursor:wait}
#page-profile .settings-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.dark-mode #page-profile .settings-choice[aria-pressed=true]{background:#42251f;color:#ffb29c;border-color:#ff8a75}
.dark-mode #page-profile .profile-kicker{color:#ffb29c}
@media(max-width:640px){#page-profile .settings-card{padding:18px}#page-profile .settings-heading{flex-direction:column;gap:12px}#page-profile .settings-account{grid-template-columns:1fr;gap:16px}#page-profile .savebar{bottom:74px;flex-wrap:wrap}#page-profile .savebar span{flex-basis:100%}#page-profile .savebar button{width:100%}#page-profile input,#page-profile select,#page-profile textarea{font-size:16px}}
