:root{
  --navy:#1f3a5f;
  --navy-2:#2d5b7d;
  --surface:#ffffff;
  --page:#f5f7fa;
  --border:#dfe5ec;
  --text:#1f2937;
  --muted:#667085;
  --accent:#2f6f73;
}
body{
  background:var(--page);
  color:var(--text);
}
.navbar{
  background:linear-gradient(90deg,var(--navy),var(--navy-2));
}
.navbar-brand{
  letter-spacing:0;
}
.hero-card{
  background:linear-gradient(135deg, rgba(31,58,95,.97), rgba(47,111,115,.94));
  border-radius:8px;
  color:white;
  box-shadow:0 14px 32px rgba(20,38,67,.16);
}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.78rem;
  opacity:.86;
}
.metric-card,.panel-card,.filter-bar{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:0 6px 18px rgba(27,39,55,.05);
}
.metric-card{
  padding:1rem;
  min-height:108px;
}
.metric-label{
  color:var(--muted);
  font-size:.92rem;
}
.metric-value{
  font-size:2rem;
  font-weight:700;
  margin-top:.35rem;
}
.panel-header{
  font-weight:700;
  padding:1rem 1.25rem;
  border-bottom:1px solid var(--border);
}
.panel-body{
  padding:1rem 1.25rem;
}
.filter-bar{
  padding:1rem;
}
.quick-links{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.quick-links a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:.4rem .7rem;
  border:1px solid var(--border);
  border-radius:6px;
  background:#fff;
  color:#24435f;
  font-weight:600;
}
.table > :not(caption) > * > *{
  padding:.9rem .8rem;
}
.table thead th{
  font-size:.8rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
  border-bottom:1px solid var(--border);
}
.table tbody td{
  border-color:#edf1f5;
}
.form-control,.form-select{
  border-radius:6px;
  border-color:#ccd6e0;
}
.form-control:focus,.form-select:focus{
  box-shadow:0 0 0 .2rem rgba(47,111,115,.13);
  border-color:#4f8f92;
}
.form-text{
  color:var(--muted);
}
.btn{
  border-radius:6px;
  font-weight:600;
}
.nested-form{
  background:#f8fafc;
  border:1px solid #e1e8f0;
  border-radius:8px;
  padding:1rem;
}
.record-summary{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:.75rem;
}
.record-summary div{
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:.85rem;
}
.record-summary span,.fact-row span{
  display:block;
  color:var(--muted);
  font-size:.82rem;
}
.record-summary strong,.fact-row strong{
  display:block;
  margin-top:.15rem;
}
.fact-row{
  border-bottom:1px solid #edf1f5;
  padding:.65rem 0;
}
.subrecord{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  border:1px solid #e3e9f1;
  border-radius:8px;
  padding:.8rem;
  margin-bottom:.65rem;
  background:#fbfcfe;
}
.public-card{
  border:1px solid #e1e8f0;
  border-radius:8px;
  padding:1rem;
  background:#fbfcfe;
  height:100%;
}
.current-roster-card{
  border-color:#cfdce8;
}
.roster-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
}
.roster-card,.empty-roster{
  border:1px solid #e1e8f0;
  border-radius:8px;
  padding:1rem;
  background:#fbfcfe;
  min-height:126px;
}
.roster-card.needs-attention{
  border-color:#f1c9c9;
  background:#fffafa;
}
.roster-person{
  font-size:1.05rem;
  font-weight:700;
  margin:.7rem 0 .25rem;
}
.agendaquick-review-card{
  border-color:#f1c9c9;
  background:#fffdfd;
}
.committee-detail-stack{
  display:flex;
  flex-direction:column;
}
.committee-detail-cards{
  order:1;
}
.body-record-panel{
  order:2;
}
.wizard-steps{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.wizard-steps span{
  border:1px solid var(--border);
  background:#fff;
  border-radius:6px;
  padding:.5rem .75rem;
  color:var(--muted);
  font-weight:600;
}
.wizard-steps span.active{
  background:#24435f;
  color:#fff;
  border-color:#24435f;
}
.wizard-steps span.done{
  background:#e7f3ef;
  color:#1f6b52;
  border-color:#b8d9cf;
}
.review-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
}
.review-grid div{
  border:1px solid var(--border);
  border-radius:8px;
  padding:.8rem;
  background:#fff;
}
.review-grid span{
  display:block;
  color:var(--muted);
  font-size:.82rem;
}
.print-sheet{
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:2rem;
}
a{
  text-decoration:none;
}
code{
  background:#eef2f7;
  color:#30435f;
  border-radius:4px;
  padding:.12rem .35rem;
}
@media (max-width: 992px){
  .record-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .review-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .roster-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 576px){
  .roster-grid{
    grid-template-columns:1fr;
  }
}
@media print{
  nav,.btn,.filter-bar,form[action*="delete"],.quick-links{
    display:none !important;
  }
  body{
    background:white;
  }
  .panel-card,.record-summary div{
    box-shadow:none;
  }
  .print-sheet{
    border:0;
    padding:0;
  }
}
