@layer account {
  .account-main { min-height: 100vh; background: var(--sand-50); }
  .account-intro { padding: 130px var(--gutter) 58px; color: var(--white); background: var(--ocean-950); }
  .account-intro h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.7rem, 6vw, 5rem); }
  .account-intro p:last-child { max-width: 650px; color: #c3d6de; }
  .account-shell { width: min(100%, 920px); margin-inline: auto; }
  .auth-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 7vw, 80px); padding: clamp(26px, 5vw, 58px); border-top: 4px solid var(--teal-500); background: var(--white); box-shadow: 0 18px 48px rgb(4 31 48 / .08); }
  .auth-panel h2 { margin-bottom: 16px; }
  .auth-panel form { display: grid; gap: 12px; align-content: start; }
  .auth-panel [hidden], [data-dashboard][hidden] { display: none; }
  .auth-panel input[type="text"] { min-height: 50px; padding: 11px 13px; border: 1px solid #a9b3b8; font: inherit; }
  .auth-panel input:focus { border-color: var(--teal-600); outline: 3px solid rgb(24 166 160 / .16); }
  .contact-method { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 8px; border: 0; }
  .contact-method legend { width: 100%; margin-bottom: 8px; font-weight: 720; }
  .contact-method label { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; cursor: pointer; }
  .contact-method input { width: 20px; height: 20px; accent-color: var(--teal-700); }
  .auth-actions, .dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .text-button { min-height: 44px; padding: 8px 4px; border: 0; border-bottom: 1px solid currentColor; color: var(--teal-800); background: transparent; font: inherit; font-weight: 720; cursor: pointer; }
  .auth-status { min-height: 24px; margin-top: 18px; color: var(--muted); font-weight: 650; }
  .auth-status.is-error { color: #a62d24; }
  .dashboard-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 34px; }
  .dashboard-head h2 { max-width: 650px; margin-bottom: 12px; }
  .lead-history { display: grid; gap: 12px; }
  .history-empty { padding: 36px; border-left: 4px solid var(--amber-500); background: var(--white); }
  .history-item { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(120px, .5fr)); gap: 18px; align-items: center; padding: 22px 24px; border-left: 4px solid var(--teal-500); background: var(--white); box-shadow: 0 8px 24px rgb(4 31 48 / .06); }
  .history-item h3 { margin: 4px 0 6px; font-size: 1.25rem; }
  .history-label { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
  .history-value { display: block; margin-top: 4px; font-weight: 720; }
  .history-status { color: var(--teal-800); }
  @media (max-width: 700px) {
    .account-intro { padding-top: 110px; }
    .auth-panel { grid-template-columns: 1fr; }
    .history-item { grid-template-columns: 1fr; gap: 12px; }
    .dashboard-actions .button { width: 100%; }
  }
}
