.odd-account-page *,
.odd-account-page *::before,
.odd-account-page *::after {
  box-sizing: border-box;
}
.odd-account-page button,
.odd-account-page input,
.odd-account-page select,
.odd-account-page textarea {
  font: inherit;
}
/* Logo orange sampled from /brand/odd-mark.png; shared page layout stays blue. */
.odd-account-page {
  --accent: #ed5c2b;
  --accent-deep: #ed5c2b;
  --orange: #ed5c2b;
}
.odd-account-page a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.odd-account-page .odd-nav a:hover,
.odd-account-page footer.site a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.odd-account-page a:focus-visible,
.odd-account-page button:focus-visible,
.odd-account-page input:focus-visible,
.odd-account-page select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.odd-account-page #signed-out > .button {
  display: inline-flex;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #171a22;
  font-weight: 700;
  text-decoration: none;
}
/* Member dashboard. Layers on top of /assets/odd-site.css (shared Odd
   Community header/footer/colors) rather than inventing a new palette. */
.account-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.odd-account-page h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 28px;
}
.odd-account-page .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}
#email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
#email-form label {
  font-size: 13px;
  font-weight: 700;
}
#email-form input {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
}
#email-form input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
#email-form button,
#sign-out,
.buy-row button {
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 22px;
  border: 1px solid #ffffff47;
  cursor: pointer;
  background: var(--accent);
  color: #171a22;
}
#email-form button:hover,
.buy-row button:hover {
  filter: brightness(1.05);
}
#email-form button:disabled,
.buy-row button:disabled {
  opacity: .55;
  cursor: default;
}
#sign-out.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
#signin-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
}
.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.user-email {
  font-weight: 700;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}
.balance {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 14px;
}
.buy-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.apps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apps-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.apps-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.app-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.app-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  object-fit: contain;
}
.app-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.app-status {
  flex-shrink: 0;
}
.app-status.signed-in {
  color: #8fd19e;
  font-weight: 700;
  font-size: 13px;
}
.app-status.get-app a,
a.app-status.get-app {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.app-status.get-app a:hover,
a.app-status.get-app:hover {
  text-decoration: underline;
}
#backup-body > .app-identity {
  margin-bottom: 16px;
}
#backup-body p {
  margin: 0 0 8px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.profile-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.profile-email {
  overflow-wrap: anywhere;
  text-align: right;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
}
.profile-avatar-initials,
.profile-avatar-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.profile-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}
.profile-avatar-image {
  object-fit: cover;
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.profile-form input[type='text'] {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}
.profile-form button[type='submit'] {
  align-self: flex-start;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid #ffffff47;
  cursor: pointer;
  background: var(--accent);
  color: #171a22;
}
.profile-form button[type='submit']:disabled {
  opacity: .55;
  cursor: default;
}
.profile-save-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.prefs-section,
.consent-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prefs-section h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.prefs-section label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.prefs-section select {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
}
.prefs-section button[type='button'] {
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid #ffffff47;
  cursor: pointer;
  background: var(--accent);
  color: #171a22;
}
.prefs-section button[type='button']:disabled {
  opacity: .55;
  cursor: default;
}
.prefs-save-status,
.consent-detail {
  margin: 0.25rem 0 0 1.75rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.consent-save-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}
.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.consent-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
}
.fine-print {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.inline-error {
  color: #ffb3a1;
  font-size: 13px;
  margin-top: 10px;
}
@media (max-width: 560px) {
  .account-main {
    padding: 36px 18px 60px;
  }
  .account-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Keep generated profile controls and long app names usable on narrow screens. */
.odd-account-page button,
.odd-account-page input:not([type='checkbox']),
.odd-account-page select,
.odd-account-page #signed-out > .button {
  min-height: 44px;
  max-width: 100%;
}
.odd-account-page button,
.odd-account-page select,
.odd-account-page #signed-out > .button {
  font-size: 16px;
  line-height: 1.4;
}
.odd-account-page #signed-out > .button {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.profile-form, .prefs-section, .prefs-section label,
.profile-form input, .prefs-section select {
  min-width: 0;
}
.profile-form input, .prefs-section select { width: 100%; }
.consent-row { min-height: 44px; }
.consent-row input[type='checkbox'] { flex-shrink: 0; accent-color: var(--accent); }
#signin-status, .profile-save-status, .prefs-save-status,
.consent-save-status, .inline-error { overflow-wrap: anywhere; line-height: 1.6; }
.odd-account-page .odd-nav a,
.odd-account-page footer.site a,
.odd-account-page .app-status.get-app a,
.odd-account-page a.app-status.get-app {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 560px) {
  .card { padding: 20px 18px; }
  .profile-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .profile-email { text-align: left; }
  .apps-list li { flex-wrap: wrap; }
  .app-identity { flex: 1 1 150px; }
  .app-status { max-width: 100%; }
  .buy-row button { flex: 1 1 auto; }
}
