:root { --surface: #fff; --page: #f7f5f8; --ink: #1d1424; --muted: #625a69; --border: #e4dfea; --card: #fff; --soft: #faf6fd; }
body { background: var(--page); color: var(--ink); }
.settings-shell { max-width: 760px; min-height: calc(100vh - 70px); margin: auto; background: var(--surface); box-shadow: 0 0 25px #37004013; }
.settings-header { display: flex; align-items: center; gap: 8px; min-height: 78px; padding: 12px 16px 18px; color: #fff; background: linear-gradient(120deg, #51006e, #650079); }
.header-icon { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 44px; }
.back-link svg, .inner-back svg { transform: rotate(180deg); }
.settings-logo { flex: 1; justify-content: center; margin: 0; }
.settings-logo .logo-bag { width: 38px; height: 40px; background: linear-gradient(#ffad00, #ff4d00); }
.settings-logo strong { color: #ffb000; font-size: clamp(18px, 5vw, 25px); }
.settings-main { position: relative; margin-top: -10px; padding: 20px 16px 36px; border-radius: 20px 20px 0 0; background: var(--surface); }
.intro { text-align: center; }
h1 { margin: 0; color: #3c004f; font-size: clamp(24px, 7vw, 30px); line-height: 1.15; letter-spacing: -.5px; }
.intro p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.demo-note { margin: 12px 0; color: var(--muted); font-size: 12px; text-align: center; }
.profile-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--soft); box-shadow: 0 2px 6px #29102c0c; }
.profile-image { flex: none; width: 74px; height: 74px; border: 3px solid var(--surface); border-radius: 50%; object-fit: cover; box-shadow: 0 1px 5px #22002c30; }
.profile-copy, .row-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.profile-copy strong, .profile-copy small { overflow-wrap: anywhere; }
.profile-copy strong { font-size: 17px; }
.profile-copy small, .row-copy small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.badge { justify-self: start; padding: 3px 10px; border-radius: 20px; color: white; background: #8000b8; font-size: 12px; font-weight: 700; }
.settings-list { display: grid; gap: 7px; margin-top: 12px; }
.settings-row { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 60px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 13px; color: var(--ink); background: var(--card); text-align: left; box-shadow: 0 2px 5px #29102c0c; }
.settings-row:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, .photo-button:has(+ input:focus-visible) { outline: 3px solid #a950db; outline-offset: 2px; }
.row-copy strong { font-size: 14px; line-height: 1.2; }
.row-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; }
.row-icon svg { width: 25px; height: 25px; }
.purple { color: #8000b8; }.blue { color: #087fe4; }.orange { color: #f58b00; }.green { color: #10a64c; }
.row-value { color: #8000b8; font-size: 12px; font-weight: 700; }
.chevron { flex: none; width: 18px; height: 18px; }
.logout { width: 100%; min-height: 48px; margin-top: 16px; border: 1.5px solid #ed3030; border-radius: 13px; color: #d82424; background: transparent; font-weight: 700; }
.page-title { display: flex; align-items: center; gap: 10px; }
.page-title h1 { font-size: clamp(21px, 5.5vw, 27px); }
.inner-back { display: grid; flex: none; place-items: center; width: 36px; height: 44px; }
.photo-editor { display: grid; justify-items: center; gap: 8px; margin: 16px 0 22px; }
.photo-editor .profile-image { width: 108px; height: 108px; }
.photo-button { display: flex; align-items: center; gap: 6px; min-height: 40px; color: #8000b8; font-size: 14px; font-weight: 700; cursor: pointer; }
.photo-button svg { width: 20px; height: 20px; }
#profile-form { display: grid; gap: 10px; }
.field { display: grid; gap: 5px; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 13px; color: var(--ink); background: var(--card); text-align: left; box-shadow: 0 2px 5px #29102c0c; }
.field > span:first-child { font-size: 13px; font-weight: 700; }
.field input { width: 100%; min-width: 0; padding: 3px 0; border: 0; color: var(--ink); background: transparent; font-size: 16px; }
.field input:focus-visible { outline-offset: 1px; }
.password-mask { font-size: 16px; }.password-mask small { margin-left: 8px; color: var(--muted); font-size: 12px; }
.primary-button, .dialog-action { min-height: 48px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(120deg, #8700bd, #650096); font-weight: 700; }
.primary-button { width: 100%; margin-top: 12px; }
.form-status { min-height: 20px; margin: 0; color: #6a008e; font-size: 13px; }
.security-note { padding: 15px; border: 1px solid #e8d5f3; border-radius: 14px; color: #5d366d; background: #faf2ff; font-size: 14px; line-height: 1.4; }
.security-list .settings-row { min-height: 72px; }
dialog { width: min(390px, calc(100% - 32px)); max-height: 80vh; overflow: auto; padding: 22px; border: 0; border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 10px 40px #18002050; }
dialog::backdrop { background: #21002b99; }
dialog h2 { margin: 0 32px 10px 0; font-size: 20px; } dialog p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.dialog-close { float: right; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--ink); background: var(--soft); font-size: 24px; }
.dialog-action { width: 100%; margin-top: 15px; }
.theme-options { display: grid; gap: 8px; }.theme-options label { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.confirm-delete { width: 100%; min-height: 46px; margin-top: 8px; border: 1px solid #d82424; border-radius: 10px; color: #d82424; background: transparent; font-weight: 700; }
.dark-theme { color-scheme: dark; --surface: #211a26; --page: #151018; --ink: #f7f2fa; --muted: #cbbfd1; --border: #514257; --card: #2a222e; --soft: #33253a; }
.dark-theme h1 { color: #f1d8ff; }.dark-theme .security-note { color: #f1d8ff; background: #392841; border-color: #5e4169; }.dark-theme .row-value, .dark-theme .photo-button, .dark-theme .form-status { color: #d58bff; }
@media (max-width: 340px) { .settings-main { padding-right: 12px; padding-left: 12px; }.settings-header { gap: 2px; padding-right: 8px; padding-left: 8px; }.row-value { font-size: 11px; }.settings-row { gap: 7px; } }
