/* Signed-in account. Access and password-setup screens retain their separate layout. */
body.account-page.index-page.signed-in:not(.auth-setup) { background:#f8fafd; }
.account-page.index-page.signed-in:not(.auth-setup) .account-shell {
  display:block; width:min(1080px,calc(100% - 64px)); max-width:none; margin:44px auto 0;
  padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible;
}
.account-page.index-page.signed-in:not(.auth-setup) .welcome-panel { display:none; }
.account-page.index-page.signed-in:not(.auth-setup) .account-content { padding:0; background:transparent; }
.account-page.index-page.signed-in:not(.auth-setup) #account:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:24px; }
/* A quiet identity card keeps account status and sign-out together. */
.account-page.index-page.signed-in:not(.auth-setup) .member-heading {
  grid-column:1/-1; display:flex; align-items:center; gap:16px; margin:0;
  padding:24px; border:1px solid #dce6f1; border-radius:20px; background:#fff;
}
.account-page.index-page.signed-in:not(.auth-setup) .profile-avatar {
  display:grid; place-items:center; width:48px; height:48px; flex:0 0 48px;
  border:1px solid #d6e7f8; border-radius:14px; background:#f0f7ff; color:#1687ee;
}
.account-page.index-page.signed-in:not(.auth-setup) .profile-avatar svg { width:24px; height:24px; }
.account-page.index-page.signed-in:not(.auth-setup) #accountHeading { margin:0; font-size:28px; letter-spacing:-.8px; line-height:1.2; font-weight:700; color:#142e48; }
.member-intro { margin:5px 0 0; color:#728497; font-size:12px; line-height:1.5; }
.member-heading-actions { display:flex; align-items:center; gap:18px; flex-shrink:0; }
.account-page.index-page.signed-in:not(.auth-setup) .account-state {
  padding:5px 9px; border-radius:7px; background:#edf8f1; color:#227047;
  font-size:11px; line-height:1.4; font-weight:600; letter-spacing:0;
}
.account-page.index-page.signed-in:not(.auth-setup) .account-state.is-restricted { background:#fff2e9; color:#a34220; }
body.account-page.index-page.signed-in:not(.auth-setup) #logout {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; margin:0;
  min-height:40px; padding:9px 12px; border:1px solid #d8e1eb !important;
  border-radius:10px !important; background:#fff !important; color:#52687d !important;
  box-shadow:none !important; font-size:12px; line-height:1.4; font-weight:500; white-space:nowrap;
  -webkit-tap-highlight-color:transparent; transition:background .15s ease,border-color .15s ease;
}
body.account-page.index-page.signed-in:not(.auth-setup) #logout:hover { background:#f4f7fa !important; border-color:#b9c9d8 !important; }
body.account-page.index-page.signed-in:not(.auth-setup) #logout:active { background:#eaf0f5 !important; }
.account-page.index-page.signed-in:not(.auth-setup) #logout svg { width:16px; height:16px; }
.account-page.index-page.signed-in:not(.auth-setup) #chatEntry { grid-column:1/-1; width:min(440px,100%); margin:0 0 4px; }
.account-page.index-page.signed-in:not(.auth-setup) :is(.account-profile,.password-card,.account-section) {
  min-width:0; margin:0; padding:28px; border:1px solid #dce6f1; border-radius:22px;
  background:#fff; box-shadow:0 10px 30px -24px #294e7433;
}
.account-page.index-page.signed-in:not(.auth-setup) .account-profile { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); column-gap:48px; }
.account-page.index-page.signed-in:not(.auth-setup) #profileSectionTitle { grid-column:1/-1; margin:0 0 22px; }
.account-page.index-page.signed-in:not(.auth-setup) #account :is(.member-section-title,.account-section h2,.password-card h2) { color:#142e48; font-size:19px; line-height:1.3; letter-spacing:-.35px; }
.account-page.index-page.signed-in:not(.auth-setup) .profile-details { border:0; margin:0; padding:0; gap:20px; align-items:center; }
.account-page.index-page.signed-in:not(.auth-setup) .profile-details dt { font-size:11px; margin-bottom:7px; color:#7890a4; }
.account-page.index-page.signed-in:not(.auth-setup) .profile-details dd { font-size:15px; line-height:1.6; color:#29445e; }
.account-page.index-page.signed-in:not(.auth-setup) #saveProfile { grid-column:2; grid-row:2 / span 2; min-width:0; }
.account-page.index-page.signed-in:not(.auth-setup) #saveProfile label { margin:0 0 8px; font-size:11px; color:#7890a4; }
.account-page.index-page.signed-in:not(.auth-setup) #profileBirthdayHelp { margin:12px 0 0; font-size:11px; }
.account-page.index-page.signed-in:not(.auth-setup) #status { grid-column:1/-1; margin:20px 0 0; padding:14px; border:1px solid #f2d1b6; border-radius:12px; background:#fff8f0; color:#895527; font-size:13px; }
.account-page.index-page.signed-in:not(.auth-setup) #terms { grid-column:1/-1; justify-self:start; margin-top:16px; }
.account-page.index-page.signed-in:not(.auth-setup) :is(.password-card,.member-conversations) { height:100%; }
.account-page.index-page.signed-in:not(.auth-setup) #passwordTitle { margin:0 0 8px; }
.account-page.index-page.signed-in:not(.auth-setup) #passwordHelp,
.account-page.index-page.signed-in:not(.auth-setup) .account-section > .muted { font-size:12px; line-height:1.8; color:#72879a; margin:0 0 22px; }
.account-page.index-page.signed-in:not(.auth-setup) #savePassword label { color:#526d84; font-size:12px; margin:18px 0 8px; }
.account-page.index-page.signed-in:not(.auth-setup) #savePassword input { margin-top:0; border-color:#d6e1ec; border-radius:12px; background:#fafcfe; min-height:48px; font-size:16px; }
.account-page.index-page.signed-in:not(.auth-setup) #savePassword input:focus { background:#fff; border-color:#017ffe; }
.account-page.index-page.signed-in:not(.auth-setup) #history .item { display:flex; align-items:center; gap:16px; padding:17px 0; border-color:#edf1f6; }
.conversation-details { flex:1; min-width:0; }
.conversation-details strong { display:block; font-size:13px; font-weight:500; color:#29445e; overflow-wrap:anywhere; }
.conversation-details time { display:block; margin-top:5px; font-size:11px; color:#7890a4; line-height:1.6; }
.account-page.index-page.signed-in:not(.auth-setup) #history .item button { margin:0; padding:9px 13px; min-height:40px; flex-shrink:0; font-size:11px; }
.account-page.index-page.signed-in:not(.auth-setup) #history:empty { padding:24px; border:1px dashed #dce6f1; border-radius:14px; background:#fafcfe; color:#7890a4; line-height:1.8; }
.account-page.index-page.signed-in:not(.auth-setup) .account-blocks { grid-column:1/-1; }
.account-page.index-page.signed-in:not(.auth-setup) #blockedPeople { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; margin-top:0; }
.account-page.index-page.signed-in:not(.auth-setup) #blockedPeople li { min-width:0; padding:14px 0; border-color:#edf1f6; }
.account-page.index-page.signed-in:not(.auth-setup) #blockedPeople strong { font-size:13px; font-weight:500; color:#29445e; }
.account-page.index-page.signed-in:not(.auth-setup) #blockedEmpty { margin:0; padding:18px; border:1px dashed #dce6f1; border-radius:12px; background:#fafcfe; font-size:12px; color:#7890a4; }
.account-page.index-page.signed-in:not(.auth-setup) .account-footer { margin-top:28px; padding-top:0; border:0; text-align:center; font-size:12px; }
.account-page.index-page.signed-in:not(.auth-setup) .close-account-section { margin-top:20px; padding-top:18px; border-color:#e2eaf3; text-align:center; }
@media(max-width:760px) {
 .account-page.index-page.signed-in:not(.auth-setup) .account-shell { width:calc(100% - 32px); margin:28px auto 0; }
 .account-page.index-page.signed-in:not(.auth-setup) #account:not([hidden]) { grid-template-columns:minmax(0,1fr); gap:18px; }
 .account-page.index-page.signed-in:not(.auth-setup) #chatEntry { width:100%; margin:0; }
 .account-page.index-page.signed-in:not(.auth-setup) :is(.account-profile,.password-card,.account-section) { padding:22px; border-radius:18px; }
 .account-page.index-page.signed-in:not(.auth-setup) .account-profile { grid-template-columns:minmax(0,1fr); }
 .account-page.index-page.signed-in:not(.auth-setup) #saveProfile { grid-column:1; grid-row:auto; margin-top:22px; }
 .account-page.index-page.signed-in:not(.auth-setup) .profile-details dd { font-size:13px; }
 .account-page.index-page.signed-in:not(.auth-setup) #profileSectionTitle { margin-bottom:18px; }
 .account-page.index-page.signed-in:not(.auth-setup) #blockedPeople { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:360px) {
 .account-page.index-page.signed-in:not(.auth-setup) .account-shell { width:calc(100% - 24px); }
 .account-page.index-page.signed-in:not(.auth-setup) :is(.account-profile,.password-card,.account-section) { padding:18px; }
}
.account-page.index-page.signed-in.account-embedded:not(.auth-setup) .account-shell { width:100%; margin:0; padding:20px 16px; }
.account-page.index-page.signed-in.account-embedded:not(.auth-setup) #account:not([hidden]) { grid-template-columns:minmax(0,1fr); }
.account-page.index-page.signed-in.account-embedded:not(.auth-setup) #chatEntry { display:none!important; }
/* Stack conversation controls beside security instead of stretching a short list. */
@media(min-width:761px) {
 .account-page.index-page.signed-in:not(.auth-setup):not(.account-embedded) .password-card { grid-column:1; grid-row:4 / span 2; }
 .account-page.index-page.signed-in:not(.auth-setup):not(.account-embedded) .member-conversations { grid-column:2; grid-row:4; }
 .account-page.index-page.signed-in:not(.auth-setup):not(.account-embedded) .account-blocks { grid-column:2; grid-row:5; height:100%; }
 .account-page.index-page.signed-in:not(.auth-setup):not(.account-embedded) #blockedPeople { grid-template-columns:minmax(0,1fr); }
}

@media(max-width:760px) {
  .account-page.index-page.signed-in:not(.auth-setup) .member-heading { display:grid; grid-template-columns:40px minmax(0,1fr); gap:14px 12px; padding:18px; border-radius:16px; }
  .account-page.index-page.signed-in:not(.auth-setup) .profile-avatar { width:40px; height:40px; border-radius:12px; }
  .account-page.index-page.signed-in:not(.auth-setup) #accountHeading { font-size:24px; letter-spacing:-.6px; }
  .member-heading-actions { grid-column:1/-1; justify-content:space-between; padding-top:12px; border-top:1px solid #edf1f5; }
}
/* Drawers keep the compact layout even when embedded in a wider viewport. */
.account-page.index-page.signed-in.account-embedded:not(.auth-setup) .member-heading { display:grid; grid-template-columns:40px minmax(0,1fr); gap:14px 12px; padding:18px; border-radius:16px; }
.account-page.index-page.signed-in.account-embedded:not(.auth-setup) .profile-avatar { width:40px; height:40px; border-radius:12px; }
.account-page.index-page.signed-in.account-embedded:not(.auth-setup) #accountHeading { font-size:24px; letter-spacing:-.6px; }
.account-embedded .member-heading-actions { grid-column:1/-1; justify-content:space-between; padding-top:12px; border-top:1px solid #edf1f5; }
