:root {
  color-scheme: light;
  --ink: #141311;
  --muted: #68645c;
  --soft: #f7f6f2;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(20, 19, 17, 0.1);
  --gold: #cfa44d;
  --ember: #b85d3f;
  --teal: #2e7c75;
  --teal-deep: #1f5f59;
  --plum: #573852;
  --sky: #dce9ef;
  --shadow: 0 24px 70px rgba(45, 40, 31, 0.14);
  --radius: 26px;
  --tab-height: 78px;
  --native-tab-clearance: 136px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(180deg, #f7f6f2 0%, #eef2f1 52%, #faf8f4 100%),
    var(--soft);
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(207, 164, 77, 0.26), transparent 36rem),
    radial-gradient(circle at 100% 12%, rgba(46, 124, 117, 0.16), transparent 34rem),
    linear-gradient(180deg, #f7f6f2 0%, #eef2f1 52%, #faf8f4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, rgba(207, 164, 77, 0.1), rgba(46, 124, 117, 0.08) 54%, rgba(87, 56, 82, 0.08));
  opacity: 0.72;
}

html.native-tabs .bottom-tabs {
  display: none;
}

html.native-tabs .toast {
  bottom: calc(var(--native-tab-clearance) + env(safe-area-inset-bottom));
}

html.native-tabs .profile-modal {
  padding-bottom: calc(var(--native-tab-clearance) + env(safe-area-inset-bottom));
}

html.native-tabs .profile-sheet {
  max-height: calc(100dvh - var(--native-tab-clearance) - max(18px, env(safe-area-inset-top)) - 20px);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  background: transparent;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px calc(var(--tab-height) + 60px + env(safe-area-inset-bottom));
  animation: rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: pan-y;
  scroll-padding-bottom: calc(var(--tab-height) + 68px);
}

.wide-screen {
  width: min(1180px, 100%);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-switch {
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mode-switch button {
  min-width: 58px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mode-switch button.active {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--plum));
  box-shadow: 0 8px 18px rgba(46, 124, 117, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(87, 56, 82, 0.18);
}

.brand-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.role-chip {
  min-height: 42px;
  max-width: 148px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.role-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(30px, 9vw, 46px);
  line-height: 0.96;
  letter-spacing: 0;
  margin-bottom: 12px;
}

h2 {
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 10px;
}

h3 {
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 6px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

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

.home-grid,
.home-story-grid {
  display: grid;
  gap: 18px;
}

.card,
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.35);
}

.glass-card {
  padding: 20px;
}

.screen > .glass-card + .involved-grid,
.screen > .involved-grid + .glass-card,
.screen > .card + .split,
.screen > .split + .pillar-grid,
.screen > .glass-card + .split {
  margin-top: 22px;
}

.screen > .card + .pillar-grid,
.screen > .glass-card + .pillar-grid {
  margin-top: 24px;
}

.up-next {
  min-height: 285px;
  padding: 20px;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(135deg, #573852, #2e7c75);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.up-next.wednesday-focus {
  overflow: hidden;
  transform: translateZ(0);
  box-shadow:
    0 24px 70px rgba(45, 40, 31, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 28px rgba(207, 164, 77, 0.42),
    0 0 48px rgba(46, 124, 117, 0.34),
    0 0 64px rgba(87, 56, 82, 0.24);
  animation: eventEdgeHalo 4.4s ease-in-out infinite;
}

.up-next::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 19, 17, 0.3), rgba(20, 19, 17, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.up-next::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 0;
  pointer-events: none;
  background: var(--event-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.72) blur(1.2px);
  transform: scale(1.018);
}

.up-next.wednesday-focus .pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 18px rgba(255, 255, 255, 0.16);
}

.up-next > * {
  position: relative;
  z-index: 2;
}

.up-next p,
.up-next .meta-row,
.up-next .event-description {
  color: rgba(255, 255, 255, 0.9);
}

.up-next h1 {
  max-width: 12ch;
  margin-bottom: 12px;
  text-wrap: balance;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.pill.dark {
  color: var(--ink);
  background: rgba(20, 19, 17, 0.07);
}

.meta-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
}

.icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  display: inline-block;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
.icon-button,
.tab-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.button {
  min-height: 45px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  background: linear-gradient(135deg, var(--ink), #3c3038);
  box-shadow: 0 14px 28px rgba(20, 19, 17, 0.18);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(20, 19, 17, 0.1);
}

.button.ghost {
  color: var(--ink);
  background: rgba(20, 19, 17, 0.06);
  box-shadow: none;
}

.button.mini {
  min-height: 32px;
  padding: 0 12px;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(46, 124, 117, 0.16);
  font-size: 12px;
}

.button.glass-action {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(16px);
}

.button.warn {
  background: linear-gradient(135deg, #9a302d, #c96645);
}

.icon-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  backdrop-filter: blur(18px);
}

.button:hover,
.icon-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.button:active,
.icon-button:active,
.tab-button:active {
  transform: scale(0.98);
}

.mission-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(207, 164, 77, 0.2), rgba(46, 124, 117, 0.12));
}

.mission-card .mission {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 850;
  text-wrap: balance;
}

.movement-card {
  display: grid;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(207, 164, 77, 0.17), rgba(46, 124, 117, 0.14));
}

.movement-media {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  background:
    linear-gradient(180deg, rgba(20, 19, 17, 0), rgba(20, 19, 17, 0.2)),
    url("./media/community.webp"),
    linear-gradient(135deg, rgba(46, 124, 117, 0.64), rgba(87, 56, 82, 0.58));
  background-size: cover;
  background-position: center 38%;
}

.movement-media img,
.card-bg-image {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  display: block;
  z-index: 0;
  filter: brightness(0.76) blur(1px);
  transform: scale(1.012);
}

.movement-media img {
  object-position: center 38%;
}

.movement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 19, 17, 0), rgba(20, 19, 17, 0.18));
}

.movement-content {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.movement-content h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1;
  text-wrap: balance;
}

.movement-content .mission {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 760;
}

.movement-content p {
  margin-bottom: 0;
}

.movement-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.movement-points span {
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(20, 19, 17, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.movement-points strong,
.movement-points small {
  display: block;
}

.movement-points strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
}

.movement-points small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.profile-card {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.16), rgba(207, 164, 77, 0.18));
}

.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-card-top .eyebrow {
  margin-bottom: 0;
}

.profile-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.safety-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.safety-list span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

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

.next-steps-card {
  padding: 16px;
  box-shadow: 0 18px 48px rgba(45, 40, 31, 0.1);
}

.next-steps-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.next-steps-head h2 {
  margin-bottom: 0;
  font-size: 21px;
}

.quick-action {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.quick-action:first-child {
  grid-column: 1 / -1;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--plum));
  border-color: transparent;
}

.quick-action .icon {
  width: 19px;
  height: 19px;
}

.pillar-grid,
.involved-grid {
  display: grid;
  gap: 16px;
}

.involved-grid .glass-card,
.split .glass-card {
  padding: 22px;
}

.involved-grid .glass-card {
  min-height: 150px;
}

.involvement-cta {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.involvement-cta h2,
.involvement-cta p {
  margin-bottom: 0;
}

.involvement-cta .button {
  width: fit-content;
}

.pillar-card {
  min-height: 168px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)),
    var(--pillar-bg);
}

.pillar-card:nth-child(1) {
  --pillar-bg: linear-gradient(135deg, rgba(184, 93, 63, 0.23), transparent);
}

.pillar-card:nth-child(2) {
  --pillar-bg: linear-gradient(135deg, rgba(46, 124, 117, 0.23), transparent);
}

.pillar-card:nth-child(3) {
  --pillar-bg: linear-gradient(135deg, rgba(87, 56, 82, 0.22), transparent);
}

.feature-image {
  min-height: 220px;
  padding: 20px;
  color: white;
  background:
    linear-gradient(180deg, rgba(20, 19, 17, 0.2), rgba(20, 19, 17, 0.82)),
    url("./media/arena-feature.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply, normal;
  display: flex;
  align-items: end;
}

.feature-image > :not(.card-bg-image),
.donation-card > :not(.card-bg-image) {
  position: relative;
  z-index: 1;
}

.feature-image::after,
.donation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(20, 19, 17, 0.34), rgba(20, 19, 17, 0.9));
}

.feature-image p {
  color: rgba(255, 255, 255, 0.88);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

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

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.chip {
  white-space: nowrap;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--plum));
}

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

.event-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: stretch;
}

.event-art {
  min-height: 132px;
  border-radius: 20px;
  background: var(--event-image), linear-gradient(135deg, var(--teal), var(--ember));
  background-size: cover;
  background-position: center;
}

.event-body {
  min-width: 0;
  padding: 4px 4px 4px 0;
}

.event-body h3 {
  font-size: 18px;
}

.event-body .pill {
  padding: 6px 9px;
  font-size: 11px;
}

.event-body .meta-grid {
  gap: 7px;
  margin: 10px 0 10px;
}

.event-body .meta-row {
  font-size: 12px;
  line-height: 1.25;
}

.event-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.42;
}

.event-description.expanded {
  display: block;
  overflow: visible;
}

.text-button {
  width: fit-content;
  border: 0;
  padding: 4px 0;
  color: var(--teal);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.description-toggle {
  margin-bottom: 8px;
}

.event-helper-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.role-note {
  width: fit-content;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
}

.event-helper-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.event-helper-button.parent {
  color: #203f4a;
  background: rgba(220, 233, 239, 0.78);
}

.event-card .actions {
  gap: 8px;
}

.event-card .button {
  min-height: 38px;
  padding: 0 11px;
  font-size: 12px;
}

.role-note.parent-note {
  background: rgba(220, 233, 239, 0.62);
}

.role-note.leader-note {
  background: rgba(207, 164, 77, 0.16);
}

.role-note.student-note {
  background: rgba(46, 124, 117, 0.12);
}

.date-badge {
  width: 62px;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(20, 19, 17, 0.12);
}

.date-badge span {
  display: block;
}

.date-badge .month {
  padding: 5px 0 2px;
  color: var(--ember);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.date-badge .day {
  padding-bottom: 8px;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field span,
.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: none;
  min-height: 48px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-height) + 16px);
  z-index: 50;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 14px 16px;
  border-radius: 20px;
  color: white;
  background: rgba(20, 19, 17, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: toast 260ms ease;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0%, rgba(207, 164, 77, 0.28), transparent 28rem),
    rgba(20, 19, 17, 0.28);
  backdrop-filter: blur(26px) saturate(1.25);
  animation: fadeIn 220ms ease;
}

.profile-sheet {
  width: min(520px, 100%);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 34px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.12), rgba(207, 164, 77, 0.14));
  box-shadow: 0 30px 90px rgba(20, 19, 17, 0.28);
}

.profile-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-close-button {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

.profile-close-button .icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

.profile-sheet-head h1 {
  font-size: clamp(32px, 10vw, 48px);
}

.profile-options {
  display: grid;
  gap: 10px;
}

.profile-option {
  width: 100%;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  cursor: pointer;
}

.profile-option.active {
  border-color: rgba(46, 124, 117, 0.42);
  background: linear-gradient(135deg, rgba(46, 124, 117, 0.16), rgba(255, 255, 255, 0.74));
}

.profile-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--plum));
}

.profile-option strong,
.profile-option small {
  display: block;
}

.parent-info-modal {
  place-items: center;
}

.parent-info-sheet {
  max-width: 420px;
  border-radius: 30px;
}

.parent-info-sheet .profile-sheet-head h1 {
  font-size: 28px;
}

.parent-info-list {
  display: grid;
  gap: 10px;
}

.parent-info-list div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.parent-info-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
}

.parent-info-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.profile-option strong {
  font-size: 18px;
  margin-bottom: 4px;
}

.profile-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.empty-state,
.error-state,
.loader-card {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed rgba(20, 19, 17, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.loader-card {
  margin: 28px 18px;
}

.admin-loading-state {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .58)),
    linear-gradient(135deg, rgba(46, 124, 117, .1), rgba(207, 164, 77, .08));
  color: var(--muted);
}

.admin-loading-state h3,
.admin-loading-state p {
  margin: 0;
}

.admin-loading-state h3 {
  color: var(--ink);
}

.admin-loading-state p {
  margin-top: 6px;
}

.loader-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(46, 124, 117, 0.22);
  border-top-color: var(--teal);
  animation: spin 820ms linear infinite;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(520px, calc(100% - 22px));
  height: var(--tab-height);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 31px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0.76)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(230, 238, 236, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(20, 19, 17, 0.06),
    0 22px 52px rgba(20, 19, 17, 0.18);
  -webkit-backdrop-filter: blur(34px) saturate(1.65) brightness(1.08);
  backdrop-filter: blur(34px) saturate(1.65) brightness(1.08);
  touch-action: manipulation;
}

.bottom-tabs::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 30px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.28) 34%, rgba(46, 124, 117, 0.12) 64%, rgba(207, 164, 77, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
  opacity: 0.86;
}

.bottom-tabs::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 16px 32px rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.tab-button {
  position: relative;
  border-radius: 23px;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}

.tab-button.active {
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(20, 19, 17, 0.08),
    0 10px 22px rgba(20, 19, 17, 0.08);
}

.tab-button.active::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), transparent 55%);
  pointer-events: none;
}

.tab-button .icon,
.tab-button span {
  position: relative;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 6px;
}

.admin-shell {
  display: grid;
  gap: 14px;
}

.admin-hero,
.admin-list-panel,
.admin-editor-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(45, 40, 31, 0.1);
  backdrop-filter: blur(28px) saturate(1.35);
}

.admin-hero {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.admin-hero h1 {
  margin-bottom: 8px;
}

.admin-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-session span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.12);
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.admin-metrics article {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.admin-metrics strong,
.admin-metrics span {
  display: block;
}

.admin-metrics strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.admin-metrics span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.admin-readiness-card,
.admin-readiness-refresh {
  min-width: 0;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.52)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.11), rgba(184, 93, 63, 0.08));
  box-shadow: 0 16px 40px rgba(45, 40, 31, 0.08);
}

.admin-readiness-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 15px;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.admin-readiness-card.clickable {
  cursor: pointer;
}

.admin-readiness-card.clickable:hover {
  border-color: rgba(46, 124, 117, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(45, 40, 31, 0.11);
}

.admin-readiness-card.clickable:focus-visible {
  outline: 3px solid rgba(46, 124, 117, 0.28);
  outline-offset: 2px;
}

.admin-readiness-refresh {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--teal-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-readiness-refresh:disabled {
  opacity: 0.58;
  cursor: wait;
}

.readiness-icon {
  width: 36px;
  height: 36px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.12);
}

.readiness-icon .icon,
.admin-readiness-refresh .icon {
  width: 18px;
  height: 18px;
}

.admin-readiness-card p,
.admin-readiness-card strong,
.admin-readiness-card small {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-readiness-card p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.admin-readiness-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-readiness-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.sync-summary article {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.sync-summary strong,
.sync-summary span {
  display: block;
}

.sync-summary strong {
  color: var(--ink);
  font-size: 18px;
  text-transform: capitalize;
}

.sync-summary span,
.sync-message {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-workspace {
  display: grid;
  gap: 14px;
}

.forms-command-shell {
  display: grid;
  gap: 16px;
}

.forms-command-head {
  align-items: center;
}

.form-command-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.form-command-stat {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.form-command-stat.attention {
  border-color: rgba(125, 15, 32, .28);
  background: rgba(125, 15, 32, .06);
}

.form-command-stat > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #141311;
  color: #fff;
  flex: 0 0 auto;
}

.form-command-stat strong,
.form-command-stat small {
  display: block;
  min-width: 0;
}

.form-command-stat strong {
  font-size: 20px;
  line-height: 1;
}

.form-command-stat small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}

.forms-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .75fr) minmax(180px, .9fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.forms-submission-list {
  display: grid;
  gap: 10px;
}

.form-submission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.form-submission-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.form-submission-main > div,
.form-submission-title {
  min-width: 0;
}

.form-submission-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-submission-title strong,
.form-submission-main p,
.form-submission-main small {
  overflow-wrap: anywhere;
}

.form-submission-main p {
  margin: 4px 0 2px;
  color: var(--muted);
}

.form-submission-main small {
  color: rgba(20, 19, 17, .58);
  font-weight: 800;
}

.form-submission-status {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.form-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20, 19, 17, .08);
  color: rgba(20, 19, 17, .72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.form-status-pill.good {
  background: rgba(46, 124, 117, .12);
  color: #24564f;
}

.form-status-pill.warning {
  background: rgba(125, 15, 32, .1);
  color: #7d0f20;
}

.volunteer-command-shell {
  display: grid;
  gap: 16px;
}

.volunteer-command-hero,
.volunteer-service-panel {
  padding: 18px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62)),
    linear-gradient(135deg, rgba(46, 124, 117, .12), rgba(207, 164, 77, .1));
  box-shadow: 0 18px 52px rgba(45, 40, 31, .09);
}

.volunteer-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.volunteer-command-hero h2,
.volunteer-command-hero p {
  margin-bottom: 0;
}

.volunteer-command-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.volunteer-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.volunteer-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
}

.volunteer-stat.attention {
  border-color: rgba(125, 15, 32, .24);
  background: rgba(125, 15, 32, .06);
}

.volunteer-stat > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #141311, #24564f);
}

.volunteer-stat strong,
.volunteer-stat small {
  display: block;
  min-width: 0;
}

.volunteer-stat strong {
  font-size: 21px;
  line-height: 1;
}

.volunteer-stat small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.volunteer-sync-note {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  font-weight: 850;
}

.volunteer-sync-note.good {
  color: #24564f;
  border-color: rgba(46, 124, 117, .22);
  background: rgba(46, 124, 117, .08);
}

.volunteer-sync-note.attention {
  color: #7d0f20;
  border-color: rgba(125, 15, 32, .24);
  background: rgba(125, 15, 32, .06);
}

.volunteer-workspace {
  display: grid;
  grid-template-columns: minmax(340px, .85fr) minmax(440px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.volunteer-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
}

.volunteer-filter-bar .field:first-child,
.volunteer-filter-bar .button {
  grid-column: 1 / -1;
}

.volunteer-filter-bar .button {
  justify-self: end;
  width: min(180px, 100%);
}

.volunteer-roster-list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding-right: 2px;
}

.volunteer-roster-row {
  width: 100%;
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, .74);
  text-align: left;
  cursor: pointer;
}

.volunteer-roster-row.active {
  border-color: rgba(46, 124, 117, .42);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, .13), rgba(255, 255, 255, .82));
  box-shadow: 0 10px 24px rgba(46, 124, 117, .1);
}

.volunteer-roster-row strong,
.volunteer-roster-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volunteer-roster-row strong {
  color: var(--ink);
  line-height: 1.1;
}

.volunteer-roster-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.volunteer-roster-row em {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 19, 17, .08);
  color: rgba(20, 19, 17, .72);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.volunteer-roster-row em.complete {
  color: #24564f;
  background: rgba(46, 124, 117, .12);
}

.volunteer-roster-row em.pending {
  color: #7c5520;
  background: rgba(207, 164, 77, .16);
}

.volunteer-roster-row em.blocked,
.volunteer-roster-row em.missing {
  color: #7d0f20;
  background: rgba(125, 15, 32, .1);
}

.volunteer-detail-panel {
  position: sticky;
  top: 12px;
  max-height: calc(100dvh - 150px);
  overflow: auto;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.volunteer-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(20, 19, 17, .08);
}

.volunteer-detail-head h2,
.volunteer-detail-head p {
  margin-bottom: 0;
}

.volunteer-editor textarea {
  min-height: 86px;
}

.volunteer-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(20, 19, 17, .045);
  font-size: 12px;
  font-weight: 850;
}

.volunteer-sheet-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.volunteer-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.volunteer-service-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.volunteer-service-card strong,
.volunteer-service-card p,
.volunteer-service-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.volunteer-service-card p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.35;
}

.volunteer-service-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.volunteer-service-card:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 124, 117, .34);
  background: rgba(255, 255, 255, .88);
}

.event-form-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.event-form-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.event-form-panel-head h3,
.event-form-panel-head p {
  margin: 0;
}

.event-form-list {
  display: grid;
  gap: 8px;
}

.event-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(20, 19, 17, .045);
}

.event-form-row strong,
.event-form-row p {
  overflow-wrap: anywhere;
}

.event-form-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.event-form-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.form-submission-sheet {
  max-width: min(940px, calc(100vw - 24px));
}

.form-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.form-detail-tile {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.form-detail-tile > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(20, 19, 17, .08);
  flex: 0 0 auto;
}

.form-detail-tile small,
.form-detail-tile strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-detail-tile small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}

.form-detail-tile strong {
  margin-top: 2px;
  font-size: 14px;
}

.form-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-detail-alert {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(125, 15, 32, .22);
  border-radius: 8px;
  background: rgba(125, 15, 32, .06);
  color: #4b161f;
}

.form-detail-alert p {
  margin: 0;
}

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

.form-answer-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}

.form-answer-card small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .07em;
}

.form-answer-card strong {
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-list-panel,
.admin-editor-panel,
.login-card {
  min-width: 0;
  padding: 14px;
}

.admin-panel-head,
.admin-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-panel-head > div:first-child {
  min-width: 0;
}

.admin-panel-head > .actions {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-panel-head h2,
.admin-form-head h2 {
  margin-bottom: 0;
  font-size: 22px;
}

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

.admin-event-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.admin-event-row.active {
  border-color: rgba(46, 124, 117, 0.42);
  background: linear-gradient(135deg, rgba(46, 124, 117, 0.12), rgba(255, 255, 255, 0.74));
}

.admin-event-thumb {
  min-height: 92px;
  border-radius: 17px;
  background: var(--event-image), linear-gradient(135deg, var(--teal), var(--plum));
  background-size: cover;
  background-position: center;
}

.admin-event-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-event-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.admin-event-title strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.admin-event-main p {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

.admin-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.icon-pill {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.icon-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

.icon-pill:active {
  transform: scale(0.98);
}

.icon-pill .icon {
  width: 15px;
  min-width: 15px;
  height: 15px;
}

.icon-pill.danger {
  color: #8f302f;
}

.admin-form {
  min-width: 0;
}

.staff-help {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(46, 124, 117, 0.1);
  border: 1px solid rgba(46, 124, 117, 0.16);
}

.staff-help p {
  margin: 0;
  font-size: 13px;
}

.action-center-shell {
  display: grid;
  gap: 14px;
}

.segments-workspace {
  display: grid;
  gap: 14px;
}

.action-center-help {
  margin: 0;
  border-radius: 8px;
}

.action-center-panel {
  display: grid;
  gap: 14px;
}

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

.action-summary-grid article {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.1), rgba(207, 164, 77, 0.08));
}

.action-summary-grid strong,
.action-summary-grid span {
  display: block;
}

.action-summary-grid strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.action-summary-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.action-category-grid,
.segment-card-grid {
  display: grid;
  gap: 10px;
}

.segment-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
}

.action-category-card,
.segment-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.action-category-card {
  display: grid;
  gap: 12px;
}

.clickable-person {
  width: 100%;
  border: 1px solid var(--line);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.clickable-person:hover {
  background: rgba(255, 255, 255, .82);
}

.action-category-card h3,
.segment-card strong,
.segment-card p {
  margin: 0;
}

.action-item-list {
  display: grid;
  gap: 8px;
}

.action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 17px;
  border: 1px solid rgba(20, 19, 17, 0.07);
  background: rgba(255, 255, 255, 0.58);
}

.action-item strong,
.action-item p {
  margin: 0;
}

.action-item strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.action-item p,
.muted-small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.action-item-side {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.rollup-pill {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.09);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.segment-card {
  width: 100%;
  min-height: 128px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.segment-card.active {
  border-color: rgba(46, 124, 117, 0.44);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.15), rgba(255, 255, 255, 0.72));
}

.segment-card strong {
  font-size: 17px;
  line-height: 1.12;
}

.segment-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.segment-people-list {
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

button:disabled:hover,
button:disabled:active {
  transform: none;
}

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

.mini-table {
  display: grid;
  gap: 10px;
}

.mini-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.mini-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.compact-actions {
  gap: 8px;
}

.compact-actions .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.response-panel {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

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

.response-form textarea {
  min-height: 76px;
}

.response-stamp {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.public::before {
  background: var(--teal);
}

.status-dot.private::before {
  background: var(--gold);
}

.status-dot.draft::before {
  background: var(--ember);
}

.split {
  display: grid;
  gap: 18px;
}

.donation-card {
  color: white;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(20, 19, 17, 0.34), rgba(20, 19, 17, 0.88)),
    url("./media/arena.jpeg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply, normal;
}

.donation-card p {
  color: rgba(255, 255, 255, 0.9);
}

.external-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 750;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.social-link {
  min-height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.admin-link {
  margin: 18px auto 0;
}

.member-checkin-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.14), rgba(207, 164, 77, 0.15));
}

.member-checkin-card.active-member {
  border-color: rgba(46, 124, 117, 0.24);
}

.member-checkin-copy h2,
.member-checkin-copy p {
  margin-bottom: 0;
}

.member-auth-layout,
.member-profile-grid,
.ops-grid {
  display: grid;
  gap: 16px;
}

.member-auth-card,
.profile-editor-card,
.member-qr-card,
.member-password-card,
.scanner-panel,
.checkin-panel,
.self-service-panel,
.last-checkin-card {
  padding: 20px;
}

.member-account-preview {
  min-height: 330px;
  padding: 24px;
  color: white;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(20, 19, 17, 0.08), rgba(20, 19, 17, 0.78)),
    url("./media/community.webp");
  background-size: cover;
  background-position: center;
}

.member-account-preview p {
  color: rgba(255, 255, 255, 0.9);
}

.profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.account-identity {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.profile-identity-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.profile-identity h1 {
  margin-bottom: 6px;
}

.member-logout-button {
  align-self: start;
  white-space: nowrap;
}

.privacy-panel,
.privacy-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(46, 124, 117, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.48)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.1), rgba(207, 164, 77, 0.08));
}

.privacy-panel h3,
.privacy-summary h3 {
  margin-bottom: 0;
}

.privacy-panel .eyebrow,
.privacy-summary .eyebrow {
  margin-bottom: 4px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: none;
  object-fit: cover;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--plum));
  font-size: 14px;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(20, 19, 17, 0.12);
}

.member-avatar.large {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  font-size: 25px;
}

.member-qr-display {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.member-qr-code {
  width: 156px;
  height: 156px;
  padding: 8px;
  border-radius: 18px;
  background: white;
  display: grid;
  place-items: center;
}

.member-qr-svg {
  width: 100%;
  height: 100%;
}

.member-qr-display code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.ops-shell {
  display: grid;
  gap: 14px;
}

.ops-hero {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  gap: 16px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.6)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.14), rgba(87, 56, 82, 0.1));
  box-shadow: 0 18px 52px rgba(45, 40, 31, 0.1);
}

.ops-hero h1,
.ops-hero p {
  margin-bottom: 0;
}

.checkin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.checkin-panel-head h2,
.checkin-panel-head p {
  margin-bottom: 0;
}

.event-picker {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.event-choice {
  width: 100%;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  text-align: left;
  cursor: pointer;
}

.event-choice.active {
  border-color: rgba(46, 124, 117, 0.44);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.16), rgba(255, 255, 255, 0.72));
}

.event-choice strong,
.event-choice span {
  display: block;
}

.event-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.search-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 14px;
}

.people-results {
  display: grid;
  gap: 10px;
}

.person-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.person-result strong {
  display: block;
  color: var(--ink);
  line-height: 1.15;
}

.person-result p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.checkin-history-panel {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.checkin-history-head {
  display: grid;
  gap: 14px;
  align-items: end;
}

.checkin-history-head h2,
.checkin-history-head p {
  margin-bottom: 0;
}

.checkin-history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkin-history-summary article,
.checkin-roster-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.08), rgba(207, 164, 77, 0.08));
}

.checkin-history-summary strong,
.checkin-history-summary span {
  display: block;
}

.checkin-history-summary strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.checkin-history-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkin-history-layout {
  display: grid;
  gap: 14px;
}

.checkin-event-buckets {
  display: grid;
  gap: 10px;
}

.checkin-bucket {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.checkin-bucket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.checkin-bucket-head strong {
  color: var(--ink);
  font-size: 13px;
}

.checkin-bucket-head span {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.11);
  font-size: 12px;
  font-weight: 950;
}

.checkin-bucket-list {
  display: grid;
  gap: 8px;
}

.checkin-bucket-list .empty-state {
  min-height: 104px;
  padding: 12px;
}

.checkin-history-choice {
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.09);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.checkin-history-choice.active {
  border-color: rgba(46, 124, 117, 0.46);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.17), rgba(255, 255, 255, 0.78));
  box-shadow: 0 12px 28px rgba(46, 124, 117, 0.11);
}

.checkin-history-choice span,
.checkin-history-choice strong,
.checkin-history-choice small,
.checkin-history-choice em {
  min-width: 0;
  display: block;
}

.checkin-history-choice strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-history-choice small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-history-choice em {
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--teal-deep), var(--plum));
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.checkin-roster-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(20, 19, 17, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.56)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.1), rgba(87, 56, 82, 0.08));
}

.checkin-roster-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.checkin-roster-head h3,
.checkin-roster-head p {
  margin-bottom: 0;
}

.checkin-roster-head h3 {
  font-size: 24px;
}

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

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

.checkin-roster-stat > span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.1);
}

.checkin-roster-stat strong,
.checkin-roster-stat small {
  display: block;
  min-width: 0;
}

.checkin-roster-stat strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-roster-stat small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkin-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.checkin-lookup-form .button {
  min-height: 50px;
}

.checkin-lookup-results {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(46, 124, 117, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.09), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.64);
}

.checkin-lookup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkin-lookup-head strong,
.checkin-lookup-head span {
  display: block;
  min-width: 0;
}

.checkin-lookup-head strong {
  color: var(--ink);
}

.checkin-lookup-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-lookup-list {
  display: grid;
  gap: 8px;
}

.checkin-lookup-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.08);
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(110px, auto);
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
}

.checkin-lookup-row.checked {
  border-color: rgba(46, 124, 117, 0.18);
}

.checkin-lookup-row.missing {
  border-color: rgba(184, 93, 63, 0.18);
}

.checkin-lookup-person,
.checkin-lookup-actions {
  min-width: 0;
}

.checkin-lookup-person strong,
.checkin-lookup-person p,
.checkin-lookup-actions small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-lookup-person strong {
  color: var(--ink);
  line-height: 1.14;
}

.checkin-lookup-person p,
.checkin-lookup-actions small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.checkin-presence-pill {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 920;
  white-space: nowrap;
}

.checkin-presence-pill.checked {
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.12);
}

.checkin-presence-pill.missing {
  color: #8f302f;
  background: rgba(184, 93, 63, 0.12);
}

.checkin-presence-pill .icon {
  width: 15px;
  height: 15px;
}

.checkin-lookup-actions {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.checkin-roster-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 3px;
}

.checkin-roster-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.08);
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(136px, auto) auto auto;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
}

.checkin-roster-person,
.checkin-roster-meta {
  min-width: 0;
}

.checkin-roster-person strong,
.checkin-roster-person p,
.checkin-roster-meta strong,
.checkin-roster-meta span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-roster-person strong {
  color: var(--ink);
  line-height: 1.14;
}

.checkin-roster-person p,
.checkin-roster-meta span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.checkin-roster-meta {
  text-align: right;
}

.checkin-roster-meta strong {
  color: var(--teal-deep);
  font-size: 13px;
}

html.attendee-mode .app-shell {
  width: 100%;
  max-width: none;
}

html.attendee-mode .bottom-tabs {
  display: none;
}

html.attendee-mode body {
  background:
    linear-gradient(180deg, #f5f6f1 0%, #eef3f0 48%, #fbf7ed 100%),
    var(--soft);
}

.screen.attendee-screen {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  scroll-padding-bottom: 24px;
}

.attendee-mode-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) clamp(12px, 2.5vw, 34px) calc(22px + env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.1), transparent 36%),
    linear-gradient(225deg, rgba(207, 164, 77, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 246, 242, 0.92));
}

.attendee-command-bar {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 20;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: white;
  background:
    linear-gradient(135deg, rgba(20, 19, 17, 0.98), rgba(23, 48, 45, 0.94)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.28), rgba(87, 56, 82, 0.22));
  box-shadow: 0 18px 52px rgba(20, 19, 17, 0.18);
}

.attendee-command-bar .button {
  min-height: 52px;
}

.attendee-exit {
  min-width: 168px;
}

.attendee-current-event {
  min-width: 0;
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
}

.attendee-current-event span,
.attendee-current-event strong {
  display: block;
}

.attendee-current-event span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attendee-current-event strong {
  max-width: 100%;
  overflow: hidden;
  color: white;
  font-size: 20px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-command-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.attendee-live-pill {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9f4da;
  background: rgba(109, 184, 102, 0.18);
  border: 1px solid rgba(185, 234, 177, 0.24);
  font-size: 12px;
  font-weight: 900;
}

.attendee-event-banner {
  min-height: 178px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(20, 19, 17, 0.1);
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.14), rgba(207, 164, 77, 0.18));
  box-shadow: 0 18px 52px rgba(45, 40, 31, 0.1);
}

.attendee-event-banner h1 {
  max-width: 16ch;
  margin-bottom: 10px;
  font-size: clamp(38px, 7vw, 76px);
}

.attendee-event-banner p {
  margin-bottom: 0;
}

.attendee-qr-launch {
  min-height: 58px;
  padding-inline: 22px;
  background: linear-gradient(135deg, var(--teal-deep), var(--ink));
}

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

.attendee-stat {
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(20, 19, 17, 0.09);
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(45, 40, 31, 0.08);
}

.attendee-stat > span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.1);
}

.attendee-stat strong,
.attendee-stat small {
  display: block;
  min-width: 0;
}

.attendee-stat strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-stat small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.attendee-checkin-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.attendee-search-stage,
.attendee-action-card,
.attendee-event-rail,
.attendee-success-card {
  border: 1px solid rgba(20, 19, 17, 0.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 52px rgba(45, 40, 31, 0.1);
  backdrop-filter: blur(24px) saturate(1.25);
}

.attendee-search-stage {
  min-height: min(680px, calc(100dvh - 264px));
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.attendee-search-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.attendee-search-title h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
}

.attendee-search-mark {
  width: clamp(58px, 8vw, 84px);
  height: clamp(58px, 8vw, 84px);
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--ink), var(--teal-deep));
  box-shadow: 0 16px 34px rgba(20, 19, 17, 0.18);
}

.attendee-search-mark .icon {
  width: 42%;
  height: 42%;
}

.attendee-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 0.22fr);
  gap: 12px;
  align-items: end;
}

.attendee-search-field {
  display: grid;
  gap: 8px;
}

.attendee-search-field > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.attendee-search-input-wrap {
  min-height: 78px;
  padding: 0 18px;
  border: 2px solid rgba(46, 124, 117, 0.24);
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(46, 124, 117, 0.08);
}

.attendee-search-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 780;
}

.attendee-search-input-wrap input::placeholder {
  color: rgba(104, 100, 92, 0.72);
}

.attendee-search-button {
  min-height: 78px;
  min-width: 150px;
  padding-inline: 22px;
  font-size: 16px;
}

.attendee-results {
  display: grid;
  gap: 10px;
}

.attendee-results .empty-state {
  min-height: 220px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.08), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.62);
}

.attendee-results-head,
.attendee-rail-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.attendee-results-head small,
.attendee-rail-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: none;
}

.attendee-person-result {
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(20, 19, 17, 0.09);
  border-radius: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(45, 40, 31, 0.08);
}

.attendee-person-result .member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  font-size: 18px;
}

.attendee-person-copy {
  min-width: 0;
}

.attendee-person-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-person-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-status-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.attendee-checkin-button {
  min-width: 146px;
  min-height: 62px;
}

.attendee-side-stage {
  display: grid;
  gap: 14px;
}

.attendee-success-card,
.attendee-action-card,
.attendee-event-rail {
  border-radius: 26px;
  padding: 18px;
}

.attendee-success-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  border-color: rgba(73, 154, 70, 0.24);
  background:
    linear-gradient(135deg, rgba(109, 184, 102, 0.18), rgba(255, 255, 255, 0.76)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 246, 242, 0.76));
}

.attendee-success-card.idle {
  border-color: rgba(46, 124, 117, 0.18);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.12), rgba(207, 164, 77, 0.12)),
    rgba(255, 255, 255, 0.72);
}

.attendee-success-card h2,
.attendee-success-card p {
  margin-bottom: 0;
}

.attendee-success-card h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.attendee-success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #6db866, var(--teal));
  box-shadow: 0 18px 34px rgba(46, 124, 117, 0.18);
}

.attendee-action-card {
  display: grid;
  gap: 12px;
}

.attendee-action-card p {
  margin-bottom: 0;
}

.attendee-action-card .button {
  width: 100%;
}

.attendee-action-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.attendee-action-head h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.attendee-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--plum), var(--teal-deep));
}

.attendee-qr-card {
  border-color: rgba(46, 124, 117, 0.18);
}

.attendee-scanner-card {
  border-color: rgba(207, 164, 77, 0.22);
}

.attendee-qr-form {
  gap: 10px;
}

.attendee-event-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.attendee-event-choice {
  width: 100%;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid rgba(20, 19, 17, 0.09);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.attendee-event-choice.active {
  border-color: rgba(46, 124, 117, 0.44);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.16), rgba(255, 255, 255, 0.76));
}

.attendee-event-choice strong,
.attendee-event-choice span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-event-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

@media (max-width: 1100px) {
  .volunteer-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .volunteer-detail-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .attendee-command-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendee-current-event {
    justify-items: start;
    text-align: left;
  }

  .attendee-command-actions {
    justify-content: flex-start;
  }

  .attendee-event-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendee-qr-launch {
    width: fit-content;
  }

  .attendee-checkin-stage {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .attendee-event-rail {
    grid-column: 1 / -1;
  }

  .attendee-event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 820px) {
  .volunteer-command-hero,
  .volunteer-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .volunteer-command-actions {
    justify-content: flex-start;
  }

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

  .attendee-status-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 64vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .attendee-stat {
    scroll-snap-align: start;
  }

  .attendee-side-stage,
  .attendee-event-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendee-person-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .attendee-status-pill {
    justify-self: start;
  }

  .attendee-checkin-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .attendee-mode-shell {
    gap: 12px;
  }

  .attendee-command-bar {
    min-height: 0;
    padding: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .attendee-command-bar,
  .attendee-event-banner,
  .attendee-search-stage,
  .attendee-success-card,
  .attendee-action-card,
  .attendee-event-rail {
    border-radius: 22px;
  }

  .attendee-command-bar .button,
  .attendee-qr-launch {
    width: 100%;
  }

  .attendee-exit {
    order: 1;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding-inline: 14px;
  }

  .attendee-current-event {
    order: 3;
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .attendee-current-event span {
    font-size: 10px;
  }

  .attendee-current-event strong {
    font-size: 17px;
  }

  .attendee-current-event strong {
    white-space: normal;
  }

  .attendee-command-actions {
    order: 2;
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
  }

  .attendee-command-actions .button {
    width: auto;
    min-height: 44px;
    padding-inline: 13px;
  }

  .attendee-live-pill {
    display: none;
  }

  .attendee-event-banner {
    min-height: 0;
    padding: 18px;
  }

  .attendee-event-banner h1 {
    max-width: 100%;
    font-size: clamp(32px, 11vw, 44px);
  }

  .attendee-search-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendee-search-mark {
    width: 62px;
    height: 62px;
    border-radius: 22px;
  }

  .attendee-search-title h2 {
    max-width: 100%;
    font-size: clamp(30px, 10vw, 44px);
  }

  .attendee-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendee-search-button {
    width: 100%;
  }

  .attendee-search-input-wrap {
    min-height: 68px;
  }

  .attendee-person-result {
    gap: 11px;
  }

  .attendee-person-copy strong,
  .attendee-person-copy p {
    white-space: normal;
  }
}

.profile-results {
  max-height: min(68vh, 780px);
  overflow: auto;
  padding-right: 2px;
}

.profile-result.active {
  border-color: rgba(46, 124, 117, 0.42);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.14), rgba(255, 255, 255, 0.74));
}

.tag-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag-strip span,
.profile-chip {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.1);
  font-size: 11px;
  font-weight: 850;
}

.tag-strip.strong span {
  color: var(--ink);
  background: rgba(20, 19, 17, 0.07);
}

.profile-detail-panel,
.team-detail-panel {
  display: grid;
  gap: 14px;
}

.person-profile-hub {
  display: grid;
  gap: 14px;
}

.profile-hub-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.54)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.12), rgba(207, 164, 77, 0.1));
  border: 1px solid var(--line);
}

.profile-hub-head h2,
.profile-hub-head p {
  margin-bottom: 0;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-stat-grid article {
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.profile-stat-grid strong,
.profile-stat-grid span {
  display: block;
}

.profile-stat-grid strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.profile-stat-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.profile-edit-details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.profile-edit-details summary {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.profile-edit-details .admin-form {
  padding: 0 14px 14px;
}

.profile-team-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 0.35fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(46, 124, 117, 0.18);
  border-radius: 22px;
  background: rgba(46, 124, 117, 0.08);
}

.profile-section-grid {
  display: grid;
  gap: 12px;
}

.profile-subsection {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
}

.profile-subsection h3 {
  margin: 0;
}

.profile-subsection-body {
  display: grid;
  gap: 8px;
}

.profile-mini-row {
  padding: 11px;
  border-radius: 17px;
  box-shadow: none;
}

.profile-mini-row p,
.profile-mini-row strong {
  margin: 0;
}

.care-row {
  border-color: rgba(87, 56, 82, 0.18);
  background:
    linear-gradient(135deg, rgba(87, 56, 82, 0.08), rgba(255, 255, 255, 0.6));
}

.household-member-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.household-member-list span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(20, 19, 17, 0.05);
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.household-member-list small {
  color: var(--muted);
}

.team-grid {
  display: grid;
  gap: 10px;
}

.team-card {
  width: 100%;
  min-height: 138px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
  cursor: pointer;
}

.team-card.active {
  border-color: rgba(46, 124, 117, 0.44);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.16), rgba(255, 255, 255, 0.72));
}

.team-card strong,
.team-card small {
  display: block;
}

.team-card strong {
  font-size: 17px;
  line-height: 1.12;
}

.team-card small {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
}

.team-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.group-editor {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.team-members-panel {
  display: grid;
  gap: 12px;
}

.group-add-results {
  margin-bottom: 10px;
}

.group-candidate {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.team-member-list {
  margin-top: 2px;
}

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

.team-member-person strong,
.team-member-person p {
  margin: 0;
}

.self-service-panel.active {
  border-color: rgba(207, 164, 77, 0.42);
  background:
    linear-gradient(135deg, rgba(207, 164, 77, 0.16), rgba(255, 255, 255, 0.72));
}

.self-service-panel.active .person-result,
.self-service-panel.active ~ .people-results .person-result {
  min-height: 86px;
}

.scanner-message {
  min-height: 22px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.qr-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: 20px;
  object-fit: cover;
  background: rgba(20, 19, 17, 0.82);
}

.last-checkin-card {
  border-color: rgba(46, 124, 117, 0.3);
  background:
    linear-gradient(135deg, rgba(46, 124, 117, 0.14), rgba(255, 255, 255, 0.72));
}

.qr-poster-modal {
  place-items: center;
}

.qr-poster-sheet {
  width: min(1120px, 100%);
  border-radius: 34px;
}

.qr-poster-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 430px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
}

.qr-poster-card {
  scroll-snap-align: center;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(20, 19, 17, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.12), rgba(207, 164, 77, 0.1));
  box-shadow: 0 18px 44px rgba(20, 19, 17, 0.12);
}

.qr-poster-card .eyebrow {
  margin: 0;
  color: var(--poster-accent);
  text-align: center;
}

.qr-poster-card h2 {
  margin: 0;
  color: var(--poster-accent);
  font-size: 22px;
  text-align: center;
}

.qr-poster-card p {
  margin: 0;
  color: rgba(20, 19, 17, 0.72);
  text-align: center;
}

.qr-poster-code {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(46, 124, 117, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 30% 20%, rgba(46, 124, 117, 0.14), transparent 44%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.qr-poster-code svg {
  width: 100%;
  height: auto;
  max-height: min(56vh, 440px);
}

.qr-poster-code code {
  overflow-wrap: anywhere;
  font-size: 12px;
  text-align: center;
}

.qr-poster-card .button {
  width: 100%;
  justify-content: center;
}

.mailchimp-shell {
  display: grid;
  gap: 14px;
}

.mailchimp-hero,
.mailchimp-panel,
.mailchimp-summary-grid article,
.mailchimp-resource-strip article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(45, 40, 31, 0.1);
  backdrop-filter: blur(28px) saturate(1.35);
}

.mailchimp-hero {
  display: grid;
  gap: 14px;
  align-items: end;
  padding: 20px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(46, 124, 117, 0.12), rgba(207, 164, 77, 0.14));
}

.mailchimp-hero h2,
.mailchimp-hero p {
  margin-bottom: 0;
}

.mailchimp-status {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mailchimp-status span {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #8f302f;
  background: rgba(184, 93, 63, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.mailchimp-status span.connected {
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.12);
}

.mailchimp-status span.locked {
  color: #8f302f;
  background: rgba(184, 93, 63, 0.12);
}

.mailchimp-status span.unlocked {
  color: var(--teal-deep);
  background: rgba(207, 164, 77, 0.18);
}

.mailchimp-dashboard-grid,
.mailchimp-wide-grid {
  display: grid;
  gap: 14px;
}

.mailchimp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 10px;
}

.mailchimp-summary-grid article,
.mailchimp-resource-strip article {
  min-width: 0;
  padding: 14px;
  border-radius: 20px;
}

.mailchimp-summary-grid strong,
.mailchimp-summary-grid span,
.mailchimp-resource-strip strong,
.mailchimp-resource-strip span {
  display: block;
}

.mailchimp-summary-grid strong,
.mailchimp-resource-strip strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.mailchimp-summary-grid span,
.mailchimp-resource-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.mailchimp-safety-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.mailchimp-safety-rail article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(46, 124, 117, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)),
    rgba(46, 124, 117, 0.08);
}

.mailchimp-safety-rail article > span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: rgba(46, 124, 117, 0.12);
}

.mailchimp-safety-rail .icon {
  width: 18px;
  height: 18px;
}

.mailchimp-safety-rail strong,
.mailchimp-safety-rail p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.mailchimp-safety-rail strong {
  color: var(--ink);
  font-size: 15px;
}

.mailchimp-safety-rail p,
.mailchimp-lock-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mailchimp-lock-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(20, 19, 17, 0.04);
  border: 1px solid var(--line);
}

.mailchimp-panel {
  min-width: 0;
  padding: 14px;
  border-radius: 26px;
}

.mailchimp-subsection {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mailchimp-action-forms {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mailchimp-action-forms form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

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

.mailchimp-campaign-row .admin-row-actions {
  margin-top: 0;
}

.icon-pill.locked {
  opacity: 0.64;
  color: var(--muted);
}

.mailchimp-suite-panel {
  grid-column: 1 / -1;
}

.mailchimp-advanced-form {
  display: grid;
  gap: 12px;
  align-items: end;
}

.mailchimp-resource-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.mailchimp-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(20, 19, 17, 0.04);
}

.mailchimp-result pre {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  color: #f5efe5;
  background: rgba(20, 19, 17, 0.88);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes toast {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

@keyframes eventEdgeHalo {
  0% {
    box-shadow:
      0 24px 70px rgba(45, 40, 31, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.14),
      -14px -10px 44px rgba(207, 164, 77, 0.54),
      16px -8px 52px rgba(46, 124, 117, 0.38),
      10px 16px 58px rgba(87, 56, 82, 0.28);
  }
  25% {
    box-shadow:
      0 24px 70px rgba(45, 40, 31, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.17),
      14px -14px 50px rgba(207, 164, 77, 0.42),
      18px 12px 62px rgba(46, 124, 117, 0.5),
      -12px 16px 52px rgba(87, 56, 82, 0.32);
  }
  50% {
    box-shadow:
      0 24px 70px rgba(45, 40, 31, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.18),
      16px 14px 56px rgba(207, 164, 77, 0.48),
      -14px 14px 66px rgba(46, 124, 117, 0.44),
      -16px -10px 54px rgba(184, 93, 63, 0.34);
  }
  75% {
    box-shadow:
      0 24px 70px rgba(45, 40, 31, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.17),
      -16px 12px 56px rgba(207, 164, 77, 0.54),
      -14px -14px 60px rgba(46, 124, 117, 0.4),
      16px -12px 54px rgba(87, 56, 82, 0.32);
  }
  100% {
    box-shadow:
      0 24px 70px rgba(45, 40, 31, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.14),
      -14px -10px 44px rgba(207, 164, 77, 0.54),
      16px -8px 52px rgba(46, 124, 117, 0.38),
      10px 16px 58px rgba(87, 56, 82, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .up-next.wednesday-focus {
    animation: none;
  }
}

@media (min-width: 720px) {
  .app-shell {
    width: min(100%, 1180px);
  }

  .screen {
    padding-inline: 32px;
  }

  .home-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.74fr);
    align-items: start;
    gap: 22px;
  }

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

  .home-story-grid {
    grid-template-columns: minmax(380px, 0.95fr) minmax(360px, 1fr);
    align-items: stretch;
    gap: 22px;
  }

  .home-story-grid .movement-card {
    min-height: 100%;
  }

  .home-belief-stack {
    align-content: start;
  }

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

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

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

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

  .admin-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .admin-workspace {
    grid-template-columns: minmax(360px, 0.95fr) minmax(340px, 0.75fr);
    align-items: start;
  }

  .segments-workspace {
    grid-template-columns: minmax(430px, 1fr) minmax(360px, 0.82fr);
    align-items: start;
  }

  .action-category-grid,
  .segment-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mailchimp-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mailchimp-dashboard-grid {
    grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.82fr);
    align-items: start;
  }

  .mailchimp-wide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .mailchimp-advanced-form {
    grid-template-columns: minmax(190px, 0.7fr) minmax(180px, 1fr) minmax(190px, 0.8fr) auto;
  }

  .mailchimp-resource-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .member-auth-layout,
  .member-profile-grid,
  .ops-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(330px, 0.78fr);
    align-items: start;
  }

  .ops-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .checkin-history-head {
    grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  }

  .checkin-history-layout {
    grid-template-columns: minmax(300px, 0.74fr) minmax(420px, 1fr);
    align-items: start;
  }

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

  .home-grid .mission-card {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .segment-search-form,
  .volunteer-filter-bar,
  .volunteer-roster-row,
  .volunteer-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .volunteer-roster-row {
    justify-items: start;
  }

  .volunteer-roster-row em {
    white-space: normal;
  }

  .volunteer-command-actions .button,
  .volunteer-command-actions a,
  .volunteer-editor .button {
    width: 100%;
  }

  .checkin-history-summary,
  .checkin-roster-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkin-lookup-form,
  .checkin-lookup-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkin-lookup-head {
    display: grid;
  }

  .checkin-lookup-actions {
    justify-items: stretch;
    width: 100%;
  }

  .checkin-presence-pill {
    justify-self: start;
  }

  .checkin-roster-head,
  .checkin-roster-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkin-roster-row {
    justify-items: start;
  }

  .checkin-roster-meta {
    text-align: left;
  }

  .checkin-roster-row .icon-pill {
    width: 100%;
  }

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

  .form-command-stats,
  .forms-filter-bar,
  .form-submission-row,
  .event-form-row,
  .form-detail-summary,
  .form-answer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-submission-status {
    justify-content: flex-start;
  }

  .event-form-panel-head,
  .forms-command-head {
    display: grid;
  }

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

  .member-logout-button {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .top-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .mode-switch {
    flex: 1 1 130px;
  }

  .brand-title {
    max-width: 18ch;
  }

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

  .action-item,
  .segment-person {
    grid-template-columns: 1fr;
  }

  .action-item-side {
    justify-items: start;
  }
}

@media (max-width: 390px) {
  .screen {
    padding-inline: 12px;
  }

  .top-row {
    align-items: flex-start;
  }

  .top-actions {
    max-width: none;
  }

  .mode-switch {
    order: 10;
    width: 100%;
  }

  .role-chip {
    display: none;
  }

  .quick-actions {
    gap: 8px;
  }

  .quick-action {
    min-height: 56px;
    border-radius: 18px;
    font-size: 11px;
  }

  .event-card {
    grid-template-columns: 88px 1fr;
    gap: 11px;
  }

  .event-art {
    min-height: 124px;
  }

  .role-chip {
    max-width: 112px;
    padding-inline: 10px;
  }

  .search-form,
  .person-result,
  .profile-team-add,
  .group-candidate,
  .member-qr-display {
    grid-template-columns: 1fr;
  }

  .person-result .button,
  .profile-team-add .button,
  .group-candidate .button {
    width: 100%;
  }

  .profile-hub-head,
  .team-member-person {
    grid-template-columns: 1fr;
  }

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

  .member-qr-code {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }
}
