/* Shared profile cards keep the existing controls and their handlers. */
.profile-application-settings{order:7;padding:16px;border:1px solid var(--profile-line);border-radius:18px;background:rgba(7,12,20,.64);backdrop-filter:blur(18px)}
.profile-application-settings>summary{cursor:pointer;font-weight:650;font-size:14px;color:#d8eaff}
.profile-application-updates h4{margin:16px 0 12px;font-size:15px}
.profile-application-updates dl{display:grid;gap:9px;margin:0;font-size:12px}
.profile-application-updates dl>div{display:flex;justify-content:space-between;gap:12px}
.profile-application-updates dt{color:var(--muted);min-width:0}.profile-application-updates dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.profile-application-updates [data-update-status]{font-size:12px;line-height:1.5;color:#bad9f8}
.profile-application-updates .app-update-notes{white-space:pre-line;font-size:11px;line-height:1.5;color:var(--muted)}
.profile-application-updates .app-update-notes:empty{display:none}
.app-update-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.app-update-actions>button{flex:1 1 160px;min-height:44px;padding:10px;border-radius:12px;font:inherit;font-size:12px}
.profile-application-updates .app-update-actions:has([data-update-download-apk]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-application-updates .app-update-actions:has([data-update-download-apk])>button{min-width:0;overflow-wrap:anywhere}
.profile-application-updates .app-update-actions:has([data-update-download-apk])>[data-update-download]{grid-column:1/-1}
.app-update-progress{display:flex;align-items:center;gap:10px;font-size:12px}
.app-update-progress progress{flex:1;min-width:0;height:7px;accent-color:#8dc6ff}.app-update-progress [hidden],.app-update-actions [hidden]{display:none!important}
:is(#profileForm,#agentProfileForm).profile-layout{
  --profile-blue:#8dc6ff;--profile-line:rgba(141,198,255,.18);
  display:flex;flex-direction:column;gap:16px;color:#eaf3ff;min-width:0;
}
.profile-layout>*{min-width:0;max-width:100%;box-sizing:border-box}
.profile-layout :is(.profile-preview,.agent-profile-preview){order:0;padding:14px 16px;border:1px solid var(--profile-line);border-radius:18px;background:linear-gradient(120deg,rgba(55,115,200,.12),rgba(55,115,200,.025));gap:16px}
.profile-layout>:is(.field,.agent-profile-field){order:1}
.profile-layout>:is(input[hidden],.agent-profile-error:empty){display:none}
.profile-layout :is(.profile-preview strong,.agent-profile-preview strong){font-size:20px;font-weight:700;overflow-wrap:anywhere}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-reports,.profile-tools,.profile-storage,.profile-documents){padding:16px;border:1px solid var(--profile-line);border-radius:18px;background:rgba(10,20,34,.52);margin:0}
.profile-layout .profile-appearance{order:2}
:is(#profileForm,#agentProfileForm).profile-layout .profile-reports{order:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1fr);gap:12px;align-items:center}
.profile-layout :is(.profile-reports,.profile-tools)>h4{grid-column:1/-1;margin:0;font-size:15px;line-height:1.4;font-weight:700;letter-spacing:0;text-transform:none;color:#eaf3ff;text-align:left}
:is(#profileForm,#agentProfileForm).profile-layout .profile-reports :is(#profileReportPreview,#agentProfileReportPreview){grid-column:auto;width:100%;min-height:44px;margin:0;padding:10px 14px;border:1px solid rgba(100,175,255,.4);border-radius:12px;background:rgba(55,115,200,.16);color:#eaf3ff;font:inherit;font-size:13px;cursor:pointer}
:is(#profileForm,#agentProfileForm).profile-layout .profile-reports :is(.profile-report-export,.agent-profile-report-export){grid-column:auto;display:flex;width:100%;margin:0;gap:8px;min-width:0}
:is(#profileForm,#agentProfileForm).profile-layout .profile-reports select{width:100%;min-width:0;min-height:44px;border-radius:12px!important}
.profile-layout .profile-tools{order:4;display:block}
.profile-layout .profile-tools[open]{display:block}
.profile-layout .profile-tools>button{width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--profile-line);border-radius:12px;background:rgba(141,198,255,.045);color:#d6e8fb;font:inherit;font-size:13px;text-align:center;cursor:pointer}
.profile-layout .profile-tools>button+button{margin-top:12px}
.profile-layout .profile-tools #shareExchangeBtn{display:flex;justify-content:center;align-items:center;gap:8px;grid-column:auto;text-align:center}
.profile-layout .profile-tools #shareExchangeBtn :is(.profile-share-action__icon,.profile-share-action__chevron,small){display:none}
.profile-layout .profile-tools #shareExchangeBtn .profile-share-action__copy{display:inline}
.profile-layout .profile-tools #shareExchangeBtn strong{font:inherit;color:inherit}
.profile-layout .profile-tools>h4{order:-1}
.profile-layout .profile-tools>button{order:0}
.profile-layout .profile-dream{order:5;margin:0;border-radius:18px;border-color:var(--profile-line);background:rgba(55,115,200,.06);gap:14px}
.profile-layout .profile-dream p{font-size:12px;line-height:1.6}
.profile-layout .profile-updates{order:6}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-application-settings,.profile-tools,.admin-users-panel,.profile-storage,.profile-documents)>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;cursor:pointer;list-style:none;font-size:14px;font-weight:650;color:#d8eaff}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-application-settings,.profile-tools,.admin-users-panel,.profile-storage,.profile-documents)>summary::-webkit-details-marker{display:none}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-application-settings,.profile-tools,.admin-users-panel,.profile-storage,.profile-documents)>summary::after{content:'⌄';font-size:20px;color:var(--profile-blue);transition:transform .18s}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-application-settings,.profile-tools,.admin-users-panel,.profile-storage,.profile-documents)[open]>summary{margin-bottom:16px}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-application-settings,.profile-tools,.admin-users-panel,.profile-storage,.profile-documents)[open]>summary::after{transform:rotate(180deg)}
.profile-layout .profile-background-field{padding:0;border:0;background:none}
.profile-layout .profile-background-preview{height:132px;border-radius:12px}
.profile-layout .profile-background-head{gap:12px}
.profile-layout .profile-notifications{padding:0;border:0;background:none;margin:0}
.profile-layout .profile-notifications__head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
.profile-layout .profile-notifications__head>div{flex:1 1 140px;min-width:0}
.profile-layout .profile-notifications__head h4{display:none}
.profile-layout .profile-notifications__head>button{min-height:36px;padding:7px 10px;border:1px solid var(--profile-line);border-radius:10px;background:rgba(141,198,255,.06);color:#d5e8ff;font:inherit;font-size:11px}
.profile-layout .profile-notifications__list{max-height:280px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8dc6ff55 transparent;display:grid;gap:10px}
.profile-layout .profile-notifications__empty{padding:18px;text-align:center;border:1px dashed var(--profile-line);border-radius:12px;color:#9bb5d2}
.profile-layout .athena-notification-settings{margin:16px 0 0;padding:12px;border-color:var(--profile-line);background:rgba(141,198,255,.025);font-size:13px}
.profile-layout .athena-notification-settings[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}
.profile-layout .athena-notification-settings>:not(.athena-notification-toggle){grid-column:1/-1}
.profile-layout .athena-notification-settings .athena-notification-toggle{padding:9px 0;gap:10px;border-bottom:1px solid rgba(141,198,255,.09);font-size:12px;line-height:1.5}
.profile-layout .athena-notification-toggle input{width:18px!important;height:18px!important;min-height:18px;padding:0;margin:0;accent-color:var(--profile-blue)}
.profile-layout .athena-notification-settings>label:not(.athena-notification-toggle){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
.profile-layout .athena-notification-settings>label:not(.athena-notification-toggle) input{grid-column:1;min-width:0;width:100%;min-height:42px;padding:8px 10px;border:1px solid var(--profile-line);border-radius:10px;background:#101b2b;color:#eaf3ff;font:inherit}
.profile-layout .athena-notification-settings>label:not(.athena-notification-toggle) button{grid-column:2;grid-row:2}
.profile-layout .athena-notification-settings button{min-height:40px;padding:8px 12px;border:1px solid var(--profile-line);border-radius:10px;background:rgba(55,115,200,.12);color:#d6eaff;font:inherit;font-size:12px;cursor:pointer;white-space:normal}
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions){order:8;display:flex!important;align-items:center;gap:10px;padding-top:4px;min-width:0}
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions)>:is(.primary-btn,button[type=submit]){flex:1;min-height:46px;border-radius:12px}
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions)>:is(.profile-faq-trigger,#agentProfileHelpButton){flex:0 0 44px;width:44px;min-height:44px}
.profile-layout>:is(.profile-signout,.agent-profile-signout){order:10;margin:0;padding-top:12px;border-top:1px solid var(--profile-line)}
.profile-layout>.account-activity-summary{order:11;margin:0;background:none;border:0;padding:0 4px;font-size:11px;line-height:1.8;color:#8fa7bf}
.profile-layout>.admin-users-panel{order:12}
.profile-layout :is(button,input,select,summary):focus-visible{outline:2px solid var(--profile-blue)!important;outline-offset:3px}
/* The script arranges the actual DOM so touch and keyboard order agree. */
:is(#profileForm,#agentProfileForm).profile-layout>*{order:0!important}
.profile-layout .profile-tools>button{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.profile-layout :is(.profile-preview,.agent-profile-preview)>div{min-width:0}
.profile-layout .profile-background-head>div{min-width:0;overflow-wrap:anywhere}
.profile-layout :is(.profile-signout,.agent-profile-signout) .life-logout{width:100%;min-height:44px;text-align:center;border-radius:12px}
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions){position:sticky;bottom:0;z-index:3;flex-wrap:nowrap;padding:12px 0 0;border-top:1px solid var(--profile-line);background:var(--panel,#11151b)}
@media(max-width:650px){
  :is(#profileForm,#agentProfileForm).profile-layout{gap:12px}
  .profile-layout :is(.profile-appearance,.profile-updates,.profile-reports,.profile-tools,.profile-storage,.profile-documents){padding:14px;border-radius:15px}
  :is(#profileForm,#agentProfileForm).profile-layout .profile-reports{grid-template-columns:minmax(0,1fr)}
  :is(#profileForm,#agentProfileForm).profile-layout .profile-reports>:is(#profileReportPreview,#agentProfileReportPreview,.profile-report-export,.agent-profile-report-export){grid-column:1}
  .profile-layout .profile-dream{flex-direction:column;align-items:stretch;padding:14px}
  .profile-layout .profile-dream>button{width:100%;min-height:42px}
  .profile-layout .athena-notification-settings[open]{grid-template-columns:minmax(0,1fr)}
}
/* All profile actions have the same clear hover and keyboard feedback. */
:is(#profileForm,#agentProfileForm).profile-layout button{transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
:is(#profileForm,#agentProfileForm).profile-layout button:focus-visible{outline:2px solid #a8d6ff;outline-offset:3px}
@media(hover:hover){:is(#profileForm,#agentProfileForm).profile-layout button:hover:not(:disabled){border-color:#9bd2ff!important;box-shadow:0 0 0 1px #8fcaff30,0 6px 18px #07142255;filter:brightness(1.12);transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){:is(#profileForm,#agentProfileForm).profile-layout button{transition:none}:is(#profileForm,#agentProfileForm).profile-layout button:hover{transform:none}}
.profile-layout summary{border-radius:10px;transition:background-color .18s,color .18s,box-shadow .18s}
@media(hover:hover){.profile-layout summary:hover{background:rgba(141,198,255,.085);color:#f4f9ff;box-shadow:0 0 0 6px rgba(141,198,255,.085)}.profile-layout :is(input:not([type=checkbox]),select,textarea):hover{border-color:#9bd2ff}}
@media(prefers-reduced-motion:reduce){.profile-layout summary{transition:none}}

/* Profile settings use the same restrained surfaces on both active pages. */
#modal:has(#profileForm){background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
#modal:has(#profileForm)>.modal__backdrop,.agent-profile-overlay:has(#agentProfileForm){background:rgba(4,6,10,.24);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#agentProfileOverlay:not([hidden]){z-index:2147483647}
body[data-theme="light"] #modal:has(#profileForm)>.modal__backdrop,body[data-theme="light"] .agent-profile-overlay:has(#agentProfileForm){background:rgba(20,24,32,.16)}
:is(.modal__dialog:has(#profileForm),.agent-profile-dialog:has(#agentProfileForm)){
  --profile-surface:rgba(28,28,30,.64);--profile-card:rgba(44,44,46,.46);--profile-input:rgba(58,58,60,.52);--profile-option:#2c2c2e;
  --profile-ink:#f5f5f7;--profile-secondary:#c5c5cc;--profile-line:rgba(255,255,255,.16);
  --profile-blue:#0a84ff;
  width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;
  padding:28px;border:1px solid var(--profile-line);border-radius:28px;
  background:var(--profile-surface);color:var(--profile-ink);-webkit-backdrop-filter:blur(22px) saturate(125%);backdrop-filter:blur(22px) saturate(125%);
  box-shadow:0 24px 80px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body[data-theme="light"] :is(.modal__dialog:has(#profileForm),.agent-profile-dialog:has(#agentProfileForm)){
  --profile-surface:rgba(245,245,247,.74);--profile-card:rgba(255,255,255,.56);--profile-input:rgba(242,242,247,.60);--profile-option:#fff;
  --profile-ink:#1d1d1f;--profile-secondary:#54545a;--profile-line:rgba(0,0,0,.12);--profile-blue:#007aff;
  box-shadow:0 24px 80px rgba(0,0,0,.18),inset 0 1px 0 #fff;
}
:is(.modal__dialog:has(#profileForm),.agent-profile-dialog:has(#agentProfileForm)) h3{
  margin:0 44px 24px;color:var(--profile-ink);font:650 25px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.04em;
}
:is(.modal__dialog:has(#profileForm),.agent-profile-dialog:has(#agentProfileForm)) :is(.modal__close,.agent-profile-overlay__close){
  width:40px;height:40px;margin-bottom:-40px;border:0;background:var(--profile-input);color:var(--profile-secondary);box-shadow:none;
}
:is(#profileForm,#agentProfileForm).profile-layout{
  --profile-blue:inherit;--profile-line:inherit;gap:14px;color:var(--profile-ink);font-size:15px;line-height:1.45;
}
.profile-layout :is(.profile-preview,.agent-profile-preview){
  flex-direction:column;justify-content:center;gap:12px;padding:10px 16px 18px;border:0;border-radius:0;background:none;text-align:center;
}
.profile-layout :is(#profileModalAvatar,.agent-profile-preview__avatar){
  width:80px;height:80px;flex-basis:80px;background:var(--profile-input);font-size:28px;box-shadow:0 2px 8px rgba(0,0,0,.10);
}
.profile-layout :is(.profile-preview strong,.agent-profile-preview strong){color:var(--profile-ink);font-size:22px;font-weight:650;letter-spacing:-.025em}
.profile-layout :is(.profile-preview small,.agent-profile-preview small){color:var(--profile-secondary);font-size:12px}
.profile-layout>:is(.field,.agent-profile-field){display:grid;gap:8px;padding:16px;background:var(--profile-card);border:1px solid var(--profile-line);border-radius:18px}
.profile-layout :is(.field label,.agent-profile-field label){color:var(--profile-secondary);font-size:13px;font-weight:500;letter-spacing:0;text-transform:none}
.profile-layout :is(input:not([type=checkbox]):not([type=file]),select,textarea){
  min-height:44px;padding:11px 12px;border:1px solid var(--profile-line)!important;border-radius:11px!important;background:var(--profile-input)!important;color:var(--profile-ink)!important;font:inherit;font-size:16px;box-shadow:none;
}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-reports,.profile-tools,.profile-application-settings,.admin-users-panel,.profile-dream,.profile-storage,.profile-documents){
  padding:16px;background:var(--profile-card);border:1px solid var(--profile-line);border-radius:18px;box-shadow:none;backdrop-filter:none;
}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-tools,.profile-application-settings,.admin-users-panel,.profile-storage,.profile-documents)>summary{
  min-height:32px;color:var(--profile-ink);font-size:15px;font-weight:550;letter-spacing:-.01em;
}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-tools,.profile-application-settings,.admin-users-panel,.profile-storage,.profile-documents)>summary::after{
  content:"";width:7px;height:7px;flex:0 0 7px;margin-right:3px;border-top:1.6px solid var(--profile-secondary);border-right:1.6px solid var(--profile-secondary);transform:rotate(45deg);
}
.profile-layout :is(.profile-appearance,.profile-updates,.profile-tools,.profile-application-settings,.admin-users-panel,.profile-storage,.profile-documents)[open]>summary::after{transform:rotate(135deg)}
.profile-layout :is(.profile-reports,.profile-tools)>h4,.profile-layout .profile-dream h4,.profile-layout .profile-application-updates h4{color:var(--profile-ink);font-size:15px;font-weight:600}
.profile-layout :is(button,.profile-notifications__head>button,.profile-notification__action,.life-logout){
  min-height:44px;border:1px solid var(--profile-line);border-radius:11px;background:var(--profile-input);color:var(--profile-ink);font:inherit;font-size:13px;font-weight:500;box-shadow:none;text-shadow:none;
}
:is(#profileForm,#agentProfileForm).profile-layout .profile-reports :is(#profileReportPreview,#agentProfileReportPreview),.profile-layout .profile-tools>button,.profile-layout .athena-notification-settings button{background:var(--profile-input);border-color:var(--profile-line);color:var(--profile-ink);font-size:13px}
.profile-layout :is(.profile-notification__remove,.life-logout){color:#ff453a}
.profile-layout :is(.profile-dream p,.account-activity-summary,.profile-application-updates dt,.profile-application-updates [data-update-status],.profile-background-head small,.profile-notifications__count){color:var(--profile-secondary)}
.profile-layout .profile-notification{border:1px solid var(--profile-line);border-radius:12px;background:var(--profile-input);box-shadow:none}
.profile-layout .profile-notification__copy :is(strong,span){color:var(--profile-ink)}
.profile-layout .profile-notification__copy time{color:var(--profile-secondary)}
.profile-layout .athena-notification-settings{background:transparent;border:1px solid var(--profile-line);border-radius:12px}
.profile-layout .athena-notification-toggle{color:var(--profile-ink)}
.profile-layout .profile-switch__slider{background:#78788055;border-color:transparent;box-shadow:none}
.profile-layout .profile-switch input:checked+.profile-switch__slider{background:#30d158;box-shadow:none;border-color:transparent}
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions){
  gap:10px;padding:14px 0 4px;background:var(--profile-surface);border-color:var(--profile-line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions)>:is(.primary-btn,button[type=submit]){
  min-height:46px;background:var(--profile-blue)!important;border-color:transparent;color:#fff!important;font-size:15px;font-weight:600;box-shadow:none;backdrop-filter:none;
}
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions)>:is(.primary-btn,button[type=submit])::before,
:is(#profileForm,#agentProfileForm).profile-layout>:is(.form-actions,.agent-profile-actions)>:is(.primary-btn,button[type=submit])::after{display:none}
#profileForm.profile-layout #profileReportPeriod,#agentProfileForm.profile-layout select{background:var(--profile-input)!important;color:var(--profile-ink)!important;border-color:var(--profile-line)!important;color-scheme:dark}
body[data-theme="light"] #profileForm.profile-layout #profileReportPeriod,body[data-theme="light"] #agentProfileForm.profile-layout select{color-scheme:light}
#profileForm.profile-layout #profileReportPeriod option,#agentProfileForm.profile-layout select option{background:var(--profile-option);color:var(--profile-ink)}
.profile-layout :is(button,input,select,summary):focus-visible{outline-color:var(--profile-blue)!important}
:is(#profileForm,#agentProfileForm).profile-layout .primary-btn{background:var(--profile-blue)!important;color:#fff!important;border-color:transparent;box-shadow:none;backdrop-filter:none}
:is(#profileForm,#agentProfileForm).profile-layout .primary-btn::before,:is(#profileForm,#agentProfileForm).profile-layout .primary-btn::after{display:none}
.profile-layout :is(.profile-preview,.agent-profile-preview){padding:20px 16px;border:1px solid var(--profile-line);border-radius:21px;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--profile-blue) 18%,transparent),transparent 78%)}
.profile-layout :is(#profileModalAvatar,.agent-profile-preview__avatar){border:2px solid color-mix(in srgb,var(--profile-blue) 42%,var(--profile-card));box-shadow:0 0 0 5px color-mix(in srgb,var(--profile-blue) 7%,transparent)}
.profile-layout .profile-application-settings>summary{color:var(--profile-blue)}
.profile-layout .profile-application-settings>:not(summary){margin-top:14px}
.profile-layout .profile-application-settings>.profile-appearance{padding:12px;background:var(--profile-input);border-radius:12px}
.profile-layout .profile-application-settings>button{display:block;width:100%;padding:12px;text-align:left}
.profile-layout .profile-application-settings>.profile-application-updates{padding-top:16px;border-top:1px solid var(--profile-line)}
.profile-layout .admin-user-card{background:var(--profile-card);border-color:var(--profile-line);box-shadow:none}
.profile-layout :is(.admin-user-identity strong,.admin-users-create legend,.admin-user-activity){color:var(--profile-ink)}
.profile-layout :is(.admin-user-identity>span,.admin-user-role,.admin-users-feedback,.admin-users-create label,.admin-users-empty){color:var(--profile-secondary)}
@media(hover:hover){
  :is(#profileForm,#agentProfileForm).profile-layout button:hover:not(:disabled){border-color:var(--profile-line)!important;box-shadow:none;filter:brightness(1.08);transform:none}
  .profile-layout summary:hover{background:transparent;color:var(--profile-ink);box-shadow:none}
}
@media(max-width:650px){
  :is(.modal__dialog:has(#profileForm),.agent-profile-dialog:has(#agentProfileForm)){width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:22px 16px max(16px,env(safe-area-inset-bottom));border-radius:24px}
  :is(.modal__dialog:has(#profileForm),.agent-profile-dialog:has(#agentProfileForm)) h3{margin:0 40px 20px;font-size:23px}
  :is(#profileForm,#agentProfileForm).profile-layout{gap:12px}
}

/* Notification preferences belong to Settings and remain a single readable column. */
.profile-layout .profile-application-settings .athena-notification-settings{width:100%;max-width:100%;min-width:0;margin:16px 0 0;padding:14px;box-sizing:border-box}
.profile-layout .athena-notification-settings[open]{grid-template-columns:minmax(0,1fr);gap:6px}
.profile-layout .athena-notification-settings .athena-notification-toggle{grid-column:1/-1;min-height:46px;width:100%;gap:14px;font-size:13px;align-items:center}
.profile-layout .athena-notification-settings .athena-notification-toggle span{min-width:0;flex:1;overflow-wrap:anywhere}
.profile-layout .athena-notification-settings .athena-notification-toggle input{width:22px!important;height:22px!important;min-height:22px;flex:0 0 22px!important;align-self:center}
.profile-layout .athena-notification-settings>label:not(.athena-notification-toggle){grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}
.profile-layout .athena-notification-settings>label:not(.athena-notification-toggle) :is(input,button){grid-column:1;grid-row:auto;width:100%;box-sizing:border-box;min-height:44px}
.profile-layout .athena-notification-settings :is(summary,button,p){min-width:0;overflow-wrap:anywhere;line-height:1.5}

/* One visual language for appearance, notifications, voice and devices. */
.profile-layout .profile-application-settings>:is(.profile-appearance,.athena-notification-settings,.profile-storage,.profile-updates,.profile-application-updates,.profile-setting-row){box-sizing:border-box;width:100%;margin-top:14px;padding:12px;border:1px solid var(--profile-line);border-radius:12px;background:var(--profile-input);color:var(--profile-ink)}
.profile-layout .profile-application-settings>:is(.profile-appearance,.athena-notification-settings,.profile-storage,.profile-updates,.profile-application-updates)>summary,.profile-layout .profile-application-settings>.profile-setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;list-style:none;text-align:left;font-family:inherit;font-size:15px;font-weight:550;line-height:1.5;letter-spacing:-.01em;cursor:pointer}
.profile-layout .profile-application-settings>:is(.athena-notification-settings,.profile-application-updates)>summary::-webkit-details-marker{display:none}
.profile-layout .profile-application-settings>:is(.athena-notification-settings,.profile-application-updates)>summary::after,.profile-layout .profile-application-settings>.profile-setting-row::after{content:"";width:7px;height:7px;flex:0 0 7px;margin-right:3px;border-top:1.6px solid var(--profile-secondary);border-right:1.6px solid var(--profile-secondary);transform:rotate(45deg)}
.profile-layout .profile-application-settings>:is(.athena-notification-settings,.profile-application-updates)[open]>summary{margin-bottom:16px}
.profile-layout .profile-application-settings>:is(.athena-notification-settings,.profile-application-updates)[open]>summary::after{transform:rotate(135deg)}
.profile-layout .profile-application-settings>.profile-setting-row{min-height:58px;font-size:15px;font-weight:550}
:is(#profileForm,#agentProfileForm).profile-layout .profile-application-settings>.profile-setting-row{min-height:58px;text-align:left}

.profile-layout .profile-updates__unread{margin-left:auto;flex:0 0 auto;color:var(--profile-blue);font-size:16px;font-weight:750;text-shadow:0 0 10px var(--profile-blue)}
.profile-layout .profile-updates__unread[hidden]{display:none!important}

.profile-layout .profile-application-settings>.profile-appearance>summary{justify-content:flex-start;gap:9px}
.profile-layout .profile-application-settings>.profile-appearance>summary>span{min-width:0;overflow-wrap:anywhere}
.profile-layout .profile-application-settings>.profile-appearance>summary::after{margin-left:auto}

/* Storage and legal documents share the existing profile controls and colours. */
.profile-layout .profile-storage .storage-mode-buttons button{background:var(--profile-input);border-color:var(--profile-line);color:var(--profile-ink);font:inherit;font-size:13px}
.profile-layout .profile-storage .storage-mode-buttons button[aria-pressed=true]{background:var(--profile-input);border-color:var(--profile-blue);box-shadow:inset 0 0 0 1px var(--profile-blue)}
.profile-layout .profile-storage .storage-mode-note,.profile-layout .profile-storage .agent-sync-settings legend{color:var(--profile-secondary)}
.profile-layout .profile-documents a:focus-visible{outline:2px solid var(--profile-blue);outline-offset:3px}

/* Keep profile centering stable while its entrance moves from the right. */
.profile-layout details[data-profile-smooth]::details-content{height:auto;overflow:visible;transition:none}
#modal.open>.modal__dialog:has(#profileForm){animation:profileWindowIn .26s cubic-bezier(.2,.7,.25,1) forwards}
@keyframes profileWindowIn{from{opacity:0;transform:translate(calc(-50% + 8px),-50%) scale(.98)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){#modal.open>.modal__dialog:has(#profileForm){animation:none;opacity:1;transform:translate(-50%,-50%)}}

/* Pointer feedback remains visible in the final profile theme. */
@media(hover:hover) and (pointer:fine){
  :is(#profileForm,#agentProfileForm).profile-layout :is(button:not(:disabled),a):hover{background:color-mix(in srgb,var(--profile-blue) 13%,var(--profile-card))!important;border-color:var(--profile-blue)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--profile-blue) 25%,transparent),0 4px 14px #07142230;filter:none}
  .profile-layout summary:hover{background:color-mix(in srgb,var(--profile-blue) 12%,transparent);color:var(--profile-blue);box-shadow:0 0 0 5px color-mix(in srgb,var(--profile-blue) 12%,transparent)}
  .profile-layout :is(input:not([type=checkbox]),select,textarea):hover{border-color:var(--profile-blue);box-shadow:0 0 0 1px color-mix(in srgb,var(--profile-blue) 24%,transparent)}
}
/* Password fields stay reachable on phones and keep their own visibility controls. */
.profile-password-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid var(--line,#ffffff30);border-radius:18px;background:var(--panel,#111b2a);color:var(--text,#edf1f7)}.profile-password-dialog::backdrop{background:#050a14a8}.profile-password-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-password-dialog h3{margin:0}.profile-password-dialog p{line-height:1.5}.profile-password-field{display:grid;gap:8px;margin:16px 0}.profile-password-input{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px}.profile-password-input input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--line,#ffffff30);border-radius:10px;background:var(--input-bg,#ffffff08);color:inherit;font:inherit}.profile-password-dialog button{min-height:44px}.profile-password-input button{display:grid;place-items:center;padding:0}.profile-password-dialog [role=alert]{color:var(--danger,#ffb2bd)}.profile-password-dialog :is(input,button):focus-visible{outline:2px solid #8dcaff;outline-offset:2px}
body .profile-password-dialog{background:var(--bg,#101720)!important;opacity:1;isolation:isolate}body .profile-password-dialog .profile-password-input input{background:color-mix(in srgb,var(--text,#edf1f7) 4%,var(--bg,#101720))!important;border:1px solid var(--line,#ffffff30)!important}
body .app-entry-update-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:1px solid var(--line,#ffffff30);border-radius:18px;background:var(--bg,#101720)!important;color:var(--text,#edf1f7);opacity:1;isolation:isolate}body .app-entry-update-dialog::backdrop{background:#050a14b8}.app-entry-update-dialog h3{margin:0 0 16px;font-size:20px}.app-entry-update-dialog p{line-height:1.5;overflow-wrap:anywhere}.app-entry-update-dialog .app-update-notes{white-space:pre-line;max-height:180px;overflow:auto;font-size:13px;color:var(--muted,#b6c4d8)}.app-entry-update-dialog progress{width:100%;accent-color:#8dc6ff}.app-entry-update-dialog [hidden]{display:none!important}
body :is(.profile-password-dialog,.app-entry-update-dialog) button{appearance:none;box-sizing:border-box;min-height:44px;padding:10px 14px;border:1px solid var(--line,#ffffff30);border-radius:12px;background:var(--input-bg,#ffffff08)!important;color:inherit!important;font:inherit;cursor:pointer}body :is(.profile-password-dialog,.app-entry-update-dialog) button:disabled{cursor:default;opacity:.55}body :is(.profile-password-dialog,.app-entry-update-dialog) .primary-btn{background:var(--text,#edf1f7)!important;color:var(--bg,#101720)!important;font-weight:650}body .profile-password-dialog .profile-password-input button{padding:0}body .profile-password-dialog [data-password-close]{width:44px;flex:none}body .profile-password-dialog .form-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}
body .app-entry-update-dialog{width:min(480px,calc(100vw - 24px));padding:28px;border-color:#61ddff66;border-radius:26px;background:radial-gradient(ellipse at 50% 0,#15465b 0,transparent 65%),#081521!important;color:#edfaff;box-shadow:0 0 0 1px #65ddff15,0 0 50px #1ec6ff22,0 28px 90px #000a}
.entry-update-hero{text-align:center}.entry-update-reactor{width:104px;height:104px;margin:0 auto 18px;border-radius:50%;background:radial-gradient(circle,#b9f5ff35,transparent 66%);filter:drop-shadow(0 0 10px #45d5ff99)}.entry-update-reactor svg{display:block;width:100%;height:100%;fill:none;stroke:#93f0ff;stroke-width:1.5}.entry-update-reactor path{fill:#45d5ff12;stroke-width:2}.entry-update-reactor .entry-update-ring{stroke-dasharray:15 6;transform-origin:50% 50%;animation:entryUpdateRing 16s linear infinite}.entry-update-eyebrow{display:block;margin-bottom:10px;color:#83dfff;font:650 10px/1.5 system-ui;letter-spacing:.17em}.app-entry-update-dialog .entry-update-hero h3{font-size:26px;margin:0 0 20px;line-height:1.2}.app-entry-update-dialog .entry-update-versions{padding:12px 14px;border:1px solid #7edbff26;border-radius:12px;background:#80dfff08;color:#c3e7f5;font-size:13px}.app-entry-update-dialog .app-update-notes{color:#bcd2e0;max-height:25dvh;line-height:1.65}.app-entry-update-dialog .app-update-actions{gap:12px;margin-top:22px}.app-entry-update-dialog .app-update-actions>button{flex:1 1 140px}.app-entry-update-dialog [data-entry-update-status]{min-height:22px;color:#9cdcff;font-size:12px}body .app-entry-update-dialog [data-entry-update-now]{background:#86eaff!important;color:#052333!important;border-color:#adf3ff;box-shadow:0 0 18px #31caff30}body .app-entry-update-dialog [data-entry-update-later]{background:#83dcff08!important;color:#c3e5f6!important;border-color:#82dbff30}
@keyframes entryUpdateRing{to{transform:rotate(360deg)}}
@media(max-width:420px){body .app-entry-update-dialog{padding:22px 18px}.app-entry-update-dialog .entry-update-hero h3{font-size:23px}}
@media(prefers-reduced-motion:reduce){.entry-update-reactor .entry-update-ring{animation:none}}



.profile-identity-name{display:inline-block;max-width:100%;padding:6px 0;border:0;background:transparent;color:inherit;font:700 20px/1.3 Manrope,Inter,sans-serif;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.profile-identity-name:focus-visible{outline:2px solid #8dc6ff;outline-offset:4px;border-radius:5px}
.profile-preview input[name=name],.agent-profile-preview input[name=name]{box-sizing:border-box;min-width:0;width:100%;max-width:100%;padding:8px;border:1px solid #8dc6ff66;border-radius:10px;background:#101c2b;color:inherit;font:inherit}
.profile-identity-name[hidden],.profile-preview input[name=name][hidden],.agent-profile-preview input[name=name][hidden]{display:none!important}

/* The report opens on demand; settings share the same icon alignment. */
:is(#profileForm,#agentProfileForm).profile-layout details.profile-reports{display:block}
.profile-layout .profile-reports>summary{display:flex;align-items:center;gap:10px;min-height:32px;cursor:pointer;list-style:none;color:var(--profile-ink);font-size:15px;font-weight:550}
.profile-layout .profile-reports>summary::-webkit-details-marker{display:none}
.profile-layout .profile-reports>summary::after{content:"";width:7px;height:7px;margin-left:auto;border-top:1.6px solid var(--profile-secondary);border-right:1.6px solid var(--profile-secondary);transform:rotate(45deg)}
.profile-layout .profile-reports[open]>summary::after{transform:rotate(135deg)}
.profile-layout .profile-reports[open]>button{margin-top:14px!important}
.profile-layout .profile-reports>[hidden]{display:none!important}
.profile-layout summary>[data-profile-icon],.profile-layout .profile-setting-row>[data-profile-icon]{width:22px;height:22px;flex:0 0 22px;color:var(--profile-blue)}
.profile-layout :is(summary,.profile-setting-row):has(>[data-profile-icon]){display:flex;align-items:center;justify-content:flex-start;gap:10px}
.profile-layout .profile-row-label{min-width:0;flex:1;overflow-wrap:anywhere}
.profile-layout .profile-setting-row>[data-profile-icon="glasses"]{color:var(--profile-secondary)}
.profile-person-icon{width:60%;height:60%;vertical-align:middle}
.profile-layout :is(#profileModalAvatar,#agentProfilePreview){display:grid;place-items:center;cursor:pointer}
.profile-layout .profile-identity-actions{display:flex;justify-content:center;gap:10px;width:100%}
.profile-layout .profile-identity-actions[hidden]{display:none}
.profile-layout .profile-identity-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:100px}
.profile-identity-actions svg{width:20px;height:20px}
/* Keep the chosen page artwork visible behind the profile. */
:is(.modal__dialog:has(#profileForm),.agent-profile-dialog:has(#agentProfileForm)){--profile-surface:transparent;--profile-card:transparent;background:transparent!important;box-shadow:none!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important}
#modal:has(#profileForm)>.modal__backdrop,.agent-profile-overlay:has(#agentProfileForm){background:transparent!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
.profile-application-updates .app-update-actions.app-update-actions--owner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;justify-content:center}
.profile-application-updates .app-update-actions.app-update-actions--owner>[data-update-icon]{display:flex;align-items:center;justify-content:center;width:100%;min-width:44px;min-height:44px;padding:10px}
.profile-application-updates [data-update-icon] svg{width:23px;height:23px}
.profile-application-updates .app-update-actions.app-update-actions--owner>:is([data-update-download],[data-update-retry]){grid-column:1/-1}

.profile-layout :is(.profile-preview,.agent-profile-preview){background:transparent!important}
:is(#profileForm,#agentProfileForm).profile-layout .profile-identity-name,:is(#profileForm,#agentProfileForm).profile-layout .profile-identity-name:hover{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
.profile-layout .profile-dream{padding:0;border:0;background:transparent}
.profile-layout .profile-dream>[data-open-profile-dream]{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:54px;margin:0;padding:12px 16px;border:1px solid var(--profile-line);border-radius:18px;background:var(--profile-card);font-size:15px;color:var(--profile-ink)}
.profile-layout [data-open-profile-dream] svg{width:23px;height:23px;color:var(--profile-blue)}
.dream-profile-dialog{position:relative;box-sizing:border-box;width:min(740px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:28px 22px 22px;overflow:auto;border:1px solid #8cc5ff44;border-radius:24px;background:linear-gradient(145deg,rgba(13,35,62,.98),rgba(8,18,35,.98));color:#eaf3ff;box-shadow:0 25px 80px #020b1ca0;color-scheme:dark}
.dream-profile-dialog::backdrop{background:#030d20a0;backdrop-filter:blur(9px)}
.dream-profile-dialog{background:transparent!important;background-image:none!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.dream-profile-dialog #dreamPage{padding-bottom:0;text-align:center}
.dream-profile-dialog .dream-join{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:18px;padding:20px 16px;border:1px solid #8ac3ff35;border-radius:16px}
.dream-profile-dialog .dream-join__status{justify-items:center;gap:10px;max-width:490px;text-align:center}
.dream-profile-dialog .dream-join__status>span{line-height:1.5;overflow-wrap:anywhere}
.dream-profile-dialog .dream-join__button{width:auto;max-width:100%;min-width:min(210px,100%);padding-inline:24px}
.dream-profile-dialog .social-dream .dream-preview{filter:none;opacity:1}
.dream-profile-dialog .dream-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:18px 0;border:1px solid #8ac3ff35;border-radius:16px;overflow:hidden}
.dream-profile-dialog .dream-summary>div{align-items:center;min-width:0;min-height:120px;padding:18px 12px;gap:10px;border:0;background:transparent;text-align:center}
.dream-profile-dialog .dream-summary>div:nth-child(odd){border-right:1px solid #8ac3ff25}
.dream-profile-dialog .dream-summary>div:nth-child(-n+2){border-bottom:1px solid #8ac3ff25}
.dream-profile-dialog .dream-summary strong{font-size:clamp(20px,3vw,28px);max-width:100%}
.dream-profile-dialog .dream-summary small{max-width:220px;line-height:1.5;color:#b6cce4}
.dream-profile-dialog .dream-detail{gap:16px}
.dream-profile-dialog .dream-detail>section{padding:18px 14px;border:1px solid #8ac3ff35;border-radius:16px;text-align:center}
.dream-profile-dialog .dream-detail h3{font-size:16px;line-height:1.4;margin:0 0 12px;text-align:center}
.dream-profile-dialog .dream-winner{align-items:center;min-height:72px;line-height:1.6;overflow-wrap:anywhere}
.dream-profile-dialog .dream-history p{line-height:1.6;margin:0}
.dream-profile-dialog .dream-history>div{grid-template-columns:minmax(0,1fr);gap:6px;text-align:center}
.dream-profile-dialog .dream-history strong{overflow-wrap:anywhere}
.dream-profile-dialog .dream-footer{justify-content:center;align-items:center;margin-top:18px;padding-top:16px;gap:0;text-align:center;line-height:1.5}
.dream-profile-dialog [data-dream-feedback]:empty{display:none}
@media(max-width:600px){.dream-profile-dialog .dream-join{padding:18px 12px}.dream-profile-dialog .dream-detail{grid-template-columns:minmax(0,1fr)}.dream-profile-dialog .dream-join__status strong{font-size:25px}.dream-profile-dialog .dream-footer{flex-direction:row}}
.dream-profile-dialog .dream-close{position:absolute;right:12px;top:10px;display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;color:#a9d3ff;font:300 30px/1 sans-serif;cursor:pointer}
.dream-profile-dialog .social-section__header{display:block;text-align:center;padding:8px 40px 20px}
.dream-profile-dialog .social-section__header :is(.eyebrow,h2){display:block;text-align:center;color:#c0ddff}
.dream-profile-dialog .social-section__header h2{margin:8px 0;font-size:30px;line-height:1.3}
.dream-profile-dialog :is(.dream-join,.dream-summary,.dream-detail>section){border-color:#8ac3ff35;background:#7dbaff0a;color:#eaf3ff}
.dream-profile-dialog :is(.dream-join__button,.primary-btn){border-color:#6eb4ff;background:#1477ca;color:#fff}
.dream-profile-dialog progress{accent-color:#75bdff}
.dream-profile-dialog .dream-history>div{border-color:#8ac3ff2b}
@media(max-width:600px){.dream-profile-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:26px 14px 16px}.dream-profile-dialog .social-section__header h2{font-size:26px}}
.profile-layout .profile-reports[open]>.profile-report-export,.profile-layout .profile-reports[open]>.agent-profile-report-export{display:flex;align-items:center;margin-top:14px!important;gap:8px}
.profile-layout .profile-reports :is(.profile-report-export,.agent-profile-report-export)>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:44px;min-width:44px;min-height:44px;padding:0;color:var(--profile-blue)}
.profile-layout .profile-reports :is(.profile-report-export,.agent-profile-report-export) svg{width:20px;height:20px}
.profile-layout [data-profile-report-status]{margin:10px 0 0;font-size:12px;line-height:1.6;color:var(--profile-secondary)}
.profile-layout [data-profile-report-status]:empty{display:none}
.profile-layout .profile-updates>summary::after{order:2}
.profile-layout .profile-updates>summary>[data-profile-unread-count]{order:3;flex:0 0 auto;margin-left:0;margin-right:0;text-align:right}
.profile-layout .profile-notifications__count{display:block;text-align:right}

:is(#profileForm,#agentProfileForm).profile-layout button[data-open-profile-dream]{display:flex;align-items:center;justify-content:flex-start!important;gap:12px;width:100%;text-align:left!important}
:is(#profileForm,#agentProfileForm).profile-layout button[data-open-profile-dream]>.profile-row-label{flex:1;min-width:0;text-align:left!important}
:is(#profileForm,#agentProfileForm).profile-layout button[data-open-profile-dream]>svg{flex:0 0 22px}

@media(hover:hover) and (pointer:fine){
 :is(#profileModalAvatar,#agentProfilePreview)[role=button]{cursor:pointer;transition:box-shadow 250ms ease,filter 250ms ease}
 :is(#profileModalAvatar,#agentProfilePreview)[role=button]:hover{box-shadow:0 0 0 2px rgba(80,195,255,.7),0 0 16px rgba(55,174,255,.18);filter:brightness(1.08)}
}
:is(#profileModalAvatar,#agentProfilePreview)[role=button]:focus-visible{outline:2px solid #50c3ff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){:is(#profileModalAvatar,#agentProfilePreview)[role=button]{transition:none}}

.profile-application-updates [data-update-qr]{grid-column:1/-1;justify-content:center;text-align:center}
.app-update-qr-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:28px 24px 24px;border:1px solid #91c8ff55;border-radius:20px;background:rgba(12,19,30,.94);color:#eff4ff;text-align:center}
.app-update-qr-dialog::backdrop{background:#0008}
.app-update-qr-dialog h3{margin:12px 20px 20px;font-size:22px;text-align:center}
.app-update-qr-dialog img{display:block;width:100%;height:auto;aspect-ratio:1;max-width:264px;margin:0 auto 20px;background:#fff;border-radius:12px}
.app-update-qr-dialog [data-update-qr-close]{position:absolute;top:6px;right:6px;width:44px;height:44px;padding:0;border:0;background:transparent;font-size:28px}
.app-update-qr-dialog>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}

/* A growing disclosure must not move the modal scroll anchor mid-animation. */
:is(.modal__dialog,.agent-profile-dialog,.agent-profile-panel):has(details[data-profile-animating]){overflow-anchor:none}

.profile-layout .athena-notification-permission-actions{display:flex;flex-wrap:wrap;gap:12px;padding:8px 0 12px}
.profile-layout .athena-notification-permission-actions>button{flex:1 1 180px;min-height:44px;padding:12px 14px}
