:root{
  --c-primary: #356A5B;
  --c-primary-dark: #285246;
  --c-primary-soft: #E7F0EC;
  --c-accent:  #BB563F;
  --c-accent-soft: #F7E9E4;
  --c-bg:      #F4F6F3;
  --c-card:    #FFFFFF;
  --c-text:    #293631;
  --c-muted:   #66736E;
  --c-heading: #294B41;
  --c-border:  #DCE4E0;
  --radius:    12px;
  --psw-primary: #356A5B;
  --psw-primary-light: #4E7D6F;
  --psw-primary-dark: #193E35;
  --psw-accent: #BB563F;
  --tabulator-group-bg: #365c51;
  --tabulator-group-bg-hover: #2f5148;
  --tabulator-group-border: #29483f;
  --tabulator-group-text: #f4f8f6;
  --tabulator-group-text-muted: #cad8d3;
  --tabulator-group-link: #d5eee5;
  --tabulator-group-arrow: #dbe9e4;
}

* {
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
}

a{
  color: var(--c-primary);
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

/* Shared grouping palette for every current and future Tabulator table. */
.tabulator .tabulator-row.tabulator-group{
  border-top-color: var(--tabulator-group-border);
  border-right-color: var(--tabulator-group-border);
  border-bottom-color: var(--tabulator-group-border);
  background: var(--tabulator-group-bg);
  color: var(--tabulator-group-text);
}

.tabulator .tabulator-row.tabulator-group:hover{
  background: var(--tabulator-group-bg-hover);
}

.tabulator .tabulator-row.tabulator-group span{
  color: var(--tabulator-group-text);
}

.tabulator .tabulator-row.tabulator-group .muted,
.tabulator .tabulator-row.tabulator-group .msd-group-count{
  color: var(--tabulator-group-text-muted);
}

.tabulator .tabulator-row.tabulator-group a,
.tabulator .tabulator-row.tabulator-group .msa-email-link{
  color: var(--tabulator-group-link);
}

.tabulator .tabulator-row.tabulator-group a:hover,
.tabulator .tabulator-row.tabulator-group .msa-email-link:hover{
  color: #fff;
}

.tabulator .tabulator-row.tabulator-group .tabulator-arrow{
  border-left-color: var(--tabulator-group-arrow);
}

.tabulator .tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{
  border-top-color: var(--tabulator-group-arrow);
  border-left-color: transparent;
}

.container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 18px;
}

.match-organization-team{
  width: 100%;
}

.match-organization-team__header{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.match-organization-team__header h1{
  margin: 0;
}

.match-organization-team__eyebrow{
  margin: 0 0 5px;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.match-organization-team__add{
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.match-organization-team__table{
  width: 100%;
}

.match-organization-team__table .tabulator-header{
  background: var(--c-primary-dark);
  color: #fff;
}

.match-organization-team__table .tabulator-header .tabulator-col{
  background: var(--c-primary-dark);
}

.match-organization-team__table .tabulator-row .tabulator-cell{
  padding: 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.match-organization-team__actions{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.match-organization-team__edit,
.match-organization-team__delete{
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #c98272;
  border-radius: 4px;
  background: #fff;
  color: #984532;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.match-organization-team__edit{
  border-color: #79a597;
  color: var(--c-primary-dark);
  font-size: 18px;
}

.match-organization-team__edit:hover,
.match-organization-team__edit:focus-visible{
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.match-organization-team__delete:hover,
.match-organization-team__delete:focus-visible{
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: #713325;
}

.match-organization-team__edit:focus-visible,
.match-organization-team__delete:focus-visible{
  outline: 3px solid rgba(187, 86, 63, .18);
  outline-offset: 1px;
}

.match-organization-team__edit:focus-visible{
  outline-color: rgba(53, 106, 91, .18);
}

body.match-organization-team-modal-open{
  overflow: hidden;
}

.match-organization-team-modal[hidden],
.match-organization-team-loading[hidden]{
  display: none;
}

.match-organization-team-modal,
.match-organization-team-loading{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.match-organization-team-modal{
  z-index: 100100;
}

.match-organization-team-modal__backdrop,
.match-organization-team-loading__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(24, 38, 33, .68);
}

.match-organization-team-modal__dialog{
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-card);
  box-shadow: 0 24px 70px rgba(20, 38, 32, .28);
}

.match-organization-team-modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--c-border);
}

.match-organization-team-modal__header p{
  margin: 0 0 5px;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.match-organization-team-modal__header h2{
  margin: 0;
  color: var(--c-heading);
  font-size: 28px;
}

.match-organization-team-modal__close{
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.match-organization-team-modal__form{
  padding: 20px 28px 24px;
}

.match-organization-team-modal__message{
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d9a69a;
  border-radius: 6px;
  background: var(--c-accent-soft);
  color: #713325;
  font-weight: 600;
}

.match-organization-team-modal__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.match-organization-team-modal__field--wide{
  grid-column: 1 / -1;
}

.match-organization-team-modal__field label{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--c-heading);
  font-weight: 700;
}

.match-organization-team-modal__field label span{
  color: var(--c-accent);
  font-size: 11px;
  text-transform: uppercase;
}

.match-organization-team-modal__field input,
.match-organization-team-modal__field select{
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
}

.match-organization-team-modal__field input:focus,
.match-organization-team-modal__field select:focus{
  border-color: var(--c-primary);
  outline: 3px solid rgba(53, 106, 91, .16);
}

.match-organization-team-modal__field input:disabled,
.match-organization-team-modal__field select:disabled{
  border-color: var(--c-border);
  background: #eef2f0;
  color: var(--c-muted);
  cursor: not-allowed;
  opacity: 1;
}

.match-organization-team-modal__field.has-error input,
.match-organization-team-modal__field.has-error select{
  border-color: var(--c-accent);
}

.match-organization-team-modal__error{
  margin: 4px 0 0;
  color: #8a3828;
  font-size: 12px;
}

.match-organization-team-modal__error:empty{
  display: none;
}

.match-organization-team-modal__actions{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.match-organization-team-loading{
  z-index: 100200;
}

.match-organization-team-loading__backdrop{
  background: rgba(24, 38, 33, .52);
}

.match-organization-team-loading__dialog{
  position: relative;
  display: flex;
  width: min(380px, 100%);
  min-height: 220px;
  padding: 34px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-radius: 8px;
  background: var(--c-card);
  box-shadow: 0 24px 70px rgba(20, 38, 32, .3);
  color: var(--c-muted);
  text-align: center;
}

.match-organization-team-loading__dialog strong{
  color: var(--c-heading);
  font-size: 20px;
}

.match-organization-team-loading__spinner{
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border: 4px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: match-register-spin .7s linear infinite;
}

.match-organization-team-toast{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100300;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid #78a493;
  border-radius: 6px;
  background: var(--c-primary-dark);
  box-shadow: 0 14px 38px rgba(20, 38, 32, .24);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.match-organization-team-toast.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.match-organization-team-toast.is-error{
  border-color: #d7998b;
  background: #853d2d;
}

@media (max-width: 640px){
  .match-organization-team__header{
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .match-organization-team-modal,
  .match-organization-team-loading{
    padding: 12px;
  }

  .match-organization-team-modal__header,
  .match-organization-team-modal__form{
    padding-right: 18px;
    padding-left: 18px;
  }

  .match-organization-team-modal__grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .match-organization-team-modal__field--wide{
    grid-column: auto;
  }

  .match-organization-team-toast{
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}

.match-staff-care-recipients{
  width: 100%;
}

.match-staff-care-recipients > h1{
  margin: 0 0 24px;
}

.match-staff-care-recipients__search{
  max-width: 620px;
  margin-bottom: 18px;
}

.match-staff-care-recipients__search > label{
  display: block;
  margin-bottom: 7px;
  color: var(--c-heading);
  font-size: 14px;
  font-weight: 700;
}

.match-staff-care-recipients__search-control{
  position: relative;
}

.match-staff-care-recipients__search-control input{
  width: 100%;
  min-height: 46px;
  padding: 10px 46px 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-card);
  color: var(--c-text);
  font: inherit;
}

.match-staff-care-recipients__search-control input:focus{
  border-color: var(--c-primary);
  outline: 2px solid color-mix(in srgb, var(--c-primary) 22%, transparent);
  outline-offset: 1px;
}

.match-staff-care-recipients__search-reset{
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.match-staff-care-recipients__search-reset:hover:not(:disabled),
.match-staff-care-recipients__search-reset:focus-visible{
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.match-staff-care-recipients__search-reset:disabled{
  opacity: .35;
  cursor: default;
}

.match-staff-directory__search{
  max-width: 620px;
  margin-bottom: 18px;
}

.match-staff-directory__search > label{
  display: block;
  margin-bottom: 7px;
  color: var(--c-heading);
  font-size: 14px;
  font-weight: 700;
}

.match-staff-directory__search-control{
  position: relative;
}

.match-staff-directory__search-control input{
  width: 100%;
  min-height: 46px;
  padding: 10px 46px 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-card);
  color: var(--c-text);
  font: inherit;
}

.match-staff-directory__search-control input:focus{
  border-color: var(--c-primary);
  outline: 2px solid color-mix(in srgb, var(--c-primary) 22%, transparent);
  outline-offset: 1px;
}

.match-staff-directory__search-reset{
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.match-staff-directory__search-reset:hover:not(:disabled),
.match-staff-directory__search-reset:focus-visible{
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.match-staff-directory__search-reset:disabled{
  opacity: .35;
  cursor: default;
}

.match-staff-psws__table{
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-card);
}

.match-staff-care-agencies__table{
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-card);
}

.match-staff-care-agencies__table .tabulator-header{
  border-bottom-color: var(--c-border);
  background: var(--c-primary-soft);
  color: var(--c-heading);
}

.match-staff-care-agencies__table .tabulator-header .tabulator-col-title,
.match-staff-care-agencies__table .tabulator-row .tabulator-cell{
  white-space: normal;
}

.match-staff-care-agencies__table .tabulator-header .tabulator-col-content,
.match-staff-care-agencies__table .tabulator-row .tabulator-cell{
  padding: 5px 6px;
  font-size: 13px;
}

.match-staff-care-agencies__table .tabulator-header .tabulator-col-title{
  font-size: 12px;
  line-height: 1.2;
}

.match-staff-care-agencies__table .tabulator-header-filter input,
.match-staff-care-agencies__table .tabulator-header-filter select{
  width: 100%;
  min-height: 26px;
  padding: 3px 5px;
  border: 1px solid var(--c-border);
  border-radius: 5px;
  background: var(--c-card);
  color: var(--c-text);
  font: inherit;
  font-size: 12px;
}

.match-staff-care-agencies__people{
  display: grid;
  gap: 4px;
}

.match-staff-care-agencies__primary,
.match-staff-care-agencies__status{
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.match-staff-care-agencies__primary{
  margin-left: 4px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.match-staff-care-agencies__status--active{
  background: #e5f3ed;
  color: #236148;
}

.match-staff-care-agencies__status--pending_review,
.match-staff-care-agencies__status--draft{
  background: #fff2d8;
  color: #795819;
}

.match-staff-care-agencies__status--inactive,
.match-staff-care-agencies__status--archived{
  background: #eceff0;
  color: #4d5a57;
}

.match-staff-care-agencies__empty{
  color: var(--c-muted);
}

.match-staff-care-agencies__table .match-staff-profile-edit{
  min-height: 27px;
  padding: 3px 5px;
  font-size: 12px;
}

.match-staff-care-agencies__table .match-staff-psws__no-documents{
  font-size: 10px;
}

.match-agency-status-control{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-card);
}

.match-agency-status-control fieldset{
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.match-agency-status-control legend{
  margin-bottom: 8px;
  color: var(--c-heading);
  font-size: 13px;
  font-weight: 700;
}

.match-agency-status-control__options{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-agency-status-control__options label{
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.match-agency-status-control__options label:has(input:checked){
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  box-shadow: 0 0 0 2px rgba(53, 106, 91, .12);
}

.match-agency-status-control__options input{
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--c-primary);
}

.match-agency-status-control__action{
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 6px;
}

.match-agency-status-control__action .match-staff-profile-modal__error{
  max-width: 420px;
  margin: 0;
}

@media (max-width: 760px){
  .match-agency-status-control{
    align-items: stretch;
    flex-direction: column;
  }

  .match-agency-status-control__action{
    justify-items: stretch;
  }
}

.match-staff-psws__table .tabulator-header{
  border-bottom-color: var(--c-border);
  background: var(--c-primary-soft);
  color: var(--c-heading);
}

.match-staff-psws__table .tabulator-header .tabulator-col-title,
.match-staff-psws__table .tabulator-row .tabulator-cell{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-staff-psws__table .tabulator-header .tabulator-col-content{
  padding: 6px;
}

.match-staff-psws__table .tabulator-row .tabulator-cell{
  padding: 5px 6px;
  line-height: 1.3;
}

.match-staff-psws__hscpoa-link{
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.match-staff-psws__hscpoa-link > span:first-child{
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-staff-psws__external-icon{
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.match-staff-psws__validate{
  min-height: 27px;
  padding: 3px 8px;
  border: 1px solid var(--c-primary);
  border-radius: 5px;
  background: var(--c-card);
  color: var(--c-primary-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.match-staff-psws__validate:hover:not(:disabled),
.match-staff-psws__validate:focus-visible{
  background: var(--c-primary-soft);
}

.match-staff-psws__validate:disabled{
  opacity: .6;
  cursor: wait;
}

.match-staff-psws__status{
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.match-staff-psws__status--active{
  background: #e5f3ed;
  color: #236148;
}

.match-staff-psws__status--pending{
  background: #f8e9e7;
  color: #8c2f2b;
}

.match-staff-psw-activation{
  min-height: 27px;
  padding: 3px 7px;
  border: 1px solid var(--c-primary);
  border-radius: 5px;
  background: var(--c-card);
  color: var(--c-primary-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.match-staff-psw-activation--inactive{
  border-color: #a94b42;
  color: #8c2f2b;
}

.match-staff-psw-activation:hover:not(:disabled),
.match-staff-psw-activation:focus-visible{
  background: var(--c-primary-soft);
}

.match-staff-psw-activation--inactive:hover:not(:disabled),
.match-staff-psw-activation--inactive:focus-visible{
  background: #f8e9e7;
}

.match-staff-psw-activation:disabled{
  opacity: .6;
  cursor: wait;
}

.match-staff-care-recipients__table{
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 8px;
}

.match-staff-care-recipients__table .tabulator-header{
  border-bottom-color: var(--c-border);
  background: var(--c-primary-soft);
  color: var(--c-heading);
}

.match-staff-care-recipients__table .tabulator-row.tabulator-group{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 16px;
}

.match-staff-recipient-group-name{
  font-weight: 700;
}

.match-staff-recipient-group-email{
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 600;
}

.match-staff-recipient-group-email--empty{
  color: var(--c-muted);
  font-weight: 500;
}

.match-staff-care-recipients__table .tabulator-row.tabulator-group .match-staff-recipient-group-email--empty,
.match-staff-care-recipients__table .tabulator-row.tabulator-group .match-staff-recipient-group-count,
.match-staff-care-recipients__table .tabulator-row.tabulator-group .match-staff-care-recipients__no-documents{
  color: var(--tabulator-group-text-muted);
}

.match-staff-care-recipients__no-documents{
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.match-staff-profile-edit{
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--c-primary);
  border-radius: 5px;
  background: var(--c-card);
  color: var(--c-primary-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.match-staff-psws__table .match-staff-profile-edit,
.match-organization-team__table .match-staff-profile-edit{
  min-height: 27px;
  padding: 3px 6px;
  font-size: 12px;
}

.match-staff-psws__no-documents{
  color: var(--c-muted);
  font-size: 11px;
  white-space: nowrap;
}

.match-staff-profile-edit:hover,
.match-staff-profile-edit:focus-visible{
  background: var(--c-primary-soft);
}

.match-staff-recipient-group-count{
  margin-left: auto;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 640px){
  .match-staff-care-recipients__table .tabulator-group{
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .match-staff-recipient-group-count{
    width: 100%;
    margin-left: 24px;
  }

  .match-staff-recipient-group-email{
    margin-left: 24px;
  }
}

body.match-staff-profile-modal-open{
  overflow: hidden;
}

.match-staff-profile-modal[hidden],
.match-staff-profile-toast[hidden]{
  display: none;
}

.match-staff-profile-modal{
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.match-staff-profile-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(24, 38, 33, .62);
}

.match-staff-profile-modal__dialog{
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-bg);
  box-shadow: 0 24px 70px rgba(16, 32, 27, .28);
}

.match-staff-profile-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-card);
}

.match-staff-profile-modal__eyebrow{
  margin-bottom: 3px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.match-staff-profile-modal__header h2{
  margin: 0;
  color: var(--c-heading);
  font-size: 22px;
  line-height: 1.25;
}

.match-staff-profile-modal__close{
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-heading);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.match-staff-profile-modal__close:hover,
.match-staff-profile-modal__close:focus-visible{
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.match-staff-profile-modal__content{
  overflow: auto;
  padding: 30px 24px;
}

.match-staff-profile-modal__loading,
.match-staff-profile-modal__error,
.match-staff-profile-wizard{
  width: min(920px, 100%);
  margin: 0 auto;
}

.match-staff-profile-modal__loading{
  padding: 40px 0;
  color: var(--c-muted);
  text-align: center;
}

.match-staff-profile-modal__error{
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #dba9a3;
  border-radius: 6px;
  background: #fff1ef;
  color: #8f2f27;
  font-weight: 600;
}

.match-staff-profile-wizard__step{
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-staff-profile-wizard__progress{
  height: 8px;
  margin: 10px 0 24px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c-border);
}

.match-staff-profile-wizard__progress span{
  display: block;
  height: 100%;
  background: var(--c-primary);
  transition: width .2s ease;
}

.match-staff-profile-wizard h3{
  margin: 0 0 22px;
  color: var(--c-heading);
  font-size: 30px;
  line-height: 1.2;
}

.match-staff-profile-wizard__fields{
  display: grid;
  gap: 18px;
}

.match-staff-profile-field > label{
  display: block;
  margin-bottom: 7px;
  color: var(--c-heading);
  font-weight: 700;
}

.match-staff-profile-field > input,
.match-staff-profile-field > select,
.match-staff-profile-field > textarea,
.match-staff-profile-field__other{
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-card);
  color: var(--c-text);
  font: inherit;
}

.match-staff-profile-field > textarea{
  resize: vertical;
}

.match-staff-profile-field > input:focus,
.match-staff-profile-field > select:focus,
.match-staff-profile-field > textarea:focus,
.match-staff-profile-field__other:focus{
  border-color: var(--c-primary);
  outline: 2px solid color-mix(in srgb, var(--c-primary) 22%, transparent);
  outline-offset: 1px;
}

.match-staff-profile-field > small{
  display: block;
  margin-top: 5px;
  color: var(--c-muted);
  font-size: 12px;
}

.match-staff-profile-field__required,
.match-staff-profile-field__error{
  color: #9b2f28;
}

.match-staff-profile-field__error{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.match-staff-profile-field--invalid > input,
.match-staff-profile-field--invalid > select,
.match-staff-profile-field--invalid > textarea,
.match-staff-profile-field--invalid .match-staff-profile-field__choices{
  border-color: #b74339;
}

.match-staff-profile-field__choices{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-card);
}

.match-staff-profile-field__choices label{
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.match-staff-profile-field__choices input[type="checkbox"]{
  flex: 0 0 auto;
  margin-top: 4px;
}

.match-staff-profile-field__other{
  grid-column: 1 / -1;
  margin-top: 3px;
}

.match-staff-profile-modal__footer{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-card);
}

.match-staff-profile-modal__footer[hidden]{
  display: none;
}

.match-staff-profile-modal__footer [data-profile-next]{
  margin-left: auto;
}

.match-staff-profile-modal__footer [data-psw-editor-save],
.match-staff-profile-modal__footer [data-team-psw-next]{
  margin-left: auto;
}

[data-psw-editor-content],
[data-team-psw-content]{
  width: min(1200px, 100%);
  margin: 0 auto;
}

.match-staff-psw-activation-review{
  width: min(1000px, 100%);
  margin: 0 auto;
}

.match-staff-psw-activation-review__table-wrap{
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-card);
}

.match-staff-psw-activation-review table{
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.match-staff-psw-activation-review th,
.match-staff-psw-activation-review td{
  padding: 16px 18px;
  border-bottom: 1px solid var(--c-border);
  text-align: center;
  vertical-align: middle;
}

.match-staff-psw-activation-review thead th{
  background: #eef3f1;
  color: var(--c-heading);
  font-size: 13px;
  font-weight: 800;
}

.match-staff-psw-activation-review thead th:first-child,
.match-staff-psw-activation-review tbody th{
  text-align: left;
}

.match-staff-psw-activation-review tbody th{
  color: var(--c-heading);
  font-size: 15px;
  font-weight: 700;
}

.match-staff-psw-activation-review tbody tr:last-child th,
.match-staff-psw-activation-review tbody tr:last-child td{
  border-bottom: 0;
}

.match-staff-psw-activation-review__status{
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.match-staff-psw-activation-review__required{
  color: #236148;
  font-size: 13px;
  font-weight: 800;
}

.match-staff-psw-activation-review__status--no{
  background: #f8e9e7;
  color: #8c2f2b;
}

.match-staff-psw-activation-review__optional{
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 700;
}

.match-staff-psw-activation-review__empty{
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 500;
}

.match-staff-psw-activation-review__documents{
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--c-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  text-align: left;
}

.match-staff-psw-activation-review__documents li{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.match-staff-psw-activation-review__document-text{
  min-width: 0;
}

.match-staff-psw-activation-review__document-type{
  color: var(--c-muted);
  font-weight: 700;
}

.match-staff-psw-activation-review__document-link{
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.match-staff-psw-activation-review__document-link:hover,
.match-staff-psw-activation-review__document-link:focus-visible{
  color: var(--c-primary);
}

.match-staff-psw-activation-review__document-link.is-loading{
  opacity: .6;
  pointer-events: none;
}

.match-staff-psw-activation-review__document-status{
  display: inline-block;
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.match-staff-psw-activation-review__document-status--approved{
  background: #e5f3ed;
  color: #236148;
}

.match-staff-psw-activation-review__document-status--rejected{
  background: #f8e9e7;
  color: #8c2f2b;
}

.match-staff-psw-activation-review__document-status--pending{
  background: #fbf1d5;
  color: #6f5311;
}

.match-staff-psw-activation-review__hscpoa{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: var(--c-heading);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.match-staff-psw-activation-review__hscpoa-status{
  display: inline-block;
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.match-staff-psw-activation-review__hscpoa-status--not_entered{
  background: #edf0ef;
  color: #53615c;
}

.match-staff-psw-activation-review__hscpoa-status--awaiting_validation{
  background: #fbf1d5;
  color: #6f5311;
}

.match-staff-psw-activation-review__hscpoa-status--validated{
  background: #e5f3ed;
  color: #236148;
}

.match-staff-psw-activation-review__hscpoa-status--error{
  background: #f8e9e7;
  color: #8c2f2b;
}

.match-staff-psw-availability.psw-availability-service-period{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.match-staff-psw-availability .psw-availability-section-heading h3{
  margin: 0 0 6px;
  color: var(--c-heading);
  font-size: 24px;
  line-height: 1.25;
}

.match-staff-psw-documents{
  position: relative;
  display: grid;
  gap: 24px;
}

.match-staff-psw-documents__stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.match-staff-psw-documents__stats > div{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-card);
}

.match-staff-psw-documents__stats span{
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 700;
}

.match-staff-psw-documents__stats strong{
  color: var(--c-heading);
  font-size: 24px;
  line-height: 1;
}

.match-staff-psw-documents__table{
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-card);
}

.match-staff-psw-documents__table .tabulator-header{
  border-bottom-color: var(--c-border);
  background: var(--c-primary-soft);
  color: var(--c-heading);
}

.match-staff-psw-documents__status{
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.match-staff-psw-documents__status--pending{
  background: #f7eed7;
  color: #73561b;
}

.match-staff-psw-documents__status--approved{
  background: #e5f3ed;
  color: #236148;
}

.match-staff-psw-documents__status--rejected{
  background: #f8e9e7;
  color: #8c2f2b;
}

.match-staff-psw-documents__status + small{
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-staff-psw-documents__actions{
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-staff-psw-documents__actions button{
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--c-primary);
  border-radius: 5px;
  background: var(--c-card);
  color: var(--c-primary-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.match-staff-psw-documents__actions button:hover:not(:disabled),
.match-staff-psw-documents__actions button:focus-visible{
  background: var(--c-primary-soft);
}

.match-staff-psw-documents__actions button:disabled{
  border-color: var(--c-border);
  color: var(--c-muted);
  cursor: default;
  opacity: .62;
}

.match-staff-psw-documents__overlay{
  position: fixed;
  z-index: 100020;
  inset: 0;
  display: grid;
  padding: 48px;
  place-items: center;
  background: rgba(24, 38, 33, .72);
}

.match-staff-psw-documents__overlay-dialog{
  position: relative;
  width: min(1100px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-card);
  box-shadow: 0 24px 70px rgba(16, 32, 27, .34);
}

.match-staff-psw-documents__overlay-dialog h3{
  margin: 0 48px 18px 0;
  color: var(--c-heading);
  font-size: 22px;
}

.match-staff-psw-documents__overlay-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-heading);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.match-staff-psw-documents__overlay.is-preview .match-staff-psw-documents__overlay-dialog{
  height: 100%;
}

.match-staff-psw-documents__overlay iframe,
.match-staff-psw-documents__overlay img{
  display: block;
  width: 100%;
  height: calc(100% - 50px);
  min-height: 420px;
  border: 1px solid var(--c-border);
  background: #fff;
}

.match-staff-psw-documents__overlay img{
  object-fit: contain;
}

.match-staff-psw-documents__overlay.is-review .match-staff-psw-documents__overlay-dialog{
  width: min(620px, 100%);
}

.match-staff-psw-documents__reason{
  display: grid;
  gap: 7px;
  margin-top: 18px;
  color: var(--c-heading);
  font-weight: 700;
}

.match-staff-psw-documents__reason textarea{
  width: 100%;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-card);
  color: var(--c-text);
  font: inherit;
}

.match-staff-psw-documents__review-error{
  margin-top: 10px;
  color: #8f2f27;
  font-size: 13px;
  font-weight: 700;
}

.match-staff-psw-documents__review-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.match-staff-psw-documents__review-actions button{
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.match-staff-profile-toast{
  position: fixed;
  z-index: 100010;
  top: 20px;
  right: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--c-primary-dark);
  box-shadow: 0 12px 30px rgba(16, 32, 27, .24);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 700px){
  .match-staff-profile-modal{
    padding: 10px;
  }

  .match-staff-profile-modal__dialog{
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

  .match-staff-profile-modal__header,
  .match-staff-profile-modal__content,
  .match-staff-profile-modal__footer{
    padding-right: 16px;
    padding-left: 16px;
  }

  .match-staff-profile-modal__header h2{
    font-size: 18px;
  }

  .match-staff-profile-wizard h3{
    font-size: 24px;
  }

  .match-staff-profile-field__choices{
    grid-template-columns: 1fr;
  }

  .match-staff-psw-documents__stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-staff-psw-documents__overlay{
    padding: 12px;
  }

  .match-staff-psw-documents__overlay-dialog{
    padding: 18px;
  }
}

/* =========================================
   HEADER
========================================= */

.site-header{
  background: #ffffff;
  border-bottom: 1px solid var(--c-border);
}

.header-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  flex: 0 0 auto;
}

.brand-link{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.cv-brand{
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  flex: 0 0 auto;
}

.cv-brand-main{
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.055em;
  color: var(--psw-primary);
}

.cv-brand-main span{
  color: var(--psw-accent);
}

.cv-brand-main .cv-brand-prefix{
  display: inline-block;
  margin-right: 0.08em;
}

.cv-brand-tagline{
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--psw-primary-light);
}

.brand-title{
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--c-heading);
  line-height: 1.25;
}

.site-header nav{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.site-header a{
  font-weight: 600;
  opacity: .95;
}

.site-header a:hover{
  opacity: 1;
  text-decoration: none;
}

.site-header .app-menu{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 18px;
}

.app-menu__link{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.92;
  color: var(--c-text);
}

.app-menu__link:hover{
  opacity: 1;
  color: var(--c-primary);
  text-decoration: underline;
}

.app-menu__link.is-active{
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.app-menu__submenu{
  position: relative;
}

.app-menu__submenu-toggle{
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.app-menu__submenu-toggle::-webkit-details-marker{
  display: none;
}

.app-menu__submenu-toggle::after{
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 2px 3px 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}

.app-menu__submenu[open] .app-menu__submenu-toggle::after{
  margin-bottom: -1px;
  transform: rotate(225deg);
}

.app-menu__submenu-panel{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: max-content;
  min-width: 250px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.app-menu__submenu-link{
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}

.app-menu__submenu-link:hover,
.app-menu__submenu-link:focus-visible{
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  text-decoration: none;
}

.app-menu__submenu-link.is-active{
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.app-menu__submenu-separator{
  display: block;
  height: 1px;
  margin: 7px 4px;
  background: var(--c-border);
}

.auth-menu{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.auth-menu a{
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.auth-menu a:hover{
  color: var(--c-primary);
  text-decoration: underline;
}

.mnr-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  border-bottom: 2px solid var(--c-primary) !important;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 0 4px 4px;  
}

.mnr-name {
  font-weight: 600;
  font-size: 14px;
}

.mnr-role {
  font-size: 12px;
  color: var(--c-muted);
}

.mnr-organization-role {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-heading);
}

.mnr-status {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.mnr-status--inactive {
  color: #8f1d1d;
}

.mnr-status--hscpoa {
  color: #236148;
}

/* =========================================
   GENERIC
========================================= */

.card{
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 28px;
}

.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.muted{
  color: var(--c-muted);
}

/* =========================================
   BUTTONS
========================================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
}

.btn-primary{
  background: linear-gradient(135deg, var(--psw-primary), var(--psw-primary-light));
  color: #fff;
  box-shadow: 0 14px 25px rgba(53, 106, 91, 0.22);
}

.btn-primary:hover{
  color: #fff;
  filter: none;
  transform: translateY(-1px);
}

.btn-outline{
  background: transparent;
  border: 2px solid rgba(53,106,91,.25);
  color: var(--c-primary);
}

.btn-outline:hover{
  border-color: rgba(53,106,91,.45);
}

.btn-green{
  background: linear-gradient(135deg, var(--psw-primary), var(--psw-primary-light));
  color: #fff;
  border: none;
  box-shadow: 0 14px 25px rgba(53, 106, 91, 0.22);
}

.btn-green:hover{
  color: #fff;
  filter: none;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  color: var(--c-heading);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover{
  text-decoration: none;
  border-color: var(--psw-primary-light);
  background: var(--c-primary-soft);
}

/* =========================================
   FRONT PAGE HERO
========================================= */

.cdrcp-hero{
  position: relative;
  width: 100%;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(244,246,243,0.94) 0%,
      rgba(244,246,243,0.82) 34%,
      rgba(244,246,243,0.28) 58%,
      rgba(244,246,243,0.06) 100%
    ),
    url("../images/psw-hero-care.webp") center center / cover no-repeat;
}

.cdrcp-hero__overlay{
  max-width: 1400px;
  min-height: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 56px 44px;
}

.cdrcp-hero__content{
  max-width: 560px;
}

.cdrcp-hero__content h1{
  margin: 0 0 18px 0;
  font-size: 48px;
  line-height: 1.33;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-heading);
}

.cdrcp-hero__content p{
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
  color: var(--c-muted);
  max-width: 470px;
}

/* =========================================
   PORTAL ACCESS
========================================= */

.cdrcp-access-panel-wrap{
  display: flex;
  justify-content: center;
  margin-top: -54px;
  margin-bottom: 54px;
  position: relative;
  z-index: 3;
}

.cdrcp-access-panel{
  width: 100%;
  max-width: 1160px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdrcp-access-panel--signed-in{
  max-width: 920px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cdrcp-access-panel::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--psw-accent) 0%, var(--psw-primary) 52%, var(--psw-primary-dark) 100%);
}

.cdrcp-access-panel__section{
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px;
}

.cdrcp-access-panel__section--register{
  background: var(--c-primary-soft);
  border-left: 1px solid var(--c-border);
}

.cdrcp-access-panel__section--dashboard{
  background: var(--c-primary-soft);
}

.cdrcp-access-panel__section--faq{
  border-left: 1px solid var(--c-border);
  background: #f5f8ff;
}

.cdrcp-access-panel__eyebrow{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.cdrcp-access-panel h2{
  margin: 0 0 8px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--c-heading);
}

.cdrcp-access-panel p{
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--c-muted);
  font-weight: 500;
}

.cdrcp-access-panel__actions{
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 8px;
}

/* =========================================
   FEATURES SECTION
========================================= */

.cdrcp-features{
  margin-top: 60px;
  margin-bottom: 60px;
}

.cdrcp-features__title{
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 40px 0;
  color: var(--c-heading);
}

.cdrcp-features__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cdrcp-feature-card{
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  border: 1px solid var(--c-border);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cdrcp-feature-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.cdrcp-feature-card__image{
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cdrcp-feature-card__content{
  padding: 22px;
}

.cdrcp-feature-card h3{
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-heading);
}

.cdrcp-feature-card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-muted);
}

/* =========================================
   FOOTER
========================================= */

.site-footer{
  background: var(--psw-primary-dark);
  color: #F5F7F9;
  text-align: center;
  padding: 28px 20px;
  font-size: 15px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
}

.site-footer a{
  color: #F5F7F9;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover{
  text-decoration: underline;
  opacity: 0.9;
}

.site-footer .container{
  opacity: 0.95;
  letter-spacing: 0.2px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px){
  .header-inner{
    align-items: flex-start;
  }

  .cdrcp-hero{
    min-height: 480px;
  }

  .cdrcp-hero__overlay{
    min-height: 480px;
    padding: 42px 32px;
  }

  .cdrcp-hero__content h1{
    font-size: 52px;
  }

  .cdrcp-hero__content p{
    font-size: 22px;
  }

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

  .cdrcp-features__grid{
    grid-template-columns: 1fr;
  }

  .cdrcp-features__title{
    font-size: 32px;
  }
}

@media (max-width: 768px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .app-menu{
    margin-left: 0;
  }

  .app-menu__submenu-panel{
    position: fixed;
    top: auto;
    right: 16px;
    left: 16px;
    width: auto;
    min-width: 0;
  }

  .auth-menu{
    gap: 12px;
    margin-left: 0;
    justify-content: flex-start;
  }

  .cdrcp-hero{
    min-height: 420px;
    background:
      linear-gradient(
        180deg,
        rgba(244,246,243,0.94) 0%,
        rgba(244,246,243,0.82) 46%,
        rgba(244,246,243,0.48) 100%
      ),
      url("../images/psw-hero-care.webp") 65% center / cover no-repeat;
  }

  .cdrcp-hero__overlay{
    min-height: 420px;
    padding: 30px 22px;
    align-items: flex-start;
  }

  .cdrcp-hero__content h1{
    font-size: 38px;
    line-height: 1.02;
  }

  .cdrcp-hero__content p{
    font-size: 20px;
  }

  .cdrcp-access-panel-wrap{
    margin-top: 16px;
  }

  .cdrcp-access-panel{
    grid-template-columns: 1fr;
  }

  .cdrcp-access-panel__section{
    padding: 28px 24px;
  }

  .cdrcp-access-panel__section--register{
    border-top: 1px solid var(--c-border);
    border-left: 0;
  }

  .cdrcp-access-panel__section--faq{
    border-top: 1px solid var(--c-border);
    border-left: 0;
  }

  .cdrcp-features{
    margin-top: 8px;
  }

  .cdrcp-feature-card__image{
    height: 200px;
  }

  .cdrcp-feature-card__content{
    padding: 20px;
  }

  .cdrcp-feature-card h3{
    font-size: 20px;
  }

  .cdrcp-features__title{
    font-size: 28px;
  }
}

@media (max-width: 960px){
  .cdrcp-features__grid{
    grid-template-columns: 1fr;
  }
}

.cdrcp-feature-card__content{
  padding: 18px 20px 20px;
}

.cdrcp-feature-card__meta{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cdrcp-feature-card__icon{
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cdrcp-feature-card__icon svg{
  width: 22px;
  height: 22px;
  display: block;
}

.cdrcp-feature-card__icon--support{
  background: rgba(187, 86, 63, 0.14);
  color: var(--psw-accent);
}

.cdrcp-feature-card__icon--match{
  background: rgba(53, 106, 91, 0.14);
  color: var(--psw-primary);
}

.cdrcp-feature-card__icon--options{
  background: rgba(25, 62, 53, 0.12);
  color: var(--psw-primary-dark);
}

.cdrcp-feature-card__text{
  min-width: 0;
}

.cdrcp-feature-card h3{
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-heading);
  line-height: 1.2;
}

.cdrcp-feature-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
}

@media (max-width: 768px){
  .cdrcp-feature-card__meta{
    gap: 12px;
  }

  .cdrcp-feature-card__icon{
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .cdrcp-feature-card__icon svg{
    width: 20px;
    height: 20px;
  }
}

.cdrcp-feature-card--support h3{
  color: var(--psw-accent);
}

.cdrcp-feature-card--match h3{
  color: var(--psw-primary);
}

.cdrcp-feature-card--options h3{
  color: var(--psw-primary-dark);
}

/* =========================================
   REGISTER SHORTCODES
========================================= */

.match-register h3{
  display: none;
}

/* =========================================
   REGISTRATION CARD
========================================= */

.card:has(.match-register){
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   REGISTRATION CARD
========================================= */

.card:has(.match-register){
  max-width: 560px;
  margin: 60px auto;
  padding: 34px 34px 30px;
}


/* =========================================
   FORM LAYOUT
========================================= */

.match-register form{
  margin-top: 12px;
}

.match-register__field{
  margin-bottom: 14px;
}

.match-register__field label{
  display: block;
  margin-bottom: 7px;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 700;
}


/* =========================================
   INPUT FIELDS
========================================= */

.match-register input[type="email"],
.match-register input[type="text"]{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 15px;
  background: #ffffff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.match-register input:focus{
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(53,106,91,0.12);
}

.match-register__confirmation{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.match-register__confirmation input{
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--c-primary);
  flex: 0 0 auto;
}

.match-register__actions{
  display: flex;
  margin-top: 22px;
}

.match-register__error{
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid #b42318;
  border-radius: 6px;
  background: #fff4f2;
  color: #8f1d14;
  font-size: 14px;
  line-height: 1.45;
}

.match-register__notice{
  margin: 0 0 22px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.55;
}

.match-register__notice strong{
  color: var(--c-text);
  overflow-wrap: anywhere;
}

.match-register__pin-form{
  max-width: 260px;
}

.match-psw-login .match-register__pin-form{
  max-width: none;
}

.match-psw-login .match-register__pin-form .match-register__field{
  max-width: 260px;
}

.match-register__pin-form input{
  font-size: 20px;
  letter-spacing: 0.2em;
  text-align: center;
}


/* =========================================
   BUTTON
========================================= */

.match-register button.btn{
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 8px;
}


/* =========================================
   HELP TEXT
========================================= */

.match-register .muted{
  font-size: 14px;
  color: var(--c-muted);
}

.match-register__steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.match-register__steps li{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--c-muted);
  font-size: 12px;
}

.match-register__steps li > span{
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: #ffffff;
  font-weight: 700;
}

.match-register__steps li > strong{
  min-width: 0;
  overflow-wrap: anywhere;
}

.match-register__steps li.is-active,
.match-register__steps li.is-complete{
  color: var(--c-primary-dark);
}

.match-register__steps li.is-active > span,
.match-register__steps li.is-complete > span{
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: #ffffff;
}

.match-register__actions--between{
  justify-content: space-between;
}

.match-register__actions--end{
  justify-content: flex-end;
}

.match-register__actions--saved{
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-register__actions--saved form{
  margin: 0;
}

.match-register__next{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 88px;
}

.match-register__spinner{
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: match-register-spin .7s linear infinite;
}

.match-register__email-form.is-loading .match-register__spinner{
  display: inline-block;
}

.match-register__email-form.is-loading .match-register__next{
  cursor: wait;
  opacity: .84;
}

.match-login__email-form.is-loading .match-register__spinner{
  display: inline-block;
}

.match-login__email-form.is-loading .match-login__next{
  cursor: wait;
  opacity: .84;
}

.match-login__next{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 88px;
}

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

@keyframes match-register-spin{
  to{ transform: rotate(360deg); }
}

.match-register__account-types{
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.match-register__account-types legend{
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  color: var(--c-text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
}

.match-register__choice-list{
  display: grid;
  gap: 10px;
}

.match-register__choice{
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.match-register__choice:hover{
  border-color: var(--psw-primary-light);
  background: var(--c-primary-soft);
}

.match-register__choice:has(input:checked){
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: 0 0 0 2px rgba(53,106,91,.1);
}

.match-register__choice input{
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-primary);
}

.match-register__choice-content{
  display: grid;
  gap: 3px;
}

.match-register__choice-content strong{
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.35;
}

.match-register__choice-content > span{
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.4;
}

.match-register__saved-message{
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--c-primary);
  border-radius: 6px;
  background: var(--c-primary-soft);
  color: var(--c-text);
}

.match-register__saved-message span{
  color: var(--c-muted);
  font-size: 14px;
}

@media (max-width: 560px){
  .match-register__steps li{
    grid-template-columns: 28px;
    justify-content: center;
    text-align: center;
  }

  .match-register__steps li > strong{
    display: none;
  }

  .match-register__actions--saved{
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .match-register__actions--saved form,
  .match-register__actions--saved .btn{
    width: 100%;
  }
}


/* =========================================
   LOGIN LINK
========================================= */

.card > p.muted{
  text-align: center;
  margin-top: 18px;
}

/* =========================================
   LOGIN PAGE
========================================= */

.card:has(#loginform){
  max-width: 560px;
  margin: 60px auto;
  padding: 34px 34px 30px;
}

.card:has(#loginform) h2{
  text-align: center;
  margin-bottom: 24px;
}

#loginform{
  margin-top: 8px;
}

#loginform p{
  margin: 0 0 18px 0;
}

#loginform label{
  display: block;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}

#loginform .input{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 15px;
  background: #ffffff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#loginform .input:focus{
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(53,106,91,0.12);
}

#loginform .login-remember label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 0;
}

#loginform .login-remember input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin: 0;
}

#loginform .login-submit{
  margin-top: 22px;
}

#loginform .button.button-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, var(--psw-primary), var(--psw-primary-light));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 25px rgba(53, 106, 91, 0.22);
}

#loginform .button.button-primary:hover{
  color: #fff;
  filter: none;
  transform: translateY(-1px);
}

.card:has(#loginform) > p.muted{
  text-align: center;
  margin-top: 18px;
}

.card:has(.match-dashboard-loading) {
  text-align:center;
}

/* =========================================
   DASHBOARD TILES
========================================= */

.dashboard-card{
  max-width: 1100px;
  margin: 60px auto;
  padding: 34px;
}

.dashboard-tiles{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.dashboard-faq-callout{
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #b8d2c8;
  border-left: 5px solid var(--psw-accent);
  border-radius: 8px;
  background: var(--c-primary-soft);
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

.dashboard-faq-callout__icon{
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--psw-accent);
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.dashboard-faq-callout p{
  min-width: 0;
  margin: 0;
  color: var(--c-text);
  font-size: 17px;
  line-height: 1.5;
}

.dashboard-faq-callout strong{
  color: var(--c-heading);
  font-weight: 800;
}

.dashboard-faq-callout a{
  color: var(--c-primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.dashboard-faq-callout a:hover{
  color: var(--c-heading);
  text-decoration-thickness: 2px;
}

.dashboard-faq-callout a:focus-visible{
  border-radius: 3px;
  outline: 2px solid var(--c-primary-dark);
  outline-offset: 3px;
}

.dashboard-tile{
  display: block;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.dashboard-tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  text-decoration: none;
}

.dashboard-tiles .dashboard-tile:nth-child(odd){
  border-top: 4px solid var(--psw-accent);
}

.dashboard-tiles .dashboard-tile:nth-child(even){
  border-top: 4px solid var(--psw-primary);
}

.dashboard-tile h3{
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-heading);
}

.dashboard-tile p{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-muted);
}

.dashboard-tile__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--dashboard-icon-bg, var(--c-primary-soft));
  color: var(--dashboard-icon-color, var(--c-primary-dark));
  transition: transform .15s ease, background-color .15s ease;
}

.dashboard-tile__icon svg{
  display: block;
  width: 28px;
  height: 28px;
}

.dashboard-tile__status{
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 94px);
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.dashboard-tile__status-dot{
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-tile__status--complete{
  border-color: #b8d2c8;
  background: #e4f2ed;
  color: #1f614f;
}

.dashboard-tile__status--incomplete{
  border-color: #ebc5b8;
  background: #fff0e8;
  color: #913d24;
}

.dashboard-tile__status--count{
  border-color: #c5d4ed;
  background: #e8efff;
  color: #315fa8;
}

.dashboard-tile__status--empty{
  border-color: #ded4bd;
  background: #fff7e6;
  color: #765a16;
}

.dashboard-tile__stats{
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: calc(100% - 92px);
}

.dashboard-tile__stat{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-tile__stat--draft{
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.dashboard-tile__stat--review,
.dashboard-tile__stat--pending{
  border-color: #ead18a;
  background: #fff4cc;
  color: #765a16;
}

.dashboard-tile__stat--approved{
  border-color: #b8d2c8;
  background: #e4f2ed;
  color: #1f614f;
}

.dashboard-tile__stat--rejected{
  border-color: #ebc5b8;
  background: #fff0e8;
  color: #913d24;
}

.dashboard-tile__stat--processing{
  border-color: #b9d8e9;
  background: #e7f5fb;
  color: #245f7b;
}

.dashboard-tile__stat--processed{
  border-color: #d4c5e8;
  background: #f1eafb;
  color: #65428f;
}

.dashboard-tile__stat--total{
  border-color: #b8d8d4;
  background: #e4f5f3;
  color: #17675f;
}

.dashboard-tile__stat--unread{
  border-color: #efb8b8;
  background: #feeaea;
  color: #a32626;
}

.dashboard-tile__stat--active-cases{
  border-color: #b8d2c8;
  background: #e4f2ed;
  color: #1f614f;
}

.dashboard-tile__stat--on-hold-cases{
  border-color: #ead18a;
  background: #fff4cc;
  color: #765a16;
}

.dashboard-tile__stat--completed-cases{
  border-color: #b9d8e9;
  background: #e7f5fb;
  color: #245f7b;
}

.dashboard-tile__stat--cancelled-cases{
  border-color: #ebc5b8;
  background: #fff0e8;
  color: #913d24;
}

.dashboard-tile__stat--upcoming-shifts{
  border-color: #d4c5e8;
  background: #f1eafb;
  color: #65428f;
}

.dashboard-tile:hover .dashboard-tile__icon{
  transform: translateY(-2px) scale(1.04);
}

.dashboard-tile--profile{
  --dashboard-icon-bg: #e4f2ed;
  --dashboard-icon-color: #26715d;
}

.dashboard-tile--recipients{
  --dashboard-icon-bg: #e8efff;
  --dashboard-icon-color: #315fa8;
}

.dashboard-tile--requests{
  --dashboard-icon-bg: #fff0e8;
  --dashboard-icon-color: #a4482a;
}

.dashboard-tile--documents{
  --dashboard-icon-bg: #fff6d8;
  --dashboard-icon-color: #8a6500;
}

.dashboard-tile--messages{
  --dashboard-icon-bg: #e4f5f3;
  --dashboard-icon-color: #14746d;
}

.dashboard-tile--cases{
  --dashboard-icon-bg: #f1eafb;
  --dashboard-icon-color: #7047a0;
}

.dashboard-tile--profiles{
  grid-column: 1 / -1;
  cursor: default;
}

.dashboard-tile--profiles:hover{
  transform: none;
  box-shadow: none;
}

.dashboard-profile-links{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.dashboard-profile-links a{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.dashboard-profile-links a:hover,
.dashboard-profile-links a:focus-visible{
  border-color: var(--c-primary);
  background: #ffffff;
  color: var(--c-primary-dark);
  box-shadow: 0 5px 14px rgba(15,23,42,.08);
  outline: none;
  text-decoration: none;
}

@media (max-width: 960px){
  .dashboard-tiles{
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px){
  .dashboard-faq-callout{
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .dashboard-faq-callout p{
    font-size: 15px;
  }

  .dashboard-faq-callout__icon{
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

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

/* =========================================
   CARE ACCOUNT HOLDER FAQ
========================================= */

.faq-cah-page{
  width: min(1160px, calc(100% - 36px));
  margin: 48px auto 72px;
}

.faq-cah-hero{
  padding: 34px 38px;
  border: 1px solid #b8d2c8;
  border-left: 6px solid var(--psw-accent);
  border-radius: 8px;
  background: #f4faf7;
}

.faq-cah-breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--c-muted);
  font-size: 14px;
}

.faq-cah-breadcrumbs a{
  color: var(--c-primary-dark);
  font-weight: 700;
}

.faq-cah-eyebrow,
.faq-cah-kicker{
  margin: 0 0 6px;
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.faq-cah-hero h1{
  max-width: 760px;
  margin: 0;
  color: var(--c-heading);
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.faq-cah-lead{
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--c-text);
  font-size: 19px;
  line-height: 1.65;
}

.faq-cah-hero-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
}

.faq-cah-hero-links a{
  color: var(--c-primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.faq-cah-layout{
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  margin-top: 40px;
  align-items: start;
}

.faq-cah-nav-wrap{
  position: sticky;
  top: 24px;
}

.faq-cah-nav{
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #ffffff;
}

.faq-cah-nav strong{
  display: block;
  margin-bottom: 10px;
  color: var(--c-heading);
  font-size: 15px;
}

.faq-cah-nav ol{
  margin: 0;
  padding-left: 22px;
}

.faq-cah-nav li{
  margin: 8px 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.4;
}

.faq-cah-nav a{
  color: var(--c-primary-dark);
  text-decoration: none;
}

.faq-cah-nav a:hover,
.faq-cah-nav a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-cah-content{
  min-width: 0;
}

.faq-cah-section{
  scroll-margin-top: 24px;
  padding: 0 0 46px;
  margin: 0 0 46px;
  border-bottom: 1px solid var(--c-border);
}

.faq-cah-section:last-child{
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.faq-cah-section-heading{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.faq-cah-section-number{
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 19px;
  font-weight: 800;
}

.faq-cah-section-heading h2{
  margin: 0;
  color: var(--c-heading);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.faq-cah-section > p,
.faq-cah-section li,
.faq-cah-section dd{
  font-size: 16px;
  line-height: 1.65;
}

.faq-cah-section > p{
  max-width: 76ch;
}

.faq-cah-section h3{
  margin: 28px 0 10px;
  color: var(--c-heading);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.faq-cah-simple-steps,
.faq-cah-action-list,
.faq-cah-wizard-list,
.faq-cah-check-list{
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: faq-step;
}

.faq-cah-simple-steps li,
.faq-cah-action-list li,
.faq-cah-wizard-list li{
  position: relative;
  min-height: 36px;
  padding: 5px 0 18px 48px;
  counter-increment: faq-step;
}

.faq-cah-simple-steps li::before,
.faq-cah-action-list li::before,
.faq-cah-wizard-list li::before{
  content: counter(faq-step);
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #b8d2c8;
  border-radius: 50%;
  background: #f4faf7;
  color: var(--c-primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.faq-cah-wizard-list--request li::before{
  border-color: #c5d4ed;
  background: #eef3ff;
  color: #315fa8;
}

.faq-cah-check-list li{
  position: relative;
  padding: 5px 0 16px 34px;
}

.faq-cah-check-list li::before{
  content: "\2713";
  position: absolute;
  top: 5px;
  left: 0;
  color: #1f614f;
  font-weight: 900;
}

.faq-cah-split{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 24px 0;
  padding: 22px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.faq-cah-split h3{
  margin-top: 0;
}

.faq-cah-split p{
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
}

.faq-cah-callout{
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-left-width: 5px;
  border-radius: 6px;
  background: #ffffff;
}

.faq-cah-callout strong{
  display: block;
  margin-bottom: 4px;
  color: var(--c-heading);
}

.faq-cah-callout p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.faq-cah-callout--info{
  border-left-color: #315fa8;
  background: #f5f8ff;
}

.faq-cah-callout--secure{
  border-left-color: #1f614f;
  background: #f4faf7;
}

.faq-cah-callout--warning{
  border-left-color: #b88718;
  background: #fffaf0;
}

.faq-cah-status-list{
  margin: 22px 0;
}

.faq-cah-status-list > div{
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
}

.faq-cah-status-list > div:first-child{
  border-top: 1px solid var(--c-border);
}

.faq-cah-status-list dt{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-heading);
  font-weight: 800;
}

.faq-cah-status-list dd{
  margin: 0;
}

.faq-cah-status-dot{
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.faq-cah-status-dot--pending{ background: #b88718; }
.faq-cah-status-dot--approved{ background: #26715d; }
.faq-cah-status-dot--rejected{ background: #b3422d; }

.faq-cah-table-wrap{
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 6px;
}

.faq-cah-table{
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

.faq-cah-table th,
.faq-cah-table td{
  padding: 13px 14px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.faq-cah-table thead th{
  background: #f5f7f8;
  color: var(--c-heading);
  font-weight: 800;
}

.faq-cah-table tbody th{
  color: var(--c-primary-dark);
  white-space: nowrap;
}

.faq-cah-table tr:last-child th,
.faq-cah-table tr:last-child td{
  border-bottom: 0;
}

.faq-cah-questions{
  border-top: 1px solid var(--c-border);
}

.faq-cah-questions details{
  border-bottom: 1px solid var(--c-border);
}

.faq-cah-questions summary{
  position: relative;
  padding: 18px 42px 18px 0;
  color: var(--c-heading);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}

.faq-cah-questions summary::after{
  content: "+";
  position: absolute;
  top: 14px;
  right: 4px;
  color: var(--c-primary-dark);
  font-size: 24px;
  line-height: 1;
}

.faq-cah-questions details[open] summary::after{
  content: "-";
}

.faq-cah-questions details p{
  max-width: 74ch;
  margin: 0;
  padding: 0 42px 18px 0;
  font-size: 15px;
  line-height: 1.65;
}

.faq-cah-final-action{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #b8d2c8;
  border-radius: 8px;
  background: #f4faf7;
}

.faq-cah-final-action h2{
  margin: 0 0 6px;
  font-size: 24px;
}

.faq-cah-final-action p{
  margin: 0;
  font-size: 15px;
}

.faq-cah-final-action > a{
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--c-primary-dark);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.faq-cah-final-action > a:hover,
.faq-cah-final-action > a:focus-visible{
  background: var(--c-heading);
  color: #ffffff;
}

@media (max-width: 900px){
  .faq-cah-layout{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-cah-nav-wrap{
    position: static;
  }

  .faq-cah-nav ol{
    columns: 2;
    column-gap: 32px;
  }
}

@media (max-width: 620px){
  .faq-cah-page{
    width: min(100% - 24px, 1160px);
    margin-top: 24px;
  }

  .faq-cah-hero{
    padding: 24px 20px;
  }

  .faq-cah-hero h1{
    font-size: 34px;
  }

  .faq-cah-lead{
    font-size: 17px;
  }

  .faq-cah-nav ol{
    columns: 1;
  }

  .faq-cah-section-heading{
    align-items: flex-start;
  }

  .faq-cah-section-heading h2{
    font-size: 26px;
  }

  .faq-cah-split,
  .faq-cah-status-list > div{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .faq-cah-final-action{
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================
   GENERAL FAQ
========================================= */

.faq-general-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.faq-general-actions a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--c-primary-dark);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.faq-general-actions__primary{
  background: var(--c-primary-dark);
  color: #fff;
}

.faq-general-actions__primary:hover,
.faq-general-actions__primary:focus-visible{
  background: var(--c-heading);
  color: #fff;
}

.faq-general-actions__secondary{
  background: #fff;
  color: var(--c-primary-dark);
}

.faq-general-actions__secondary:hover,
.faq-general-actions__secondary:focus-visible{
  background: #edf6f2;
  color: var(--c-heading);
}

.faq-general-terms > div{
  grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr);
}

.faq-general-source-note{
  padding: 14px 16px;
  border-left: 4px solid #56769c;
  background: #f4f7fb;
  font-size: 14px !important;
}

.faq-general-audiences{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.faq-general-audience{
  position: relative;
  min-height: 170px;
  padding: 20px;
  border: 1px solid #b8d2c8;
  border-top: 4px solid #26715d;
  border-radius: 7px;
  background: #fff;
}

.faq-general-audience--soon{
  border-color: #d6caa8;
  border-top-color: #a87918;
  background: #fffdf8;
}

.faq-general-audience__status{
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.faq-general-audience__status--available{
  color: #1f614f;
}

.faq-general-audience__status--soon{
  color: #815a0f;
}

.faq-general-audience h3{
  margin: 0 0 8px;
  font-size: 19px;
}

.faq-general-audience p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.faq-general-security-flow{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.faq-general-security-flow > div{
  padding: 20px;
  border-right: 1px solid var(--c-border);
}

.faq-general-security-flow > div:first-child{
  padding-left: 0;
}

.faq-general-security-flow > div:last-child{
  padding-right: 0;
  border-right: 0;
}

.faq-general-security-flow h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-general-security-flow p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.faq-general-guide-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.faq-general-guide-links a{
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid #b8d2c8;
  border-radius: 7px;
  background: #f7fbf9;
  color: var(--c-heading);
  text-decoration: none;
}

.faq-general-guide-links a:hover,
.faq-general-guide-links a:focus-visible{
  border-color: var(--c-primary-dark);
  background: #edf6f2;
}

.faq-general-guide-links span{
  color: var(--c-primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.faq-general-guide-links strong{
  font-size: 19px;
  line-height: 1.3;
}

.faq-general-guide-links small{
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.6;
}

.faq-general-final-links{
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-general-final-links a{
  padding: 10px 14px;
  border: 1px solid var(--c-primary-dark);
  border-radius: 6px;
  background: var(--c-primary-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.faq-general-final-links a:last-child{
  background: #fff;
  color: var(--c-primary-dark);
}

.faq-general-final-links a:hover,
.faq-general-final-links a:focus-visible{
  background: var(--c-heading);
  color: #fff;
}

@media (max-width: 760px){
  .faq-general-audiences,
  .faq-general-guide-links{
    grid-template-columns: 1fr;
  }

  .faq-general-security-flow{
    grid-template-columns: 1fr;
  }

  .faq-general-security-flow > div,
  .faq-general-security-flow > div:first-child,
  .faq-general-security-flow > div:last-child{
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-border);
  }

  .faq-general-security-flow > div:last-child{
    border-bottom: 0;
  }

  .faq-general-terms > div{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px){
  .faq-general-actions a,
  .faq-general-final-links,
  .faq-general-final-links a{
    width: 100%;
  }

  .faq-general-final-links a{
    text-align: center;
  }
}

/* =========================================
   PSW Availability
========================================= */

.psw-availability-page{
  width: min(1100px, calc(100% - 36px));
  margin: 60px auto;
}

.psw-availability-page > h1{
  margin: 0 0 24px;
  color: var(--c-heading);
}

.psw-availability-review-notice{
  padding: 20px 22px;
  border: 1px solid #E3C4BB;
  border-left: 5px solid var(--psw-accent);
  border-radius: 8px;
  background: var(--c-accent-soft);
}

.psw-availability-review-notice h2{
  margin: 0 0 8px;
  color: #8B3428;
  font-size: 19px;
  letter-spacing: 0;
}

.psw-availability-review-notice p{
  margin: 0;
  max-width: 850px;
  line-height: 1.6;
  color: var(--c-text);
}

.psw-availability-service-period{
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}

.psw-availability-section-heading h2{
  margin: 0 0 6px;
  color: var(--c-heading);
  font-size: 26px;
  letter-spacing: 0;
}

.psw-availability-section-heading p{
  margin: 0;
  color: var(--c-muted);
}

.psw-availability-message{
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 650;
}

.psw-availability-message--error{
  border: 1px solid #E3C4BB;
  background: var(--c-accent-soft);
  color: #8B3428;
}

.psw-availability-message--success{
  border: 1px solid #B8D2C8;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.psw-availability-form{
  margin-top: 24px;
}

.psw-availability-date-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 820px;
}

.psw-availability-field label{
  display: block;
  margin-bottom: 8px;
  color: var(--c-heading);
  font-weight: 750;
}

.psw-availability-optional{
  margin-left: 6px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
}

.psw-availability-field input[type="date"]{
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #BECBC5;
  border-radius: 8px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
}

.psw-availability-field input[type="date"]:focus{
  border-color: var(--psw-primary);
  outline: 3px solid rgba(53, 106, 91, 0.16);
  outline-offset: 1px;
}

.psw-availability-field-note{
  margin: 8px 0 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.5;
}

.psw-weekly-availability{
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}

.psw-weekly-schedule{
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.psw-schedule-day{
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 112px;
  gap: 18px;
  align-items: start;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #F8FAF9;
}

.psw-schedule-day.is-enabled{
  border-color: #B8D2C8;
  background: #fff;
}

.psw-schedule-day__heading{
  min-width: 0;
}

.psw-schedule-day__toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-heading);
  font-weight: 750;
  cursor: pointer;
}

.psw-schedule-day__toggle input{
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--psw-primary);
}

.psw-schedule-day__status{
  display: block;
  margin: 5px 0 0 28px;
  color: var(--c-muted);
  font-size: 12px;
}

.psw-schedule-day.is-enabled .psw-schedule-day__status{
  color: var(--psw-primary);
  font-weight: 650;
}

.psw-schedule-day__windows{
  display: grid;
  gap: 10px;
}

.psw-schedule-day:not(.is-enabled) .psw-schedule-day__windows{
  display: none;
}

.psw-schedule-window{
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(130px, 180px) 36px;
  gap: 10px;
  align-items: end;
}

.psw-schedule-window label{
  min-width: 0;
}

.psw-schedule-window label span{
  display: block;
  margin-bottom: 5px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 650;
}

.psw-schedule-window input[type="time"]{
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #BECBC5;
  border-radius: 8px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
}

.psw-schedule-window input[type="time"]:focus{
  border-color: var(--psw-primary);
  outline: 3px solid rgba(53, 106, 91, 0.16);
  outline-offset: 1px;
}

.psw-schedule-remove{
  width: 36px;
  height: 42px;
  padding: 0;
  border: 1px solid #E3C4BB;
  border-radius: 8px;
  background: #fff;
  color: #8B3428;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.psw-schedule-remove:hover{
  background: var(--c-accent-soft);
}

.psw-schedule-add{
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #B8D2C8;
  border-radius: 8px;
  background: #fff;
  color: var(--psw-primary-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.psw-schedule-add:hover:not(:disabled){
  background: var(--c-primary-soft);
}

.psw-schedule-add:disabled{
  border-color: var(--c-border);
  color: #8B9691;
  cursor: default;
  opacity: .65;
}

.psw-availability-save-button{
  min-height: 46px;
  margin-top: 24px;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--psw-primary);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.psw-availability-save-button:hover{
  background: var(--psw-primary-dark);
}

@media (max-width: 700px){
  .psw-availability-page{
    margin: 36px auto;
  }

  .psw-availability-date-grid{
    grid-template-columns: 1fr;
  }

  .psw-schedule-day{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .psw-schedule-window{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
  }

  .psw-schedule-add{
    width: 100%;
  }
}

@media (max-width: 430px){
  .psw-schedule-window{
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .psw-schedule-window label{
    grid-column: 1;
  }

  .psw-schedule-remove{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* =========================================
   Profile + Care Recipients layout tweaks
   ========================================= */

/* Inner content card width (same as dashboard cards) */
.card > h1 + .card {
  max-width: 1100px; /* adjust if dashboard width differs */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Hide duplicate inner H2 titles */
.card > h1 + .card > h2 {
  display: none;
}

/* Style PHI / Sensitive labels */
.card > h1 + .card label span.muted {
  color: var(--c-accent);
  font-size: 12px;
}

/* Keep helper muted text unchanged */
.card > h1 + .card .mfp-field > .muted,
.card > h1 + .card #mfp_status,
.card > h1 + .card #mpp_status,
.card > h1 + .card .mfp-avail > .muted {
  color: inherit;
  font-size: inherit;
}

/* =========================================
   Hide debug blocks
   ========================================= */

pre[id$="_debug"] {
  display: none !important;
}

/* =========================================
   Care Recipients table width
   ========================================= */

.card > h1 + .card table.widefat {
  width: 100%;
}

/* =========================================
   Staff Documents moderation dashboard
   ========================================= */

.match-staff-documents-page .msd-filters-card {
  position: sticky;
  top: 24px;
  z-index: 20;
}

.match-staff-documents-page .msd-table th,
.match-staff-documents-page .msd-table td {
  vertical-align: top;
}

.match-staff-documents-page .msd-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.match-staff-documents-page .msd-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.match-staff-documents-page .msd-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.match-staff-documents-page #msd-tabulator-table .tabulator-header .tabulator-col {
  min-height: 31px;
}

.match-staff-documents-page #msd-tabulator-table .tabulator-col-title,
.match-staff-documents-page #msd-tabulator-table .tabulator-cell,
.match-staff-documents-page #msd-tabulator-table .tabulator-group {
  font-size: 10.5px;
  line-height: 1.2;
}

.match-staff-documents-page #msd-tabulator-table .msd-group-count {
  font-weight: 500;
  color: var(--tabulator-group-text-muted);
}

.match-staff-documents-page #msd-tabulator-table .tabulator-cell {
  padding: 4px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-staff-documents-page #msd-tabulator-table .tabulator-header-filter input,
.match-staff-documents-page #msd-tabulator-table .tabulator-header-filter select {
  min-height: 26px;
  padding: 2px 3px;
  font-size: 9.5px;
}

.match-staff-documents-page .msd-row-actions,
.match-staff-documents-page .msd-verification-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.match-staff-documents-page .msd-verification-form {
  flex: 1 1 auto;
}

.match-staff-documents-page .msd-status-select,
.match-staff-documents-page .msd-note-input {
  min-height: 25px;
  height: 25px;
  margin: 0;
  padding: 2px 3px;
  border-radius: 4px;
  font-size: 9.5px;
  line-height: 1.2;
}

.match-staff-documents-page .msd-status-select {
  flex: 0 0 68px;
  min-width: 68px;
  width: 68px;
}

.match-staff-documents-page .msd-note-input {
  flex: 1 1 70px;
  min-width: 54px;
  width: 70px;
}

.match-staff-documents-page .btn.msd-action-btn {
  min-height: 25px;
  margin: 0;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.match-staff-documents-page .msd-preview-btn {
  background: #1686dc;
  color: #fff;
}

.match-staff-documents-page .msd-delete-btn {
  background: #dc2626;
  color: #fff;
}

.match-staff-documents-page .msd-badge--pending {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.match-staff-documents-page .msd-badge--approved {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.match-staff-documents-page .msd-badge--rejected {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.match-staff-documents-page .msd-preview-modal[hidden] {
  display: none;
}

.match-staff-documents-page .msd-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.match-staff-documents-page .msd-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.match-staff-documents-page .msd-preview-dialog {
  position: relative;
  max-width: 1000px;
  margin: 4vh auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.match-staff-documents-page .msd-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.match-staff-documents-page .msd-preview-body {
  padding: 18px;
  max-height: 82vh;
  overflow: auto;
}

.match-staff-documents-page .msd-table-wrap {
  overflow: auto;
}

@media (max-width: 900px) {
  .match-staff-documents-page .msd-filters-form {
    display: block !important;
  }

  .match-staff-documents-page .msd-filters-form > div {
    margin-bottom: 12px;
  }

  .match-staff-documents-page .msd-preview-dialog {
    margin: 2vh 12px;
  }
}

/* Hide duplicated inner H1 on family/provider documents pages */
.card > h1 + .card > h1 {
  display: none;
}

/* =========================================
   Documents pages cleanup
   ========================================= */

.card > h1 + .card {
  margin-top: 0;
}

.card > h1 + .card > .card:first-of-type {
  margin-top: 0 !important;
}


.card > h1 + .card:not(.match-staff-documents-page) > .card {
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.card > h1 + .card table.widefat {
  width: 100%;
  border-collapse: collapse;
}

.card > h1 + .card table.widefat th,
.card > h1 + .card table.widefat td {
  vertical-align: top;
}

.card > h1 + .card table.widefat td {
  line-height: 1.35;
}

.card > h1 + .card table.widefat tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* === Popover Actions Layout === */

.mpc-shift-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mpc-shift-actions .button {
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
}

/* primary-style */
.mpc-shift-actions .button {
  background: var(--c-primary);
  color: #fff;
  border: none;
}

.mpc-shift-actions .button:hover {
  background: var(--c-primary-dark);
}

/* cancel / secondary */
.mpc-shift-actions .mpc-btn-cancel,
.mpc-shift-actions .mpc-btn-cancel-shift {
  background: #f3f4f6;
  color: #111827;
}

.mpc-shift-actions .mpc-btn-cancel:hover,
.mpc-shift-actions .mpc-btn-cancel-shift:hover {
  background: #e5e7eb;
}

/* danger  */
.mpc-shift-actions .button.is-danger {
  background: #dc2626;
}

.mpc-shift-actions .button.is-danger:hover {
  background: #b91c1c;
}

/* === Form inside popover === */

.mpc-shift-reschedule-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.mpc-shift-reschedule-form input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.mpc-shift-reschedule-form .button {
  width: 100%;
}

/* === Compact striped tables === */

table.striped {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

/* header */
table.striped thead th {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  background: #f9fafb;
  font-weight: 600;
}

/* body cells */
table.striped tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}

/* zebra stripes */
table.striped tbody tr:nth-child(odd) {
  background: #ffffff;
}

table.striped tbody tr:nth-child(even) {
  background: var(--c-bg);
}

/* hover */
table.striped tbody tr:hover {
  background: var(--c-primary-soft);
}

/* tighter rows if inside cards */
.card table.striped tbody td {
  padding: 5px 8px;
}

table.striped td:first-child {
  font-weight: 500;
}


/* =========================================
   SHIFT / CALENDAR COMMON UI
========================================= */

.fc-daygrid-event-dot {
  display: none !important;
}

.fc-timegrid-slot.fc-timegrid-slot-lane:empty,
.fc-timegrid-axis:empty {
  display: none;
}

.fc-event-main-frame {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-event-time,
.fc-event-title {
  display: block !important;
  width: fit-content;
  font-size: 11px;
  line-height: 1.2;
}

.match-fc-event-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-fc-event-lines .match-fc-time {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.match-fc-event-lines .match-fc-title {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

/* =========================================
   PROVIDER / UNIFIED POPOVER (.mpc-*)
========================================= */

.mpc-shift-popover {
  position: absolute;
  z-index: 99999;
  min-width: 220px;
  max-width: 280px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 12px;
}

.mpc-shift-popover-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.mpc-shift-popover-time {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.mpc-shift-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 28px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 10px;
}

.mpc-shift-actions .button {
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.mpc-shift-actions .button:not(.is-danger):not(.is-success):not(.is-neutral) {
  background: var(--c-primary);
  color: #fff;
}

.mpc-shift-actions .button:not(.is-danger):not(.is-success):not(.is-neutral):hover {
  background: var(--c-primary-dark);
}

.mpc-shift-actions .button.is-danger {
  background: #dc2626;
  color: #fff;
}

.mpc-shift-actions .button.is-danger:hover {
  background: #b91c1c;
}

.mpc-shift-actions .button.is-success,
.mpc-shift-actions .mpc-btn-message,
.mpc-shift-actions .mpc-btn-message-recipient,
.mpc-shift-actions .mpc-btn-message-provider {
  background: #16a34a;
  color: #fff;
}

.mpc-shift-actions .button.is-success:hover,
.mpc-shift-actions .mpc-btn-message:hover,
.mpc-shift-actions .mpc-btn-message-recipient:hover,
.mpc-shift-actions .mpc-btn-message-provider:hover {
  background: #15803d;
}

.mpc-shift-actions .button.is-neutral,
.mpc-btn-close-menu {
  background: #f3f4f6;
  color: #111827;
}

.mpc-btn-close-menu {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.mpc-shift-actions .button.is-neutral:hover,
.mpc-btn-close-menu:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}

.mpc-divider {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.mpc-shift-reschedule-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.mpc-shift-reschedule-form input[type="date"],
.mpc-shift-reschedule-form input[type="time"] {
  width: 100%;
  box-sizing: border-box;
}

.mpc-shift-message-form {
  display: none;
  margin-top: 10px;
}

.mpc-shift-message-form input[type="text"],
.mpc-shift-message-form textarea,
.mpc-shift-message-form input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mpc-shift-message-form textarea {
  resize: vertical;
  min-height: 110px;
}

.mpc-msg-status,
.mpc-shift-actions-msg {
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-muted);
}

.mpc-msg-status.is-error,
.mpc-shift-actions-msg.is-error {
  color: #b42318;
}

.mpc-msg-status.is-success,
.mpc-shift-actions-msg.is-success {
  color: #065f46;
}

/* =========================================
   FAMILY LEGACY POPOVER (.match-shift-*)
   Keep until family shortcodes are fully migrated
========================================= */

.match-shift-popover {
  position: absolute;
  z-index: 99999;
  min-width: 220px;
  max-width: 280px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 12px;
}

.match-shift-popover-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.match-shift-popover-time {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.match-shift-popover-actions {
  min-height: 28px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 10px;
}

.match-shift-popover-muted {
  font-size: 12px;
  color: var(--c-muted);
}

.match-shift-popover-btns {
  display: grid;
  gap: 8px;
}

.match-shift-popover-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.match-shift-popover-btn.is-primary {
  background: var(--c-primary);
  color: #fff;
}

.match-shift-popover-btn.is-primary:hover {
  background: var(--c-primary-dark);
}

.match-shift-popover-btn.is-danger {
  background: #dc2626;
  color: #fff;
}

.match-shift-popover-btn.is-danger:hover {
  background: #b91c1c;
}

.match-shift-popover-btn.is-success {
  background: #16a34a;
  color: #fff;
}

.match-shift-popover-btn.is-success:hover {
  background: #15803d;
}

.match-shift-message-form {
  display: none;
  margin-top: 10px;
}

.match-shift-message-form.is-open {
  display: block;
}

.match-shift-message-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 6px 0;
}

.match-shift-message-form input[type="text"],
.match-shift-message-form textarea,
.match-shift-message-form input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.match-shift-message-form input[type="text"],
.match-shift-message-form textarea {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.match-shift-message-form textarea {
  resize: vertical;
  min-height: 110px;
}

.match-shift-message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.match-shift-message-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-muted);
}

.match-shift-message-status.is-error {
  color: #b42318;
}

.match-shift-message-status.is-success {
  color: #065f46;
}

.match-shift-popover-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.match-shift-popover-close {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  background: #f3f4f6;
  color: #111827;
}

.match-shift-popover-close:hover {
  background: #e5e7eb;
  color: #111827;
}

/* CLOSE MENU (унифицированный) */
.sp-btn-close-menu,
.mpc-btn-close-menu,
.match-shift-popover-close {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border: none !important;
}

.sp-btn-close-menu:hover,
.mpc-btn-close-menu:hover,
.match-shift-popover-close:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}

/* =========================================
   STAFF SHIFT POPOVER: RESCHEDULE FORM SPACING
========================================= */

.mpc-shift-popover .sp-reschedule-form {
  gap: 10px;
  margin-top: 10px;
}

.mpc-shift-popover .sp-reschedule-form > input {
  margin: 0;
}

.mpc-shift-popover .sp-reschedule-form > div {
  display: flex;
  gap: 8px;
  margin-top: 6px; /* опускаем Save / Cancel чуть ниже */
}

.mpc-shift-popover .sp-btn-close-menu {
  margin-top: 12px;
}

.sp-transfer-loading {
  display: none;
  min-height: 180px;
  padding: 26px 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--c-muted);
  text-align: center;
}

.sp-transfer-loading strong {
  color: var(--c-heading);
  font-size: 16px;
}

.sp-transfer-loading span:last-child {
  max-width: 220px;
  font-size: 13px;
  line-height: 1.4;
}

.sp-transfer-loading__spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: match-register-spin .7s linear infinite;
}

.mpc-shift-popover.is-transfer-loading .mpc-shift-popover-title,
.mpc-shift-popover.is-transfer-loading .mpc-shift-popover-time,
.mpc-shift-popover.is-transfer-loading .sp-main-buttons,
.mpc-shift-popover.is-transfer-loading .sp-reschedule-form,
.mpc-shift-popover.is-transfer-loading .sp-message-form,
.mpc-shift-popover.is-transfer-loading .sp-actions-msg,
.mpc-shift-popover.is-transfer-loading .mpc-shift-actions > hr,
.mpc-shift-popover.is-transfer-loading .sp-btn-close-menu {
  display: none !important;
}

.mpc-shift-popover.is-transfer-loading .sp-transfer-loading {
  display: flex;
}

.mpc-shift-popover.is-transfer-loading .mpc-shift-actions {
  border-top: 0;
  padding-top: 0;
}

/* Staff shift transfer result */
body.match-transfer-result-modal-open {
  overflow: hidden;
}

.match-transfer-result-modal {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.match-transfer-result-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 38, 33, .68);
  backdrop-filter: blur(2px);
}

.match-transfer-result-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 32, 27, .32);
}

.match-transfer-result-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  color: var(--c-heading);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.match-transfer-result-modal__close:hover,
.match-transfer-result-modal__close:focus-visible {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.match-transfer-result-modal__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 72px 22px 26px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-card);
}

.match-transfer-result-modal__success-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.match-transfer-result-modal__eyebrow {
  margin: 0 0 3px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.match-transfer-result-modal__dialog h2 {
  margin: 0;
  color: var(--c-heading);
  font-size: 24px;
  line-height: 1.25;
}

.match-transfer-result-modal__body {
  padding: 28px 26px 30px;
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.55;
}

.match-transfer-result-modal__body p {
  margin: 0;
}

.match-transfer-result-modal__request strong {
  color: var(--c-heading);
}

.match-transfer-result-modal__summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #c9ddd5;
  border-radius: 6px;
  background: var(--c-primary-soft);
  color: var(--c-heading);
}

.match-transfer-result-modal__count {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-primary-dark);
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(40, 82, 70, .12);
}

.match-transfer-result-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--c-border);
  background: var(--c-card);
}

.match-transfer-result-modal__actions .btn {
  min-height: 44px;
  margin: 0;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .match-transfer-result-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .match-transfer-result-modal__dialog {
    max-height: calc(100vh - 24px);
  }

  .match-transfer-result-modal__header {
    align-items: flex-start;
    padding: 20px 62px 18px 20px;
  }

  .match-transfer-result-modal__success-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .match-transfer-result-modal__body {
    padding: 22px 20px 24px;
  }

  .match-transfer-result-modal__summary {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 14px;
  }

  .match-transfer-result-modal__count {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .match-transfer-result-modal__actions {
    flex-direction: column;
    padding: 16px 20px 20px;
  }

  .match-transfer-result-modal__actions .btn {
    width: 100%;
  }
}

/* Invite button → green like success */
.msm-invite-btn {
  background: #16a34a;       /* green */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 8px;
}

.msm-invite-btn:hover {
  background: #15803d;
}

.msm-invite-btn:active {
  background: #166534;
}

.msm-agency__action .msm-opportunity-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #1f6f5f;
  border-radius: 8px;
  background: #287565;
  color: #fff;
  box-shadow: 0 8px 18px rgba(40, 117, 101, 0.22);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.msm-agency__action .msm-opportunity-btn:hover:not(:disabled),
.msm-agency__action .msm-opportunity-btn:focus-visible {
  border-color: #175c4f;
  background: #1f6f5f;
  box-shadow: 0 10px 22px rgba(31, 111, 95, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.msm-agency__action .msm-opportunity-btn:focus-visible {
  outline: 3px solid rgba(52, 117, 101, 0.32);
  outline-offset: 2px;
}

.msm-agency__action .msm-opportunity-btn:active:not(:disabled) {
  background: #175c4f;
  box-shadow: 0 5px 12px rgba(31, 111, 95, 0.22);
  transform: translateY(0);
}

.msm-agency__action .msm-opportunity-btn:disabled {
  border-color: #9fb7b0;
  background: #9fb7b0;
  box-shadow: none;
  color: #f7fbfa;
  cursor: wait;
  opacity: .86;
}

/* =========================================
   INVITE ACTION BUTTONS (BIG)
========================================= */

/* Base size */
#mpi_accept_btn,
#mpi_decline_btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
}

/* ACCEPT → green */
#mpi_accept_btn {
  background: #16a34a;
  color: #fff;
  border: none;
}

#mpi_accept_btn:hover {
  background: #15803d;
}

/* DECLINE → red */
#mpi_decline_btn {
  background: #dc2626;
  color: #fff;
  border: none;
}

#mpi_decline_btn:hover {
  background: #b91c1c;
}


.mpc-provider-cases-apply-btn,
.mfc-family-cases-apply-btn,
.msc-staff-cases-apply-btn {
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  border: none;
}

/* Past shifts: light grey background, dark grey text */
.fc .fc-event.fc-event-past,
.fc .fc-daygrid-event[aria-disabled="true"] {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #4b5563 !important;
  cursor: default !important;
}

.fc .fc-event.fc-event-past .fc-event-time,
.fc .fc-event.fc-event-past .fc-event-title,
.fc .fc-daygrid-event[aria-disabled="true"] .fc-event-time,
.fc .fc-daygrid-event[aria-disabled="true"] .fc-event-title {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
}

/* Family calendar: past shifts -> light grey */
.fc .fc-daygrid-day.fc-day-past .fc-daygrid-event,
.fc .fc-daygrid-event.fc-event-past,
.fc .fc-daygrid-event[aria-disabled="true"] {
  background: #f3f4f6 !important;
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #4b5563 !important;
  cursor: default !important;
}

/* Inner custom blocks used in family calendars */
.fc .fc-daygrid-day.fc-day-past .fc-daygrid-event .match-fc-time,
.fc .fc-daygrid-day.fc-day-past .fc-daygrid-event .match-fc-title,
.fc .fc-daygrid-event.fc-event-past .match-fc-time,
.fc .fc-daygrid-event.fc-event-past .match-fc-title,
.fc .fc-daygrid-event[aria-disabled="true"] .match-fc-time,
.fc .fc-daygrid-event[aria-disabled="true"] .match-fc-title {
  background: #f3f4f6 !important;
  background-color: #f3f4f6 !important;
  color: #4b5563 !important;
  border-color: #d1d5db !important;
}

/* Optional: if some family views still use standard FC inner classes */
.fc .fc-daygrid-day.fc-day-past .fc-daygrid-event .fc-event-time,
.fc .fc-daygrid-day.fc-day-past .fc-daygrid-event .fc-event-title,
.fc .fc-daygrid-event.fc-event-past .fc-event-time,
.fc .fc-daygrid-event.fc-event-past .fc-event-title,
.fc .fc-daygrid-event[aria-disabled="true"] .fc-event-time,
.fc .fc-daygrid-event[aria-disabled="true"] .fc-event-title {
  background: #f3f4f6 !important;
  background-color: #f3f4f6 !important;
  color: #4b5563 !important;
  border-color: #d1d5db !important;
}

.mpc-req-ok,
.mpc-req-bad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  vertical-align: -2px;
}

.mpc-req-ok {
  color: #16a34a; /* green */
}

.mpc-req-bad {
  color: #dc2626; /* red */
}

.mpc-req-ok svg,
.mpc-req-bad svg {
  display: block;
}

/* =========================================
   PSW PROFILE WIZARD
========================================= */

.psw-profile-wizard{
  width: 100%;
  max-width: 760px;
  margin: 12px auto;
}

.psw-profile-wizard__shell{
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(41, 54, 49, .08);
}

.psw-profile-wizard__header{
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--c-border);
}

.psw-profile-wizard__step{
  margin-bottom: 10px;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.psw-profile-wizard__progress{
  width: 100%;
  height: 5px;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--c-primary-soft);
  border-radius: 3px;
}

.psw-profile-wizard__progress span{
  display: block;
  height: 100%;
  background: var(--c-primary);
}

.psw-profile-wizard h1{
  margin: 0;
  color: var(--c-heading);
  font-size: 30px;
  line-height: 1.2;
}

.psw-profile-wizard form{
  padding: 28px 32px 0;
}

.psw-profile-wizard__field{
  margin-bottom: 22px;
}

.psw-profile-wizard__divider{
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #d5dfdb;
}

.psw-profile-wizard__field label{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--c-heading);
  font-size: 15px;
  font-weight: 700;
}

.psw-profile-wizard__field input:not([type="checkbox"]):not([type="radio"]),
.psw-profile-wizard__field select,
.psw-profile-wizard__field textarea{
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #b9c8c2;
  border-radius: 6px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
}

.psw-profile-wizard__field textarea{
  resize: vertical;
}

.psw-profile-wizard__field input:not([type="checkbox"]):not([type="radio"]):focus,
.psw-profile-wizard__field select:focus,
.psw-profile-wizard__field textarea:focus{
  outline: 3px solid rgba(53, 106, 91, .16);
  border-color: var(--c-primary);
}

.psw-profile-wizard__field.has-error input:not([type="checkbox"]):not([type="radio"]),
.psw-profile-wizard__field.has-error select,
.psw-profile-wizard__field.has-error textarea{
  border-color: #a83f32;
}

.psw-profile-wizard__field .psw-recipient-date-display{
  padding-right: 44px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-primary) 50%),
    linear-gradient(135deg, var(--c-primary) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.psw-profile-wizard__age-summary{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--c-heading);
}

.psw-profile-wizard__age-summary[hidden]{
  display: none;
}

.psw-profile-wizard__age-summary span{
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--c-primary-soft);
  font-size: 13px;
  font-weight: 700;
}

.flatpickr-calendar{
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(41, 54, 49, .18);
  font-family: inherit;
}

.flatpickr-current-month,
.flatpickr-weekday{
  color: var(--c-heading);
}

.flatpickr-day.today{
  border-color: var(--c-accent);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus{
  border-color: var(--c-primary);
  background: var(--c-primary);
}

.psw-profile-wizard__field--choices{
  min-width: 0;
  padding: 0;
  border: 0;
}

.psw-profile-wizard__field--choices legend{
  width: 100%;
  margin-bottom: 12px;
  color: var(--c-heading);
  font-size: 15px;
  font-weight: 700;
}

.psw-profile-wizard__choices{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.psw-profile-wizard__choice{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 9px 11px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text) !important;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.psw-profile-wizard__choice:hover{
  border-color: #a9beb5;
  background: #f8faf9;
}

.psw-profile-wizard__choice:has(input:checked){
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.psw-profile-wizard__choice input{
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c-primary);
}

.psw-profile-wizard__choices--affiliation{
  grid-template-columns: 1fr;
  gap: 12px;
}

.psw-profile-wizard__affiliation-option{
  min-height: 76px;
  padding: 14px 16px;
}

.psw-profile-wizard__affiliation-copy{
  display: grid;
  gap: 3px;
  min-width: 0;
}

.psw-profile-wizard__affiliation-copy strong{
  color: var(--c-heading);
  font-size: 15px;
}

.psw-profile-wizard__affiliation-copy > span{
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
}

.psw-profile-wizard__affiliation-option.is-disabled{
  border-color: #d9e0dd;
  background: #f4f6f5;
  cursor: not-allowed;
  opacity: .72;
}

.psw-profile-wizard__affiliation-option.is-disabled:hover{
  border-color: #d9e0dd;
  background: #f4f6f5;
}

.psw-profile-wizard__coming-soon{
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 4px;
  background: #e5ebe8;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
}

.psw-profile-wizard__other{
  margin-top: 16px;
}

.psw-profile-wizard__other[hidden]{
  display: none;
}

.psw-profile-wizard__field-error{
  margin: 7px 0 0;
  color: #8f3025;
  font-size: 14px;
}

.psw-profile-wizard__field-meta{
  margin: 6px 0 0;
  color: var(--c-muted);
  font-size: 12px;
}

.psw-profile-wizard__field-hint{
  margin: 6px 0 0;
  color: var(--c-muted);
  font-size: 13px;
}

.psw-profile-wizard__document-reminder{
  margin: -12px 0 22px;
  padding: 10px 12px;
  border-left: 3px solid #c87918;
  border-radius: 4px;
  background: #fff7e8;
  color: #70430e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.psw-profile-wizard__document-reminder[hidden]{
  display: none;
}

.psw-profile-wizard__message{
  margin: 24px 32px 0;
  padding: 12px 14px;
  border-left: 4px solid;
  border-radius: 4px;
}

.psw-profile-wizard__message--error{
  border-color: #a83f32;
  background: #fbefed;
  color: #76271f;
}

.psw-profile-wizard__message--success{
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.psw-profile-wizard__actions{
  display: flex;
  justify-content: flex-end;
  margin: 28px -32px 0;
  padding: 20px 32px;
  border-top: 1px solid var(--c-border);
  background: #f8faf9;
}

.psw-profile-wizard__actions .btn-primary{
  min-width: 112px;
  background: var(--c-primary);
  box-shadow: none;
}

.psw-profile-wizard__actions--between{
  justify-content: space-between;
}

.psw-dashboard-toast{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 14px 14px 18px;
  border: 1px solid #b9d3c8;
  border-left: 4px solid var(--c-primary);
  border-radius: 6px;
  background: #fff;
  color: var(--c-heading);
  box-shadow: 0 16px 38px rgba(41, 54, 49, .2);
  font-weight: 700;
  transition: opacity .18s ease, transform .18s ease;
}

.psw-dashboard-toast button{
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.psw-dashboard-toast button:hover,
.psw-dashboard-toast button:focus-visible{
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  outline: none;
}

.psw-dashboard-toast.is-closing{
  opacity: 0;
  transform: translateY(-8px);
}

@media (max-width: 640px){
  .psw-dashboard-toast{
    top: 12px;
    right: 16px;
    left: 16px;
  }
}

@media (max-width: 640px){
  .psw-profile-wizard{
    margin: 0 auto;
  }

  .psw-profile-wizard__header,
  .psw-profile-wizard form{
    padding-right: 20px;
    padding-left: 20px;
  }

  .psw-profile-wizard__message{
    margin-right: 20px;
    margin-left: 20px;
  }

  .psw-profile-wizard__actions{
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

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

/* =========================================
   PSW CARE RECIPIENT WIZARD
========================================= */

.psw-recipient-wizard{
  width: 100%;
  max-width: 820px;
  margin: 12px auto;
}

.psw-recipient-wizard__shell{
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(41, 54, 49, .08);
}

.psw-recipient-wizard__header{
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--c-border);
}

.psw-recipient-wizard__step{
  margin-bottom: 10px;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.psw-recipient-wizard h1{
  margin: 0;
  color: var(--c-heading);
  font-size: 30px;
  line-height: 1.2;
}

.psw-recipient-wizard__header p{
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--c-muted);
}

.psw-recipient-wizard__body{
  padding: 28px 32px 32px;
}

.psw-recipient-wizard__message{
  margin: 24px 32px 0;
  padding: 12px 14px;
  border-left: 4px solid;
  border-radius: 4px;
}

.psw-recipient-wizard__message--error{
  border-color: #a83f32;
  background: #fbefed;
  color: #76271f;
}

.psw-recipient-wizard__message--success{
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.psw-recipient-wizard__empty{
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px dashed #aec1b9;
  border-radius: 6px;
  background: #f8faf9;
  color: var(--c-heading);
}

.psw-recipient-wizard__empty span{
  color: var(--c-muted);
  font-size: 14px;
}

.psw-recipient-list{
  display: grid;
  gap: 10px;
}

.psw-recipient-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
}

.psw-recipient-item.is-selected{
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(53, 106, 91, .12);
}

.psw-recipient-item__select,
.psw-recipient-item__delete{
  margin: 0;
}

.psw-recipient-item__select a{
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 72px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.psw-recipient-item__select a:hover,
.psw-recipient-item__select a:focus-visible{
  background: #f8faf9;
  outline: none;
}

.psw-recipient-item__marker{
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid #9bb1a8;
  border-radius: 50%;
  background: #fff;
}

.psw-recipient-item.is-selected .psw-recipient-item__marker{
  border: 5px solid var(--c-primary);
}

.psw-recipient-item__copy{
  display: grid;
  min-width: 0;
  gap: 2px;
}

.psw-recipient-item__copy strong{
  overflow-wrap: anywhere;
  color: var(--c-heading);
  font-size: 16px;
}

.psw-recipient-item__copy span{
  color: var(--c-muted);
  font-size: 13px;
}

.psw-recipient-item__selected{
  margin-left: auto;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 750;
}

.psw-recipient-item__delete{
  border-left: 1px solid var(--c-border);
}

.psw-recipient-item__delete button{
  width: 100%;
  height: 100%;
  min-height: 72px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #8f3025;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.psw-recipient-item__delete button:hover,
.psw-recipient-item__delete button:focus-visible{
  background: #fbefed;
  outline: none;
}

.psw-recipient-wizard__add{
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--c-border);
}

.psw-recipient-wizard__add h2{
  margin: 0 0 14px;
  color: var(--c-heading);
  font-size: 19px;
}

.psw-recipient-add-options{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.psw-recipient-add-options form{
  margin: 0;
}

.psw-recipient-add-option{
  display: grid;
  align-content: center;
  gap: 5px;
  width: 100%;
  min-height: 92px;
  padding: 15px 17px;
  border: 1px solid #a9beb5;
  border-radius: 6px;
  background: var(--c-primary-soft);
  color: var(--c-heading);
  cursor: pointer;
  text-align: left;
}

.psw-recipient-add-option:hover,
.psw-recipient-add-option:focus-visible{
  border-color: var(--c-primary);
  background: #e4f0eb;
  outline: none;
}

.psw-recipient-add-option strong{
  font-size: 16px;
}

.psw-recipient-add-option span{
  color: var(--c-muted);
  font-size: 13px;
}

.psw-recipient-add-option:disabled{
  border-color: var(--c-border);
  background: #f3f5f4;
  color: #7b8984;
  cursor: not-allowed;
}

.psw-recipient-wizard__placeholder{
  min-height: 120px;
}

@media (max-width: 640px){
  .psw-recipient-wizard{
    margin: 0 auto;
  }

  .psw-recipient-wizard__header,
  .psw-recipient-wizard__body{
    padding-right: 20px;
    padding-left: 20px;
  }

  .psw-recipient-wizard__message{
    margin-right: 20px;
    margin-left: 20px;
  }

  .psw-recipient-add-options{
    grid-template-columns: 1fr;
  }

  .psw-recipient-item__selected{
    display: none;
  }
}
