html, body {
  padding: 0;
  margin: 0;
  color: #212B36;
  background-color: #F4F6F8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  min-height: 100vh;
}
.portal-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header.portal-header {
  display: flex;
  padding: 1rem 2rem;
  align-items: center;
  column-gap: 1rem;
  color: #FFFFFF;
  background-color: #01589B;
}
header.portal-header .brand {
  font-size: 1.1rem;
  font-weight: 700;
}
header.portal-header .spacer {
  flex-grow: 1;
}
header.portal-header .signed-in-as {
  color: #FFFFFF;
  font-size: 0.85rem;
}
header.portal-header button.signout-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.5);
}
main.portal-main {
  padding: 0;
  flex-grow: 1;
}
.portal-loading, .portal-error {
  padding: 2rem;
  color: #637381;
  text-align: center;
}
.portal-error {
  color: #B71C1C;
}
section.exposure-history {
  display: flex;
  padding: 2rem;
  flex-direction: column;
  row-gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
section.exposure-history .page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 0.85rem 1rem;
}
section.exposure-history .page-head-text {
  flex-grow: 1;
  min-width: 260px;
}
section.exposure-history .head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
section.exposure-history button.download-btn, button.change-pwd-btn {
  padding: 0.55rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: opacity 0.15s;
}
section.exposure-history button.download-btn, button.change-pwd-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}
section.exposure-history button.download-btn {
  color: #FFFFFF;
  background-color: #01589B;
}
section.exposure-history button.change-pwd-btn {
  color: #212B36;
  background-color: transparent;
  border: 1px solid #c4d2dd;
}
section.exposure-history h1 {
  margin: 0;
  color: #01589B;
}
section.exposure-history h3 {
  margin-top: 0.5rem;
  color: #212B36;
}
section.exposure-history h4 {
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
  color: #212B36;
  font-size: 0.9rem;
}
section.exposure-history .subtitle {
  margin-top: 0.4rem;
  color: #637381;
  line-height: 1.5;
}
section.exposure-history .empty-state {
  padding: 2rem;
  border-radius: 8px;
  color: #637381;
  text-align: center;
  background-color: #FFFFFF;
}
section.exposure-history .compliance-note {
  padding: 0.85rem;
  border-radius: 6px;
  color: #01579B;
  font-size: 0.85rem;
  background-color: #E3F2FD;
  line-height: 1.5;
}
section.exposure-history article.summary-card {
  display: flex;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0px 1px 2px #0001;
  flex-direction: column;
  row-gap: 0.85rem;
  background-color: #FFFFFF;
}
section.exposure-history article.summary-card .stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
section.exposure-history article.summary-card .stat {
  display: flex;
  width: 180px;
  padding: 0.7rem;
  border-radius: 6px;
  flex-direction: column;
  row-gap: 0.2rem;
  flex-grow: 1;
  background-color: #F4F6F8;
}
section.exposure-history article.summary-card .stat .label {
  color: #637381;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
section.exposure-history article.summary-card .stat .value {
  color: #01589B;
  font-size: 1.4rem;
  font-weight: 700;
}
section.exposure-history article.summary-card .stat.warn .value {
  color: #E65100;
}
section.exposure-history article.summary-card ul.type-list {
  padding-left: 1.25rem;
  margin: 0;
  color: #212B36;
  font-size: 0.9rem;
}
section.exposure-history .event-list {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}
section.exposure-history article.event-card {
  display: flex;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0px 1px 2px #0001;
  flex-direction: column;
  row-gap: 0.6rem;
  background-color: #FFFFFF;
}
section.exposure-history article.event-card .event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
}
section.exposure-history article.event-card .event-type {
  color: #212B36;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: capitalize;
}
section.exposure-history article.event-card .event-agent {
  color: #637381;
  font-size: 0.85rem;
}
section.exposure-history article.event-card .spacer {
  flex-grow: 1;
}
section.exposure-history article.event-card .status-pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
section.exposure-history article.event-card .status-pill.ok {
  color: #2E7D32;
  background-color: #E8F5E9;
}
section.exposure-history article.event-card .status-pill.warn {
  color: #E65100;
  background-color: #FFF3E0;
}
section.exposure-history article.event-card dl.event-meta {
  margin: 0;
  font-size: 0.85rem;
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 0.3rem;
  column-gap: 0.85rem;
}
section.exposure-history article.event-card dl.event-meta dt {
  margin: 0;
  color: #637381;
  font-weight: 500;
}
section.exposure-history article.event-card dl.event-meta dd {
  margin: 0;
  color: #212B36;
}
section.exposure-history article.event-card .event-actions {
  display: flex;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
section.exposure-history article.event-card .event-error {
  padding: 0.45rem 0.7rem;
  margin-top: 0.5rem;
  border-radius: 4px;
  color: #E65100;
  font-size: 0.8rem;
  background-color: #FFF3E0;
}
section.exposure-history article.event-card .redaction-form {
  display: flex;
  padding: 0.85rem;
  margin-top: 0.6rem;
  border-radius: 6px;
  flex-direction: column;
  row-gap: 0.55rem;
  background-color: #F4F6F8;
  border: 1px solid #c4d2dd;
}
section.exposure-history article.event-card .redaction-form h4 {
  margin: 0;
  color: #212B36;
  font-size: 0.95rem;
}
section.exposure-history article.event-card .redaction-form .redaction-help {
  margin: 0;
  color: #637381;
  font-size: 0.8rem;
  line-height: 1.5;
}
section.exposure-history article.event-card .redaction-form label {
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
  color: #212B36;
  font-size: 0.85rem;
  font-weight: 600;
}
section.exposure-history article.event-card .redaction-form textarea {
  padding: 0.55rem;
  border-radius: 4px;
  color: #212B36;
  font-size: 0.9rem;
  background-color: #FFFFFF;
  border: 1px solid #c4d2dd;
  font-family: inherit;
  resize: vertical;
}
section.exposure-history article.event-card .redaction-form .redaction-actions {
  display: flex;
  margin-top: 0.3rem;
  column-gap: 0.5rem;
}
section.exposure-history article.event-card button.action-btn {
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: opacity 0.15s;
}
section.exposure-history article.event-card button.action-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
section.exposure-history article.event-card button.action-btn.primary {
  color: #FFFFFF;
  background-color: #01589B;
}
section.exposure-history article.event-card button.action-btn.ghost {
  color: #212B36;
  background-color: transparent;
  border: 1px solid #CFD8DC;
}
section.sign-in {
  display: flex;
  padding: 2rem;
  justify-content: center;
  align-items: start;
  min-height: 100vh;
}
section.sign-in .card {
  display: flex;
  width: 540px;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0px 1px 3px #0001;
  flex-direction: column;
  row-gap: 0.85rem;
  background-color: #FFFFFF;
  max-width: 100%;
}
section.sign-in .card h1 {
  margin: 0;
  color: #01589B;
  font-size: 1.6rem;
}
section.sign-in .card .subtitle {
  margin: 0;
  color: #637381;
  line-height: 1.5;
}
section.sign-in .card .scaffold-banner {
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  color: #E65100;
  font-size: 0.85rem;
  background-color: #FFF3E0;
  line-height: 1.5;
}
section.sign-in .card .help-text {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  color: #637381;
  font-size: 0.85rem;
  line-height: 1.5;
}
section.sign-in .card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  color: #212B36;
  font-size: 1rem;
}
section.sign-in .card form {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}
section.sign-in .card form label {
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
  color: #212B36;
  font-size: 0.9rem;
  font-weight: 600;
}
section.sign-in .card form input {
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  color: #212B36;
  font-size: 0.95rem;
  background-color: #F4F6F8;
  border: 1px solid #c4d2dd;
  font-family: inherit;
}
section.sign-in .card form input:focus {
  border-color: #01589B;
  outline: 2px solid rgba(1,88,155,0.2);
}
section.sign-in .card form .error {
  padding: 0.6rem;
  border-radius: 4px;
  color: #B71C1C;
  font-size: 0.85rem;
  background-color: #FFEBEE;
}
section.sign-in .card form button.primary {
  padding: 0.6rem 1rem;
  margin-top: 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  background-color: #01589B;
  border: none;
}
section.sign-in .card form button.primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
section.sign-in .card ul.roster {
  padding: 0;
  margin: 0;
  list-style: none;
}
section.sign-in .card li.roster-row {
  display: flex;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.4rem;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  column-gap: 0.85rem;
  background-color: #F4F6F8;
}
section.sign-in .card li.roster-row .roster-name {
  display: flex;
  flex-direction: column;
  row-gap: 0.15rem;
}
section.sign-in .card li.roster-row .roster-rank {
  color: #637381;
  font-size: 0.8rem;
}
section.sign-in .card li.roster-row button.sign-in-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #01589B;
  border: none;
}