:root {
  --bg: #eef5f4;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #18424a;
  --muted: #54757b;
  --line: rgba(24, 66, 74, 0.12);
  --primary: #0f766e;
  --primary-deep: #0a514d;
  --accent: #b7ece6;
  --sand: #eef7f8;
  --champagne: rgba(244, 251, 252, 0.9);
  --sea-mist: rgba(227, 244, 241, 0.82);
  --soft: #f4fbfb;
  --shadow: 0 24px 60px rgba(17, 63, 74, 0.14);
  --shadow-soft: 0 28px 70px rgba(22, 66, 73, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --brand-dark: #0d5f67;
  --brand-medium: #0f8a87;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5f4 0%, #f5fbfb 40%, #edf4f3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto 64px;
}

.hero {
  padding: 0 0 28px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 50, 60, 0.62) 0%, rgba(12, 84, 96, 0.24) 36%, rgba(248, 252, 252, 0.12) 100%),
    url("assets/beach-hero.png") center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
  padding: 18px 28px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(18, 88, 96, 0.08);
}

.topbar__nav,
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__link {
  padding: 10px 2px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.topbar__link:hover,
.topbar__link.is-active {
  color: var(--brand-dark);
  border-color: rgba(15, 118, 110, 0.3);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
}

.brand-mark__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-mark__name {
  font-family: "DM Serif Display", serif;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--brand-dark);
}

.ghost-link {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.ghost-link.is-active {
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--brand-dark);
  background: rgba(226, 244, 242, 0.94);
}

.hero__content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
}

.hero-story {
  display: flex;
  align-items: stretch;
}

.hero-story__overlay {
  width: 100%;
  min-height: 540px;
  padding: 38px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(10, 51, 62, 0.08), rgba(10, 51, 62, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.hero-story__logo {
  width: min(340px, 62%);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(16, 54, 61, 0.12));
}

.hero-story__tagline {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
  color: rgba(15, 58, 67, 0.92);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.eyebrow,
.section-label,
.card__eyebrow,
.hero-card__label,
.group-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-dark);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1,
h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.25rem;
}

.hero__lede,
.section-copy,
.overview p,
.pillar p,
.roadmap-step p,
.list-item p,
.phone-copy,
.screen-copy,
.accent-panel,
.home-card__copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero__lede {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.role-tab:hover,
.ghost-link:hover,
.home-card:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff8ee;
  background: linear-gradient(135deg, #2b7e79, #1f6661 62%, #174f4b);
  box-shadow:
    0 16px 34px rgba(15, 95, 92, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button--secondary {
  color: #104248;
  background: rgba(249, 253, 253, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 26px rgba(20, 63, 70, 0.08);
}

.hero-card,
.card,
.roadmap-step,
.pillar,
.phone-frame,
.screen-shell {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  align-self: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-card__title {
  margin-bottom: 18px;
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  line-height: 1.12;
  color: #10363d;
}

.hero-card__copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card__list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.marketing-link-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 28px rgba(20, 63, 70, 0.07);
}

.marketing-link-card strong {
  color: var(--brand-dark);
}

.marketing-link-card span {
  color: var(--muted);
  line-height: 1.6;
}

.overview,
.workspace,
.roadmap,
.marketing-shell {
  margin-top: 44px;
}

.overview {
  display: grid;
  gap: 26px;
}

.pillars,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pillar {
  padding: 22px;
}

.workspace,
.roadmap,
.marketing-section {
  padding: 32px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8)),
    url("assets/beach-hero.png") center top / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.marketing-shell {
  display: grid;
  gap: 28px;
}

.site-page {
  display: none;
}

.site-page.is-active {
  display: grid;
  gap: 28px;
}

.marketing-section--narrow {
  max-width: 900px;
  margin-inline: auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-copy {
  max-width: 48ch;
}

.legal-card {
  display: grid;
  gap: 16px;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.role-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 16px;
  background: #fff8ef;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.role-tab.is-active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(234, 162, 75, 0.24));
  color: var(--ink);
  border-color: rgba(15, 118, 110, 0.18);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

#portal-experience.is-hidden,
#marketing-shell.is-hidden {
  display: none;
}

.mobile-shell,
.panel-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.mobile-shell {
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
}

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

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

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

.dashboard-grid--stats {
  margin-bottom: 4px;
}

.admin-group {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(242, 249, 250, 0.58));
  box-shadow:
    0 22px 52px rgba(20, 62, 71, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.admin-group + .admin-group {
  margin-top: 18px;
}

.admin-group__summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
}

.admin-group__summary::-webkit-details-marker {
  display: none;
}

.admin-group__summary h3 {
  margin: 2px 0 0;
  color: var(--brand-medium);
}

.admin-group__toggle {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-group[open] .admin-group__toggle::before {
  content: "Hide";
}

.admin-group:not([open]) .admin-group__toggle::before {
  content: "Show";
}

.admin-group__toggle {
  color: transparent;
  position: relative;
}

.admin-group__toggle::before {
  color: var(--brand-dark);
}

.admin-group__content {
  padding: 0 24px 24px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.password-field__toggle {
  border: 1px solid rgba(24, 66, 74, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
}

.phone-frame,
.screen-shell,
.card {
  padding: 24px;
}

.phone-frame {
  background:
    linear-gradient(115deg, rgba(8, 50, 60, 0.42) 0%, rgba(12, 84, 96, 0.16) 36%, rgba(248, 252, 252, 0.22) 100%),
    url("assets/beach-hero.png") center top / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 34px 84px rgba(20, 62, 71, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.screen-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.82)),
    url("assets/beach-hero.png") center top / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 30px 74px rgba(21, 64, 71, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(12px);
}

.phone-header,
.screen-header,
.card__header {
  margin-bottom: 22px;
}

.phone-header {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 30px;
  margin-bottom: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 24px 54px rgba(20, 62, 71, 0.08);
}

.phone-header::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.2), transparent);
}

.phone-header h3,
.screen-header h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--brand-medium);
}

.phone-copy,
.screen-copy {
  max-width: 44ch;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--brand-dark);
}

.card-groups {
  display: grid;
  gap: 24px;
}

.card-groups > section {
  padding: 18px 18px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 56px rgba(20, 62, 71, 0.05);
  backdrop-filter: blur(8px);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.home-card {
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 28px;
  padding: 22px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.42));
  cursor: pointer;
  display: grid;
  gap: 7px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 44px rgba(19, 59, 66, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-card:hover {
  box-shadow:
    0 24px 52px rgba(19, 59, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.56);
}

.home-card--primary {
  background:
    linear-gradient(155deg, rgba(201, 236, 240, 0.38), rgba(255, 255, 255, 0.44) 58%, rgba(235, 248, 249, 0.38) 100%);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 20px 46px rgba(16, 83, 80, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-card__title {
  position: relative;
  z-index: 1;
  font-family: "Manrope", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-medium);
}

.home-card__copy {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--brand-dark);
}

.phone-frame .home-grid {
  grid-template-columns: 1fr;
}

.phone-frame .home-card {
  min-height: 0;
}

.phone-frame .home-card__copy {
  max-width: 24ch;
}

.group-label {
  margin-bottom: 14px;
  color: var(--brand-dark);
  letter-spacing: 0.18em;
}

.panel[data-panel="public-app"] .screen-shell {
  position: relative;
  overflow: hidden;
}

.panel[data-panel="public-app"].panel--subscreen-active .mobile-shell {
  grid-template-columns: minmax(0, 1fr);
}

.panel[data-panel="public-app"] .screen-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(191, 235, 239, 0.1), transparent 28%);
  pointer-events: none;
}

.panel[data-panel="public-app"] .screen-header {
  margin-bottom: 24px;
  padding: 22px 22px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 20px 50px rgba(21, 64, 71, 0.05);
  backdrop-filter: blur(8px);
}

.panel[data-panel="public-app"] .screen {
  position: relative;
  z-index: 1;
}

@media (min-width: 1081px) {
  .panel[data-panel="public-app"] .mobile-shell {
    grid-template-columns: minmax(520px, 760px);
    justify-content: center;
  }

  .panel[data-panel="public-app"] .phone-frame,
  .panel[data-panel="public-app"] .screen-shell {
    width: 100%;
    max-width: none;
  }

  .panel[data-panel="public-app"] .card-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
  }

  .panel[data-panel="public-app"] .card-groups > section {
    height: 100%;
  }

  .panel[data-panel="public-app"] .card-groups > section:last-child {
    grid-column: 1 / -1;
  }

  .panel[data-panel="public-app"] .phone-header {
    padding: 28px 28px 24px;
  }
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.is-hidden {
  display: none !important;
}

.stack {
  display: grid;
  gap: 16px;
}

.application-form {
  gap: 22px;
}

.application-intro {
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(245, 251, 252, 0.96), rgba(236, 248, 249, 0.9));
  border: 1px solid rgba(18, 88, 96, 0.1);
  box-shadow:
    0 18px 42px rgba(20, 62, 71, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.application-section {
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(252, 254, 254, 0.96), rgba(241, 249, 250, 0.88));
  border: 1px solid rgba(18, 88, 96, 0.08);
  box-shadow:
    0 22px 52px rgba(20, 62, 71, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.application-section__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.application-section__step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-medium);
  font-size: 0.92rem;
  font-weight: 800;
}

.application-section__header h4 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: var(--brand-medium);
}

.application-section__header p {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.6;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.span-two {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel[data-panel="public-app"] .screen .stack > label,
.panel[data-panel="public-app"] .screen .stack > .choice-group,
.panel[data-panel="public-app"] .screen .stack > .note-panel,
.panel[data-panel="public-app"] .screen .stack > .consent-check {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 252, 253, 0.92), rgba(238, 248, 249, 0.82));
  border: 1px solid rgba(24, 66, 74, 0.08);
  box-shadow:
    0 14px 34px rgba(21, 60, 67, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.panel[data-panel="public-app"] .application-grid > label,
.panel[data-panel="public-app"] .application-grid > .choice-group,
.panel[data-panel="public-app"] .application-grid > .note-panel,
.panel[data-panel="public-app"] .application-grid > .consent-check {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 252, 253, 0.92), rgba(238, 248, 249, 0.82));
  border: 1px solid rgba(24, 66, 74, 0.08);
  box-shadow:
    0 14px 34px rgba(21, 60, 67, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.panel[data-panel="public-app"] .application-grid > label {
  align-content: start;
  color: var(--brand-medium);
}

.panel[data-panel="public-app"] .screen .stack > label {
  align-content: start;
  color: var(--brand-medium);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(32, 48, 50, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

input[name="memberId"],
input[name="providerId"],
input[name="cardId"],
input[name="donorId"] {
  text-transform: uppercase;
}

.panel[data-panel="public-app"] input::placeholder,
.panel[data-panel="public-app"] textarea::placeholder,
.panel[data-panel="public-app"] select::placeholder {
  color: rgba(13, 95, 103, 0.48);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: rgba(15, 118, 110, 0.32);
}

input:invalid,
textarea:invalid,
select:invalid {
  border-color: rgba(185, 64, 64, 0.38);
  background: rgba(255, 248, 248, 0.96);
}

input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
  outline: 2px solid rgba(185, 64, 64, 0.2);
  border-color: rgba(185, 64, 64, 0.5);
}

.info-panel,
.result-text,
.list-shell {
  margin-top: 16px;
}

.info-panel,
.accent-panel {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  color: var(--primary-deep);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.panel[data-panel="public-app"] .info-panel,
.panel[data-panel="public-app"] .accent-panel,
.panel[data-panel="public-app"] .note-panel {
  color: var(--brand-dark);
}

.connection-banner {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font-weight: 700;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.connection-banner--subtle {
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.note-panel {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(244, 250, 251, 0.84);
  color: var(--ink);
  line-height: 1.7;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.choice-group {
  margin: 0;
  padding: 16px 16px 18px;
  border: 1px solid rgba(32, 48, 50, 0.12);
  border-radius: var(--radius-md);
  background: rgba(245, 251, 252, 0.8);
  display: grid;
  gap: 12px;
}

.question-label {
  margin: 0 0 2px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-medium);
}

.application-section label:has(input:required, textarea:required, select:required) .field-label::after,
.question-label .required-mark::after {
  content: " *";
  color: #b94040;
  font-weight: 800;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.choice-option input {
  width: 18px;
  height: 18px;
}

.consent-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
}

.consent-check input {
  margin-top: 4px;
}

.application-submit {
  margin-top: 4px;
}

.result-text {
  min-height: 24px;
  color: var(--primary-deep);
  font-weight: 700;
}

.provider-flow {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.provider-claims-stats {
  margin-bottom: 18px;
}

.provider-history-toggle {
  border: 1px solid rgba(22, 64, 72, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(241, 249, 250, 0.94), rgba(233, 245, 247, 0.9));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.provider-history-toggle__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: #153f46;
}

.provider-history-toggle__summary::-webkit-details-marker {
  display: none;
}

.provider-history-toggle__hint {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #285f65;
}

.provider-history-toggle[open] .provider-history-toggle__summary {
  border-bottom: 1px solid rgba(22, 64, 72, 0.1);
}

.provider-history-toggle .list-shell {
  padding: 16px;
}

.provider-step {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(20, 67, 74, 0.14);
  background:
    linear-gradient(180deg, rgba(247, 252, 252, 0.96), rgba(236, 247, 248, 0.9));
  box-shadow:
    0 18px 40px rgba(18, 79, 88, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.provider-step--active {
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow:
    0 22px 46px rgba(16, 83, 80, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.provider-step--locked {
  opacity: 0.8;
}

.provider-step--ready {
  opacity: 1;
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow:
    0 24px 50px rgba(16, 83, 80, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.provider-step__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.provider-step__badge {
  min-width: 76px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(197, 232, 229, 0.92);
  color: #276166;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.provider-step__header h4 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  color: var(--brand-medium);
}

.provider-step__header p {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.6;
}

#provider-claim-step .result-text {
  margin-top: 14px;
}

.panel[data-panel="public-app"] .result-text {
  color: var(--brand-dark);
}

.stat-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card h3 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.list-shell {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(250, 253, 253, 0.92);
  border: 1px solid rgba(21, 63, 70, 0.1);
}

.panel[data-panel="provider-portal"] .screen-copy,
.panel[data-panel="provider-portal"] .list-item p,
.panel[data-panel="provider-portal"] .list-item__meta {
  color: #456870;
}

.panel[data-panel="provider-portal"] .info-panel,
.panel[data-panel="provider-portal"] .accent-panel {
  background: rgba(246, 251, 252, 0.94);
  border-color: rgba(22, 64, 72, 0.1);
  color: #224b52;
}

.panel[data-panel="provider-portal"] .stat-card {
  background:
    linear-gradient(180deg, rgba(247, 252, 252, 0.97), rgba(237, 247, 248, 0.92));
  border-color: rgba(20, 67, 74, 0.12);
}

.panel[data-panel="provider-portal"] .stat-card h3,
.panel[data-panel="provider-portal"] .card__header h3,
.panel[data-panel="provider-portal"] .provider-step__header h4 {
  color: #153f46;
}

.list-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.list-item p {
  margin: 0;
}

.list-item__meta {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.list-item__actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.report-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 66, 74, 0.08);
}

.report-stat__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.report-stat strong {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-medium);
}

.report-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(24, 66, 74, 0.08);
  color: var(--brand-dark);
}

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

.report-breakdown-row strong {
  color: var(--brand-medium);
  font-size: 1rem;
}

.report-breakdown-row--story {
  justify-content: flex-start;
  align-items: flex-start;
}

.impact-summary-card {
  margin-bottom: 16px;
}

.donor-card-shell {
  display: grid;
  gap: 20px;
}

.donor-lookup-actions {
  display: flex;
  align-items: end;
}

.donor-dashboard {
  display: grid;
  gap: 16px;
}

.donor-summary-grid {
  margin-bottom: 0;
}

.donor-highlight-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(242, 250, 251, 0.72));
}

.donor-highlight-card h4 {
  color: var(--brand-medium);
}

.donor-section {
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 20px 40px rgba(18, 79, 88, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(10px);
}

.donor-section h4 {
  color: var(--brand-dark);
}

.donor-section p {
  color: var(--ink);
}

.donor-section--summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(218, 240, 243, 0.42)),
    linear-gradient(135deg, rgba(205, 233, 238, 0.22), rgba(255, 255, 255, 0.1));
}

.donor-section--message {
  background:
    linear-gradient(180deg, rgba(243, 249, 250, 0.62), rgba(209, 235, 237, 0.46)),
    linear-gradient(135deg, rgba(196, 226, 227, 0.24), rgba(255, 255, 255, 0.08));
}

.donor-section--updates {
  background:
    linear-gradient(180deg, rgba(240, 248, 249, 0.6), rgba(201, 229, 233, 0.44)),
    linear-gradient(135deg, rgba(188, 219, 226, 0.24), rgba(255, 255, 255, 0.08));
}

.donor-section--stories {
  background:
    linear-gradient(180deg, rgba(248, 252, 251, 0.58), rgba(214, 238, 233, 0.42)),
    linear-gradient(135deg, rgba(196, 231, 224, 0.2), rgba(255, 255, 255, 0.08));
}

.donor-section--donor-note {
  background:
    linear-gradient(180deg, rgba(247, 251, 251, 0.6), rgba(220, 239, 241, 0.44)),
    linear-gradient(135deg, rgba(204, 231, 235, 0.22), rgba(255, 255, 255, 0.08));
}

.donor-section--funding {
  background:
    linear-gradient(180deg, rgba(244, 250, 251, 0.64), rgba(214, 236, 239, 0.46)),
    linear-gradient(135deg, rgba(200, 227, 231, 0.24), rgba(255, 255, 255, 0.08));
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.funding-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.funding-card__button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 170px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(9, 52, 63, 0.18), rgba(9, 52, 63, 0.36)),
    url("assets/beach-hero.png") center center / cover no-repeat;
  box-shadow:
    0 18px 34px rgba(18, 79, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.funding-card__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.funding-card__amount,
.funding-card__label {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(7, 36, 44, 0.32);
}

.funding-card__amount {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.funding-card__label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.funding-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--brand-dark);
}

.donor-note-card {
  position: relative;
  border-color: rgba(15, 95, 103, 0.16);
  box-shadow:
    0 18px 34px rgba(18, 79, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.donor-note-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 18px;
  border-radius: 999px;
  background: rgba(183, 236, 230, 0.72);
  transform: rotate(8deg);
}

.donor-note-card h4 {
  color: var(--brand-dark);
}

.donor-note-card p {
  color: var(--ink);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.impact-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 66, 74, 0.08);
  min-width: 0;
  min-height: 124px;
}

.impact-stat__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--brand-dark);
  overflow-wrap: normal;
  word-break: normal;
}

.impact-stat strong {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-medium);
}

body.print-impact-mode .hero,
body.print-impact-mode .overview,
body.print-impact-mode .roadmap,
body.print-impact-mode .role-tabs,
body.print-impact-mode .connection-banner,
body.print-impact-mode .applications-queue,
body.print-impact-mode .claims-queue,
body.print-impact-mode #applications-list,
body.print-impact-mode #claims-list,
body.print-impact-mode #member-cards-list,
body.print-impact-mode #therapists-list,
body.print-impact-mode #audit-logs-list,
body.print-impact-mode #donations-list,
body.print-impact-mode .auth-toolbar .button,
body.print-impact-mode #admin-auth-card,
body.print-impact-mode .claim-review-actions,
body.print-impact-mode .panel:not(.is-active),
body.print-impact-mode .card:not(:has(.impact-summary-card)):not(:has(#report-filters-form)) {
  display: none !important;
}

body.print-impact-mode .page-shell,
body.print-impact-mode main,
body.print-impact-mode .workspace,
body.print-impact-mode .panel-grid,
body.print-impact-mode .dashboard-grid,
body.print-impact-mode #admin-dashboard-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: white;
  box-shadow: none;
}

body.print-impact-mode .workspace,
body.print-impact-mode .card,
body.print-impact-mode .list-item {
  background: white !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.print-impact-mode .impact-summary-card,
body.print-impact-mode .card:has(#report-filters-form) {
  display: block !important;
}

@media print {
  body {
    background: white;
  }

  .hero,
  .overview,
  .roadmap,
  .role-tabs,
  .connection-banner,
  #admin-auth-card,
  .auth-toolbar .button,
  #applications-list,
  #claims-list,
  #member-cards-list,
  #therapists-list,
  #audit-logs-list,
  #donations-list,
  .claim-review-actions,
  .mini-button:not(#print-impact-summary-button) {
    display: none !important;
  }

  .page-shell,
  main,
  .workspace,
  .panel-grid,
  .dashboard-grid,
  #admin-dashboard-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: white;
    box-shadow: none;
  }

  .workspace,
  .card,
  .list-item {
    background: white !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .dashboard-grid {
    display: block;
  }

  .card:has(#report-filters-form),
  .impact-summary-card {
    break-inside: avoid;
    margin-bottom: 20px;
  }

  #print-impact-summary-button {
    display: none !important;
  }
}

.mini-button {
  width: 100%;
  border: 1px solid rgba(10, 81, 77, 0.18);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(234, 162, 75, 0.12));
  color: #103634;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.mini-button--ghost {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(13, 95, 103, 0.18);
  background: linear-gradient(180deg, rgba(220, 243, 241, 0.92), rgba(236, 249, 248, 0.86));
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow:
    0 10px 24px rgba(16, 59, 67, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
}

.global-home-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(211, 239, 236, 0.97), rgba(232, 248, 246, 0.92));
  box-shadow:
    0 18px 34px rgba(16, 59, 67, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 8px 8px;
  color: var(--muted);
}

.site-footer__brand {
  display: grid;
  gap: 6px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

[data-go-home],
[data-go-main] {
  opacity: 0.001;
  pointer-events: none;
  position: absolute;
}

#impact-stories-list .mini-button {
  width: auto;
  padding: 10px 14px;
  border-radius: 14px;
  border-color: rgba(13, 95, 103, 0.12);
  background: rgba(233, 245, 246, 0.78);
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: none;
}

.claim-card {
  cursor: pointer;
}

.claim-card.is-selected {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.claim-review-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.claim-review-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.auth-shell {
  display: grid;
  gap: 24px;
}

#provider-workspace-shell {
  gap: 28px;
}

.auth-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-toolbar--card {
  padding: 0 4px;
}

.roadmap-grid {
  margin-top: 24px;
}

.roadmap-step {
  padding: 24px;
}

.roadmap-step span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-deep);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .mobile-shell,
  .hero__content,
  .panel-grid,
  .dashboard-grid,
  .pillars,
  .roadmap-grid,
  .stack--two-column,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar__nav,
  .topbar__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

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

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

@media (max-width: 720px) {
  .global-home-button {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 12px 16px;
    font-size: 0.92rem;
    min-width: 124px;
    justify-content: center;
    max-width: calc(100vw - 28px);
    background: linear-gradient(180deg, rgba(207, 237, 234, 0.98), rgba(229, 247, 245, 0.94));
    box-shadow:
      0 18px 34px rgba(16, 59, 67, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .page-shell {
    width: min(100vw - 20px, 1200px);
    margin-bottom: 32px;
  }

  .workspace,
  .roadmap,
  .card,
  .hero-card,
  .pillar,
  .phone-frame,
  .screen-shell {
    padding: 20px;
    border-radius: 22px;
  }

  .topbar {
    margin-bottom: 28px;
    padding: 14px 20px;
  }

  .brand-mark {
    width: 100%;
    justify-content: center;
  }

  .brand-mark__name {
    font-size: 1.55rem;
  }

  .topbar__nav,
  .topbar__actions {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 3rem;
  }

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

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

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

  .donor-lookup-actions {
    align-items: stretch;
  }

  .admin-group__summary {
    flex-direction: column;
    align-items: start;
  }

  .admin-group__content {
    padding: 0 18px 18px;
  }

  .provider-step {
    padding: 18px;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
    text-align: center;
  }

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

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

  .impact-stat__label {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .hero__content {
    padding: 0 20px 20px;
  }

  .brand-mark__logo {
    width: 36px;
    height: 36px;
  }

  .brand-mark__name {
    font-size: 1.45rem;
  }

  .hero-story__overlay {
    padding: 24px;
    min-height: 420px;
  }

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

@media (max-width: 520px) {
  .funding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .funding-card__button {
    min-height: 150px;
    padding: 14px 12px;
  }

  .funding-card__amount {
    font-size: 1.6rem;
  }
}
