/* Local assets only. Public portal flow and the permission-scoped admin card. */
.header-note { color: #61738f; font-size: 12px; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; padding: 10px 0; color: #46607f; font-weight: 600; }
.account-menu-panel { position: absolute; z-index: 30; top: 100%; right: 0; width: 174px; padding: 10px 18px; border: 1px solid #dce7f5; border-radius: 12px; background: #fff; box-shadow: 0 8px 26px #142d521a; }
.account-menu-panel a, .account-menu-panel button { display: block; min-height: 44px; }
.account-menu-panel form { margin: 0; }
.form-title { font-size: 29px; line-height: 1.35; }
.auth-intro-title { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.4; letter-spacing: -.025em; margin-bottom: 16px; }
.form-field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.form-field > label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-field .checkbox-label { align-items: flex-start; gap: 10px; line-height: 1.6; }
.checkbox-label input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; }
.optional-label, .field-help, .form-actions > span { font-size: 12px; color: #61738f; font-weight: 400; }
.field-help ul { margin: 0; padding-left: 18px; }
.field-errors { margin: 0; padding-left: 18px; color: #a43b3b; font-size: 13px; }
.form-field [aria-invalid="true"] { border-color: #b94343; background: #fffafa; }
.form-error strong { display: block; margin-bottom: 5px; }
.form-error a { color: #9b2e2e; text-decoration: underline; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.form-grid p.field-help { margin-top: -12px; font-weight: 400; }
.login-alternative { margin-top: 20px; padding-top: 2px; border-top: 1px solid #dce7f5; }
.login-alternative > p { margin: 8px 0 0; }
.login-help { text-align: center; margin: 12px 0 0; }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 0 0 25px; padding: 0; }
.flow-steps li { display: flex; align-items: center; gap: 9px; color: #61738f; font-size: 12px; line-height: 1.4; }
.flow-steps li > span { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border: 1px solid #d0dff3; border-radius: 50%; font-weight: 700; background: #fff; }
.flow-steps li[aria-current="step"] { color: #095fe5; }
.flow-steps li[aria-current="step"] > span { background: #095fe5; border-color: #095fe5; color: #fff; }
.journey-card { padding: 26px; border: 1px solid #cbdff9; border-radius: 16px; background: #fff; box-shadow: 0 3px 14px #1d478508; }
.journey-card .flow-steps { max-width: 780px; padding-bottom: 20px; border-bottom: 1px solid #e7eff9; margin-bottom: 21px; }
.journey-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.journey-next h2 { font-size: 23px; margin: 4px 0 8px; }
.journey-next p { max-width: 690px; color: #526b89; margin: 0; }
.journey-next .button { white-space: nowrap; }
.connection-note { margin: 20px 0 0; color: #61738f; font-size: 12px; }
.subscription-card summary, .plan-disclosure > summary { cursor: pointer; color: #1b467b; font-weight: 650; padding: 3px 0; }
.subscription-content { padding-top: 16px; }
.plan-disclosure > summary { margin-bottom: 12px; }
.plan-card .plan-label { margin: 12px 0 8px; }
.records-empty p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-budget-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 20px 0; padding: 22px 24px; border: 1px solid #bed4f2; border-radius: 12px; background: var(--body-bg, #fff); color: var(--body-fg, #142d52); }
.admin-budget-panel h2 { color: inherit; background: none; border: 0; padding: 0; margin: 4px 0 8px; font-size: 19px; text-transform: none; line-height: 1.4; }
.admin-budget-panel p { margin: 6px 0 0; line-height: 1.6; }
.budget-eyebrow { color: #2163b4; font-size: 12px; font-weight: 650; }
.admin-budget-panel .budget-detail { font-size: 12px; opacity: .82; }
.budget-links { display: grid; gap: 10px; justify-items: start; }
.budget-links a { min-height: 40px; display: inline-flex; align-items: center; }
.budget-links .budget-primary { color: #fff; background: #095fe5; border-radius: 8px; padding: 9px 15px; font-weight: 650; }
.admin-brand-caption { font-size: 13px; opacity: .8; margin-left: 8px; }
@media (max-width: 760px) {
  .journey-next, .admin-budget-panel { grid-template-columns: 1fr; gap: 17px; }
  .journey-next .button { justify-self: start; }
  .admin-budget-panel { padding: 20px; }
  .budget-links { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
}
@media (max-width: 480px) {
  .header-inner { min-height: 72px; }
  .header-note { font-size: 11px; }
  .flow-steps { gap: 7px; }
  .flow-steps li { display: grid; gap: 7px; align-content: start; font-size: 11px; }
  .flow-steps li > span { width: 27px; }
  .journey-card { padding: 20px; border-radius: 12px; }
  .journey-next .button { width: 100%; white-space: normal; }
  .journey-next h2 { font-size: 21px; }
  .form-title { font-size: 26px; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .form-actions .button { width: 100%; }
  .account-menu-panel { right: 0; }
}
