/* Shared account-page rhythm. Presentation only: preserve hidden/disabled states,
   form controls, privacy messages and the established light/dark theme tokens. */
html:is([data-nf-page="account"],[data-nf-page="listings"],[data-nf-page="interests"],[data-nf-page="opportunities"],[data-nf-page="negotiations"]) {
  --account-page-width: 976px;
  --account-page-gutter: 24px;
  --account-card-space: 24px;
}
html[data-nf-page] main {
  width: 100%;
  max-width: var(--account-page-width);
  margin-inline: auto;
  padding: 24px var(--account-page-gutter) 40px;
  overflow-wrap: anywhere;
}
/* A single-column profile remains comfortable to read and fill in. */
html[data-nf-page="account"] main { --account-page-width: 760px; }
html[data-nf-page] main > .hero {
  max-width: 720px;
  margin: 0 0 24px;
}
html[data-nf-page] .hero .eyebrow {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: var(--muted);
}
html[data-nf-page] .hero h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.6px;
  margin: 0;
}
html[data-nf-page] .hero > p:last-child {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 64ch;
}
html[data-nf-page] main :is(.card,.panel,.choice) {
  border-radius: 14px;
  padding: var(--account-card-space);
  min-width: 0;
}
html[data-nf-page] main :is(.card,.panel) h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 12px;
}
html[data-nf-page] main :is(.actions,.save-actions) { gap: 12px; }
html[data-nf-page] main :is(button,.actions a,.storage-tabs a,.account-storage-tabs a) {
  min-height: 44px;
  border-radius: 9px;
  line-height: 1.5;
  white-space: normal;
}
html[data-nf-page] main .toolbar {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
html[data-nf-page] main .toolbar p { min-width: 0; margin: 0; flex: 1 1 180px; }
html[data-nf-page] main .toolbar button { flex: 0 0 auto; max-width: 100%; }
html[data-nf-page] main :is(.alert,.empty,.overview-help) {
  border-radius: 14px;
  line-height: 1.6;
}
html[data-nf-page] main :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--coral,#ec624d);
  outline-offset: 3px;
}
html[data-nf-page="account"] main > .card { margin-bottom: 24px; }
@media(max-width:640px) {
  html[data-nf-page] { --account-page-gutter: 16px; --account-card-space: 16px; }
  html[data-nf-page] main { padding-top: 20px; padding-bottom: 32px; }
  html[data-nf-page] main > .hero { margin-bottom: 20px; }
  html[data-nf-page] .hero h1 { font-size: 28px; }
  html[data-nf-page] .hero > p:last-child { font-size: 14px; }
  html[data-nf-page] main :is(.card,.panel) h2 { font-size: 19px; }
}

/* Shared header-to-content rhythm across account, listings and Fit workflows. */
html[data-nf-page] main{padding-top:16px}
html[data-nf-page] main > .hero{margin-bottom:16px}
html[data-nf-page] main .toolbar{margin:16px 0}
@media(max-width:640px){
 html[data-nf-page] main{padding-top:8px}
 html[data-nf-page] main > .hero{margin-bottom:12px}
 html[data-nf-page] main .toolbar{margin:12px 0}
}
