/* Profile and nested Settings share the existing Hybrid tokens. */
body[data-profile-active=true]{background:var(--home-bg);color:var(--home-text)}
#screen-profile{max-width:520px;margin:auto;padding:16px var(--home-inset) 28px;color:var(--home-text);overflow-wrap:anywhere}
.profile-hybrid [hidden]{display:none!important}.profile-hybrid .muted{color:var(--home-muted)}.profile-top,.profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-gear{display:grid;place-items:center;width:44px;min-height:44px;flex:none;border:1px solid var(--home-line);border-radius:14px;background:var(--home-surface);color:var(--home-text);font-size:22px}.profile-gear svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.profile-identity{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:center;margin:22px 0 16px}.profile-avatar{display:grid;place-items:center;width:64px;height:64px;flex:none;overflow:hidden;border-radius:22px;background:var(--home-soft);color:var(--home-accent);font-weight:650;font-size:24px}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-identity h1{font-size:1.5rem;letter-spacing:-.7px;line-height:1.2;margin:0 0 6px;font-weight:650}.profile-identity .active-language{margin:0;font-size:.875rem;color:var(--home-muted)}.profile-identity p{margin:8px 0 0}.profile-level-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.8125rem;margin:0 0 22px;flex-wrap:wrap}
.profile-plan-card{background:var(--home-soft);border:1px solid var(--home-line);border-radius:var(--home-radius);padding:18px;display:flex;align-items:center;gap:12px}.profile-plan-card>div{min-width:0;flex:1}.profile-plan-card h2{font-size:1.25rem;margin:6px 0;font-weight:650}.profile-plan-card p{margin:0;line-height:1.5}.profile-link{min-height:44px;min-width:44px;color:var(--home-accent);background:none;border:0;font:inherit;font-size:.8125rem;font-weight:600;white-space:normal;padding:8px 0}
.profile-block{margin:24px 0}.profile-block h2{font-size:1.0625rem;letter-spacing:-.2px;font-weight:650;margin:0 0 14px}.profile-statistics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-stat{border:1px solid var(--home-line);border-radius:18px;background:var(--home-surface);padding:16px;box-shadow:var(--home-shadow)}.profile-stat b{display:block;font-size:1.5rem;letter-spacing:-.6px;font-weight:650;margin-bottom:4px}.profile-stat span{font-size:.75rem;color:var(--home-muted);line-height:1.4}.profile-block>p{font-size:.6875rem;line-height:1.5;margin:10px 0}
.profile-hybrid .language-row{display:flex;align-items:center;gap:12px;border:1px solid var(--home-line);border-radius:18px;background:var(--home-surface);padding:14px 16px;margin-bottom:10px;flex-wrap:wrap}.profile-hybrid .language-row>div:first-child{flex:1;min-width:100px}.profile-hybrid .language-row>div:last-child{max-width:100%;display:flex;gap:4px;flex-wrap:wrap}.profile-hybrid .language-row strong{font-size:.9375rem;font-weight:650}.profile-hybrid .language-row[data-active=true]{border-color:var(--home-accent);background:var(--home-soft)}.profile-hybrid .language-row .btn{width:auto;margin:0;font-size:.75rem;padding:10px 12px}.profile-hybrid .language-row .small{margin-top:5px}
.profile-achievements summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;cursor:pointer;font-size:1.0625rem;font-weight:650;list-style:none}.profile-achievements summary::-webkit-details-marker{display:none}.profile-achievements summary:after{content:'+' ;color:var(--home-accent)}.profile-achievements[open] summary:after{content:'−'}.profile-achievement{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--home-line)}.profile-achievement .badge-symbol{display:grid;place-items:center;border-radius:12px;background:var(--home-soft);color:var(--home-accent);width:38px;height:38px}.profile-achievement.locked .badge-symbol{background:var(--home-track);color:var(--home-muted)}.profile-achievement h3{margin:0;font-size:.875rem;line-height:1.4;font-weight:650}.profile-achievement p{margin:4px 0;font-size:.75rem;color:var(--home-muted);line-height:1.45}.profile-achievement progress{width:100%;height:5px;accent-color:var(--home-accent);display:block;margin:8px 0}.profile-achievement small{font-size:.6875rem;color:var(--home-muted)}
.profile-menu-row{width:100%;min-height:72px;padding:16px;margin:0 0 10px;border:1px solid var(--home-line);border-radius:18px;display:flex;align-items:center;gap:14px;text-align:left;color:var(--home-text);background:var(--home-surface);font:inherit;box-shadow:var(--home-shadow)}.profile-menu-row>span:nth-last-child(2){flex:1;min-width:0}.profile-menu-row b{font-size:.9375rem;font-weight:650;display:block}.profile-menu-row small{font-size:.75rem;line-height:1.5;color:var(--home-muted);display:block;margin-top:4px}.profile-menu-row>span:last-child{color:var(--home-accent);font-size:20px}.profile-menu-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--home-soft);color:var(--home-accent);font-size:22px;flex:none}
.settings-top{display:flex;align-items:center;gap:14px;margin:4px 0 24px}.settings-top>div{min-width:0}.settings-top h1{font-size:1.5rem;letter-spacing:-.7px;font-weight:650;margin:5px 0 0}.profile-hybrid .card{border:1px solid var(--home-line);background:var(--home-surface);border-radius:var(--home-radius);padding:20px;box-shadow:var(--home-shadow);margin-bottom:16px}.profile-hybrid .card h2{font-size:1.0625rem;letter-spacing:-.2px;margin:0 0 14px;font-weight:650}.profile-hybrid .card h3{font-size:.9375rem;margin:20px 0 8px;font-weight:650}.profile-hybrid .row{gap:12px;min-height:56px;border-bottom:1px solid var(--home-line);padding:10px 0;flex-wrap:wrap;font-size:.875rem}.profile-hybrid .row>span:first-child,.profile-hybrid .row>label:first-child{flex:1;min-width:90px}.profile-hybrid .row select{max-width:100%;min-height:44px;font:inherit;font-size:.8125rem;border:1px solid var(--home-line);border-radius:12px;background:var(--home-bg);color:var(--home-text);padding:10px;min-width:80px}.profile-hybrid .btn{min-height:44px;border-radius:14px;font-size:.875rem;white-space:normal;margin:12px 0 0;background:var(--home-soft);color:var(--home-accent);border:1px solid var(--home-line)}.profile-hybrid .switch{width:52px!important;height:44px;min-width:52px!important;flex:0 0 52px!important;display:inline-block;position:relative}.profile-hybrid .slider{top:8px;bottom:8px;background:var(--home-track)}.profile-hybrid .switch input:checked+.slider{background:var(--home-brand)}.profile-hybrid .switch input:focus-visible+.slider{outline:3px solid var(--home-accent);outline-offset:3px}.profile-hybrid .interest-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border-radius:14px;border:1px solid var(--home-line);background:var(--home-bg);font-size:.8125rem;margin:0;max-width:100%;box-sizing:border-box}.profile-hybrid #interests-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-hybrid input[type=checkbox]{accent-color:var(--home-brand)}.profile-hybrid .interest-option:has(input:checked){background:var(--home-soft);border-color:var(--home-accent)}.profile-hybrid .interest-option input{flex:none}.profile-hybrid #save-preferences{background:var(--home-brand);color:white;width:100%}.profile-hybrid .account-privacy button{width:100%}.profile-hybrid .account-legal{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.profile-hybrid .account-legal a{min-height:44px;display:inline-flex;align-items:center;color:var(--home-accent);font-size:.8125rem}.profile-hybrid .privacy-delete{color:var(--home-accent);border-color:var(--home-accent)}.settings-status{min-height:20px;margin:10px 4px;line-height:1.5}.profile-hybrid .pill{background:var(--home-soft);color:var(--home-text);border:1px solid var(--home-line);font-size:.75rem;margin:4px;padding:8px 12px}.profile-hybrid button:focus-visible,.profile-hybrid summary:focus-visible{outline:3px solid var(--home-accent);outline-offset:3px}
body[data-profile-active=true] nav{background:var(--home-surface);border-color:var(--home-line)}body[data-profile-active=true] nav button{color:var(--home-muted)}body[data-profile-active=true] nav button.active{color:var(--home-accent)}
body[data-profile-active=true] dialog{background:var(--home-surface);color:var(--home-text);border:1px solid var(--home-line);border-radius:22px;width:calc(100% - 40px);max-width:440px;box-sizing:border-box;padding:22px;max-height:calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto}body[data-profile-active=true] dialog p{color:var(--home-muted);font-size:.8125rem;line-height:1.6}body[data-profile-active=true] dialog input{min-height:44px;max-width:100%;box-sizing:border-box;color:var(--home-text);background:var(--home-bg);border:1px solid var(--home-line);border-radius:12px;padding:12px}body[data-profile-active=true] dialog .btn{min-height:44px;background:var(--home-soft);color:var(--home-accent);border:1px solid var(--home-line)}
#screen-profile.dashboard-pending>#profile-overview,#screen-profile.dashboard-pending>#profile-settings{visibility:hidden;pointer-events:none}#screen-profile .talkio-screen-loader{color:var(--home-text)}#screen-profile .talkio-screen-loader .card{background:var(--home-surface)}
@media(max-width:365px){#screen-profile{--home-inset:16px}.profile-hybrid .card{padding:16px}.profile-stat{padding:14px}.profile-identity{gap:12px}}
@media(prefers-reduced-motion:reduce){.profile-hybrid *{animation:none!important;transition:none!important}}

/* Long identity stays compact; interests wrap as complete chips. */
.profile-identity h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.profile-hybrid #interests-options{display:flex;flex-wrap:wrap;gap:8px}.profile-hybrid .interest-option{width:auto;flex:none;overflow-wrap:normal;word-break:normal}.profile-hybrid .interest-option input{width:18px;height:18px;margin:0}
/* Personal schedule uses existing Hybrid geometry and theme tokens. */
#settings-reminders input[type=time],#reminder-timezone,#startup-diagnostics{min-height:44px;border:1px solid var(--home-line);border-radius:var(--radius-control);padding:10px 12px;background:var(--home-surface);color:var(--home-text);font:inherit;box-sizing:border-box}
#settings-reminders input[type=time]{font-size:16px;max-width:150px}
#reminder-timezone{width:100%;margin:6px 0 10px;font-size:16px}
#settings-reminders #save-reminder-schedule{background:var(--home-accent);color:#fff}
