.portal-section { padding-top: 36px; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; border-bottom: 1px solid var(--border); padding-bottom: 22px; margin-bottom: 32px; }
.portal-nav a, .portal-link-button { font-size: .87rem; font-weight: 600; }
.portal-link-button { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; font: inherit; }
.portal-nav form { margin-left: auto; }
.portal-form { max-width: 850px; margin-top: 24px; }
.portal-form .btn { margin-top: 26px; }
.portal-form .form-note { margin: 24px 0 0; }
.portal-form ul { overflow-wrap: anywhere; }
.auth-form { max-width: 600px; }
.auth-form .form-grid { grid-template-columns: 1fr; }
.portal-message { background: #edf6f2; border: 1px solid #c6ddd2; padding: 16px; border-radius: 8px; margin-bottom: 24px; }
.portal-email { margin-bottom: 22px; color: var(--muted); overflow-wrap: anywhere; }
.portal-company-title { margin-bottom: 24px; }
.metric { display: flex; flex-direction: column; gap: 12px; }
.metric strong { font-size: 2rem; color: var(--navy); }
.portal-block { margin-top: 40px; }
.portal-block > h2 { margin-bottom: 18px; }
.portal-records { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.portal-record h2 { font-size: 1.4rem; margin-bottom: 14px; }
.portal-record p { margin-top: 12px; }
.portal-record .actions { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.portal-record .badge { display: inline-block; }
.portal-empty { padding: 24px; color: var(--muted); grid-column: 1 / -1; }
.portal-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 24px 0; }
.portal-facts div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.portal-facts dt { font-size: .8rem; color: var(--muted); }
.portal-facts dd { margin: 6px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.portal-record, .portal-company-title { overflow-wrap: anywhere; }
.company-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.company-switch select { max-width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: white; }
@media (max-width: 600px) {
  .portal-records, .portal-facts, .portal-metrics { grid-template-columns: 1fr; }
  .portal-nav { gap: 14px 20px; }
  .portal-nav form { margin-left: 0; }
  .portal-form .form-grid { grid-template-columns: 1fr; }
  .portal-form { padding: 22px 18px; }
  .portal-form .btn { width: 100%; }
  .company-switch { align-items: stretch; flex-direction: column; }
}
