/* Cuenta: composición integrada y estable. */
body.account-page-active,
body:has(.account-page) {
  --page-bg-el-a: none;
  --page-bg-el-b: none;
  --page-bg-el-c: none;
  --page-bg-horse: none;
  --page-bg-stonehenge: none;
  --page-bg-circle-a: none;
  --page-bg-circle-b: none;
  --page-bg-circle-c: none;
  background: var(--watches-catalog-page, var(--color-bg));
}

html.night-mode.account-page-active,
body.night-mode.account-page-active {
  background: var(--watches-catalog-page, var(--color-bg));
}

body.account-page-active main {
  width: 100%;
  max-width: 1860px;
  margin-inline: auto;
  padding-inline: clamp(35px, 6vw, 60px);
  background: var(--watches-catalog-page, var(--color-bg));
  overflow: visible;
}

body.account-page-active .site-footer {
  padding-inline: clamp(35px, 6vw, 60px);
}

body.account-page-active .site-footer .footer-inner {
  width: min(100%, 1740px);
  margin-inline: auto;
}

.account-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: clamp(28px, 4vw, 58px);
  color: var(--watches-catalog-ink, var(--color-text));
  overflow: visible;
}

.account-page > .account-hero,
.account-page > #account-dashboard,
.account-page > #account-guest-gate {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.account-page > .account-hero {
  max-width: 1120px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.account-hero {
  position: relative;
  display: grid;
  gap: 0;
}

.account-hero .catalog-kicker {
  color: var(--watches-catalog-gold, var(--color-accent));
  letter-spacing: 0;
}

.account-hero .catalog-title {
  margin: 8px 0 12px;
  color: var(--watches-catalog-ink, var(--color-text));
  font-size: clamp(2rem, 5.2vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: none;
}

.account-hero .catalog-lead {
  max-width: 760px;
  color: var(--watches-catalog-muted, var(--color-text-muted));
  font-size: clamp(1rem, 1.15vw, 1.16rem);
}

.account-hero .catalog-stats {
  gap: 10px;
  margin-top: 18px;
}

.account-hero .catalog-stat {
  min-height: 28px;
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--watches-catalog-muted, var(--color-text-muted));
  font-size: 0.78rem;
  letter-spacing: 0;
}

.account-hero-top-actions {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
}

.account-hero-logout-btn,
.account-hero-stats-btn,
.account-visibility-help-toggle {
  min-height: 34px;
  padding-inline: 13px;
  border: 1px solid var(--watches-catalog-line-strong, var(--color-border-strong));
  border-radius: 999px;
  background: transparent;
  color: var(--watches-catalog-ink, var(--color-text));
  box-shadow: none;
  letter-spacing: 0.02em;
  text-transform: none;
}

.account-hero-logout-btn:hover,
.account-hero-logout-btn:focus-visible,
.account-hero-stats-btn:hover,
.account-hero-stats-btn:focus-visible,
.account-visibility-help-toggle:hover,
.account-visibility-help-toggle:focus-visible {
  transform: none;
  border-color: var(--watches-catalog-gold, var(--color-action));
  background: var(--watches-catalog-card-hover, var(--color-action-soft));
  box-shadow: none;
}

.account-dashboard {
  width: 100%;
  margin-top: clamp(34px, 5vw, 72px);
  overflow: visible;
}

.account-visibility-legend {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 2.4vw, 34px);
  padding: 15px 0;
  border: 0;
  border-block: 1px solid var(--watches-catalog-line, var(--color-border));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-visibility-note-line {
  width: 100%;
  min-width: 0;
}

.account-visibility-help {
  max-width: 760px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--watches-catalog-line, var(--color-border));
  border-radius: 0;
  background: transparent;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
  align-items: start;
}

.account-block {
  position: static;
  display: grid;
  gap: 15px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px solid var(--watches-catalog-line, var(--color-border));
  border-radius: 20px;
  background: var(--watches-catalog-card, var(--color-surface));
  box-shadow: none;
  overflow: visible;
}

.account-block::before,
.account-block::after {
  content: none;
}

.account-block-profile,
.account-block-security,
.account-block-notifications {
  grid-column: 1 / -1;
}

.account-block-profile {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  column-gap: clamp(24px, 4vw, 64px);
}

.account-profile-header,
.account-stats-panel,
.account-profile-feedback {
  grid-column: 1 / -1;
}

.account-profile-top {
  align-self: start;
  display: grid;
  justify-items: start;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding-right: clamp(0px, 2vw, 24px);
}

.account-avatar {
  width: clamp(92px, 9vw, 124px);
  height: clamp(92px, 9vw, 124px);
  border: 1px solid var(--watches-catalog-line-strong, var(--color-border-strong));
  background: var(--watches-catalog-card-hover, var(--color-surface-soft));
  box-shadow: none;
}

.account-profile-summary {
  width: 100%;
  min-width: 0;
}

.account-profile-name {
  color: var(--watches-catalog-ink, var(--color-text));
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  overflow-wrap: anywhere;
}

.account-profile-email,
.account-profile-meta,
.account-muted-text,
.account-private-hint,
.account-public-static-empty,
.account-comments-empty,
.account-forum-empty {
  color: var(--watches-catalog-muted, var(--color-text-muted));
}

.account-profile-header,
.account-block-head {
  align-items: center;
}

.account-block .catalog-letter-title {
  margin: 0;
  color: var(--watches-catalog-ink, var(--color-text));
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0;
  text-transform: none;
}

.account-block .catalog-letter-title::after {
  content: none;
}

.account-form {
  min-width: 0;
  gap: 10px;
}

.account-page .account-form input:not(.account-file-input),
.account-page .account-form textarea,
.account-page .account-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-color: var(--watches-catalog-line-strong, var(--color-border-strong));
  border-radius: 10px;
  background: color-mix(in srgb, var(--watches-catalog-page, var(--color-bg)) 66%, transparent);
  color: var(--watches-catalog-ink, var(--color-text));
  box-shadow: none;
}

.account-page .account-form input:not(.account-file-input):focus-visible,
.account-page .account-form textarea:focus-visible,
.account-page .account-form select:focus-visible {
  border-color: var(--watches-catalog-gold, var(--color-action));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--watches-catalog-gold, var(--color-action)) 18%, transparent);
}

.account-file-upload,
.account-fav-search-wrap,
.account-fav-selected,
.account-security-email-auth-row,
.account-security-email-form-row,
.account-form-inline {
  min-width: 0;
  max-width: 100%;
}

.account-action-btn,
.account-action-secondary,
.account-file-button,
.account-danger-btn {
  border-radius: 999px;
  box-shadow: none;
}

.account-action-btn:hover,
.account-action-btn:focus-visible,
.account-action-secondary:hover,
.account-action-secondary:focus-visible,
.account-file-button:hover,
.account-file-button:focus-visible,
.account-danger-btn:hover,
.account-danger-btn:focus-visible {
  transform: none;
  box-shadow: none;
}

.account-block-notifications {
  min-height: 0;
  padding-block: 17px;
  border-radius: 16px;
  background: transparent;
}

.account-notifications-shell {
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
}

.account-notifications-toggle:hover,
.account-notifications-toggle:focus-visible {
  transform: none;
}

.account-notifications-body {
  gap: 4px;
}

.account-stats-panel {
  position: static;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 14px 0 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--watches-catalog-line, var(--color-border));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: none;
  will-change: auto;
}

.account-stats-panel[hidden] {
  display: none !important;
}

.account-stats-panel.is-open,
.account-stats-panel.is-closing {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.account-stats-panel-grid[aria-hidden="true"] {
  display: none;
}

.account-stats-panel-close {
  border-radius: 999px;
  background: transparent;
}

.account-favorites-list,
.account-comments-list,
.account-forum-list,
.account-forum-inline-scroll,
.account-forum-inline-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.account-favorite-item,
.account-comment-item,
.account-forum-item,
.account-forum-panel,
.account-public-static {
  max-width: 100%;
  border-color: var(--watches-catalog-line, var(--color-border));
  background: color-mix(in srgb, var(--watches-catalog-page, var(--color-bg)) 56%, transparent);
  box-shadow: none;
}

.account-favorite-item *,
.account-comment-item *,
.account-forum-item *,
.account-forum-panel * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-forum-inline-scroll {
  overflow: visible;
}

.account-security-group {
  min-width: 0;
  max-width: 100%;
  border-color: var(--watches-catalog-line, var(--color-border));
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.account-security-reset-shell,
.account-security-email-shell,
.account-security-danger-shell {
  min-width: 0;
  max-width: 100%;
  background: transparent;
}

.account-security-lock-circle,
.account-security-mail-circle,
.account-security-danger-circle {
  border: 1px solid var(--watches-catalog-line, var(--color-border));
  background: var(--watches-catalog-card-hover, var(--color-surface-soft));
  box-shadow: none;
}

.account-security-email-panel {
  min-width: 0;
  max-width: 100%;
}

.account-expand-backdrop,
.account-block-close-btn {
  display: none !important;
}

body.account-expanded-open {
  overflow: visible;
}

.account-page.has-expanded-block .account-block:not(.is-expanded) {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

.account-block.is-expanded {
  position: static;
  inset: auto;
  z-index: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0;
  overflow: visible;
  box-shadow: none;
}

.account-guard {
  max-width: 760px;
  margin-top: clamp(30px, 5vw, 68px);
  padding: clamp(22px, 3vw, 34px) 0;
  border: 0;
  border-block: 1px solid var(--watches-catalog-line, var(--color-border));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-guard p {
  max-width: 58ch;
  color: var(--watches-catalog-muted, var(--color-text-muted));
}

.account-page :is(img, svg, video, canvas, iframe, table, pre) {
  max-width: 100%;
}

.account-page :is(h1, h2, h3, h4, p, a, label, li, code) {
  overflow-wrap: anywhere;
}

@media (max-width: 899px) {
  body.account-page-active main,
  body.account-page-active .site-footer {
    padding-inline: clamp(16px, 5vw, 26px);
  }

  .account-page {
    padding-top: clamp(22px, 7vw, 34px);
  }

  .account-hero-top-actions {
    position: static;
    width: 100%;
    margin-bottom: 18px;
    justify-content: flex-start;
  }

  .account-dashboard {
    margin-top: 32px;
  }

  .account-layout,
  .account-block-profile {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-header,
  .account-profile-feedback,
  .account-stats-panel {
    grid-column: auto;
  }

  .account-profile-top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    padding-right: 0;
  }

  .account-avatar {
    width: 78px;
    height: 78px;
  }

  .account-block {
    padding: clamp(17px, 5vw, 23px);
    border-radius: 16px;
  }

  .account-profile-header,
  .account-block-head {
    align-items: flex-start;
  }

  .account-visibility-note-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-security-email-shell,
  .account-security-reset-shell,
  .account-security-danger-shell,
  .account-security-email-auth-row,
  .account-security-email-form-row,
  .account-form-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-security-mail-circle,
  .account-security-lock-circle,
  .account-security-danger-circle {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .account-profile-top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .account-profile-header,
  .account-block-head {
    gap: 12px;
  }

  .account-profile-actions,
  .account-block-head-actions {
    width: 100%;
  }

  .account-hero-logout-btn,
  .account-hero-stats-btn,
  .account-visibility-help-toggle,
  .account-action-btn,
  .account-action-secondary,
  .account-file-button,
  .account-danger-btn {
    max-width: 100%;
    white-space: normal;
  }
}

/* Cuenta: refinamiento editorial continuo. */
html.account-page-active:not(.night-mode),
body.account-page-active:not(.night-mode) {
  --watches-catalog-page: #fcfcfa;
  --watches-catalog-surface: #ffffff;
  --watches-catalog-card: #f3f3f1;
  --watches-catalog-card-hover: #f0f0ef;
  --watches-catalog-ink: #292929;
  --watches-catalog-muted: #707070;
  --watches-catalog-line: rgba(41, 41, 41, 0.11);
  --watches-catalog-line-strong: rgba(41, 41, 41, 0.2);
  --watches-catalog-gold: #6f6b65;
  --theme-surface-bg: var(--watches-catalog-page);
  --surface-bg: var(--watches-catalog-page);
  --surface-text: var(--watches-catalog-ink);
  background-color: var(--watches-catalog-page);
  background-image: none;
}

html.night-mode.account-page-active {
  background-color: var(--theme-surface-bg);
}

body.night-mode.account-page-active {
  --watches-catalog-page: var(--surface-bg);
  --watches-catalog-surface: color-mix(in srgb, var(--surface-bg) 94%, var(--surface-text) 6%);
  --watches-catalog-card: color-mix(in srgb, var(--surface-bg) 92%, var(--surface-text) 8%);
  --watches-catalog-card-hover: color-mix(in srgb, var(--surface-bg) 88%, var(--surface-text) 12%);
  --watches-catalog-ink: var(--surface-text);
  --watches-catalog-muted: color-mix(in srgb, var(--surface-text) 70%, transparent);
  --watches-catalog-line: color-mix(in srgb, var(--surface-text) 14%, transparent);
  --watches-catalog-line-strong: color-mix(in srgb, var(--surface-text) 24%, transparent);
  --watches-catalog-gold: var(--accent-blue);
  background-color: var(--surface-bg);
  background-image: none;
}

body.account-page-active main,
body.account-page-active .account-page {
  background-color: var(--watches-catalog-page);
}

.account-page {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-bottom: clamp(28px, 5vw, 72px);
}

.account-page > .account-hero {
  max-width: 980px;
}

.account-dashboard {
  margin-top: clamp(30px, 4vw, 52px);
}

.account-layout {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin-inline: 0;
}

.account-block,
.account-block-notifications {
  display: grid;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(32px, 4vw, 54px) 0;
  border: 0;
  border-top: 1px solid var(--watches-catalog-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-block-profile {
  padding-top: clamp(8px, 1.5vw, 18px);
  border-top: 0;
}

.account-visibility-legend {
  margin-bottom: clamp(22px, 3vw, 36px);
  padding: 14px 0;
  border-block: 1px solid var(--watches-catalog-line);
}

.account-block-notifications {
  padding-block: clamp(22px, 3vw, 32px);
}

.account-block-profile,
.account-block-security,
.account-block-notifications {
  grid-column: auto;
}

.account-profile-header,
.account-block-head {
  padding-bottom: clamp(8px, 1vw, 14px);
}

.account-profile-top {
  padding: 0 clamp(24px, 4vw, 56px) 0 0;
  border-right: 1px solid var(--watches-catalog-line);
}

.account-profile-form {
  width: 100%;
  max-width: 760px;
}

.account-avatar {
  border-radius: 50%;
}

.account-stats-panel {
  margin-block: 6px clamp(22px, 3vw, 34px);
  padding-block: clamp(16px, 2vw, 24px);
  border-block: 1px solid var(--watches-catalog-line);
}

.account-stats-panel-grid {
  gap: 0;
}

.account-stats-placeholder-card {
  min-width: 0;
  padding: 4px clamp(14px, 2vw, 28px);
  border: 0;
  border-left: 1px solid var(--watches-catalog-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-stats-placeholder-card:first-child {
  padding-left: 0;
  border-left: 0;
}

.account-notifications-shell {
  width: min(100%, 900px);
}

#account-favorites-section .account-form,
#account-preferences-section .account-form {
  width: min(100%, 760px);
}

.account-favorites-list,
.account-comments-list,
.account-forum-list {
  gap: 0;
}

.account-favorite-item,
.account-favorite-empty,
.account-comment-item,
.account-forum-item,
.account-public-static {
  margin: 0;
  padding: 17px 0;
  border: 0;
  border-top: 1px solid var(--watches-catalog-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-favorites-list > :last-child,
.account-comments-list > :last-child,
.account-forum-list > :last-child {
  border-bottom: 1px solid var(--watches-catalog-line);
}

.account-fav-selected {
  padding: 12px 0;
  border: 0;
  border-block: 1px solid var(--watches-catalog-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-forum-inline-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.account-forum-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-security-group {
  margin: 0;
  padding: clamp(24px, 3vw, 38px) 0;
  border: 0;
  border-top: 1px solid var(--watches-catalog-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-security-group:last-of-type {
  border-bottom: 1px solid var(--watches-catalog-line);
}

.account-security-lock-circle,
.account-security-mail-circle,
.account-security-danger-circle {
  border: 0;
  background: transparent;
}

.account-page :is(
  .account-block,
  .account-stats-placeholder-card,
  .account-favorite-item,
  .account-favorite-empty,
  .account-comment-item,
  .account-forum-item,
  .account-forum-panel,
  .account-public-static,
  .account-security-group
) {
  filter: none;
}

@media (max-width: 899px) {
  .account-page {
    width: 100%;
  }

  .account-block,
  .account-block-notifications {
    padding-block: clamp(26px, 7vw, 40px);
  }

  .account-block-profile {
    padding-top: 6px;
  }

  .account-profile-top {
    padding: 0 0 clamp(22px, 6vw, 30px);
    border-right: 0;
    border-bottom: 1px solid var(--watches-catalog-line);
  }

  .account-profile-form {
    padding-top: clamp(20px, 5vw, 28px);
  }

  .account-forum-inline-scroll {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .account-forum-panel + .account-forum-panel {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--watches-catalog-line);
  }
}

@media (max-width: 520px) {
  .account-stats-panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-stats-placeholder-card,
  .account-stats-placeholder-card:first-child {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid var(--watches-catalog-line);
  }

  .account-stats-placeholder-card:first-child {
    border-top: 0;
  }
}
