/* Profile / Account only. All selectors are scoped to body.profile-page. */

body.profile-page.housing-page {
  background: #f8f9fa !important;
  color: #1d3557;
  font-family: Roboto, "Noto Sans", system-ui, sans-serif;
}

body.profile-page {
  padding-top: 0 !important;
}
body.profile-page .app-shell-header,
body.profile-page .desk-header {
  display: none !important;
}

body.profile-page .ha-page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.profile-page .profile-appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 56px;
  padding-top: env(safe-area-inset-top, 0px);
  background: #f8f9fa;
}

body.profile-page .profile-appbar-lead,
body.profile-page .profile-appbar-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #1d3557;
  text-decoration: none;
}

body.profile-page .profile-appbar-lead svg {
  width: 24px;
  height: 24px;
  display: block;
}

body.profile-page #profileAppbarTitle {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: #1d3557;
  line-height: 1.2;
}

body.profile-page .ha-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px calc(72px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

body.profile-page #housingAccountIntro {
  display: none;
}

body.profile-page .ha-loading,
body.profile-page .ha-empty,
body.profile-page .ha-note {
  margin: 16px 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

body.profile-page .ha-error {
  margin: 8px 0 0;
  color: #c62828;
  font-size: 13px;
}

body.profile-page .ha-ok {
  margin: 8px 0 0;
  color: #2e7d32;
  font-size: 13px;
}

body.profile-page .profile-signed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.profile-page .profile-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 16px 0 4px;
}

body.profile-page .housing-account-avatar,
body.profile-page #accountAvatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #eeeeee;
  color: #1d3557;
  font-size: 32px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.profile-page .profile-cam {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ed6c02;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.profile-page .profile-cam svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.profile-page .profile-cam input {
  display: none;
}

body.profile-page .profile-photo-btn {
  margin: 4px 0 8px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #ed6c02;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
}

body.profile-page .profile-photo-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

body.profile-page .profile-signed > h1 {
  margin: 8px 0 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #1d3557;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.profile-page .profile-email {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6c757d;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.profile-page .profile-portal-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #6c757d;
}

body.profile-page .profile-id-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.profile-page .profile-id-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.profile-page .profile-id-banner span,
body.profile-page .profile-id-banner a {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

body.profile-page .profile-id-banner.ok {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.4);
}

body.profile-page .profile-id-banner.wait {
  color: #c62828;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.4);
}

body.profile-page .profile-menu {
  width: 100%;
  margin-top: 16px;
}

body.profile-page .ha-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

body.profile-page .profile-feat .ha-ico,
body.profile-page .profile-cam .ha-ico,
body.profile-page .profile-id-banner .ha-ico,
body.profile-page .profile-signout .ha-ico,
body.profile-page .ha-settings-row .ha-ico {
  width: 20px;
  height: 20px;
}

body.profile-page .ha-actions {
  margin: 0 0 12px;
}

body.profile-page .profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  margin: 0 0 8px;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.profile-page .profile-menu-item .ha-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #ed6c02;
}

body.profile-page .profile-menu-item span {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.profile-page .profile-menu-item strong {
  font-size: 16px;
  font-weight: 600;
  color: #1d3557;
  line-height: 1.25;
}

body.profile-page .profile-menu-item em {
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: #6c757d;
}

body.profile-page .profile-menu-item .ha-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #9e9e9e;
}

body.profile-page .profile-menu-item.ha-stay {
  background: #ed6c02;
}

body.profile-page .profile-menu-item.ha-stay .ha-ico,
body.profile-page .profile-menu-item.ha-stay .ha-chevron,
body.profile-page .profile-menu-item.ha-stay strong,
body.profile-page .profile-menu-item.ha-stay em {
  color: #fff;
}

body.profile-page .profile-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e53935;
  background: transparent;
  color: #e53935;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

body.profile-page .profile-signout svg {
  width: 20px;
  height: 20px;
}

body.profile-page .profile-guest {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 8px 16px;
  text-align: center;
}

body.profile-page .profile-guest-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 180px;
  margin: 16px auto 24px;
  object-fit: contain;
}

body.profile-page .profile-guest > h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1d3557;
}

body.profile-page .profile-guest > p {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.4;
  color: #6c757d;
}

body.profile-page .profile-guest > h2 {
  margin: 32px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1d3557;
  text-align: left;
}

body.profile-page .ha-btn-fill,
body.profile-page .ha-btn-out {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

body.profile-page .ha-btn-fill {
  border: 0;
  background: #ed6c02;
  color: #fff;
}

body.profile-page .ha-btn-fill:disabled {
  opacity: 0.65;
}

body.profile-page .ha-btn-out {
  margin-top: 12px;
  border: 1px solid #ed6c02;
  background: transparent;
  color: #ed6c02;
}

body.profile-page .profile-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  text-align: left;
  font-size: 15px;
  color: #1d3557;
}

body.profile-page .profile-feat .ha-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #ed6c02;
}

body.profile-page .profile-auth {
  padding: 8px 0 16px;
}

body.profile-page .profile-auth-tabs {
  display: flex;
  border: 1.4px solid #1d3557;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 0 16px;
}

body.profile-page .profile-auth-tabs button {
  flex: 1;
  border: 0;
  background: #fff;
  color: #1d3557;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  min-height: 40px;
  cursor: pointer;
}

body.profile-page .profile-auth-tabs button.active {
  background: #1d3557;
  color: #fff;
}

body.profile-page .ha-form h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1d3557;
}

body.profile-page .ha-form label,
body.profile-page .housing-gender {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #5c534c;
  text-align: left;
}

body.profile-page .ha-form input[type="text"],
body.profile-page .ha-form input[type="email"],
body.profile-page .ha-form input[type="password"],
body.profile-page .ha-form input[type="tel"],
body.profile-page .ha-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

body.profile-page .housing-gender-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

body.profile-page .housing-gender-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: #1d3557;
}

body.profile-page .housing-avatar-block {
  margin: 0 0 16px;
  text-align: center;
}

body.profile-page .housing-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  margin: 0 auto 8px;
  display: block;
}

body.profile-page .ha-note,
body.profile-page .housing-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
  font-weight: 400;
  text-align: left;
}

body.profile-page .ha-actions {
  margin: 0 0 12px;
}

body.profile-page .profile-panel {
  padding: 8px 0 16px;
}

body.profile-page .profile-panel > h2 {
  margin: 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1d3557;
}

body.profile-page .profile-panel > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.4;
}

body.profile-page .ha-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 4px;
  border-bottom: 1px solid #eeeeee;
  text-decoration: none;
  color: inherit;
}

body.profile-page .ha-settings-row .ha-ico {
  width: 24px;
  height: 24px;
  color: #6c757d;
  flex-shrink: 0;
}

body.profile-page .ha-settings-row span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

body.profile-page .ha-settings-row strong {
  font-size: 16px;
  font-weight: 500;
  color: #1d3557;
}

body.profile-page .ha-settings-row em {
  font-style: normal;
  font-size: 13px;
  color: #6c757d;
}

body.profile-page .ha-settings-row .ha-chevron {
  width: 22px;
  height: 22px;
  color: #9e9e9e;
}

body.profile-page .ha-settings-row.is-dead {
  cursor: default;
  pointer-events: none;
}

body.profile-page .ha-settings-row.danger strong,
body.profile-page .ha-settings-row.danger .ha-ico {
  color: #e53935;
}

body.profile-page .ha-switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #ed6c02;
  opacity: 0.45;
  flex-shrink: 0;
  position: relative;
}

body.profile-page .ha-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

body.profile-page .profile-listing-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 8px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin: 0 0 10px;
}

body.profile-page .profile-listing-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  grid-column: 1 / -1;
}

body.profile-page .profile-listing-main .ha-ico {
  width: 22px;
  height: 22px;
  color: #ed6c02;
  flex-shrink: 0;
  margin-top: 2px;
}

body.profile-page .profile-listing-main strong {
  display: block;
  font-size: 15px;
  color: #1d3557;
  overflow-wrap: anywhere;
}

body.profile-page .profile-listing-main .sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #6c757d;
}

body.profile-page .profile-listing-act {
  border: 0;
  background: #f8f9fa;
  color: #1d3557;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

body.profile-page .profile-listing-act svg {
  width: 18px;
  height: 18px;
}

body.profile-page .profile-listing-rented {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #ed6c02;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.profile-page .ha-saved-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin: 0 0 10px;
  color: inherit;
  text-decoration: none;
}

body.profile-page .ha-saved-card strong {
  display: block;
  color: #1d3557;
}

body.profile-page .ha-saved-card span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #6c757d;
}

@media (min-width: 1024px) {
  body.profile-page .ha-page {
    max-width: 720px;
    padding: 16px 0 40px;
  }

  body.profile-page .profile-appbar {
    position: static;
    max-width: 560px;
    margin: 0 auto;
    background: transparent;
  }

  body.profile-page .ha-shell {
    max-width: 560px;
    padding: 8px 24px 48px;
  }
}
