.profile-edit-backdrop[hidden]{display:none}.profile-edit-backdrop .profile-edit-sheet{max-height:min(760px,calc(100vh - 80px));max-height:min(760px,calc(100dvh - 80px));display:flex;flex-direction:column;overflow:hidden}.profile-edit-content{overflow-y:auto}.profile-edit-sheet>footer,.profile-edit-sheet>header{flex:0 0 auto}.profile-edit-sheet .profile-edit-body,.profile-edit-sheet .profile-edit-preferences{min-width:0;margin:0;border:0;padding:16px 20px}.profile-edit-sheet .profile-edit-group-title{float:left;width:100%;padding:0;margin:0 0 12px;color:var(--ui-ink);font:700 var(--ui-fs-label)/1.5 var(--font-sans)}.profile-edit-sheet .profile-edit-preferences{border-top:1px solid var(--ui-line);padding-bottom:8px}.profile-edit-preferences .profile-edit-group-title{margin-bottom:8px}.profile-edit-region,.profile-edit-subject{width:100%;min-height:48px;padding:12px 0;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:10px;border:0;background:transparent;color:var(--ui-ink);font:500 var(--ui-fs-label)/1.5 var(--font-sans);text-align:left}.profile-edit-region{cursor:pointer}.profile-edit-region>span{min-width:0;display:grid;gap:4px}.profile-edit-region strong{font-weight:500}.profile-edit-region small{color:var(--ui-muted);font-size:var(--ui-fs-caption);line-height:1.5}.profile-edit-region b{color:var(--ui-accent-dark);font-weight:600}.profile-edit-region svg{color:var(--ui-muted)}.profile-edit-region:hover b,.profile-edit-region:hover svg{color:var(--ui-accent-dark)}.profile-edit-region:focus-visible{outline:2px solid var(--ui-accent-dark);outline-offset:4px;border-radius:4px}.profile-edit-subject{border-top:1px solid var(--ui-line);padding:4px 0}.profile-edit-subject-control{grid-column:2/4;position:relative;min-width:148px}.profile-edit-subject-control select{width:100%;min-height:44px;padding:0 28px 0 4px;border:0;border-radius:4px;appearance:none;color:var(--ui-accent-dark);background:transparent;font:600 var(--ui-fs-label)/1.5 var(--font-sans);text-align:right;text-align-last:right;cursor:pointer}.profile-edit-subject-control svg{position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--ui-muted);pointer-events:none}.profile-edit-subject-control select:focus-visible{outline:2px solid var(--ui-accent-dark);outline-offset:2px}.profile-edit-subject-notice{clear:both;margin:0;padding:0 0 8px;color:var(--ui-muted);font-size:var(--ui-fs-caption);line-height:1.5}.profile-edit-sheet>header>button{width:44px;height:44px;display:grid;place-items:center}.profile-edit-sheet>footer{position:static;background:var(--ui-bg);border-top:1px solid var(--ui-line)}.profile-edit-sheet>footer button{min-height:44px}.profile-edit-sheet .profile-edit-field input{height:44px;padding-right:64px}.profile-edit-sheet .profile-edit-field textarea{padding-bottom:28px}.profile-edit-error{margin:0;padding:0 20px 16px;color:var(--app-red);font-size:var(--ui-fs-caption);line-height:1.6}.profile-edit-sheet button:disabled{opacity:.6;cursor:wait}.profile-edit-sheet.study-profile-sheet{width:min(440px,100%);height:auto;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);background:var(--ui-bg,var(--color-bg));--ds-form-focus:var(--ui-accent-dark,var(--color-brand-strong))}.study-profile-sheet>header{align-items:center;padding:16px 20px;gap:10px}.study-profile-sheet>header h2{flex:1;min-width:0;margin:0;font:700 var(--fs-lg,20px)/1.4 var(--font-sans)}.study-profile-sheet>header>button{width:44px;height:44px;flex:0 0 44px}.study-profile-sheet .profile-edit-content{padding:20px;min-height:0}.study-settings-primary{padding:0;margin:0;border:0;min-width:0}.study-settings-primary legend{padding:0;margin:0 0 10px;font-weight:700;color:var(--ui-ink,var(--color-text-strong))}.study-setting-row{width:100%;min-height:56px;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:10px;padding:12px 0;border:0;border-bottom:1px solid var(--ui-line,var(--color-border));background:transparent;color:var(--ui-ink,var(--color-text));font:inherit;text-align:left}.study-setting-row strong{max-width:12em;font-weight:600;color:var(--ui-accent-dark,var(--color-brand-strong));overflow-wrap:anywhere}.study-setting-row svg{color:var(--ui-muted,var(--color-text-soft))}.study-choice-note,.study-local-note,.study-settings-hint{margin:12px 0 0;color:var(--ui-muted,var(--color-text-soft));font-size:var(--fs-caption,13px);line-height:1.6}.study-settings-primary+.study-personal-section{margin-top:20px}.study-personal-section{border:1px solid var(--ui-line,var(--color-border));border-radius:var(--radius-reading,12px);overflow:hidden}.study-personal-summary{width:100%;min-height:72px;display:flex;align-items:center;gap:12px;padding:12px;border:0;background:transparent;color:var(--ui-ink,var(--color-text));text-align:left;font:inherit}.study-personal-summary>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}.study-personal-summary strong{font-size:var(--fs-sm,15px);font-weight:600}.study-personal-summary small{font-weight:400;margin-left:6px}.study-personal-summary small,.study-personal-summary>span:nth-child(2)>span{font-size:var(--fs-caption,13px);color:var(--ui-muted,var(--color-text-soft))}.study-avatar-preview{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:var(--color-brand-soft);color:var(--color-brand-strong);font-weight:700}.study-personal-summary>svg{color:var(--ui-muted,var(--color-text-soft));flex-shrink:0}.study-personal-summary>svg.is-expanded{transform:rotate(90deg)}.study-personal-fields{padding:4px 12px 14px;margin:0;border:0;min-width:0;display:grid;gap:14px}.study-avatar-options{display:flex;flex-wrap:wrap;gap:var(--space-2,8px)}.study-avatar-options button{width:44px;height:44px;border:1px solid var(--ui-line,var(--color-border));border-radius:10px;background:var(--ui-bg,var(--color-surface));color:var(--ui-muted,var(--color-text-soft));font:inherit}.study-avatar-options button[aria-pressed=true]{color:var(--color-surface-raised);background:var(--color-brand-strong);border-color:var(--color-brand-strong)}.study-profile-sheet.profile-politics-theme{--color-brand-strong:var(--color-subject-politics);--color-brand-soft:var(--color-subject-politics-soft)}.study-profile-sheet.profile-politics-theme>footer button:last-child{border-color:var(--color-subject-politics);background:var(--color-subject-politics)}.study-profile-sheet.profile-politics-theme .study-avatar-options button:not([aria-pressed=true]){color:var(--color-subject-politics);border-color:var(--color-subject-politics-alt)}.study-profile-sheet .study-profile-field{display:grid;gap:6px}.study-profile-sheet .study-profile-field.ds-form-field textarea.ds-form-control{min-height:96px;resize:vertical}.study-profile-sheet .study-profile-field>small{display:none;color:var(--ui-muted,var(--color-text-soft));font-size:var(--fs-caption,13px);text-align:right}.study-profile-sheet .study-profile-field:focus-within>small{display:block}.study-profile-sheet>footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 20px max(14px,env(safe-area-inset-bottom))}.study-profile-sheet>footer button{width:100%;min-height:48px;font:inherit}.study-profile-sheet button:disabled{cursor:not-allowed}.study-profile-sheet :is(button,input,textarea):focus-visible{outline:2px solid var(--ui-accent-dark,var(--color-brand-strong));outline-offset:2px}.study-choice-panel{min-height:200px}.study-choice-search{display:flex;align-items:center;gap:8px;margin-bottom:12px;border:1px solid var(--ui-line,var(--color-border));border-radius:10px;padding:0 12px;color:var(--ui-muted,var(--color-text-soft))}.study-choice-search input{min-width:0;min-height:48px;padding:10px 0}.study-choice-list>button,.study-choice-search input{width:100%;border:0;background:transparent;color:var(--ui-ink,var(--color-text));font:inherit}.study-choice-list>button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 0;border-bottom:1px solid var(--ui-line,var(--color-border));text-align:left}.study-choice-list>button[aria-pressed=true]{color:var(--ui-accent-dark,var(--color-brand-strong));font-weight:600}.study-choice-list small{color:var(--ui-muted,var(--color-text-soft));font-size:var(--fs-caption,13px)}.study-choice-empty{color:var(--ui-muted,var(--color-text-soft));text-align:center;padding:24px 0}@media(max-width:600px){.profile-edit-sheet.study-profile-sheet{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);min-height:0}}.profile-politics-theme{--readable-action:var(--color-subject-politics);--ui-accent-dark:var(--color-subject-politics);--ui-accent-soft:var(--color-subject-politics-soft);--ui-line:var(--color-subject-politics-soft)}.profile-politics-theme .profile-avatar-button i{background:var(--color-subject-politics-deep)}.app-header--politics .profile-notification-trigger{border-color:var(--color-subject-politics-soft)}.app-header--politics :is(.profile-settings-trigger,.profile-notification-trigger){color:var(--color-subject-politics)}.profile-dashboard-v2>.profile-identity-card{min-height:0;padding:14px 16px;gap:12px;box-shadow:none}.profile-dashboard-v2>.profile-identity-card,.profile-dashboard-v2>.profile-notifications-row{border:1px solid var(--ui-line);border-radius:var(--learning-radius-card);background:var(--ui-surface)}.profile-dashboard-v2>.profile-notifications-row{min-height:48px;display:flex;align-items:center;gap:10px;padding:10px 16px;color:var(--ui-ink);text-decoration:none;font:600 var(--fs-control)/1.4 var(--font-sans)}.profile-notifications-row>svg{flex:none;color:var(--readable-action)}.profile-notifications-row>span:first-of-type{flex:1}.profile-notifications-row .profile-notifications-count{color:var(--night-danger,var(--app-red));white-space:nowrap;font:600 var(--fs-caption)/1.4 var(--font-sans)}.profile-appearance-label{display:inline-flex;align-items:center;gap:10px}.profile-appearance-label>svg{flex:none;color:var(--readable-action)}.profile-dashboard-v2 .profile-identity-copy>:is(h1,.profile-identity-details){display:block;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-dashboard-v2 .profile-identity-copy>h1{font:700 20px/24px var(--font-sans)}.profile-dashboard-v2 .profile-identity-copy>.profile-identity-details{display:flex;align-items:center;gap:6px;margin-top:4px;color:var(--readable-muted);font:400 14px/16px var(--font-sans)}.profile-identity-details>.profile-identity-tag{min-width:0;overflow:hidden;padding-inline:6px;border-radius:var(--radius-control);background:var(--ui-accent-soft);color:var(--readable-action);font:600 12px/16px var(--font-sans);text-overflow:ellipsis}.profile-identity-details>.profile-identity-tag:last-child{flex:none}.profile-dashboard-v2 .profile-identity-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.profile-dashboard-v2 .profile-identity-actions button{min-height:44px;width:auto;max-width:100%;padding:10px 14px;font:600 var(--fs-control)/1.4 var(--font-sans);white-space:normal;overflow-wrap:normal;border-radius:12px}.profile-dashboard-v2 .profile-identity-actions .profile-edit-trigger{padding:0 4px;color:var(--readable-action);background:transparent;border:0;font-size:var(--fs-caption);white-space:nowrap}.profile-dashboard-v2 .profile-edit-trigger:before{content:none}.profile-dashboard-v2 .profile-login-primary{background:var(--readable-action);color:var(--paper-0);border:1px solid var(--readable-action)}.profile-dashboard-v2 .profile-section-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}.profile-dashboard-v2 .profile-record-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.profile-dashboard-v2 .profile-record-grid>a{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 0;background:none;border:0;border-bottom:1px solid var(--ui-line);border-radius:0}.profile-dashboard-v2 .profile-record-grid>a>span:nth-child(2){flex:1;min-width:0}.profile-dashboard-v2 .profile-record-grid>a>b{font:500 var(--fs-helper)/1.5 var(--font-num);color:var(--readable-muted)}.profile-dashboard-v2 .profile-record-grid>a:after{content:"›";color:var(--readable-muted);font-size:var(--fs-legacy-22)}.profile-dashboard-v2 .profile-record-icon{width:28px;height:28px;flex:0 0 28px;background:none;color:var(--readable-action);border:0;font-size:var(--fs-control)}.profile-settings-drawer-body{display:flex;flex-direction:column}.profile-settings-drawer-body>.profile-about-settings{order:10}.profile-settings-drawer #profile-about-title,.profile-settings-drawer .profile-settings-group-title h3{font:600 var(--fs-section)/1.4 var(--font-sans)}.profile-settings-drawer :is(.profile-account-summary,.profile-settings-details,.profile-privacy-list){border:0;border-radius:0;background:none;box-shadow:none}.profile-settings-drawer .profile-settings-details{border-top:1px solid var(--ui-line)}.profile-settings-drawer .profile-settings-details>summary{padding:12px 0;min-height:48px;font-size:var(--fs-control)}.profile-settings-drawer .profile-privacy-list>label{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:16px;padding:14px 0}.profile-settings-drawer :is(p,small){font-size:var(--fs-caption);line-height:1.65;overflow-wrap:anywhere}.profile-settings-drawer .profile-privacy-list strong{font-size:var(--fs-control)}.profile-settings-drawer :is(button,a,summary){min-height:44px}.profile-settings-drawer .ai-consent-setting>label{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:16px;align-items:center;padding:14px 0}.profile-settings-drawer .ai-consent-setting>label input{justify-self:center;margin:0}.profile-settings-drawer .profile-local-data-group>h3{font:600 var(--fs-section)/1.4 var(--font-sans);margin:0 0 18px}.profile-settings-drawer .profile-local-data-group .profile-data-settings{padding:0;margin-top:20px;border:0;background:none;border-radius:0;box-shadow:none}.profile-settings-drawer .profile-local-data-group h4{font-size:var(--fs-helper)}.profile-settings-drawer .profile-about-list a{display:inline-flex;align-items:center;min-height:44px}.profile-settings-drawer .profile-account-actions .danger{background:transparent;color:var(--ui-danger,var(--night-negative,#9c4438));border:1px solid;padding:10px 14px;border-radius:10px}.profile-edit-sheet{display:flex;flex-direction:column;max-height:90svh}.profile-edit-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px}.profile-edit-sheet>footer,.profile-edit-sheet>header{flex:none}.profile-edit-sheet>footer{padding-bottom:max(18px,env(safe-area-inset-bottom))}.profile-edit-sheet>footer button{min-height:48px;font-size:var(--fs-control)}.profile-edit-sheet :is(.profile-edit-body,.profile-edit-preferences){min-width:0;border:0;padding:0;margin:0 0 24px;background:none}.profile-edit-sheet .profile-edit-group-title{font:600 var(--fs-helper)/1.5 var(--font-sans);margin-bottom:14px}.profile-edit-sheet .profile-edit-field>small{position:static;display:block;text-align:right;margin-top:4px}.profile-edit-sheet .profile-edit-field input{min-height:48px}.profile-edit-sheet :is(input,textarea,select){font-size:var(--fs-control);max-width:100%;box-sizing:border-box}@media (max-width:380px){.profile-dashboard-v2 .profile-identity-actions--multiple{grid-column:2/-1;justify-content:flex-end}}.profile-device-list>div{flex-wrap:wrap;padding:10px 0}.profile-device-list>div>span{min-width:0;flex:1 1 140px;overflow-wrap:anywhere}.profile-device-list strong{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px}.profile-device-list .profile-device-state{font:inherit;font-size:13px;font-style:normal;font-weight:400;color:var(--app-muted)}.profile-device-list button{min-height:44px;min-width:44px;padding:8px 12px;flex-shrink:0}.profile-device-list button:focus-visible{outline:2px solid var(--app-jade);outline-offset:3px}.politics-record-back{min-height:44px;padding:0 12px;margin:0 0 12px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);color:var(--ui-accent-dark);font:inherit}.politics-personal-records{display:grid;gap:12px}.politics-personal-records article{padding:16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);overflow-wrap:anywhere}.politics-personal-records small{display:block;margin-top:4px;color:var(--readable-muted)}.politics-personal-records p{white-space:pre-wrap;line-height:1.7}.profile-settings-drawer .appearance-setting:has(.profile-appearance-options){display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-settings-drawer .appearance-setting h3{margin:0;color:var(--ui-text);font:600 var(--fs-section)/1.4 var(--font-sans)}.profile-appearance-options{display:flex;gap:2px;padding:3px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface)}.profile-appearance-options button{display:grid;place-items:center;width:44px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer}.profile-appearance-options button[aria-pressed=true]{background:var(--ui-accent-soft);color:var(--ui-accent-dark)}.module-page.profile-settings-page{width:min(100% - 24px,640px);padding:10px 0 max(18px,env(safe-area-inset-bottom))}.profile-settings-page .profile-settings-full{width:100%;height:auto;max-height:none;border:0;background:transparent;box-shadow:none}.profile-settings-page .profile-settings-drawer-body{padding:0;overflow-y:visible;background:transparent}.profile-settings-page .profile-settings-group{background:var(--ui-surface)}:is(.study-profile-sheet,.ds-form-scope) .ds-form-field :is(input,textarea).ds-form-control{width:100%;min-height:48px;font:inherit;padding:10px var(--space-3,12px);border:1px solid var(--ui-line,var(--color-border));border-radius:var(--radius-control,10px);background:var(--ui-bg,var(--color-surface));color:var(--ui-ink,var(--color-text))}:is(.study-profile-sheet,.ds-form-scope) .ds-form-field :is(input,textarea).ds-form-control:focus-visible{outline:2px solid var(--ds-form-focus,var(--color-focus));outline-offset:2px}:is(.study-profile-sheet,.ds-form-scope) .ds-form-field :is(input,textarea).ds-form-control:disabled{opacity:.6;cursor:not-allowed}:is(.study-profile-sheet,.ds-form-scope) .ds-form-field :is(input,textarea).ds-form-control[aria-invalid=true]{border-color:var(--color-danger)}