/* =========================================================
   Account settings page: profile, appearance, learning
   ========================================================= */
.set-head { position: absolute; inset-inline-start: 14px; top: 2px; width: 1414px; height: 80px}
.set-head h1 { margin: 0; font-size: 38px; font-weight: 600; letter-spacing: -.01em}
.set-head p { margin: 6px 0 0; font-size: 17px; color: var(--text-2)}
.set-nav { position: absolute; inset-inline-start: 14px; top: 90px; width: 280px; height: 777px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 4px}
.set-nav > button { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: center; padding: 12px 12px; border-radius: 12px; text-align: start; color: var(--text-2); transition: background .2s, color .2s}
.set-nav > button b { display: block; font-size: 15.5px; font-weight: 500; color: var(--text)}
.set-nav > button small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 2px}
.set-nav > button:hover { background: var(--tile)}
.set-nav > button.on { background: #161617; color: var(--accent); box-shadow: none}
.set-nav > button.on b { color: var(--accent)}
.set-acc { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line)}
.set-acc-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none}
.set-acc-av img, .set-acc-av svg { width: 100%; height: 100%; object-fit: cover; display: block}
.set-acc b { display: block; font-size: 15px; font-weight: 600}
.set-acc small { display: block; font-size: 12.5px; color: var(--muted)}
.set-out { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin-top: 6px; border-radius: 10px; color: var(--text-2); font-size: 14.5px}
.set-out:hover { background: var(--tile); color: var(--red)}
.set-body { position: absolute; inset-inline-start: 306px; top: 90px; width: 1122px; height: 777px; padding-block: 4px 24px; padding-inline: 4px 6px}
.set-h2 { margin: 2px 0 14px; font-size: 24px; font-weight: 600}
.set-card { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 14px}
.set-card h4 { margin: 0; font-size: 18px; font-weight: 600}
.set-p { margin: 6px 0 14px; font-size: 14.5px; color: var(--text-2); line-height: 1.45}
.set-row { display: flex; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line)}
.set-row:last-child { border-bottom: 0; padding-bottom: 2px}
.set-row > div:first-child { flex: 1}
.set-row b { display: block; font-size: 15.5px; font-weight: 500; color: var(--text)}
.set-row small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4}
.set-seg { width: 360px; margin-top: 0; flex: none}
.set-btns { display: flex; gap: 10px}
.set-ai-h { display: flex; gap: 14px; align-items: center; margin-bottom: 4px}
.guardian { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 6px; border-radius: 12px; background: rgba(135, 135, 135, 0.1); color: var(--accent)}
.guardian b { display: block; color: var(--text); font-size: 15.5px; font-weight: 600}
.guardian small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px}
.tgl.sm { width: 40px; height: 24px}
.tgl.sm i { width: 18px; height: 18px}
.tgl.sm.on i { transform: translateX(16px)}
.seg-age { display: flex; gap: 8px}
.seg-age button { width: 52px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 16px; color: var(--text)}
.seg-age button.on { border-color: var(--accent); color: var(--accent); background: rgba(135, 135, 135, 0.1)}

/* ---------- two-way switches ---------- */
.seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2)}
.seg2 button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2)}
.seg2 button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600}

/* appearance */
.theme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px}
.theme-card { display: grid; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--panel-2); text-align: start; transition: border-color .2s, transform .15s}
.theme-card:hover { transform: translateY(-2px); border-color: var(--line-3)}
.theme-card.on { border-color: var(--accent); box-shadow: none}
.tc-prev { display: block; height: 170px; border-radius: 12px; overflow: hidden}
.tc-t { display: flex; gap: 12px; align-items: flex-start}
.tc-t b { display: block; font-size: 16px; font-weight: 600}
.tc-t small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35}
.tm { position: relative; display: block; width: 100%; height: 100%}
.tm i { position: absolute; border-radius: 6px}
.tm-dark { background: #111112}
.tm-dark .tm-side { inset-inline-start: 0; top: 0; bottom: 0; width: 20%; border-radius: 0; background: #0a0a0b; border-inline-end: 1px solid #1d1d1f}
.tm-dark .tm-top { inset-inline-start: 24%; inset-inline-end: 4%; top: 7%; height: 8%; background: #161617}
.tm-dark .tm-hero { inset-inline-start: 24%; inset-inline-end: 4%; top: 20%; height: 34%; background: #111112; border: 1px solid #232325}
.tm-dark .tm-c1, .tm-dark .tm-c2, .tm-dark .tm-c3 { top: 60%; height: 32%; width: 22%; background: #111112; border: 1px solid #232325}
.tm-light { background: #f5f5f7}
.tm-light .tm-side { inset-inline-start: 0; top: 0; bottom: 0; width: 20%; border-radius: 0; background: #ffffff; border-inline-end: 1px solid #e5e5ea}
.tm-light .tm-top { inset-inline-start: 24%; inset-inline-end: 4%; top: 7%; height: 8%; background: #ffffff}
.tm-light .tm-hero { inset-inline-start: 24%; inset-inline-end: 4%; top: 20%; height: 34%; background: #ffffff; border: 1px solid #e5e5ea}
.tm-light .tm-c1, .tm-light .tm-c2, .tm-light .tm-c3 { top: 60%; height: 32%; width: 22%; background: #ffffff; border: 1px solid #e5e5ea}
.tm .tm-c1 { inset-inline-start: 24%} .tm .tm-c2 { inset-inline-start: 49%} .tm .tm-c3 { inset-inline-start: 74%}
.tm .tm-side::after { content: ""; position: absolute; inset-inline-start: 18%; inset-inline-end: 18%; top: 10%; height: 8%; border-radius: 4px; background: #00FF6F; opacity: .8}
.tm-split { display: grid; grid-template-columns: 1fr 1fr; height: 100%}
.tm-split .tm-light .tm-side::after, .tm-split .tm-dark .tm-side::after { display: none}

/* learning */
.lm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px}
.lm-card { position: relative; display: block; padding-block: 16px 14px; padding-inline: 50px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--panel-2); text-align: start; transition: border-color .2s}
.lm-card:hover { border-color: var(--line-3)}
.lm-card.on { border-color: var(--accent); background: rgba(135, 135, 135, 0.1)}
.lm-card .radio { position: absolute; inset-inline-start: 14px; top: 16px; width: 22px; height: 22px}
.lm-card b { display: block; font-size: 16px; font-weight: 600}
.lm-card small { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 4px; line-height: 1.4}
.lm-card small b { display: inline; font-size: inherit; color: var(--accent)}
.lm-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px}
.lm-card li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text)}
.lm-card li .ico { color: var(--accent)}
.lm-now { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--text-2)}
.lm-now .ico { color: var(--accent-2-text)}

/* gender switch in the avatar builder */
.seg-g button { width: auto; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px}

/* ---------- Profile: the photo, what others see, and the details ---------- */
.pf { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start}
.pf-side { display: grid; gap: 14px}
.pf .set-card { margin: 0}
.pf-photo { text-align: center; padding: 24px 20px 20px}
.pf-pic { width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; outline: 3px solid var(--accent); outline-offset: 0}
.pf-pic img { width: 100%; height: 100%; object-fit: cover; display: block}
.pf-name { font-size: 21px; font-weight: 600; color: var(--text)}
.pf-rank { margin-top: 2px; font-size: 13.5px; color: var(--muted)}
.pf-pacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px}
.pf-pacts .btn { height: 40px; padding: 0 14px; gap: 7px; font-size: 14px}
.pf-up { position: relative; cursor: pointer}
.pf-up:focus-within { outline: 2px solid var(--accent); outline-offset: 2px}
.pf-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0}
.pf-see h4 { margin-bottom: 4px}
.pf-ctl { display: grid; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line)}
.pf-ctl:last-child { border-bottom: 0; padding-bottom: 2px}
.pf-ctl b { display: block; font-size: 14.5px; font-weight: 500; color: var(--text)}
.pf-ctl small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted)}
.pf-two button { height: 34px}
.pf-details h4 { margin-bottom: 14px}
.pf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px}
.pf-f { display: grid; gap: 6px; min-width: 0; align-content: start}
.pf-f.full { grid-column: 1 / -1}
.pf-f > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2)}
.pf-count { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted)}
.pf-in { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; font-size: 15px; outline: none}
.pf-in:focus { border-color: var(--accent)}
.pf-in::placeholder { color: var(--muted)}
textarea.pf-in { height: 66px; padding: 10px 14px; line-height: 1.45; resize: none}
select.pf-in { cursor: pointer}
.pf-seg { display: flex; gap: 6px; flex-wrap: wrap}
.pf-seg button { flex: 1; min-width: 0; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px}
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px}
.pf-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 14px; color: var(--text-2)}
.pf-chip .ico { color: var(--muted)}
.pf-chip.on { border-color: var(--accent); color: var(--text)}
.pf-chip.on .ico { color: var(--accent)}
.pf-ro { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 15px; color: var(--text-2)}
.pf-ro .ico { color: var(--muted); flex: none}
.pf-copy { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2)}
.pf-copy:hover { background: var(--tile); color: var(--text)}
.pf-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line)}
.pf-foot small { margin-inline-end: auto; font-size: 12.5px; color: var(--muted)}
.pf-foot .btn { height: 44px; gap: 6px}
.pf-foot .btn[disabled] { opacity: .4; cursor: default; pointer-events: none}

/* the learner's initials, wherever their picture shows and there is no photo */
.pp-ini { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #8B5CF6; color: #fff; font-weight: 600; line-height: 1; letter-spacing: .02em; user-select: none}
/* Back to the page Settings was opened from (V6G-11), styled like the mission's back button */
.set-back { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; margin-top: 10px; border-radius: 14px; border: 1px solid #2c2c2e; background: #111112; color: #f5f5f7; text-align: start}
.set-back:hover { border-color: #00FF6F}
.set-back span { display: flex; flex-direction: column; min-width: 0}
.set-back small { font-size: 12px; color: #98989d}
.set-back b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
[data-theme="light"] .set-back { background: #ffffff; border-color: #d2d2d7; color: #1d1d1f}
[data-theme="light"] .set-back small { color: #6e6e73}
