/* PROFILE-0035 — public profile engine refinement. Local-only, responsive, no external runtime assets. */
.profile-main{padding-top:clamp(32px,5vw,72px)}
.profile-guest-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(240px,.52fr);gap:clamp(28px,5vw,72px);align-items:center;min-height:340px;padding:clamp(22px,3.6vw,48px) 0}
.profile-guest-title{max-width:790px;overflow:visible}.profile-guest-title .headline-line{display:block;width:auto;max-width:100%;white-space:normal;text-wrap:balance;overflow-wrap:normal;font-size:clamp(2.75rem,5.25vw,4.65rem);line-height:1.075;padding:.08em .035em .15em;margin:0 -.035em;overflow:visible}
.profile-orbit{position:relative;width:min(280px,80vw);aspect-ratio:1;margin:auto;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--purple) 12%,transparent),transparent 58%)}
.profile-orbit::before,.profile-orbit::after{content:"";position:absolute;border:1px solid color-mix(in srgb,var(--purple) 18%,var(--line));border-radius:50%;inset:14%;}.profile-orbit::after{inset:28%;border-style:dashed}
.profile-orbit-core{width:110px;height:110px;border-radius:34px;display:grid;place-items:center;background:linear-gradient(145deg,#ffd25f,#ff9b63);box-shadow:0 16px 0 rgba(213,103,58,.16),0 28px 60px rgba(85,88,154,.18);position:relative;z-index:2}.profile-orbit-core .icon{width:46px;height:46px;color:#7255e8}.profile-orbit i{position:absolute;width:16px;height:16px;border-radius:50%;background:#59d7aa;box-shadow:0 5px 14px rgba(60,100,130,.14)}.profile-orbit i:nth-child(2){left:8%;top:48%;background:#5f8cff}.profile-orbit i:nth-child(3){right:10%;top:22%;background:#ff6ca8}.profile-orbit i:nth-child(4){right:16%;bottom:16%;background:#ffd667}
.profile-flash{width:min(760px,100%);margin:0 auto 18px;padding:13px 16px;border-radius:16px;border:1px solid var(--line);background:var(--surface);font-weight:800;box-shadow:0 10px 24px rgba(54,73,109,.08)}.profile-flash.is-success{border-color:color-mix(in srgb,#24a66f 35%,var(--line));background:color-mix(in srgb,#5ed5a3 10%,var(--surface))}.profile-flash.is-error{border-color:color-mix(in srgb,#dd496d 36%,var(--line));background:color-mix(in srgb,#ff7f9d 10%,var(--surface))}
.profile-auth-card,.profile-system-card{width:min(760px,100%);margin:0 auto 70px;background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:clamp(20px,3vw,32px);box-shadow:0 12px 0 rgba(41,62,96,.06),0 30px 80px rgba(56,76,113,.12)}.profile-auth-card.is-create{width:min(920px,100%)}
.profile-auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:6px;border-radius:18px;background:color-mix(in srgb,var(--purple) 6%,var(--surface));margin-bottom:28px}.profile-auth-tabs a{min-height:50px;display:flex;align-items:center;justify-content:center;border-radius:13px;text-decoration:none;color:var(--muted);font-weight:900;border:1px solid transparent}.profile-auth-tabs a[aria-current="page"]{background:linear-gradient(135deg,color-mix(in srgb,#5b87ff 14%,var(--surface)),color-mix(in srgb,#b264ee 13%,var(--surface)));color:var(--ink-strong);border-color:color-mix(in srgb,#7359ed 28%,var(--line));box-shadow:0 5px 0 color-mix(in srgb,#7359ed 8%,transparent)}
.profile-form{display:grid;gap:16px;min-width:0}.profile-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-password-field{display:grid;gap:8px;min-width:0}.profile-form label,.profile-learning{display:grid;gap:7px;min-width:0}.profile-form label>span,.profile-learning legend{font-weight:850;font-size:.84rem;color:var(--ink-strong)}.profile-form input,.profile-form select{width:100%;max-width:100%;min-height:52px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--ink);padding:0 14px;font:inherit;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.profile-form input:focus,.profile-form select:focus{border-color:color-mix(in srgb,var(--purple) 50%,var(--line));box-shadow:0 0 0 4px color-mix(in srgb,var(--purple) 11%,transparent)}.profile-form-intro{margin-bottom:22px}.profile-form-intro h2{margin:0 0 7px;font-size:clamp(1.55rem,3vw,2.2rem)}.profile-form-intro p{margin:0;color:var(--muted);line-height:1.65}.profile-span,.profile-learning{grid-column:1/-1}.profile-learning{border:0;padding:0;margin:0}.profile-learning>div{display:flex;gap:10px;flex-wrap:wrap}.profile-check{display:inline-flex!important;cursor:pointer}.profile-check input{position:absolute;opacity:0;pointer-events:none}.profile-check span{min-height:46px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface);font-weight:850!important}.profile-check input:checked+span{border-color:color-mix(in srgb,var(--purple) 38%,var(--line));background:color-mix(in srgb,var(--purple) 9%,var(--surface));box-shadow:0 4px 0 color-mix(in srgb,var(--purple) 7%,transparent)}.profile-check img{border-radius:4px}.profile-password-wrap{position:relative;min-width:0}.profile-password-wrap input{padding-right:58px}.profile-password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--purple) 16%,var(--line));border-radius:12px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 94%,#fff),color-mix(in srgb,var(--purple) 8%,var(--surface)));color:color-mix(in srgb,var(--purple) 78%,#3659d8);box-shadow:0 3px 0 color-mix(in srgb,var(--purple) 12%,transparent),0 8px 18px color-mix(in srgb,var(--purple) 8%,transparent);cursor:pointer;overflow:hidden;isolation:isolate;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease}.profile-password-toggle::before{content:"";position:absolute;inset:5px;border-radius:9px;background:radial-gradient(circle at 32% 22%,rgba(255,255,255,.92),transparent 42%);opacity:.58;pointer-events:none;z-index:-1}.profile-password-toggle:hover{transform:translateY(calc(-50% - 2px));border-color:color-mix(in srgb,var(--purple) 34%,var(--line));color:color-mix(in srgb,var(--purple) 72%,#167eb5);box-shadow:0 5px 0 color-mix(in srgb,var(--purple) 13%,transparent),0 12px 24px color-mix(in srgb,var(--purple) 12%,transparent)}.profile-password-toggle:active{transform:translateY(calc(-50% + 1px));box-shadow:0 1px 0 color-mix(in srgb,var(--purple) 10%,transparent),0 5px 12px color-mix(in srgb,var(--purple) 8%,transparent)}.profile-password-toggle:focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 28%,transparent);outline-offset:2px}.profile-eye{width:25px;height:25px;display:grid;place-items:center;transition:opacity .16s ease,transform .2s cubic-bezier(.2,.8,.2,1)}.profile-eye svg{width:100%;height:100%;overflow:visible}.profile-eye-open{opacity:1;transform:scale(1)}.profile-eye-closed{position:absolute;opacity:0;transform:scale(.78) rotate(-3deg)}.profile-password-toggle.is-revealed .profile-eye-open{opacity:0;transform:scale(.78)}.profile-password-toggle.is-revealed .profile-eye-closed{opacity:1;transform:scale(1)}.profile-eye .eye-lid{fill:color-mix(in srgb,var(--purple) 8%,transparent);stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}.profile-eye .eye-iris{fill:color-mix(in srgb,#53d6c0 30%,var(--surface));stroke:currentColor;stroke-width:1.55}.profile-eye .eye-glint{fill:#fff}.profile-eye .eye-closed-line,.profile-eye .eye-lash{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.profile-password-toggle.is-revealed{color:color-mix(in srgb,#ff6d8f 58%,var(--purple));background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 94%,#fff),color-mix(in srgb,#ff8a9e 8%,var(--surface)));border-color:color-mix(in srgb,#ff7f9a 24%,var(--line))}.profile-strength{display:flex;align-items:center;gap:10px}.profile-strength>span{font-size:.74rem;font-weight:900;color:var(--muted);width:68px}.profile-strength i{height:7px;flex:1;background:color-mix(in srgb,var(--muted) 14%,transparent);border-radius:999px;overflow:hidden}.profile-strength b{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#ff7b72,#ffbd55,#59d59e);transition:width .2s ease}.profile-registration-closed{padding:22px;border-radius:18px;border:1px solid color-mix(in srgb,#d99128 24%,var(--line));background:color-mix(in srgb,#ffc76b 9%,var(--surface));line-height:1.6}
.recovery-secret{width:min(760px,100%);margin:0 auto 18px;padding:18px 20px;border:1px solid color-mix(in srgb,#d89923 34%,var(--line));border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,#ffd563 10%,var(--surface)),color-mix(in srgb,#b365f1 7%,var(--surface)));display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 12px 28px rgba(61,72,104,.1)}.recovery-secret span{display:block;color:var(--muted);font-size:.84rem;margin-bottom:5px}.recovery-secret strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.15rem;letter-spacing:.06em;overflow-wrap:anywhere}.recovery-actions{display:flex;gap:8px;flex-wrap:wrap}.recovery-actions .button{min-height:44px}
.profile-dashboard-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;padding:clamp(22px,4vw,36px);border:1px solid var(--line);border-radius:34px;background:linear-gradient(135deg,color-mix(in srgb,#60d8c0 6%,var(--surface)),color-mix(in srgb,#b563ef 7%,var(--surface)),color-mix(in srgb,#ffbc62 5%,var(--surface)));box-shadow:0 12px 0 rgba(44,67,101,.06),0 30px 80px rgba(59,76,111,.1)}.profile-avatar-wrap{width:144px;height:144px}.profile-avatar{width:144px;height:144px;object-fit:cover;border-radius:38px;border:5px solid color-mix(in srgb,var(--surface) 90%,transparent);box-shadow:0 12px 0 rgba(77,63,133,.1),0 20px 40px rgba(68,84,118,.15)}.profile-avatar-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#ffd361,#ff9f65 55%,#ff78ac);font-size:3.5rem;font-weight:950;color:#543b70}.profile-dashboard-copy h1{margin:4px 0 8px;font-size:clamp(2.2rem,5vw,4rem);letter-spacing:-.055em}.profile-dashboard-copy .copy{max-width:690px}.profile-friend-code{margin-top:14px;display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:13px;background:color-mix(in srgb,var(--purple) 7%,var(--surface));border:1px solid color-mix(in srgb,var(--purple) 18%,var(--line));font-size:.78rem}.profile-friend-code span{color:var(--muted);font-weight:800}.profile-friend-code strong{letter-spacing:.08em}.profile-logout{align-self:start}
.profile-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.profile-metrics>div{min-height:122px;border:1px solid var(--line);border-radius:24px;background:var(--surface);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-content:center;gap:2px 10px;padding:18px;box-shadow:0 8px 0 rgba(45,66,99,.05)}.profile-metrics span{grid-row:1/3;font-size:1.7rem;align-self:center}.profile-metrics strong{font-size:1.9rem;line-height:1}.profile-metrics small{color:var(--muted);font-weight:800}
.profile-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:70px}.profile-panel{min-width:0;border:1px solid var(--line);border-radius:28px;background:var(--surface);padding:clamp(20px,3vw,28px);box-shadow:0 10px 0 rgba(45,65,95,.05),0 24px 60px rgba(57,75,110,.08)}.profile-panel-head{margin-bottom:18px}.profile-panel-head h2{margin:0;font-size:1.45rem}.profile-panel-head p{margin:7px 0 0;color:var(--muted);line-height:1.6}.profile-history-empty{min-height:250px;display:grid;place-items:center;text-align:center;padding:20px}.profile-history-icon{width:74px;height:74px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,#5f87ff 17%,var(--surface)),color-mix(in srgb,#cf68e9 16%,var(--surface)));font-size:2rem;color:var(--purple);box-shadow:0 8px 0 color-mix(in srgb,var(--purple) 8%,transparent)}.profile-history-empty p{color:var(--muted);max-width:500px;line-height:1.65}.history-stats{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.history-stats span{min-width:92px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--blue) 5%,var(--surface));border:1px solid var(--line);font-size:.72rem;color:var(--muted);font-weight:800}.history-stats strong{display:block;color:var(--ink-strong);font-size:1.3rem}.profile-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-file{border:1px dashed color-mix(in srgb,var(--purple) 36%,var(--line));border-radius:18px;padding:18px;background:color-mix(in srgb,var(--purple) 5%,var(--surface));cursor:pointer}.profile-file input{min-height:auto;max-width:100%;padding:0;border:0;background:transparent;box-shadow:none!important}.profile-inline{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.profile-recovery-rotate{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.profile-future-note{padding:14px;border-radius:16px;background:color-mix(in srgb,#56cfa4 7%,var(--surface));border:1px solid color-mix(in srgb,#28a56f 18%,var(--line));color:var(--muted);line-height:1.6}.profile-danger{margin-top:14px;border:1px solid var(--line);border-radius:17px;padding:0 14px}.profile-danger summary{min-height:52px;display:flex;align-items:center;font-weight:900;cursor:pointer}.profile-danger form{padding:0 0 16px}.profile-danger.is-delete{border-color:color-mix(in srgb,#da4868 25%,var(--line));background:color-mix(in srgb,#ff7895 4%,var(--surface))}.profile-danger.is-delete summary{color:#b92b4d}.profile-danger>p{color:var(--muted);line-height:1.6}.button-danger{background:linear-gradient(180deg,#e95c79,#c9385c);color:#fff;border:0;box-shadow:0 6px 0 #9f2949,0 12px 25px rgba(177,47,83,.2)}
html[data-theme="night"] .profile-auth-card,html[data-theme="night"] .profile-panel,html[data-theme="night"] .profile-metrics>div,html[data-theme="night"] .profile-dashboard-hero{box-shadow:0 10px 0 rgba(0,0,0,.14),0 28px 70px rgba(0,0,0,.2)}
@media(prefers-color-scheme:dark){html[data-theme="auto"] .profile-auth-card,html[data-theme="auto"] .profile-panel,html[data-theme="auto"] .profile-metrics>div,html[data-theme="auto"] .profile-dashboard-hero{box-shadow:0 10px 0 rgba(0,0,0,.14),0 28px 70px rgba(0,0,0,.2)}}
@media(max-width:900px){.profile-guest-hero{grid-template-columns:1fr;text-align:center;min-height:0;padding-top:14px}.profile-guest-title{max-width:720px;margin-inline:auto}.profile-guest-title .headline-line{text-wrap:balance}.profile-guest-hero .copy{max-width:660px;margin-inline:auto}.profile-orbit{width:210px;order:-1}.profile-dashboard-hero{grid-template-columns:auto 1fr}.profile-logout{grid-column:1/-1}.profile-dashboard-grid{grid-template-columns:1fr}.profile-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.profile-main{padding-top:18px}.profile-guest-hero{padding-top:4px;gap:18px}.profile-orbit{width:min(184px,56vw)}.profile-orbit-core{width:88px;height:88px;border-radius:28px}.profile-orbit-core .icon{width:38px;height:38px}.profile-guest-title .headline-line{font-size:clamp(2.35rem,11.8vw,3.25rem);line-height:1.08;padding-bottom:.16em}.profile-guest-hero .copy{font-size:.96rem;line-height:1.65}.profile-auth-card{padding:14px;border-radius:24px;margin-bottom:40px}.profile-auth-tabs{gap:4px;padding:5px;margin-bottom:22px}.profile-auth-tabs a{min-height:48px;font-size:.77rem;padding-inline:6px}.profile-form-grid{grid-template-columns:1fr}.profile-span,.profile-learning{grid-column:auto}.recovery-secret{align-items:stretch;flex-direction:column}.recovery-actions .button{flex:1}.profile-dashboard-hero{grid-template-columns:1fr;text-align:center}.profile-avatar-wrap{margin:auto}.profile-friend-code{justify-content:center;flex-wrap:wrap}.profile-logout{grid-column:auto}.profile-logout .button{width:100%}.profile-metrics{gap:10px}.profile-metrics>div{min-height:104px;padding:14px;border-radius:20px}.profile-two{grid-template-columns:1fr}.profile-panel{border-radius:23px}.profile-form .button{width:100%}}
@media(max-width:360px){.profile-guest-title .headline-line{font-size:clamp(2.2rem,11vw,2.75rem)}.profile-auth-tabs a{font-size:.72rem;padding:0 3px}.profile-metrics{grid-template-columns:1fr 1fr}.profile-metrics>div{grid-template-columns:auto 1fr}.profile-learning>div{display:grid;grid-template-columns:1fr}.profile-check span{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.profile-strength b{transition:none}.profile-orbit *{animation:none!important}}
.profile-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

[data-theme="night"] .profile-password-toggle{background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,#17254f),color-mix(in srgb,var(--purple) 14%,var(--surface)));border-color:color-mix(in srgb,#b8a7ff 24%,var(--line));color:#bdb2ff;box-shadow:0 3px 0 color-mix(in srgb,#8e7cff 16%,transparent),0 10px 22px rgba(4,9,28,.24)}
[data-theme="night"] .profile-password-toggle.is-revealed{color:#ff9db3;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,#251b3c),color-mix(in srgb,#ff7fa4 11%,var(--surface)));border-color:color-mix(in srgb,#ff9db3 25%,var(--line))}

/* PROFILE-0035 — structured create flow, themed language controls and local password assistant. */
.profile-auth-card.is-create{width:min(940px,100%)}
.profile-create-intro{position:relative;padding:2px 2px 0}.profile-create-badge{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;margin-bottom:10px;border-radius:999px;background:linear-gradient(135deg,color-mix(in srgb,#5b87ff 12%,var(--surface)),color-mix(in srgb,#ce68e9 11%,var(--surface)));border:1px solid color-mix(in srgb,#8065ef 18%,var(--line));color:color-mix(in srgb,var(--purple) 82%,var(--ink-strong));font-size:.68rem;font-weight:950;letter-spacing:.12em}.profile-create-intro h2{font-size:clamp(1.8rem,3.2vw,2.45rem);letter-spacing:-.035em}.profile-create-intro p{max-width:760px}
.profile-create-form{gap:14px}.profile-create-section{--create-accent:#6f7dff;--create-accent-2:#a969ee;position:relative;display:grid;gap:17px;padding:clamp(16px,2vw,21px);border:1px solid color-mix(in srgb,var(--create-accent) 18%,var(--line));border-radius:23px;background:linear-gradient(145deg,color-mix(in srgb,var(--create-accent) 4.5%,var(--surface)),color-mix(in srgb,var(--create-accent-2) 4%,var(--surface)) 62%,var(--surface));box-shadow:0 6px 0 color-mix(in srgb,var(--create-accent) 5%,transparent);overflow:hidden}.profile-create-section::after{content:"";position:absolute;right:-42px;top:-52px;width:120px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--create-accent-2) 10%,transparent),transparent 68%);pointer-events:none}.profile-create-section.is-about{--create-accent:#3abfdc;--create-accent-2:#55d4aa}.profile-create-section.is-languages{--create-accent:#8967ef;--create-accent-2:#ff78aa}.profile-create-section.is-security{--create-accent:#ff9c58;--create-accent-2:#8a6cf2}.profile-create-section-head{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:11px}.profile-create-section-head>span{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,var(--create-accent) 16%,var(--surface)),color-mix(in srgb,var(--create-accent-2) 12%,var(--surface)));border:1px solid color-mix(in srgb,var(--create-accent) 22%,var(--line));color:color-mix(in srgb,var(--create-accent) 78%,var(--ink-strong));font-size:.7rem;font-weight:950;box-shadow:0 4px 0 color-mix(in srgb,var(--create-accent) 8%,transparent)}.profile-create-section-head h3{margin:1px 0 4px;font-size:1.02rem;letter-spacing:-.015em}.profile-create-section-head p{margin:0;color:var(--muted);font-size:.8rem;line-height:1.5;max-width:660px}.profile-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.profile-create-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-language-picker{border:0;padding:0;margin:0;min-width:0}.profile-language-picker>legend{font-weight:850;font-size:.84rem;color:var(--ink-strong);margin-bottom:8px}.profile-language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.profile-language-option{display:block!important;cursor:pointer;min-width:0}.profile-language-option input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}.profile-language-option>span{--lang-accent:#7d6ef0;min-height:68px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 11px;border-radius:16px;border:1px solid var(--line);background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--lang-accent) 4%,var(--surface)));box-shadow:0 4px 0 color-mix(in srgb,var(--line-strong) 55%,transparent);transition:transform .18s cubic-bezier(.2,.8,.2,1),border-color .18s ease,box-shadow .18s ease,background .18s ease}.profile-language-option.is-ro>span{--lang-accent:#ff6d8f}.profile-language-option.is-da>span{--lang-accent:#6c78f5}.profile-language-option.is-en>span{--lang-accent:#30bdb2}.profile-language-option img{width:34px;height:23px;border-radius:5px;object-fit:cover;box-shadow:0 2px 6px rgba(34,48,80,.16)}.profile-language-option b{min-width:0;font-size:.84rem;color:var(--ink-strong);overflow-wrap:anywhere}.profile-language-option small{font-size:.62rem;font-weight:950;letter-spacing:.08em;color:var(--muted)}.profile-language-option input:checked+span{transform:translateY(-2px);border-color:color-mix(in srgb,var(--lang-accent) 44%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--lang-accent) 10%,var(--surface)),color-mix(in srgb,var(--lang-accent) 5%,var(--surface)));box-shadow:0 6px 0 color-mix(in srgb,var(--lang-accent) 10%,transparent),0 12px 22px color-mix(in srgb,var(--lang-accent) 9%,transparent)}.profile-language-option input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--lang-accent) 25%,transparent);outline-offset:2px}@media(hover:hover) and (pointer:fine){.profile-language-option:hover>span{transform:translateY(-2px);border-color:color-mix(in srgb,var(--lang-accent) 32%,var(--line));box-shadow:0 6px 0 color-mix(in srgb,var(--lang-accent) 8%,transparent),0 12px 22px color-mix(in srgb,var(--lang-accent) 7%,transparent)}}
.profile-check.is-ro span{--check-accent:#ff6d8f}.profile-check.is-da span{--check-accent:#6c78f5}.profile-check.is-en span{--check-accent:#30bdb2}.profile-check span{border-color:color-mix(in srgb,var(--check-accent,var(--purple)) 13%,var(--line));background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--check-accent,var(--purple)) 3.5%,var(--surface)))}.profile-check input:checked+span{border-color:color-mix(in srgb,var(--check-accent,var(--purple)) 40%,var(--line));background:color-mix(in srgb,var(--check-accent,var(--purple)) 9%,var(--surface));box-shadow:0 4px 0 color-mix(in srgb,var(--check-accent,var(--purple)) 8%,transparent)}.profile-check b{font:inherit}
.profile-password-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-width:0}.profile-password-pair>label{min-width:0}.profile-password-pair .profile-password-wrap{width:100%}.profile-password-pair label.is-password-mismatch .profile-password-wrap input{border-color:color-mix(in srgb,#e34f70 56%,var(--line));box-shadow:0 0 0 4px color-mix(in srgb,#e34f70 9%,transparent)}.profile-password-pair label.is-password-match .profile-password-wrap input{border-color:color-mix(in srgb,#28aa7a 42%,var(--line))}
.profile-password-assistant{display:grid;gap:12px;padding:14px;border-radius:18px;border:1px solid color-mix(in srgb,#8266ef 15%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,#746df5 5%,var(--surface)),color-mix(in srgb,#ffb05f 4%,var(--surface)));min-width:0}.profile-strength-modern{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(210px,1.3fr);align-items:center;gap:14px}.profile-strength-modern .profile-strength-copy{display:grid;grid-template-columns:auto 1fr;gap:2px 9px;align-items:baseline}.profile-strength-modern .profile-strength-copy>span{font-size:.7rem;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.profile-strength-modern .profile-strength-copy>strong{font-size:.86rem;color:var(--ink-strong)}.profile-strength-modern .profile-strength-copy>small{grid-column:1/-1;color:var(--muted);font-size:.69rem;line-height:1.45}.profile-strength-track{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.profile-strength-track i{height:9px;border-radius:999px;background:color-mix(in srgb,var(--muted) 13%,transparent);box-shadow:inset 0 1px 2px color-mix(in srgb,var(--ink) 4%,transparent);transition:background .18s ease,transform .18s ease}.profile-password-assistant[data-strength-level="weak"] .profile-strength-track i.is-on{background:linear-gradient(90deg,#ff6f79,#e54e6c)}.profile-password-assistant[data-strength-level="fair"] .profile-strength-track i.is-on{background:linear-gradient(90deg,#ff9c5a,#f4bc4f)}.profile-password-assistant[data-strength-level="good"] .profile-strength-track i.is-on{background:linear-gradient(90deg,#f4bd4f,#66cfa1)}.profile-password-assistant[data-strength-level="strong"] .profile-strength-track i.is-on{background:linear-gradient(90deg,#5ccfa9,#3bb6c9)}.profile-password-assistant[data-strength-level="very-strong"] .profile-strength-track i.is-on{background:linear-gradient(90deg,#3bc8b3,#557ff3,#9b68ed)}.profile-strength-track i.is-on{transform:scaleY(1.08)}
.profile-password-generator{display:grid;grid-template-columns:minmax(170px,1fr) auto;align-items:center;gap:12px;padding-top:11px;border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent)}.profile-password-generator>div:first-child{display:grid;gap:2px}.profile-password-generator strong{font-size:.78rem;color:var(--ink-strong)}.profile-password-generator small{font-size:.69rem;line-height:1.45;color:var(--muted)}.profile-generator-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.profile-generator-button{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink-strong);font:inherit;font-size:.72rem;font-weight:900;cursor:pointer;box-shadow:0 4px 0 color-mix(in srgb,var(--line-strong) 58%,transparent);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}.profile-generator-button.is-random{border-color:color-mix(in srgb,#8b68ef 23%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,#7c72f4 9%,var(--surface)),color-mix(in srgb,#ffaf5f 7%,var(--surface)))}.profile-generator-button.is-words{border-color:color-mix(in srgb,#39bda9 22%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,#3fc5b0 8%,var(--surface)),color-mix(in srgb,#6f8df4 6%,var(--surface)))}.profile-generator-button.is-copy{min-width:76px}@media(hover:hover) and (pointer:fine){.profile-generator-button:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--purple) 30%,var(--line));box-shadow:0 6px 0 color-mix(in srgb,var(--line-strong) 55%,transparent),0 10px 18px rgba(48,74,112,.08)}}.profile-generator-button:active{transform:translateY(1px);box-shadow:0 1px 0 color-mix(in srgb,var(--line-strong) 55%,transparent)}.profile-generator-button:focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 24%,transparent);outline-offset:2px}.profile-generator-note{margin:-2px 0 0;color:var(--muted);font-size:.67rem;line-height:1.45}.profile-create-submit{width:100%;min-height:54px;margin-top:2px}
html[data-theme="night"] .profile-create-section{box-shadow:0 6px 0 rgba(0,0,0,.12);background:linear-gradient(145deg,color-mix(in srgb,var(--create-accent) 7%,var(--surface)),color-mix(in srgb,var(--create-accent-2) 6%,var(--surface)) 62%,var(--surface))}html[data-theme="night"] .profile-language-option>span,html[data-theme="night"] .profile-check span{box-shadow:0 4px 0 rgba(0,0,0,.13)}html[data-theme="night"] .profile-password-assistant{background:linear-gradient(145deg,color-mix(in srgb,#746df5 8%,var(--surface)),color-mix(in srgb,#ff9e5d 5%,var(--surface)));border-color:color-mix(in srgb,#a996ff 22%,var(--line))}html[data-theme="night"] .profile-generator-button{box-shadow:0 4px 0 rgba(0,0,0,.14)}
@media(prefers-color-scheme:dark){html[data-theme="auto"] .profile-create-section{box-shadow:0 6px 0 rgba(0,0,0,.12)}html[data-theme="auto"] .profile-language-option>span,html[data-theme="auto"] .profile-check span{box-shadow:0 4px 0 rgba(0,0,0,.13)}html[data-theme="auto"] .profile-password-assistant{border-color:color-mix(in srgb,#a996ff 22%,var(--line))}}
@media(max-width:760px){.profile-create-grid.is-three{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-create-grid.is-three>label:last-child{grid-column:1/-1}.profile-password-pair{grid-template-columns:1fr}.profile-strength-modern{grid-template-columns:1fr}.profile-password-generator{grid-template-columns:1fr}.profile-generator-actions{justify-content:flex-start}}
@media(max-width:560px){.profile-create-intro{padding-inline:2px}.profile-create-section{padding:14px;border-radius:19px;gap:14px}.profile-create-section-head{grid-template-columns:34px minmax(0,1fr);gap:9px}.profile-create-section-head>span{width:34px;height:34px;border-radius:11px}.profile-create-section-head h3{font-size:.96rem}.profile-create-section-head p{font-size:.75rem}.profile-create-grid,.profile-create-grid.is-three{grid-template-columns:1fr}.profile-create-grid.is-three>label:last-child{grid-column:auto}.profile-language-options{gap:6px}.profile-language-option>span{min-height:62px;grid-template-columns:1fr;justify-items:center;text-align:center;gap:4px;padding:8px 5px}.profile-language-option img{width:29px;height:20px}.profile-language-option b{font-size:.72rem}.profile-language-option small{display:none}.profile-learning>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.profile-check span{width:100%;min-height:48px;justify-content:center;padding:0 6px}.profile-check span b{font-size:.7rem}.profile-check img{width:24px;height:16px}.profile-password-assistant{padding:12px;border-radius:16px}.profile-strength-modern .profile-strength-copy{grid-template-columns:auto 1fr}.profile-generator-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.profile-generator-button{width:100%;padding-inline:8px}.profile-generator-button.is-copy{grid-column:1/-1}.profile-create-submit{min-height:52px}}
@media(max-width:360px){.profile-language-option>span{min-height:60px}.profile-learning>div{grid-template-columns:1fr}.profile-check span b{font-size:.74rem}.profile-generator-actions{grid-template-columns:1fr}.profile-generator-button.is-copy{grid-column:auto}.profile-strength-modern .profile-strength-copy{grid-template-columns:1fr}.profile-strength-modern .profile-strength-copy>small{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.profile-language-option>span,.profile-generator-button,.profile-strength-track i{transition:none!important}}

/* SUPPORT-0036 · verified recovery email, three recovery paths and professional help tooltip. */
.profile-field-label-row{display:flex;align-items:center;gap:7px;min-width:0}.profile-help-tip{position:relative;display:inline-grid;place-items:center;z-index:12}.profile-help-tip>button{width:25px;height:25px;border-radius:50%;border:1px solid color-mix(in srgb,var(--purple) 28%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 80%,var(--surface)),var(--surface));color:var(--purple);font:900 .78rem/1 inherit;cursor:pointer;box-shadow:0 4px 10px rgba(77,62,149,.1);animation:profile-help-float 3.4s ease-in-out infinite}.profile-help-tip>button:focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 32%,transparent);outline-offset:2px}.profile-help-popover{position:absolute;z-index:22;left:50%;bottom:calc(100% + 11px);width:min(330px,calc(100vw - 34px));padding:11px 13px;border-radius:14px;border:1px solid color-mix(in srgb,var(--purple) 20%,var(--line));background:var(--surface);color:var(--ink);font-size:.72rem!important;font-weight:700!important;line-height:1.5;box-shadow:0 18px 45px rgba(41,47,87,.2);opacity:0;visibility:hidden;transform:translate(-50%,7px) scale(.98);pointer-events:none;transition:opacity .15s ease,transform .15s ease,visibility .15s}.profile-help-popover::after{content:"";position:absolute;left:50%;top:100%;width:10px;height:10px;background:var(--surface);border-right:1px solid color-mix(in srgb,var(--purple) 20%,var(--line));border-bottom:1px solid color-mix(in srgb,var(--purple) 20%,var(--line));transform:translate(-50%,-5px) rotate(45deg)}@media(hover:hover) and (pointer:fine){.profile-help-tip:hover .profile-help-popover{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}}.profile-help-tip.is-pinned .profile-help-popover,.profile-help-tip:focus-within .profile-help-popover{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1);pointer-events:auto}.profile-recovery-email-field small{display:block;margin-top:5px;color:var(--muted);font-size:.7rem}
.profile-recovery-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}.profile-recovery-method{min-width:0;padding:14px 12px;border:1px solid var(--line);border-radius:17px;background:color-mix(in srgb,var(--surface) 94%,var(--surface-lilac));text-decoration:none;color:var(--ink);display:grid;gap:5px;align-content:start;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.profile-recovery-method>span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:var(--surface);box-shadow:0 6px 14px rgba(45,53,93,.08);font-weight:950}.profile-recovery-method strong{font-size:.78rem;line-height:1.25}.profile-recovery-method small{font-size:.66rem;line-height:1.42;color:var(--muted)}.profile-recovery-method:hover,.profile-recovery-method.is-active{transform:translateY(-2px);border-color:color-mix(in srgb,var(--purple) 34%,var(--line));box-shadow:0 12px 25px rgba(66,57,128,.1)}.profile-recovery-method.is-active{background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 78%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 28%,var(--surface)))}.profile-security-note{margin:0;padding:10px 12px;border-radius:13px;background:color-mix(in srgb,var(--surface-cyan) 35%,var(--surface));color:var(--muted);font-size:.72rem;line-height:1.5}.profile-resend-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.profile-resend-row form{margin:0}.profile-resend-row a{color:var(--purple);font-weight:850;font-size:.74rem}.profile-resend-row button:disabled{opacity:.62;cursor:not-allowed;transform:none!important}.profile-recovery-help{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;padding:18px;border:1px solid color-mix(in srgb,var(--purple) 20%,var(--line));border-radius:20px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 72%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 35%,var(--surface)))}.profile-recovery-help-bot{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:var(--surface);color:var(--purple);font-size:1.4rem;box-shadow:0 10px 24px rgba(66,58,130,.14)}.profile-recovery-help h3{margin:1px 0 7px}.profile-recovery-help p{margin:0 0 13px;color:var(--muted);font-size:.78rem;line-height:1.55}.profile-admin-recovery-card{max-width:760px;margin-inline:auto}.profile-recovery-secure-mark{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--mint) 35%,var(--surface));color:#168366;font-weight:950;font-size:1.15rem;margin-bottom:9px}
.profile-security-panel{grid-column:1/-1}.profile-recovery-email-card{padding:16px;border:1px solid var(--line);border-radius:19px;background:color-mix(in srgb,var(--surface) 95%,var(--surface-cyan));margin-bottom:18px}.profile-recovery-email-card.is-verified{border-color:color-mix(in srgb,#35ad82 35%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,#dff7ee 36%,var(--surface)),var(--surface))}.profile-recovery-email-card.is-pending{border-color:color-mix(in srgb,#d79a34 35%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,#fff1cf 34%,var(--surface)),var(--surface))}.profile-recovery-email-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.profile-recovery-email-head>div{display:flex;align-items:flex-start;gap:10px}.profile-email-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:var(--surface);box-shadow:0 6px 15px rgba(49,59,100,.08)}.profile-recovery-email-head strong{font-size:.86rem}.profile-recovery-email-head p{margin:3px 0 0;color:var(--muted);font-size:.7rem;line-height:1.45;max-width:650px}.profile-email-state{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:.64rem;font-weight:900;color:var(--muted)}.profile-recovery-email-card.is-verified .profile-email-state{color:#168366}.profile-recovery-email-card.is-pending .profile-email-state{color:#a56a13}.profile-email-current{margin:14px 0 0;padding:11px 12px;border-radius:14px;background:color-mix(in srgb,var(--surface) 88%,transparent);display:grid;gap:3px}.profile-email-current span{font-size:.82rem;font-weight:900;overflow-wrap:anywhere}.profile-email-current small{color:var(--muted);font-size:.68rem;line-height:1.42}.profile-email-change{margin-top:12px}.profile-email-change summary{cursor:pointer;color:var(--purple);font-weight:850;font-size:.73rem}.profile-email-change[open]>summary{margin-bottom:12px}.profile-email-remove{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.profile-email-verify-form{grid-template-columns:minmax(0,1fr) auto;align-items:end;margin-top:12px}.profile-security-divider{height:1px;background:var(--line);margin:20px 0}.profile-password-head{margin-bottom:12px}.profile-password-head h3{margin:0}.profile-password-head p{margin:4px 0 0;color:var(--muted);font-size:.72rem;line-height:1.45}
@media(max-width:720px){.profile-recovery-methods{grid-template-columns:1fr}.profile-recovery-method{grid-template-columns:auto 1fr;column-gap:10px}.profile-recovery-method>span{grid-row:1/3}.profile-recovery-method small{grid-column:2}.profile-recovery-email-head{flex-direction:column}.profile-email-state{align-self:flex-start}.profile-email-verify-form{grid-template-columns:1fr}.profile-recovery-help{grid-template-columns:1fr}.profile-help-popover{position:fixed;left:12px!important;right:12px;bottom:auto;top:calc(82px + env(safe-area-inset-top));width:auto;transform:translateY(-6px) scale(.98)!important}.profile-help-tip.is-pinned .profile-help-popover,.profile-help-tip:focus-within .profile-help-popover{transform:none!important}.profile-help-popover::after{display:none}}
@media(prefers-reduced-motion:reduce){.profile-help-tip>button{animation:none}.profile-help-popover,.profile-recovery-method{transition:none}}@keyframes profile-help-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}

/* SUPPORT-0037 · recovery UX, portal tooltip, stronger readability and compact mobile flow. */
.profile-auth-card{--profile-readable-muted:color-mix(in srgb,var(--ink) 72%,var(--muted));--profile-readable-line:color-mix(in srgb,var(--ink) 9%,var(--line))}
.profile-auth-card .profile-form-intro p,.profile-auth-card .profile-create-section-head p,.profile-auth-card .profile-field-help,.profile-auth-card .profile-recovery-email-field small,.profile-auth-card .profile-security-note,.profile-auth-card .profile-recovery-help p,.profile-auth-card .profile-strength-copy>small,.profile-auth-card .profile-generator-note{color:var(--profile-readable-muted)}
.profile-create-section{border-color:color-mix(in srgb,var(--create-accent) 24%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--create-accent) 7%,var(--surface)),color-mix(in srgb,var(--create-accent-2) 6.2%,var(--surface)) 62%,var(--surface));box-shadow:0 6px 0 color-mix(in srgb,var(--create-accent) 7%,transparent)}
.profile-form input,.profile-form select{border-color:var(--profile-readable-line);background:color-mix(in srgb,var(--surface) 97%,var(--surface-lilac))}
.profile-form input::placeholder{color:color-mix(in srgb,var(--ink) 45%,var(--muted));opacity:1}
.profile-field-help,.profile-recovery-email-field small{display:block;margin-top:5px;font-size:.73rem!important;line-height:1.48;font-weight:620}
.profile-recovery-email-intro{margin:0;padding:11px 13px;border-radius:14px;background:color-mix(in srgb,var(--surface-cyan) 32%,var(--surface));border:1px solid color-mix(in srgb,#4bbbd2 15%,var(--line));color:var(--profile-readable-muted);font-size:.76rem;line-height:1.55}
.profile-recovery-or{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:9px;color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.profile-recovery-or::before,.profile-recovery-or::after{content:"";height:1px;background:var(--line)}
.profile-email-verify-hint{margin-bottom:14px}

/* The help bubble is moved to <body> by profile.js, so no section/card can clip it. */
.profile-help-popover{display:none}
body>.profile-help-popover.is-portal{display:block;position:fixed!important;z-index:420!important;right:auto!important;bottom:auto!important;margin:0!important;max-width:calc(100vw - 24px);padding:12px 14px;border-radius:15px;border:1px solid color-mix(in srgb,var(--purple) 26%,var(--line));background:color-mix(in srgb,var(--surface) 98%,#fff);color:var(--ink);font-size:.76rem!important;font-weight:720!important;line-height:1.52;box-shadow:0 22px 60px rgba(35,42,78,.28),0 2px 8px rgba(35,42,78,.11);opacity:0;visibility:hidden;transform:translateY(4px) scale(.985);pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s}
body>.profile-help-popover.is-portal.is-visible{opacity:1;visibility:visible;transform:none;pointer-events:auto}
body>.profile-help-popover.is-portal::after{content:"";position:absolute;left:var(--tip-arrow-left,50%);width:11px;height:11px;background:color-mix(in srgb,var(--surface) 98%,#fff);border:0;transform:translateX(-50%) rotate(45deg)}
body>.profile-help-popover.is-portal[data-placement="top"]::after{top:calc(100% - 5px);border-right:1px solid color-mix(in srgb,var(--purple) 26%,var(--line));border-bottom:1px solid color-mix(in srgb,var(--purple) 26%,var(--line))}
body>.profile-help-popover.is-portal[data-placement="bottom"]::after{bottom:calc(100% - 5px);border-left:1px solid color-mix(in srgb,var(--purple) 26%,var(--line));border-top:1px solid color-mix(in srgb,var(--purple) 26%,var(--line))}
html[data-theme="night"] body>.profile-help-popover.is-portal{background:color-mix(in srgb,var(--surface) 94%,#10162a);box-shadow:0 24px 65px rgba(0,0,0,.5)}
html[data-theme="night"] body>.profile-help-popover.is-portal::after{background:color-mix(in srgb,var(--surface) 94%,#10162a)}

/* Password generation stays available, but only as optional progressive help. */
.profile-password-tools{border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent);padding-top:8px}.profile-password-tools>summary{list-style:none;min-height:48px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 9px;border-radius:13px;cursor:pointer;color:var(--ink);transition:background .15s ease,border-color .15s ease}.profile-password-tools>summary::-webkit-details-marker{display:none}.profile-password-tools>summary:hover{background:color-mix(in srgb,var(--purple) 5%,var(--surface))}.profile-password-tools>summary:focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 25%,transparent);outline-offset:2px}.profile-password-tools-mark{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,#7b6cf2 13%,var(--surface)),color-mix(in srgb,#ffad62 12%,var(--surface)));color:var(--purple);font-size:.9rem;box-shadow:0 4px 10px rgba(78,66,154,.09)}.profile-password-tools>summary>span:nth-child(2){display:grid;gap:2px}.profile-password-tools>summary strong{font-size:.77rem;color:var(--ink-strong)}.profile-password-tools>summary small{font-size:.7rem;line-height:1.4;color:var(--profile-readable-muted)}.profile-password-tools>summary>b{font-size:.68rem;color:var(--purple);text-align:right}.profile-password-tools[open]>summary>b{opacity:.7}.profile-password-generator{display:grid;grid-template-columns:1fr;align-items:stretch;gap:8px;padding:10px 8px 3px;border-top:0}.profile-generator-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;justify-content:stretch}.profile-generator-button{width:100%;min-height:44px}.profile-generator-note{margin:0;font-size:.7rem;line-height:1.45}

/* Custom local SVG recovery illustrations. */
.profile-recovery-method{position:relative;overflow:hidden;border-color:var(--profile-readable-line);background:linear-gradient(150deg,color-mix(in srgb,var(--surface) 96%,var(--surface-lilac)),var(--surface));padding:14px 13px}.profile-recovery-method::after{content:"";position:absolute;right:-28px;top:-34px;width:82px;height:82px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--method-accent,#7c68eb) 12%,transparent),transparent 68%);pointer-events:none}.profile-recovery-method.is-code{--method-accent:#755fe6}.profile-recovery-method.is-email{--method-accent:#29aeb7}.profile-recovery-method.is-help{--method-accent:#e3769a}.profile-recovery-icon{position:relative;z-index:1;width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,var(--method-accent) 13%,var(--surface)),color-mix(in srgb,var(--method-accent) 4%,var(--surface)));border:1px solid color-mix(in srgb,var(--method-accent) 23%,var(--line));box-shadow:0 7px 16px color-mix(in srgb,var(--method-accent) 12%,transparent)}.profile-recovery-icon svg{width:36px;height:36px;overflow:visible}.profile-recovery-icon .rim{fill:color-mix(in srgb,var(--method-accent) 8%,var(--surface));stroke:color-mix(in srgb,var(--method-accent) 78%,var(--ink));stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.profile-recovery-icon .line{fill:none;stroke:color-mix(in srgb,var(--method-accent) 82%,var(--ink));stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.profile-recovery-icon .dot{fill:color-mix(in srgb,var(--method-accent) 75%,#fff)}.profile-recovery-icon .spark{fill:color-mix(in srgb,#ffd969 72%,var(--method-accent));stroke:color-mix(in srgb,var(--method-accent) 72%,var(--ink));stroke-width:1.2;stroke-linejoin:round}.profile-recovery-icon .badge{fill:color-mix(in srgb,#54d7b4 55%,var(--surface));stroke:color-mix(in srgb,#27a987 72%,var(--ink));stroke-width:1.8}.profile-recovery-icon .badge-line{fill:none;stroke:#147c63;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.profile-recovery-method strong{position:relative;z-index:1;font-size:.82rem}.profile-recovery-method small{position:relative;z-index:1;font-size:.72rem;line-height:1.48;color:var(--profile-readable-muted)}

/* Soft navigation keeps the current card painted while the next same-origin view arrives. */
.profile-auth-card{transition:border-color .14s ease,box-shadow .14s ease}.profile-auth-card.is-soft-loading{pointer-events:none}.profile-auth-card.is-soft-loading a{cursor:wait}

@media(max-width:720px){
  .profile-auth-card{padding:13px;border-radius:22px;margin-bottom:34px}.profile-auth-tabs{margin-bottom:18px}.profile-auth-tabs a{min-height:46px}
  .profile-form-intro{margin-bottom:16px}.profile-form-intro h2{font-size:clamp(1.42rem,7vw,1.75rem);line-height:1.13}.profile-form-intro p{font-size:.86rem;line-height:1.55}
  .profile-recovery-methods{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:14px}.profile-recovery-method{grid-template-columns:1fr;justify-items:center;text-align:center;gap:6px;padding:9px 5px;min-height:98px;border-radius:15px}.profile-recovery-method>span{grid-row:auto}.profile-recovery-method small{display:none}.profile-recovery-method strong{font-size:.68rem;line-height:1.24}.profile-recovery-icon{width:38px;height:38px;border-radius:13px}.profile-recovery-icon svg{width:31px;height:31px}
  .profile-form{gap:13px}.profile-form input,.profile-form select{min-height:48px;border-radius:14px}.profile-form label>span,.profile-learning legend{font-size:.8rem}.profile-field-help,.profile-recovery-email-field small{font-size:.7rem!important}.profile-recovery-email-intro,.profile-security-note{font-size:.72rem;padding:9px 10px}
  .profile-create-form{gap:10px}.profile-create-section{gap:12px;padding:12px;border-radius:19px}.profile-create-section-head{grid-template-columns:33px minmax(0,1fr);gap:8px}.profile-create-section-head>span{width:33px;height:33px;border-radius:11px}.profile-create-section-head h3{font-size:.92rem}.profile-create-section-head p{font-size:.73rem;line-height:1.42}.profile-create-grid,.profile-create-grid.is-three{gap:9px}
  .profile-language-option>span{min-height:56px;border-radius:14px;padding:7px 5px}.profile-language-option img{width:28px;height:19px}.profile-language-option b{font-size:.7rem}.profile-check span{min-height:44px}.profile-password-pair{gap:9px}.profile-password-assistant{gap:9px;padding:10px;border-radius:15px}.profile-strength-modern{gap:8px}.profile-strength-modern .profile-strength-copy>span{font-size:.65rem}.profile-strength-modern .profile-strength-copy>strong{font-size:.79rem}.profile-strength-modern .profile-strength-copy>small{font-size:.66rem}.profile-password-tools>summary{min-height:46px;padding:5px 4px;grid-template-columns:32px minmax(0,1fr)}.profile-password-tools>summary>b{display:none}.profile-password-tools>summary small{font-size:.67rem}.profile-generator-actions{grid-template-columns:1fr 1fr}.profile-generator-button.is-copy{grid-column:1/-1}.profile-generator-button{min-height:44px;font-size:.69rem}.profile-generator-note{font-size:.66rem}
  .profile-recovery-help{gap:10px;padding:13px;border-radius:17px}.profile-recovery-help-bot{width:46px;height:46px;border-radius:15px}.profile-recovery-help h3{font-size:1rem}.profile-recovery-help p{font-size:.73rem}
  body>.profile-help-popover.is-portal{font-size:.74rem!important;line-height:1.48;padding:11px 12px;max-width:calc(100vw - 20px)}
}
@media(max-width:380px){
  .profile-auth-card{padding:11px}.profile-auth-tabs{gap:3px;padding:4px}.profile-auth-tabs a{min-height:44px;font-size:.69rem;padding-inline:2px}
  .profile-create-intro h2{font-size:1.48rem}.profile-create-intro p{font-size:.82rem;line-height:1.5}.profile-create-badge{min-height:27px;font-size:.62rem}
  .profile-recovery-method{min-height:94px;padding:8px 3px}.profile-recovery-method strong{font-size:.64rem}.profile-recovery-icon{width:36px;height:36px}.profile-recovery-icon svg{width:29px;height:29px}
  .profile-language-option>span{min-height:54px}.profile-learning>div{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-check span{min-height:44px;padding-inline:4px}.profile-check span b{font-size:.66rem}.profile-check img{width:22px;height:15px}
  .profile-generator-actions{grid-template-columns:1fr}.profile-generator-button.is-copy{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){body>.profile-help-popover.is-portal,.profile-auth-card{transition:none!important}}


/* SUPPORT-0038 · compact professional fields, clear school-level wording and themed speech help. */
.profile-form label{align-content:start}
.profile-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.profile-form input,.profile-form select{min-height:46px;border-radius:13px;padding-inline:13px}
.profile-password-toggle{width:40px;height:40px;border-radius:11px}.profile-password-wrap input{padding-right:53px}
.profile-language-option>span{min-height:56px;padding:8px 10px;border-radius:15px}.profile-language-option img{width:31px;height:21px}.profile-language-option b{font-size:.9rem;letter-spacing:-.01em}.profile-language-option small{font-size:.63rem}
body>.profile-help-popover.is-portal{border-radius:22px 22px 22px 9px;border-color:color-mix(in srgb,var(--purple) 32%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 88%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 46%,var(--surface)) 72%,color-mix(in srgb,#fff4dc 28%,var(--surface)));box-shadow:0 24px 65px rgba(49,43,100,.25),0 4px 0 color-mix(in srgb,var(--purple) 7%,transparent);font-size:.78rem!important;line-height:1.55;padding:13px 15px}
body>.profile-help-popover.is-portal::after{background:color-mix(in srgb,var(--surface-lilac) 78%,var(--surface))}
html[data-theme="night"] body>.profile-help-popover.is-portal{background:linear-gradient(145deg,color-mix(in srgb,#6256d7 18%,var(--surface)),color-mix(in srgb,#269fb8 12%,var(--surface)) 72%,var(--surface));border-color:color-mix(in srgb,#a999ff 34%,var(--line))}
html[data-theme="night"] body>.profile-help-popover.is-portal::after{background:color-mix(in srgb,#6256d7 14%,var(--surface))}
@media(max-width:720px){.profile-three{grid-template-columns:1fr}.profile-form input,.profile-form select{min-height:46px}.profile-language-option>span{min-height:50px;grid-template-columns:auto minmax(0,1fr);justify-items:start;text-align:left;gap:7px;padding:7px 8px}.profile-language-option b{font-size:.76rem}.profile-language-option small{display:none}.profile-language-option img{width:27px;height:18px}.profile-password-toggle{width:40px;height:40px}body>.profile-help-popover.is-portal{font-size:.76rem!important;border-radius:20px 20px 20px 8px;padding:12px 13px}}
@media(max-width:380px){.profile-language-option>span{min-height:48px;padding-inline:6px}.profile-language-option b{font-size:.72rem}.profile-language-option img{width:25px;height:17px}}

/* PROGRESS-0058 · compact real activity history + lossless avatar cropper */
.profile-progress-panel{min-width:0}.profile-progress-panel .profile-panel-head p{margin:.35rem 0 0;color:var(--text-soft);line-height:1.55}.profile-day-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;margin:14px 0}.profile-day-history>div{display:grid;gap:2px;padding:10px 11px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 92%,var(--surface-cyan));min-width:0}.profile-day-history strong{font-size:.83rem}.profile-day-history span,.profile-day-history small{font-size:.68rem;color:var(--text-soft);overflow-wrap:anywhere}.profile-activity-list{display:grid;gap:8px;margin-top:14px}.profile-activity-list article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface) 94%,var(--surface-lilac));min-width:0}.profile-activity-list article>div:last-child{display:grid;gap:2px;min-width:0}.profile-activity-list strong{font-size:.84rem;overflow-wrap:anywhere}.profile-activity-list span,.profile-activity-list small{font-size:.68rem;color:var(--text-soft);line-height:1.4}.profile-activity-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:color-mix(in srgb,var(--purple) 13%,var(--surface));font-weight:900}.profile-activity-mark.is-game{background:color-mix(in srgb,#ffbf58 20%,var(--surface))}.profile-activity-mark.is-material{background:color-mix(in srgb,#48b99a 17%,var(--surface))}.history-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.profile-avatar-editor{display:grid;gap:12px;justify-items:center;padding:13px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--surface) 93%,var(--surface-lilac))}.profile-avatar-editor[hidden]{display:none}.profile-avatar-canvas-wrap{position:relative;width:min(100%,320px);aspect-ratio:1;border-radius:50%;overflow:hidden;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--purple) 22%,var(--line));touch-action:none;user-select:none}.profile-avatar-canvas-wrap canvas{display:block;width:100%;height:100%;cursor:grab}.profile-avatar-canvas-wrap canvas.is-dragging{cursor:grabbing}.profile-avatar-canvas-wrap>span{position:absolute;inset:0;border:2px solid color-mix(in srgb,#fff 78%,transparent);border-radius:50%;pointer-events:none;box-shadow:0 0 0 999px color-mix(in srgb,#10182f 18%,transparent)}.profile-avatar-zoom{display:grid!important;grid-template-columns:auto minmax(120px,1fr);align-items:center;gap:10px;width:min(100%,320px)}.profile-avatar-zoom>span{font-size:.78rem;font-weight:800}.profile-avatar-zoom input{min-height:30px!important;padding:0!important}.profile-avatar-editor>small{max-width:38ch;text-align:center;color:var(--text-soft);font-size:.7rem;line-height:1.45}
@media(max-width:560px){.history-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-day-history{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-activity-list article{grid-template-columns:34px minmax(0,1fr);padding:9px}.profile-activity-mark{width:34px;height:34px}.profile-avatar-canvas-wrap{width:min(100%,280px)}}
@media(prefers-reduced-motion:reduce){.profile-avatar-canvas-wrap canvas{scroll-behavior:auto}}

.profile-activity-overview{display:grid;gap:9px;margin-top:15px}.profile-activity-overview>h3{margin:0;font-size:.82rem}.profile-activity-overview>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.profile-activity-overview article{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--surface) 95%,var(--surface-cyan));min-width:0}.profile-activity-overview article>div{display:grid;gap:2px;min-width:0}.profile-activity-overview strong{font-size:.78rem;overflow-wrap:anywhere}.profile-activity-overview small{font-size:.66rem;color:var(--text-soft);line-height:1.4}@media(max-width:380px){.profile-activity-overview>div{grid-template-columns:1fr}}

/* PROGRESS-0059 · per-session mistake drill-down. Detail rows are intentionally separate from canonical score/progress. */
.profile-session-history,.profile-mistake-patterns{display:grid;gap:9px;margin-top:16px}.profile-mistake-heading>div{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start}.profile-mistake-heading>div>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,#ff8b72 13%,var(--surface));font-weight:900}.profile-mistake-heading h3{margin:0;font-size:.84rem}.profile-mistake-heading p{margin:2px 0 0;color:var(--text-soft);font-size:.68rem;line-height:1.45}.profile-mistake-heading.is-sessions{margin-top:3px}.profile-pattern-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.profile-pattern-grid article{display:grid;gap:3px;padding:10px 11px;border:1px solid color-mix(in srgb,#ff8b72 22%,var(--line));border-radius:14px;background:color-mix(in srgb,#ff8b72 5%,var(--surface));min-width:0}.profile-pattern-grid strong{font-size:.78rem;overflow-wrap:anywhere}.profile-pattern-grid span,.profile-pattern-grid small{font-size:.66rem;color:var(--text-soft);line-height:1.4}.profile-pattern-grid span b{color:var(--text);font-weight:850}.profile-session-card{border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--surface) 95%,var(--surface-lilac));overflow:hidden}.profile-session-card>summary{display:grid;grid-template-columns:38px minmax(0,1fr) auto 24px;gap:10px;align-items:center;padding:10px 11px;cursor:pointer;list-style:none;min-width:0}.profile-session-card>summary::-webkit-details-marker{display:none}.profile-session-card>summary:focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 35%,transparent);outline-offset:-3px}.profile-session-summary{display:grid;gap:2px;min-width:0}.profile-session-summary strong{font-size:.84rem;overflow-wrap:anywhere}.profile-session-summary span,.profile-session-summary small{font-size:.68rem;color:var(--text-soft);line-height:1.4}.profile-mistake-badge{justify-self:end;padding:5px 8px;border-radius:999px;background:color-mix(in srgb,#ff8b72 13%,var(--surface));border:1px solid color-mix(in srgb,#ff8b72 23%,var(--line));font-size:.64rem;font-weight:850;white-space:nowrap}.profile-session-chevron{display:grid;place-items:center;font-size:1rem;transition:transform .18s ease}.profile-session-card[open] .profile-session-chevron{transform:rotate(180deg)}.profile-session-body{display:grid;gap:10px;padding:0 11px 11px 59px;border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent)}.profile-mistake-list{display:grid;gap:7px;padding-top:10px}.profile-mistake-list article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;padding:9px;border:1px solid color-mix(in srgb,#ff8b72 20%,var(--line));border-radius:13px;background:color-mix(in srgb,#ff8b72 4%,var(--surface));min-width:0}.profile-mistake-index{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,#ff8b72 14%,var(--surface));font-weight:950}.profile-mistake-list article>div:last-child{display:grid;gap:3px;min-width:0}.profile-mistake-time{font-size:.62rem;color:var(--text-soft);font-variant-numeric:tabular-nums}.profile-mistake-list strong{font-size:.76rem;overflow-wrap:anywhere}.profile-mistake-list dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:3px 0 0}.profile-mistake-list dl>div{display:grid;gap:2px;padding:7px 8px;border-radius:10px;background:color-mix(in srgb,var(--surface) 88%,transparent);min-width:0}.profile-mistake-list dt{font-size:.6rem;color:var(--text-soft);font-weight:750}.profile-mistake-list dd{margin:0;font-size:.7rem;font-weight:850;overflow-wrap:anywhere}.profile-mistake-delete{border-top:1px dashed var(--line);padding-top:8px}.profile-mistake-delete>summary{cursor:pointer;font-size:.68rem;font-weight:800;color:var(--text-soft)}.profile-mistake-delete>p,.profile-mistake-legacy,.profile-mistake-empty{margin:7px 0 0;color:var(--text-soft);font-size:.68rem;line-height:1.5}.profile-mistake-delete .profile-inline{margin-top:8px}.profile-mistake-delete .button{min-height:42px;font-size:.7rem}
@media(max-width:620px){.profile-session-card>summary{grid-template-columns:34px minmax(0,1fr) 22px}.profile-session-card>summary>.profile-activity-mark{width:34px;height:34px}.profile-mistake-badge{grid-column:2/3;justify-self:start;margin-top:2px}.profile-session-chevron{grid-column:3;grid-row:1/3}.profile-session-body{padding-left:10px}.profile-mistake-list dl{grid-template-columns:1fr}.profile-pattern-grid{grid-template-columns:1fr}}
@media(max-width:380px){.profile-session-card>summary{gap:8px;padding:9px}.profile-session-summary strong{font-size:.78rem}.profile-mistake-badge{white-space:normal}.profile-mistake-heading>div{grid-template-columns:30px minmax(0,1fr)}.profile-mistake-heading>div>span{width:30px;height:30px}.profile-mistake-list article{grid-template-columns:24px minmax(0,1fr);padding:8px}.profile-mistake-index{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.profile-session-chevron{transition:none}}

/* PROFILE-0060: durable sign-in, privacy controls, and fully positionable avatar framing. */
.profile-remember{display:grid!important;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;padding:12px 13px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface) 94%,var(--surface-lilac));cursor:pointer}.profile-remember>input{width:20px!important;height:20px!important;min-height:20px!important;margin:2px 0 0;padding:0!important;accent-color:var(--purple)}.profile-remember>span{display:grid;gap:2px;min-width:0}.profile-remember strong{font-size:.78rem;color:var(--ink-strong)}.profile-remember small{font-size:.67rem;line-height:1.45;color:var(--text-soft)}
.profile-danger.is-history{border-color:color-mix(in srgb,var(--blue) 24%,var(--line));background:color-mix(in srgb,var(--blue) 4%,var(--surface))}.profile-danger.is-history summary{color:color-mix(in srgb,var(--blue) 82%,var(--ink-strong))}
.profile-email-delivery-note{margin:10px 0;padding:10px 12px;border-radius:13px;border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));background:color-mix(in srgb,var(--blue) 5%,var(--surface));color:var(--text-soft);font-size:.68rem;line-height:1.55}
.profile-avatar-editor{justify-items:stretch;padding:14px;gap:13px}.profile-avatar-editor-head{display:grid;gap:3px;text-align:center}.profile-avatar-editor-head strong{font-size:.84rem;color:var(--ink-strong)}.profile-avatar-editor-head small{font-size:.68rem;line-height:1.5;color:var(--text-soft)}.profile-avatar-stage{display:grid;place-items:center;width:100%;min-width:0}.profile-avatar-canvas-wrap{width:min(100%,360px);border-radius:22px;overflow:hidden;background:repeating-conic-gradient(color-mix(in srgb,var(--line) 42%,var(--surface)) 0 25%,var(--surface) 0 50%) 50%/18px 18px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--purple) 22%,var(--line)),0 12px 28px color-mix(in srgb,#10182f 10%,transparent)}.profile-avatar-canvas-wrap canvas{outline:none}.profile-avatar-canvas-wrap canvas:focus-visible{box-shadow:inset 0 0 0 4px color-mix(in srgb,var(--purple) 42%,transparent)}.profile-avatar-canvas-wrap>.profile-avatar-mask{inset:7%;border:2px solid color-mix(in srgb,#fff 88%,transparent);border-radius:50%;box-shadow:0 0 0 999px color-mix(in srgb,#10182f 34%,transparent),inset 0 0 0 1px color-mix(in srgb,#10182f 18%,transparent)}.profile-avatar-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:min(100%,360px);margin-inline:auto}.profile-avatar-presets button,.profile-avatar-zoom-row>button{min-height:44px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink-strong);font:inherit;font-size:.7rem;font-weight:850;cursor:pointer}.profile-avatar-presets button:hover,.profile-avatar-zoom-row>button:hover{background:color-mix(in srgb,var(--purple) 7%,var(--surface));border-color:color-mix(in srgb,var(--purple) 24%,var(--line))}.profile-avatar-presets button:focus-visible,.profile-avatar-zoom-row>button:focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 30%,transparent);outline-offset:2px}.profile-avatar-zoom-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;width:min(100%,360px);margin-inline:auto}.profile-avatar-zoom-row>button{font-size:1.2rem;padding:0}.profile-avatar-zoom{width:100%;grid-template-columns:auto minmax(80px,1fr)}
@media(max-width:560px){.profile-avatar-canvas-wrap{width:min(100%,330px)}.profile-avatar-presets,.profile-avatar-zoom-row{width:100%}.profile-avatar-editor{padding:11px}.profile-avatar-presets button{font-size:.66rem;padding-inline:6px}}
@media(max-width:360px){.profile-avatar-presets{grid-template-columns:1fr}.profile-avatar-presets button{min-height:42px}.profile-avatar-zoom-row{grid-template-columns:42px minmax(0,1fr) 42px}.profile-avatar-zoom{grid-template-columns:1fr;gap:4px}.profile-avatar-zoom>span{text-align:center}.profile-remember{padding:10px}}
@media(prefers-reduced-motion:reduce){.profile-avatar-presets button,.profile-avatar-zoom-row>button{transition:none}}

/* PROFILE-0061 · exact avatar framing + clear progress/privacy hierarchy. */
.profile-progress-panel,.profile-data-panel{grid-column:1/-1}
.profile-panel-head-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.92fr);gap:18px;align-items:start}
.profile-history-quick-clear{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;border:1px solid color-mix(in srgb,var(--blue) 20%,var(--line));border-radius:17px;background:linear-gradient(145deg,color-mix(in srgb,var(--blue) 6%,var(--surface)),color-mix(in srgb,var(--purple) 4%,var(--surface)));min-width:0}
.profile-history-quick-clear>div{display:grid;gap:3px;min-width:0}.profile-history-quick-clear strong{font-size:.78rem;color:var(--ink-strong)}.profile-history-quick-clear small{font-size:.67rem;line-height:1.45;color:var(--text-soft)}.profile-history-quick-clear .button{min-height:44px;white-space:nowrap;font-size:.7rem}.profile-history-quick-clear .button.is-armed{border-color:color-mix(in srgb,#e45d72 35%,var(--line));background:color-mix(in srgb,#ff8798 10%,var(--surface));color:#b72e49}
.profile-time-note{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:start;margin:10px 0 0;padding:9px 11px;border-radius:13px;background:color-mix(in srgb,var(--surface-cyan) 20%,var(--surface));border:1px solid color-mix(in srgb,#48b9c9 13%,var(--line));color:var(--text-soft);font-size:.66rem;line-height:1.5}.profile-time-note>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,#47bdd0 12%,var(--surface));color:color-mix(in srgb,#238ea4 80%,var(--ink));font-weight:900}.profile-time-stat strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.profile-data-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-data-export{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid color-mix(in srgb,#3fb89d 20%,var(--line));border-radius:17px;background:linear-gradient(145deg,color-mix(in srgb,#4dc5a9 6%,var(--surface)),var(--surface));min-width:0}.profile-data-export>div{display:grid;gap:3px;min-width:0}.profile-data-export strong{font-size:.8rem;color:var(--ink-strong)}.profile-data-export small{font-size:.67rem;line-height:1.45;color:var(--text-soft)}.profile-data-export form{margin:0}.profile-data-export .button{min-height:44px;white-space:nowrap}
.profile-data-actions>.profile-danger{margin-top:0}.profile-danger.is-reset{border-color:color-mix(in srgb,#e5963d 32%,var(--line));background:color-mix(in srgb,#ffb65d 6%,var(--surface))}.profile-danger.is-reset summary{color:color-mix(in srgb,#c76b19 78%,var(--ink-strong))}.profile-danger.is-reset>p{font-size:.72rem}.profile-danger.is-reset .button-danger{background:linear-gradient(180deg,#ee8659,#cf5e45);box-shadow:0 6px 0 #a54635,0 12px 25px rgba(176,82,55,.18)}
.profile-remember{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important;padding:13px 14px!important;border-radius:17px!important;border:1px solid color-mix(in srgb,var(--purple) 16%,var(--line))!important;background:linear-gradient(145deg,color-mix(in srgb,var(--purple) 5%,var(--surface)),color-mix(in srgb,#52c7bc 3%,var(--surface)))!important;box-shadow:0 5px 0 color-mix(in srgb,var(--purple) 5%,transparent);cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.profile-remember:hover{border-color:color-mix(in srgb,var(--purple) 29%,var(--line));box-shadow:0 6px 0 color-mix(in srgb,var(--purple) 7%,transparent),0 12px 24px color-mix(in srgb,var(--purple) 7%,transparent)}
.profile-remember-input{position:absolute!important;inline-size:1px!important;block-size:1px!important;min-height:1px!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important}.profile-remember-copy{display:grid!important;gap:3px!important;min-width:0}.profile-remember-copy strong{font-size:.79rem;color:var(--ink-strong)}.profile-remember-copy small{font-size:.67rem;line-height:1.46;color:var(--text-soft)}
.profile-remember-switch{position:relative;display:block;width:54px;height:31px;border-radius:999px;border:1px solid color-mix(in srgb,var(--muted) 20%,var(--line));background:color-mix(in srgb,var(--muted) 13%,var(--surface));box-shadow:inset 0 2px 5px color-mix(in srgb,#18213b 11%,transparent);transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;flex:0 0 auto}.profile-remember-switch i{position:absolute;top:4px;left:4px;width:21px;height:21px;border-radius:50%;background:var(--surface);border:1px solid color-mix(in srgb,var(--muted) 16%,var(--line));box-shadow:0 3px 8px rgba(40,53,83,.18);transition:transform .2s cubic-bezier(.2,.8,.2,1),background .18s ease}.profile-remember-input:checked~.profile-remember-switch{background:linear-gradient(135deg,#617ff4,#8463ee);border-color:color-mix(in srgb,#725fec 58%,var(--line));box-shadow:inset 0 2px 5px rgba(38,46,111,.18),0 0 0 3px color-mix(in srgb,#7b68ef 8%,transparent)}.profile-remember-input:checked~.profile-remember-switch i{transform:translateX(23px);background:#fff}.profile-remember-input:focus-visible~.profile-remember-switch{outline:3px solid color-mix(in srgb,var(--purple) 30%,transparent);outline-offset:3px}
.profile-avatar-canvas-wrap{border-radius:26.4%;isolation:isolate}.profile-avatar-canvas-wrap>.profile-avatar-mask{inset:0!important;border:2px solid color-mix(in srgb,#fff 88%,transparent)!important;border-radius:26.4%!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,#10182f 22%,transparent),inset 0 0 26px color-mix(in srgb,#10182f 8%,transparent)!important;background:transparent!important}
@media(max-width:900px){.profile-panel-head-split{grid-template-columns:1fr}.profile-history-quick-clear{grid-template-columns:minmax(0,1fr) auto}.profile-data-actions{grid-template-columns:1fr}.profile-data-export{grid-column:auto}}
@media(max-width:560px){.profile-history-quick-clear,.profile-data-export{grid-template-columns:1fr}.profile-history-quick-clear .button,.profile-data-export .button{width:100%;white-space:normal}.profile-time-note{font-size:.65rem}.profile-remember{grid-template-columns:minmax(0,1fr) auto!important;padding:12px!important;gap:10px!important}.profile-remember-switch{width:50px;height:29px}.profile-remember-switch i{width:19px;height:19px}.profile-remember-input:checked~.profile-remember-switch i{transform:translateX(21px)}}
@media(max-width:360px){.profile-history-quick-clear{padding:11px}.profile-data-export{padding:12px}.profile-remember{align-items:start!important}.profile-remember-switch{margin-top:2px}}
@media(prefers-reduced-motion:reduce){.profile-remember,.profile-remember-switch,.profile-remember-switch i{transition:none}}

/* PROFILE-0062 · compact accordion architecture, opaque hints, modern inputs and localized country combobox. */
.profile-title-with-help,.profile-heading-with-help{display:flex;align-items:center;gap:8px;min-width:0}.profile-title-with-help h2,.profile-heading-with-help h3,.profile-heading-with-help strong{margin:0;min-width:0}.profile-panel-head-compact{margin-bottom:14px}.profile-stat-label{display:flex;align-items:center;gap:5px;min-width:0}.profile-stat-label .profile-help-tip>button{width:21px;height:21px;font-size:.68rem;box-shadow:none;animation:none}
body>.profile-help-popover.is-portal{z-index:1600!important;background:var(--surface)!important;background-image:none!important;color:var(--ink)!important;border:1px solid color-mix(in srgb,var(--purple) 30%,var(--line))!important;box-shadow:0 22px 64px rgba(25,31,65,.32),0 5px 16px rgba(25,31,65,.14)!important;opacity:0;isolation:isolate;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;max-height:calc(100dvh - 24px);overflow:auto}
body>.profile-help-popover.is-portal.is-visible{opacity:1!important}body>.profile-help-popover.is-portal::after{background:var(--surface)!important;background-image:none!important}.profile-help-tip>button{background:var(--surface)!important}
html[data-theme="night"] body>.profile-help-popover.is-portal{background:var(--surface)!important;color:var(--ink)!important;box-shadow:0 24px 70px rgba(0,0,0,.58),0 5px 16px rgba(0,0,0,.3)!important}html[data-theme="night"] body>.profile-help-popover.is-portal::after{background:var(--surface)!important}

.profile-form .profile-remember{position:relative!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:11px!important;align-items:center!important;padding:11px 12px!important;border-radius:16px!important;border:1px solid color-mix(in srgb,var(--purple) 18%,var(--line))!important;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 58%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 20%,var(--surface)))!important;box-shadow:0 4px 0 color-mix(in srgb,var(--purple) 5%,transparent)!important;cursor:default}.profile-remember-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--surface);border:1px solid color-mix(in srgb,var(--purple) 16%,var(--line));color:var(--purple);box-shadow:0 5px 14px rgba(64,54,132,.08)}.profile-remember-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-remember-copy{display:grid!important;gap:3px!important;min-width:0;font-size:initial!important;font-weight:initial!important}.profile-remember-title-row{display:flex;align-items:center;gap:6px;min-width:0}.profile-remember-title-row>label{display:block!important;font-size:.82rem!important;line-height:1.28;font-weight:900!important;color:var(--ink-strong)!important;cursor:pointer}.profile-remember-copy>small{font-size:.64rem!important;line-height:1.35!important;font-weight:720!important;color:var(--text-soft)!important}.profile-remember-title-row .profile-help-tip>button{width:22px;height:22px;font-size:.68rem;animation:none;box-shadow:none}.profile-form .profile-remember-toggle{display:block!important;position:relative!important;gap:0!important;cursor:pointer}.profile-remember-switch{width:52px;height:30px}.profile-remember-switch i{width:20px;height:20px}.profile-remember-input:checked~.profile-remember-switch i{transform:translateX(22px)}

.profile-country-field{position:relative;display:grid;gap:7px;min-width:0;align-content:start}.profile-country-label{font-weight:850;font-size:.8rem;color:var(--ink-strong)}.profile-country-control{width:100%;min-height:46px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:5px 10px 5px 8px;border:1px solid var(--profile-readable-line,var(--line));border-radius:13px;background:color-mix(in srgb,var(--surface) 97%,var(--surface-lilac));color:var(--ink);font:inherit;cursor:pointer;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.profile-country-control:hover{border-color:color-mix(in srgb,var(--purple) 30%,var(--line));background:color-mix(in srgb,var(--surface-lilac) 48%,var(--surface))}.profile-country-control:focus-visible{outline:0;border-color:color-mix(in srgb,var(--purple) 50%,var(--line));box-shadow:0 0 0 4px color-mix(in srgb,var(--purple) 11%,transparent)}.profile-country-selected{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;align-items:center;min-width:0}.profile-country-selected>b,.profile-country-option>b{display:grid;place-items:center;min-width:34px;height:30px;border-radius:10px;background:color-mix(in srgb,var(--purple) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--purple) 13%,var(--line));color:color-mix(in srgb,var(--purple) 74%,var(--ink));font-size:.66rem;letter-spacing:.05em}.profile-country-selected>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:780}.profile-country-chevron{font-size:1rem;color:var(--muted);transition:transform .16s ease}.profile-country-control[aria-expanded="true"] .profile-country-chevron{transform:rotate(180deg)}.profile-country-menu{position:absolute;z-index:180;left:0;right:0;top:calc(100% + 8px);padding:9px;border:1px solid color-mix(in srgb,var(--purple) 24%,var(--line));border-radius:18px;background:var(--surface);box-shadow:0 22px 58px rgba(32,42,78,.24);min-width:0}.profile-country-menu[hidden]{display:none}.profile-country-search{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:center!important;gap:4px!important;padding:0 8px!important;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface-soft) 54%,var(--surface));margin-bottom:7px}.profile-country-search>span{display:grid!important;place-items:center;font-size:1.05rem!important;color:var(--muted)!important;font-weight:800!important}.profile-country-search input{min-height:42px!important;border:0!important;background:transparent!important;padding:0 4px!important;box-shadow:none!important}.profile-country-list{display:grid;gap:3px;max-height:min(310px,48dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:2px}.profile-country-option{display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-height:43px;padding:5px 7px;border:0;border-radius:11px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.profile-country-option span{font-size:.78rem;font-weight:760;overflow-wrap:anywhere}.profile-country-option:hover,.profile-country-option:focus-visible{outline:0;background:color-mix(in srgb,var(--surface-lilac) 72%,var(--surface))}.profile-country-option[aria-selected="true"]{background:color-mix(in srgb,var(--purple) 10%,var(--surface));color:var(--ink-strong)}.profile-country-option.is-clear{border-bottom:1px solid var(--line);border-radius:10px 10px 4px 4px;margin-bottom:3px}.profile-country-empty{margin:8px 4px 3px;color:var(--muted);font-size:.72rem;text-align:center}.profile-country-empty[hidden]{display:none}

.profile-file-modern{position:relative;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:78px;padding:12px;border:1px dashed color-mix(in srgb,var(--purple) 32%,var(--line));border-radius:17px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 48%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 18%,var(--surface)));cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.profile-file-modern:hover,.profile-file-modern.is-dragover{border-color:color-mix(in srgb,var(--purple) 58%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 74%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 30%,var(--surface)));box-shadow:0 0 0 4px color-mix(in srgb,var(--purple) 7%,transparent)}.profile-file-modern>input{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important}.profile-file-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:var(--surface);border:1px solid color-mix(in srgb,var(--purple) 16%,var(--line));color:var(--purple);box-shadow:0 6px 16px rgba(60,54,124,.08)}.profile-file-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.profile-file-copy{display:grid;gap:3px;min-width:0}.profile-file-copy strong{font-size:.82rem;color:var(--ink-strong)}.profile-file-copy small{font-size:.67rem;color:var(--text-soft);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-file-action{display:inline-grid!important;place-items:center;min-height:38px;padding:0 12px;border-radius:11px;background:var(--surface);border:1px solid color-mix(in srgb,var(--purple) 20%,var(--line));color:var(--purple)!important;font-size:.7rem!important;font-weight:900!important;box-shadow:0 4px 0 color-mix(in srgb,var(--purple) 6%,transparent)}.profile-form [data-avatar-submit]:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.profile-avatar-remove{margin-top:9px}.profile-avatar-editor-head{justify-items:center}.profile-avatar-editor-head .profile-heading-with-help{justify-content:center}

.profile-settings-stack{grid-column:1/-1;display:grid;gap:11px;min-width:0}.profile-settings-section{border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 7px 0 rgba(45,65,95,.045),0 18px 44px rgba(57,75,110,.065);min-width:0}.profile-settings-section>summary{list-style:none}.profile-settings-section>summary::-webkit-details-marker{display:none}.profile-settings-summary{min-height:76px;display:grid;grid-template-columns:48px minmax(0,1fr) 30px;align-items:center;gap:12px;padding:11px 15px;cursor:pointer;border-radius:21px;transition:background .16s ease,border-color .16s ease}.profile-settings-summary:hover{background:color-mix(in srgb,var(--surface-lilac) 34%,var(--surface))}.profile-settings-summary:focus-visible{outline:3px solid color-mix(in srgb,var(--purple) 27%,transparent);outline-offset:3px}.profile-settings-summary>span:nth-child(2){display:grid;gap:3px;min-width:0}.profile-settings-summary strong{font-size:.94rem;line-height:1.25;color:var(--ink-strong)}.profile-settings-summary small{font-size:.67rem;line-height:1.4;color:var(--text-soft);font-weight:720}.profile-settings-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--purple) 11%,var(--surface)),color-mix(in srgb,#5bd0bd 7%,var(--surface)));border:1px solid color-mix(in srgb,var(--purple) 16%,var(--line));color:var(--purple)}.profile-settings-icon.is-security{background:linear-gradient(145deg,color-mix(in srgb,#4bc7a8 13%,var(--surface)),color-mix(in srgb,#5f87ff 7%,var(--surface)));color:#218c76}.profile-settings-icon.is-data{background:linear-gradient(145deg,color-mix(in srgb,#ffb55d 13%,var(--surface)),color-mix(in srgb,#ff799b 6%,var(--surface)));color:#bd6a23}.profile-settings-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.profile-settings-chevron{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:color-mix(in srgb,var(--surface-soft) 65%,var(--surface));color:var(--muted);font-size:1rem;transition:transform .18s ease}.profile-settings-section[open]>.profile-settings-summary{border-bottom:1px solid var(--line);border-radius:21px 21px 0 0;background:color-mix(in srgb,var(--surface-lilac) 22%,var(--surface))}.profile-settings-section[open]>.profile-settings-summary .profile-settings-chevron{transform:rotate(180deg)}.profile-settings-body{padding:16px}.profile-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-settings-card{min-width:0;padding:15px;border:1px solid color-mix(in srgb,var(--ink) 7%,var(--line));border-radius:18px;background:color-mix(in srgb,var(--surface-soft) 28%,var(--surface))}.profile-card-title{margin-bottom:12px}.profile-card-title h2{margin:0;font-size:1.05rem;letter-spacing:-.015em}.profile-compact-submit{justify-self:start;width:auto!important;min-width:150px}.profile-settings-card .profile-language-option>span{min-height:51px}.profile-settings-card .profile-check span{min-height:44px}

.profile-recovery-email-card{margin:0;padding:13px 14px;border-radius:17px}.profile-recovery-email-head{align-items:center}.profile-email-icon{width:36px;height:36px}.profile-email-current{margin-top:10px;padding:9px 10px}.profile-email-change{margin-top:9px}.profile-security-form-compact{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;margin-top:10px}.profile-security-form-compact .button{min-height:46px;white-space:nowrap}.profile-security-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.profile-settings-disclosure{border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--surface-soft) 35%,var(--surface));min-width:0}.profile-settings-disclosure>summary{list-style:none;display:grid;grid-template-columns:34px minmax(0,1fr) 24px;align-items:center;gap:9px;min-height:58px;padding:8px 10px;cursor:pointer}.profile-settings-disclosure>summary::-webkit-details-marker{display:none}.profile-settings-disclosure>summary>span:nth-child(2){display:grid;gap:2px;min-width:0}.profile-settings-disclosure>summary strong{font-size:.78rem;color:var(--ink-strong)}.profile-settings-disclosure>summary small{font-size:.62rem;line-height:1.35;color:var(--text-soft)}.profile-settings-disclosure>summary>span:last-child{color:var(--muted);transition:transform .16s ease}.profile-settings-disclosure[open]>summary>span:last-child{transform:rotate(180deg)}.profile-disclosure-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--purple) 9%,var(--surface));color:var(--purple);font-size:.65rem}.profile-disclosure-icon.is-key{color:#b47720;background:color-mix(in srgb,#ffb45c 14%,var(--surface))}.profile-disclosure-body{position:relative;padding:2px 11px 12px;border-top:1px solid var(--line)}.profile-disclosure-body>.profile-form{padding-top:10px}.profile-disclosure-help{display:flex;justify-content:flex-end;min-height:0;margin:7px 0 -3px}

.profile-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:start}.profile-control-card{min-width:0;padding:12px;border:1px solid var(--line);border-radius:17px;background:color-mix(in srgb,var(--surface-soft) 28%,var(--surface));display:grid;gap:11px;align-content:start}.profile-control-card.is-export{border-color:color-mix(in srgb,#42af91 25%,var(--line));background:color-mix(in srgb,#65d1b3 5%,var(--surface))}.profile-control-card.is-reset{border-color:color-mix(in srgb,#dd9840 28%,var(--line));background:color-mix(in srgb,#ffba63 5%,var(--surface))}.profile-control-card.is-delete{border-color:color-mix(in srgb,#d8536f 28%,var(--line));background:color-mix(in srgb,#ff8198 4%,var(--surface))}.profile-control-card-head{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;min-width:0}.profile-control-card-head>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--surface);border:1px solid var(--line);font-weight:950;color:var(--purple)}.profile-control-card-head>div{min-width:0}.profile-control-card-head strong{font-size:.77rem;color:var(--ink-strong)}.profile-control-card form{margin:0}.profile-control-card>.profile-control-card-head+.profile-control-disclosure,.profile-control-card>form{align-self:end}.profile-control-card .button,.profile-control-disclosure>summary{width:100%;min-height:42px}.profile-control-card .button{font-size:.71rem}.profile-control-disclosure{min-width:0}.profile-control-disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink-strong);font-size:.7rem;font-weight:900;cursor:pointer}.profile-control-disclosure>summary::-webkit-details-marker{display:none}.profile-control-disclosure[open]>summary{margin-bottom:10px;background:color-mix(in srgb,var(--surface-lilac) 48%,var(--surface))}.profile-control-disclosure .profile-form{gap:10px}.profile-control-disclosure .profile-form label>span{font-size:.72rem}.profile-control-disclosure .profile-form input{min-height:44px}.profile-control-disclosure .profile-password-toggle{width:38px;height:38px}.profile-control-card.is-delete .profile-control-card-head>span{color:#bd3151}.profile-control-card.is-reset .profile-control-card-head>span{color:#b66b1f}

.profile-history-cleanup{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:13px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--blue) 18%,var(--line));border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--blue) 4%,var(--surface)),color-mix(in srgb,var(--purple) 3%,var(--surface)))}.profile-history-cleanup-copy{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px;min-width:0}.profile-cleanup-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--surface);border:1px solid color-mix(in srgb,var(--blue) 17%,var(--line));color:color-mix(in srgb,var(--blue) 78%,var(--ink));font-size:1rem;font-weight:900}.profile-history-cleanup-copy>div{display:grid;gap:2px;min-width:0}.profile-history-cleanup-copy strong{font-size:.76rem;color:var(--ink-strong)}.profile-history-cleanup-copy small{font-size:.62rem;line-height:1.35;color:var(--text-soft)}.profile-history-cleanup form{margin:0}.profile-history-cleanup .button{min-height:42px;font-size:.69rem;white-space:nowrap}.profile-history-cleanup .button.is-armed{border-color:color-mix(in srgb,#e45d72 35%,var(--line));background:color-mix(in srgb,#ff8798 10%,var(--surface));color:#b72e49}.profile-mistake-heading .profile-heading-with-help{align-items:center}.profile-session-history .profile-help-tip>button{width:22px;height:22px;font-size:.67rem;animation:none}

@media(max-width:980px){.profile-settings-grid{grid-template-columns:1fr}.profile-control-grid{grid-template-columns:1fr 1fr}.profile-control-card.is-export{grid-column:1/-1}.profile-security-form-compact{grid-template-columns:1fr 1fr}.profile-security-form-compact .button{grid-column:1/-1;justify-self:start;width:auto}.profile-security-actions-grid{grid-template-columns:1fr}}
@media(max-width:720px){body>.profile-help-popover.is-portal{left:12px!important;right:12px!important;width:auto!important;max-width:none!important}.profile-settings-body{padding:12px}.profile-settings-card{padding:12px}.profile-control-grid{grid-template-columns:1fr}.profile-control-card.is-export{grid-column:auto}.profile-security-form-compact{grid-template-columns:1fr}.profile-security-form-compact .button{grid-column:auto;width:100%}.profile-history-cleanup{grid-template-columns:1fr}.profile-history-cleanup .button{width:100%;white-space:normal}.profile-file-modern{grid-template-columns:44px minmax(0,1fr) auto;padding:10px}.profile-file-icon{width:44px;height:44px}.profile-file-action{padding-inline:10px}.profile-country-menu{position:fixed;z-index:1700;left:12px;right:12px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));max-height:min(70dvh,560px);border-radius:20px}.profile-country-list{max-height:min(52dvh,420px)}}
@media(max-width:560px){.profile-settings-summary{min-height:68px;grid-template-columns:42px minmax(0,1fr) 28px;gap:9px;padding:9px 11px}.profile-settings-icon{width:42px;height:42px;border-radius:13px}.profile-settings-icon svg{width:24px;height:24px}.profile-settings-summary strong{font-size:.84rem}.profile-settings-summary small{font-size:.62rem}.profile-form .profile-remember{grid-template-columns:38px minmax(0,1fr) auto!important;padding:10px!important;gap:9px!important}.profile-remember-icon{width:38px;height:38px;border-radius:12px}.profile-remember-title-row>label{font-size:.76rem!important}.profile-remember-copy>small{font-size:.6rem!important}.profile-remember-switch{width:48px;height:28px}.profile-remember-switch i{width:18px;height:18px}.profile-remember-input:checked~.profile-remember-switch i{transform:translateX(20px)}.profile-file-modern{grid-template-columns:42px minmax(0,1fr);gap:9px}.profile-file-icon{width:42px;height:42px}.profile-file-action{grid-column:1/-1;min-height:38px}.profile-file-copy strong{font-size:.77rem}.profile-file-copy small{font-size:.63rem}.profile-control-card{padding:10px}.profile-compact-submit{width:100%!important}.profile-history-cleanup-copy{grid-template-columns:34px minmax(0,1fr)}.profile-cleanup-icon{width:34px;height:34px}.profile-country-control{min-height:46px}.profile-country-selected>span{font-size:.77rem}}
@media(max-width:360px){.profile-settings-summary{grid-template-columns:40px minmax(0,1fr) 24px;padding-inline:9px}.profile-settings-icon{width:40px;height:40px}.profile-settings-summary small{line-height:1.3}.profile-form .profile-remember{grid-template-columns:36px minmax(0,1fr) auto!important}.profile-remember-icon{width:36px;height:36px}.profile-remember-switch{width:46px;height:27px}.profile-remember-switch i{width:17px;height:17px}.profile-remember-input:checked~.profile-remember-switch i{transform:translateX(19px)}.profile-country-menu{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.profile-settings-summary,.profile-settings-chevron,.profile-country-control,.profile-country-chevron,.profile-file-modern,.profile-remember-switch,.profile-remember-switch i{transition:none!important}}
/* PROFILE-0062 specificity guards for nested compact controls. */
.history-stats .profile-stat-label,.history-stats .profile-help-tip,.history-stats .profile-help-popover{min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font-size:inherit;font-weight:inherit}.history-stats .profile-stat-label{display:flex}.history-stats .profile-help-tip{display:inline-grid}.profile-form .profile-file-icon{color:var(--purple);font-weight:400}.profile-form .profile-file-copy{font-weight:initial;color:inherit}.profile-form .profile-file-action{color:var(--purple)!important}

/* PROFILE-0063 · visual polish: true speech hints, centered KPI cards, searchable country UX, clean disclosure icons and consistent microinteractions. */
.profile-chevron-svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.profile-session-chevron .profile-chevron-svg{width:17px;height:17px}
.profile-settings-chevron,.profile-country-chevron,.profile-disclosure-chevron{display:grid;place-items:center;color:var(--muted)}
.profile-disclosure-chevron{width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,var(--surface-soft) 62%,var(--surface));transition:transform .18s ease,background .18s ease,color .18s ease}
.profile-settings-disclosure[open]>summary .profile-disclosure-chevron{transform:rotate(180deg)}

/* Help bubbles are speech bubbles again: compact, opaque and never internally scroll for normal hint copy. */
body>.profile-help-popover.is-portal{width:max-content!important;max-width:min(330px,calc(100vw - 24px))!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;padding:12px 14px!important;border-radius:18px 18px 18px 8px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 88%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 43%,var(--surface)) 74%,color-mix(in srgb,#fff3d8 20%,var(--surface)))!important;border:1px solid color-mix(in srgb,var(--purple) 30%,var(--line))!important;color:var(--ink)!important;box-shadow:0 20px 52px rgba(38,43,83,.24),0 4px 0 color-mix(in srgb,var(--purple) 7%,transparent)!important;line-height:1.5!important;scrollbar-width:none!important}
body>.profile-help-popover.is-portal::-webkit-scrollbar{display:none!important}
body>.profile-help-popover.is-portal::after{width:12px!important;height:12px!important;background:color-mix(in srgb,var(--surface-lilac) 80%,var(--surface))!important}
body>.profile-help-popover.is-portal[data-placement="top"]::after{top:calc(100% - 6px)!important}
body>.profile-help-popover.is-portal[data-placement="bottom"]::after{bottom:calc(100% - 6px)!important}
html[data-theme="night"] body>.profile-help-popover.is-portal{background:linear-gradient(145deg,color-mix(in srgb,#6559d9 18%,var(--surface)),color-mix(in srgb,#279bae 12%,var(--surface)) 74%,var(--surface))!important;border-color:color-mix(in srgb,#a899ff 35%,var(--line))!important;color:var(--ink)!important}
html[data-theme="night"] body>.profile-help-popover.is-portal::after{background:color-mix(in srgb,#6559d9 14%,var(--surface))!important}
@media(max-width:720px){body>.profile-help-popover.is-portal{left:auto!important;right:auto!important;width:max-content!important;max-width:calc(100vw - 20px)!important}}

/* Dashboard KPI cards: icon, value, label share one center axis. */
.profile-metrics>div{grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;justify-items:center!important;align-content:center!important;text-align:center!important;gap:5px!important;padding:15px 12px!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.profile-metrics>div>span{grid-row:auto!important;display:grid!important;place-items:center!important;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--purple) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--purple) 12%,var(--line));font-size:1.05rem!important;line-height:1!important;align-self:auto!important}
.profile-metrics>div:nth-child(2)>span{background:color-mix(in srgb,#51c8a7 11%,var(--surface));color:#268b72}
.profile-metrics>div:nth-child(3)>span{background:color-mix(in srgb,#ffad54 14%,var(--surface))}
.profile-metrics>div:nth-child(4)>span{background:color-mix(in srgb,#62a7ff 11%,var(--surface));color:#397acc}
.profile-metrics strong{font-size:1.85rem!important;line-height:1!important;font-variant-numeric:tabular-nums}
.profile-metrics small{display:block;line-height:1.2;text-align:center}
.history-stats>span{display:grid;justify-items:center;align-content:center;text-align:center;gap:2px}.history-stats .profile-stat-label{justify-content:center!important;text-align:center}.history-stats strong{font-variant-numeric:tabular-nums}

/* Country picker: localized name first; ISO stays searchable/internal rather than visual chrome. */
.profile-country-selected{grid-template-columns:34px minmax(0,1fr)!important;gap:9px!important}
.profile-country-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-cyan) 52%,var(--surface)),color-mix(in srgb,var(--surface-lilac) 55%,var(--surface)));border:1px solid color-mix(in srgb,var(--purple) 14%,var(--line));color:var(--purple)}
.profile-country-mark svg,.profile-country-search svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profile-country-chevron{width:30px;height:30px;border-radius:10px;background:color-mix(in srgb,var(--surface-soft) 65%,var(--surface));transition:transform .18s ease,background .18s ease,color .18s ease}
.profile-country-control[aria-expanded="true"] .profile-country-chevron{transform:rotate(180deg);background:color-mix(in srgb,var(--purple) 10%,var(--surface));color:var(--purple)}
.profile-country-search>span{font-size:0!important}.profile-country-search>span svg{width:17px;height:17px}
.profile-country-option{grid-template-columns:minmax(0,1fr) 28px!important;gap:9px!important;padding:6px 8px!important}
.profile-country-option[hidden]{display:none!important}
.profile-country-option>span{font-size:.79rem!important;font-weight:780!important}
.profile-country-option>i{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;font-style:normal;font-size:.72rem;color:transparent;background:transparent;transition:color .15s ease,background .15s ease,transform .15s ease}
.profile-country-option[aria-selected="true"]>i{color:var(--purple);background:color-mix(in srgb,var(--purple) 10%,var(--surface))}
.profile-country-option.is-clear>i{color:var(--muted)}
.profile-country-option:hover>i,.profile-country-option:focus-visible>i{transform:scale(1.06)}
.profile-country-list{scrollbar-color:color-mix(in srgb,var(--purple) 24%,var(--line)) transparent;scrollbar-width:thin}
.profile-country-list::-webkit-scrollbar{width:7px}.profile-country-list::-webkit-scrollbar-track{background:transparent}.profile-country-list::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--purple) 24%,var(--line));border-radius:999px}

/* Clean interaction language for custom controls. Native .button already has School motion in base.css. */
.profile-settings-summary,.profile-settings-disclosure>summary,.profile-country-control,.profile-file-modern,.profile-control-disclosure>summary,.profile-session-card>summary{transition:transform .18s cubic-bezier(.2,.8,.2,1),background .18s ease,border-color .18s ease,box-shadow .18s ease}
@media(hover:hover) and (pointer:fine){
  .profile-metrics>div:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--purple) 18%,var(--line));box-shadow:0 10px 0 rgba(45,65,95,.055),0 18px 34px rgba(57,75,110,.1)}
  .profile-settings-summary:hover,.profile-settings-disclosure>summary:hover,.profile-country-control:hover,.profile-file-modern:hover,.profile-control-disclosure>summary:hover,.profile-session-card>summary:hover{transform:translateY(-1px)}
  .profile-settings-summary:hover .profile-settings-chevron,.profile-settings-disclosure>summary:hover .profile-disclosure-chevron,.profile-country-control:hover .profile-country-chevron{background:color-mix(in srgb,var(--purple) 10%,var(--surface));color:var(--purple)}
}
@media(max-width:560px){.profile-metrics>div{min-height:106px!important;padding:13px 9px!important}.profile-metrics>div>span{width:31px;height:31px;border-radius:10px}.profile-metrics strong{font-size:1.55rem!important}.profile-country-selected{grid-template-columns:32px minmax(0,1fr)!important}.profile-country-mark{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.profile-metrics>div,.profile-settings-summary,.profile-settings-disclosure>summary,.profile-country-control,.profile-file-modern,.profile-control-disclosure>summary,.profile-session-card>summary,.profile-disclosure-chevron,.profile-country-option>i{transition:none!important}}
@media(max-width:720px){body>.profile-help-popover.is-portal.is-visible{transform:none!important}body>.profile-help-popover.is-portal::after{display:block!important}}

/* PROFILE-0064 · surgical UX correction: opaque hints, explicit country choice, one sensitive security action at a time. */
body>.profile-help-popover.is-portal{
  background-color:#fbfaff!important;
  background-image:linear-gradient(145deg,#ffffff 0%,#f8f5ff 54%,#f0fbff 100%)!important;
  border-color:#cfc6f4!important;
  box-shadow:0 22px 58px rgba(37,43,79,.26),inset 0 1px 0 #ffffff!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body>.profile-help-popover.is-portal::after{
  background:#f6f6ff!important;
}
html[data-theme="night"] body>.profile-help-popover.is-portal{
  background-color:#242c49!important;
  background-image:linear-gradient(145deg,#293251 0%,#262d4b 55%,#2d294d 100%)!important;
  border-color:#635c91!important;
  color:#f8f9ff!important;
  box-shadow:0 24px 64px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="night"] body>.profile-help-popover.is-portal::after{
  background:#292e4d!important;
}
.profile-security-actions-grid>details[open]{
  border-color:color-mix(in srgb,var(--purple) 22%,var(--line));
  box-shadow:0 9px 24px rgba(48,58,100,.08);
}

/* SOCIAL-0071 — profile friends hub */
.profile-social-panel{grid-column:1/-1;padding:clamp(18px,2.4vw,28px);display:grid;gap:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 97%,#fff),color-mix(in srgb,var(--surface-cyan) 35%,var(--surface)))}
.profile-social-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.profile-social-head h2{margin:4px 0 3px}.profile-social-head p{margin:0;max-width:650px;color:var(--muted);font-size:.82rem;line-height:1.5}
.profile-social-shield{flex:0 0 48px;width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,#51d3b0 22%,var(--surface)),color-mix(in srgb,var(--purple) 16%,var(--surface)));border:1px solid color-mix(in srgb,#45bfa3 28%,var(--line))}.profile-social-shield svg{width:25px;height:25px;fill:none;stroke:#2eaa8e;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-social-intro-grid{display:grid;grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr);gap:12px}.profile-social-code-card,.profile-social-add{min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:14px;box-shadow:0 8px 20px rgba(42,54,90,.05)}
.profile-social-code-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 12px}.profile-social-code-card small{grid-column:1/-1;color:var(--muted);font-weight:850}.profile-social-code-card strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(.85rem,1.7vw,1.02rem);letter-spacing:.045em;overflow-wrap:anywhere}.profile-social-code-card .button{min-height:40px;padding:7px 12px}
.profile-social-add{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.profile-social-add label{display:grid;gap:6px}.profile-social-add label>span{font-weight:900;font-size:.78rem}.profile-social-add input{min-height:44px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);padding:9px 11px;font:inherit;font-size:.83rem;text-transform:uppercase}.profile-social-add small{color:var(--muted);font-size:.66rem;line-height:1.4;text-transform:none}.profile-social-add .button{min-height:44px}.profile-social-form-status{grid-column:1/-1;margin:0;min-height:1em;color:var(--muted);font-size:.69rem;font-weight:800}
.profile-social-dynamic{display:grid;gap:12px}.profile-social-dynamic .social-section{padding:14px;border-radius:18px}.profile-social-dynamic .social-section>h3{font-size:.84rem}.social-friend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.social-friend-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:10px;border-radius:15px;border:1px solid var(--line);background:var(--surface)}.social-friend-copy{min-width:0;display:grid;gap:2px}.social-friend-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.social-friend-copy small{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.63rem}.social-friend-copy small i{width:7px;height:7px;border-radius:50%;background:#aab4c8}.social-friend-copy small.is-online i{background:#42cda5;box-shadow:0 0 0 3px color-mix(in srgb,#42cda5 16%,transparent)}
.social-friend-games{display:flex;gap:5px}.social-friend-games button{min-height:36px;padding:5px 8px;border-radius:10px;border:1px solid color-mix(in srgb,var(--purple) 22%,var(--line));background:color-mix(in srgb,var(--surface-lilac) 52%,var(--surface));color:var(--purple);font:inherit;font-size:.62rem;font-weight:900;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.social-friend-games button:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(73,60,145,.1)}
.social-friend-more{position:relative}.social-friend-more summary{list-style:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);cursor:pointer}.social-friend-more summary::-webkit-details-marker{display:none}.social-friend-more summary svg{width:18px;height:18px;fill:currentColor}.social-friend-more>div{position:absolute;z-index:8;right:0;top:42px;min-width:150px;padding:6px;border-radius:13px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 36px rgba(42,51,84,.18);display:grid;gap:4px}.social-friend-more button{width:100%;min-height:36px;border:0;border-radius:9px;background:transparent;color:var(--ink);text-align:left;padding:7px 9px;font:inherit;font-size:.67rem;font-weight:850;cursor:pointer}.social-friend-more button:hover{background:var(--surface-lilac)}.social-friend-more button.is-danger{color:#c93e62}
.profile-social-dynamic .social-settings{grid-template-columns:minmax(0,1.1fr) repeat(3,minmax(150px,.7fr));align-items:stretch}.social-settings label{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface);font-size:.67rem;font-weight:850}.social-settings input{position:absolute;opacity:0;pointer-events:none}.social-settings label i{position:relative;flex:0 0 40px;width:40px;height:22px;border-radius:999px;background:#cdd5e3;box-shadow:inset 0 1px 3px rgba(40,52,80,.15);transition:background .15s ease}.social-settings label i::after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(28,35,64,.22);transition:transform .15s ease}.social-settings input:checked+i{background:linear-gradient(90deg,#57d0b0,#6c68e8)}.social-settings input:checked+i::after{transform:translateX(18px)}.social-settings input:focus-visible+i{outline:3px solid color-mix(in srgb,var(--purple) 32%,transparent);outline-offset:3px}.profile-social-safety{margin:0;display:flex;gap:8px;align-items:flex-start;color:var(--muted);font-size:.68rem;line-height:1.45}.profile-social-safety span{width:22px;height:22px;flex:0 0 22px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,#4ac6a3 16%,var(--surface));color:#2ca486;font-weight:950}
@media(max-width:900px){.profile-social-intro-grid{grid-template-columns:1fr}.social-friend-grid{grid-template-columns:1fr}.profile-social-dynamic .social-settings{grid-template-columns:1fr 1fr}.profile-social-dynamic .social-settings .social-section-copy{grid-column:1/-1}}
@media(max-width:560px){.profile-social-panel{padding:15px;gap:14px}.profile-social-head p{font-size:.75rem}.profile-social-shield{width:42px;height:42px;flex-basis:42px}.profile-social-code-card{grid-template-columns:1fr}.profile-social-code-card .button{width:100%}.profile-social-add{grid-template-columns:1fr}.profile-social-add .button{width:100%}.social-friend-card{grid-template-columns:auto minmax(0,1fr) auto}.social-friend-games{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.social-friend-games button{min-height:40px}.profile-social-dynamic .social-settings{grid-template-columns:1fr}.profile-social-dynamic .social-settings .social-section-copy{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.social-friend-games button,.social-settings label i,.social-settings label i::after{transition:none}.social-friend-games button:hover{transform:none}}

/* SOCIAL-0073 — compact expandable Friends, grouped history and private friend activity. */
.profile-settings-icon.is-social{background:linear-gradient(145deg,color-mix(in srgb,#37cfa4 14%,var(--surface)),color-mix(in srgb,#766cf0 8%,var(--surface)));color:#239b7d}
.profile-social-accordion .profile-social-panel{grid-column:auto;padding:16px;gap:14px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 97%,#fff),color-mix(in srgb,var(--surface-cyan) 35%,var(--surface)));box-shadow:none;border-radius:0 0 21px 21px}
.profile-social-accordion .social-friend-more summary{width:44px;height:44px}
.social-friend-card{grid-template-columns:auto minmax(0,1fr) auto auto;min-height:58px}
.social-friend-copy{display:block}.social-friend-name{min-width:0;display:flex;align-items:center;gap:9px}.social-friend-name strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}.social-friend-name .social-presence-orb{flex-basis:18px;width:18px;height:18px;margin-left:1px}.social-friend-name .social-presence-orb i{width:8px;height:8px}
.social-invite-one{min-height:44px;padding:7px 12px;border:1px solid color-mix(in srgb,var(--purple) 22%,var(--line));border-radius:12px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-blue) 66%,var(--surface)),var(--surface));color:var(--purple);font:850 .68rem/1 var(--font-ui);cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.social-invite-one:hover,.social-invite-one:focus-visible{transform:translateY(-1px);border-color:color-mix(in srgb,var(--purple) 38%,var(--line));box-shadow:0 7px 15px rgba(62,62,119,.08);outline:none}
.profile-history-group{border:1px solid color-mix(in srgb,var(--line) 88%,transparent);border-radius:17px;background:color-mix(in srgb,var(--surface-soft) 28%,var(--surface));overflow:hidden}.profile-history-group>summary{min-height:50px;padding:9px 11px;display:grid;grid-template-columns:14px minmax(0,1fr) auto 24px;align-items:center;gap:9px;list-style:none;cursor:pointer}.profile-history-group>summary::-webkit-details-marker{display:none}.profile-history-group>summary strong{font-size:.78rem;color:var(--ink-strong)}.profile-history-group>summary>span:nth-of-type(2){min-width:26px;height:26px;padding:0 7px;border-radius:999px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);font-size:.62rem;font-weight:900;color:var(--muted)}.profile-history-group>summary>i{display:grid;place-items:center;color:var(--muted);transition:transform .18s ease}.profile-history-group[open]>summary>i{transform:rotate(180deg)}.profile-history-group-mark{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 4px color-mix(in srgb,var(--purple) 8%,transparent);background:var(--purple)}.profile-history-group-mark.is-lesson{background:#4f8de8}.profile-history-group-mark.is-game{background:#ef9c3f}.profile-history-group-mark.is-material{background:#38bea0}.profile-history-group-body{display:grid;gap:8px;padding:0 9px 9px;border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent)}.profile-history-group-body>.profile-session-card:first-child{margin-top:9px}.profile-session-friend{font-weight:850;color:color-mix(in srgb,var(--success) 72%,var(--ink));}
.social-activity-shell{border:1px solid color-mix(in srgb,var(--purple) 15%,var(--line));border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-lilac) 38%,var(--surface)),color-mix(in srgb,var(--surface-cyan) 28%,var(--surface)));overflow:hidden}.social-activity-shell>summary{min-height:62px;padding:11px 13px;list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:9px}.social-activity-shell>summary::-webkit-details-marker{display:none}.social-activity-shell>summary h3{margin:0;font-size:.84rem;color:var(--ink-strong)}.social-activity-shell>summary p{margin:3px 0 0;font-size:.65rem;line-height:1.4;color:var(--muted)}.social-activity-shell>summary>i{width:9px;height:9px;justify-self:center;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .18s ease}.social-activity-shell[open]>summary>i{transform:rotate(225deg)}.social-activity-content{display:grid;gap:12px;padding:12px;border-top:1px solid color-mix(in srgb,var(--line) 82%,transparent)}.social-activity-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.social-activity-metrics>span{min-width:0;padding:9px 7px;border:1px solid var(--line);border-radius:13px;background:var(--surface);display:grid;gap:2px;text-align:center}.social-activity-metrics strong{font:950 1rem/1 var(--font-ui);color:var(--ink-strong)}.social-activity-metrics small{font-size:.58rem;line-height:1.25;color:var(--muted);font-weight:800}.social-activity-chart{height:94px;padding:8px 8px 5px;border:1px solid var(--line);border-radius:14px;background:var(--surface);display:flex;align-items:flex-end;gap:4px;overflow:hidden}.social-activity-bar{position:relative;flex:1;min-width:3px;height:100%;padding-bottom:15px;box-sizing:border-box;display:flex;align-items:flex-end;justify-content:center}.social-activity-bar>i{width:min(13px,72%);height:calc(var(--bar,0) * 63px);min-height:5px;border-radius:999px 999px 4px 4px;background:linear-gradient(180deg,color-mix(in srgb,var(--purple) 72%,#9d91ff),color-mix(in srgb,#48ccb0 76%,var(--purple)));box-shadow:0 3px 7px color-mix(in srgb,var(--purple) 15%,transparent);transition:height .2s ease}.social-activity-bar>small{position:absolute;bottom:0;font-size:.5rem;color:var(--muted);line-height:1}
.social-activity-details,.social-leaderboard-shell{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.social-activity-details>summary,.social-leaderboard-shell>summary{min-height:48px;padding:9px 11px;list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto 22px;align-items:center;gap:8px}.social-activity-details>summary::-webkit-details-marker,.social-leaderboard-shell>summary::-webkit-details-marker{display:none}.social-activity-details>summary span,.social-leaderboard-shell>summary span{font-size:.72rem;font-weight:900}.social-activity-details>summary strong{min-width:25px;height:25px;padding:0 6px;display:grid;place-items:center;border-radius:999px;background:var(--surface-lilac);color:var(--purple);font-size:.6rem}.social-leaderboard-shell>summary small{font-size:.58rem;color:var(--muted);font-weight:750}.social-activity-details>summary i,.social-leaderboard-shell>summary i{width:8px;height:8px;justify-self:center;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .18s ease}.social-activity-details[open]>summary i,.social-leaderboard-shell[open]>summary i{transform:rotate(225deg)}
.social-recent-matches{display:grid;gap:6px;padding:0 9px 9px;border-top:1px solid var(--line)}.social-recent-matches article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 4px;border-bottom:1px dashed color-mix(in srgb,var(--line) 74%,transparent)}.social-recent-matches article:last-child{border-bottom:0}.social-recent-matches article>div{min-width:0;display:grid;gap:2px}.social-recent-matches article strong{font-size:.69rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.social-recent-matches article small{font-size:.58rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.social-recent-matches article em{font-style:normal;font-size:.62rem;font-weight:850;color:var(--ink-strong);white-space:nowrap}.social-result-badge{min-width:46px;padding:5px 7px;border-radius:999px;text-align:center;font-size:.56rem;font-weight:950}.social-result-badge.is-win{background:color-mix(in srgb,var(--success) 12%,var(--surface));color:var(--success)}.social-result-badge.is-loss{background:color-mix(in srgb,#e16f73 11%,var(--surface));color:#b64f59}.social-result-badge.is-draw{background:color-mix(in srgb,var(--purple) 10%,var(--surface));color:var(--purple)}
.social-leaderboard-body{display:grid;gap:9px;padding:10px;border-top:1px solid var(--line)}.social-leaderboard-body>p{margin:0;color:var(--muted);font-size:.62rem;line-height:1.4}.social-leaderboard-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.social-leaderboard-tabs button{min-height:44px;padding:6px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft);color:var(--muted);font:800 .6rem/1.2 var(--font-ui);cursor:pointer}.social-leaderboard-tabs button.is-active{background:color-mix(in srgb,var(--purple) 10%,var(--surface));border-color:color-mix(in srgb,var(--purple) 28%,var(--line));color:var(--purple)}.social-leaderboard-list{display:grid;gap:5px}.social-leaderboard-list article{min-width:0;display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 8px;border:1px solid color-mix(in srgb,var(--line) 80%,transparent);border-radius:11px;background:color-mix(in srgb,var(--surface-soft) 38%,var(--surface))}.social-leaderboard-list article.is-self{border-color:color-mix(in srgb,var(--purple) 26%,var(--line));background:color-mix(in srgb,var(--purple) 5%,var(--surface))}.social-leaderboard-list article>span{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:var(--surface);font-size:.6rem;font-weight:950;color:var(--purple)}.social-leaderboard-list strong{min-width:0;font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.social-leaderboard-list strong small{font-size:.5rem;color:var(--purple)}.social-leaderboard-list em{font-style:normal;font-size:.58rem;font-weight:820;color:var(--muted);white-space:nowrap}
@media(max-width:700px){.social-friend-grid{grid-template-columns:1fr}.social-activity-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-social-accordion .profile-social-panel{padding:13px}.social-recent-matches article{grid-template-columns:auto minmax(0,1fr)}.social-recent-matches article em{grid-column:2}.social-leaderboard-list article{grid-template-columns:26px minmax(0,1fr)}.social-leaderboard-list em{grid-column:2;white-space:normal}}
@media(max-width:420px){.social-friend-more summary{width:44px;height:44px}.social-friend-card{grid-template-columns:auto minmax(0,1fr) auto;padding:9px;gap:8px}.social-invite-one{grid-column:2/4;width:100%;min-height:44px}.social-friend-more{grid-column:3;grid-row:1}.social-activity-chart{height:78px;padding-inline:5px}.social-activity-bar>i{height:calc(var(--bar,0) * 45px)}.social-leaderboard-tabs{grid-template-columns:1fr}.social-leaderboard-tabs button{min-height:44px}.profile-history-group>summary{grid-template-columns:12px minmax(0,1fr) auto 20px;padding-inline:9px}.profile-social-accordion .profile-social-panel{padding:10px}.profile-settings-body.profile-social-panel{overflow:hidden}}
@media(max-width:340px){.social-activity-metrics{grid-template-columns:1fr 1fr}.social-friend-card{grid-template-columns:36px minmax(0,1fr) 36px}.social-avatar-token{width:34px}.social-invite-one{grid-column:1/-1}.social-friend-more{grid-column:3}.social-recent-matches article{padding-inline:1px}}
@media(prefers-reduced-motion:reduce){.social-invite-one,.social-activity-bar>i,.profile-history-group>summary>i,.social-activity-shell>summary>i,.social-activity-details>summary i,.social-leaderboard-shell>summary i{transition:none!important}.social-invite-one:hover{transform:none}}

/* QA-0080 · PSI: auth navigation is readable in every guest/profile mode. */
.profile-auth-tabs a{color:color-mix(in srgb,var(--muted) 72%,var(--ink-strong))}
