.profile-view { width: 100%; max-width: 1130px; margin-inline: auto; }
.profile-view h1 { margin: 0 0 32px; font-size: 29px; font-weight: 600; letter-spacing: -.75px; }
.profile-section { max-width: 720px; padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.profile-section:last-child { border-bottom: 0; }
.profile-section h2 { margin: 0 0 20px; font-size: 18px; font-weight: 550; letter-spacing: -.25px; }
.profile-section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.profile-section p { font-size: 14px; line-height: 1.6; }
.profile-view .profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-view .profile-fields .wide { grid-column: 1 / -1; }
.profile-view label, .profile-view .field { font-size: 13px; font-weight: 400; margin: 0; }
.profile-view label > span { display: block; margin-bottom: 8px; }
.profile-view input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #d6d9dc; border-radius: 6px; font: inherit; font-size: 16px; }
.profile-view .field { display: block; max-width: 320px; margin-block: 20px; }
.profile-view .check { display: flex; align-items: flex-start; gap: 10px; margin-block: 18px; line-height: 1.6; }
.profile-view .check input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: #27292b; }
.profile-view .check span { margin: 0; }
.profile-view .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.profile-view .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; background: #27292b; color: white; border: 1px solid #27292b; border-radius: 7px; font-size: 14px; text-decoration: none; }
.profile-view .button.secondary { background: white; color: var(--ink); border-color: #dedfe2; }
.profile-view .flow-links { margin-block: 16px; }
.profile-view .flow-links a { color: var(--ink); text-underline-offset: 3px; }
.profile-view .note, .profile-view .section-intro, .profile-view .profile-hint { color: var(--muted); }
.profile-view .error { padding: 12px; border-radius: 6px; background: #fff3f1; color: #8b3129; font-size: 14px; }
.profile-view .error button { display: block; margin-top: 12px; }
.profile-view .profile-facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px 28px; font-size: 14px; line-height: 1.6; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.profile-view #profileFeedback { color: #355c49; min-height: 0; font-size: 13px; }
@media (max-width: 600px) {
  .profile-view h1 { font-size: 25px; }
  .profile-view .profile-fields { grid-template-columns: minmax(0, 1fr); }
  .profile-view .profile-facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .profile-facts dd { margin-bottom: 14px; }
  .profile-view .actions { align-items: stretch; }
  .profile-view .actions .button { flex: 1 1 auto; }
}

.profile-view #profileFeedback:empty { margin: 0; }
.profile-section header h2 { margin-bottom: 0; }
.profile-section > header { margin-bottom: 20px; align-items: center; }
.account-setup-view { max-width: 720px; }
.account-setup-prompt { padding: 24px; margin-bottom: 32px; border: 1px solid var(--accent, #2d7055); border-left: 5px solid var(--accent, #2d7055); border-radius: 10px; background: var(--surface, #fff); }
.account-setup-prompt h2 { margin: 0 0 18px; font-size: 24px; }
.account-setup-view #accountDraftStatus { color: var(--muted); font-size: 13px; }
.profile-view .mailing-address-fields { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr) 88px 104px; gap: 18px 16px; }
.profile-view .mailing-address-fields legend { padding: 0; margin-bottom: 18px; font-size: 15px; font-weight: 550; }
.profile-view .mailing-address-fields label { min-width: 0; }
.profile-view .mailing-street { grid-column: 1 / -1; }
.profile-view .mailing-unit input { max-width: 96px; }
.profile-view .mailing-address-fields select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 8px; color: var(--ink); background: #fff; border: 1px solid #d6d9dc; border-radius: 6px; font: inherit; font-size: 16px; }
@media (max-width: 700px) {
  .profile-view .mailing-address-fields { grid-template-columns: 96px minmax(0, 1fr); }
  .profile-view .mailing-state { grid-column: 1; width: 88px; }
  .profile-view .mailing-postcode { grid-column: 2; width: 104px; }
}
