:root {
  --bhkh-ink: #21312f;
  --bhkh-muted: #687876;
  --bhkh-line: #dbe4e1;
  --bhkh-canvas: #f3f7f6;
  --bhkh-surface: #ffffff;
  --bhkh-green: #2f6b58;
  --bhkh-green-dark: #204d40;
  --bhkh-blue: #477691;
  --bhkh-gold: #c58a2b;
  --bhkh-coral: #b85f50;
  --bhkh-soft-green: #eaf3ef;
  --bhkh-soft-blue: #eaf1f5;
  --bhkh-soft-gold: #f8f0df;
  --bhkh-soft-coral: #f7ebe8;
  --bhkh-shadow: 0 8px 24px rgba(39, 65, 60, .07);
}

html {
  font-size: 15px;
  min-height: 100%;
}

body {
  background: var(--bhkh-canvas);
  color: var(--bhkh-ink);
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--bhkh-green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bhkh-green-dark);
}

.app-container {
  max-width: 1180px;
}

.app-main {
  min-height: calc(100vh - 142px);
  padding-bottom: 3.5rem;
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--bhkh-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .navbar {
  min-height: 68px;
  padding: .55rem 0;
}

.brand {
  align-items: center;
  color: var(--bhkh-ink);
  display: inline-flex;
  gap: .75rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--bhkh-ink);
}

.brand-mark {
  background: var(--bhkh-green-dark);
  border-radius: 7px;
  display: grid;
  flex: 0 0 36px;
  gap: 3px;
  grid-template-columns: repeat(2, 1fr);
  height: 36px;
  padding: 7px;
  width: 36px;
}

.brand-mark span {
  background: #fff;
  border-radius: 2px;
}

.brand-mark span:nth-child(2) {
  background: #e7c577;
}

.brand-mark span:nth-child(3) {
  background: #8db2c3;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-copy small {
  color: var(--bhkh-muted);
  font-size: .7rem;
  margin-top: .25rem;
}

.site-nav {
  align-items: center;
  gap: .45rem;
}

.site-nav .nav-link {
  border-radius: 6px;
  color: #4c5d5a;
  font-size: .9rem;
  font-weight: 650;
  padding: .65rem .8rem;
}

.site-nav .nav-link:hover {
  background: #f1f5f4;
  color: var(--bhkh-green-dark);
}

.site-nav .nav-link.active {
  background: var(--bhkh-soft-green);
  color: var(--bhkh-green-dark);
}

.site-nav button.nav-link {
  background-color: transparent;
  border: 0;
}

.site-nav .dropdown-menu {
  border-color: var(--bhkh-line);
  border-radius: 6px;
  box-shadow: var(--bhkh-shadow);
  font-size: .86rem;
  padding: .4rem;
}

.site-nav .dropdown-item {
  border-radius: 4px;
  padding: .55rem .7rem;
}

.site-nav .dropdown-item:active,
.site-nav .dropdown-item:hover {
  background: var(--bhkh-soft-green);
  color: var(--bhkh-green-dark);
}

.account-email {
  color: var(--bhkh-muted);
  font-size: .73rem;
  max-width: 17rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-toggler {
  border-color: var(--bhkh-line);
  border-radius: 6px;
}

.workspace-header {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 3rem 0 1.75rem;
}

.workspace-header h1 {
  font-size: 2.55rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.dashboard-header {
  border-bottom: 1px solid var(--bhkh-line);
  margin-bottom: 1.5rem;
  padding-bottom: 2rem;
}

.eyebrow {
  color: var(--bhkh-coral);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 .65rem;
  text-transform: uppercase;
}

.lede {
  color: var(--bhkh-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: .8rem 0 0;
  max-width: 42rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.btn {
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 700;
  min-height: 42px;
  padding: .6rem 1rem;
}

.btn-primary {
  background: var(--bhkh-green);
  border-color: var(--bhkh-green);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--bhkh-green-dark);
  border-color: var(--bhkh-green-dark);
}

.btn-secondary {
  background: var(--bhkh-surface);
  border-color: #b8c7c3;
  color: var(--bhkh-green-dark);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--bhkh-soft-green);
  border-color: #91aaa2;
  color: var(--bhkh-green-dark);
}

.coming-soon-label {
  font-size: 1.25rem !important;
  line-height: 1.2;
}

.account-shell {
  display: grid;
  min-height: calc(100vh - 200px);
  padding: 3.5rem 0;
  place-items: center;
}

.account-panel {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  max-width: 31rem;
  padding: 2.25rem;
  width: 100%;
}

.account-panel h1 {
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0;
}

.account-intro {
  color: var(--bhkh-muted);
  line-height: 1.55;
  margin: .75rem 0 1.5rem;
}

.account-form {
  display: grid;
  gap: 1rem;
}

.account-form label:not(.form-check-label) {
  color: #40524f;
  display: block;
  font-size: .8rem;
  font-weight: 750;
  margin-bottom: .4rem;
}

.account-form .text-danger:empty {
  display: none;
}

.account-submit {
  margin-top: .25rem;
  width: 100%;
}

.account-divider {
  align-items: center;
  color: var(--bhkh-muted);
  display: flex;
  font-size: .72rem;
  gap: .75rem;
  margin: 1.25rem 0;
  text-transform: uppercase;
}

.account-divider::before,
.account-divider::after {
  background: var(--bhkh-line);
  content: "";
  flex: 1;
  height: 1px;
}

.demo-tour-button {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.demo-login-note {
  color: var(--bhkh-muted);
  font-size: .74rem;
  line-height: 1.5;
  margin: .75rem 0 0;
  text-align: center;
}

.demo-mode-bar {
  background: var(--bhkh-soft-gold);
  border-bottom: 1px solid #e7d4a9;
  color: #654d23;
}

.demo-mode-content {
  align-items: center;
  display: flex;
  gap: .7rem;
  min-height: 36px;
}

.demo-mode-content strong {
  font-size: .72rem;
  text-transform: uppercase;
}

.demo-mode-content span {
  font-size: .76rem;
}

.demo-mode-content a {
  color: #654d23;
  font-size: .74rem;
  font-weight: 750;
  margin-left: auto;
}

.demo-exit-link {
  border: 1px solid var(--bhkh-line);
}

.metric-grid,
.work-grid,
.form-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.dashboard-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  padding-top: 2rem;
}

.demo-dashboard-toolbar {
  align-items: end;
  justify-content: space-between;
  padding-top: 2.5rem;
}

.demo-dashboard-toolbar h1 {
  font-size: 2.35rem;
  font-weight: 760;
  line-height: 1.08;
  margin: 0;
}

.metric-grid-personal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-grid-personal {
  grid-template-columns: minmax(0, 1fr);
}

.form-grid {
  align-items: start;
  grid-template-columns: minmax(25rem, 31rem) minmax(0, 1fr);
}

.schedule-admin-grid {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
}

.schedule-admin-sidebar,
.schedule-editor,
.meeting-schedule-stack {
  display: grid;
  gap: 1rem;
}

.schedule-admin-sidebar .form-panel {
  position: static;
}

.schedule-create-panel {
  border-top: 3px solid var(--bhkh-green);
}

.schedule-picker {
  box-shadow: none;
}

.schedule-editor-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 5rem;
}

.schedule-editor-heading h2 {
  font-size: 1.45rem;
  font-weight: 760;
  margin: 0;
}

.schedule-editor-heading p:not(.eyebrow) {
  color: var(--bhkh-muted);
  margin: .35rem 0 0;
}

.schedule-editor-panel {
  scroll-margin-top: 88px;
}

.schedule-admin-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.schedule-admin-list li {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: .65rem 0;
}

.schedule-admin-list li > div {
  min-width: 0;
}

.schedule-admin-list strong,
.schedule-admin-list small {
  display: block;
}

.schedule-admin-list strong {
  font-size: .9rem;
  margin-top: .25rem;
}

.schedule-admin-list small {
  color: var(--bhkh-muted);
  font-size: .76rem;
  margin-top: .15rem;
}

.schedule-section-tag {
  color: var(--bhkh-muted);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-inline-form {
  align-items: end;
  background: #f8faf9;
  border-top: 1px solid var(--bhkh-line);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(9rem, .8fr) minmax(11rem, 1.3fr) minmax(10rem, 1fr);
  margin: 1rem -1.1rem -1.1rem;
  padding: 1rem 1.1rem;
}

.schedule-inline-form > div,
.schedule-inline-form .btn {
  min-width: 0;
}

.schedule-inline-form .btn {
  justify-self: start;
}

.schedule-duty-form {
  grid-template-columns: minmax(12rem, 1.3fr) minmax(11rem, 1fr) auto;
}

.dashboard-schedules {
  margin-top: 2rem;
}

.schedule-section-heading {
  margin-bottom: 1rem;
}

.meeting-schedule {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  overflow: hidden;
}

.meeting-schedule-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.meeting-schedule-header > div {
  min-width: 0;
}

.meeting-schedule-header span {
  color: var(--bhkh-muted);
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-schedule-header h3 {
  font-size: 1.15rem;
  font-weight: 760;
  margin: .2rem 0 0;
}

.meeting-schedule-header p {
  color: var(--bhkh-muted);
  font-size: .8rem;
  margin: .25rem 0 0;
}

.meeting-band-section {
  margin: 0;
}

.meeting-band {
  background: var(--bhkh-green);
  color: #fff;
  font-size: .78rem;
  font-weight: 760;
  margin: 0;
  min-height: 2rem;
  padding: .45rem 1.1rem;
}

.meeting-band-treasures {
  background: #3f7d89;
}

.meeting-band-applyyourself {
  background: var(--bhkh-gold);
}

.meeting-band-livingaschristians {
  background: var(--bhkh-coral);
}

.meeting-band-weekend {
  background: var(--bhkh-blue);
}

.meeting-band-duties {
  background: var(--bhkh-green);
}

.meeting-row {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: grid;
  gap: .75rem 1rem;
  grid-template-columns: minmax(12rem, 1.15fr) minmax(11rem, 1fr) auto;
  min-height: 3.8rem;
  padding: .7rem 1.1rem;
  position: relative;
}

.meeting-row:last-child {
  border-bottom: 0;
}

.meeting-part-title,
.meeting-assignees {
  min-width: 0;
}

.meeting-part-title strong,
.meeting-assignees span {
  display: block;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.meeting-part-title small,
.meeting-assignees small {
  color: var(--bhkh-muted);
  display: block;
  font-size: .72rem;
  margin-top: .15rem;
  overflow-wrap: anywhere;
}

.current-publisher-assignment {
  background: var(--bhkh-soft-gold);
  box-shadow: inset 4px 0 0 var(--bhkh-gold);
}

.your-assignment-mark {
  background: #fff8e8;
  border: 1px solid #ead4a5;
  border-radius: 999px;
  color: #795417;
  font-size: .65rem;
  font-weight: 800;
  padding: .25rem .5rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.fsg-admin-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
}

.fsg-create-panel {
  position: sticky;
  top: 88px;
}

.fsg-group-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fsg-card {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  overflow: hidden;
}

.fsg-card-heading {
  align-items: center;
  border-bottom: 1px solid var(--bhkh-line);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  min-height: 54px;
  padding: .85rem 1rem;
}

.fsg-card-heading h2 {
  font-size: 1rem;
  font-weight: 760;
  margin: 0;
}

.fsg-leadership {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 1rem;
}

.fsg-leadership dt,
.fsg-publishers h3 {
  color: var(--bhkh-muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fsg-leadership dd {
  font-size: .84rem;
  font-weight: 700;
  margin: .25rem 0 0;
}

.fsg-publishers {
  border-top: 1px solid #edf1f0;
  padding: 1rem;
}

.fsg-publishers h3 {
  margin: 0 0 .65rem;
}

.fsg-publishers ul {
  display: grid;
  gap: .4rem .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.fsg-publishers li {
  min-width: 0;
}

.fsg-publishers a {
  display: block;
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card,
.work-panel,
.form-panel {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
}

.metric-card {
  border-top: 3px solid var(--bhkh-green);
  min-height: 8rem;
  padding: 1rem 1.1rem;
}

a.metric-card {
  color: var(--bhkh-ink);
  display: block;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a.metric-card:hover,
a.metric-card:focus-visible {
  box-shadow: 0 12px 28px rgba(39, 65, 60, .13);
  color: var(--bhkh-ink);
  transform: translateY(-1px);
}

a.metric-card:focus-visible {
  outline: 3px solid rgba(47, 107, 88, .24);
  outline-offset: 3px;
}

.metric-card.metric-hours {
  border-top-color: var(--bhkh-gold);
}

.metric-card.metric-parts {
  border-top-color: var(--bhkh-blue);
}

.metric-card.metric-assignments {
  border-top-color: var(--bhkh-green);
}

.metric-card.metric-territories {
  border-top-color: var(--bhkh-coral);
}

.personal-assignment-card {
  border-top: 3px solid var(--bhkh-green);
  min-height: 9rem;
  padding: 1rem 1.1rem;
}

.personal-assignment-card .metric-mark {
  background: var(--bhkh-soft-green);
  color: var(--bhkh-green-dark);
}

.personal-assignment-card > .empty-state {
  margin-top: 1.15rem;
}

.reporting-as {
  background: var(--bhkh-soft-green);
  border: 1px solid #c9ddd5;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: .75rem .85rem;
}

.reporting-as span {
  color: var(--bhkh-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reporting-as strong {
  font-size: .92rem;
  margin-top: .15rem;
}

.ministry-activity-row {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(8rem, .65fr);
  margin-bottom: 1rem;
}

.ministry-participation-option {
  align-items: center;
  background: #f8faf9;
  border: 1px solid var(--bhkh-line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font-size: .84rem;
  font-weight: 700;
  gap: .65rem;
  min-height: 42px;
  padding: .65rem .75rem;
}

.ministry-participation-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.ministry-hours-field {
  min-width: 0;
}

.field-label-row {
  align-items: baseline;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
}

.field-label-row > span {
  color: var(--bhkh-muted);
  font-size: .68rem;
  font-weight: 650;
}

.ministry-secondary-field {
  margin-bottom: 1rem;
  max-width: 12rem;
}

.fsg-report-status {
  margin-bottom: 1rem;
}

.fsg-report-card {
  border-top: 3px solid var(--bhkh-green);
}

.fsg-report-heading > div {
  min-width: 0;
}

.fsg-report-heading small {
  color: var(--bhkh-muted);
  display: block;
  font-size: .74rem;
  margin-top: .15rem;
}

.fsg-report-columns {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fsg-report-columns > section {
  min-width: 0;
}

.fsg-report-column-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.fsg-report-column-heading h3 {
  font-size: .84rem;
  font-weight: 760;
  margin: 0;
}

.fsg-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fsg-report-list li {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: flex;
  font-size: .86rem;
  gap: .55rem;
  min-height: 2.35rem;
}

.fsg-report-list li:last-child {
  border-bottom: 0;
}

.fsg-report-list li > span {
  background: var(--bhkh-green);
  border-radius: 50%;
  flex: 0 0 .5rem;
  height: .5rem;
  width: .5rem;
}

.fsg-report-list.outstanding li > span {
  background: var(--bhkh-gold);
}

.metric-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.metric-heading > span:first-child {
  color: var(--bhkh-muted);
  font-size: .84rem;
  font-weight: 700;
}

.metric-mark {
  align-items: center;
  background: var(--bhkh-soft-green);
  border-radius: 50%;
  color: var(--bhkh-green-dark);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.metric-hours .metric-mark {
  background: var(--bhkh-soft-gold);
  color: #80570e;
}

.metric-parts .metric-mark {
  background: var(--bhkh-soft-blue);
  color: #315b73;
}

.metric-assignments .metric-mark {
  background: var(--bhkh-soft-green);
  color: var(--bhkh-green-dark);
}

.metric-territories .metric-mark {
  background: var(--bhkh-soft-coral);
  color: #8b463a;
}

.metric-card strong {
  display: block;
  font-size: 2.45rem;
  font-weight: 760;
  line-height: 1;
  margin-top: .75rem;
}

.assignment-page-header {
  padding-bottom: 1.25rem;
}

.meeting-stepper {
  align-items: center;
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px 8px 0 0;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  min-height: 5.5rem;
  padding: .8rem 1rem;
}

.meeting-stepper-button {
  align-items: center;
  background: var(--bhkh-green);
  border: 1px solid var(--bhkh-green);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 800;
  height: 2.75rem;
  justify-content: center;
  text-decoration: none;
  width: 2.75rem;
}

.meeting-stepper-button:hover,
.meeting-stepper-button:focus-visible {
  background: var(--bhkh-green-dark);
  color: #fff;
}

.meeting-stepper-button:focus-visible {
  outline: 3px solid rgba(47, 107, 88, .24);
  outline-offset: 2px;
}

.meeting-stepper-button.disabled {
  background: #edf1f0;
  border-color: #edf1f0;
  color: #9aa6a4;
}

.meeting-stepper-date {
  min-width: 0;
  padding: 0 1rem;
  text-align: center;
}

.meeting-stepper-date span {
  color: var(--bhkh-muted);
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-stepper-date strong {
  display: block;
  font-size: 1.05rem;
  margin-top: .2rem;
  overflow-wrap: anywhere;
}

.personal-assignment-list {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 0 0 8px 8px;
  border-top: 0;
  box-shadow: var(--bhkh-shadow);
  overflow: hidden;
}

.personal-assignment-list > .empty-state {
  padding: 1.35rem 1.1rem;
}

.personal-assignment-row {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 4.8rem;
  padding: .8rem 1.1rem;
}

.personal-assignment-row:last-child {
  border-bottom: 0;
}

.personal-assignment-row > div {
  min-width: 0;
}

.personal-assignment-section {
  color: var(--bhkh-coral);
  display: block;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.personal-duty-row .personal-assignment-section {
  color: var(--bhkh-green);
}

.personal-assignment-row strong,
.personal-assignment-row small {
  display: block;
}

.personal-assignment-row strong {
  font-size: .94rem;
  margin-top: .2rem;
  overflow-wrap: anywhere;
}

.personal-assignment-row small {
  color: var(--bhkh-muted);
  font-size: .74rem;
  margin-top: .15rem;
}

.personal-assignment-role {
  background: var(--bhkh-soft-blue);
  border-radius: 999px;
  color: #315b73;
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  padding: .3rem .6rem;
  text-transform: uppercase;
}

.personal-duty-row .personal-assignment-role {
  background: var(--bhkh-soft-green);
  color: var(--bhkh-green-dark);
}

.logs-header {
  padding-bottom: 1.25rem;
}

.log-summary {
  display: inline-grid;
  gap: .35rem;
  grid-template-columns: repeat(2, minmax(8rem, 1fr));
  margin-bottom: 1rem;
}

.log-summary-item {
  align-items: center;
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 6px;
  color: var(--bhkh-muted);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 3rem;
  padding: .6rem .8rem;
  text-decoration: none;
}

.log-summary-item:hover,
.log-summary-item:focus-visible,
.log-summary-item.active {
  background: var(--bhkh-soft-green);
  border-color: #b8d1c8;
  color: var(--bhkh-green-dark);
}

.log-summary-item span {
  font-size: .8rem;
  font-weight: 760;
}

.log-summary-item strong {
  font-size: 1rem;
}

.log-search-form {
  align-items: end;
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(16rem, 1fr) auto auto;
  padding: 1rem;
}

.log-results-heading {
  align-items: center;
  color: var(--bhkh-muted);
  display: flex;
  font-size: .74rem;
  font-weight: 700;
  justify-content: space-between;
  min-height: 3rem;
  padding: .55rem .25rem;
}

.log-list {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  overflow: hidden;
}

.log-list > .empty-state {
  padding: 1.25rem;
}

.audit-log-row {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 12rem minmax(14rem, 1fr) minmax(10rem, .7fr);
  min-height: 4.5rem;
  padding: .7rem 1rem;
}

.audit-log-row:last-child,
.error-log-row:last-child {
  border-bottom: 0;
}

.audit-log-row time,
.audit-log-row small,
.audit-log-actor small {
  color: var(--bhkh-muted);
  font-size: .7rem;
}

.audit-log-summary,
.audit-log-actor {
  min-width: 0;
}

.audit-log-summary strong,
.audit-log-summary small,
.audit-log-actor strong,
.audit-log-actor small {
  display: block;
  overflow-wrap: anywhere;
}

.audit-log-summary strong,
.audit-log-actor strong {
  font-size: .82rem;
}

.audit-log-summary small,
.audit-log-actor small {
  margin-top: .15rem;
}

.error-log-row {
  border-bottom: 1px solid #edf1f0;
  padding: 1rem;
}

.error-log-row > header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.error-log-row > header > div {
  align-items: center;
  display: flex;
  gap: .6rem;
  min-width: 0;
}

.error-log-row > header strong {
  font-size: .9rem;
}

.error-log-row time {
  color: var(--bhkh-muted);
  flex: 0 0 auto;
  font-size: .7rem;
}

.error-level {
  background: var(--bhkh-soft-coral);
  border-radius: 999px;
  color: #8b463a;
  font-size: .65rem;
  font-weight: 800;
  padding: .25rem .5rem;
  text-transform: uppercase;
}

.error-log-row > p {
  font-size: .84rem;
  margin: .75rem 0;
}

.error-log-meta {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.error-log-meta > div {
  min-width: 0;
}

.error-log-meta dt {
  color: var(--bhkh-muted);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.error-log-meta dd {
  font-size: .72rem;
  margin: .15rem 0 0;
  overflow-wrap: anywhere;
}

.error-log-details {
  border-top: 1px solid #edf1f0;
  margin-top: .85rem;
  padding-top: .75rem;
}

.error-log-details summary {
  color: var(--bhkh-green);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 760;
}

.error-log-details > strong,
.error-log-details > p {
  display: block;
  font-size: .76rem;
  margin: .7rem 0 0;
}

.error-log-details pre {
  background: #f5f7f6;
  border: 1px solid var(--bhkh-line);
  border-radius: 6px;
  font-size: .68rem;
  margin: .75rem 0 0;
  max-height: 24rem;
  overflow: auto;
  padding: .75rem;
  white-space: pre-wrap;
}

.log-pagination {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin-top: 1rem;
}

.log-pagination span {
  color: var(--bhkh-muted);
  font-size: .74rem;
  font-weight: 700;
}

.demo-profile-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(20rem, .85fr) minmax(0, 1.15fr);
}

.demo-detail-list {
  margin: 0;
}

.demo-detail-list > div {
  border-bottom: 1px solid #edf1f0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 9rem minmax(0, 1fr);
  padding: .8rem 1rem;
}

.demo-detail-list > div:last-child {
  border-bottom: 0;
}

.demo-detail-list dt {
  color: var(--bhkh-muted);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-detail-list dd {
  font-size: .82rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-role-list {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem;
}

.demo-role-list span {
  background: var(--bhkh-soft-green);
  border: 1px solid #c5d9d2;
  border-radius: 6px;
  color: var(--bhkh-green-dark);
  font-size: .78rem;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: .7rem .75rem;
}

.demo-submit-message[hidden] {
  display: none;
}

.reporting-header {
  align-items: end;
}

.comparison-period-form {
  display: grid;
  gap: .35rem;
  min-width: 10rem;
}

.comparison-period-form label {
  color: var(--bhkh-muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reporting-baseline-note {
  align-items: center;
  background: var(--bhkh-soft-blue);
  border-left: 3px solid var(--bhkh-blue);
  color: #3e6175;
  display: flex;
  font-size: .78rem;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
}

.report-metric-band {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
}

.report-metric-group {
  min-width: 0;
  padding: 1rem 1.15rem;
}

.report-metric-group + .report-metric-group {
  border-left: 1px solid var(--bhkh-line);
}

.report-metric-group h2 {
  color: var(--bhkh-coral);
  font-size: .72rem;
  font-weight: 800;
  margin: 0 0 .65rem;
  text-transform: uppercase;
}

.report-metric-group dl {
  margin: 0;
}

.report-metric-group dl > div {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 2.25rem;
}

.report-metric-group dl > div:last-child {
  border-bottom: 0;
}

.report-metric-group dt {
  font-size: .78rem;
  font-weight: 620;
}

.report-metric-group dd {
  align-items: baseline;
  display: flex;
  flex: 0 0 auto;
  gap: .35rem;
  margin: 0;
}

.report-metric-group dd strong {
  font-size: .9rem;
}

.report-metric-group dd span,
.report-metric-group dd small {
  color: var(--bhkh-muted);
  font-size: .68rem;
}

.report-delta.increase {
  color: var(--bhkh-green) !important;
}

.report-delta.decrease {
  color: var(--bhkh-coral) !important;
}

.report-chart-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-chart-panel {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  min-width: 0;
  padding: 1.15rem;
}

.report-chart-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.report-chart-heading h2 {
  font-size: 1.05rem;
  font-weight: 760;
  margin: 0;
}

.report-chart-heading > span {
  color: var(--bhkh-muted);
  font-size: .7rem;
  font-weight: 700;
}

.age-chart {
  display: grid;
  gap: .5rem;
}

.age-chart-row {
  align-items: center;
  display: grid;
  gap: .6rem;
  grid-template-columns: 3.2rem minmax(0, 1fr) 2rem;
}

.age-chart-row > span,
.age-chart-row > strong {
  font-size: .7rem;
}

.age-chart-row > strong {
  text-align: right;
}

.age-chart-track {
  background: #edf2f0;
  border-radius: 3px;
  height: 1.1rem;
  overflow: hidden;
}

.age-chart-bar {
  background: var(--bhkh-blue);
  height: 100%;
  min-width: 0;
}

.household-chart-layout {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(10rem, .8fr) minmax(13rem, 1.2fr);
}

.household-donut {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  margin: 0 auto;
  max-width: 13rem;
  place-items: center;
  width: 100%;
}

.household-donut > div {
  align-items: center;
  aspect-ratio: 1;
  background: var(--bhkh-surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 58%;
}

.household-donut strong {
  font-size: 1.45rem;
}

.household-donut span {
  color: var(--bhkh-muted);
  font-size: .65rem;
}

.household-legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.household-legend li {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: grid;
  gap: .5rem;
  grid-template-columns: .7rem minmax(0, 1fr) 2rem 2.5rem;
  min-height: 2rem;
}

.household-legend li:last-child {
  border-bottom: 0;
}

.household-swatch {
  border-radius: 2px;
  height: .7rem;
  width: .7rem;
}

.household-legend li > span:not(.household-swatch),
.household-legend strong,
.household-legend small {
  font-size: .7rem;
}

.household-legend strong,
.household-legend small {
  text-align: right;
}

.household-legend small {
  color: var(--bhkh-muted);
}

.error-page {
  margin: 0 auto;
  max-width: 38rem;
  padding: 5rem 0;
}

.error-page h1 {
  font-size: 2.4rem;
  font-weight: 760;
  margin: 0;
}

.error-page > p:not(.eyebrow) {
  color: var(--bhkh-muted);
  line-height: 1.6;
  margin: 1rem 0;
}

.error-reference {
  background: var(--bhkh-soft-coral);
  border-left: 3px solid var(--bhkh-coral);
  margin: 1.25rem 0;
  padding: .8rem 1rem;
}

.error-reference span,
.error-reference code {
  display: block;
}

.error-reference span {
  color: #8b463a;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.error-reference code {
  color: var(--bhkh-ink);
  font-size: .76rem;
  margin-top: .3rem;
  overflow-wrap: anywhere;
}

.metric-card small {
  color: var(--bhkh-muted);
  display: block;
  font-size: .76rem;
  margin-top: .35rem;
}

.work-panel,
.form-panel {
  overflow: hidden;
  padding: 1.1rem;
}

.form-panel {
  position: sticky;
  top: 88px;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--bhkh-line);
  display: flex;
  justify-content: space-between;
  margin: -1.1rem -1.1rem 1.1rem;
  min-height: 52px;
  padding: .85rem 1.1rem;
}

.panel-heading h2 {
  font-size: .98rem;
  font-weight: 760;
  margin: 0;
}

.panel-heading a {
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

.empty-state {
  color: var(--bhkh-muted);
  margin: 0;
  padding: .4rem 0;
}

.timeline-list,
.data-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li,
.data-list li {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  display: flex;
  gap: 1rem;
  min-height: 58px;
  padding: .75rem 0;
}

.timeline-list li:last-child,
.data-list li:last-child {
  border-bottom: 0;
}

.timeline-list span {
  color: var(--bhkh-muted);
  flex: 0 0 5.5rem;
  font-size: .82rem;
  font-weight: 650;
}

.timeline-list strong,
.data-list strong {
  font-size: .91rem;
}

.timeline-list small,
.data-list small {
  color: var(--bhkh-muted);
  display: block;
  line-height: 1.45;
  margin-top: .15rem;
}

.status-pill {
  background: var(--bhkh-soft-green);
  border-radius: 999px;
  color: var(--bhkh-green-dark);
  display: inline-block;
  font-size: .72rem;
  font-weight: 750;
  padding: .3rem .6rem;
}

.status-pending {
  background: var(--bhkh-soft-gold);
  color: #795417;
}

.status-muted {
  background: #edf1f0;
  color: var(--bhkh-muted);
}

.publisher-summary {
  flex: 1 1 auto;
  min-width: 0;
}

.publisher-account-status {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: .3rem;
}

.publisher-account-status .btn-link {
  color: var(--bhkh-green);
  font-size: .74rem;
  min-height: auto;
  padding: 0;
}

.publisher-directory-header {
  padding-bottom: 1.35rem;
}

.publisher-directory {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  overflow: hidden;
}

.publisher-directory-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--bhkh-line);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(16rem, 1fr) minmax(9rem, .4fr) minmax(10rem, .45fr) auto auto;
  padding: 1rem 1.1rem;
}

.publisher-search-field {
  min-width: 0;
  width: 100%;
}

.publisher-search-field label,
.publisher-filter-field label {
  color: #40524f;
  display: block;
  font-size: .76rem;
  font-weight: 750;
  margin-bottom: .35rem;
}

.publisher-filter-field {
  min-width: 0;
}

.publisher-filter-reset {
  min-height: 42px;
}

.publisher-directory-columns,
.publisher-directory-item {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(14rem, 1.3fr) minmax(8rem, .7fr) minmax(9rem, .7fr) 8rem;
}

.publisher-directory-columns {
  background: #f7faf9;
  border-bottom: 1px solid var(--bhkh-line);
  padding: 0 1.1rem;
}

.publisher-directory-columns > div,
.publisher-action-heading {
  min-width: 0;
}

.publisher-directory-columns button,
.publisher-action-heading {
  color: #40524f;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.publisher-directory-columns button {
  background: transparent;
  border: 0;
  padding: .75rem 0;
  text-align: left;
  width: 100%;
}

.publisher-directory-columns button:hover,
.publisher-directory-columns button:focus-visible {
  color: var(--bhkh-green);
}

.publisher-directory-columns button:focus-visible {
  outline: 2px solid var(--bhkh-coral);
  outline-offset: -2px;
}

[data-sort-indicator] {
  color: var(--bhkh-coral);
  font-size: .64rem;
  margin-left: .25rem;
}

.publisher-action-heading {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.publisher-directory-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.publisher-directory-item {
  align-items: center;
  border-bottom: 1px solid #edf1f0;
  min-height: 60px;
  padding: 0 1.1rem;
  position: relative;
}

.publisher-directory-item:last-child {
  border-bottom: 0;
}

.publisher-directory-item:hover {
  background: #f7faf9;
}

.publisher-directory-link {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.publisher-directory-item:has(.publisher-directory-link:focus-visible) {
  outline: 2px solid var(--bhkh-coral);
  outline-offset: -3px;
}

.publisher-directory-cell,
.publisher-directory-action {
  min-width: 0;
  padding: .8rem 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.publisher-name-cell strong,
.publisher-email-cell {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-name-cell strong {
  font-size: .9rem;
}

.publisher-email-cell,
.publisher-directory-cell:not(.publisher-name-cell) {
  color: var(--bhkh-muted);
  font-size: .76rem;
}

.publisher-directory-action {
  pointer-events: auto;
  text-align: right;
}

.publisher-directory-action .btn-link {
  color: var(--bhkh-green);
  font-size: .72rem;
  min-height: auto;
  padding: .25rem;
}

.publisher-directory-empty,
.publisher-search-empty {
  padding: 1.35rem;
}

.profile-form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.validation-summary {
  margin-top: 1rem;
}

.create-publisher-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(20rem, .75fr) minmax(0, 1.25fr);
}

.create-publisher-details,
.create-publisher-roles {
  border-bottom: 0;
}

.create-publisher-roles legend {
  margin-top: 1.35rem;
}

.create-qualification-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}

.import-upload-panel {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  margin-bottom: 1rem;
  padding: 1.1rem;
}

.import-upload-form {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.import-upload-form small {
  color: var(--bhkh-muted);
  display: block;
  font-size: .72rem;
  margin-top: .35rem;
}

.import-review-panel {
  margin-top: 1rem;
}

.import-review-table {
  font-size: .78rem;
  margin-bottom: 0;
}

.import-review-table th {
  color: var(--bhkh-muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.import-review-table td {
  border-color: #edf1f0;
  padding: .8rem .6rem;
}

.import-review-table strong,
.import-review-table small {
  display: block;
}

.import-review-table small {
  color: var(--bhkh-muted);
  margin-top: .2rem;
}

.import-error-list {
  color: #9b4035;
  font-size: .72rem;
  margin: 0;
  padding-left: 1rem;
}

.import-confirm-bar {
  align-items: center;
  border-top: 1px solid var(--bhkh-line);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin: 1rem -1.1rem -1.1rem;
  padding: 1rem 1.1rem;
}

.form-label {
  color: #40524f;
  font-size: .8rem;
  font-weight: 750;
  margin-bottom: .4rem;
}

.form-control,
.form-select {
  border-color: #cbd7d4;
  border-radius: 6px;
  color: var(--bhkh-ink);
  min-height: 42px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #6b9789;
  box-shadow: 0 0 0 .2rem rgba(47, 107, 88, .13);
}

.form-check-input:checked {
  background-color: var(--bhkh-green);
  border-color: var(--bhkh-green);
}

.role-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.role-fieldset legend {
  color: #40524f;
  float: none;
  font-size: .8rem;
  font-weight: 750;
  margin-bottom: .5rem;
  width: auto;
}

.role-selector {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-option {
  align-items: flex-start;
  background: #fbfcfc;
  border: 1px solid #d4dfdc;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font-size: .78rem;
  font-weight: 650;
  gap: .5rem;
  line-height: 1.3;
  min-height: 42px;
  padding: .62rem .65rem;
}

.role-option:hover {
  background: #f3f8f6;
  border-color: #aabfba;
}

.role-option:has(input:checked) {
  background: var(--bhkh-soft-green);
  border-color: #7da397;
  color: var(--bhkh-green-dark);
}

.role-option .form-check-input {
  flex: 0 0 auto;
  margin: .05rem 0 0;
}

.role-validation {
  display: block;
  font-size: .76rem;
  margin-top: .45rem;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .5rem;
}

.role-tags span {
  background: var(--bhkh-soft-blue);
  border-radius: 4px;
  color: #315b73;
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .4rem;
}

.profile-header {
  align-items: flex-end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 2.75rem 0 1.35rem;
}

.profile-header h1 {
  font-size: 2.2rem;
  font-weight: 760;
  line-height: 1.12;
  margin: 0;
}

.profile-header .lede {
  font-size: .9rem;
  margin-top: .45rem;
}

.profile-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.profile-tabs {
  border-bottom: 1px solid var(--bhkh-line);
  display: flex;
  gap: .25rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.profile-tab {
  border-bottom: 3px solid transparent;
  color: var(--bhkh-muted);
  flex: 0 0 auto;
  font-size: .84rem;
  font-weight: 750;
  padding: .8rem 1rem .7rem;
  text-decoration: none;
}

.profile-tab:hover {
  background: #edf3f1;
  color: var(--bhkh-green-dark);
}

.profile-tab.active {
  border-bottom-color: var(--bhkh-green);
  color: var(--bhkh-green-dark);
}

.profile-section {
  background: var(--bhkh-surface);
  border: 1px solid var(--bhkh-line);
  border-radius: 8px;
  box-shadow: var(--bhkh-shadow);
  padding: 1.35rem;
}

.section-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--bhkh-line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: -1.35rem -1.35rem 0;
  padding: 1.2rem 1.35rem;
}

.section-heading h2 {
  font-size: 1.12rem;
  font-weight: 760;
  margin: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--bhkh-muted);
  font-size: .82rem;
  margin: .35rem 0 0;
}

.section-heading .eyebrow {
  margin-bottom: .35rem;
}

.section-heading-compact {
  border-bottom: 0;
  margin-top: 0;
  padding-top: 0;
}

.profile-subsection {
  border-bottom: 1px solid var(--bhkh-line);
  padding: 1.35rem 0;
}

.profile-subsection h3,
.contact-add-form h3 {
  color: #40524f;
  font-size: .86rem;
  font-weight: 780;
  margin: 0 0 .9rem;
}

.profile-subsection-last {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-form-grid {
  display: grid;
  gap: 1rem;
}

.profile-form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-form-grid-four {
  grid-template-columns: 1.2fr 1.2fr 1.2fr .6fr;
}

.profile-span-two {
  grid-column: span 2;
}

.profile-span-full {
  grid-column: 1 / -1;
}

.profile-grid-followup {
  margin-top: 1rem;
}

.toggle-grid {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.toggle-option {
  align-items: center;
  background: #fbfcfc;
  border: 1px solid #d4dfdc;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font-size: .8rem;
  font-weight: 650;
  gap: .55rem;
  min-height: 42px;
  padding: .6rem .7rem;
}

.toggle-option:has(input:checked) {
  background: var(--bhkh-soft-green);
  border-color: #7da397;
  color: var(--bhkh-green-dark);
}

.toggle-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.qualification-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1.35rem;
}

.qualification-option {
  min-height: 46px;
}

.emergency-accommodation {
  margin: 1.35rem 0 1rem;
  max-width: 28rem;
}

.emergency-contacts-section {
  border-bottom: 0;
  margin-top: 1.35rem;
  padding-bottom: 0;
}

.contact-empty-state {
  border-bottom: 1px solid var(--bhkh-line);
  padding: 1rem 0 1.35rem;
}

.contact-list {
  border-top: 1px solid var(--bhkh-line);
}

.contact-row {
  align-items: center;
  border-bottom: 1px solid var(--bhkh-line);
  display: grid;
  gap: .9rem;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  padding: .9rem 0;
}

.contact-order {
  background: var(--bhkh-soft-blue);
  border-radius: 50%;
  color: #315b73;
  display: grid;
  font-size: .75rem;
  font-weight: 800;
  height: 2rem;
  place-items: center;
  width: 2rem;
}

.contact-details {
  min-width: 0;
}

.contact-name-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.contact-name-line > span:not(.status-pill),
.contact-details small,
.contact-details p {
  color: var(--bhkh-muted);
  font-size: .76rem;
}

.contact-details p {
  margin: .35rem 0 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.contact-editor {
  grid-column: 2 / -1;
}

.contact-editor summary {
  color: var(--bhkh-green);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 750;
  width: fit-content;
}

.contact-editor form {
  background: #f7faf9;
  border: 1px solid var(--bhkh-line);
  border-radius: 6px;
  margin-top: .75rem;
  padding: 1rem;
}

.contact-editor form > .btn {
  margin-top: 1rem;
}

.contact-add-form {
  border-top: 1px solid var(--bhkh-line);
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

.contact-add-form .btn {
  margin-top: 1rem;
}

.toggle-option-field {
  align-self: end;
}

.alert {
  border-radius: 7px;
}

.site-footer {
  background: var(--bhkh-surface);
  border-top: 1px solid var(--bhkh-line);
  color: var(--bhkh-muted);
  font-size: .78rem;
}

.footer-content {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
}

.footer-content a {
  color: var(--bhkh-muted);
}

@media (max-width: 991.98px) {
  .report-chart-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: minmax(23rem, 27rem) minmax(0, 1fr);
  }

  .schedule-admin-grid {
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  }

  .schedule-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-inline-form .btn {
    align-self: end;
  }

  .profile-form-grid-four,
  .profile-form-grid-three,
  .qualification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-publisher-layout {
    grid-template-columns: 1fr;
  }

  .fsg-admin-layout {
    grid-template-columns: 1fr;
  }

  .fsg-create-panel {
    position: static;
  }

  .publisher-directory-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publisher-search-field {
    grid-column: 1 / -1;
  }

  .publisher-filter-reset {
    justify-self: start;
  }

  .publisher-directory-toolbar > .status-pill {
    justify-self: end;
  }

  .publisher-directory-columns,
  .publisher-directory-item {
    grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1fr) minmax(7rem, .65fr) minmax(8rem, .75fr) 7rem;
  }
}

@media (max-width: 767.98px) {
  .comparison-period-form {
    width: 100%;
  }

  .reporting-baseline-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-metric-band {
    grid-template-columns: 1fr;
  }

  .report-metric-group + .report-metric-group {
    border-left: 0;
    border-top: 1px solid var(--bhkh-line);
  }

  .demo-mode-content {
    flex-wrap: wrap;
    gap: .2rem .6rem;
    padding-bottom: .5rem;
    padding-top: .5rem;
  }

  .demo-mode-content span {
    flex: 1 1 15rem;
  }

  .demo-mode-content a {
    margin-left: 0;
  }

  .demo-dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .demo-profile-grid {
    grid-template-columns: 1fr;
  }

  .ministry-activity-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ministry-secondary-field {
    max-width: none;
  }

  .fsg-report-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
  }

  .fsg-report-columns {
    grid-template-columns: 1fr;
  }

  .log-search-form,
  .audit-log-row,
  .error-log-meta {
    grid-template-columns: 1fr;
  }

  .log-search-form .btn {
    justify-self: start;
  }

  .audit-log-row {
    gap: .45rem;
  }

  .error-log-row > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header .navbar {
    min-height: 62px;
  }

  .site-nav {
    align-items: stretch;
    border-top: 1px solid var(--bhkh-line);
    gap: .2rem;
    margin-top: .65rem;
    padding-top: .65rem;
  }

  .site-nav .nav-link {
    padding: .7rem .75rem;
  }

  .workspace-header {
    align-items: start;
    flex-direction: column;
    padding-top: 2.25rem;
  }

  .profile-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 2.15rem;
  }

  .profile-header-actions {
    justify-content: flex-start;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading .btn {
    align-self: flex-start;
  }

  .publisher-directory-columns {
    display: none;
  }

  .publisher-directory-item {
    align-items: start;
    gap: .35rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .85rem 1rem;
  }

  .publisher-directory-cell,
  .publisher-directory-action {
    padding: 0;
  }

  .publisher-directory-cell::before {
    color: #687875;
    content: attr(data-label);
    display: block;
    font-size: .64rem;
    font-weight: 800;
    margin-bottom: .1rem;
    text-transform: uppercase;
  }

  .publisher-name-cell {
    grid-column: 1 / -1;
  }

  .publisher-name-cell::before {
    display: none;
  }

  .publisher-email-cell,
  .publisher-directory-cell:nth-of-type(3),
  .publisher-directory-cell:nth-of-type(4) {
    grid-column: 1;
  }

  .publisher-directory-action {
    align-self: end;
    grid-column: 2;
    grid-row: 2 / span 3;
  }

  .import-upload-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .import-upload-form .btn {
    justify-self: start;
  }

  .toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-header h1 {
    font-size: 2.1rem;
  }

  .header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .metric-grid,
  .work-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .schedule-admin-grid,
  .schedule-inline-form,
  .schedule-duty-form {
    grid-template-columns: 1fr;
  }

  .schedule-editor-heading,
  .meeting-schedule-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .meeting-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .meeting-assignees {
    grid-column: 1;
  }

  .your-assignment-mark {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .form-panel {
    position: static;
  }

  .fsg-group-list,
  .fsg-leadership,
  .fsg-publishers ul {
    grid-template-columns: 1fr;
  }

  .role-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-list li {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .household-chart-layout {
    grid-template-columns: 1fr;
  }

  .household-donut {
    max-width: 11rem;
  }

  .demo-role-list,
  .demo-detail-list > div {
    grid-template-columns: 1fr;
  }

  .demo-detail-list > div {
    gap: .25rem;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions .btn {
    flex: 1 1 100%;
  }

  .metric-grid {
    gap: .75rem;
  }

  .metric-card {
    min-height: 7.5rem;
  }

  .meeting-stepper {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    padding: .7rem;
  }

  .meeting-stepper-button {
    height: 2.5rem;
    width: 2.5rem;
  }

  .meeting-stepper-date {
    padding: 0 .5rem;
  }

  .meeting-stepper-date strong {
    font-size: .9rem;
  }

  .personal-assignment-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }

  .timeline-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: .3rem;
  }

  .timeline-list span {
    flex-basis: auto;
  }

  .meeting-schedule-header .btn {
    width: 100%;
  }

  .meeting-row {
    grid-template-columns: 1fr;
    padding: .8rem 1rem;
  }

  .your-assignment-mark {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .schedule-admin-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-selector {
    grid-template-columns: 1fr;
  }

  .profile-form-grid-four,
  .profile-form-grid-three,
  .profile-form-grid-two,
  .toggle-grid,
  .qualification-grid {
    grid-template-columns: 1fr;
  }

  .profile-span-two {
    grid-column: auto;
  }

  .contact-row {
    align-items: flex-start;
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .contact-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .contact-editor {
    grid-column: 1 / -1;
  }

  .publisher-directory-toolbar {
    grid-template-columns: 1fr;
  }

  .publisher-search-field,
  .publisher-filter-field,
  .publisher-filter-reset,
  .publisher-directory-toolbar > .status-pill {
    grid-column: 1;
    justify-self: stretch;
  }

  .publisher-directory-toolbar > .status-pill {
    justify-self: start;
  }

  .publisher-directory-action {
    align-self: start;
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .import-confirm-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .data-list li {
    flex-direction: column;
  }

  .publisher-account-status {
    align-items: flex-start;
  }

  .account-shell {
    padding: 1.75rem 0;
  }

  .account-panel {
    padding: 1.5rem;
  }
}
