:root {
  color-scheme: light;
  --ink: #15201d;
  --muted: #64706b;
  --line: #dce5df;
  --paper: #ffffff;
  --soft: #f4f8f5;
  --green: #178a63;
  --green-dark: #0b6349;
  --sun: #f4b640;
  --sky: #2d75d4;
  --coral: #e85d56;
  --lavender: #7d68d8;
  --shadow: 0 20px 60px rgba(18, 45, 37, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(23, 138, 99, 0.06), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(244, 182, 64, 0.16), transparent 22%),
    #fbfdfb;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 138, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 138, 99, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
}

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

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

button {
  cursor: pointer;
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 74px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 253, 251, 0.88);
  border-bottom: 1px solid rgba(220, 229, 223, 0.8);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.brand,
.brand-mark,
.desktop-nav,
.topbar-action,
.mobile-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  justify-content: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-mark svg path:first-child {
  fill: #eaf8ef;
}

.brand-mark svg path:last-child {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 760;
  line-height: 1;
}

.desktop-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav a,
.mobile-nav a,
.brand,
.topbar-action,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.filter-pill {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.topbar-action:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(23, 138, 99, 0.26);
}

.secondary-button:hover,
.danger-button:hover,
.filter-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 45, 37, 0.08);
}

.topbar-action,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 780;
  text-align: center;
}

.topbar-action,
.primary-button {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 28px rgba(23, 138, 99, 0.22);
}

.secondary-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button {
  background: transparent;
  color: var(--green-dark);
  border-color: transparent;
}

.danger-button {
  background: #fff4f2;
  color: #b3332e;
  border-color: #ffd3cc;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 6vw, 86px) clamp(18px, 5vw, 76px) 34px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 4vw;
  bottom: 0;
  width: min(42vw, 620px);
  height: 220px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(45, 117, 212, 0.1), rgba(23, 138, 99, 0.12));
  filter: blur(54px);
  opacity: 0.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #cde8dc;
  border-radius: 999px;
  background: #eefaf4;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 690px;
  color: #3e4a45;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.no-margin {
  margin-top: 0;
}

.waitlist-form {
  max-width: 760px;
  margin-top: 24px;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.45fr) auto;
  gap: 10px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 12%, rgba(244, 182, 64, 0.2), transparent 24%),
    linear-gradient(145deg, #ffffff, #eef8f2);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: riseIn 520ms ease both;
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  min-height: 305px;
  border-radius: var(--radius);
  background: #eaf3ee;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 305px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms ease;
}

.hero-photo-wrap:hover .hero-photo {
  transform: scale(1.07);
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 25, 19, 0.62));
}

.hero-photo-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  min-width: 190px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(18, 35, 29, 0.88);
  color: #fff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.hero-photo-badge span {
  display: block;
  color: #d9eee5;
  font-size: 0.78rem;
  font-weight: 820;
}

.hero-photo-badge strong {
  display: block;
  margin: 5px 0;
  font-size: 2.1rem;
  line-height: 0.9;
}

.map-scene {
  position: relative;
  height: 100%;
  min-height: 420px;
  padding: 24px;
}

.mini-map {
  min-height: 170px;
  padding: 16px;
}

.mini-map .pin {
  width: min(180px, 44%);
  padding: 10px;
}

.mini-map .pin.food {
  left: 16px;
  top: 20px;
}

.mini-map .pin.park {
  right: 16px;
  top: 62px;
}

.mini-map .pin.library {
  left: 38px;
  bottom: 18px;
}

.mini-map .live-card {
  display: none;
}

.mini-map .map-line {
  inset: 50px 34px 42px 48px;
}

.map-line {
  position: absolute;
  inset: 74px 42px 96px 56px;
  border: 3px dashed rgba(23, 138, 99, 0.35);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 60px 0 0;
}

.pin {
  position: absolute;
  display: grid;
  gap: 5px;
  width: min(210px, 48%);
  padding: 14px;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(30, 54, 45, 0.12);
}

.pin strong {
  font-size: 0.95rem;
}

.pin span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.pin.food {
  left: 24px;
  top: 44px;
  border-top: 5px solid var(--sun);
}

.pin.park {
  right: 24px;
  top: 142px;
  border-top: 5px solid var(--green);
}

.pin.library {
  left: 54px;
  bottom: 42px;
  border-top: 5px solid var(--sky);
}

.live-card {
  position: absolute;
  right: 22px;
  bottom: 26px;
  width: min(244px, 58%);
  padding: 16px;
  border-radius: var(--radius);
  background: #17231f;
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.live-card span {
  color: #cfe6dc;
  font-size: 0.82rem;
  font-weight: 750;
}

.live-card strong {
  display: block;
  margin-top: 5px;
  font-size: 2rem;
  line-height: 1;
}

.section {
  padding: 32px clamp(18px, 5vw, 76px);
}

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

.profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-heading h1 {
  margin-bottom: 10px;
}

.profile-avatar {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #eaf7f1;
  box-shadow: 0 14px 34px rgba(20, 45, 37, 0.16);
  object-fit: cover;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.section-header p,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.trust-grid,
.stats-grid,
.opportunity-grid,
.dashboard-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

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

.story-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.story-image {
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef8f2;
  box-shadow: var(--shadow);
}

.story-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 650ms ease;
}

.story-image:hover img {
  transform: scale(1.05);
}

.story-copy {
  max-width: 620px;
}

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

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

.dashboard-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.65fr);
}

.tile,
.card,
.detail-card,
.form-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(20, 45, 37, 0.06);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.tile:hover,
.card:hover,
.detail-card:hover,
.form-card:hover,
.panel:hover {
  transform: translateY(-3px);
  border-color: #c5ddd1;
  box-shadow: 0 18px 42px rgba(20, 45, 37, 0.1);
}

.tile,
.card,
.detail-card,
.form-card,
.panel {
  padding: 18px;
}

.icon-box {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #eef8f2;
  color: var(--green-dark);
  font-weight: 900;
}

.card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  gap: 14px;
}

.page,
.section,
.hero {
  animation: riseIn 420ms ease both;
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cause {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d5ba6;
  font-size: 0.78rem;
  font-weight: 850;
}

.cause.environment {
  background: #eaf8ef;
  color: #11633d;
}

.cause.food {
  background: #fff6df;
  color: #8c5d09;
}

.cause.education {
  background: #eef5ff;
  color: #1d5ba6;
}

.cause.animals {
  background: #fff0f0;
  color: #ae3732;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #46544e;
  font-size: 0.94rem;
  list-style: none;
}

.meta-list li,
.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.meta-list li::before,
.check-row::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card-actions a,
.card-actions button {
  flex: 1;
}

.page {
  padding: 34px clamp(18px, 5vw, 76px);
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 80px);
  place-items: center;
}

.auth-card {
  width: min(620px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.social-auth-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

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

.google-auth-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.google-auth-button:hover {
  transform: translateY(-2px);
  border-color: #c8d8cf;
  box-shadow: 0 14px 26px rgba(20, 45, 37, 0.09);
}

.google-role-field {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.google-role-field select {
  min-height: 44px;
}

.google-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -35deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-reset {
  margin-top: 14px;
}

.admin-claim {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.admin-claim summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.admin-claim form {
  margin-top: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 28, 23, 0.42);
  backdrop-filter: blur(10px);
  animation: modalFade 180ms ease both;
}

.modal-card {
  position: relative;
  width: min(540px, 100%);
  padding: 24px;
  border: 1px solid rgba(220, 229, 223, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 26px 80px rgba(9, 30, 23, 0.24);
  animation: modalRise 220ms ease both;
}

.modal-card form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.modal-close:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20, 45, 37, 0.08);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.filter-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  color: #3f4c47;
  font-weight: 750;
}

.filter-pill.active {
  border-color: var(--green);
  background: #edf9f3;
  color: var(--green-dark);
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.28fr) minmax(170px, 0.32fr) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(18, 45, 37, 0.06);
}

.admin-tools label {
  display: grid;
  gap: 7px;
  color: #4c5b55;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-tools input,
.admin-tools select {
  min-height: 42px;
}

.table-count {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  margin-left: 8px;
  border-radius: 999px;
  background: #eef8f2;
  color: var(--green-dark);
  font-size: 0.8rem;
  vertical-align: middle;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.46fr);
  gap: 18px;
}

.detail-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 138, 99, 0.95), rgba(45, 117, 212, 0.92)),
    #178a63;
  color: #fff;
}

.detail-hero .cause {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.detail-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.detail-hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.info-item {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.info-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.info-item strong {
  display: block;
  line-height: 1.25;
}

.form-card form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #34433d;
  font-size: 0.9rem;
  font-weight: 780;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cad7d0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.pending {
  background: #fff5dd;
  color: #8b5b06;
}

.status.approved {
  background: #e9f9f0;
  color: #11633d;
}

.status.verified {
  background: #eef5ff;
  color: #185aa6;
}

.status.declined {
  background: #fff0f0;
  color: #a72e2a;
}

.status.locked {
  background: #f4f0ff;
  color: #5a3aa0;
}

.status.neutral {
  background: #f0f3f1;
  color: #4a5751;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed #b8c9bf;
  border-radius: var(--radius);
  background: #f8fbf9;
  color: var(--muted);
  text-align: center;
}

.empty-state-copy {
  align-content: center;
  gap: 8px;
  padding: 24px;
}

.empty-state-copy h3,
.empty-state-copy p {
  margin: 0;
}

.empty-state-copy p {
  max-width: 560px;
  color: var(--muted);
}

.wide-empty {
  grid-column: 1 / -1;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e6eee9;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--sky));
}

.impact-number {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.small-impact {
  font-size: 2.2rem;
}

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

.request-row,
.roster-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe7e0;
  border-radius: var(--radius);
  background: #fbfdfc;
}

.flow-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.flow-section-heading h3,
.flow-section-heading p {
  margin: 0;
}

.reminder-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.reminder-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #cfe1d7;
  border-radius: var(--radius);
  background: #fbfdfc;
}

.reminder-card span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reminder-card p {
  margin: 0;
  color: #34433d;
  line-height: 1.42;
}

.mobile-dashboard-summary {
  display: none;
  gap: 10px;
}

.mobile-dashboard-summary a {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid #cfe1d7;
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(19, 75, 55, 0.08);
}

.section-subhead {
  margin-top: 28px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.decision-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.decision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.event-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #d6e3dc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.timeline-step.complete {
  border-color: #bfe4cf;
  background: #e9f9f0;
  color: #11633d;
}

.reflection-form {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.report-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.report-field {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.report-field strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.report-preview {
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  color: #24332d;
  font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.compact-table {
  display: grid;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(110px, 0.7fr) minmax(130px, 0.75fr) minmax(90px, 0.6fr) minmax(105px, 0.65fr);
  gap: 10px;
  align-items: center;
  min-width: 760px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.compact-row.waitlist-admin-row {
  grid-template-columns: minmax(210px, 1.2fr) minmax(110px, 0.6fr) minmax(130px, 0.7fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr);
}

.compact-row.active-profile-row {
  grid-template-columns: minmax(210px, 1.2fr) minmax(110px, 0.6fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr) minmax(100px, 0.55fr);
}

.compact-row.organization-admin-row {
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr) minmax(150px, 0.8fr) minmax(120px, 0.65fr) minmax(230px, 1.1fr);
  min-width: 940px;
}

.compact-row.event-row {
  grid-template-columns: minmax(210px, 1.2fr) minmax(160px, 0.9fr) minmax(95px, 0.55fr) minmax(120px, 0.65fr) minmax(70px, 0.4fr) minmax(150px, 0.75fr);
  min-width: 900px;
}

.compact-row.roster-table-row {
  grid-template-columns: minmax(140px, 0.8fr) minmax(190px, 1fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr) minmax(100px, 0.55fr) minmax(160px, 0.8fr);
  min-width: 940px;
}

.compact-row.audit-row {
  grid-template-columns: minmax(160px, 0.8fr) minmax(150px, 0.75fr) minmax(130px, 0.65fr) minmax(160px, 0.8fr) minmax(260px, 1.25fr);
  min-width: 940px;
}

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

.compact-head {
  background: #f1f7f4;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-export-row {
  margin-bottom: 16px;
}

.table-link {
  border: 0;
  background: transparent;
  color: #28745b;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 3px 0;
  text-decoration: underline;
  text-decoration-color: rgba(40, 116, 91, 0.26);
  text-underline-offset: 4px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease,
    transform 160ms ease;
}

.table-link:hover {
  color: #173f33;
  text-decoration-color: currentColor;
  transform: translateY(-1px);
}

.strong-link {
  color: #1d5ba6;
  text-decoration-color: rgba(29, 91, 166, 0.25);
}

.danger-link {
  color: #a72e2a;
  text-decoration-color: rgba(167, 46, 42, 0.24);
}

.compact-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.review-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.checklist-item {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.checklist-item span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checklist-item.complete span {
  background: #e9f9f0;
  color: #11633d;
}

.checklist-item.missing span {
  background: #fff5dd;
  color: #8b5b06;
}

.checklist-item strong {
  color: #24332d;
  font-size: 0.92rem;
}

.wide-modal {
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.roster-scroll {
  max-height: 280px;
  overflow: auto;
}

.mobile-checkin-mode {
  display: none;
}

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

.mobile-roster-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 45, 37, 0.08);
}

.mobile-roster-card h4,
.mobile-roster-card p {
  margin: 0;
}

.mobile-roster-status,
.mobile-roster-actions {
  display: grid;
  gap: 8px;
}

.mobile-roster-actions .primary-button,
.mobile-roster-actions .secondary-button,
.mobile-roster-actions .danger-button {
  width: 100%;
  min-height: 54px;
}

.mobile-hours-form {
  display: grid;
  gap: 10px;
}

.mobile-hours-form input {
  min-height: 50px;
  font-size: 1rem;
}

.compact-section-header {
  align-items: center;
}

.inline-hours-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-hours-form input {
  width: 72px;
  min-height: 30px;
  padding: 4px 6px;
}

.report-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.95fr) minmax(160px, 1.1fr) minmax(190px, 1.2fr) minmax(100px, 0.65fr) minmax(75px, 0.45fr) minmax(145px, 0.9fr);
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.report-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

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

.report-head {
  background: #f1f7f4;
  color: var(--green-dark);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid #bde4d2;
  border-radius: var(--radius);
  background: #f0fbf5;
  color: var(--green-dark);
  box-shadow: var(--shadow);
  font-weight: 760;
  animation: toastIn 220ms ease both;
}

.mobile-nav {
  position: sticky;
  top: 61px;
  z-index: 12;
  display: none;
  justify-content: space-around;
  gap: 6px;
  margin: 0 12px;
  padding: 8px;
  border: 1px solid rgba(220, 229, 223, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(20, 45, 37, 0.16);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  display: grid;
  min-width: 64px;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.mobile-nav a.active {
  background: #edf9f3;
  color: var(--green-dark);
}

@media (max-width: 980px) {
  .hero,
  .detail-layout,
  .dashboard-grid,
  .admin-grid,
  .story-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 18px;
  }

  .topbar {
    padding: 13px 16px;
  }

  .desktop-nav,
  .topbar-action {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .hero,
  .section,
  .page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(2.3rem, 14vw, 3.4rem);
  }

  .hero-panel,
  .map-scene {
    min-height: 0;
  }

  .hero-panel {
    padding: 10px;
  }

  .hero-photo-wrap,
  .hero-photo {
    min-height: 250px;
  }

  .hero-photo-badge {
    right: 12px;
    bottom: 12px;
    min-width: 150px;
  }

  .map-scene {
    display: grid;
    gap: 12px;
  }

  .map-line {
    display: none;
  }

  .pin {
    position: static;
    width: 100%;
  }

  .mini-map .pin {
    width: 100%;
  }

  .live-card {
    position: static;
    width: 100%;
  }

  .trust-grid,
  .stats-grid,
  .opportunity-grid,
  .info-grid,
  .input-row,
  .report-row {
    grid-template-columns: 1fr;
  }

  .mobile-dashboard-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .request-row,
  .flow-section,
  .panel,
  .form-card {
    padding: 14px;
  }

  .row-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .row-actions .primary-button,
  .row-actions .secondary-button,
  .row-actions .danger-button,
  .button-row .primary-button,
  .button-row .secondary-button,
  .button-row .danger-button {
    width: 100%;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .profile-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
  }

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

  .compact-table {
    overflow: visible;
    border: 0;
    gap: 10px;
  }

  .compact-row,
  .compact-row.waitlist-admin-row,
  .compact-row.active-profile-row,
  .compact-row.organization-admin-row,
  .compact-row.event-row,
  .compact-row.roster-table-row,
  .compact-row.audit-row {
    grid-template-columns: 1fr;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .compact-head {
    display: none;
  }

  .compact-actions,
  .inline-hours-form {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-hours-form input {
    width: 100%;
  }

  .event-timeline {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .desktop-roster-table {
    display: none;
  }

  .mobile-checkin-mode {
    display: grid;
    gap: 12px;
  }

  .mobile-checkin-heading h3,
  .mobile-checkin-heading p {
    margin: 0;
  }

  .report-table {
    border: 0;
    gap: 10px;
  }

  .report-row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .report-head {
    display: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}




