:root {
  --ink: #003b70;
  --muted: #667384;
  --cream: #f5f7fa;
  --paper: #ffffff;
  --green: #003b70;
  --green2: #155284;
  --sage: #e8f0f7;
  --gold: #ff9428;
  --line: #d8dee5;
  --red: #c8402c;
  --blue: #1597df;
  --magenta: #e51c8d;
  --accent-green: #73b04a;
  --purple: #741373;
  --shadow: 0 18px 50px rgba(0, 59, 112, 0.12);
  font-family: Poppins, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0, #e5eee4 0, transparent 29%), var(--cream);
}
html,
body,
#app {
  max-width: 100%;
  overflow-x: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.app {
  min-height: 100vh;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, 4vw);
  border-bottom: 1px solid rgba(24, 52, 45, 0.1);
  background: rgba(248, 245, 238, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.member-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
  background: linear-gradient(100deg, #07558f, #003b70);
}
.app:has(.member-topbar) .member-shell {
  padding-top: 130px;
}
.profile-editing .member-shell {
  max-width: 820px;
}
.profile-editing .member-grid {
  display: block;
  min-height: auto;
}
.profile-editing .portal-card {
  width: 100%;
}
.member-wordmark {
  display: flex;
  align-items: center;
  gap: 24px;
}
.member-wordmark .campaign-wordmark {
  color: #fff;
}
.member-care-title {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.journey-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(0, 34, 67, 0.24);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.journey-close:hover,
.journey-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: Manrope;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 19px;
  box-shadow: 0 7px 16px #1f685533;
}
.brand small {
  display: block;
  font: 500 10px "DM Sans";
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.switch {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px 13px;
  border-radius: 99px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.member-shell {
  max-width: 1120px;
  margin: auto;
  padding: 58px 24px 70px;
}
.member-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  min-height: calc(100vh - 200px);
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--green);
}
.eyebrow:before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
}
h1,
h2,
h3 {
  font-family: Manrope;
  margin: 0;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(43px, 6vw, 76px);
  line-height: 0.98;
  max-width: 720px;
  margin-top: 20px;
}
h2 {
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.05;
}
h3 {
  font-size: 18px;
}
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
}
.trust-row {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.trust {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.trust b {
  color: var(--green);
  margin-right: 6px;
}
.portal-card,
.card {
  background: rgba(255, 253, 249, 0.95);
  border: 1px solid #fff;
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 30px;
}
.portal-card {
  position: relative;
}
.portal-card:before {
  content: "";
  position: absolute;
  inset: -9px 30px auto;
  height: 10px;
  border-radius: 9px 9px 0 0;
  background: #d9e5db;
  z-index: -1;
}
.stepper {
  display: flex;
  gap: 7px;
  margin-bottom: 25px;
}
.stepper i {
  height: 4px;
  background: #dcded8;
  flex: 1;
  border-radius: 9px;
}
.stepper i.on {
  background: var(--green);
}
.field {
  margin: 18px 0;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #4e625b;
}
.input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d4d9d3;
  background: #fff;
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  outline: none;
  transition: 0.2s;
}
.input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #1f685518;
}
.searchbox {
  position: relative;
}
.searchbox input {
  padding-left: 43px;
}
.searchbox span {
  position: absolute;
  left: 15px;
  top: 13px;
  color: var(--muted);
}
.btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 13px 17px;
  font-weight: 800;
  background: var(--green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  background: #164f40;
}
.btn.secondary {
  background: #e5eee8;
  color: var(--green);
}
.btn.ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid #cbd7d0;
}
.btn.danger {
  background: #f6e7e5;
  color: var(--red);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.full {
  width: 100%;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.results {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.result {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
  text-align: left;
  background: #fff;
  width: 100%;
  color: var(--ink);
}
.result:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}
.result strong {
  display: block;
  margin-bottom: 6px;
}
.result div {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.masked {
  background: #f2f5f0;
  border: 1px solid #e1e7df;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
}
.masked strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.masked p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.actions > * {
  flex: 1;
}
.notice {
  padding: 13px 14px;
  border-radius: 12px;
  background: #fff5df;
  color: #75541d;
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0;
}
.notice.red {
  background: #f8e9e7;
  color: #8d443d;
}
.notice.green {
  background: #e6f1e9;
  color: #25634f;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.missing label:after {
  content: " • missing";
  color: #b3653e;
  font-weight: 700;
}
.duplicate-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}
.choice-row {
  display: flex;
  gap: 6px;
  margin-top: 13px;
}
.choice {
  font-size: 11px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  color: var(--muted);
}
.choice.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.success {
  text-align: center;
  padding: 25px 5px;
}
.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--sage);
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--green);
}
.admin {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #153f35;
  color: white;
  padding: 27px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 10px;
  margin-bottom: 34px;
}
.sidebar .brand small {
  color: #b4cbc3;
}
.nav-label {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #89a99e;
  margin: 22px 12px 8px;
  font-weight: 800;
}
.nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  color: #cfe0da;
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 11px 12px;
  text-align: left;
  font-size: 13px;
  margin: 2px 0;
}
.nav-btn:hover,
.nav-btn.active {
  background: #ffffff17;
  color: #fff;
}
.nav-btn span {
  width: 20px;
  text-align: center;
}
.admin-main {
  padding: 30px 34px;
  min-width: 0;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-head p {
  margin: 5px 0;
  color: var(--muted);
}
.avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.avatar i {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  font-style: normal;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  background: var(--paper);
  border: 1px solid #e5e3dc;
  border-radius: 17px;
  padding: 18px;
  min-height: 125px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.metric-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #e5eee8;
  display: grid;
  place-items: center;
}
.metric-value {
  font: 800 30px Manrope;
  margin-top: 17px;
  letter-spacing: -0.04em;
}
.metric-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  margin-top: 16px;
}
.card {
  box-shadow: none;
  border: 1px solid #e5e3dc;
  padding: 21px;
  border-radius: 17px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-head small {
  color: var(--green);
  font-weight: 800;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 155px;
  padding-top: 10px;
}
.bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}
.bar {
  width: 100%;
  max-width: 35px;
  background: #77a48f;
  border-radius: 6px 6px 2px 2px;
}
.bar-col small {
  font-size: 9px;
  color: var(--muted);
}
.quality-row {
  margin: 15px 0;
}
.quality-row div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 7px;
}
.progress {
  height: 7px;
  background: #e8e9e4;
  border-radius: 10px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 10px;
}
.table-wrap {
  overflow: auto;
  background: var(--paper);
  border: 1px solid #e5e3dc;
  border-radius: 17px;
  margin-top: 16px;
}
.table-toolbar {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-toolbar input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  color: var(--muted);
  background: #f6f5f0;
  padding: 11px 15px;
}
td {
  padding: 14px 15px;
  border-top: 1px solid #ecebe5;
  white-space: nowrap;
}
td strong {
  display: block;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  background: #e5eee8;
  color: var(--green);
}
.badge.warn {
  background: #fff0d3;
  color: #8a5b17;
}
.badge.red {
  background: #f7e5e3;
  color: #9c4a42;
}
.badge.blue {
  background: #e6eef4;
  color: var(--blue);
}
.icon-btn {
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--muted);
}
.cluster {
  margin-bottom: 14px;
}
.cluster-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.cluster-people {
  display: grid;
  grid-template-columns: 1fr 35px 1fr;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.person {
  background: #f5f5f0;
  border-radius: 13px;
  padding: 14px;
}
.person small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}
.match {
  font-size: 11px;
  color: var(--muted);
  background: #f6f5f0;
  padding: 11px;
  border-radius: 10px;
}
.mobile-admin-nav {
  display: none;
}
.privacy {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .member-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .member-copy {
    text-align: center;
  }
  .lede {
    margin-inline: auto;
  }
  .trust-row {
    justify-content: center;
  }
  .admin {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .admin-main {
    padding: 25px 16px 85px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .mobile-admin-nav {
    display: flex;
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    background: #153f35;
    padding: 9px 8px;
    justify-content: space-around;
  }
  .mobile-admin-nav button {
    border: 0;
    background: transparent;
    color: #bfd4cc;
    font-size: 18px;
  }
  .mobile-admin-nav button.active {
    color: white;
  }
  .admin-head .avatar span {
    display: none;
  }
}
@media (max-width: 580px) {
  .topbar {
    height: 64px;
  }
  .member-shell {
    padding: 32px 15px 50px;
  }
  .member-grid {
    min-height: auto;
  }
  .member-copy {
    text-align: left;
  }
  .trust-row {
    justify-content: flex-start;
  }
  .portal-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric {
    min-height: 110px;
    padding: 14px;
  }
  .metric-value {
    font-size: 25px;
  }
  .admin-head {
    align-items: flex-start;
  }
  .admin-head h2 {
    font-size: 28px;
  }
  .cluster-people {
    grid-template-columns: 1fr;
  }
  .cluster-people > span {
    text-align: center;
    transform: rotate(90deg);
  }
  .actions {
    flex-direction: column;
  }
  .choice-row {
    flex-wrap: wrap;
  }
  .switch {
    font-size: 11px;
    padding: 8px 10px;
  }
  .brand small {
    display: none;
  }
}

/* Member Care CRM and service-day operations */
.ops-dashboard {
  display: grid;
  gap: 20px;
}
.ops-toolbar,
.ops-panel,
.service-progress,
.crm-welcome,
.crm-queue-grid button {
  border: 1px solid #dce5ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(5, 53, 95, 0.06);
}
.ops-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
}
.ops-toolbar > div {
  display: grid;
  gap: 4px;
}
.ops-toolbar > div b {
  color: var(--ink);
  font-size: 18px;
}
.ops-toolbar > div span,
.ops-toolbar label {
  color: #667384;
  font-size: 11px;
}
.ops-toolbar form {
  display: grid;
  grid-template-columns: minmax(150px, 210px) auto;
  align-items: end;
  gap: 8px;
}
.ops-toolbar label {
  grid-column: 1 / -1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ops-toolbar input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbdbe7;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
}
.ops-toolbar .btn {
  min-height: 44px;
  padding: 0 18px;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ops-metrics article {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 135px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #dce5ed;
  border-radius: 18px;
  background: #fff;
}
.ops-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #58a1ce;
}
.ops-metrics article.live::before {
  background: #38a979;
}
.ops-metrics article.attention::before {
  background: var(--magenta);
}
.ops-metrics span {
  color: #667384;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ops-metrics b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
}
.ops-metrics small {
  color: #738092;
}
.service-progress {
  padding: 20px 22px;
}
.service-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.service-progress b {
  color: var(--ink);
}
.service-progress span {
  color: #667384;
  font-size: 12px;
}
.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef4;
}
.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta), #f5b323);
  transition: width 0.25s ease;
}
.ops-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
  align-items: start;
}
.ops-panel {
  padding: 22px;
}
.ops-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ecf1;
}
.ops-panel h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
.ops-panel header small {
  max-width: 170px;
  color: #7a8795;
  text-align: right;
}
.stage-pipeline {
  display: grid;
  gap: 8px;
  padding-top: 15px;
}
.stage-pipeline article {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f3f7fa;
}
.stage-pipeline article b {
  color: var(--magenta);
  font-size: 20px;
}
.stage-pipeline article span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.active-journeys {
  display: grid;
}
.active-journeys > article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #e8edf2;
}
.active-journeys > article:last-child {
  border: 0;
}
.active-journeys > article.stalled {
  margin: 5px -10px;
  padding: 15px 10px;
  border: 1px solid #f3c4dc;
  border-radius: 12px;
  background: #fff5fa;
}
.journey-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.journey-person i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #e7f1f8;
  color: #0b568b;
  font-style: normal;
  font-weight: 900;
}
.journey-person div,
.active-journeys article > div:last-child {
  display: grid;
  gap: 3px;
}
.active-journeys b {
  color: var(--ink);
  font-size: 12px;
}
.active-journeys span {
  color: #738092;
  font-size: 10px;
}
.active-journeys em {
  width: fit-content;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 99px;
  background: #f7d8e8;
  color: #9d2a65;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.privacy-strip {
  padding: 13px 16px;
  border: 1px solid #d6e3ed;
  border-radius: 12px;
  background: #edf5fb;
  color: #526779;
  font-size: 11px;
  line-height: 1.5;
}
.privacy-strip b {
  color: var(--ink);
}
.crm-overview {
  display: grid;
  gap: 18px;
}
.crm-welcome {
  padding: 28px;
  background: linear-gradient(135deg, #fff, #edf5fb);
}
.crm-welcome h3 {
  max-width: 650px;
  margin: 10px 0 6px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
}
.crm-welcome p {
  margin: 0 0 20px;
  color: #667384;
}
.crm-queue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.crm-queue-grid button {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
}
.crm-queue-grid button:hover {
  border-color: var(--magenta);
  transform: translateY(-1px);
}
.crm-queue-grid span {
  color: #667384;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.crm-queue-grid b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
}
.crm-queue-grid small {
  color: var(--magenta);
  font-weight: 800;
}

/* People-first Member Care CRM */
.admin {
  font-family: "DM Sans", Poppins, Arial, sans-serif;
  background:
    radial-gradient(circle at 84% 0, rgba(40, 130, 196, .09), transparent 30%),
    #f5f7fa;
}
.premium-sidebar {
  background:
    radial-gradient(circle at 20% 0, rgba(27, 111, 174, .3), transparent 32%),
    linear-gradient(180deg, #062f56 0%, #031f3c 100%);
  box-shadow: 14px 0 42px rgba(4, 38, 70, .12);
}
.premium-sidebar .nav-btn { min-height: 44px; border-radius: 10px; }
.premium-sidebar .nav-btn b { font-weight: 600; letter-spacing: -.01em; }
.premium-sidebar .nav-btn.active {
  background: linear-gradient(90deg, rgba(232, 24, 137, .9), rgba(198, 20, 113, .78));
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 22px rgba(132, 8, 77, .22);
}
.premium-sidebar .nav-btn.active::before { display: none; }
.queue-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 18px 0 5px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  color: #d9e9f5;
  text-align: left;
  cursor: pointer;
}
.queue-toggle span { font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.queue-toggle i { font-size: 17px; font-style: normal; transition: transform .2s ease; }
.queue-toggle.open i { transform: rotate(180deg); }
.queue-toggle em { min-width: 24px; padding: 2px 6px; border-radius: 99px; background: rgba(255, 255, 255, .13); color: #fff; font-size: 9px; font-style: normal; text-align: center; }
.queue-nav { display: grid; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .24s ease, opacity .18s ease; }
.queue-nav.open { max-height: 250px; opacity: 1; }
.queue-nav .nav-btn { padding-left: 17px; }
.admin-head h2,
.crm-greeting h3,
.ops-panel h3,
.security-audit h3,
.review-record header h3,
.crm-summary-cards b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}
.admin-head h2 { font-size: clamp(38px, 4vw, 56px); letter-spacing: -.035em; }
.crm-greeting h3 { font-size: clamp(38px, 4vw, 54px); letter-spacing: -.035em; }
.admin-main { max-width: 1650px; width: 100%; }
.submitted-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid #d8e4ed;
  border-left: 3px solid var(--gold);
  border-radius: 11px;
  background: #f8fbfd;
  cursor: pointer;
  list-style: none;
}
.submitted-details > summary::-webkit-details-marker { display: none; }
.submitted-details > summary span { color: #718091; font-size: 10px; font-weight: 600; }
.submitted-details > summary::after { content: "⌄"; color: var(--magenta); font-size: 20px; transition: transform .2s ease; }
.submitted-details[open] > summary::after { transform: rotate(180deg); }
.submitted-details[open] > summary { margin-bottom: 14px; }
.security-audit { display: grid; gap: 18px; }
.audit-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid #dce5ed;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #edf5fb);
  box-shadow: 0 14px 40px rgba(5, 53, 95, .05);
}
.audit-intro h3 { margin: 5px 0 3px; color: var(--ink); font-size: 36px; }
.audit-intro p { max-width: 690px; margin: 0; color: #667384; font-size: 12px; }
.audit-intro > strong { display: grid; min-width: 105px; color: var(--ink); font: 600 40px/1 "Cormorant Garamond", Georgia, serif; text-align: right; }
.audit-intro > strong small { margin-top: 4px; color: #718091; font: 600 9px/1.3 "DM Sans", sans-serif; text-transform: uppercase; }
.audit-groups { display: grid; gap: 10px; }
.audit-group { overflow: hidden; border: 1px solid #dce5ed; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(5, 53, 95, .04); }
.audit-group > summary { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 58px; padding: 0 18px; cursor: pointer; list-style: none; }
.audit-group > summary::-webkit-details-marker { display: none; }
.audit-group > summary span { color: var(--ink); font-weight: 700; }
.audit-group > summary em { min-width: 28px; padding: 4px 8px; border-radius: 99px; background: #e8f2f9; color: #0b568b; font-size: 10px; font-style: normal; text-align: center; }
.audit-group > summary i { color: var(--magenta); font-size: 19px; font-style: normal; transition: transform .2s ease; }
.audit-group[open] > summary i { transform: rotate(180deg); }
.audit-event-list { border-top: 1px solid #e4ebf0; }
.audit-event-list article { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(260px, 1.5fr) 120px; align-items: center; gap: 18px; min-height: 65px; padding: 10px 18px; border-bottom: 1px solid #edf1f4; }
.audit-event-list article:last-child { border: 0; }
.audit-event-list article > div:first-child { display: grid; gap: 3px; }
.audit-event-list b { color: var(--ink); font-size: 11px; }
.audit-event-list small { color: #7a8795; font-size: 9px; }
.audit-context { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #617184; font-size: 10px; }
.audit-context span { display: inline-flex; gap: 5px; }
.audit-context b { color: #344b60; font-size: 9px; text-transform: capitalize; }
.audit-outcome { justify-self: end; padding: 5px 9px; border-radius: 99px; background: #e4f2ec; color: #267258; font-size: 9px; font-weight: 800; text-transform: capitalize; }
.outcome-failed, .outcome-locked, .outcome-no_match { background: #f9dfe9; color: #a02961; }
.admin-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -10px 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e8ef;
}
.admin-compact-head > label {
  display: flex;
  align-items: center;
  width: min(560px, 60%);
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d5e1ea;
  border-radius: 11px;
  background: #fff;
  color: #687789;
}
.admin-compact-head input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.member-care-crm { display: grid; gap: 18px; }
.crm-greeting h3 {
  margin: 7px 0 3px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
}
.crm-greeting p { margin: 0; color: #667384; }
.crm-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.crm-summary-cards > button {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 105px;
  padding: 17px;
  border: 1px solid #dfe7ee;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff, #eef6fc);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(5, 53, 95, .05);
}
.crm-summary-cards > button:nth-child(2) { background: linear-gradient(135deg, #fff, #fff0f8); }
.crm-summary-cards > button:nth-child(3) { background: linear-gradient(135deg, #fff, #fff8e7); }
.crm-summary-cards > button:nth-child(4) { background: linear-gradient(135deg, #fff, #fceef5); }
.crm-summary-cards > button:hover { border-color: var(--magenta); transform: translateY(-1px); }
.crm-summary-cards i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #dceeff;
  color: #176da5;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}
.crm-summary-cards button:nth-child(2) i,
.crm-summary-cards button:nth-child(4) i { background: #f8d8e8; color: var(--magenta); }
.crm-summary-cards button:nth-child(3) i { background: #ffedbd; color: #9b6711; }
.crm-summary-cards div { display: grid; gap: 2px; }
.crm-summary-cards b { color: var(--ink); font-size: 27px; line-height: 1; }
.crm-summary-cards span { color: #44566a; font-size: 11px; font-weight: 800; }
.crm-summary-cards em { color: #335b7c; font-size: 25px; font-style: normal; }
.people-list-card {
  overflow: hidden;
  border: 1px solid #dce5ed;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(5, 53, 95, .06);
}
.people-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px 0;
  border-bottom: 1px solid #e3eaf0;
}
.crm-tabs { display: flex; align-items: center; gap: 22px; }
.crm-tabs button {
  padding: 15px 1px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #647387;
  font-weight: 700;
  cursor: pointer;
}
.crm-tabs button.active { border-color: var(--magenta); color: var(--ink); }
.people-tools { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.people-tools label {
  display: flex;
  align-items: center;
  min-width: 310px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #d3e0ea;
  border-radius: 9px;
  color: #6c7c8d;
}
.people-tools input { width: 100%; border: 0; outline: 0; padding-left: 8px; color: var(--ink); font: inherit; }
.filter-button { min-height: 40px; padding: 0 15px; border: 1px solid #d3e0ea; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 800; }
.people-table { min-width: 900px; }
.people-row {
  display: grid;
  grid-template-columns: minmax(215px, 1.3fr) minmax(110px, .7fr) minmax(115px, .75fr) minmax(145px, .9fr) minmax(125px, .75fr) minmax(105px, .65fr) 20px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 7px 18px;
  border: 0;
  border-bottom: 1px solid #e7edf2;
  background: #fff;
  color: #44566a;
  text-align: left;
}
button.people-row { cursor: pointer; }
button.people-row:hover { background: #f7fbfe; }
.people-head { min-height: 38px; background: #f2f6f9; color: #66788a; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.person-cell { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.person-cell > i { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border-radius: 50%; background: #e5f0f8; color: #0b568b; font-style: normal; font-weight: 900; }
.person-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #e5f0f8; }
.person-cell strong { font-size: 12px; }
.case-pill, .status-pill { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 99px; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.case-pill { background: #e8f2fa; color: #176da5; }
.kind-possible_duplicate, .kind-manual_review { background: #f9e4ef; color: #a62b68; }
.kind-visitor { background: #fff0c9; color: #8d6115; }
.status-pill { background: #e6f1fa; color: #176da5; }
.status-pending { background: #fff0c9; color: #855c17; }
.status-follow_up { background: #f9ddeb; color: #a22465; }
.status-completed, .status-updated_pc { background: #dff3eb; color: #207153; }
.status-rejected { background: #edf0f3; color: #5c6670; }
.row-chevron { color: #0b4b82; font-size: 24px; text-align: right; }
.people-list-footer { display: flex; justify-content: space-between; gap: 15px; padding: 13px 18px; color: #718091; font-size: 10px; }
.record-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; color: #718091; font-size: 11px; }
.review-records.single { max-width: 1100px; }
@media (max-width: 1000px) {
  .ops-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .ops-grid {
    grid-template-columns: 1fr;
  }
  .crm-queue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .crm-summary-cards { grid-template-columns: repeat(2, 1fr); }
  .people-list-card { overflow-x: auto; }
}
@media (max-width: 650px) {
  .ops-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .ops-toolbar form {
    grid-template-columns: 1fr auto;
  }
  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ops-metrics article {
    min-height: 118px;
    padding: 15px;
  }
  .ops-metrics b {
    font-size: 34px;
  }
  .service-progress > div:first-child {
    flex-direction: column;
    gap: 3px;
  }
  .ops-panel {
    padding: 17px;
  }
  .active-journeys > article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .crm-queue-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-admin-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .mobile-admin-nav button {
    min-width: 62px;
    flex: 0 0 62px;
  }
  .admin-compact-head { align-items: stretch; flex-direction: column-reverse; }
  .admin-compact-head > label { width: 100%; }
  .admin-compact-head .avatar { justify-content: flex-end; }
  .crm-summary-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .crm-summary-cards > button { grid-template-columns: 36px 1fr; min-height: 88px; padding: 12px; }
  .crm-summary-cards i { width: 36px; height: 36px; }
  .crm-summary-cards em { display: none; }
  .people-list-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .crm-tabs { justify-content: space-between; gap: 7px; overflow-x: auto; }
  .crm-tabs button { white-space: nowrap; font-size: 10px; }
  .people-tools label { min-width: 0; flex: 1; }
  .people-tools .filter-button { display: none; }
  .audit-intro { align-items: flex-start; flex-direction: column; padding: 19px; }
  .audit-intro > strong { text-align: left; }
  .audit-event-list article { grid-template-columns: 1fr; gap: 7px; padding: 14px 16px; }
  .audit-outcome { justify-self: start; }
}
.admin-dot {
  position: fixed;
  left: 8px;
  bottom: 8px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  z-index: 30;
}
.admin-dot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(0, 59, 112, 0.12);
  transition: 0.2s ease;
}
.admin-dot:hover::after {
  background: rgba(0, 59, 112, 0.3);
  transform: scale(1.5);
}
.admin-dot:focus-visible {
  outline: 2px solid rgba(0, 59, 112, 0.55);
  outline-offset: 1px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 70px 20px;
  background:
    radial-gradient(circle at 50% 15%, #e2ede5, transparent 34%), var(--cream);
  position: relative;
}
.login-card {
  width: min(440px, 100%);
  background: var(--paper);
  border: 1px solid white;
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.login-card > .brand-mark {
  margin-bottom: 28px;
}
.login-card h2 {
  margin: 12px 0;
}
.login-card .lede {
  font-size: 15px;
}
.login-back {
  position: absolute;
  top: 24px;
  left: 24px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}
.login-error[hidden] {
  display: none;
}
.source-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  border: 1px solid #ffffff20;
  background: #ffffff0d;
  border-radius: 12px;
  padding: 13px;
  color: #c9d8e8;
  font-size: 10px;
  line-height: 1.55;
}
.source-note b {
  color: white;
}
.changed-details {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 7px;
}
.verification-unavailable .lede {
  margin-bottom: 18px;
}
.verification-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.otp-input {
  min-width: 0;
  text-align: center;
  letter-spacing: 0.2em;
  font-weight: 800;
}
.minimal-result strong {
  font-size: 16px;
}
.minimal-profile {
  text-align: center;
}
.minimal-profile strong {
  font-size: 21px;
}
.step-back {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 2px;
  margin: -6px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.step-back:hover {
  text-decoration: underline;
}
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.delivery-choice {
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.delivery-choice small {
  font-weight: 400;
  line-height: 1.35;
}
@media (max-width: 560px) {
  .delivery-grid {
    grid-template-columns: 1fr;
  }
}
.topbar {
  background: var(--green);
  border-bottom: 0;
}
.brand {
  font-family: Poppins, Arial, sans-serif;
}
.brand-lockup {
  color: #fff;
}
.brand-lockup img {
  width: 118px;
  height: 58px;
  object-fit: cover;
  object-position: center;
}
.brand-lockup b {
  display: block;
  font-size: 15px;
}
.brand-lockup small {
  color: #dce8f2;
}
.portal-card:before {
  background: var(--gold);
}
.sidebar,
.mobile-admin-nav {
  background: var(--green);
}
.sidebar-lockup {
  display: block;
  margin-bottom: 28px !important;
}
.sidebar-lockup img {
  display: block;
  width: 145px;
  height: 88px;
  object-fit: cover;
  margin-bottom: 10px;
}
.sidebar-lockup b {
  display: block;
}
.notice.green {
  background: #e9f1fa;
  color: var(--green);
}
.field label {
  color: #334d70;
}
.btn:hover {
  background: #002c55;
}
.btn.secondary {
  background: #e6eef8;
}
.btn.ghost {
  border-color: #b9cbe0;
}
.masked {
  background: #f1f5fa;
  border-color: #dce6f1;
}
.login-page {
  background:
    radial-gradient(circle at 50% 15%, #e4edf8, transparent 34%), var(--cream);
}
.login-logo {
  width: 160px;
  height: 96px;
  overflow: hidden;
  background: var(--green);
  margin-bottom: 25px;
}
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
h1,
h2,
h3 {
  font-family: Poppins, Arial, sans-serif;
}
h1 {
  text-transform: uppercase;
  font-weight: 900;
}
.eyebrow:before {
  background: var(--gold);
}
.team-entry {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  margin: 8px 0;
}
.team-entry input {
  margin: 0;
}
.remove-team {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  border-radius: 11px;
  font-size: 20px;
}
.add-team {
  margin-top: 7px;
  padding: 9px 12px;
}
.serving-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafd;
}
body {
  background:
    radial-gradient(circle at 8% 0, #e6eef6 0, transparent 29%), var(--cream);
}
.brand small,
.metric-value {
  font-family: Poppins, Arial, sans-serif;
}
.sidebar .brand small {
  color: #dce8f2;
}
.nav-label {
  color: #a9c0d5;
}
.nav-btn {
  color: #d7e4ee;
}
.bar {
  background: var(--blue);
}
.single-candidate {
  margin-top: 15px;
}
.candidate-progress {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  margin-top: 14px;
}
.single-candidate .choice-row {
  justify-content: center;
}
.single-candidate .choice {
  flex: 1;
}
.optional {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 5px;
}
.group-picker-section {
  border: 1px solid var(--line);
  background: #f8fafd;
  border-radius: 16px;
  padding: 2px 16px 12px;
  margin: 18px 0;
}
.group-picker {
  position: static;
}
.group-results {
  position: static;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow: auto;
}
.group-results:empty {
  display: none;
}
.group-result {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 11px 13px;
  color: var(--ink);
}
.group-result:hover {
  background: var(--sage);
}
.group-result:last-child {
  border-bottom: 0;
}
.group-result b,
.group-result small {
  display: block;
}
.group-result small,
.group-loading {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.group-loading {
  padding: 12px;
}
.selected-groups {
  display: grid;
  gap: 7px;
}
.group-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--sage);
  border-radius: 11px;
  padding: 9px 11px;
}
.group-chip span,
.group-chip b,
.group-chip small {
  display: block;
}
.group-chip small {
  font-size: 9px;
  color: var(--muted);
}
.group-chip button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 18px;
}
.group-privacy {
  margin: 4px 0;
}
.review-records {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.review-record {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.review-record > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.review-record header h3 {
  margin-top: 5px;
}
.review-record header p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.pc-records,
.duplicate-responses {
  background: #f5f8fb;
  border-radius: 12px;
  padding: 13px;
  margin: 14px 0;
  font-size: 12px;
}
.pc-records > b,
.duplicate-responses > b {
  display: block;
  margin-bottom: 7px;
}
.pc-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 3px 0;
}
.pc-link:hover {
  text-decoration: underline;
}
.submitted-details {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.submitted-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 13px;
  background: #f8fafc;
}
.change-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.change-item {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.change-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.change-item > span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}
.change-item > div {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.empty-value {
  color: #8b95a1;
  font-style: italic;
}
.value-list {
  display: grid;
  gap: 4px;
}
.group-admin-value b,
.group-admin-value small,
.group-admin-value code {
  display: block;
}
.group-admin-value small {
  color: var(--muted);
  margin: 3px 0;
}
.group-admin-value code {
  font-size: 9px;
}
.duplicate-responses > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}
.review-record footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.record-workflow label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.record-workflow select {
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}
.admin-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.searchable-select-source {
  display: none !important;
}
.searchable-select-input {
  width: 100%;
}
.searchable-select-shell {
  position: relative;
  width: 100%;
}
.searchable-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 35px #062f5926;
  padding: 6px;
}
.searchable-select-menu[hidden] {
  display: none;
}
.searchable-select-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  font: inherit;
}
.searchable-select-menu button:hover,
.searchable-select-menu button:focus {
  background: #eaf3fb;
  outline: none;
}
.searchable-select-empty {
  display: block;
  padding: 12px;
  color: var(--muted);
}
.journey-choices {
  display: grid;
  gap: 10px;
  margin: 20px 0 14px;
}
.journey-choices button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid #cbddea;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.journey-choices button:hover,
.journey-choices button:focus-visible {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(236, 22, 140, 0.1);
  outline: none;
}
.journey-choices b {
  font-size: 14px;
}
.journey-choices span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.journey-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #cbddea;
  border-left: 3px solid var(--magenta);
  border-radius: 12px;
  background: #f3f8fc;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}
.journey-summary button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--magenta);
  font-weight: 800;
}
.journey-summary-start {
  margin: 0 0 18px;
}
.visitor-intro {
  margin-bottom: 18px;
}
.visitor-intro h3 {
  margin: 7px 0;
}
.visitor-intro p {
  color: var(--muted);
}
.visitor-form > .notice {
  margin: 18px 0;
}
.postcode-lookup {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.postcode-lookup .postcode-find {
  width: fit-content;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
}
.postcode-status {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.postcode-results {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}
.postcode-results[hidden] {
  display: none;
}
.postcode-results label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}
.postcode-results select {
  width: 100%;
}
.empty-queue {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 650px) {
  .member-shell,
  .member-grid,
  .portal-card,
  .profile-wizard,
  .profile-wizard-panel,
  .wizard-fields,
  .wizard-fields > *,
  .household-row > *,
  .team-entry > * {
    min-width: 0;
    max-width: 100%;
  }
  .change-grid {
    grid-template-columns: 1fr;
  }
  .change-item:nth-child(odd) {
    border-right: 0;
  }
  .duplicate-responses > div {
    display: block;
  }
}
/* Admin queue controls. */
.nav-btn b {
  font-weight: 500;
  flex: 1;
}
.nav-btn em {
  font-style: normal;
  font-size: 10px;
  background: #ffffff1a;
  border-radius: 99px;
  padding: 2px 7px;
}
.admin-head h2 small {
  font-size: 0.45em;
  color: var(--muted);
  vertical-align: middle;
}
.admin-search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.admin-search input {
  flex: 1;
  max-width: 650px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}
.admin-search span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.mobile-admin-nav button {
  position: relative;
}
.mobile-admin-nav button small {
  font-size: 8px;
  margin-left: 2px;
}
/* Submitted photos are delivered only through the authenticated admin API. */
.admin-photo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 6px;
  background: #eef2f5;
}

/* You Count campaign landing */
.campaign-home {
  min-height: 100svh;
  background: #052f58;
  color: #fff;
}
.campaign-hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.75fr);
  align-items: end;
  gap: clamp(32px, 6vw, 100px);
  padding: 110px clamp(24px, 6vw, 96px) clamp(42px, 7vh, 74px);
  background: url("assets/you-count-church-hero.png") center/cover no-repeat;
  overflow: hidden;
}
.campaign-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 31, 62, 0.92) 0%,
      rgba(0, 43, 83, 0.76) 37%,
      rgba(0, 42, 80, 0.15) 68%,
      rgba(0, 25, 50, 0.38) 100%
    ),
    linear-gradient(0deg, rgba(0, 24, 48, 0.86), transparent 58%);
}
.campaign-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(24px, 6vw, 96px);
  border-bottom: 1px solid #ffffff26;
}
.campaign-header img {
  width: 132px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 7px;
  padding: 6px 9px;
}
.campaign-header span,
.campaign-kicker,
.campaign-step {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 800;
}
.campaign-header span {
  color: #ffffffb5;
}
.campaign-copy {
  max-width: 750px;
  padding-bottom: 18px;
}
.campaign-kicker {
  display: block;
  color: #ffd22e;
  margin-bottom: 24px;
}
.campaign-lines {
  font-size: clamp(48px, 7.2vw, 108px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.86;
}
.campaign-lines span {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  clip-path: inset(0 100% 0 0);
  animation: campaignReveal 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}
.campaign-lines span:nth-child(2) {
  animation-delay: 0.85s;
  color: #ffda39;
}
.campaign-lines span:nth-child(3) {
  animation-delay: 1.7s;
}
.campaign-copy > p {
  max-width: 640px;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.7;
  color: #eef6ff;
  margin: 28px 0 22px;
}
.campaign-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.campaign-trust span {
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #ffffff35;
  background: #ffffff12;
  backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 8px 12px;
}
.campaign-action {
  width: 100%;
  min-width: 0;
  max-width: 430px;
  justify-self: end;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid #ffffffc7;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 28px 80px #001b35a8;
}
.campaign-step {
  color: var(--magenta);
}
.campaign-action h2 {
  font-size: clamp(26px, 2.7vw, 39px);
  margin: 12px 0;
  line-height: 1.08;
}
.campaign-action > p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.campaign-action .field {
  margin: 20px 0 13px;
}
.campaign-action .btn {
  background: var(--magenta);
  padding: 15px 18px;
}
.campaign-action .btn:hover {
  background: #bd1474;
}
.campaign-action > small {
  display: block;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.campaign-scroll {
  position: absolute;
  right: 24px;
  bottom: 30px;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 8px;
  color: #ffffff8f;
  display: flex;
  align-items: center;
  gap: 9px;
}
.campaign-scroll i {
  height: 34px;
  width: 1px;
  background: #fff6;
}
.campaign-admin-dot {
  background: transparent;
  box-shadow: none;
}
.campaign-admin-dot::after {
  background: rgba(255, 255, 255, 0.09);
}
.campaign-admin-dot:hover::after {
  background: rgba(255, 255, 255, 0.25);
}
@keyframes campaignReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}
@media (max-width: 900px) {
  .campaign-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    padding-top: 120px;
    background-position: 62% center;
  }
  .campaign-shade {
    background: linear-gradient(
      180deg,
      rgba(0, 38, 74, 0.42),
      rgba(0, 35, 68, 0.82) 48%,
      rgba(0, 24, 48, 0.98) 100%
    );
  }
  .campaign-copy {
    padding-top: 12vh;
    padding-bottom: 0;
  }
  .campaign-lines {
    font-size: clamp(52px, 13vw, 86px);
  }
  .campaign-action {
    justify-self: stretch;
    max-width: none;
  }
  .campaign-scroll {
    display: none;
  }
}
@media (max-width: 580px) {
  body {
    overflow-x: hidden;
  }
  .campaign-hero {
    display: block;
    padding: 96px 16px 28px;
    gap: 24px;
    background-position: 66% center;
  }
  .campaign-header {
    height: 76px;
    padding: 10px 16px;
  }
  .campaign-header img {
    width: 105px;
    height: 52px;
  }
  .campaign-header span {
    display: none;
  }
  .campaign-copy {
    padding-top: 14vh;
  }
  .campaign-kicker {
    margin-bottom: 14px;
  }
  .campaign-lines {
    font-size: clamp(44px, 14vw, 66px);
    line-height: 0.9;
  }
  .campaign-copy > p {
    font-size: 13px;
    margin: 20px 0 15px;
  }
  .campaign-trust span {
    font-size: 8px;
    padding: 6px 8px;
  }
  .campaign-action {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-top: 24px;
    overflow: hidden;
    border-radius: 20px;
    padding: 22px;
  }
  .campaign-action h2 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }
}
/* Final premium admin overrides. Kept last so the campaign styles do not flatten the CRM. */
.admin {
  font-family: "DM Sans", Poppins, Arial, sans-serif;
  background:
    radial-gradient(circle at 84% 0, rgba(40, 130, 196, .09), transparent 30%),
    #f5f7fa;
}
.admin .premium-sidebar {
  background:
    radial-gradient(circle at 20% 0, rgba(27, 111, 174, .3), transparent 32%),
    linear-gradient(180deg, #062f56 0%, #031f3c 100%);
}

/* Check-in workspace */
.checkin-workspace { display: grid; gap: 22px; }
.checkin-command { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 22px; }
.scanner-card, .checkin-summary, .checkin-ledger { background: #fff; border: 1px solid #dfe7ef; border-radius: 20px; box-shadow: 0 12px 35px rgba(11, 47, 82, .07); padding: 24px; }
.scanner-card > header, .checkin-summary > header, .checkin-ledger > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.scanner-card h3, .checkin-summary h3, .checkin-ledger h3 { margin: 4px 0 0; color: #073f73; font-size: 28px; }
.scanner-live { color: #167b58; background: #e7f7ef; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.scanner-context { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.scanner-context label, .scan-input { display: grid; gap: 7px; color: #42566d; font-size: 12px; font-weight: 800; }
.scanner-context input, .scanner-context select, .scan-input input { width: 100%; border: 1px solid #cbd8e4; border-radius: 12px; background: #fff; color: #073f73; padding: 13px 14px; font: inherit; font-size: 15px; }
.camera-shell { position: relative; min-height: 210px; border-radius: 16px; overflow: hidden; background: linear-gradient(145deg, #062f56, #0b568e); display: grid; place-items: center; color: #fff; text-align: center; }
.camera-shell video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.camera-shell.active video { opacity: 1; }
.camera-shell.active > div { display: none; }
.camera-shell > div { display: grid; gap: 4px; }
.camera-shell > div b { font-size: 18px; }
.camera-shell > div span { color: #c9d8e7; }
.scanner-actions { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.scanner-actions span { color: #6c7d90; font-size: 12px; }
#checkinScanForm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
#checkinScanForm .btn { min-height: 49px; }
.checkin-email-choice { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: #52647a; font-size: 12px; }
.scanner-ready, .scan-result { margin-top: 18px; padding: 16px; border-radius: 15px; display: flex; align-items: center; gap: 14px; background: #edf5fb; }
.scanner-ready i, .scan-result > i, .scan-result img { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: #d8e9f6; color: #06477d; font-style: normal; font-size: 24px; font-weight: 900; }
.scanner-ready div, .scan-result div { display: grid; gap: 2px; }
.scanner-ready span, .scan-result p { margin: 0; color: #62758a; font-size: 13px; }
.scan-result h3 { margin: 0; font-size: 22px; }
.scan-result.success { background: #e7f7ef; border-left: 5px solid #167b58; }
.scan-result.duplicate { background: #fff4db; border-left: 5px solid #e0a21b; }
.scan-result.error { background: #fff0f0; border-left: 5px solid #cc4646; }
.checkin-breakdown { display: grid; gap: 10px; }
.checkin-breakdown article { display: grid; grid-template-columns: 52px 1fr; padding: 13px; border-radius: 13px; background: #f3f7fa; }
.checkin-breakdown article b { grid-row: 1 / 3; font-size: 27px; color: #ec168c; }
.checkin-breakdown article span { font-weight: 800; color: #073f73; }
.checkin-breakdown article small { color: #6c7d90; }
.checkin-table { overflow-x: auto; }
.checkin-row { min-width: 720px; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr .65fr .55fr; align-items: center; gap: 14px; padding: 12px; border-top: 1px solid #e6edf3; color: #42566d; }
.checkin-head { border: 0; background: #f3f7fa; border-radius: 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.checkin-person { display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 10px; }
.checkin-person img, .checkin-person i { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #e1edf6; font-style: normal; font-weight: 900; color: #073f73; }
.checkin-person b { color: #073f73; }
.checkin-person small { color: #7a8b9e; }
.checkin-row a { color: #0b6cae; font-weight: 800; }
@media (max-width: 900px) {
  .checkin-command { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .scanner-card, .checkin-summary, .checkin-ledger { padding: 17px; border-radius: 15px; }
  .scanner-context, #checkinScanForm { grid-template-columns: 1fr; }
  .camera-shell { min-height: 250px; }
  .scanner-actions { align-items: stretch; flex-direction: column; }
  .scanner-actions .btn { width: 100%; }
}

/* Attendance history and pastoral-care CRM */
.attendance-filters { display: grid; grid-template-columns: 1fr 1fr 1fr minmax(180px,1.3fr) auto auto; gap: 12px; align-items: end; padding: 18px; border: 1px solid #dfe7ef; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(11,47,82,.06); }
.attendance-filters label, .pastoral-toolbar label, .pastoral-case-form label { display: grid; gap: 6px; color: #52647a; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.attendance-filters input, .attendance-filters select, .pastoral-toolbar select, .pastoral-case-form input, .pastoral-case-form select, .pastoral-case-form textarea { width: 100%; min-width: 0; border: 1px solid #cbd8e4; border-radius: 11px; padding: 12px; background: #fff; color: #073f73; font: inherit; text-transform: none; letter-spacing: normal; }
.pastoral-workspace { display: grid; gap: 20px; }
.pastoral-rule { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; border-radius: 20px; color: #fff; background: linear-gradient(135deg,#063f70,#0a5f94); box-shadow: 0 18px 45px rgba(5,55,96,.18); }
.pastoral-rule h3 { margin: 5px 0; font-size: 29px; }
.pastoral-rule p { margin: 0; max-width: 700px; color: #d7e6f2; line-height: 1.55; }
.pastoral-rule > div:last-child { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: 13px; background: rgba(255,255,255,.1); white-space: nowrap; }
.pastoral-rule > div:last-child b { color: #ffca36; }
.pastoral-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 18px 20px; border: 1px solid #dfe7ef; border-radius: 16px; background: #fff; }
.pastoral-toolbar > div { display: grid; gap: 4px; }
.pastoral-toolbar > div b { color: #073f73; font-size: 20px; }
.pastoral-toolbar > div span { color: #6c7d90; font-size: 13px; }
.pastoral-cases { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.pastoral-case { overflow: hidden; border: 1px solid #dfe7ef; border-radius: 19px; background: #fff; box-shadow: 0 12px 35px rgba(11,47,82,.06); }
.pastoral-case > header { display: grid; grid-template-columns: 56px 1fr auto; gap: 13px; align-items: center; padding: 19px; background: #f3f7fa; }
.pastoral-case > header img, .pastoral-case > header i { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #dceaf4; color: #073f73; font-style: normal; font-size: 22px; font-weight: 900; }
.pastoral-case > header div { min-width: 0; }
.pastoral-case > header span { color: #ec168c; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pastoral-case > header h3 { margin: 2px 0; color: #073f73; font-size: 21px; overflow-wrap: anywhere; }
.pastoral-case > header p { margin: 0; color: #6c7d90; font-size: 12px; line-height: 1.45; }
.pastoral-case > header strong { padding: 7px 10px; border-radius: 999px; background: #fff0f0; color: #b33a3a; font-size: 11px; }
.pastoral-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 19px 0; }
.pastoral-contact a { overflow: hidden; padding: 10px; border-radius: 10px; background: #edf5fb; color: #07548c; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.pastoral-case-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 19px; }
.pastoral-case-form .wide, .pastoral-case-form button { grid-column: 1 / -1; }
.pastoral-case details { margin: 0 19px 19px; padding: 12px; border-radius: 11px; background: #faf7ef; color: #52647a; }
.pastoral-case details summary { cursor: pointer; color: #073f73; font-weight: 900; }
.pastoral-case details p { display: grid; gap: 3px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #e8dfcd; font-size: 12px; line-height: 1.5; }
.pastoral-case details p b { color: #8a7450; font-size: 10px; }
@media (max-width: 1100px) {
  .attendance-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pastoral-cases { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .attendance-filters { grid-template-columns: 1fr; }
  .pastoral-rule, .pastoral-toolbar { align-items: stretch; flex-direction: column; }
  .pastoral-rule > div:last-child { justify-content: center; }
  .pastoral-contact, .pastoral-case-form { grid-template-columns: 1fr; }
  .pastoral-case-form .wide, .pastoral-case-form button { grid-column: auto; }
}

/* Mobile admin navigation */
.admin-menu-button,
.admin-menu-shade { display: none; }
@media (max-width: 900px) {
  .admin { display: block; min-width: 0; overflow-x: hidden; }
  .admin-main { width: 100%; min-width: 0; padding: 84px 14px 30px; overflow-x: hidden; }
  .admin-menu-button { display: grid; position: fixed; z-index: 70; top: max(14px, env(safe-area-inset-top)); left: 14px; width: 48px; height: 44px; place-content: center; gap: 5px; border: 0; border-radius: 12px; background: #073f73; box-shadow: 0 8px 24px rgba(0,31,61,.25); }
  .admin-menu-button i { display: block; width: 23px; height: 2px; border-radius: 5px; background: #fff; }
  .admin-menu-shade { position: fixed; z-index: 58; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,24,47,.5); backdrop-filter: blur(2px); }
  .admin .sidebar { display: block; position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(310px, 86vw); height: 100dvh; overflow-y: auto; padding: max(24px,env(safe-area-inset-top)) 18px 30px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(0,20,40,.3); }
  .admin.admin-menu-open .sidebar { transform: translateX(0); }
  .admin.admin-menu-open .admin-menu-shade { display: block; }
  .admin.admin-menu-open .admin-menu-button { left: min(246px, calc(86vw - 64px)); background: rgba(255,255,255,.14); box-shadow: none; }
  .admin-head, .admin-compact-head { min-width: 0; width: 100%; flex-wrap: wrap; }
  .admin-head > div:first-child, .admin-compact-head > label { min-width: 0; width: 100%; }
  .admin-head h2, .admin-head p, .admin-main h3, .admin-main p, .notice { max-width: 100%; overflow-wrap: anywhere; }
  .admin-compact-head { gap: 12px; }
  .admin-compact-head .avatar { margin-left: auto; }
  .people-list-card, .review-record, .ops-panel, .survey-visual, .survey-feedback-panel { min-width: 0; max-width: 100%; overflow: hidden; }
  .people-table, .change-grid, .audit-event-list { max-width: 100%; overflow-x: auto; }
  .mobile-admin-nav { display: none !important; }
}
@media (max-height: 540px) and (orientation: landscape) and (max-width: 950px) {
  .admin-main { padding-top: 68px; }
  .admin-menu-button { top: 10px; }
  .admin .sidebar { padding-top: 16px; }
  .admin-brand { margin-bottom: 16px; }
  .admin-brand .campaign-wordmark { margin-bottom: 10px; }
  .admin-head h2 { font-size: 30px; }
}
.admin .admin-head h2,
.admin .crm-greeting h3,
.admin .ops-panel h3,
.admin .security-audit h3,
.admin .review-record header h3,
.admin .crm-summary-cards b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

/* Final staff CRM typography and structure */
.admin .admin-head h2,
.admin .crm-greeting h3,
.admin .ops-panel h3,
.admin .security-audit h3,
.admin .review-record header h3,
.admin .crm-summary-cards b,
.admin-brand > b {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 750;
  letter-spacing: -.035em;
}
.admin .premium-sidebar { background:#0a3154; }
.admin-head h2 { font-size:clamp(30px,3.2vw,42px); }
.admin-main { padding:28px clamp(20px,3vw,42px); }
.review-record,.ops-panel,.people-list-card,.survey-visual,.survey-feedback-panel,.checkin-ledger,.scanner-card,.checkin-summary {
  border-radius:12px !important;
  box-shadow:0 5px 18px rgba(10,49,84,.045) !important;
}
.sidebar .nav-btn { border-radius:8px; }
.sidebar .nav-btn.active::before { display:none; }
.admin .eyebrow::before { display:none !important;content:none !important; }
.login-page,.workspace-login { display:grid !important;place-items:center !important;justify-content:center !important;padding:86px 20px 28px !important;background:linear-gradient(rgba(3,30,54,.66),rgba(3,30,54,.78)),url("assets/staff-community-login-v1.webp") center/cover no-repeat !important; }
.login-card,.workspace-login>section { margin:0 auto !important;width:min(460px,100%) !important;border:1px solid rgba(255,255,255,.64);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(0,20,40,.25);backdrop-filter:blur(14px); }
.login-card h2,.workspace-login h1 { font-family:"DM Sans",Arial,sans-serif;font-weight:750;letter-spacing:-.05em; }
.login-card .eyebrow::before,.workspace-login .eyebrow::before { display:none !important;content:none !important; }
.login-page .login-back,.workspace-login .login-back { position:absolute;z-index:3;top:24px;left:24px;color:#fff;background:rgba(3,28,51,.44);border:1px solid rgba(255,255,255,.32);backdrop-filter:blur(10px); }
@media(max-width:760px){.login-page,.workspace-login{padding:82px 16px 22px !important}.login-card,.workspace-login>section{width:100% !important;max-width:500px;padding:27px 23px}.login-page .login-back,.workspace-login .login-back{top:18px;left:16px}}

/* FINAL HUB THEME — selected Design 1 */
.ops-hub { min-height:100svh;color:#fff;background:#082f52 !important;font-family:"DM Sans",Arial,sans-serif; }
.ops-hub::before { content:"";position:fixed;inset:0;background:linear-gradient(rgba(3,27,50,.68),rgba(3,29,53,.78)),url("assets/staff-community-login-v1.webp") center/cover no-repeat; }
.ops-hub-glow { display:none; }
.ops-hub>header { position:relative;z-index:2;height:76px;display:grid;grid-template-columns:48px 1fr;align-items:center;gap:20px;padding:0 clamp(24px,5vw,76px);color:#fff;background:rgba(3,28,51,.72);border-bottom:1px solid rgba(255,255,255,.22);backdrop-filter:blur(16px); }
.ops-hub>header>button { width:42px;height:42px;border:1px solid rgba(255,255,255,.3);border-radius:50%;color:#fff;background:rgba(255,255,255,.1);font-size:20px; }
.ops-hub>header .campaign-wordmark { width:150px;filter:none; }
.ops-hub>header>span { display:none; }
.ops-hub>main { position:relative;z-index:1;width:min(1080px,calc(100% - 36px));min-height:calc(100svh - 76px);display:flex;flex-direction:column;justify-content:center;margin:auto;padding:54px 0 28px; }
.ops-hub-intro { display:block;margin:0 auto 36px;text-align:center; }
.ops-hub-intro .eyebrow { display:none; }
.ops-hub-intro h1 { margin:0 0 8px;color:#fff;font-family:"DM Sans",Arial,sans-serif;font-size:clamp(38px,4.5vw,58px);font-weight:650;letter-spacing:-.04em;line-height:1; }
.ops-hub-intro p { margin:0;color:#d6e1e9;font-size:17px;line-height:1.5; }
.ops-hub .ops-app-launcher { width:100%;padding:42px 34px 38px;border:1px solid rgba(213,231,245,.56);border-radius:26px;background:linear-gradient(145deg,rgba(66,94,119,.62),rgba(16,48,76,.72));box-shadow:0 30px 80px rgba(0,13,27,.34),inset 0 1px rgba(255,255,255,.18);backdrop-filter:blur(20px) saturate(115%); }
.ops-hub .ops-app-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px; }
.ops-hub .ops-app { position:relative;min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:visible;padding:12px 6px;border:0;border-radius:16px;text-align:center;color:#fff;background:transparent;box-shadow:none;transition:transform .2s ease,background .2s ease; }
.ops-hub .ops-app::before,.ops-hub .ops-app::after { display:none; }
.ops-hub .ops-app:not(:disabled):hover { transform:translateY(-5px);border-color:transparent;background:rgba(255,255,255,.09);box-shadow:none; }
.ops-hub .ops-app i { position:relative;z-index:1;width:94px;height:94px;display:grid;place-items:center;margin:0 0 20px;border:1px solid rgba(255,255,255,.28);border-radius:24px;color:#fff;font-style:normal;box-shadow:inset 0 1px rgba(255,255,255,.34),0 16px 28px rgba(0,12,25,.25); }
.ops-hub .ops-app.blue i { background:linear-gradient(145deg,#65b7ff,#1754c7); }
.ops-hub .ops-app.rose i { background:linear-gradient(145deg,#f768b3,#bb176a); }
.ops-hub .ops-app.gold i { background:linear-gradient(145deg,#ffd36c,#d58d00); }
.ops-hub .ops-app.mint i { background:linear-gradient(145deg,#8bc2a3,#487d67); }
.ops-hub .ops-app svg { width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round; }
.ops-hub .ops-app h2 { order:2;position:relative;z-index:1;margin:0;color:#fff;font-family:"DM Sans",Arial,sans-serif;font-size:19px;font-weight:750;letter-spacing:-.025em;line-height:1.2; }
.ops-hub .ops-app>span { order:3;position:relative;z-index:1;min-height:0;margin-top:7px;color:#d4e0e8;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:none; }
.ops-hub .ops-app p,.ops-hub .ops-app em { display:none; }
.ops-hub .ops-app:disabled { opacity:.62;cursor:not-allowed; }
.ops-hub footer { display:flex;justify-content:space-between;gap:20px;margin-top:auto;padding-top:20px;border-top:1px solid rgba(255,255,255,.18);color:#cbd8e2;font-size:11px; }
.ops-hub footer b { color:#fff; }
@media(max-width:760px){.ops-hub>header{height:68px;padding:0 15px}.ops-hub>header .campaign-wordmark{width:126px}.ops-hub>main{min-height:calc(100svh - 68px);justify-content:flex-start;padding:32px 0 22px}.ops-hub-intro{margin-bottom:24px}.ops-hub-intro h1{font-size:34px}.ops-hub-intro p{font-size:13px}.ops-hub .ops-app-launcher{padding:25px 14px 22px;border-radius:20px}.ops-hub .ops-app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ops-hub .ops-app{min-height:158px;padding:10px 4px}.ops-hub .ops-app i{width:68px;height:68px;margin-bottom:13px;border-radius:18px}.ops-hub .ops-app svg{width:36px;height:36px}.ops-hub .ops-app h2{font-size:14px}.ops-hub .ops-app>span{font-size:9px}.ops-hub footer{margin-top:28px;font-size:9px}}
.workspace-login .simple-workspace-login { max-width:420px;padding:34px; }
.simple-workspace-login .workspace-login-mark { margin-bottom:26px; }
.simple-workspace-login h1 { margin:0;color:#0a3154;font-size:36px; }
.simple-workspace-login>p { margin:8px 0 22px;color:#68798a; }
.simple-workspace-login form { margin:0; }

/* Selected hub direction: Design 1, glass app dock */
.ops-hub::before { background:linear-gradient(rgba(3,27,50,.68),rgba(3,29,53,.78)),url("assets/staff-community-login-v1.webp") center/cover no-repeat; }
.ops-hub>header { height:76px;padding:0 clamp(24px,5vw,76px);background:rgba(3,28,51,.72);border-bottom:1px solid rgba(255,255,255,.22); }
.ops-hub>header .campaign-wordmark { width:150px; }
.ops-hub>header>span { display:none; }
.ops-hub>main { width:min(1080px,calc(100% - 36px));min-height:calc(100svh - 76px);padding:54px 0 28px; }
.ops-hub-intro { margin-bottom:36px; }
.ops-hub-intro .eyebrow { display:none; }
.ops-hub-intro h1 { margin:0 0 8px;color:#fff;font-size:clamp(38px,4.5vw,58px);font-weight:650;letter-spacing:-.04em; }
.ops-hub-intro p { margin:0;color:#d6e1e9;font-size:17px; }
.ops-app-launcher { padding:42px 34px 38px;border:1px solid rgba(213,231,245,.56);border-radius:26px;background:linear-gradient(145deg,rgba(66,94,119,.62),rgba(16,48,76,.72));box-shadow:0 30px 80px rgba(0,13,27,.34),inset 0 1px rgba(255,255,255,.18);backdrop-filter:blur(20px) saturate(115%); }
.ops-app-grid { gap:22px; }
.ops-app { min-height:205px;padding:12px 6px;color:#fff; }
.ops-app:not(:disabled):hover { background:rgba(255,255,255,.09);transform:translateY(-5px); }
.ops-app i { width:94px;height:94px;margin-bottom:20px;border:1px solid rgba(255,255,255,.28);border-radius:24px;color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.34),0 16px 28px rgba(0,12,25,.25); }
.ops-app.blue i { background:linear-gradient(145deg,#65b7ff,#1754c7); }
.ops-app.rose i { background:linear-gradient(145deg,#f768b3,#bb176a); }
.ops-app.gold i { background:linear-gradient(145deg,#ffd36c,#d58d00); }
.ops-app.mint i { background:linear-gradient(145deg,#8bc2a3,#487d67); }
.ops-app svg { width:48px;height:48px;stroke-width:1.65; }
.ops-app h2 { color:#fff;font-size:19px;font-weight:750;letter-spacing:-.025em; }
.ops-app>span { margin-top:7px;color:#d4e0e8;font-size:11px;letter-spacing:.02em; }
.ops-app:disabled { opacity:.62; }
.ops-hub footer { padding-top:20px;color:#cbd8e2; }
@media(max-width:760px){.ops-hub>header{height:68px;padding:0 15px}.ops-hub>header .campaign-wordmark{width:126px}.ops-hub>main{min-height:calc(100svh - 68px);padding:32px 0 22px}.ops-hub-intro{margin-bottom:24px}.ops-hub-intro h1{font-size:34px}.ops-hub-intro p{font-size:13px}.ops-app-launcher{padding:25px 14px 22px;border-radius:20px}.ops-app-grid{gap:8px}.ops-app{min-height:158px;padding:10px 4px}.ops-app i{width:68px;height:68px;margin-bottom:13px;border-radius:18px}.ops-app svg{width:36px;height:36px}.ops-app h2{font-size:14px}.ops-app>span{font-size:9px}.ops-hub footer{font-size:9px}}
.login-page,.workspace-login { position:relative;background:linear-gradient(90deg,rgba(3,26,48,.93) 0%,rgba(3,35,63,.82) 43%,rgba(3,35,63,.28) 100%),url("assets/staff-community-login-v1.webp") center/cover no-repeat; }
.login-page { justify-content:flex-start;padding-left:clamp(24px,8vw,130px); }
.login-card,.workspace-login>section { border:1px solid rgba(255,255,255,.64);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(0,20,40,.25);backdrop-filter:blur(14px); }
.login-card { margin:0;width:min(470px,calc(100vw - 44px));padding:36px; }
.login-card h2,.workspace-login h1 { font-family:"DM Sans",Arial,sans-serif;font-weight:750;letter-spacing:-.05em; }
.login-card .eyebrow::before,.workspace-login .eyebrow::before { display:none !important;content:none !important; }
.login-page .login-back,.workspace-login .login-back { z-index:3;color:#fff;background:rgba(3,28,51,.44);border:1px solid rgba(255,255,255,.32);backdrop-filter:blur(10px); }
@media(max-width:760px){.login-page,.workspace-login{place-items:end center;justify-content:center;padding:92px 18px 26px;background-position:65% center}.login-card,.workspace-login>section{width:100%;max-width:500px;padding:27px 23px}}

/* Staff app launcher: compact, familiar and centred */
.ops-hub { min-height:100svh;color:#fff;background:#082f52 !important; }
.ops-hub::before { content:"";position:fixed;inset:0;background:linear-gradient(rgba(3,30,54,.70),rgba(3,30,54,.78)),url("assets/staff-community-login-v1.webp") center/cover no-repeat; }
.ops-hub-glow { display:none; }
.ops-hub>header { position:relative;height:72px;color:#fff;background:rgba(3,31,55,.62);border-bottom:1px solid rgba(255,255,255,.18);backdrop-filter:blur(16px); }
.ops-hub>header>button { color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3); }
.ops-hub>header .campaign-wordmark { filter:none; }
.ops-hub>header>span { color:#dbe7ef;border-left-color:rgba(255,255,255,.3); }
.ops-hub>main { min-height:calc(100svh - 72px);display:flex;flex-direction:column;justify-content:center;width:min(1000px,calc(100% - 36px));padding:46px 0 24px; }
.ops-hub-intro { display:block;margin:0 auto 28px;text-align:center; }
.ops-hub-intro .eyebrow { color:#f0bd42; }
.ops-hub-intro h1 { margin:8px 0;color:#fff;font-size:clamp(36px,4vw,52px);letter-spacing:-.045em; }
.ops-hub-intro p { color:#dce7ef;font-size:13px; }
.ops-app-launcher { width:100%;padding:34px 38px;border:1px solid rgba(255,255,255,.26);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 26px 80px rgba(0,15,29,.3);backdrop-filter:blur(18px); }
.ops-app-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:18px; }
.ops-app { min-height:170px;align-items:center;justify-content:flex-start;padding:14px 8px;border:0;border-radius:14px;text-align:center;background:transparent;box-shadow:none; }
.ops-app::before,.ops-app::after { display:none; }
.ops-app:not(:disabled):hover { transform:translateY(-3px);border-color:transparent;background:#edf3f7;box-shadow:none; }
.ops-app i { width:72px;height:72px;margin:0 0 16px;border-radius:18px;color:#fff;background:var(--app-color);box-shadow:0 8px 20px color-mix(in srgb,var(--app-color) 28%,transparent); }
.ops-app svg { width:40px;height:40px;stroke-width:1.55; }
.ops-app h2 { order:2;margin:0;color:#163852;font-size:15px;font-weight:750;letter-spacing:-.025em;line-height:1.2; }
.ops-app>span { order:3;min-height:0;margin-top:5px;color:#778694;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:none; }
.ops-app p,.ops-app em { display:none; }
.ops-app:disabled { opacity:.48; }
.ops-hub footer { margin-top:auto;padding-top:24px;color:#cbd9e3;border-top-color:rgba(255,255,255,.2); }
.ops-hub footer b { color:#fff; }

/* One shared centred entrance for all staff applications */
.login-page,.workspace-login { display:grid !important;place-items:center !important;justify-content:center !important;padding:86px 20px 28px !important;background:linear-gradient(rgba(3,30,54,.66),rgba(3,30,54,.78)),url("assets/staff-community-login-v1.webp") center/cover no-repeat !important; }
.login-card,.workspace-login>section { margin:0 auto !important;width:min(460px,100%) !important; }
.login-page .login-back,.workspace-login .login-back { position:absolute;top:24px;left:24px; }
@media(max-width:760px){.ops-hub>main{justify-content:flex-start;padding-top:34px}.ops-app-launcher{padding:25px 18px}.ops-app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ops-app{min-height:145px}.ops-app i{width:62px;height:62px}.ops-app svg{width:34px;height:34px}.ops-hub footer{margin-top:28px}.login-page,.workspace-login{padding:82px 16px 22px !important}.login-page .login-back,.workspace-login .login-back{top:18px;left:16px}}

/* TLC Operations app launcher */
.ops-hub { --hub-navy:#062f56; position:relative; min-height:100svh; overflow:hidden; color:#102b46; background:#f5f2eb; font-family:"DM Sans",Arial,sans-serif; }
.ops-hub-glow { position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 82% 2%,rgba(241,179,45,.18),transparent 28%),radial-gradient(circle at 4% 74%,rgba(13,111,166,.12),transparent 27%); }
.ops-hub > header { position:relative; z-index:2; height:92px; display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:20px; padding:0 clamp(22px,5vw,76px); border-bottom:1px solid rgba(6,47,86,.12); background:rgba(250,248,244,.82); backdrop-filter:blur(18px); }
.ops-hub > header > button { width:42px;height:42px;border:1px solid #ccd7df;border-radius:50%;color:var(--hub-navy);background:#fff;font-size:20px; }
.ops-hub > header .campaign-wordmark { color:var(--hub-navy); }
.ops-hub > header .campaign-wordmark i { border-color:#d5a318; }
.ops-hub > header > span { padding-left:20px;border-left:1px solid #c9d3dc;color:#506579;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase; }
.ops-hub > main { position:relative; z-index:1; width:min(1240px,calc(100% - 40px)); margin:auto; padding:clamp(52px,8vw,100px) 0 40px; }
.ops-hub-intro { display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.62fr);align-items:end;gap:30px;margin-bottom:44px; }
.ops-hub-intro .eyebrow { grid-column:1/-1;color:#d91783; }
.ops-hub-intro h1 { margin:0;color:var(--hub-navy);font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(52px,7vw,86px);font-weight:600;letter-spacing:-.045em;line-height:.9; }
.ops-hub-intro p { margin:0;color:#617184;font-size:15px;line-height:1.7; }
.ops-app-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
.ops-app { position:relative; min-height:335px; display:flex; flex-direction:column; align-items:flex-start; overflow:hidden; padding:26px; border:1px solid rgba(6,47,86,.1); border-radius:24px; text-align:left; background:#fff; box-shadow:0 18px 50px rgba(14,45,72,.07); transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.ops-app:not(:disabled):hover { transform:translateY(-6px);border-color:rgba(6,47,86,.24);box-shadow:0 26px 64px rgba(14,45,72,.14); }
.ops-app::after { content:"";position:absolute;right:-60px;bottom:-70px;width:180px;height:180px;border-radius:50%;background:var(--app-wash); }
.ops-app i { position:relative;z-index:1;width:58px;height:58px;display:grid;place-items:center;margin-bottom:45px;border-radius:17px;color:var(--app-color);background:var(--app-soft);font-style:normal; }
.ops-app svg { width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.ops-app > span { position:relative;z-index:1;color:var(--app-color);font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase; }
.ops-app h2 { position:relative;z-index:1;margin:7px 0 8px;color:var(--hub-navy);font-family:"Cormorant Garamond",Georgia,serif;font-size:31px;font-weight:600;line-height:1; }
.ops-app p { position:relative;z-index:1;margin:0;color:#6a7989;font-size:12px;line-height:1.55; }
.ops-app em { position:relative;z-index:1;margin-top:auto;color:var(--app-color);font-size:11px;font-style:normal;font-weight:900; }
.ops-app.blue { --app-color:#075b91;--app-soft:#e6f2f9;--app-wash:rgba(8,99,153,.07); }
.ops-app.rose { --app-color:#c91575;--app-soft:#fce7f3;--app-wash:rgba(222,22,135,.07); }
.ops-app.gold { --app-color:#a66b00;--app-soft:#fff2ce;--app-wash:rgba(232,169,22,.09); }
.ops-app.mint { --app-color:#47766d;--app-soft:#e5f2ee;--app-wash:rgba(52,135,116,.07); }
.ops-app:disabled { opacity:.62;cursor:not-allowed;box-shadow:none; }
.ops-hub footer { display:flex;justify-content:space-between;gap:20px;margin-top:38px;padding-top:22px;border-top:1px solid rgba(6,47,86,.1);color:#7a8794;font-size:11px; }
.ops-hub footer b { color:var(--hub-navy); }

.workspace-login { min-height:100svh;display:grid;place-items:center;padding:70px 22px;background:radial-gradient(circle at 75% 10%,rgba(239,48,145,.2),transparent 30%),linear-gradient(145deg,#052d50,#081d34);font-family:"DM Sans",Arial,sans-serif; }
.workspace-login > section { width:min(490px,100%);padding:42px;border:1px solid rgba(255,255,255,.25);border-radius:28px;background:#fbfaf7;box-shadow:0 35px 90px rgba(0,14,28,.38); }
.workspace-login-mark { display:flex;align-items:center;gap:12px;margin-bottom:42px;color:#0a4775;font-size:12px;font-weight:900;letter-spacing:.07em;text-transform:uppercase; }
.workspace-login-mark i { width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:#c91575;background:#fce7f3;font-style:normal;font-size:21px; }
.workspace-login h1 { margin:8px 0 14px;color:#062f56;font-family:"Cormorant Garamond",Georgia,serif;font-size:52px;font-weight:600;line-height:.95;letter-spacing:-.03em; }
.workspace-login p,.workspace-login small { color:#68798a;line-height:1.6; }
.workspace-login form,.workspace-login label { display:grid;gap:9px; }
.workspace-login form { margin:27px 0 19px; }
.workspace-login label { color:#173d5d;font-size:12px;font-weight:800; }
.workspace-login input { width:100%;border:1px solid #c5d3dd;border-radius:13px;padding:15px;background:#fff;color:#062f56;font:inherit; }

.care-app { min-height:100svh;color:#153851;background:#f4f6f7;font-family:"DM Sans",Arial,sans-serif; }
.care-app > header { height:82px;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(20px,5vw,70px);color:#fff;background:#062f56; }
.care-app > header > div { display:flex;align-items:center;gap:13px; }
.care-app > header i { width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:#fff;background:#d6197e;font-style:normal; }
.care-app > header span { display:grid; }
.care-app > header small { color:#b9ccda;font-size:10px; }
.care-app > header button,.care-heading > button { border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:10px 15px;color:#fff;background:transparent;font-weight:800; }
.care-app > main { width:min(1240px,calc(100% - 34px));margin:auto;padding:50px 0; }
.care-heading { position:relative;margin-bottom:28px;padding:34px;border-radius:24px;color:#fff;background:linear-gradient(130deg,#06375f,#075d8e);box-shadow:0 24px 60px rgba(6,47,86,.16); }
.care-heading > button { margin-bottom:38px; }
.care-heading .eyebrow { color:#f5badd; }
.care-heading h1 { margin:5px 0;color:#fff;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(48px,7vw,78px);font-weight:600;line-height:.9; }
.care-heading p { max-width:650px;margin:14px 0 0;color:#d3e2ec;line-height:1.6; }
.care-heading > strong { position:absolute;right:34px;bottom:34px;padding:12px 16px;border-radius:12px;background:rgba(255,255,255,.1);font-size:12px; }
.care-app .pastoral-rule { display:none; }

@media(max-width:900px){.ops-app-grid{grid-template-columns:repeat(2,1fr)}.ops-hub-intro{grid-template-columns:1fr}.care-heading>strong{position:static;display:inline-block;margin-top:20px}}
@media(max-width:560px){.ops-hub>header{height:78px;grid-template-columns:42px 1fr;padding:0 16px}.ops-hub>header>span{display:none}.ops-hub>header .campaign-wordmark strong{font-size:18px}.ops-hub>main{width:calc(100% - 28px);padding-top:38px}.ops-hub-intro{margin-bottom:26px}.ops-hub-intro h1{font-size:50px}.ops-app-grid{grid-template-columns:1fr;gap:12px}.ops-app{min-height:225px;padding:22px}.ops-app i{margin-bottom:24px}.ops-app h2{font-size:29px}.ops-hub footer{flex-direction:column}.workspace-login>section{padding:29px 23px}.workspace-login h1{font-size:43px}.care-app>main{padding:22px 0}.care-heading{padding:25px}.care-app .pastoral-toolbar{padding:15px}.care-app .pastoral-case>header{grid-template-columns:48px 1fr}.care-app .pastoral-case>header strong{grid-column:2}.care-app .pastoral-case>header img,.care-app .pastoral-case>header i{width:48px;height:48px}}
.admin-headcount { display:grid;gap:9px;margin:15px;padding:15px;border-radius:14px;background:#edf5fa;color:#073f73; }
.admin-headcount>div { display:grid;grid-template-columns:1fr auto;gap:2px; }
.admin-headcount>div span,.admin-headcount>div small { color:#65788b;font-size:11px; }
.admin-headcount>div small { grid-column:1/-1; }
.admin-headcount>div b { font-size:28px; }
.admin-headcount p { display:flex;justify-content:space-between;gap:10px;margin:0;padding-top:8px;border-top:1px solid #d5e2eb;font-size:11px; }
.admin-headcount p span { color:#65788b;text-align:right; }
.admin-headcount a { margin-top:6px;color:#d6197e;font-size:11px;font-weight:900; }

/* Staff suite refinement */
.ops-hub .eyebrow::before,
.workspace-login .eyebrow::before,
.care-app .eyebrow::before,
.admin .eyebrow::before { display:none !important; content:none !important; }
.ops-hub { background:#f4f6f7; }
.ops-hub-glow { background:radial-gradient(circle at 78% 0,rgba(19,104,158,.08),transparent 30%); }
.ops-hub > header { height:76px;background:rgba(255,255,255,.94);border-bottom-color:#dfe5ea; }
.ops-hub > main { padding-top:64px; }
.ops-hub-intro { grid-template-columns:minmax(0,1fr) minmax(300px,.55fr);margin-bottom:32px; }
.ops-hub-intro .eyebrow { color:#bd1672;font-size:10px;letter-spacing:.16em; }
.ops-hub-intro h1 { font-family:"DM Sans",Arial,sans-serif;font-size:clamp(42px,5vw,66px);font-weight:750;letter-spacing:-.055em;line-height:1; }
.ops-hub-intro p { font-size:14px;line-height:1.65; }
.ops-app-grid { gap:14px; }
.ops-app { min-height:310px;padding:24px;border-radius:17px;border-color:#dfe5ea;box-shadow:0 10px 30px rgba(12,45,71,.055); }
.ops-app::before { content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--app-color); }
.ops-app::after { width:145px;height:145px;right:-62px;bottom:-62px; }
.ops-app i { width:52px;height:52px;margin-bottom:34px;border-radius:13px; }
.ops-app > span { min-height:26px;display:flex;align-items:flex-end;line-height:1.3;letter-spacing:.1em; }
.ops-app h2 { margin:7px 0 10px;font-family:"DM Sans",Arial,sans-serif;font-size:24px;font-weight:750;letter-spacing:-.035em;line-height:1.08; }
.ops-app p { font-size:12px;line-height:1.55; }
.ops-app em { font-size:10px;letter-spacing:.02em; }
.ops-app.blue { --app-color:#075b91;--app-soft:#e9f2f8;--app-wash:rgba(8,99,153,.06); }
.ops-app.rose { --app-color:#c91575;--app-soft:#f9e9f2;--app-wash:rgba(222,22,135,.055); }
.ops-app.gold { --app-color:#a86f08;--app-soft:#fbf0d5;--app-wash:rgba(232,169,22,.065); }
.ops-app.mint { --app-color:#4d776f;--app-soft:#e9f1ef;--app-wash:rgba(52,135,116,.05); }

.workspace-login,
.login-page { position:relative;background:linear-gradient(90deg,rgba(3,26,48,.93) 0%,rgba(3,35,63,.82) 43%,rgba(3,35,63,.28) 100%),url("assets/staff-community-login-v1.webp") center/cover no-repeat; }
.workspace-login { place-items:center start;padding-left:clamp(24px,8vw,130px); }
.workspace-login > section,
.login-card { position:relative;z-index:1;border:1px solid rgba(255,255,255,.64);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(0,20,40,.25);backdrop-filter:blur(14px); }
.workspace-login > section { max-width:470px;padding:36px; }
.workspace-login-mark { margin-bottom:30px; }
.workspace-login h1 { font-family:"DM Sans",Arial,sans-serif;font-size:40px;font-weight:750;letter-spacing:-.05em;line-height:1.02; }
.workspace-login .eyebrow,.login-card .eyebrow { font-size:10px;letter-spacing:.13em; }
.workspace-login .login-back,.login-page .login-back { z-index:3;color:#fff;background:rgba(3,28,51,.44);border:1px solid rgba(255,255,255,.32);backdrop-filter:blur(10px); }
.login-page { justify-content:flex-start;padding-left:clamp(24px,8vw,130px); }
.login-card { margin:0;width:min(470px,calc(100vw - 44px));padding:36px; }
.login-card h2 { font-family:"DM Sans",Arial,sans-serif;font-size:38px;font-weight:750;letter-spacing:-.05em; }

/* Professional CRM shell shared by Data Team and Care */
.admin { grid-template-columns:238px minmax(0,1fr);background:#f3f5f7;font-family:"DM Sans",Arial,sans-serif; }
.admin .premium-sidebar { background:#0a3154;box-shadow:8px 0 28px rgba(5,37,64,.08); }
.admin-brand { margin-bottom:24px; }
.admin-brand>b { font-family:"DM Sans",Arial,sans-serif;font-size:18px;font-weight:750; }
.sidebar .nav-btn { min-height:42px;border-radius:8px;font-size:12px; }
.sidebar .nav-btn.active { background:#174d77;border-color:rgba(255,255,255,.08); }
.sidebar .nav-btn.active::before { display:none; }
.admin-main { padding:28px clamp(20px,3vw,42px); }
.admin-head { margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #dce3e9; }
.admin-head h2,
.admin .crm-greeting h3,
.admin .ops-panel h3,
.admin .security-audit h3,
.admin .review-record header h3,
.admin .crm-summary-cards b { font-family:"DM Sans",Arial,sans-serif;font-weight:750;letter-spacing:-.035em; }
.admin-head h2 { font-size:clamp(30px,3.2vw,42px); }
.admin-head .eyebrow { font-size:9px;letter-spacing:.13em; }
.admin-compact-head { min-height:58px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #dce3e9; }
.review-record,.ops-panel,.people-list-card,.survey-visual,.survey-feedback-panel,.checkin-ledger,.scanner-card,.checkin-summary { border-radius:12px !important;box-shadow:0 5px 18px rgba(10,49,84,.045) !important; }
.review-record header h3 { font-size:20px; }
.admin-search input,.admin-compact-head input { border-radius:8px;background:#fff;box-shadow:none; }
.btn,.admin button { border-radius:8px; }
.table-wrap,.checkin-table { border-radius:10px; }

.care-app { background:#f3f5f7; }
.care-app > header { height:68px;background:#0a3154; }
.care-app > main { width:min(1320px,calc(100% - 36px));padding:30px 0; }
.care-heading { margin-bottom:20px;padding:26px 30px;border:1px solid #dce3e9;border-radius:14px;color:#133a5d;background:#fff;box-shadow:0 6px 20px rgba(8,44,74,.045); }
.care-heading > button { margin-bottom:24px;color:#0a568c;border-color:#c7d6e1;background:#eef5f9; }
.care-heading .eyebrow { color:#bd1672; }
.care-heading h1 { color:#0a3154;font-family:"DM Sans",Arial,sans-serif;font-size:clamp(34px,4vw,50px);font-weight:750;letter-spacing:-.05em;line-height:1; }
.care-heading p { color:#68798a; }
.care-heading > strong { color:#0a568c;background:#eaf3f8; }
.care-app .pastoral-toolbar,.care-app .pastoral-case { border-radius:12px;box-shadow:0 5px 18px rgba(10,49,84,.045); }
.care-app .pastoral-case > header h3 { font-family:"DM Sans",Arial,sans-serif;font-size:18px;letter-spacing:-.025em; }

@media(max-width:760px){.workspace-login,.login-page{place-items:end center;justify-content:center;padding:92px 18px 26px;background-position:65% center}.workspace-login>section,.login-card{width:100%;max-width:500px;padding:27px 23px}.ops-hub-intro{grid-template-columns:1fr}.ops-app>span{min-height:0}.admin{display:block}.care-heading>strong{position:static}}
.checkbox-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:10px; }
.checkbox-grid > label { display:flex; align-items:center; gap:9px; min-width:0; padding:11px 12px; border:1px solid #d7e1e8; border-radius:11px; background:#fff; color:var(--ink); font-size:12px; font-weight:700; cursor:pointer; }
.checkbox-grid input { width:17px; height:17px; flex:0 0 17px; accent-color:var(--magenta); }
.checkbox-grid span { min-width:0; overflow-wrap:anywhere; }
@media (max-width:520px) { .checkbox-grid { grid-template-columns:1fr; } }

/* Final mobile admin overrides: drawer replaces the overflowing bottom tabs. */
.admin-menu-button,
.admin-menu-shade { display: none; }
@media (max-width: 900px) {
  .admin { display: block; min-width: 0; overflow-x: hidden; }
  .admin-main { width: 100%; min-width: 0; padding: 84px 14px 30px; overflow-x: hidden; }
  .admin-menu-button { display: grid; position: fixed; z-index: 70; top: max(14px, env(safe-area-inset-top)); left: 14px; width: 48px; height: 44px; place-content: center; gap: 5px; border: 0; border-radius: 12px; background: #073f73; box-shadow: 0 8px 24px rgba(0,31,61,.25); }
  .admin-menu-button i { display: block; width: 23px; height: 2px; border-radius: 5px; background: #fff; }
  .admin-menu-shade { position: fixed; z-index: 58; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,24,47,.5); backdrop-filter: blur(2px); }
  .admin .sidebar { display: block; position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(310px, 86vw); height: 100dvh; overflow-y: auto; padding: max(24px,env(safe-area-inset-top)) 18px 30px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(0,20,40,.3); }
  .admin.admin-menu-open .sidebar { transform: translateX(0); }
  .admin.admin-menu-open .admin-menu-shade { display: block; }
  .admin.admin-menu-open .admin-menu-button { left: min(246px, calc(86vw - 64px)); background: rgba(255,255,255,.14); box-shadow: none; }
  .admin-head, .admin-compact-head { min-width: 0; width: 100%; flex-wrap: wrap; }
  .admin-head > div:first-child, .admin-compact-head > label { min-width: 0; width: 100%; }
  .admin-head h2, .admin-head p, .admin-main h3, .admin-main p, .notice { max-width: 100%; overflow-wrap: anywhere; }
  .admin-compact-head { gap: 12px; }
  .admin-compact-head .avatar { margin-left: auto; }
  .people-list-card, .review-record, .ops-panel, .survey-visual, .survey-feedback-panel { min-width: 0; max-width: 100%; overflow: hidden; }
  .people-table, .change-grid, .audit-event-list { max-width: 100%; overflow-x: auto; }
  .mobile-admin-nav { display: none !important; }
}
@media (max-height: 540px) and (orientation: landscape) and (max-width: 950px) {
  .admin-main { padding-top: 68px; }
  .admin-menu-button { top: 10px; }
  .admin .sidebar { padding-top: 16px; }
  .admin-brand { margin-bottom: 16px; }
  .admin-brand .campaign-wordmark { margin-bottom: 10px; }
  .admin-head h2 { font-size: 30px; }
}

/* Church Health insights dashboard */
.survey-insights { display: grid; gap: 18px; }
.survey-insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 27px;
  border: 1px solid #dce5ed;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f4f9fc 68%, #edf4fa 100%);
  box-shadow: 0 16px 46px rgba(5, 53, 95, .055);
}
.survey-insights-head h3 {
  margin: 6px 0 3px;
  color: var(--ink);
  font: 600 clamp(37px, 4vw, 54px)/.95 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
}
.survey-insights-head p { margin: 8px 0 0; color: #667587; font-size: 12px; }
.survey-filter { display: grid; grid-template-columns: auto minmax(190px, 250px); align-items: center; gap: 7px 10px; }
.survey-filter label { color: #526477; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.survey-filter select { min-height: 42px; padding: 0 34px 0 12px; border: 1px solid #cfdce6; border-radius: 9px; background: #fff; color: var(--ink); font: 600 11px "DM Sans", sans-serif; }
.survey-filter small { grid-column: 2; color: #7a8795; font-size: 9px; }
.survey-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.survey-kpis article {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 18px 19px;
  overflow: hidden;
  border: 1px solid #dce5ed;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 11px 30px rgba(5, 53, 95, .05);
}
.survey-kpis article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #0b4b82; }
.survey-kpis article:nth-child(2)::before { background: var(--magenta); }
.survey-kpis article:nth-child(3)::before { background: #36a47b; }
.survey-kpis article:nth-child(4)::before { background: var(--gold); }
.survey-kpis span { color: #617184; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.survey-kpis b { align-self: end; color: var(--ink); font: 600 42px/1 "Cormorant Garamond", Georgia, serif; }
.survey-kpis b em { color: #7b8998; font: 600 15px "DM Sans", sans-serif; font-style: normal; }
.survey-kpis small { margin-top: 7px; color: #7a8795; font-size: 9px; }
.survey-visual-grid { display: grid; grid-template-columns: minmax(430px, 1.35fr) minmax(260px, .75fr); gap: 14px; align-items: stretch; }
.survey-visual {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dce5ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(5, 53, 95, .05);
}
.survey-visual > header, .survey-feedback-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #e5ebf0; }
.visual-kicker { color: var(--magenta); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.survey-visual h4, .survey-feedback-panel h4 { margin: 4px 0 0; color: var(--ink); font: 600 25px/1 "Cormorant Garamond", Georgia, serif; }
.survey-visual header small { color: #7c8996; font-size: 9px; }
.scorecard { grid-row: span 2; }
.question-score-list { display: grid; gap: 12px; padding-top: 16px; }
.question-score-list > div { display: grid; grid-template-columns: minmax(110px, 150px) 1fr 32px 24px; align-items: center; gap: 10px; }
.question-score-list span { color: #485b6e; font-size: 10px; font-weight: 700; }
.question-score-list b { color: var(--ink); font-size: 11px; }
.question-score-list small { color: #8a96a2; font-size: 8px; text-align: right; }
.score-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eef3; }
.score-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b4b82, #3f9bd0); }
.distribution-card { min-height: 260px; }
.survey-bars { display: flex; align-items: end; justify-content: space-around; height: 150px; gap: 12px; padding: 22px 8px 0; }
.survey-bars > div { display: grid; grid-template-rows: 18px 1fr 18px; justify-items: center; align-items: end; width: 17%; height: 100%; }
.survey-bars i { display: block; width: 100%; max-width: 42px; min-height: 4px; border-radius: 6px 6px 2px 2px; background: #0b4b82; }
.survey-bars > div:nth-child(1) i, .survey-bars > div:nth-child(2) i { background: #a82868; }
.survey-bars > div:nth-child(3) i { background: #e69b34; }
.survey-bars > div:nth-child(4) i, .survey-bars > div:nth-child(5) i { background: #319773; }
.survey-bars span { color: #6c7a88; font-size: 8px; }
.survey-bars b { color: var(--ink); font-size: 9px; }
.scale-caption { display: flex; justify-content: space-between; padding-top: 8px; color: #87929e; font-size: 8px; }
.location-card { min-height: 315px; }
.location-viz { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; padding-top: 19px; }
.survey-donut { display: grid; place-items: center; width: 145px; height: 145px; border-radius: 50%; }
.survey-donut::before { content: ""; grid-area: 1 / 1; width: 93px; height: 93px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #edf1f4; }
.survey-donut > span { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.survey-donut b { color: var(--ink); font: 600 28px/1 "Cormorant Garamond", Georgia, serif; }
.survey-donut small { color: #788695; font-size: 8px; }
.location-legend { display: grid; gap: 3px; max-height: 190px; overflow: auto; }
.location-legend button { display: grid; grid-template-columns: 9px 1fr 25px 32px; align-items: center; gap: 7px; padding: 5px 6px; border: 0; border-radius: 7px; background: transparent; color: #536578; text-align: left; cursor: pointer; }
.location-legend button:hover { background: #f1f6fa; }
.location-legend i { width: 8px; height: 8px; border-radius: 50%; }
.location-legend span { overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.location-legend b { color: var(--ink); font-size: 9px; text-align: right; }
.location-legend em { color: #8a96a3; font-size: 8px; font-style: normal; text-align: right; }
.survey-feedback-panel { overflow: hidden; border: 1px solid #dce5ed; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(5, 53, 95, .05); }
.survey-feedback-panel > header { padding: 20px 22px 16px; }
.survey-feedback-panel > header p { margin: 7px 0 0; color: #718091; font-size: 10px; }
.survey-feedback-panel > header > strong { display: grid; color: var(--ink); font: 600 32px/1 "Cormorant Garamond", Georgia, serif; text-align: right; }
.survey-feedback-panel > header > strong small { color: #82909d; font: 700 8px "DM Sans", sans-serif; text-transform: uppercase; }
.feedback-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 22px; border-bottom: 1px solid #e4ebf0; }
.feedback-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #667587; font: 700 10px "DM Sans", sans-serif; cursor: pointer; }
.feedback-tabs button.active { border-bottom-color: var(--magenta); color: var(--ink); }
.feedback-tabs em { min-width: 23px; padding: 3px 6px; border-radius: 99px; background: #e9f1f7; color: #0b568b; font-size: 8px; font-style: normal; }
.feedback-tabs button.active em { background: #f9dfec; color: #a52565; }
.feedback-question { display: flex; justify-content: space-between; gap: 14px; padding: 16px 22px; background: #f6f9fb; }
.feedback-question b { color: var(--ink); font-size: 11px; }
.feedback-question span { color: #748393; font-size: 9px; white-space: nowrap; }
.feedback-responses { display: grid; max-height: 430px; overflow: auto; }
.feedback-responses article { display: grid; grid-template-columns: 36px 1fr; gap: 13px; padding: 16px 22px; border-bottom: 1px solid #edf1f4; }
.feedback-responses article > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #edf4f9; color: #0b568b; font-size: 9px; font-weight: 800; }
.feedback-responses p { margin: 3px 0 0; color: #435568; font-size: 11px; line-height: 1.65; }
@media (max-width: 1050px) {
  .survey-kpis { grid-template-columns: repeat(2, 1fr); }
  .survey-visual-grid { grid-template-columns: 1fr; }
  .scorecard { grid-row: auto; }
}
@media (max-width: 650px) {
  .survey-insights-head { align-items: stretch; flex-direction: column; padding: 20px; }
  .survey-filter { grid-template-columns: 1fr; }
  .survey-filter small { grid-column: 1; }
  .survey-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .survey-kpis article { min-height: 112px; padding: 14px; }
  .survey-kpis b { font-size: 33px; }
  .survey-visual { padding: 16px; }
  .question-score-list > div { grid-template-columns: 105px 1fr 27px; }
  .question-score-list small { display: none; }
  .location-viz { grid-template-columns: 1fr; justify-items: center; }
  .location-legend { width: 100%; }
  .feedback-tabs { padding: 0 10px; }
  .feedback-tabs button { font-size: 8px; }
  .feedback-question { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-lines span {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* Unified You Count colours and mobile census/survey experiences */
.btn:not(.ghost):not(.secondary):not(.danger) {
  background: var(--magenta);
  color: #fff;
}
.btn:not(.ghost):not(.secondary):not(.danger):hover {
  background: #bd1474;
}
.campaign-entry-actions {
  display: grid;
  justify-items: center;
  gap: 13px;
}
.campaign-survey-link {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0;
  animation: campaignFade 0.65s ease 3.75s forwards;
}
.profile-section-title {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 9px;
  padding: 13px 15px;
  border-left: 3px solid var(--magenta);
  border-radius: 0 12px 12px 0;
  background: #f7f3f8;
}
.profile-section-title b {
  color: var(--ink);
  font-size: 13px;
}
.profile-section-title span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.dob-fields > div {
  display: grid;
  grid-template-columns: 64px 1fr 112px;
  gap: 7px;
}
.household-section {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d8e2ec;
  border-radius: 16px;
  background: #f8fafd;
}
.household-section .profile-section-title {
  margin: -2px 0 12px;
}
.household-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 12px;
  margin: 10px 0;
  padding: 14px 50px 14px 14px;
  border: 1px solid #d8e2ec;
  border-radius: 14px;
  background: #fff;
}
.household-row .field {
  margin: 0;
}
.household-dob > div {
  display: grid;
  grid-template-columns: 58px minmax(110px, 1fr) 92px;
  gap: 6px;
}
.household-address {
  grid-column: 1 / -1;
}
.remove-household {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #d6dfe7;
  border-radius: 10px;
  background: #fff;
  color: var(--magenta);
  font-size: 20px;
}
.household-admin-value {
  display: grid;
  gap: 3px;
}
.household-admin-value small {
  color: var(--muted);
  line-height: 1.45;
}
.identity-result,
.identity-panel {
  border: 1px solid #cfddea;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: #f3f8fc;
}
.identity-result {
  margin: 20px 0;
  padding: 18px;
}
.identity-result span,
.identity-panel span {
  color: var(--magenta);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.identity-result b {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}
.identity-result p {
  color: var(--muted);
  font-size: 11px;
}
.identity-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
}
.identity-panel b,
.identity-panel small {
  display: block;
}
.identity-panel b {
  margin: 3px 0;
  color: var(--ink);
}
.identity-panel small {
  color: var(--muted);
}
.identity-actions {
  display: flex;
  gap: 7px;
}
.identity-success .identity-result {
  position: relative;
  overflow: hidden;
  min-height: 215px;
  padding: 118px 22px 22px;
  border: 1px solid rgba(221, 174, 76, 0.72);
  border-radius: 22px;
  background:
    url("/assets/tlc-campaign-logo.png") 22px 20px / 145px auto no-repeat,
    radial-gradient(
      circle at 112% -12%,
      transparent 0 43%,
      rgba(221, 174, 76, 0.65) 43.2% 43.8%,
      transparent 44% 51%,
      rgba(221, 174, 76, 0.36) 51.2% 51.7%,
      transparent 52%
    ),
    linear-gradient(145deg, #064d83 0%, #003763 52%, #002743 100%);
  box-shadow: 0 16px 40px rgba(0, 71, 127, 0.12);
}
.identity-success .identity-result::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 104px;
  width: 42px;
  right: auto;
  height: 3px;
  background: var(--gold);
}
.identity-success .identity-result span {
  color: var(--gold);
  font-size: 9px;
}
.identity-success .identity-result b {
  margin: 7px 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: 0.04em;
}
.identity-success .identity-result p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}
.identity-success {
  padding-top: 10px;
}
.identity-success .success-icon,
.identity-success > .campaign-kicker {
  display: none;
}
.identity-success > h2 {
  margin: 4px 0 6px;
  font-size: clamp(30px, 8vw, 42px);
}
.identity-success > .lede {
  max-width: 440px;
  margin: 0 auto 14px;
  font-size: 13px;
  line-height: 1.5;
}
.identity-keep-note {
  display: none;
}
.identity-email-message {
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.wallet-pass-form {
  margin: 0 0 8px;
}
.youcount-card-wrap {
  margin: 12px 0 18px;
}
.youcount-card-preview {
  position: relative;
  aspect-ratio: 1.586 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #1b3a6b url("/assets/youcount-card/card-bg-2x.png") center/cover no-repeat;
  box-shadow: 0 18px 38px rgba(17, 38, 72, .24);
  color: #f5f1ed;
  text-align: left;
}
.youcount-card-preview > img {
  position: absolute;
  top: 8%;
  left: 7%;
  width: 25%;
  height: auto;
  object-fit: contain;
}
.youcount-card-preview > span {
  position: absolute;
  top: 10%;
  right: 7%;
  color: #f5f1ed;
  font-size: clamp(13px, 4vw, 20px);
  font-weight: 300;
}
.youcount-card-preview > div {
  position: absolute;
  left: 7%;
  bottom: 13%;
  display: grid;
  gap: 4px;
}
.youcount-card-preview strong { font-size: clamp(14px, 4.5vw, 22px); }
.youcount-card-preview b { font: 500 clamp(20px, 7vw, 34px)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.youcount-card-preview small { color: #f5f1ed; font-size: clamp(10px, 3.3vw, 15px); }
.youcount-card-wrap > p { margin: 14px 8px 0; color: #667587; font-size: 11px; }
.wallet-actions { display: grid; gap: 7px; }
.apple-wallet-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #050505;
  font:
    700 16px/1 system-ui,
    -apple-system,
    sans-serif;
  cursor: pointer;
}
.apple-wallet-button span {
  margin-right: 7px;
  font-size: 23px;
}
.google-wallet-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c9d2dc;
  border-radius: 12px;
  background: #fff;
  color: #202124;
  font: 700 15px/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
.google-wallet-button span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4285f4 0 45%, #34a853 45% 65%, #fbbc04 65% 82%, #ea4335 82%);
  color: #fff;
  font-size: 13px;
}
.google-wallet-pending { margin: 3px 8px 10px; color: #738191; font-size: 10px; line-height: 1.5; }
.wallet-test-note {
  display: none;
}
.identity-success .btn.secondary {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-decoration: underline;
}
.survey-invitation {
  margin: 14px 0 8px;
  padding: 16px;
  border-radius: 14px;
  text-align: left;
  background: linear-gradient(140deg, #eef6fc, #fff5fa);
  border: 1px solid rgba(0, 71, 127, 0.14);
}
.survey-invitation h3 {
  margin: 0 0 5px;
  color: var(--ink);
}
.survey-invitation p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.survey-invitation .campaign-kicker {
  display: none;
}
.identity-success > .btn.ghost {
  min-height: 36px;
  font-size: 11px;
}
.family-attendance-section {
  grid-column: 1 / -1;
}
.family-attendee-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
  padding: 15px 44px 15px 15px;
  border: 1px solid rgba(0, 71, 127, 0.14);
  border-radius: 16px;
  background: #f7fafd;
}
.remove-family-attendee {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #e7eef5;
}
.member-review {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(0, 71, 127, 0.15);
  border-radius: 18px;
  background: #f8fbfe;
}
.member-review > .btn {
  margin: 10px 0 18px;
}
.member-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.member-review-grid > div {
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}
.member-review-grid span,
.member-review-grid b {
  display: block;
}
.member-review-grid span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.member-review-grid b {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .family-attendee-row,
  .member-review-grid {
    grid-template-columns: 1fr;
  }
}
.profile-photo-field {
  grid-column: 1 / -1;
}
.headshot-control {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 71, 127, 0.16);
  border-radius: 20px;
  background: #f7fafd;
}
.headshot-frame {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #e6eef6;
  box-shadow:
    0 0 0 2px var(--magenta),
    0 10px 24px rgba(0, 71, 127, 0.14);
  cursor: pointer;
}
.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.headshot-frame span {
  color: var(--ink);
  font-size: 42px;
  font-weight: 500;
}
.headshot-control b {
  color: var(--ink);
}
.headshot-control p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.headshot-button {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  padding: 9px 15px;
  cursor: pointer;
}
@media (max-width: 520px) {
  .headshot-control {
    gap: 14px;
    padding: 13px;
  }
  .headshot-frame {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }
}
.admin-member-identity {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin: 15px 0;
  padding: 15px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(120deg, var(--ink), #075f9e);
}
.admin-member-identity div {
  min-width: 0;
}
.admin-member-identity span,
.admin-member-identity strong {
  display: block;
}
.admin-member-identity span {
  margin-bottom: 5px;
  color: #f8a9d5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-member-identity strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}
.profile-wizard {
  margin-top: 18px;
}
.profile-wizard-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}
.profile-wizard-tabs::before {
  position: absolute;
  z-index: 0;
  top: 17px;
  left: 16%;
  right: 16%;
  height: 2px;
  content: "";
  background: #dce6ee;
}
.profile-wizard-tabs > button {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  color: #7b8897;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
}
.profile-wizard-tabs > button i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #dce6ee;
  border-radius: 50%;
  color: #6d7b8b;
  background: #fff;
  font-style: normal;
}
.profile-wizard-tabs > button.active {
  color: var(--ink);
}
.profile-wizard-tabs > button.active i {
  border-color: var(--magenta);
  color: #fff;
  background: var(--magenta);
  box-shadow: 0 0 0 5px rgba(236, 22, 140, 0.1);
}
.profile-wizard-tabs > button.complete i {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}
.profile-wizard-panel {
  display: none;
}
.profile-wizard-panel.active {
  display: block;
  animation: wizardIn 0.25s ease both;
}
@keyframes wizardIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.wizard-heading {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #edf5fb, #fff5fa);
}
.wizard-heading span {
  color: var(--magenta);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.wizard-heading h3 {
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 23px;
}
.wizard-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.wizard-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.wizard-fields > .household-section,
.wizard-fields > .group-picker-section,
.wizard-fields > .serving-section {
  grid-column: 1 / -1;
  width: 100%;
}
.field-error input,
.field-error select {
  border-color: #d71b58 !important;
  box-shadow: 0 0 0 3px rgba(215, 27, 88, 0.1);
}
.required-mark {
  float: right;
  margin-left: 8px;
  color: var(--magenta);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-wizard-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #dde6ee;
}
.mobile-wizard-action {
  display: none;
}
.profile-wizard-footer small {
  color: var(--muted);
  font-weight: 750;
}
.profile-wizard-footer .btn:last-child,
.profile-wizard-footer #profileNext {
  justify-self: end;
}

.survey-page {
  min-height: 100svh;
  padding: 100px 18px 55px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(20, 145, 215, 0.15), transparent 28%),
    #f4f7fa;
}
.survey-page > header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px clamp(18px, 5vw, 72px);
  background: linear-gradient(90deg, #0b4b82, #06345f);
}
.survey-page > header button {
  color: #fff;
  font-weight: 700;
}
.survey-card {
  width: min(720px, 100%);
  min-width: 0;
  overflow: hidden;
  margin: auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #dce5ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 65px rgba(0, 54, 96, 0.09);
}
.survey-card h1 {
  margin: 8px 0 11px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 59px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: none;
}
.survey-intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.survey-question {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid #e3eaf0;
}
.survey-question legend {
  padding: 0 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.survey-scale {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.survey-scale input {
  position: absolute;
  opacity: 0;
}
.survey-scale label {
  min-width: 0;
}
.survey-scale span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #cad8e4;
  border-radius: 11px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.survey-scale input:checked + span {
  border-color: var(--magenta);
  background: var(--magenta);
  color: #fff;
}
.survey-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}
.survey-warning {
  margin: 22px 0;
  border-left: 3px solid var(--gold);
}
.survey-thanks {
  margin-top: 7vh;
  text-align: center;
}
.survey-admin-lock {
  width: min(480px, 100%);
  margin-top: 30px;
  padding: 28px;
  border: 1px solid #d9e4ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(0, 53, 95, 0.07);
}
.survey-admin-lock h3,
.survey-admin-summary > h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}
.survey-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 30px;
}
.survey-metrics article {
  padding: 17px;
  border: 1px solid #dce5ed;
  border-top: 3px solid var(--magenta);
  border-radius: 14px;
  background: #fff;
}
.survey-metrics span,
.survey-metrics small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.survey-metrics b {
  display: block;
  margin: 8px 0 2px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}
.survey-comments {
  display: grid;
  gap: 10px;
}
.survey-comments article {
  padding: 16px;
  border: 1px solid #dce5ed;
  border-radius: 14px;
  background: #fff;
}
.survey-comments span {
  color: var(--magenta);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.survey-comments p {
  color: var(--ink);
  line-height: 1.55;
}
.survey-comments small {
  color: var(--muted);
}
@media (max-width: 650px) {
  .wizard-fields {
    grid-template-columns: 1fr;
  }
  .profile-wizard-tabs {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(61px + env(safe-area-inset-bottom));
    gap: 0;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    border-top: 1px solid #dce4ec;
    background: #fff;
    box-shadow: 0 -10px 35px rgba(0, 48, 88, 0.14);
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(68px, 0.85fr);
  }
  .profile-wizard-tabs::before {
    display: none;
  }
  .profile-wizard-tabs > button {
    justify-content: center;
    gap: 1px;
    min-width: 0;
    padding: 5px 2px 4px;
    border-radius: 0;
    color: #677488;
    font-size: 7.5px;
  }
  .profile-wizard-tabs > button i {
    width: 22px;
    height: 22px;
    border: 0;
    color: currentColor;
    background: transparent;
    font-size: 11px;
    font-weight: 850;
  }
  .profile-wizard-tabs > button.active {
    color: #fff;
    background: var(--magenta);
  }
  .profile-wizard-tabs > button.active i,
  .profile-wizard-tabs > button.complete i {
    border: 0;
    color: currentColor;
    background: transparent;
    box-shadow: none;
  }
  .profile-wizard-tabs > button.complete {
    color: var(--ink);
  }
  .mobile-wizard-action {
    display: block;
    height: 100%;
  }
  .mobile-wizard-action .btn {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: var(--magenta);
    font-size: 11px;
    font-weight: 850;
    box-shadow: none;
  }
  .profile-wizard-footer {
    display: none;
  }
  .profile-wizard-footer .btn {
    min-width: 104px;
    padding-inline: 14px;
  }
  .portal-card:has(.profile-wizard) {
    padding-bottom: 72px;
  }
  .member-topbar {
    min-height: 78px;
    height: auto;
    padding: 11px 18px;
  }
  .app:has(.member-topbar) .member-shell {
    padding-top: 102px;
  }
  .profile-editing .member-shell {
    padding-inline: 10px;
  }
  .profile-editing .portal-card {
    padding-top: 20px;
  }
  .member-wordmark {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    gap: 12px;
  }
  .member-wordmark .campaign-wordmark strong {
    font-size: 17px;
  }
  .member-care-title {
    margin-left: auto;
    padding-left: 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .journey-close {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 20px;
  }
  .journey-close span {
    display: none;
  }
  .admin-member-identity {
    grid-template-columns: 1fr;
  }
  .household-row {
    grid-template-columns: 1fr;
    padding: 14px 48px 14px 12px;
  }
  .household-address {
    grid-column: auto;
  }
  .household-dob > div {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .household-dob input:last-child {
    grid-column: 1 / -1;
  }
  .dob-fields > div {
    grid-template-columns: 58px 1fr;
  }
  .dob-fields input:last-child {
    grid-column: 1 / -1;
  }
  .profile-section-title {
    grid-column: auto;
  }
  .identity-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .identity-actions {
    flex-direction: column;
  }
  .survey-page {
    padding: 92px 12px 35px;
  }
  .survey-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 25px 18px;
    border-radius: 20px;
  }
  .survey-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 390px) {
  .member-shell {
    padding-inline: 8px;
  }
  .portal-card {
    padding-inline: 13px;
  }
  .profile-wizard-tabs > button {
    font-size: 7px;
  }
  .mobile-wizard-action .btn {
    font-size: 10px;
  }
  .member-topbar {
    padding-inline: 12px;
  }
  .member-wordmark .campaign-wordmark {
    gap: 8px;
  }
  .member-wordmark .campaign-wordmark strong {
    font-size: 15px;
  }
  .member-care-title {
    padding-left: 9px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-survey-link {
    animation: none;
    opacity: 1;
  }
}

/* Privacy transparency and employment context */
.data-privacy {
  margin: 18px 0 24px;
  border: 1px solid #d5e2ee;
  border-radius: 14px;
  background: #f6f9fc;
  overflow: hidden;
}
.data-privacy summary {
  padding: 13px 15px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.data-privacy > div {
  padding: 0 15px 14px;
  color: #52667c;
  font-size: 10px;
  line-height: 1.55;
}
.data-privacy p {
  margin: 7px 0;
}
.data-privacy a {
  color: var(--ink);
  font-weight: 700;
}
.campaign-form-panel .data-privacy.compact {
  margin: 18px 0 0;
  background: rgba(244, 248, 252, 0.8);
}
.employment-intro {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 15px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #f5f8fc;
}
.employment-intro b {
  color: var(--ink);
  font-size: 12px;
}
.employment-intro p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

/* You Count visual system for staff review */
.admin {
  background:
    radial-gradient(circle at 88% 0, rgba(54, 144, 206, 0.12), transparent 29%),
    #f4f7fa;
}
.sidebar {
  width: auto;
  background: linear-gradient(180deg, #0b4b82 0%, #06345f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-brand {
  margin: 2px 9px 34px;
}
.admin-brand .campaign-wordmark {
  margin-bottom: 21px;
  transform-origin: left center;
  transform: scale(0.82);
}
.admin-brand > b,
.admin-brand > small {
  display: block;
}
.admin-brand > b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}
.admin-brand > small {
  margin-top: 4px;
  color: #bcd2e5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sidebar .nav-label {
  color: #9fc1dd;
}
.sidebar .nav-btn {
  color: #dcebf6;
  border: 1px solid transparent;
}
.sidebar .nav-btn:hover,
.sidebar .nav-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}
.sidebar .nav-btn.active::before {
  content: "";
  width: 3px;
  height: 20px;
  margin-left: -7px;
  border-radius: 99px;
  background: #f5b323;
}
.source-note {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #bdd2e3;
}
.admin-main {
  padding: 38px clamp(22px, 4vw, 54px);
  color: var(--ink);
}
.admin-head h2,
.review-record header h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}
.admin-head h2 {
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 53px);
  letter-spacing: -0.045em;
}
.admin-head .eyebrow {
  color: var(--magenta);
}
.review-record,
.table-wrap,
.empty-queue {
  border-color: #dce5ed;
  box-shadow: 0 14px 40px rgba(5, 53, 95, 0.06);
}
.review-record {
  border-radius: 20px;
}
.review-record > header {
  border-bottom-color: #e3eaf0;
}
.review-record header h3 {
  color: var(--ink);
  font-size: 25px;
}
.admin-main .admin-head p,
.admin-main .review-record header p,
.admin-main .change-item > span,
.admin-main .empty-value,
.admin-main .admin-search span {
  color: #667384;
}
.admin-main .pc-link,
.admin-main .submitted-details summary,
.admin-main .change-item > div,
.admin-main .pc-records,
.admin-main .duplicate-responses {
  color: var(--ink);
}
.admin-search input {
  border-color: #d3e0ea;
  box-shadow: 0 8px 24px rgba(4, 49, 88, 0.04);
}
.admin .notice.green {
  border-left: 3px solid #f5b323;
  background: #edf5fb;
}
.admin .btn.secondary {
  background: var(--magenta);
  color: #fff;
}
.admin .btn.secondary:hover {
  background: #bd1474;
}
.admin .btn.ghost {
  color: var(--ink);
  background: #edf3f8;
  border-color: #c9d9e7;
}
.admin-head h2 small {
  color: var(--magenta);
}
.admin-main .pc-link {
  color: #0b67a3;
}
.admin-main .submitted-details summary {
  border-left: 3px solid var(--gold);
}
.admin-main .badge {
  color: #0b568b;
  background: #e7f1f8;
}
.admin-main .badge.warn {
  color: #8a5b17;
  background: #fff0d3;
}
.admin-main .badge.red {
  color: #a23d6f;
  background: #fae7f1;
}
.avatar i {
  background: #e4eef7;
  color: #0b4b82;
}
.login-page {
  background:
    linear-gradient(rgba(4, 54, 97, 0.28), rgba(3, 45, 82, 0.5)),
    url("assets/you-count-church-hero.png") center/cover no-repeat;
}
.login-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 25, 50, 0.3);
}
.login-wordmark {
  margin: -4px 0 27px;
  padding: 17px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d568e, #06365f);
}
.login-wordmark .campaign-wordmark {
  justify-content: center;
  width: 100%;
}
.login-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
  font-size: 39px;
  letter-spacing: -0.04em;
}
.login-card .eyebrow {
  color: var(--magenta);
}
.login-card .eyebrow::before {
  background: var(--gold);
}
.login-card .btn {
  background: var(--magenta);
  color: #fff;
}
.login-card .btn:hover {
  background: #bd1474;
}
.login-card .field label {
  color: var(--ink);
}
.login-card .lede,
.login-card .privacy {
  color: var(--muted);
}
.login-back {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(4, 45, 82, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .mobile-admin-nav {
    background: linear-gradient(90deg, #0b4b82, #06345f);
  }
  .admin-main {
    padding: 27px 16px 88px;
  }
}
@media (max-width: 580px) {
  .admin-head {
    align-items: flex-start;
    gap: 12px;
  }
  .admin-head h2 {
    font-size: 36px;
  }
  .employment-intro {
    grid-column: auto;
  }
  .login-card h2 {
    font-size: 34px;
  }
}

/* Quiet cinematic welcome */
.campaign-hero.campaign-welcome,
.campaign-hero.campaign-form-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 54px;
  text-align: center;
  background-position: center 42%;
}
.campaign-welcome .campaign-shade,
.campaign-form-stage .campaign-shade {
  background:
    linear-gradient(rgba(3, 48, 88, 0.28), rgba(2, 43, 80, 0.5)),
    radial-gradient(
      circle at center,
      transparent 15%,
      rgba(0, 28, 56, 0.18) 100%
    );
}
.campaign-welcome-header {
  justify-content: center;
  border-bottom: 0;
}
.campaign-wordmark {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 17vw, 205px);
}
.campaign-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 12px rgba(0, 25, 50, 0.2));
}
.campaign-header img.campaign-logo,
.campaign-welcome-header img.campaign-logo {
  width: 190px;
  height: 98px;
  object-position: center;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 10px 35px rgba(0, 31, 62, 0.14);
}
.campaign-welcome-copy {
  width: min(780px, 100%);
  margin-top: 15px;
}
.campaign-welcome-copy .campaign-kicker {
  margin-bottom: 20px;
  color: #fff;
  opacity: 0;
  animation: campaignFade 0.7s ease 0.2s forwards;
}
.campaign-welcome-copy h1 {
  margin: 0;
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(68px, 8vw, 116px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.88;
  opacity: 0;
  transform: translateY(12px);
  animation: campaignRise 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.35s forwards;
}
.campaign-welcome-copy h1 span {
  color: #ffd22e;
}
.campaign-typing-wrap {
  display: flex;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
}
.campaign-typed {
  display: inline-block;
  width: 0;
  max-width: max-content;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #ffd22e;
  color: #fff;
  font-family: Caveat, "Segoe Print", cursive;
  font-size: clamp(28px, 3.5vw, 45px);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 35, 68, 0.22);
  animation:
    campaignTyping 2.15s steps(25, end) 1.15s forwards,
    campaignCaret 0.7s step-end 1.15s 5;
}
.campaign-continue {
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 13px 30px;
  background: rgba(0, 31, 62, 0.18);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: campaignRise 0.65s ease 3.45s forwards;
  transition: 0.2s ease;
}
.campaign-continue:hover,
.campaign-continue:focus-visible {
  background: #fff;
  color: #073b70;
  transform: translateY(-1px);
}
.campaign-private {
  position: absolute;
  bottom: 25px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.campaign-form-panel {
  width: min(500px, 100%);
  padding: clamp(28px, 5vw, 46px);
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(0, 18, 39, 0.55);
  backdrop-filter: blur(18px);
  animation: campaignRise 0.55s ease both;
}
.campaign-form-panel .campaign-kicker {
  margin-bottom: 13px;
  color: var(--magenta);
}
.campaign-form-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(31px, 4vw, 45px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.campaign-form-panel > p,
.campaign-form-panel > small {
  color: var(--muted);
  line-height: 1.6;
}
.campaign-form-panel > p {
  font-size: 13px;
}
.campaign-form-panel .field {
  margin: 25px 0 13px;
}
.campaign-form-panel .btn {
  background: var(--magenta);
}
.campaign-form-panel > small {
  display: block;
  margin-top: 13px;
  text-align: center;
  font-size: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes campaignTyping {
  from {
    width: 0;
  }
  to {
    width: 25ch;
  }
}
@keyframes campaignCaret {
  50% {
    border-color: transparent;
  }
}
@keyframes campaignFade {
  to {
    opacity: 1;
  }
}
@keyframes campaignRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 580px) {
  .campaign-hero.campaign-welcome,
  .campaign-hero.campaign-form-stage {
    display: flex;
    padding: 92px 18px 45px;
    background-position: 58% center;
  }
  .campaign-header img.campaign-logo,
  .campaign-welcome-header img.campaign-logo {
    width: 154px;
    height: 80px;
  }
  .campaign-wordmark {
    gap: 10px;
  }
  .campaign-wordmark i {
    transform: scale(0.84);
  }
  .campaign-wordmark strong {
    font-size: 22px;
  }
  .campaign-welcome-copy h1 {
    font-size: clamp(42px, 12vw, 50px);
    white-space: nowrap;
  }
  .campaign-typing-wrap {
    min-height: 42px;
    margin-top: 22px;
  }
  .campaign-typed {
    font-size: clamp(18px, 5.3vw, 24px);
  }
  .campaign-continue {
    margin-top: 28px;
  }
  .campaign-form-panel {
    padding: 27px 22px;
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-welcome-copy .campaign-kicker,
  .campaign-welcome-copy h1,
  .campaign-continue,
  .campaign-form-panel {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .campaign-typed {
    width: 25ch;
    animation: none;
    border-right: 0;
  }
}

/* Premium admin layer */
.admin {
  font-family: "DM Sans", Poppins, Arial, sans-serif;
  background: radial-gradient(circle at 84% 0, rgba(40, 130, 196, .09), transparent 30%), #f5f7fa;
}
.admin .premium-sidebar {
  background: radial-gradient(circle at 20% 0, rgba(27, 111, 174, .3), transparent 32%), linear-gradient(180deg, #062f56 0%, #031f3c 100%);
}
.admin .admin-head h2,
.admin .crm-greeting h3,
.admin .ops-panel h3,
.admin .security-audit h3,
.admin .review-record header h3,
.admin .crm-summary-cards b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

/* Professional staff application overrides */
.admin .admin-head h2,
.admin .crm-greeting h3,
.admin .ops-panel h3,
.admin .security-audit h3,
.admin .review-record header h3,
.admin .crm-summary-cards b,
.admin-brand > b { font-family:"DM Sans",Arial,sans-serif;font-weight:750;letter-spacing:-.035em; }
.admin .premium-sidebar { background:#0a3154; }
.admin-head h2 { font-size:clamp(30px,3.2vw,42px); }
.admin-main { padding:28px clamp(20px,3vw,42px); }
.review-record,.ops-panel,.people-list-card,.survey-visual,.survey-feedback-panel,.checkin-ledger,.scanner-card,.checkin-summary { border-radius:12px !important;box-shadow:0 5px 18px rgba(10,49,84,.045) !important; }
.sidebar .nav-btn { border-radius:8px; }
.sidebar .nav-btn.active::before { display:none; }
.admin .eyebrow::before { display:none !important;content:none !important; }
.login-page,.workspace-login { display:grid !important;place-items:center !important;justify-content:center !important;padding:86px 20px 28px !important;background:linear-gradient(rgba(3,30,54,.66),rgba(3,30,54,.78)),url("assets/staff-community-login-v1.webp") center/cover no-repeat !important; }
.login-card,.workspace-login>section { margin:0 auto !important;width:min(460px,100%) !important;border:1px solid rgba(255,255,255,.64);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(0,20,40,.25);backdrop-filter:blur(14px); }
.login-card h2,.workspace-login h1 { font-family:"DM Sans",Arial,sans-serif;font-weight:750;letter-spacing:-.05em; }
.login-card .eyebrow::before,.workspace-login .eyebrow::before { display:none !important;content:none !important; }
.login-page .login-back,.workspace-login .login-back { position:absolute;z-index:3;top:24px;left:24px;color:#fff;background:rgba(3,28,51,.44);border:1px solid rgba(255,255,255,.32);backdrop-filter:blur(10px); }
@media(max-width:760px){.login-page,.workspace-login{padding:82px 16px 22px !important}.login-card,.workspace-login>section{width:100% !important;max-width:500px;padding:27px 23px}.login-page .login-back,.workspace-login .login-back{top:18px;left:16px}}

/* FINAL HUB CASCADE — selected Design 1 */
.ops-hub { min-height:100svh;color:#fff;background:#082f52 !important;font-family:"DM Sans",Arial,sans-serif; }
.ops-hub::before { content:"";position:fixed;inset:0;background:linear-gradient(rgba(3,27,50,.68),rgba(3,29,53,.78)),url("assets/staff-community-login-v1.webp") center/cover no-repeat; }
.ops-hub-glow { display:none; }
.ops-hub>header { position:relative;z-index:2;height:76px;display:grid;grid-template-columns:48px 1fr;align-items:center;gap:20px;padding:0 clamp(24px,5vw,76px);color:#fff;background:rgba(3,28,51,.72);border-bottom:1px solid rgba(255,255,255,.22);backdrop-filter:blur(16px); }
.ops-hub>header>button { width:42px;height:42px;border:1px solid rgba(255,255,255,.3);border-radius:50%;color:#fff;background:rgba(255,255,255,.1);font-size:20px; }
.ops-hub>header .campaign-wordmark { width:150px;filter:none; }
.ops-hub>header>span { display:none; }
.ops-hub>main { position:relative;z-index:1;width:min(1080px,calc(100% - 36px));min-height:calc(100svh - 76px);display:flex;flex-direction:column;justify-content:center;margin:auto;padding:54px 0 28px; }
.ops-hub-intro { display:block;margin:0 auto 36px;text-align:center; }
.ops-hub-intro .eyebrow { display:none; }
.ops-hub-intro h1 { margin:0 0 8px;color:#fff;font-family:"DM Sans",Arial,sans-serif;font-size:clamp(38px,4.5vw,58px);font-weight:650;letter-spacing:-.04em;line-height:1; }
.ops-hub-intro p { margin:0;color:#d6e1e9;font-size:17px;line-height:1.5; }
.ops-hub .ops-app-launcher { width:100%;padding:42px 34px 38px;border:1px solid rgba(213,231,245,.56);border-radius:26px;background:linear-gradient(145deg,rgba(66,94,119,.62),rgba(16,48,76,.72));box-shadow:0 30px 80px rgba(0,13,27,.34),inset 0 1px rgba(255,255,255,.18);backdrop-filter:blur(20px) saturate(115%); }
.ops-hub .ops-app-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px; }
.ops-hub .ops-app { position:relative;min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:visible;padding:12px 6px;border:0;border-radius:16px;text-align:center;color:#fff;background:transparent;box-shadow:none;transition:transform .2s ease,background .2s ease; }
.ops-hub .ops-app::before,.ops-hub .ops-app::after { display:none; }
.ops-hub .ops-app:not(:disabled):hover { transform:translateY(-5px);border-color:transparent;background:rgba(255,255,255,.09);box-shadow:none; }
.ops-hub .ops-app i { position:relative;z-index:1;width:94px;height:94px;display:grid;place-items:center;margin:0 0 20px;border:1px solid rgba(255,255,255,.28);border-radius:24px;color:#fff;font-style:normal;box-shadow:inset 0 1px rgba(255,255,255,.34),0 16px 28px rgba(0,12,25,.25); }
.ops-hub .ops-app.blue i { background:linear-gradient(145deg,#65b7ff,#1754c7); }
.ops-hub .ops-app.rose i { background:linear-gradient(145deg,#f768b3,#bb176a); }
.ops-hub .ops-app.gold i { background:linear-gradient(145deg,#ffd36c,#d58d00); }
.ops-hub .ops-app.mint i { background:linear-gradient(145deg,#8bc2a3,#487d67); }
.ops-hub .ops-app svg { width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round; }
.ops-hub .ops-app h2 { order:2;position:relative;z-index:1;margin:0;color:#fff;font-family:"DM Sans",Arial,sans-serif;font-size:19px;font-weight:750;letter-spacing:-.025em;line-height:1.2; }
.ops-hub .ops-app>span { order:3;position:relative;z-index:1;min-height:0;margin-top:7px;color:#d4e0e8;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:none; }
.ops-hub .ops-app p,.ops-hub .ops-app em { display:none; }
.ops-hub .ops-app:disabled { opacity:.62;cursor:not-allowed; }
.ops-hub footer { display:flex;justify-content:space-between;gap:20px;margin-top:auto;padding-top:20px;border-top:1px solid rgba(255,255,255,.18);color:#cbd8e2;font-size:11px; }
.ops-hub footer b { color:#fff; }
@media(max-width:760px){.ops-hub>header{height:68px;padding:0 15px}.ops-hub>header .campaign-wordmark{width:126px}.ops-hub>main{min-height:calc(100svh - 68px);justify-content:flex-start;padding:32px 0 22px}.ops-hub-intro{margin-bottom:24px}.ops-hub-intro h1{font-size:34px}.ops-hub-intro p{font-size:13px}.ops-hub .ops-app-launcher{padding:25px 14px 22px;border-radius:20px}.ops-hub .ops-app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ops-hub .ops-app{min-height:158px;padding:10px 4px}.ops-hub .ops-app i{width:68px;height:68px;margin-bottom:13px;border-radius:18px}.ops-hub .ops-app svg{width:36px;height:36px}.ops-hub .ops-app h2{font-size:14px}.ops-hub .ops-app>span{font-size:9px}.ops-hub footer{margin-top:28px;font-size:9px}}
