.portal-body { padding: 0 28px 28px; background: #f5f8f7; }
.portal-page { width: min(100%, 1080px); }
.portal-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 88px; margin-bottom: 30px; border-bottom: 1px solid #dce6e2; }
.portal-brand { color: #153e38; font-size: 20px; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.portal-brand span { margin-left: 5px; font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.portal-account { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.portal-account button, .portal-cancel button { background: transparent; color: #536371; font-size: 13px; font-weight: 500; padding: 8px 0; }
.portal-account button:hover, .portal-cancel button:hover { color: #176b63; text-decoration: underline; }
.portal-page h1 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -.025em; }
.portal-page .eyebrow { font-size: 11px; }
.portal-page .progress { font-size: 13px; margin-top: 6px; }
.portal-page .page-header { margin-bottom: 24px; }
.portal-kicker { color: #526961; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.portal-status { display: flex; justify-content: space-between; gap: 32px; padding: 22px 26px; margin-bottom: 24px; border: 1px solid #d4e2de; border-left: 4px solid #899f97; border-radius: 12px; background: #fff; }
.portal-status-green { border-left-color: #25815d; }
.portal-status-yellow { border-left-color: #c0911e; }
.portal-status-orange { border-left-color: #d76c1f; }
.portal-status-red { border-left-color: #b42318; }
.portal-status h2 { margin: 4px 0 6px; font-size: 19px; }
.portal-status p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.portal-stamp { flex: 0 0 185px; font-size: 12px; line-height: 1.6; color: #536371; }
.portal-stamp small { display: block; margin-top: 4px; }
.portal-review { color: #895515; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 24px; align-items: start; }
.portal-conversation, .portal-sidebar { min-width: 0; }
.portal-conversation > .form-card { margin-bottom: 16px; padding: 28px; }
.portal-conversation h2 { font-size: 23px; }
.portal-conversation .author-form { margin: 0 0 14px; }
.portal-conversation .author-form button { min-height: 36px; font-size: 12px; }
.portal-conversation textarea { min-height: 132px; }
.portal-sidebar { display: grid; gap: 14px; }
.portal-panel { padding: 22px; background: #fff; border: 1px solid #dce6e2; border-radius: 12px; }
.portal-panel h2 { margin: 0; font-size: 18px; }
.portal-panel p { font-size: 13px; line-height: 1.55; }
.portal-muted { color: #63756e; font-size: 13px; line-height: 1.6; }
.portal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portal-count { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eef4f1; font-size: 12px; color: #526961; }
.tracking-item { padding: 16px 0; border-top: 1px solid #edf1ef; }
.tracking-item:last-of-type { padding-bottom: 4px; }
.tracking-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tracking-heading h3 { font-size: 14px; font-weight: 650; margin: 0; }
.tracking-status { font-size: 10px; white-space: nowrap; background: #f4f2eb; color: #795d30; border-radius: 4px; padding: 3px 6px; }
.tracking-status.is-complete { background: #e9f4ee; color: #27674d; }
.tracking-item .tracking-value { margin: 8px 0 3px; overflow-wrap: anywhere; }
.tracking-item .tracking-time { font-size: 11px; margin: 0 0 4px; }
.tracking-action { background: transparent; color: #176b63; font-size: 12px; padding: 8px 0; min-height: 36px; }
.tracking-action:hover { background: transparent; text-decoration: underline; }
.tracking-action:disabled { cursor: default; }
.tracking-more > summary { padding: 16px 0 4px; color: #526961; font-size: 12px; cursor: pointer; }
.portal-footnote { color: #73817b; font-size: 11px !important; line-height: 1.6; margin-bottom: 0; }
.portal-details summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.portal-profile { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.6; }
.portal-profile dt { color: #63756e; }
.portal-profile dd { margin: 0; }
.portal-history { padding-top: 15px; font-size: 12px; }
.portal-history time { color: #63756e; font-size: 11px; }
.portal-history p { margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.portal-cancel { text-align: center; }
.portal-cancel button { min-height: 36px; }
.login-page { width: min(100%, 440px); margin: 8vh auto 0; }
.login-page > .portal-brand { display: inline-block; margin-bottom: 28px; }
.login-card { padding: 32px; }
.login-card h1 { margin: 12px 0; font-size: 30px; letter-spacing: -.035em; }
.login-card > p { font-size: 14px; }
.login-card input { min-height: 48px; border: 1px solid #aebbc6; border-radius: 8px; padding: 12px; font: inherit; width: 100%; }
.login-card .question-form { gap: 12px; margin-top: 28px; }
.login-card label { font-size: 13px; }
.login-card .question-form button { width: 100%; margin-top: 4px; }
.login-demo-note { color: #73817b !important; font-size: 11px !important; margin: 20px 0 0; text-align: center; }
.demo-accounts { display: grid; gap: 8px; margin-bottom: 20px; }
.demo-accounts button { display: grid; gap: 4px; width: 100%; text-align: left; background: #eff6f3; color: #153e38; padding: 14px; }
.demo-accounts small { color: #63756e; font-weight: 400; }
.portal-link { color: #176b63; font-size: 13px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #25837b; outline-offset: 4px; }
@media (max-width: 800px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-sidebar { grid-template-columns: minmax(0, 1fr); }
  .portal-status { flex-direction: column; gap: 10px; }
  .portal-stamp { flex-basis: auto; }
}
@media (max-width: 480px) {
  .portal-body { padding: 0 16px 20px; }
  .portal-topbar { margin-bottom: 22px; gap: 12px; }
  .portal-account { gap: 12px; font-size: 12px; }
  .portal-brand { font-size: 18px; white-space: nowrap; }
  .portal-brand span { font-size: 11px; }
  .portal-account button { white-space: nowrap; }
  .portal-conversation > .form-card, .portal-panel, .portal-status { padding: 20px; }
  .tracking-action { width: auto; }
  .login-card { padding: 24px; }
  .demo-tools { gap: 10px; flex-wrap: wrap; }
}
:root { --tracking-due: #a17420; }
.tracking-item.tracking-overdue { border-left: 3px solid #d9b65a; padding-left: 12px; }
.tracking-due { color: var(--tracking-due); font-size: 12px; font-weight: 600; }
