:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #182026;
  background: #f3f6f7;
}

* { box-sizing: border-box; }
body { margin: 0; }
header {
  min-height: 68px;
  padding: 0 5vw;
  background: #000818;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { color: white; font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.session { display: flex; align-items: center; gap: 1rem; }
.session form { margin: 0; }
main { max-width: 980px; margin: 3rem auto; padding: 0 1.25rem; }
.card {
  background: white;
  border: 1px solid #dce4e7;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(0, 8, 24, .06);
}
.narrow { max-width: 470px; margin: 0 auto; }
.eyebrow { color: #356b62; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.stack { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
input, textarea, select {
  width: 100%;
  padding: .72rem;
  border: 1px solid #aebbc0;
  border-radius: 5px;
  font: inherit;
}
.checkbox { display: flex; grid-template-columns: none; align-items: center; gap: .6rem; }
.checkbox input { width: auto; }
button, .button {
  display: inline-block;
  border: 0;
  border-radius: 5px;
  padding: .75rem 1rem;
  background: #176b5b;
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.secondary { background: #334055; padding: .5rem .8rem; }
.danger { background: #a32929; }
.actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.module {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #ccd9dc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.error, .success { padding: .9rem; border-radius: 5px; margin: 1rem 0; }
.error { background: #fff0f0; color: #8c1f1f; border: 1px solid #e8b5b5; }
.success { background: #edf8f3; color: #145b48; border: 1px solid #afd7c8; }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid #dce4e7; text-align: left; vertical-align: top; }
th { background: #eef3f2; color: #203a36; }
.profile-grid, .section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.profile-grid div, .section-grid article {
  border: 1px solid #dce4e7;
  border-radius: 6px;
  padding: 1rem;
  background: #fafcfc;
}
.profile-grid dt { color: #536267; font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.profile-grid dd { margin: .35rem 0 0; font-weight: 600; }
.section-grid h3 { margin-top: 0; }
.empty-state {
  margin: 1rem 0 2rem;
  padding: 1rem;
  border: 1px dashed #aebbc0;
  border-radius: 6px;
  color: #536267;
  background: #fafcfc;
}
.matrix-expired td, .matrix-missing td { background: #fff3f0; }
.matrix-expired strong, .matrix-missing strong { color: #9b2d20; }
.matrix-current strong { color: #176b5b; }
.shift-planned td, .shift-pending td { background: #fff9e8; }
.shift-planned strong, .shift-pending strong { color: #7a5a00; }
.shift-completed strong { color: #176b5b; }
.competency-pending td, .competency-not-satisfied td { background: #fff9e8; }
.competency-pending strong, .competency-not-satisfied strong { color: #7a5a00; }
.competency-signed-off strong { color: #176b5b; }
.evidence-expired td, .evidence-missing td { background: #fff3f0; }
.evidence-expired strong, .evidence-missing strong { color: #9b2d20; }
.evidence-current strong { color: #176b5b; }
.certificate-draft td, .certificate-expired td { background: #fff9e8; }
.certificate-draft strong, .certificate-expired strong { color: #7a5a00; }
.certificate-current strong { color: #176b5b; }
.overview-grid article { min-height: 142px; }
.eligibility-eligible strong { color: #176b5b; }
.eligibility-ineligible td { background: #fff9e8; }
.eligibility-ineligible strong { color: #8c4c00; }
.compact-list { margin: 0; padding-left: 1.15rem; }
.compact-list li + li { margin-top: .3rem; }
.muted { color: #66767b; }
@media (max-width: 700px) {
  header, .module { align-items: flex-start; flex-direction: column; }
  header { padding-top: 1rem; padding-bottom: 1rem; }
}
