.modal-card .event-form-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  margin: 0 0 24px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.event-form-section legend {
  padding: 0 12px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.auth-card label.password-visibility {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.auth-card .password-visibility input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
}

.event-secondary-actions {
  min-width: 0;
  max-width: 100%;
}

.event-secondary-actions > summary {
  min-height: 44px;
  padding: 12px 8px;
  cursor: pointer;
  font-weight: 600;
}

.event-secondary-list {
  display: grid;
  gap: 4px;
  padding: 4px 0;
}

.event-secondary-list > button {
  min-height: 44px;
  white-space: normal;
}

.next-opportunity-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.next-opportunity-band h2 {
  font-size: 24px;
  overflow-wrap: anywhere;
}

: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;
}

/* NJHS version */
body {
  background: #f5f7f8;
  color: #18211d;
}

.topbar,
.site-footer {
  background: #ffffff;
}

.njhs-hero {
  min-height: min(760px, calc(100vh - 76px));
  align-items: center;
  background: #eaf4ef;
  border-bottom: 1px solid #c8d9d0;
}

.njhs-hero-copy {
  max-width: 720px;
}

.njhs-hero h1 {
  max-width: 13ch;
}

.njhs-hero-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid #b8ccc1;
  border-radius: 8px;
  background: #ffffff;
}

.njhs-hero-panel .hero-photo {
  display: block;
  width: 100%;
  height: auto;
}

.njhs-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d9e4de;
}

.njhs-hero-facts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #d9e4de;
  font-size: 0.86rem;
}

.njhs-hero-facts span:last-child {
  border-right: 0;
}

.njhs-waitlist {
  margin: 0;
}

.njhs-access-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: start;
  background: #ffffff;
  border-bottom: 1px solid #d9e4de;
}

.njhs-steps-band,
.njhs-opportunities-band {
  background: #ffffff;
}

.njhs-story-band {
  background: #eef2f5;
}

.njhs-check-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.njhs-check-list span::before {
  content: "✓";
  margin-right: 10px;
  color: #11633f;
  font-weight: 800;
}

.admin-priority-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 2px solid #9c6b00;
  background: #fff8dc;
}

.event-advanced-fields {
  grid-column: 1 / -1;
}

button,
.primary-button,
.secondary-button,
.topbar-action,
.desktop-nav a,
.mobile-nav a,
input,
select,
summary {
  min-height: 44px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.dashboard-tabs,
.filters {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.page,
.section,
.panel,
.form-card,
.compact-row > * {
  min-width: 0;
}

@media (max-width: 640px) {
  .njhs-hero {
    min-height: auto;
  }

  .njhs-hero-facts {
    grid-template-columns: 1fr;
  }

  .njhs-hero-facts span {
    border-right: 0;
    border-bottom: 1px solid #d9e4de;
  }

  .njhs-hero-facts span:last-child {
    border-bottom: 0;
  }

  .admin-priority-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .njhs-access-band {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-contrast: more) {
  body {
    background: #ffffff;
    color: #000000;
  }

  .panel,
  .form-card,
  .card,
  .detail-card,
  .njhs-hero-panel,
  .dashboard-tabs {
    border: 2px solid #000000;
  }

  .muted,
  .fine-print,
  .field-note {
    color: #222222;
  }
}

* {
  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: 1;
  color: #45514d;
  background: #e7ece9;
  border-color: #aebbb4;
  transform: none;
  box-shadow: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  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-account,
.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);
}
.topbar-account {
  position: relative;
  justify-content: flex-end;
  gap: 10px;
  min-width: 86px;
}

.profile-menu-wrap {
  position: relative;
}

.profile-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(20, 45, 37, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-menu-button:hover,
.profile-menu-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(23, 138, 99, 0.35);
  box-shadow: 0 16px 34px rgba(20, 45, 37, 0.13);
}

.profile-menu-button .profile-avatar {
  width: 32px;
  height: 32px;
  border-width: 2px;
  box-shadow: none;
}

.profile-menu-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-caret {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: grid;
  gap: 4px;
  width: 178px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(20, 45, 37, 0.16);
  animation: menuIn 140ms ease both;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  text-align: left;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: var(--green-soft);
  color: var(--green-dark);
}
.notification-menu-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 12px 28px rgba(20, 45, 37, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.notification-button:hover,
.notification-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(23, 138, 99, 0.35);
  box-shadow: 0 16px 34px rgba(20, 45, 37, 0.13);
}

.notification-button .action-icon,
.notification-button svg {
  width: 20px;
  height: 20px;
}

.notification-button .action-icon {
  margin: 0;
}

.notification-dot {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #111827;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(20, 45, 37, 0.16);
  animation: menuIn 140ms ease both;
}

.notification-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.compact-menu-item {
  width: auto;
  min-height: 32px;
  padding: 0 10px;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding: 10px;
}

.notification-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.notification-item.unread {
  border-color: #c7d2fe;
  background: #f5f3ff;
}

.notification-item p {
  margin: 4px 0 6px;
  color: var(--muted);
}

.notification-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 740;
}

.notification-image-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.notification-image-strip img {
  width: 84px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.notification-compose-form input[type="file"] {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8faff;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.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: #eef2ff;
  color: #1e3a8a;
  border-color: #c7d2fe;
}

.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(109, 40, 217, 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 #c7d2fe;
  border-radius: 999px;
  background: #f5f3ff;
  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: #111827;
  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(37, 99, 235, 0.16), transparent 24%),
    linear-gradient(145deg, #ffffff, #f5f3ff);
  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: #eef2ff;
}

.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(7, 8, 18, 0.66));
}

.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(7, 8, 18, 0.9);
  color: #fff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.hero-photo-badge span {
  display: block;
  color: #dbeafe;
  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;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1;
}

.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;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 18px;
  margin-top: 24px;
}

.settings-profile-card {
  display: grid;
  gap: 20px;
}

.settings-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-profile-header h2 {
  margin-bottom: 4px;
}

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

.settings-access-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.settings-access-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}



.code-card {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.code-card code {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faff;
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

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

.settings-name-form {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.settings-form input[type="file"] {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8faff;
  cursor: pointer;
}

.form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.settings-connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.settings-connected-card,
.settings-picture-card,
.settings-danger-card {
  align-content: start;
}
.settings-danger-card {
  border-color: #c7d2fe;
  background: #fffafa;
}

.settings-danger-card h2 {
  color: #8f2521;
}

.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: #f5f3ff;
  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);
}

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

.public-feature-row.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.public-feature-row.reverse .public-page-image {
  order: 2;
  justify-self: end;
}

.public-feature-row.reverse .public-feature-copy {
  order: 1;
}

.public-page-image {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f3ff;
  box-shadow: var(--shadow);
  animation: softIn 220ms ease both;
}

.public-page-image img {
  display: block;
  width: 100%;
  height: auto;
}

.public-feature-copy {
  max-width: 620px;
}

.public-feature-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.04;
}

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

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

.how-step-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 210px;
}

.how-step-card .icon-box {
  margin-bottom: 4px;
}

.approval-request-row {
  gap: 16px;
}

.approval-info-grid {
  margin-top: 4px;
}

.approval-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.approval-section h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.approval-section p {
  margin-bottom: 0;
}

.approval-contact-list {
  margin-top: 4px;
}

.event-action-summary {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf8;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-action-summary strong {
  color: var(--ink);
}
.compact-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.quick-answer-grid .info-item:first-child {
  grid-column: 1 / -1;
}

.organization-empty-state {
  margin: 18px 0;
}

.organization-empty-state .primary-button {
  width: fit-content;
  margin-top: 6px;
}

.faq-accordion {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(18, 45, 37, 0.06);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: #bfe3d2;
  box-shadow: 0 18px 46px rgba(23, 138, 99, 0.1);
  transform: translateY(-1px);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    linear-gradient(var(--green-dark), var(--green-dark)) center / 12px 2px no-repeat,
    linear-gradient(var(--green-dark), var(--green-dark)) center / 2px 12px no-repeat,
    #edf9f3;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.faq-item[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    var(--green);
  transform: none;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.65;
}
.audience-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.audience-summary-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.audience-summary-card img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: #f5f3ff;
}

.audience-summary-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}
.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: #f5f3ff;
  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;
}


.cause .action-icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
}

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

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

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

.cause.seniors {
  background: #f4efff;
  color: #6042a5;
}

.cause.community-events {
  background: #eaf8f4;
  color: #3b0764;
}
.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;
}
.locked-page {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.locked-panel {
  width: min(680px, 100%);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.locked-panel h1 {
  margin: 8px 0 10px;
}

.parent-connect-form,
.pin-form {
  display: grid;
  gap: 14px;
  margin: 22px auto 0;
  text-align: left;
}

.parent-connect-form {
  max-width: 440px;
}

.parent-pin-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pin-input-row {
  display: grid;
  grid-template-columns: repeat(4, 54px);
  justify-content: center;
  gap: 10px;
}

.pin-digit {
  width: 54px;
  height: 58px;
  padding: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.parent-controls-panel {
  margin-top: 22px;
}

.parent-controls-filters {
  margin-top: 18px;
}

.linked-teen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

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

.newsletter-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.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: 100;
  display: grid;
  place-items: center;
  padding: clamp(54px, 8vh, 78px) 20px 22px;
  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;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.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: 20px 0 28px;
}

.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);
}


.opportunity-filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  align-items: end;
  margin: 20px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(18, 45, 37, 0.06);
}

.opportunity-filter-panel label {
  color: #4c5b55;
  font-size: 0.82rem;
  font-weight: 850;
}

.opportunity-filter-panel .wide-filter {
  grid-column: span 2;
}
.opportunity-filter-compact {
  position: relative;
  z-index: 47;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 12px;
}

.opportunity-search-field {
  flex: 1 1 360px;
  min-width: min(100%, 260px);
  gap: 6px;
  margin: 0;
  color: #4c5b55;
  font-size: 0.82rem;
  font-weight: 850;
}

.search-input-wrap {
  position: relative;
  display: block;
}

.opportunity-search-field input {
  min-height: 46px;
  padding-right: 42px;
}

.search-clear-button {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f7fbf8;
  color: var(--muted);
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.search-clear-button:hover {
  border-color: #b7d7c8;
  color: var(--green-dark);
  background: #edf9f3;
}

.opportunity-filter-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.opportunity-filter-compact .secondary-button {
  min-width: 132px;
  justify-content: center;
  text-align: center;
}

.filter-summary {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.filter-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 28, 23, 0.28);
  backdrop-filter: blur(7px);
  animation: modalFade 180ms ease both;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 121;
  width: min(440px, 92vw);
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -24px 0 54px rgba(18, 45, 37, 0.18);
  animation: filterDrawerIn 200ms ease both;
}

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

.filter-drawer-header h2 {
  margin: 4px 46px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.drawer-filter-panel {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.drawer-filter-panel .wide-filter {
  grid-column: auto;
}

.quick-answer-grid .info-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

@keyframes filterDrawerIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-summary strong {
  color: var(--green-dark);
  font-size: 1.1rem;
}

.event-chip-row,
.event-detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-chip-row span,
.event-detail-chip-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d4e8de;
  border-radius: 999px;
  background: #f4fbf7;
  color: #355148;
  font-size: 0.82rem;
  font-weight: 850;
}

.detail-hero .event-detail-chip-row span {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.priority-detail-card {
  border-color: #bfe3d2;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  box-shadow: 0 16px 44px rgba(23, 138, 99, 0.1);
}

.event-card .meta-list .action-icon {
  margin-right: 6px;
}

.event-card .meta-list li::before {
  display: none;
}
.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: #f5f3ff;
  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(109, 40, 217, 0.95), rgba(37, 99, 235, 0.92)),
    #6d28d9;
  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: #f8faff;
  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 {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #e6eee9;
}

.progress-track::-webkit-progress-bar {
  background: #e6eee9;
}

.progress-track::-webkit-progress-value,
.progress-track::-moz-progress-bar {
  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(20, 45, 37, 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: 44px minmax(210px, 1.2fr) minmax(110px, 0.6fr) minmax(130px, 0.7fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr);
  min-width: 820px;
}

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

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

.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.account-history-row {
  grid-template-columns: 44px minmax(210px, 1.15fr) minmax(110px, 0.6fr) minmax(150px, 0.8fr) minmax(150px, 0.75fr) minmax(220px, 1fr);
  min-width: 970px;
}

.compact-row.data-export-row {
  grid-template-columns: 44px minmax(210px, 1.1fr) minmax(110px, 0.6fr) minmax(150px, 0.8fr) minmax(120px, 0.65fr) minmax(190px, 1fr);
  min-width: 920px;
}

.compact-row.email-event-row {
  grid-template-columns: 44px minmax(210px, 1fr) minmax(130px, 0.7fr) minmax(240px, 1.2fr) minmax(120px, 0.65fr) minmax(150px, 0.75fr);
  min-width: 980px;
}

.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;
}

.admin-row-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  line-height: 1;
  padding: 0;
  text-align: center;
}

.admin-row-check:hover,
.admin-row-check.selected {
  border-color: rgba(23, 138, 99, 0.45);
  background: #e8f8f0;
  color: var(--green-dark);
}

.admin-row-check span {
  display: grid;
  place-items: center;
}

.admin-row-check svg {
  display: block;
  width: 17px;
  height: 17px;
  stroke-width: 3;
}

.admin-selection-tray {
  position: fixed;
  top: 82px;
  right: 24px;
  z-index: 35;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.selection-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.selection-tray-head .tray-close {
  position: static;
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.selection-tray-mini-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
  font-size: 0.82rem;
}

.selection-tray-mini-table span {
  color: var(--muted);
  font-weight: 800;
}

.selection-tray-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.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 #c7d2fe;
  border-radius: var(--radius);
  background: #f5f3ff;
  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,
  .public-feature-row {
    grid-template-columns: 1fr;
  }

  .public-feature-row.reverse .public-page-image,
  .public-feature-row.reverse .public-feature-copy {
    order: initial;
  }

  .public-page-image,
  .public-feature-row.reverse .public-page-image {
    justify-self: center;
  }

  .trust-grid,
  .opportunity-grid,
  .audience-summary-grid,
  .compact-trust-grid,
  .faq-grid,
  .how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 18px;
  }

  .topbar {
    padding: 13px 16px;
  }

  .desktop-nav {
    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,
  .audience-summary-grid,
  .compact-trust-grid,
  .faq-grid,
  .how-steps,
  .audience-summary-card,
  .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,
  .request-card {
    align-items: stretch;
    flex-direction: column;
  }

  .pin-input-row {
    grid-template-columns: repeat(4, minmax(42px, 54px));
  }

  .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;
  }
  .profile-menu-button .profile-avatar {
    width: 32px;
    height: 32px;
  }

  .profile-menu-name {
    display: none;
  }

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



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

  .settings-connection-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tools,
  .opportunity-filter-panel {
    grid-template-columns: 1fr;
  }

  .opportunity-filter-panel .wide-filter {
    grid-column: auto;
  }

  .event-chip-row,
  .event-detail-chip-row {
    display: grid;
    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,
  .compact-row.account-history-row,
  .compact-row.data-export-row,
  .compact-row.email-event-row {
    grid-template-columns: 1fr;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .compact-head {
    display: none;
  }

  .compact-row:not(.compact-head) > span,
  .report-row:not(.report-head) > span {
    display: grid;
    gap: 4px;
  }

  .compact-row:not(.compact-head) > span::before,
  .report-row:not(.report-head) > span::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .compact-row:not(.compact-head) > span[data-label]::before,
  .report-row:not(.report-head) > span[data-label]::before {
    content: attr(data-label);
  }

  .compact-row.event-row > span:nth-child(1)::before { content: "Event"; }
  .compact-row.event-row > span:nth-child(2)::before { content: "Date/time"; }
  .compact-row.event-row > span:nth-child(3)::before { content: "Registered"; }
  .compact-row.event-row > span:nth-child(4)::before { content: "Created"; }
  .compact-row.event-row > span:nth-child(5)::before { content: "Hours"; }
  .compact-row.event-row > span:nth-child(6)::before { content: "Action"; }
  .compact-row.roster-table-row > span:nth-child(1)::before { content: "Teen"; }
  .compact-row.roster-table-row > span:nth-child(2)::before { content: "Email"; }
  .compact-row.roster-table-row > span:nth-child(3)::before { content: "Parent"; }
  .compact-row.roster-table-row > span:nth-child(4)::before { content: "Check-in"; }
  .compact-row.roster-table-row > span:nth-child(5)::before { content: "Hours"; }
  .compact-row.roster-table-row > span:nth-child(6)::before { content: "Action"; }
  .report-row > span:nth-child(1)::before { content: "Teen"; }
  .report-row > span:nth-child(2)::before { content: "Event"; }
  .report-row > span:nth-child(3)::before { content: "Organization"; }
  .report-row > span:nth-child(4)::before { content: "Date"; }
  .report-row > span:nth-child(5)::before { content: "Hours"; }
  .report-row > span:nth-child(6)::before { content: "Approved"; }

  .compact-row:not(.compact-head) > span:last-child,
  .compact-row.event-row > span:last-child,
  .compact-row.roster-table-row > span:last-child {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .compact-row:not(.compact-head) > span:last-child .compact-actions,
  .compact-row:not(.compact-head) > span:last-child button,
  .compact-row.event-row > span:last-child .compact-actions,
  .compact-row.roster-table-row > span:last-child .compact-actions,
  .compact-row.event-row > span:last-child button,
  .compact-row.roster-table-row > span:last-child button {
    width: 100%;
  }

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

  .admin-selection-tray {
    top: 100px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .selection-tray-actions {
    grid-template-columns: 1fr;
  }
  .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);
  }
}


.similar-event-list {
  display: grid;
  gap: 10px;
}

.similar-event-link {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d8ddf2;
  border-radius: 8px;
  color: #070812;
  text-decoration: none;
  background: #fbfdfb;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.similar-event-link:hover,
.similar-event-link:focus-visible {
  transform: translateY(-1px);
  border-color: #6d28d9;
  box-shadow: 0 12px 26px rgba(21, 32, 29, 0.08);
}

.similar-event-link > span:not(.cause) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5567;
  font-weight: 800;
  font-size: 0.9rem;
}
@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;
  }
}





/* vlntrly polish pass */
.action-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  margin-right: 0.42rem;
  vertical-align: -0.15rem;
}

.action-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.waitlist-confirmation {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #bfe7d1;
  border-radius: 10px;
  background: #eefaf3;
  color: #173d2f;
  box-shadow: 0 14px 34px rgba(109, 40, 217, 0.12);
}

.public-info-panel {
  margin-top: 22px;
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status.pending {
  background: #fff2c4;
  color: #7a5200;
  border: 1px solid #f1c94d;
}

.status.approved {
  background: #e4f8ec;
  color: #0d633a;
  border: 1px solid #a9e4bf;
}

.status.verified {
  background: #e6f7fb;
  color: #0b6475;
  border: 1px solid #9bdbe8;
}

.status.declined {
  background: #ffe8e5;
  color: #a92721;
  border: 1px solid #ffb8b0;
}

.status.locked {
  background: #eef1f0;
  color: #56615d;
  border: 1px solid #d3dcda;
}

.status.neutral {
  border: 1px solid #d8e0dc;
}

.card,
.panel,
.form-card,
.detail-card,
.empty-state,
.request-row {
  animation: softIn 220ms ease both;
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(220, 229, 223, 0.9);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

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

.site-footer a {
  color: var(--green-dark);
  font-weight: 850;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.legal-page {
  max-width: 1120px;
  margin: 0 auto;
}

.legal-heading {
  max-width: 820px;
}

.legal-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.legal-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 45, 37, 0.05);
}

.legal-card h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.njhs-legal-page {
  max-width: none;
}

.njhs-legal-page .legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.njhs-legal-page .legal-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  overflow-wrap: anywhere;
}

.njhs-legal-page .legal-card .icon-box {
  width: 44px;
  height: 44px;
  margin: 0 0 2px;
  border-radius: 8px;
  background: #f5f2ff;
  color: #086749;
  font-weight: 700;
}

.njhs-legal-page .legal-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.njhs-legal-page .legal-card p {
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .njhs-legal-page .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-preview-panel,
.admin-bulk-panel {
  display: grid;
  gap: 14px;
}

.admin-preview-actions {
  align-items: center;
}

.admin-preview-copy {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7fbf9;
}

.admin-preview-copy span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .dashboard-grid,
  .stats-grid,
  .mobile-dashboard-summary,
  .opportunity-grid,
  .info-grid,
  .report-row,
  .admin-preview-panel,
  .admin-bulk-panel {
    gap: 14px;
  }

  .card,
  .detail-card,
  .form-card,
  .panel,
  .request-card,
  .mobile-roster-card,
  .settings-connected-card,
  .settings-picture-card,
  .settings-danger-card {
    margin-bottom: 12px;
  }

  .compact-row:not(.compact-head),
  .report-row:not(.report-head) {
    padding: 14px;
    gap: 10px;
  }

  .compact-actions,
  .admin-preview-actions,
  .admin-export-row {
    gap: 10px;
  }
}



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

.approval-lock-screen {
  width: min(760px, 100%);
  padding: 18px;
  border: 1px solid rgba(23, 138, 99, 0.16);
  border-radius: 16px;
  background: rgba(244, 248, 245, 0.82);
  box-shadow: var(--shadow);
}

.approval-lock-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.approval-lock-card h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.compact-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.inline-goal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0 8px;
}

.inline-goal-form label {
  margin: 0;
}

.saved-opportunity-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 18px;
}

.saved-opportunity-card,
.parent-controls-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe7e0;
  border-radius: 8px;
  background: #fbfdfc;
}

.saved-opportunity-card div,
.parent-controls-summary > div {
  min-width: 0;
}

.saved-opportunity-card strong,
.saved-opportunity-card small,
.parent-controls-summary span {
  display: block;
}

.saved-opportunity-card small,
.parent-controls-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.parent-controls-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.parent-controls-summary > div {
  display: grid;
  justify-content: start;
}

.parent-controls-summary strong {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.warning-callout,
.notification-preview-card {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(244, 182, 64, 0.38);
  border-radius: 8px;
  background: rgba(45, 117, 212, 0.1);
  color: var(--ink);
}

.warning-callout span,
.notification-preview-card p {
  margin: 0;
  color: var(--muted);
}

.event-template-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.safety-report-row {
  grid-template-columns: 1fr 1.1fr 1.2fr 0.8fr 2fr;
}

.parent-empty-panel,
.request-card,
.parent-approval-card {
  border-radius: 10px;
}

@media (max-width: 760px) {
  .inline-goal-form {
    grid-template-columns: 1fr;
  }

  .approval-lock-card h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .safety-report-row {
    grid-template-columns: 1fr;
  }
}
.field-note {
  display: inline-flex;
  width: fit-content;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf8f2;
  color: #126849;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.organization-review-modal,
.preview-role-modal {
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - clamp(88px, 12vh, 118px));
  margin: 0 auto;
  padding: 16px 20px 18px;
}

.organization-review-modal .modal-close,
.preview-role-modal .modal-close {
  position: sticky;
  top: 0;
  z-index: 5;
  justify-self: end;
  width: 38px;
  min-width: 38px;
  height: 38px;
  margin-left: auto;
  margin-bottom: 6px;
  border-radius: 50%;
  color: var(--ink);
}

.preview-role-modal .preview-modal-header {
  display: grid;
  justify-items: center;
  text-align: center;
}

.preview-role-modal .preview-modal-header .button-row,
.preview-storage-banner,
.preview-mini-nav {
  justify-content: center;
}

.organization-review-modal > .eyebrow,
.organization-review-modal > h2 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.org-review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
}

.review-info-card {
  display: grid;
  gap: 7px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(190, 215, 202, 0.92);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ffffff 0%, #f3faf6 100%);
  box-shadow: 0 12px 30px rgba(20, 45, 37, 0.05);
}

.review-info-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-info-card strong {
  color: var(--ink);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.review-checklist-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.review-checklist-heading h3,
.review-checklist-heading p {
  margin: 0;
}

.compact-review-checklist {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compact-review-checklist .checklist-item {
  min-height: 58px;
  padding: 10px;
  border-radius: 10px;
}

.compact-review-checklist .checklist-item span {
  padding: 2px 7px;
  font-size: 0.66rem;
}

.review-action-row {
  align-items: center;
  gap: 12px;
}

.review-action-row .primary-button,
.review-action-row .secondary-button,
.review-action-row .danger-button {
  gap: 8px;
  min-width: 124px;
}

.preview-modal-header {
  align-items: start;
}

.preview-storage-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7fbf9;
}

.preview-storage-banner strong {
  color: var(--ink);
}

.preview-storage-banner span {
  color: var(--muted);
  font-weight: 700;
}

.preview-storage-banner.internet {
  border-color: rgba(65, 112, 172, 0.24);
  background: #f2f7ff;
}

.preview-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.preview-role-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 14px;
}

.preview-role-card {
  margin: 0;
}

.preview-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfc;
}

.preview-identity div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.preview-identity strong,
.preview-identity span:not(.status):not(.preview-avatar) {
  overflow-wrap: anywhere;
}

.preview-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.preview-event-form {
  display: grid;
  gap: 12px;
}

.preview-event-list {
  display: grid;
  gap: 12px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

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

.preview-event-card h4,
.preview-request-card h4 {
  margin: 6px 0 4px;
}

@media (max-width: 900px) {
  .org-review-summary,
  .preview-role-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .compact-review-checklist {
    grid-template-columns: 1fr;
  }

  .review-checklist-heading,
  .preview-storage-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-action-row .primary-button,
  .review-action-row .secondary-button,
  .review-action-row .danger-button,
  .preview-role-tabs button {
    width: 100%;
  }
}
.preview-mini-site {
  overflow: hidden;
  border: 1px solid rgba(190, 215, 202, 0.92);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfdfc 0%, #f2faf5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.preview-mini-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.preview-mini-brand,
.preview-mini-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.preview-mini-brand div,
.preview-mini-profile div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.preview-mini-brand strong,
.preview-mini-profile strong {
  color: var(--ink);
  line-height: 1;
}

.preview-mini-brand span:not(.preview-mini-logo),
.preview-mini-profile span:not(.preview-avatar) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.preview-mini-logo {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

.preview-mini-nav {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.preview-mini-nav button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.preview-mini-nav button.active,
.preview-mini-nav button:hover {
  border-color: rgba(23, 138, 99, 0.16);
  background: #eaf8f1;
  color: #11633d;
}

.preview-mini-page {
  display: grid;
  gap: 12px;
  min-height: 320px;
  max-height: min(52vh, 460px);
  overflow: auto;
  padding: 14px;
}

.preview-mini-hero {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.preview-mini-hero h3,
.preview-mini-hero p {
  margin: 0;
}

.preview-mini-hero h3 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.preview-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-status-grid > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.preview-status-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.preview-status-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-mini-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

@media (max-width: 760px) {
  .preview-mini-topbar,
  .preview-mini-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-mini-nav button {
    width: 100%;
  }

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

/* Shared UI polish pass: consistent layout, spacing, focus, cards, and mobile behavior. */
:root {
  --page-max: 1240px;
  --section-gap: 56px;
  --card-pad: 20px;
  --focus-ring: 0 0 0 4px rgba(23, 138, 99, 0.18);
  --surface-shadow: 0 14px 36px rgba(20, 45, 37, 0.08);
}

body:has(.auth-page),
body:has(.locked-page),
body:has(.legal-page) {
  background: #fbfdfb;
}

body:has(.hero)::before,
body:has(.auth-page)::before,
body:has(.legal-page)::before,
body:has(.locked-page)::before {
  opacity: 1;
}

body:not(:has(.hero)):not(:has(.auth-page)):not(:has(.legal-page)):not(:has(.locked-page))::before {
  opacity: 0;
}

.hero,
.section,
.page {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: clamp(18px, 4vw, 76px);
  padding-right: clamp(18px, 4vw, 76px);
}

.hero {
  min-height: min(760px, calc(100vh - 92px));
  padding-top: clamp(44px, 7vw, 92px);
  padding-bottom: clamp(44px, 7vw, 78px);
}

.hero > * {
  align-self: center;
}

.hero-copy,
.hero-actions,
.waitlist-form {
  margin-left: 0;
}

.hero-actions,
.section-header .button-row,
.profile-heading + .button-row {
  align-items: center;
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section + .section {
  border-top: 1px solid rgba(220, 229, 223, 0.72);
}

.section:nth-of-type(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 248, 245, 0.5));
  box-shadow: 0 0 0 100vmax rgba(244, 248, 245, 0.38);
  clip-path: inset(0 -100vmax);
}

.page {
  padding-top: 40px;
  padding-bottom: 48px;
}

.section-header,
.detail-hero,
.profile-heading,
.auth-card,
.locked-panel {
  align-items: center;
}

.section-header > div:first-child,
.profile-heading > div,
.detail-hero {
  min-width: 0;
}

.section-header p,
.detail-hero p,
.profile-heading p {
  max-width: 720px;
}

.dashboard-grid,
.admin-grid,
.settings-grid,
.detail-layout {
  align-items: start;
  gap: 20px;
}

.dashboard-grid > .panel,
.admin-grid > .panel,
.settings-grid > .panel,
.detail-layout > .form-card {
  height: fit-content;
}

.dashboard-grid > aside.panel,
.detail-layout > aside.form-card {
  position: sticky;
  top: 96px;
}

.tile,
.card,
.detail-card,
.form-card,
.panel,
.auth-card,
.locked-panel,
.report-field,
.request-row,
.roster-row,
.flow-section {
  border-radius: 8px;
  box-shadow: var(--surface-shadow);
}

.tile,
.card,
.detail-card,
.form-card,
.panel {
  padding: var(--card-pad);
}

.card {
  min-height: auto;
}

.event-card,
.audience-summary-card,
.request-row,
.flow-section {
  height: 100%;
}

.event-card {
  position: relative;
  overflow: hidden;
  border-left: 0;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--green);
}

.event-card:has(.cause.food-help)::before,
.event-card:has(.cause.food)::before {
  background: var(--sun);
}

.event-card:has(.cause.outdoors)::before,
.event-card:has(.cause.environment)::before {
  background: var(--green);
}

.event-card:has(.cause.school)::before,
.event-card:has(.cause.education)::before,
.event-card:has(.cause.kids)::before {
  background: var(--sky);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(20, 45, 37, 0.12);
}

.card-actions,
.row-actions,
.decision-actions {
  align-items: center;
  margin-top: auto;
}

form,
.form-card form,
.auth-card form,
.modal-card form,
.settings-form,
.decision-form,
.review-note-form {
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  min-height: 44px;
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.table-link,
.filter-pill,
.topbar-action {
  min-height: 44px;
}

.primary-button:hover,
.topbar-action:hover {
  background: #126f50;
}

.secondary-button:hover,
.ghost-button:hover,
.table-link:hover {
  background: #f4fbf7;
  color: var(--green-dark);
}

.danger-button:hover {
  background: #ffe9e5;
  color: #932722;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.modal-backdrop {
  place-items: start center;
  padding-top: max(46px, 9vh);
}

.modal-card {
  max-height: min(82vh, 880px);
  max-height: min(82dvh, 880px);
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-close,
.search-clear-button,
.admin-row-check,
.notification-button,
.profile-menu-button .profile-avatar,
.action-icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  margin: -10px -10px 4px 8px;
}

.status {
  border: 1px solid transparent;
  letter-spacing: 0;
}

.status.pending {
  border-color: #f1c86f;
  background: #fff3c9;
  color: #704804;
}

.status.approved {
  border-color: #9eddbd;
  background: #e4f8ed;
  color: #0d5a3a;
}

.status.verified {
  border-color: #97d8ce;
  background: #e5f8f5;
  color: #075f59;
}

.status.declined {
  border-color: #f1aaa6;
  background: #ffe7e5;
  color: #92201c;
}

.status.locked {
  border-color: #c6ccd1;
  background: #eef1f3;
  color: #4b555d;
}

.status.neutral {
  border-color: #d5ded9;
  background: #f4f7f5;
  color: #46544e;
}

.empty-state,
.compact-empty {
  position: relative;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  text-align: center;
}

.compact-empty {
  border: 1px dashed #c7d6ce;
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
}

.empty-state::before,
.compact-empty::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(23, 138, 99, 0.16), rgba(45, 117, 212, 0.1)),
    #fff;
  border: 1px solid #d6e7de;
  box-shadow: 0 10px 22px rgba(20, 45, 37, 0.08);
}

.saved-opportunity-list .compact-empty::before {
  background:
    linear-gradient(135deg, rgba(244, 182, 64, 0.16), rgba(23, 138, 99, 0.1)),
    #fff;
}

.report-table .empty-state::before,
.report-preview-list .compact-empty::before {
  background:
    linear-gradient(135deg, rgba(45, 117, 212, 0.18), rgba(23, 138, 99, 0.1)),
    #fff;
}

.request-row.approval-request-row {
  padding: 22px;
}

.approval-request-row .decision-form {
  margin-top: 6px;
}

.approval-request-row .decision-actions {
  justify-content: flex-end;
}

.parent-history-row,
.parent-history-row.request-row {
  background: #fbfdfc;
  box-shadow: none;
}

.saved-opportunity-card,
.reminder-card,
.notification-item {
  box-shadow: 0 8px 18px rgba(20, 45, 37, 0.05);
}

.reminder-card {
  border-left: 4px solid var(--sun);
  background: #fffdf7;
}

.notification-dot {
  animation: notificationPulse 1.7s ease-in-out infinite;
}

@keyframes notificationPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 93, 86, 0.34); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(232, 93, 86, 0); }
}

.site-footer {
  width: 100%;
  margin: 42px 0 0;
  padding: 26px clamp(18px, 4vw, 56px) 34px;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  justify-content: flex-end;
}

.admin-selection-tray {
  top: 96px;
  border-radius: 8px;
}

.admin-row-check.selected,
.compact-row:has(.admin-row-check.selected) {
  background: #edf9f3;
}

.admin-filters,
.opportunity-filter-compact {
  position: sticky;
  top: 76px;
  z-index: 35;
  padding: 10px 0;
  background: rgba(251, 253, 251, 0.94);
  backdrop-filter: blur(14px);
}

.organization-review-grid,
.info-grid,
.quick-answer-grid {
  align-items: stretch;
}

.quick-answer-grid .info-item,
.info-grid .info-item,
.organization-review-info-card {
  display: grid;
  align-content: center;
  min-height: 92px;
  text-align: center;
}

.safety-details-list li,
.approval-contact-list li {
  align-items: center;
}

.profile-heading h1 {
  font-size: clamp(1.85rem, 3.35vw, 3.05rem);
}

.report-preview-card,
.report-table,
.report-preview {
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

@media (min-width: 981px) {
  .topbar {
    box-shadow: 0 8px 24px rgba(20, 45, 37, 0.05);
  }
}

@media (max-width: 980px) {
  .dashboard-grid > aside.panel,
  .detail-layout > aside.form-card {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --section-gap: 36px;
    --card-pad: 16px;
  }

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

  .hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 36px;
  }

  .section-header,
  .profile-heading {
    align-items: flex-start;
  }

  .hero-actions,
  .button-row,
  .row-actions,
  .decision-actions,
  .card-actions {
    justify-content: center;
  }

  .button-row .primary-button,
  .row-actions .primary-button,
  .card-actions .primary-button,
  .card-actions a.primary-button {
    width: 100%;
  }

  .button-row .secondary-button,
  .button-row .danger-button,
  .row-actions .secondary-button,
  .row-actions .danger-button {
    width: auto;
    min-width: 44px;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .modal-close {
    top: 0;
    right: 0;
    margin: -4px -4px 8px auto;
  }

  .filter-drawer {
    inset: 0 0 0 auto;
    width: min(100%, 390px);
    max-height: 100dvh;
  }

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

  .compact-head,
  .report-head {
    display: none !important;
  }

  .compact-row,
  .report-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,
  .compact-row.account-history-row,
  .compact-row.data-export-row,
  .compact-row.email-event-row,
  .safety-report-row {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 45, 37, 0.06);
  }

  .compact-row > span,
  .report-row > span {
    display: grid;
    gap: 2px;
  }

  .compact-row > span::before,
  .report-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .profile-menu,
  .notification-menu {
    right: 0;
    width: min(340px, calc(100vw - 24px));
  }

  .profile-heading h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .quick-answer-grid .info-item,
  .info-grid .info-item {
    min-height: 82px;
  }

  .site-footer {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .modal-card {
    animation: modalRise 220ms ease both;
  }
}

/* Deeper dashboard polish: My Hours, illustrated empty states, reports, and safety details. */
.hours-progress-panel,
.hours-report-card,
.parent-report-preview-card,
.reflection-note-card,
.hours-status-card {
  border-radius: 8px;
}

.hours-progress-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.hours-progress-ring {
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0, #dfeee6 0);
  position: relative;
  box-shadow: 0 14px 30px rgba(23, 138, 99, 0.16);
}

.hours-progress-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hours-progress-ring strong,
.hours-progress-ring span {
  position: relative;
  z-index: 1;
}

.hours-progress-ring strong {
  font-size: 2.3rem;
  line-height: 1;
}

.hours-progress-ring span {
  margin-top: 42px;
  color: var(--muted);
  font-weight: 900;
}

.hours-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.hours-status-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(20, 45, 37, 0.05);
}

.hours-status-card strong {
  font-size: 1.9rem;
}

.hours-dashboard-grid {
  align-items: stretch;
}

.hours-report-card,
.parent-report-preview-card {
  background: linear-gradient(180deg, #ffffff, #f6fbf8);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(20, 45, 37, 0.05);
}

.parent-report-preview-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin: 18px 0;
}

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

.reflection-note-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffef9, #fff);
  box-shadow: 0 8px 20px rgba(20, 45, 37, 0.05);
}

.illustrated-empty::before {
  display: none;
}

.illustrated-empty {
  justify-items: center;
  text-align: center;
}

.compact-illustrated-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 22px;
}

.empty-illustration {
  width: 88px;
  height: 62px;
  position: relative;
  margin-bottom: 4px;
}

.empty-illustration span,
.empty-illustration i,
.empty-illustration b {
  position: absolute;
  display: block;
}

.empty-illustration span {
  left: 28px;
  top: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5a07c;
}

.empty-illustration i {
  left: 22px;
  top: 31px;
  width: 40px;
  height: 28px;
  border-radius: 20px 20px 4px 4px;
  background: var(--green);
}

.empty-illustration b {
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 18px;
  border-radius: 5px;
  background: var(--sun);
  box-shadow: -34px 4px 0 #dcecff;
}

.empty-illustration-hours i { background: #2f6fdd; }
.empty-illustration-parent i { background: var(--sun); }
.empty-illustration-organization i { background: var(--green); }
.empty-illustration-saved b { background: #f07f5f; }
.empty-illustration-reflection b { background: #fff3d8; box-shadow: inset 0 0 0 2px var(--sun); }

.safety-info-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.safety-info-item .icon,
.organization-safety-summary .icon {
  width: 18px;
  height: 18px;
}

.organization-safety-summary {
  width: min(var(--page-max), calc(100% - 32px));
  margin: 18px auto;
}

.mobile-roster-actions {
  align-items: center;
}

@media (max-width: 900px) {
  .hours-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .hours-progress-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hours-progress-layout .button-row {
    justify-content: center;
  }

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

  .hours-progress-ring {
    width: 128px;
  }

  .mobile-roster-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 10px;
    margin: 10px -10px -10px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
}

.parent-teen-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.parent-teen-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcfa);
  box-shadow: 0 8px 18px rgba(20, 45, 37, 0.05);
}

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

.parent-teen-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.parent-teen-mini-stats div {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.parent-teen-mini-stats strong {
  font-size: 1.25rem;
}

.parent-teen-mini-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.organization-metrics-grid {
  margin: 18px 0;
}

@media (max-width: 760px) {
  .parent-teen-card-top {
    display: grid;
  }
}

/* Final broad UI polish for the remaining layout list. */
:root {
  --tap-size: 44px;
}

.page,
.section,
.hero,
.site-footer {
  box-sizing: border-box;
}

.page:not(.auth-page):not(.legal-page) {
  max-width: none;
}

.section-header,
.profile-heading {
  gap: 18px;
}

.modal-close,
.search-clear-button,
.admin-row-check,
.notification-button,
.profile-button,
.icon-button,
.faq-toggle {
  display: inline-grid !important;
  place-items: center !important;
  min-width: var(--tap-size);
  min-height: var(--tap-size);
  line-height: 1;
  text-align: center;
}

.admin-row-check {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.admin-row-check.selected,
.compact-row:has(.admin-row-check.selected),
.report-row:has(.admin-row-check.selected) {
  background: #eaf8f1 !important;
  box-shadow: inset 4px 0 0 var(--green), 0 8px 20px rgba(20, 45, 37, 0.05);
}

.card,
.panel,
.form-card,
.request-row,
.request-card,
.detail-card,
.tile,
.info-item {
  border-radius: 8px;
}

.card-actions,
.row-actions,
.compact-actions,
.decision-actions,
.button-row {
  align-items: center;
  gap: 10px;
}

.card-actions {
  margin-top: auto;
}

.card,
.event-card,
.request-card,
.request-row {
  display: flex;
  flex-direction: column;
}

.status.pending { background: #fff3c4; color: #805300; border-color: #f5d87d; }
.status.approved { background: #daf6e8; color: #075d3e; border-color: #aee5ca; }
.status.verified { background: #dff8f1; color: #00644b; border-color: #a7e4d5; }
.status.declined { background: #ffe3df; color: #9d241b; border-color: #f0b3aa; }
.status.locked { background: #eceff0; color: #45514d; border-color: #d6dcda; }
.status.neutral { background: #f4f7f5; color: #4c5b55; border-color: #dce6e1; }

.event-card {
  border-top: 5px solid rgba(23, 138, 99, 0.26);
}

.event-card .meta-list li,
.safety-grid .info-item span,
.event-chip-row span {
  gap: 7px;
}

.organization-metrics-grid .tile,
.stats-grid .tile {
  min-height: 122px;
  align-content: center;
}

.parent-controls-panel,
.parent-report-preview-card,
.hours-report-card {
  overflow: hidden;
}

.empty-state,
.compact-empty {
  border-radius: 8px;
}

.empty-state .primary-button,
.empty-state .secondary-button {
  justify-self: center;
  margin-top: 8px;
}

.warning-callout {
  border-radius: 8px;
}

@media (min-width: 981px) {
  .dashboard-grid,
  .settings-grid,
  .admin-grid {
    gap: 18px;
  }

  .panel > h2:first-child,
  .form-card > h2:first-child {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .page:not(.auth-page):not(.legal-page) {
    max-width: none;
  }

  .dashboard-grid,
  .settings-grid,
  .admin-grid,
  .detail-layout,
  .two-column,
  .public-feature-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .section-header,
  .profile-heading,
  .compact-section-header {
    display: grid;
    justify-items: start;
  }

  .button-row,
  .row-actions,
  .decision-actions,
  .card-actions,
  .compact-actions {
    width: 100%;
  }

  .button-row > *,
  .row-actions > *,
  .decision-actions > *,
  .card-actions > *,
  .compact-actions > * {
    min-height: var(--tap-size);
  }

  .card-actions .primary-button,
  .row-actions .primary-button,
  .decision-actions .primary-button,
  .compact-actions .primary-button {
    width: 100%;
  }

  .modal-card {
    border-radius: 8px;
  }

  .modal-close {
    position: sticky !important;
    top: 0 !important;
    margin-left: auto;
    z-index: 3;
  }

  .compact-table,
  .report-table {
    display: grid;
    gap: 12px;
  }

  .compact-row:not(.compact-head),
  .report-row:not(.report-head) {
    border-radius: 8px;
  }
}


.approval-lock-screen.with-org-checklist {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  align-items: start;
  gap: 18px;
}

.pending-org-checklist {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.pending-org-checklist h2,
.pending-org-checklist p {
  margin: 0;
}

.org-checklist-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.org-checklist-status-grid > div {
  display: grid;
  gap: 7px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
}

.org-checklist-status-grid strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.pending-organization-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pending-organization-form label {
  min-width: 0;
}

.pending-organization-form label:nth-last-of-type(-n + 2),
.pending-organization-form button,
.pending-org-checklist .fine-print {
  grid-column: 1 / -1;
}

.pending-org-checklist .fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .approval-lock-screen.with-org-checklist,
  .pending-organization-form,
  .org-checklist-status-grid {
    grid-template-columns: 1fr;
  }
}

/* UI polish: illustrated empty states, visual stats, modal headers, and mobile card spacing. */
.audit-details-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 0.85rem;
}

.workspace-undo {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--white, #fff);
  color: #15201d;
  border: 1px solid #17855f;
  box-shadow: 0 4px 20px #0002;
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    "icon value";
  align-items: center;
  column-gap: 14px;
  min-height: 124px;
}

.stat-card-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e9f7ef;
  color: var(--green);
  box-shadow: inset 0 0 0 1px #cfe8db;
}

.stat-card-icon .icon,
.stat-card-icon svg {
  width: 22px;
  height: 22px;
}

.stat-card-label {
  grid-area: label;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card-value {
  grid-area: value;
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 0.95;
}

.event-card,
.opportunity-grid > .card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.event-card:hover,
.opportunity-grid > .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(20, 45, 37, 0.13);
}

.modal-card > .eyebrow:first-of-type,
.modal-card > h2:first-of-type,
.modal-card > p.muted:first-of-type {
  text-align: left;
}

.modal-card > h2:first-of-type {
  margin-top: 8px;
  margin-bottom: 8px;
  max-width: calc(100% - 58px);
}

.modal-card > p.muted:first-of-type {
  max-width: 760px;
  margin-top: 0;
}

.modal-card .modal-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

.empty-state.illustrated-empty,
.compact-empty.illustrated-empty {
  gap: 10px;
}

.empty-state.illustrated-empty h3,
.compact-empty.illustrated-empty strong {
  margin: 0;
}

.compact-empty.illustrated-empty span {
  max-width: 54ch;
  line-height: 1.45;
}

.organization-empty-state .primary-button,
.illustrated-empty .primary-button {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .card,
  .event-card,
  .request-card,
  .request-row,
  .flow-section,
  .saved-opportunity-card,
  .parent-teen-card,
  .hours-status-card,
  .reminder-card {
    gap: 14px;
    padding: 18px;
  }

  .stats-grid,
  .organization-metrics-grid,
  .hours-status-grid {
    gap: 14px;
  }

  .stat-card {
    min-height: 112px;
    column-gap: 12px;
  }

  .stat-card-icon {
    width: 44px;
    height: 44px;
  }

  .card-actions,
  .row-actions,
  .decision-actions,
  .button-row {
    gap: 12px;
  }

  .status,
  .cause,
  .event-chip-row span {
    margin-bottom: 2px;
  }

  .modal-card > h2:first-of-type {
    max-width: calc(100% - 52px);
  }
}

/* Route states, update log, saved animation, stronger focus, and loading polish. */
.notification-menu-wide {
  width: min(720px, calc(100vw - 32px));
}

.notification-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  min-height: 320px;
}

.notification-panel + .notification-panel {
  border-left: 1px solid var(--line);
}

.update-log-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fcfa);
}

.update-log-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.update-log-item span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.route-state-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 720px;
  text-align: center;
}

.route-state-panel .info-grid {
  width: 100%;
}

.not-found-page,
.access-denied-page,
.dashboard-loading-page {
  min-height: calc(100vh - 210px);
}

.skeleton-card,
.skeleton-line,
.skeleton-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #edf4f0;
}

.skeleton-card {
  min-height: 124px;
  border: 1px solid var(--line);
}

.skeleton-line {
  width: 72%;
  height: 18px;
  margin-bottom: 14px;
}

.skeleton-line.wide {
  width: 92%;
}

.skeleton-block {
  min-height: 190px;
}

.skeleton-block.small {
  min-height: 128px;
}

.skeleton-card::after,
.skeleton-line::after,
.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  animation: skeletonSweep 1.35s ease-in-out infinite;
}

@keyframes skeletonSweep {
  to { transform: translateX(100%); }
}

.saved-pulse {
  animation: savedPulse 780ms ease both;
}

@keyframes savedPulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 138, 99, 0.26); }
  42% { box-shadow: 0 0 0 8px rgba(109, 40, 217, 0.12); transform: translateY(-2px) scale(1.01); }
  100% { box-shadow: 0 16px 34px rgba(20, 45, 37, 0.1); transform: translateY(0) scale(1); }
}

.admin-duplicate-warning {
  border-color: #e6bf53;
  background: linear-gradient(180deg, #fffaf0, #fffef9);
}

.duplicate-warning-row .status {
  margin-right: 6px;
  margin-bottom: 6px;
}

.status.pending,
.cause.pending,
.badge-warning {
  background: #eef2ff;
  color: #1e1b4b;
  border-color: #8b5cf6;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.profile-menu-item:focus-visible,
.table-link:focus-visible {
  outline: 3px solid rgba(11, 99, 73, 0.55);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(23, 138, 99, 0.16) !important;
}

@media (max-width: 760px) {
  .notification-menu-wide {
    width: min(360px, calc(100vw - 24px));
  }

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

  .notification-panel + .notification-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

/* Event UX and admin scanning polish */
.filter-drawer-backdrop {
  animation: drawerBackdropIn 220ms ease both;
}

.filter-drawer {
  will-change: transform, opacity;
  animation: filterDrawerIn 280ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes drawerBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.event-card-skeleton {
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
}

.event-card-skeleton .skeleton-line,
.event-card-skeleton .skeleton-block {
  margin-bottom: 12px;
}

.event-card-skeleton .skeleton-block.small {
  min-height: 96px;
}

.compact-table {
  background: rgba(255, 255, 255, 0.78);
}

.compact-row:not(.compact-head) {
  background: rgba(255, 255, 255, 0.86);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.compact-row:not(.compact-head):hover {
  background: #fbfdfc;
}

.compact-head {
  background: #f4faf7;
  color: #3b0764;
  letter-spacing: 0;
}

.admin-row-check.selected,
.compact-row:has(.admin-row-check.selected),
.report-row:has(.admin-row-check.selected) {
  border-color: rgba(23, 138, 99, 0.42);
  background: #eaf8f1;
  box-shadow: inset 4px 0 0 var(--green), 0 10px 24px rgba(23, 138, 99, 0.08);
}

.compact-empty.compact-illustrated-empty {
  min-height: 148px;
  align-content: center;
  justify-items: center;
  padding: 22px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
}

.mobile-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 760px) {
  .compact-mobile-detail-hero {
    padding: 18px;
    border-radius: 12px;
  }

  .compact-mobile-detail-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: .96;
  }

  .mobile-detail-header {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .event-action-card {
    position: sticky;
    bottom: 12px;
    z-index: 28;
    margin-top: 18px;
    border-color: rgba(23, 138, 99, 0.25);
    box-shadow: 0 -8px 34px rgba(20, 45, 37, 0.12);
  }

  .event-action-card .primary-button,
  .event-action-card .secondary-button,
  .event-action-card form button {
    width: 100%;
    justify-content: center;
  }
}


/* Final standards pass: page width, modals, tables, async buttons, and mobile spacing. */
:root {
  --content-max: none;
  --modal-close-size: 44px;
  --table-row-min: 58px;
  --icon-size: 18px;
}

.hero,
.section,
.page {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.site-footer {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.site-footer > * {
  max-width: none;
}

.card,
.detail-card,
.form-card,
.panel,
.tile,
.auth-card,
.locked-panel,
.request-card,
.request-row,
.parent-teen-card,
.saved-opportunity-card {
  padding: var(--card-pad, 20px);
}

.modal-card {
  padding: clamp(18px, 2.2vw, 28px);
}

.modal-card > .eyebrow:first-of-type,
.modal-card > h2:first-of-type,
.modal-card > p.muted:first-of-type {
  display: block;
  padding-right: calc(var(--modal-close-size) + 12px);
}

.modal-close,
.tray-close,
.faq-toggle,
.admin-row-check,
.search-clear-button {
  width: var(--modal-close-size) !important;
  height: var(--modal-close-size) !important;
  min-width: var(--modal-close-size) !important;
  min-height: var(--modal-close-size) !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

.admin-row-check {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
}

.icon,
.action-icon,
.table-link .icon,
.primary-button .icon,
.secondary-button .icon,
.danger-button .icon,
.ghost-button .icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
}

.compact-row,
.report-row {
  min-height: var(--table-row-min);
  align-items: center;
}

.compact-row:not(.compact-head):hover {
  background: #f8fcfa;
  box-shadow: inset 3px 0 0 rgba(23, 138, 99, 0.14);
}

.card:not(.event-card):hover,
.panel:hover,
.form-card:hover,
.detail-card:hover {
  transform: none;
}

.event-card:hover,
.opportunity-grid > .card:hover,
.saved-opportunity-card:hover {
  transform: translateY(-2px);
}

.dashboard-grid > .panel + .panel,
.settings-grid > .panel + .panel,
.detail-layout > * + *,
.flow-section + .flow-section {
  border-top: 1px solid rgba(220, 229, 223, 0.58);
}

.danger-button,
.table-link.danger-link {
  border-color: #f2b4ac;
  background: #fff7f5;
  color: #a42a21;
}

.danger-button:focus-visible,
.table-link.danger-link:focus-visible {
  outline-color: rgba(164, 42, 33, 0.55);
  box-shadow: 0 0 0 6px rgba(164, 42, 33, 0.14) !important;
}

button.is-loading,
.primary-button.is-loading,
.secondary-button.is-loading,
.danger-button.is-loading,
.table-link.is-loading {
  pointer-events: none;
  opacity: 0.82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: buttonSpin 760ms linear infinite;
}

@keyframes buttonSpin {
  to { transform: rotate(360deg); }
}

.saved-pulse::after {
  content: "\2713";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 138, 99, 0.22);
  animation: saveCheckPop 760ms ease both;
}

@keyframes saveCheckPop {
  0% { transform: scale(0.72); opacity: 0; }
  35% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.admin-table-skeleton {
  display: grid;
  gap: 12px;
}

.skeleton-table-row {
  min-height: var(--table-row-min);
  border-radius: 8px;
  background: linear-gradient(90deg, #edf4f0, #f8fcfa, #edf4f0);
  background-size: 240% 100%;
  animation: skeletonSweep 1.35s ease-in-out infinite;
  border: 1px solid var(--line);
}

.empty-state,
.compact-empty {
  min-height: 156px;
}

.empty-state > *,
.compact-empty > * {
  justify-self: center;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero,
  .section,
  .page {
    padding-left: 28px;
    padding-right: 28px;
  }

  .dashboard-grid,
  .settings-grid,
  .detail-layout,
  .audience-grid,
  .public-feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .dashboard-grid > .panel:first-child,
  .settings-grid > .panel:first-child,
  .detail-layout > .detail-main,
  .public-feature-row > :first-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .hero,
  .section,
  .page {
    max-width: none;
  }

  .card,
  .detail-card,
  .form-card,
  .panel,
  .tile,
  .auth-card,
  .locked-panel,
  .request-card,
  .request-row,
  .parent-teen-card,
  .saved-opportunity-card {
    padding: 16px;
  }

  .button-row,
  .row-actions,
  .card-actions,
  .compact-actions,
  .decision-actions {
    gap: 12px;
  }

  .button-row > button,
  .button-row > a,
  .row-actions > button,
  .row-actions > a,
  .compact-actions > button,
  .compact-actions > a {
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .modal-card > .eyebrow:first-of-type,
  .modal-card > h2:first-of-type,
  .modal-card > p.muted:first-of-type {
    padding-right: 52px;
  }

  .compact-row,
  .report-row {
    min-height: 0;
  }

  .admin-selection-tray {
    left: 12px;
    right: 12px;
    width: auto;
  }
}




/* 2026-07-13 production controls */
.admin-saved-filter-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.turnstile-wrap {
  display: grid;
  justify-items: center;
  min-height: 70px;
  margin: 14px 0;
}

.turnstile-challenge {
  width: min(100%, 320px);
}

.compact-row.email-event-row {
  grid-template-columns: 44px minmax(210px, 1fr) minmax(130px, 0.7fr) minmax(240px, 1.2fr) minmax(120px, 0.65fr) minmax(150px, 0.75fr) minmax(90px, 0.45fr);
  min-width: 1080px;
}

@media (max-width: 760px) {
  .admin-saved-filter-tools {
    grid-template-columns: 1fr;
  }

  .admin-saved-filter-tools .compact-action,
  .admin-saved-filter-tools .table-link {
    width: 100%;
    min-height: 44px;
  }

  .compact-row.email-event-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

.organization-history-row {
  grid-template-columns: minmax(120px, .7fr) minmax(110px, .65fr) minmax(130px, .7fr) minmax(120px, .65fr) minmax(220px, 1.25fr) minmax(140px, .8fr);
  min-width: 980px;
}

@media (max-width: 760px) {
  .organization-history-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  margin: 18px 0;
  padding-bottom: 2px;
}

.dashboard-tab {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.dashboard-tab-hidden {
  display: none;
}

.weekend-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.delivery-error {
  display: block;
  max-width: 34ch;
  margin-top: 5px;
  color: var(--danger);
  line-height: 1.35;
}


/* Mobile accessibility and resilient content sizing. */
.dashboard-tab { min-height: 44px; }
.print-summary-frame { position: fixed; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.disclosure-panel { margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--surface); }
.disclosure-panel > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
.compact-parent-connect { margin-top: 14px; max-width: 620px; }
.page, .panel, .compact-row, .detail-list dd, .delivery-error, .muted, p, h1, h2, h3 { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .skeleton-card::after, .skeleton-line::after, .skeleton-block::after, .skeleton-table-row { animation: none !important; }
}

@media (max-width: 360px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .button-row, .row-actions, .section-header { align-items: stretch; }
  .button-row > button, .button-row > a, .row-actions > button, .row-actions > a { width: 100%; min-width: 0; white-space: normal; }
  input, select, textarea, button { max-width: 100%; }
  .dashboard-tabs { margin-inline: -2px; }
  .dashboard-tab { flex: 0 0 auto; }
}


.dashboard-filter-disclosure:not([open]) > :not(summary) {
  display: none !important;
}

@media (max-width: 360px) {
  .mobile-nav {
    justify-content: flex-start;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
}


/* Shared accessibility states and resilient interaction sizing. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button,
input[type="button"],
input[type="submit"],
.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.table-link,
[role="button"] {
  min-height: 44px;
}

.table-link {
  display: inline-flex;
  align-items: center;
}

.app-shell,
main,
.page,
.section,
.dashboard-grid,
.panel,
.compact-table,
.compact-row {
  min-width: 0;
}

img,
video,
canvas {
  max-width: 100%;
}

.compact-table,
.roster-scroll,
.dashboard-tabs,
.mobile-nav,
.notification-image-strip {
  overscroll-behavior-inline: contain;
}

.state-panel-error {
  border-color: #bf4c42;
}

.state-panel-permission {
  border-color: #7967a8;
}

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

@media (prefers-contrast: more) {
  :focus-visible {
    outline-width: 4px;
  }
  .status,
  .panel,
  .compact-row,
  .state-panel {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .status,
  .panel,
  .compact-row,
  .state-panel,
  button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .ghost-button {
    forced-color-adjust: auto;
    border: 1px solid ButtonText;
  }
  .dashboard-tab.active {
    outline: 2px solid Highlight;
  }
}


.flush-section {
  padding-inline: 0;
}

.hours-progress-ring.progress-10 { background: conic-gradient(var(--green) 10%, #dfeee6 0); }
.hours-progress-ring.progress-20 { background: conic-gradient(var(--green) 20%, #dfeee6 0); }
.hours-progress-ring.progress-30 { background: conic-gradient(var(--green) 30%, #dfeee6 0); }
.hours-progress-ring.progress-40 { background: conic-gradient(var(--green) 40%, #dfeee6 0); }
.hours-progress-ring.progress-50 { background: conic-gradient(var(--green) 50%, #dfeee6 0); }
.hours-progress-ring.progress-60 { background: conic-gradient(var(--green) 60%, #dfeee6 0); }
.hours-progress-ring.progress-70 { background: conic-gradient(var(--green) 70%, #dfeee6 0); }
.hours-progress-ring.progress-80 { background: conic-gradient(var(--green) 80%, #dfeee6 0); }
.hours-progress-ring.progress-90 { background: conic-gradient(var(--green) 90%, #dfeee6 0); }
.hours-progress-ring.progress-100 { background: conic-gradient(var(--green) 100%, #dfeee6 0); }

.attendance-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 420px) {
  .attendance-sync-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep NJHS overrides after the shared compatibility styles. */
body {
  background: #f5f7f8;
  color: #18211d;
}

.hero.njhs-hero {
  overflow: hidden;
  min-height: min(650px, calc(100vh - 140px));
  padding-block: 36px;
  padding-right: max(46vw, 520px);
  background: #eaf4ef;
  border-bottom: 1px solid #c8d9d0;
  grid-template-columns: minmax(0, 1fr);
}

.hero.njhs-hero::after {
  display: none;
}

.hero.njhs-hero .njhs-hero-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: min(48vw, 680px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.hero.njhs-hero .njhs-hero-facts {
  display: none;
}

button,
.primary-button,
.secondary-button,
.topbar-action,
.desktop-nav a,
.mobile-nav a,
input,
select,
summary {
  min-height: 44px;
}

@media (max-width: 640px) {
  .hero.njhs-hero {
    min-height: auto;
    padding: 24px 18px 118px;
  }

  .hero.njhs-hero h1 {
    max-width: none;
    font-size: 2.5rem;
    line-height: 1.04;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero.njhs-hero .njhs-hero-panel {
    right: 50%;
    bottom: 0;
    width: 280px;
    height: 112px;
    transform: translateX(50%);
  }

  .hero.njhs-hero .njhs-hero-panel .hero-photo {
    width: 280px;
    height: auto;
    transform: translateY(-45px);
  }

  .hero.njhs-hero .button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }
}

/* Final placement fixes for the header, homepage hero, and page footer. */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
}

@media (min-width: 761px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 76px;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .desktop-nav {
    position: static;
    justify-self: center;
    align-self: center;
    transform: translateY(12px);
  }

  .topbar-account {
    justify-self: end;
  }
}

@media (min-width: 981px) {
  .hero.njhs-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: clamp(28px, 4vw, 64px);
    min-height: min(650px, calc(100vh - 140px));
    padding: 44px clamp(24px, 4vw, 64px);
  }

  .hero.njhs-hero .njhs-hero-copy {
    max-width: 610px;
    justify-self: center;
  }

  .hero.njhs-hero h1 {
    max-width: 16ch;
    font-size: clamp(3.15rem, 5.15vw, 4.65rem);
    line-height: 0.98;
  }

  .hero.njhs-hero .njhs-hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 680px);
    justify-self: center;
    align-self: center;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .hero.njhs-hero {
    grid-template-columns: 1fr;
    padding: 40px clamp(24px, 6vw, 58px);
  }

  .hero.njhs-hero .njhs-hero-copy,
  .hero.njhs-hero .njhs-hero-panel {
    justify-self: center;
  }

  .hero.njhs-hero .njhs-hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 680px);
  }
}

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

  .hero.njhs-hero {
    padding: 28px 18px;
  }

  .hero.njhs-hero .njhs-hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 420px);
    height: auto;
    margin: 8px auto 0;
    transform: none;
  }

  .hero.njhs-hero .njhs-hero-panel .hero-photo {
    width: 100%;
    height: auto;
    transform: none;
  }
}
