:root {
  --ink: #17211d;
  --muted: #65706a;
  --line: #dfe5df;
  --surface: #ffffff;
  --canvas: #f4f5ef;
  --green: #16382f;
  --green-2: #245b48;
  --lime: #d9f373;
  --coral: #ef775d;
  --blue: #6e9fd2;
  --gold: #e6b95b;
  --ride-prompt-ink: #7e311f;
  --ride-prompt-surface: #fff2ee;
  --shadow: 0 16px 44px rgba(27, 43, 34, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  color-scheme: only light;
}

* { box-sizing: border-box; }
.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; }
html { color-scheme: only light; -webkit-text-size-adjust: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); overflow-wrap: anywhere; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand strong { font-family: ui-rounded, "SF Pro Rounded", Inter, system-ui, sans-serif; }

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  background: rgba(244, 245, 239, .92);
  border-bottom: 1px solid rgba(39, 57, 48, .1);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--green); background: var(--lime);
  font-family: ui-rounded, system-ui; font-weight: 800; font-size: 21px;
  transform: rotate(-4deg);
}
.brand strong { display: block; font-size: 16px; line-height: 1.15; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions form { margin: 0; }

.user-button {
  border: 1px solid #cfd7d1; padding: 5px 11px 5px 5px; border-radius: 22px;
  background: rgba(255, 255, 255, .62); cursor: pointer; display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.user-button:hover { background: white; border-color: #aebdb4; }
.avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: white; background: var(--green-2);
  font-weight: 700; font-size: 13px;
}
.user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.sign-out-label { color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap; }

.page-shell { max-width: 1440px; margin: 0 auto; padding: 34px 28px 72px; }
footer { padding: 26px; text-align: center; color: #7d8781; font-size: 12px; }
.footer-link-button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.footer-link-button:hover { color: var(--green); }
.mobile-app-nav, .mobile-next-event, .mobile-roster-summary, .mobile-roster-toggle { display: none; }

.button {
  min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 13px; cursor: pointer; transition: .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green); box-shadow: 0 7px 20px rgba(22, 56, 47, .18); }
.button-primary:hover { background: #205044; }
.button-quiet { background: transparent; border-color: #cfd7d1; color: var(--green); }
.button-quiet:hover { background: white; }
.button-light { background: white; color: var(--green); box-shadow: 0 8px 26px rgba(0, 0, 0, .1); }
.button-full { width: 100%; }

.eyebrow {
  margin-bottom: 7px; color: var(--green-2); text-transform: uppercase;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
}
.panel {
  background: var(--surface); border: 1px solid rgba(37, 62, 50, .09);
  border-radius: 22px; box-shadow: var(--shadow);
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.count-badge {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 15px;
  display: grid; place-items: center; background: #edf1eb; color: var(--green);
  font-size: 12px; font-weight: 800;
}
.count-badge-attention { color: #735a16; background: #f8edc9; }

.notice, .form-error {
  padding: 13px 16px; margin-bottom: 18px; border-radius: 12px;
  font-size: 13px; font-weight: 700;
}
.notice { color: #1f5a45; background: #e0f2e7; border: 1px solid #bce1ca; }
.form-error { color: #8c321f; background: #fde7e1; border: 1px solid #f4c4b8; }

.resume-last-page {
  margin-bottom: 18px; padding: 12px 14px; border: 1px solid #d8e2da; border-radius: 16px;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  background: #f8faf7; box-shadow: 0 8px 24px rgba(27, 43, 34, .05);
}
.resume-last-page[hidden] { display: none; }
.resume-last-page-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--green); background: #e5eee7; font-weight: 900; }
.resume-last-page-copy { min-width: 0; }
.resume-last-page-copy strong, .resume-last-page-copy small { display: block; }
.resume-last-page-copy strong { font-size: 12px; }
.resume-last-page-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.resume-last-page-dismiss { min-height: 40px; padding: 8px 9px; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.resume-last-page-dismiss:hover { color: var(--green); text-decoration: underline; }

.hero {
  min-height: 260px; margin-bottom: 24px; padding: 38px 42px;
  border-radius: 28px; color: white; background:
    radial-gradient(circle at 82% 28%, rgba(217, 243, 115, .23) 0 7%, transparent 7.3%),
    radial-gradient(circle at 89% 66%, rgba(239, 119, 93, .35) 0 11%, transparent 11.3%),
    linear-gradient(128deg, #102e26, #205645 64%, #2c6652);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  overflow: hidden; position: relative; box-shadow: 0 20px 54px rgba(17, 47, 39, .2);
}
.hero::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: 4%; top: -48%;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255, 255, 255, .035);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { margin-bottom: 13px; max-width: 700px; font-size: clamp(32px, 4vw, 53px); line-height: 1.03; letter-spacing: -.055em; }
.hero .lede { max-width: 670px; margin-bottom: 0; color: rgba(255, 255, 255, .74); font-size: 14px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button-hero-quiet { color: white; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.button-hero-quiet:hover { background: rgba(255, 255, 255, .13); }

.availability-nudge { margin: -4px 0 24px; padding: 14px 16px; border: 1px solid #dce5de; border-radius: 16px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 13px; align-items: center; background: #f7f9f6; }
.availability-nudge-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--green); background: #e7efe8; font-size: 16px; font-weight: 900; }
.availability-nudge-copy { min-width: 0; }
.availability-nudge-copy .eyebrow { margin-bottom: 3px; font-size: 8px; }
.availability-nudge-copy > strong, .availability-nudge-copy > small { display: block; }
.availability-nudge-copy > strong { font-size: 13px; line-height: 1.35; }
.availability-nudge-copy > small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.availability-nudge-actions { display: grid; gap: 5px; justify-items: stretch; }
.availability-nudge-actions .button { min-height: 40px; white-space: nowrap; }
.availability-nudge-actions form { text-align: center; }
.availability-nudge-later { min-height: 30px; padding: 3px 8px; border: 0; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
.availability-nudge-later:hover { color: var(--green); text-decoration: underline; }

[data-calendar-navigation] { transition: opacity 120ms ease; }
.calendar-state-loading { opacity: .72; pointer-events: none; cursor: progress; }
.calendar-state-entering { animation: calendar-state-enter 160ms ease-out; }
@keyframes calendar-state-enter {
  from { opacity: .72; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  [data-calendar-navigation] { transition: none; }
  .calendar-state-entering { animation: none; }
}

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(330px, .75fr); gap: 24px; align-items: start; }
.calendar-panel { padding: 26px; overflow: hidden; }
.calendar-heading { margin-bottom: 22px; }
.month-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: #f2f4f0; }
.month-nav a { min-width: 34px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 700; }
.month-nav a:hover { background: white; }
.roster-filter {
  margin: -7px 0 20px; padding: 13px 14px; border: 1px solid #dfe6df; border-radius: 14px;
  display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 10px; align-items: end;
  background: #f8faf7;
}
.roster-filter .field { gap: 4px; }
.roster-filter select { min-height: 39px; padding-top: 8px; padding-bottom: 8px; background-color: white; }
.roster-filter .button { min-height: 39px; }
.roster-filter > p { margin: 0 2px 11px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.weekday { padding: 10px 6px; color: #7a847e; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.day { min-height: 106px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; overflow: hidden; }
.day-muted { background: #f8f9f6; color: #b3bab5; }
.day-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700; }
.day-today .day-number { color: var(--green); background: var(--lime); }
.day-events { margin-top: 3px; display: grid; gap: 4px; }
.calendar-event { min-width: 0; padding: 5px 6px; border-left: 3px solid var(--green-2); border-radius: 4px 7px 7px 4px; color: #244239; background: #edf4ef; font-size: 9px; line-height: 1.25; }
.calendar-event time { display: block; opacity: .62; font-weight: 700; }
.travel-badge {
  max-width: 100%; margin: 2px 0; padding: 2px 5px; border-radius: 8px;
  display: inline-block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: #174f3a; background: #d9f2e3; font-size: 7px; font-weight: 900;
  letter-spacing: .06em; text-transform: uppercase;
}
.travel-badge-away { color: #87331f; background: #ffd9d0; }
.travel-badge-unclassified { color: #785c17; background: #fbefcb; }
.event-card-classification { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.travel-badge-prominent {
  margin: 0; padding: 4px 8px; border-radius: 999px; flex: 0 0 auto;
  font-size: 9px; letter-spacing: .08em;
  box-shadow: inset 0 0 0 1px rgba(23, 79, 58, .12);
}
.travel-badge-away.travel-badge-prominent { box-shadow: inset 0 0 0 1px rgba(135, 51, 31, .18); }
.calendar-event-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.calendar-event.type-flag_football { color: #763323; border-color: var(--coral); background: #fcece8; }
.calendar-event.type-zwift_ladder { color: #2e5179; border-color: var(--blue); background: #eaf1f8; }
.calendar-event.type-practice { color: #715719; border-color: var(--gold); background: #fcf5e3; }
.mobile-calendar-list { display: none; }
.mobile-calendar-day {
  padding: 15px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 13px; align-items: start;
}
.mobile-date-tile {
  width: 48px; min-height: 56px; border-radius: 13px; display: grid;
  align-content: center; justify-items: center; color: var(--green); background: #edf2ea;
}
.mobile-date-tile span { font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.mobile-date-tile strong { font-family: ui-rounded, system-ui; font-size: 20px; line-height: 1.1; }
.mobile-calendar-day-today .mobile-date-tile { background: var(--lime); }
.mobile-day-events, .mobile-calendar-event-shell { min-width: 0; }
.mobile-day-events { display: grid; gap: 9px; }
.mobile-calendar-event {
  min-width: 0; min-height: 82px; padding: 13px 14px; border-left: 4px solid var(--green-2);
  border-radius: 5px 13px 13px 5px; display: grid; gap: 5px;
  color: #244239; background: #edf4ef;
}
.mobile-calendar-event > strong { display: block; margin: 0; font-size: 14px; line-height: 1.25; }
.mobile-calendar-time { display: flex; flex-wrap: wrap; gap: 2px 9px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.mobile-calendar-time strong { color: #44514a; font-size: inherit; }
.mobile-calendar-location { color: var(--muted); font-size: 10px; line-height: 1.35; }
.mobile-calendar-event.type-flag_football { color: #763323; border-color: var(--coral); background: #fcece8; }
.mobile-calendar-event.type-zwift_ladder { color: #2e5179; border-color: var(--blue); background: #eaf1f8; }
.mobile-calendar-event.type-practice { color: #715719; border-color: var(--gold); background: #fcf5e3; }
.mobile-calendar-event .transport-badges { margin-top: 9px; }

.upcoming-panel { padding: 26px; }
.upcoming-list { margin-top: 18px; display: grid; }
.upcoming-card { margin: 0 -8px; padding: 15px 8px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 13px; align-items: center; border-bottom: 1px solid #edf0eb; border-radius: 12px; }
.upcoming-card:hover { background: #f7f8f4; }
.upcoming-card:last-child { border-bottom: 0; }
.date-tile { width: 46px; height: 54px; border-radius: 12px; display: grid; align-content: center; justify-items: center; color: white; background: var(--green); }
.date-tile span { font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.date-tile strong { font-family: ui-rounded, system-ui; font-size: 19px; line-height: 1.1; }
.event-kind { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.upcoming-copy { min-width: 0; }
.upcoming-copy h3 { margin: 3px 0 3px; font-size: 14px; letter-spacing: -.02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.upcoming-copy p { margin: 0; color: var(--muted); font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-arrow { color: #98a19c; font-size: 22px; }

.completed-events-panel { margin-top: 24px; padding: 26px; box-shadow: none; background: rgba(255,255,255,.72); }
.completed-events-intro { margin: 8px 0 17px; color: var(--muted); font-size: 11px; }
.completed-events-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.completed-event-card { min-width: 0; padding: 13px; border: 1px solid #dde3de; border-radius: 15px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; gap: 11px; align-items: center; color: #54605a; background: #f7f8f5; }
.completed-event-card:hover { border-color: #bdc9c0; background: white; }
.completed-date-tile { width: 42px; height: 48px; color: #66716b; background: #e7ebe7; }
.completed-event-copy { min-width: 0; }
.completed-event-copy .event-kind { color: #78827c; }
.completed-event-copy h3 { margin: 3px 0; overflow: hidden; font-size: 13px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.completed-event-copy p { margin: 0; overflow: hidden; color: #7a847e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.transport-badges {
  width: 100%; margin-top: 10px; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center;
}
.transport-icon {
  width: 14px; height: 14px; flex: 0 0 auto; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.transport-count {
  min-width: 30px; height: 25px; padding: 0 7px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 10px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
}
.transport-count strong { font-family: ui-rounded, system-ui, sans-serif; font-size: 11px; }
.transport-count-covered { color: #176044; background: #d9f2e3; }
.transport-count-needed { color: #9b3f2b; background: #fde1da; }
.ride-state {
  min-width: 0; height: 25px; padding: 0 8px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  overflow: hidden; white-space: nowrap; font-size: 9px; font-weight: 800;
}
.ride-state-label { overflow: hidden; text-overflow: ellipsis; }
.ride-state-complete { color: #174f3a; background: #e5f3d2; }
.ride-state-check {
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  color: white; background: #2b7a58; font-size: 9px; line-height: 1;
}
.ride-state-driver-needed { color: #8f321f; background: #fde0d8; }
.ride-state-assign { color: #6c5214; background: #faedc5; }
.ride-state-pending { color: #58645e; background: #edf0ec; }
.transport-badges-compact { margin-top: 5px; gap: 3px; }
.transport-badges-compact .transport-count { min-width: 25px; height: 20px; padding: 0 5px; border-radius: 10px; gap: 2px; }
.transport-badges-compact .transport-count strong { font-size: 9px; }
.transport-badges-compact .transport-icon { width: 11px; height: 11px; }
.transport-badges-compact .ride-state { width: 22px; min-width: 22px; height: 20px; padding: 0; justify-self: center; }
.transport-badges-compact .ride-state-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.transport-badges-compact .ride-state-check { width: 9px; height: 9px; margin-left: -6px; margin-top: -9px; font-size: 6px; }
.calendar-event-shell { min-width: 0; position: relative; display: grid; }
.calendar-event-shell .calendar-event { min-width: 0; }
.calendar-event.event-rides-complete { box-shadow: inset 0 0 0 2px rgba(43, 122, 88, .28); }
.mobile-calendar-event-shell.event-rides-complete, .upcoming-entry.event-rides-complete { border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(43, 122, 88, .2); }
.mobile-calendar-event-shell > .ride-action-menu, .upcoming-entry > .ride-action-menu { margin: 6px 0 10px; }
.upcoming-entry { border-bottom: 1px solid #edf0eb; }
.upcoming-entry .upcoming-card { border-bottom: 0; }

.ride-action-menu {
  border: 1px solid #dce5de; border-radius: 15px; color: var(--ink); background: white;
  box-shadow: 0 10px 28px rgba(31, 59, 47, .08);
}
.ride-action-menu > summary {
  width: 100%; min-height: 58px; padding: 11px 13px; border: 0; border-radius: inherit;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 10px; align-items: center;
  color: inherit; background: transparent; text-align: left; cursor: pointer; list-style: none;
}
.ride-action-menu > summary::-webkit-details-marker { display: none; }
.ride-action-menu[open] > summary { border-radius: 15px 15px 0 0; border-bottom: 1px solid #e5ebe6; }
.ride-action-menu-needed > summary { color: var(--ride-prompt-ink); background: var(--ride-prompt-surface); }
.ride-action-menu-complete > summary { color: #174f3a; background: #edf7e6; }
.ride-action-summary-icon, .ride-action-row-icon {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: var(--green-2); background: #e8f0ea; position: relative;
}
.ride-action-menu-needed .ride-action-summary-icon { color: #913b27; background: #fde0d8; }
.ride-action-menu-complete .ride-action-summary-icon { color: #1f6749; background: #dcefcf; }
.ride-action-summary-icon .transport-icon, .ride-action-row-icon .transport-icon { width: 19px; height: 19px; }
.ride-action-summary-icon .icon-check {
  width: 13px; height: 13px; border: 2px solid white; border-radius: 50%; position: absolute; right: -2px; bottom: -2px;
  display: grid; place-items: center; color: white; background: #2b7a58; font-size: 7px; font-weight: 900;
}
.ride-action-summary-copy { min-width: 0; display: grid; gap: 2px; }
.ride-action-summary-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.ride-action-summary-copy small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.ride-action-chevron { color: #89958e; font-size: 15px; transition: transform .15s ease; }
.ride-action-menu[open] .ride-action-chevron { transform: rotate(180deg); }
.ride-action-body { padding: 5px 15px 15px; display: grid; gap: 2px; }
.ride-action-group { padding-top: 12px; }
.ride-action-group + .ride-action-group { margin-top: 6px; border-top: 1px solid #e8ece8; }
.ride-action-label { margin: 0 0 5px; color: #738078; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ride-action-row {
  min-width: 0; padding: 9px 0; display: grid; grid-template-columns: 34px minmax(110px, 1fr) auto;
  gap: 9px; align-items: center;
}
.ride-action-row-copy { min-width: 0; display: grid; gap: 3px; }
.ride-action-row-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.ride-action-row-copy small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.ride-action-button, .ride-action-edit {
  min-height: 34px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 9px; font-weight: 850; cursor: pointer;
}
.ride-action-button .transport-icon { width: 15px; height: 15px; }
.ride-action-button-request { color: white; background: #a04731; }
.ride-action-button-request:hover { background: #873723; }
.ride-action-button-drive { color: white; background: var(--green); }
.ride-action-button-drive:hover { background: #205044; }
.ride-action-edit { color: var(--green-2); border-color: #d2ddd5; background: white; }
.ride-action-edit:hover { border-color: #aabeb0; background: #f6f8f5; }
.ride-action-explain { margin: 4px 0 0 43px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.ride-driver-row .driver-quick-form { grid-column: 2 / -1; width: 100%; }
.ride-driver-row .driver-offer-withdraw-form { grid-column: 2 / -1; justify-self: start; }
.driver-quick-form { display: grid; grid-template-columns: 96px minmax(240px, 1fr) auto; gap: 8px; align-items: end; }
.driver-quick-form label { display: grid; gap: 3px; color: var(--muted); font-size: 7px; font-weight: 800; }
.driver-quick-form label em { font-style: normal; font-weight: 600; }
.driver-quick-form input { min-height: 34px; padding: 6px 8px; border-radius: 9px; font-size: 12px; }
.driver-quick-details { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.driver-offer-withdraw-form .ride-action-edit { color: #91442f; }
.ride-action-menu-compact { width: 24px; border: 0; border-radius: 9px; position: absolute; top: 3px; right: 3px; box-shadow: none; background: transparent; }
.ride-action-menu-compact > summary { min-height: 24px; width: 24px; padding: 0; display: grid; grid-template-columns: 1fr; border: 1px solid rgba(255,255,255,.75); border-radius: 8px; box-shadow: 0 2px 7px rgba(29, 49, 40, .15); background: rgba(255,255,255,.92); }
.ride-action-menu-compact .ride-action-summary-icon { width: 22px; height: 22px; border-radius: 7px; background: transparent; }
.ride-action-menu-compact .ride-action-summary-icon .transport-icon { width: 14px; height: 14px; }
.ride-action-menu-compact .ride-action-summary-copy, .ride-action-menu-compact .ride-action-chevron { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ride-action-open-label, .ride-action-close-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ride-action-close-label { display: none; }
.ride-action-menu-compact[open] .ride-action-open-label { display: none; }
.ride-action-menu-compact[open] .ride-action-close-label { display: block; }
.ride-action-menu-compact .icon-check { width: 9px; height: 9px; border-width: 1px; right: -1px; bottom: -1px; font-size: 5px; }
.ride-action-menu-compact[open] > summary { width: 40px; height: 40px; min-height: 40px; position: fixed; top: 28px; right: 28px; z-index: 102; border: 0; border-radius: 12px; color: #526159; background: #edf1ed; box-shadow: 0 4px 18px rgba(15, 38, 29, .2); }
.ride-action-menu-compact[open] > summary .ride-action-summary-icon { display: none; }
.ride-action-menu-compact[open] > summary::after { content: "×"; display: grid; place-items: center; font-size: 24px; line-height: 1; }
.ride-action-dialog-backdrop { padding: 20px 14px; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(17, 37, 29, .5); backdrop-filter: blur(3px); }
.ride-action-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 40px)); overflow: hidden; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(15, 38, 29, .32); }
.ride-action-dialog-heading { padding: 19px 20px 15px; border-bottom: 1px solid #e5ebe6; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ride-action-dialog-heading h2 { margin-top: 3px; font-size: 20px; }
.ride-action-dialog .ride-action-body { padding: 8px 20px 20px; overflow-y: auto; }
.event-ride-actions { margin: -6px 0 22px; }
.event-ride-actions .ride-action-menu { box-shadow: var(--shadow); }
.family-driving-note { margin: 11px 0 0 46px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.empty-state { padding: 45px 20px 24px; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 12px 0 7px; color: var(--ink); font-size: 17px; }
.empty-state p { margin-bottom: 20px; font-size: 13px; line-height: 1.5; }
.empty-state.compact { padding: 25px; }
.empty-state.compact p { margin: 0; }
.empty-icon { width: 48px; height: 48px; margin: auto; border-radius: 16px; display: grid; place-items: center; color: var(--green); background: #edf2ea; font-family: ui-rounded, system-ui; font-size: 24px; font-weight: 800; }

.back-link { display: inline-flex; margin-bottom: 22px; color: var(--green-2); font-size: 13px; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.event-timeline { margin-bottom: 24px; border: 1px solid #dce5de; border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); overflow: hidden; background: white; box-shadow: 0 10px 28px rgba(20, 54, 44, .08); }
.event-timeline-step { min-width: 0; min-height: 86px; padding: 14px 17px; display: flex; flex-direction: column; justify-content: center; color: var(--ink); transition: background .15s ease; }
.event-timeline-step:hover { background: #f1f6f2; }
.event-timeline-step > span { margin-bottom: 5px; color: var(--green-2); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.event-timeline-step > strong, .event-timeline-step > small { width: 100%; max-width: 100%; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-timeline-step > strong { font-size: 13px; }
.event-timeline-step > small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.event-timeline-next { text-align: right; align-items: flex-end; }
.event-timeline-step.is-disabled { color: #7f8b85; background: #fafbfa; opacity: .72; }
.event-timeline-step.is-disabled:hover { background: #fafbfa; }
.event-timeline-context { min-width: 150px; padding: 13px 20px; border-right: 1px solid #e4eae5; border-left: 1px solid #e4eae5; display: grid; place-content: center; text-align: center; background: #f7f9f6; }
.event-timeline-context > span, .event-timeline-context > strong, .event-timeline-context > small { display: block; }
.event-timeline-context > span { max-width: 190px; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.event-timeline-context > strong { margin: 3px 0; color: var(--green); font-size: 14px; }
.event-timeline-context > small { color: var(--muted); font-size: 8px; }
.form-page { max-width: 900px; margin: 0 auto; }
.form-heading { margin-bottom: 28px; }
.form-heading h1 { margin-bottom: 8px; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.055em; }
.form-heading > p:last-child { color: var(--muted); }
.event-form { padding: 30px; border: 1px solid rgba(37, 62, 50, .09); border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: white; box-shadow: var(--shadow); }
.field, .field label { min-width: 0; }
.field { display: grid; align-content: start; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label, .availability-options legend { font-size: 12px; font-weight: 800; color: #34443c; }
.field label span { color: #929b96; font-weight: 500; }
.field small { color: var(--muted); font-size: 10px; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; border: 1px solid #ced7d0; border-radius: 11px; padding: 11px 13px; color: var(--ink); background: #fbfcfa; outline: none; transition: .15s ease; }
select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type="file"] { max-width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(36, 91, 72, .12); background: white; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 5px; }
.inline-place-disclosure { position: relative; border: 1px solid #d7e1da; border-radius: 15px; background: #f6f9f6; overflow: hidden; }
.inline-place-disclosure > summary { min-height: 56px; padding: 13px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px; cursor: pointer; list-style: none; }
.inline-place-disclosure > summary::-webkit-details-marker { display: none; }
.inline-place-disclosure > summary::after { content: "+"; position: absolute; right: 17px; top: 16px; color: var(--green-2); font-size: 22px; line-height: 1; }
.inline-place-disclosure[open] > summary::after { content: "−"; }
.inline-place-disclosure > summary span { color: var(--green); font-size: 13px; font-weight: 850; }
.inline-place-disclosure > summary small { padding-right: 30px; color: var(--muted); font-size: 10px; }
.inline-place-fields { padding: 18px; border-top: 1px solid #d7e1da; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: white; }
.inline-place-actions { display: flex; align-items: center; gap: 14px; }
.inline-place-status { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.inline-place-status[data-kind="success"] { color: #27633f; font-weight: 750; }
.inline-place-status[data-kind="error"] { color: #9e2d25; font-weight: 750; }
.inline-place-google { padding: 16px; border: 1px solid #dce6df; border-radius: 14px; background: #f8faf8; }
.inline-place-google-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.inline-place-google-heading h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.02em; }
.inline-place-google-heading > small { max-width: 220px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.inline-place-search-form { margin-top: 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.inline-place-search-status { min-height: 17px; margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.inline-place-search-status[data-kind="success"] { color: #27633f; font-weight: 750; }
.inline-place-search-status[data-kind="error"] { color: #9e2d25; font-weight: 750; }
.inline-place-search-results { margin-top: 10px; display: grid; gap: 9px; }
.inline-place-result-card { padding: 13px; border: 1px solid #dce4de; border-radius: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: white; }
.inline-place-result-card strong { display: block; font-size: 13px; }
.inline-place-result-card p { margin: 4px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.inline-place-result-card a { color: var(--green-2); font-size: 10px; font-weight: 750; }
.inline-place-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inline-place-divider::before, .inline-place-divider::after { height: 1px; flex: 1; background: #e1e7e2; content: ""; }
.feedback-form { grid-template-columns: 1fr; }
.feedback-type-options { margin: 0; padding: 0; border: 0; }
.feedback-type-options legend { margin-bottom: 9px; color: #34443c; font-size: 12px; font-weight: 800; }
.feedback-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-type-choice {
  position: relative; min-height: 88px; padding: 15px 16px 15px 58px; border: 1px solid #ced7d0; border-radius: 15px;
  display: grid; align-content: center; gap: 3px; background: #fbfcfa; cursor: pointer; transition: .15s ease;
}
.feedback-type-choice:hover { border-color: #9bb4a5; background: white; }
.feedback-type-choice:has(input:focus-visible) { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(36, 91, 72, .12); }
.feedback-type-choice:has(input:checked) { border-color: var(--green-2); background: #f0f7f2; }
.feedback-type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-type-choice > span {
  position: absolute; left: 16px; top: 50%; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  color: var(--green); background: #e5eee7; font-family: ui-rounded, system-ui; font-size: 18px; font-weight: 900; transform: translateY(-50%);
}
.feedback-type-choice strong { font-size: 13px; }
.feedback-type-choice small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.feedback-submission-context { padding: 12px 14px; border-radius: 14px; display: flex; align-items: center; gap: 11px; background: #f4f6f2; }
.feedback-submission-context > span:last-child { min-width: 0; }
.feedback-submission-context strong, .feedback-submission-context small { display: block; overflow: hidden; text-overflow: ellipsis; }
.feedback-submission-context strong { font-size: 12px; }
.feedback-submission-context small { margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; }

.event-hero { min-height: 230px; margin-bottom: 24px; padding: 30px 32px 30px 38px; border-radius: 26px; display: flex; align-items: stretch; justify-content: space-between; gap: 28px; color: white; background: linear-gradient(130deg, #173c32, #2b6653); box-shadow: 0 18px 45px rgba(20, 54, 44, .19); }
.event-hero.type-flag_football { background: linear-gradient(130deg, #663023, #bd5d45); }
.event-hero.type-zwift_ladder { background: linear-gradient(130deg, #1c3d5e, #5287bd); }
.event-hero.type-practice { background: linear-gradient(130deg, #5c491b, #bd8d32); }
.event-hero-main { min-width: 0; flex: 1 1 auto; align-self: flex-end; }
.event-hero .event-kind { color: rgba(255,255,255,.7); }
.event-hero h1 { max-width: 840px; margin: 5px 0 18px; font-size: clamp(34px, 5vw, 55px); line-height: 1.02; letter-spacing: -.055em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255,255,255,.76); font-size: 12px; }
.event-meta span { position: relative; }
.event-meta span + span::before { content: "·"; position: absolute; left: -11px; }
.event-hero-side { width: min(460px, 42vw); flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: end; }
.event-hero-fact { min-width: 0; min-height: 91px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.19); border-radius: 16px; color: white; background: rgba(20, 25, 24, .16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
a.event-hero-fact { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
a.event-hero-fact:hover { border-color: rgba(255,255,255,.34); background: rgba(20,25,24,.24); transform: translateY(-1px); }
.event-hero-fact-label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.68); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.event-hero-rides { grid-column: span 1; }
.event-hero-ride-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.event-hero-ride-count { min-width: 0; padding: 6px 7px; border-radius: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 5px; align-items: center; background: rgba(255,255,255,.92); }
.event-hero-ride-count .transport-icon { width: 15px; height: 15px; grid-row: 1 / 3; }
.event-hero-ride-count strong { font-family: ui-rounded, system-ui, sans-serif; font-size: 17px; line-height: 1; }
.event-hero-ride-count small { overflow: hidden; font-size: 7px; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.event-hero-ride-covered { color: #176044; }
.event-hero-ride-needed { color: #9b3f2b; }
.event-hero-ride-state { margin-top: 8px; display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.78); font-size: 8px; font-weight: 800; line-height: 1.25; }
.event-hero-ride-state .transport-icon { width: 13px; height: 13px; }
.event-hero-location { display: block; }
.event-hero-location strong, .event-hero-location small { display: block; overflow: hidden; text-overflow: ellipsis; }
.event-hero-location strong { font-size: 12px; line-height: 1.25; }
.event-hero-location small { margin-top: 5px; color: rgba(255,255,255,.7); font-size: 8px; line-height: 1.35; }
.event-hero-edit { grid-column: 1 / -1; justify-self: end; min-height: 38px; }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.event-main { display: grid; gap: 24px; }
.event-main .panel, .event-sidebar .panel { padding: 28px; }
.response-form { margin-top: 24px; display: grid; gap: 20px; }
.availability-options { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.availability-options legend { margin-bottom: 9px; }
.availability-choice { position: relative; }
.availability-choice input { position: absolute; opacity: 0; pointer-events: none; }
.availability-choice span { min-height: 44px; padding: 10px; border: 1px solid #d2dad4; border-radius: 11px; display: grid; place-items: center; color: var(--muted); background: #fbfcfa; font-size: 12px; font-weight: 700; cursor: pointer; }
.availability-choice input:checked + span { color: var(--green); background: #e9f4ed; border-color: #69a383; box-shadow: inset 0 0 0 1px #69a383; }
.availability-choice input:focus-visible + span { outline: 3px solid rgba(36, 91, 72, .2); }
.carpool-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carpool-fields-attendance-only { grid-template-columns: minmax(0, 1fr); }
.driver-flow-note {
  margin: 18px 0 0; padding: 12px 14px; border: 1px solid #d7ddd7;
  border-radius: 11px; color: #4f5c55; background: #f6f8f5;
  font-size: 12px; line-height: 1.5;
}
.driver-flow-note strong { color: var(--green); }
.driver-flow-closed-panel { border-left: 5px solid var(--green-2); }
.driver-flow-closed-panel h2 { margin-bottom: 9px; font-size: 22px; }
.driver-flow-closed-panel p:not(.eyebrow) { max-width: 660px; color: var(--muted); line-height: 1.6; }
.details-panel h2, .roster-panel h2 { margin-bottom: 12px; font-size: 22px; }
.preserve-lines { margin: 0; color: #4e5a54; line-height: 1.7; white-space: pre-wrap; }
.roster { margin-top: 18px; }
.roster-row { padding: 14px 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border-top: 1px solid #edf0ec; }
.roster-person { min-width: 0; }
.roster-person strong { display: block; font-size: 13px; }
.roster-person p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.roster-carpool { display: flex; gap: 5px; }
.roster-carpool span { padding: 4px 7px; border-radius: 6px; color: #54615a; background: #f0f3ef; font-size: 9px; font-weight: 700; }
.status { padding: 5px 9px; border-radius: 12px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-available { color: #1f6b4d; background: #dff3e7; }
.status-maybe { color: #785c17; background: #fbefcb; }
.status-unavailable { color: #834230; background: #fae7e1; }
.transport-status { text-transform: none; }
.transport-status-needs_ride { color: #8f321f; background: #fde0d8; }
.transport-status-has_ride, .transport-status-driving { color: #1f6b4d; background: #dff3e7; }
.transport-status-unknown { color: #59645f; background: #edf0ec; }
.event-sidebar { display: grid; gap: 14px; }
.capacity-panel .eyebrow { margin-bottom: 18px; }
.metric-primary { display: flex; align-items: baseline; gap: 9px; padding-bottom: 18px; border-bottom: 1px solid #e9ede9; }
.metric-primary strong { font-family: ui-rounded, system-ui; color: var(--green); font-size: 52px; line-height: .9; letter-spacing: -.06em; }
.metric-primary span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-grid { padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.metric-grid div { display: grid; gap: 2px; }
.metric-grid strong { font-family: ui-rounded, system-ui; font-size: 20px; }
.metric-grid span { color: var(--muted); font-size: 10px; }
.capacity-bar { height: 7px; margin: 2px 0 8px; border-radius: 4px; overflow: hidden; background: #e8ede9; }
.capacity-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.capacity-panel small { color: var(--muted); font-size: 9px; }
.delete-disclosure { text-align: center; color: #a64630; font-size: 11px; }
.delete-disclosure summary { padding: 8px; font-weight: 700; cursor: pointer; list-style-position: inside; }
.delete-disclosure p { margin: 5px 0; color: var(--muted); font-size: 10px; }
.danger-link { width: 100%; padding: 8px; border: 1px solid #efc4ba; border-radius: 9px; color: #a64630; background: #fff6f3; font-size: 11px; font-weight: 700; cursor: pointer; }
.danger-link:hover { text-decoration: underline; }

.login-card, .error-card { max-width: 470px; margin: 7vh auto; padding: 38px; }
.login-card h1, .error-card h1 { margin-bottom: 10px; font-size: 30px; letter-spacing: -.045em; }
.login-card > p:not(.eyebrow), .error-card p { color: var(--muted); line-height: 1.55; }
.login-card .login-action { margin-top: 24px; }
.login-card form, .error-card form { margin-top: 24px; display: grid; gap: 20px; }
.error-card { text-align: center; }
.error-card .empty-icon { margin-bottom: 18px; }

.users-panel { margin-bottom: 22px; padding: 28px; }
.users-panel > .section-intro { margin: 10px 0 18px; }
.account-access-overview {
  margin-bottom: 20px; padding: 17px 19px; border: 1px solid #cfe0d5; border-radius: 17px;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 13px; align-items: center;
  color: #274b3f; background: #f1f8f3;
}
.account-access-overview-attention { border-color: #dfc77e; color: #594510; background: #fffaf0; }
.account-access-overview-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: white; background: var(--green-2); font-weight: 900; }
.account-access-overview-attention .account-access-overview-icon { color: #654e10; background: #f2df9e; }
.account-access-overview div { min-width: 0; display: grid; gap: 3px; }
.account-access-overview strong { font-size: 13px; }
.account-access-overview small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-invite-panel, .invitation-history-panel { margin-bottom: 20px; padding: 24px 28px; }
.admin-invite-panel > .section-intro { margin: 8px 0 18px; }
.admin-invite-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.admin-invite-form .field { margin: 0; }
.created-invitation { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #b8d9c9; border-radius: var(--radius-small); background: #f0faf5; }
.created-invitation div { display: grid; gap: 3px; }
.created-invitation small, .invitation-row small { color: var(--muted); font-size: 10px; }
.created-invitation details { grid-column: 1 / -1; }
.copy-link-row input { width: 100%; margin-top: 8px; font-size: 11px; }
.invitation-list { display: grid; }
.invitation-row { min-height: 70px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; border-top: 1px solid var(--line); }
.invitation-row > div { min-width: 0; display: grid; gap: 4px; }
.request-status-expired, .request-status-revoked { color: #695f56; background: #eeeae5; }
.user-row {
  min-height: 78px; padding: 15px 0; display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 14px;
  align-items: center; border-bottom: 1px solid #edf0ec;
}
.user-row:last-child { border-bottom: 0; }
.user-row-copy { min-width: 0; display: grid; gap: 3px; }
.user-row-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.user-row-copy span, .user-row time { color: var(--muted); font-size: 10px; }
.role-badge {
  padding: 5px 9px; border-radius: 12px; color: #37564a; background: #e8f0eb;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.role-badge.role-admin { color: #604a11; background: #f8edc9; }
.role-badge.role-super-admin { color: white; background: #9f171b; }
.role-badge.role-pending { color: #735a16; background: #f8edc9; }
.user-row-access-pending { margin: 0 -13px; padding-right: 13px; padding-left: 13px; border-radius: 14px; background: #fffdf5; }
.user-access-actions { grid-column: 2 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.user-access-actions small { max-width: 260px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.user-access-actions .button { min-height: 38px; }
.user-role-form {
  grid-column: 2 / -1; display: grid; grid-template-columns: minmax(130px, 190px) auto;
  justify-content: end; gap: 8px; align-items: center;
}
.user-role-form select { min-height: 38px; padding: 7px 10px; font-size: 11px; }
.user-role-form .button { min-height: 38px; padding: 7px 12px; font-size: 11px; }

.admin-page { max-width: 1180px; margin: 0 auto; }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.admin-heading .form-heading { margin-bottom: 24px; }
.admin-role-badge {
  flex: 0 0 auto; margin-top: 8px; padding: 8px 11px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 6px; color: #315044; background: #e6efe8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 800;
}
.admin-role-badge > span {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  color: white; background: var(--green-2); font-family: inherit; font-size: 10px;
}
.admin-actions { margin-bottom: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-action {
  min-height: 104px; padding: 20px; border: 1px solid rgba(37, 62, 50, .1); border-radius: 19px;
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: center;
  background: white; box-shadow: 0 10px 30px rgba(27, 43, 34, .06); transition: .18s ease;
}
.admin-action:hover { border-color: #adc0b4; transform: translateY(-2px); box-shadow: var(--shadow); }
.admin-action-attention { border-color: #dfc77e; background: #fffdf5; }
.admin-action-primary { color: white; border-color: transparent; background: var(--green); }
.admin-action-primary:hover { border-color: transparent; background: #205044; }
.admin-action-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: var(--green); background: #edf2ea; font-family: ui-rounded, system-ui; font-size: 21px; font-weight: 800;
}
.admin-action-primary .admin-action-icon { color: var(--green); background: var(--lime); }
.admin-action-copy { min-width: 0; }
.admin-action strong, .admin-action small { display: block; }
.admin-action-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.admin-action-title strong { min-width: 0; }
.admin-action-badge {
  flex: 0 0 auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center; color: #735a16; background: #f2df9e;
  font-size: 10px; font-weight: 900;
}
.admin-action-badge-new { color: white; background: #b74232; }
.admin-action strong { margin-bottom: 5px; font-size: 14px; }
.admin-action small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-action-primary small { color: rgba(255,255,255,.68); }
.feedback-inbox-panel { margin-bottom: 24px; padding: 28px; scroll-margin-top: 20px; }
.feedback-inbox-panel > .section-intro { max-width: 700px; margin: 8px 0 20px; }
.feedback-inbox-list { display: grid; gap: 14px; }
.feedback-card { position: relative; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcfa; }
.feedback-card-new { border-left: 4px solid #c85e49; }
.feedback-card-resolved { opacity: .78; }
.feedback-card-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.feedback-card-heading time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.feedback-card-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.request-status-new { color: #8c321f; background: #fde7e1; }
.request-status-resolved { color: #1f6047; background: #dff1e6; }
.feedback-type-badge { padding: 6px 9px; border-radius: 999px; color: #34443c; background: #e9efea; font-size: 9px; font-weight: 850; }
.feedback-type-bug { color: #80311f; background: #f8e7e1; }
.feedback-type-improvement { color: #385b22; background: #edf4df; }
.feedback-card h3 { margin: 14px 0 7px; font-size: 18px; line-height: 1.25; }
.feedback-details { margin: 0; color: #4f5c55; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-card-meta { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feedback-card-meta > span { min-width: 0; padding: 10px 12px; border-radius: 11px; background: #f0f3ee; }
.feedback-card-meta strong, .feedback-card-meta small { display: block; overflow: hidden; text-overflow: ellipsis; }
.feedback-card-meta strong { margin-bottom: 3px; color: var(--muted); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.feedback-card-meta small { font-size: 10px; white-space: nowrap; }
.feedback-card-meta a { color: var(--green-2); font-weight: 800; }
.feedback-resolution { margin: 13px 0 0; color: var(--muted); font-size: 9px; }
.feedback-status-form { margin-top: 15px; display: flex; justify-content: flex-end; }
.feedback-status-form .button { min-height: 38px; padding: 8px 13px; font-size: 10px; }
.feedback-delete-disclosure { margin-top: 10px; text-align: right; }
.feedback-delete-disclosure summary { color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; }
.feedback-delete-disclosure p { margin: 8px 0; color: var(--muted); font-size: 10px; }
.feedback-delete-disclosure form { display: flex; justify-content: flex-end; }

.family-page { max-width: 940px; }
.access-state-card {
  margin-bottom: 22px; padding: 24px; display: grid;
  grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start;
  border-color: #d9dfb1; background: #fbfce9;
}
.access-state-icon {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  color: var(--green); background: var(--lime); font-size: 20px; font-weight: 900;
}
.access-state-card h2 { margin-bottom: 8px; font-size: 22px; }
.access-state-card p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.family-links-panel, .family-request-panel, .request-history-panel, .approval-panel { margin-bottom: 22px; padding: 28px; }
.approval-panel > .section-intro { margin: 10px 0 18px; }
.approval-panel > .section-intro + .approval-list { margin-top: 0; }
.family-association-header { max-width: 700px; margin-bottom: 24px; }
.family-association-header .eyebrow { margin-bottom: 9px; }
.family-association-header h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.family-association-intro { max-width: 660px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.family-request-panel > .family-request-form { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.family-link-list, .request-history-list, .approval-list, .family-admin-link-list { margin-top: 18px; display: grid; gap: 14px; }
.family-link-card, .approval-card {
  padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcfa;
}
.family-link-heading, .approval-heading {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center;
}
.family-link-heading strong, .family-link-heading small, .approval-heading strong, .approval-heading small { display: block; }
.family-link-heading small, .approval-heading small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.family-contact-summary, .approval-details {
  margin: 17px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.family-contact-summary div, .approval-details div { min-width: 0; padding: 12px; border-radius: 12px; background: #f0f3ee; }
.family-contact-summary dt, .approval-details dt { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.family-contact-summary dd, .approval-details dd { margin: 0; font-size: 12px; line-height: 1.45; }
.family-contact-phone { color: var(--green-2); font-size: 15px !important; font-weight: 800; }
.trusted-contact-disclosure { margin-top: 17px; border-top: 1px solid var(--line); }
.trusted-contact-disclosure > summary { min-height: 48px; display: flex; align-items: center; color: var(--green-2); font-size: 12px; font-weight: 800; cursor: pointer; }
.trusted-contact-disclosure > p, .section-intro { color: var(--muted); font-size: 12px; line-height: 1.55; }
.family-request-form, .approval-form {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.family-request-form .button.field-wide { width: 100%; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.review-waiting { margin-top: 18px; padding: 20px; border-radius: 15px; color: #4d501c; background: #f4f3d4; }
.review-waiting strong { display: block; margin-bottom: 5px; }
.review-waiting p { margin: 0; font-size: 12px; line-height: 1.5; }
.request-history-row, .family-admin-link-row {
  min-height: 62px; padding: 12px 0; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  border-bottom: 1px solid #edf0ec;
}
.request-history-row:last-child, .family-admin-link-row:last-child { border-bottom: 0; }
.request-history-row strong, .request-history-row small, .family-admin-link-row strong, .family-admin-link-row small { display: block; }
.request-history-row small, .family-admin-link-row small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.request-status { padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.request-status-pending { color: #735a16; background: #f8edc9; }
.request-status-approved { color: #1f6047; background: #dff1e6; }
.request-status-accepted { color: #1f6047; background: #dff1e6; }
.request-status-rejected { color: #8c321f; background: #fde7e1; }
.approval-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.request-kind { padding: 6px 9px; border-radius: 999px; color: #315044; background: #e6efe8; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.request-kind-new-member { color: #5c4710; background: #f5e3a9; }
.request-kind-pickup-contact { color: #31558a; background: #e5eef9; }
.approval-card { background: white; }
.approval-details { grid-template-columns: 1fr 1fr; }
.approval-form { padding-top: 18px; border-top: 1px solid var(--line); }
.reject-form { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.family-admin-link-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 24px; align-items: start; }
.admin-section { padding: 28px; }
.admin-event-list, .admin-roster-list { margin-top: 18px; display: grid; }
.admin-event-row {
  min-height: 82px; padding: 12px 0; border-bottom: 1px solid #edf0ec;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
}
.admin-event-row:last-child, .admin-roster-row:last-child { border-bottom: 0; }
.admin-event-main { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; align-items: center; }
.admin-row-copy { min-width: 0; display: block; }
.admin-row-copy > strong, .admin-row-copy > small { display: block; overflow: hidden; text-overflow: ellipsis; }
.admin-row-copy > strong { margin: 3px 0 4px; font-size: 14px; white-space: nowrap; }
.admin-row-copy > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.admin-row-action { min-height: 38px; padding: 8px 13px; }
.admin-roster-row {
  min-height: 68px; padding: 12px 2px; border-bottom: 1px solid #edf0ec;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 12px; align-items: center;
}
.admin-roster-row:hover .admin-row-copy > strong { color: var(--green-2); }
.admin-roster-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  color: var(--green); background: #edf2ea; font-family: ui-rounded, system-ui; font-size: 15px; font-weight: 800;
}
.admin-create-roster { margin-top: 18px; border-top: 1px solid var(--line); }
.admin-create-roster > summary {
  min-height: 50px; display: flex; align-items: center; justify-content: center;
  color: var(--green-2); font-size: 12px; font-weight: 800; cursor: pointer;
}
.admin-create-roster > summary:hover { text-decoration: underline; }
.admin-create-roster .stack-form { padding: 4px 0 8px; }

.context-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 24px; align-items: start; }
.context-list-panel, .context-create-panel, .context-section { padding: 28px; }
.context-list { margin-top: 18px; display: grid; }
.context-group-heading {
  margin: 18px 5px 3px; color: var(--muted); font-size: 9px; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
}
.context-group-heading:first-child { margin-top: 0; }
.context-card { padding: 17px 5px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid #edf0ec; }
.context-card-retired { opacity: .7; }
.context-card:hover { color: var(--green-2); }
.context-card strong { display: block; margin-bottom: 4px; font-size: 15px; }
.context-card p { margin: 0; color: var(--muted); font-size: 11px; }
.context-card > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.context-create-panel h2 { margin-bottom: 20px; }
.season-badge {
  margin-left: 5px; padding: 3px 6px; border-radius: 999px; display: inline-block;
  vertical-align: .15em; color: #1f6047; background: #dff1e6; font-family: Inter, sans-serif;
  font-size: 8px; font-weight: 900; letter-spacing: .07em; line-height: 1; text-transform: uppercase;
}
.season-badge-retired { color: #5e6762; background: #e6e9e5; }
.roster-lifecycle-panel {
  margin-bottom: 24px; padding: 22px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.roster-lifecycle-panel h2 { margin-bottom: 6px; font-size: 19px; }
.roster-lifecycle-panel p { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.roster-retire-action { flex: 0 0 auto; }
.roster-retire-action > summary {
  min-height: 42px; padding: 10px 14px; border: 1px solid #e5b7ad; border-radius: 11px;
  display: flex; align-items: center; color: #8c321f; font-size: 12px; font-weight: 800; cursor: pointer;
}
.roster-retire-action form { width: min(330px, 76vw); margin-top: 9px; padding: 14px; border: 1px solid #ead5cf; border-radius: 12px; background: #fff8f5; }
.roster-retire-action form p { margin-bottom: 10px; color: #704c43; }
.stack-form { display: grid; gap: 18px; }
.context-detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 24px; align-items: start; }
.context-detail-roster-only { grid-template-columns: minmax(0, 1fr); }
.context-section .panel-heading { margin-bottom: 20px; }
.section-intro { margin: -8px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.editable-list { display: grid; }
.editable-row { border-top: 1px solid #edf0ec; }
.editable-row[data-inactive="true"] { opacity: .58; }
.editable-row summary { min-height: 66px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.editable-row summary::-webkit-details-marker { display: none; }
.editable-row summary strong, .editable-row summary small { display: block; }
.editable-row summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.player-number { color: var(--green-2); font-size: .8em; white-space: nowrap; }
.roster-car-thumb { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; border: 1px solid #d9e1da; }
.player-editor { padding: 0 0 20px; }
.player-edit-form { margin-bottom: 18px; }
.player-contacts { padding: 18px; border: 1px solid #dde5de; border-radius: 16px; background: #fbfcfa; }
.subsection-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.subsection-heading h3, .add-form-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.contact-list { display: grid; }
.contact-edit-row { border-top: 1px solid #e5eae6; }
.contact-edit-row[data-inactive="true"] { opacity: .58; }
.contact-edit-row summary {
  min-height: 62px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px; align-items: center; cursor: pointer; list-style: none;
}
.contact-edit-row summary::-webkit-details-marker { display: none; }
.contact-edit-row summary strong, .contact-edit-row summary small { display: block; }
.contact-edit-row summary small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.contact-summary-phone { display: block; margin-top: 5px; color: var(--green-2); font-size: 14px; font-weight: 800; line-height: 1.2; }
.contact-summary-email { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.3; }
.contact-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--green); background: #e8efe9; font-size: 12px; font-weight: 800; }
.contact-edit-form { margin-bottom: 10px; }
.add-contact-disclosure { margin-top: 12px; }
.add-contact-disclosure > summary {
  min-height: 44px; padding: 10px 13px; border: 1px dashed #bfcac2; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; color: var(--green-2);
  background: white; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none;
}
.add-contact-disclosure > summary::-webkit-details-marker { display: none; }
.contact-add-form { margin-top: 10px; }
.add-form-heading { margin: 24px 0 -8px; }
.place-pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: #edf2ea; font-size: 19px; }
.inline-edit-form, .add-row-form { padding: 18px; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #f5f7f3; }
.add-row-form { margin-top: 20px; border: 1px solid #e1e7e1; }
.inline-edit-form .button, .add-row-form .button { justify-self: start; }
.check-field { display: flex; align-items: center; gap: 8px; color: #34443c; font-size: 11px; font-weight: 700; }
.check-field input, .proxy-check input, .consent-check input { width: auto; }
.vehicle-photo-field small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.vehicle-photo-field input[type="file"] { padding: 8px; font-size: 10px; }
.driver-profile-link { align-self: center; color: var(--green-2); font-size: 11px; font-weight: 800; }
.driver-profile-link:hover { text-decoration: underline; }
.roster-membership-action { margin: -8px 0 18px; border: 1px solid #ead8d3; border-radius: 12px; }
.roster-membership-action > summary { min-height: 42px; padding: 9px 13px; display: flex; align-items: center; justify-content: center; color: #8f4636; font-size: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.roster-membership-action > summary::-webkit-details-marker { display: none; }
.roster-membership-action form { padding: 13px; border-top: 1px solid #ead8d3; text-align: center; }
.roster-membership-action p { margin-bottom: 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.roster-reactivate-form { margin: -8px 0 18px; }

.roster-coordination-panel, .driver-availability-panel, .ride-assignment-panel { padding: 28px; }
.attendance-list { margin-top: 18px; display: grid; }
.attendance-row { padding: 16px 0; border-top: 1px solid #edf0ec; display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: 16px; align-items: start; }
.attendance-person { min-width: 0; display: flex; align-items: center; gap: 11px; color: inherit; border-radius: 10px; }
.attendance-person:hover .attendance-person-copy strong { color: var(--green-2); text-decoration: underline; }
.attendance-car-thumb { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; overflow: hidden; border: 1px solid #d8e0da; }
.attendance-car-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.attendance-person strong, .attendance-person small { display: block; }
.attendance-person small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.attendance-person-copy { min-width: 0; }
.linked-player-name { display: inline-block; padding: 2px 5px; margin: -3px -6px; border: 1px solid #b8cbc0; border-radius: 5px; background: rgba(232, 240, 234, .28); box-shadow: 0 0 0 2px rgba(36, 91, 72, .035); }
.roster-parent-preview { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.roster-parent-label { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; }
.roster-parent-chip { max-width: 100%; padding: 4px 7px; border-radius: 999px; overflow: hidden; color: #264d43; background: #e8eee9; font-size: 9px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.roster-parent-chip span { color: #607069; font-weight: 700; }
.roster-parent-empty { color: var(--muted); font-size: 9px; line-height: 1.25; }
.roster-phone-links { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.phone-link { display: block; width: fit-content; margin-top: 6px; color: var(--green-2); font-size: 15px; font-weight: 800; line-height: 1.25; }
.email-link { display: block; width: fit-content; margin-top: 4px; overflow-wrap: anywhere; color: var(--green-2); font-size: 12px; font-weight: 700; line-height: 1.3; }
.phone-link:hover, .email-link:hover { text-decoration: underline; }
.attendance-editor { min-width: 0; display: grid; gap: 10px; }
.attendance-edit-toggle, .attendance-edit-summary { display: none; }
.attendance-edit-body { min-width: 0; }
.attendance-form { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.attendance-form select, .attendance-form input { padding: 8px 9px; font-size: 11px; }
.attendance-form .attendance-note { grid-column: 1; }
.attendance-form .proxy-check { grid-column: 2; }
.attendance-form .button { min-width: 80px; min-height: 36px; padding: 7px 11px; grid-column: 3; justify-self: stretch; white-space: nowrap; }
.proxy-check { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.attendance-meta { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 5px; }
.attendance-meta small { color: var(--muted); font-size: 8px; text-align: left; }
.text-button { padding: 0; border: 0; color: #9a4b37; background: transparent; font-size: 9px; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.historical-roster-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.driver-availability-intro { margin-top: 12px; }
.event-priority-panel { border-top: 5px solid var(--green-2); }
.admin-driver-disclosure { margin-top: 16px; border: 1px solid #dce5de; border-radius: 13px; background: #fbfcfa; }
.admin-driver-disclosure > summary { min-height: 46px; padding: 10px 14px; border-radius: 12px; display: flex; align-items: center; color: var(--ride-prompt-ink); background: var(--ride-prompt-surface); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.admin-driver-disclosure > summary::-webkit-details-marker { display: none; }
.admin-driver-disclosure[open] > summary { border-radius: 12px 12px 0 0; }
.admin-driver-disclosure .driver-volunteer-form { margin: 0; border: 0; border-top: 1px solid #e1e7e1; border-radius: 0 0 13px 13px; }
.driver-admin-note { margin-top: 13px; color: var(--muted); font-size: 10px; }
.driver-empty-state { margin-top: 14px; background: #f7f9f6; }
.driver-volunteer-form { margin-top: 18px; padding: 16px; border: 1px solid #e1e7e1; border-radius: 14px; display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(110px, .55fr) repeat(2, minmax(160px, 1fr)); gap: 12px; align-items: end; background: #f8faf7; }
.driver-volunteer-form .proxy-check { min-height: 42px; }
.driver-volunteer-form .proxy-check, .driver-volunteer-form .consent-check { grid-column: span 2; }
.driver-volunteer-form .button { grid-column: 4; }
.consent-check { min-height: 34px; display: flex; align-items: center; gap: 7px; color: #34443c; font-size: 10px; font-weight: 700; }
.event-driver-profiles { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.event-driver-card { min-width: 0; padding: 14px; border: 1px solid #e0e6e1; border-radius: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; background: #f8faf7; }
.event-driver-card:hover { border-color: #b9c9bf; background: white; }
.event-driver-profile { min-width: 0; display: grid; gap: 8px; }
.event-driver-facts { min-width: 0; margin-left: 64px; display: grid; justify-items: start; gap: 6px; }
.event-driver-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.driver-withdraw-form { display: flex; }
.driver-withdraw-form .text-button { min-height: 36px; padding: 6px 9px; border: 1px solid #ead8d3; border-radius: 9px; font-size: 10px; line-height: 1.25; }
.event-driver-main { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; }
.event-driver-car { width: 54px; height: 42px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--green-2); background: #e8eee9; }
.event-driver-car img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-driver-car .transport-icon { width: 23px; height: 23px; }
.event-driver-copy { min-width: 0; }
.event-driver-copy strong, .event-driver-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.event-driver-copy strong { font-size: 12px; }
.event-driver-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.event-driver-number { display: block; color: var(--green-2); font-size: 14px; font-weight: 800; line-height: 1.25; }
.event-driver-number:hover { text-decoration: underline; }
.driver-seat-summary { display: block; padding: 4px 7px; border-radius: 999px; color: #34443c; background: #e9efea; font-size: 10px; font-weight: 800; line-height: 1.25; }
.event-driver-coordination { color: #34443c; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.event-driver-attribution { color: var(--muted); font-size: 9px; line-height: 1.4; }
.back-to-upcoming { margin: 0 0 12px; }
.mobile-back-to-upcoming { margin-top: 10px; }
.event-driver-call {
  min-height: 36px; padding: 8px 11px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: white; background: var(--green);
  font-size: 11px; font-weight: 800;
}
.event-driver-call:hover { background: #205044; }
.event-driver-no-phone { color: var(--muted); font-size: 8px; font-weight: 700; }
.ride-assignment-form { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.ride-assignment-current { margin-top: 18px; padding: 14px; border: 1px solid #dfe6e0; border-radius: 13px; background: #f8faf7; }
.ride-assignment-current > h3 { margin: 0 0 10px; font-size: 12px; }
.ride-assignment-current-list { display: grid; gap: 8px; }
.ride-assignment-current-row { min-width: 0; padding: 10px 11px; border: 1px solid #e1e7e2; border-radius: 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: white; }
.ride-assignment-current-copy { min-width: 0; }
.ride-assignment-current-copy strong, .ride-assignment-current-copy small { display: block; }
.ride-assignment-current-copy strong { font-size: 12px; }
.ride-assignment-current-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ride-assignment-current-row form { margin: 0; }
.ride-assignment-current-row .button { min-height: 36px; padding: 7px 11px; white-space: nowrap; }
.ride-assignment-empty { margin: 0; color: var(--muted); font-size: 10px; }
.location-panel { padding: 24px; }
.location-panel h3 { margin-bottom: 7px; font-size: 17px; }
.location-panel p { margin-bottom: 16px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.map-preview { margin: 14px 0 12px; border: 1px solid #dce4de; border-radius: 14px; overflow: hidden; background: #edf1ed; }
.map-preview iframe { width: 100%; min-height: 220px; border: 0; display: block; }

.preview-banner {
  max-width: 1180px; min-height: 54px; margin: 0 auto 18px; padding: 9px 12px 9px 18px;
  border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: white; background: #315b50; font-size: 11px;
}
.preview-banner .button { flex: 0 0 auto; }
.member-response-panel, .public-roster-panel { padding: 28px; }
.member-response-panel { scroll-margin-top: 100px; }
.member-player-list { margin-top: 18px; display: grid; gap: 14px; }
.member-player-card { padding: 18px; border: 1px solid #dfe7e1; border-radius: 16px; display: grid; gap: 16px; background: #f8faf7; }
.member-player-heading { display: flex; align-items: center; gap: 10px; }
.member-player-heading strong, .member-player-heading small { display: block; }
.member-player-heading small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.quick-choice-group { padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick-choice-group legend { margin-bottom: 8px; color: #34443c; font-size: 10px; font-weight: 800; }
.quick-choice { min-height: 50px; padding: 9px 11px; border: 1px solid #d9e2db; border-radius: 12px; display: flex; align-items: center; gap: 8px; color: #34443c; background: white; font-size: 10px; font-weight: 750; line-height: 1.35; cursor: pointer; }
.quick-choice:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #edf4ef; }
.quick-choice input { width: auto; flex: 0 0 auto; }
.member-player-card > .button { justify-self: start; }
.parent-queue-step { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.parent-queue-step[hidden] { display: none; }
.parent-queue-number { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 11px; font-weight: 900; }
.parent-queue-step > fieldset { min-width: 0; }
.parent-queue-step legend { margin-bottom: 9px; font-size: 13px; line-height: 1.3; }
.parent-queue-save { padding-left: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; }
.parent-queue-save small { color: var(--muted); font-size: 9px; }
.parent-driver-queue { margin-top: 16px; padding-top: 16px; border-top: 1px solid #dfe7e1; display: grid; gap: 10px; }
.parent-driver-queue-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.parent-driver-queue-heading strong, .parent-driver-queue-heading small { display: block; }
.parent-driver-queue-heading strong { font-size: 13px; line-height: 1.3; }
.parent-driver-queue-heading small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.parent-driver-queue .ride-action-menu { margin-left: 38px; box-shadow: none; }
.public-roster-list { margin-top: 14px; display: grid; }
.public-roster-row { min-height: 60px; padding: 10px 0; border-top: 1px solid #edf0ec; display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, .8fr); gap: 10px; align-items: center; }
.public-roster-person { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; color: inherit; border-radius: 10px; }
.public-roster-person strong, .public-roster-person small { display: block; }
.public-roster-person small { margin-top: 3px; color: var(--muted); font-size: 9px; }
a.public-roster-person:hover strong { color: var(--green-2); text-decoration: underline; }
.public-roster-row .status { justify-self: end; }
.public-ride-state, .ride-permission { color: var(--muted); font-size: 9px; line-height: 1.35; }

.driver-profile-card { max-width: 980px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 34px; align-items: center; }
.driver-profile-photo { min-height: 410px; border-radius: 20px; overflow: hidden; background: #e8eee9; }
.driver-profile-photo img { width: 100%; height: 100%; min-height: 410px; display: block; object-fit: cover; }
.driver-profile-photo-empty { display: grid; align-content: center; justify-items: center; gap: 12px; color: #6d7a73; }
.driver-profile-photo-empty .transport-icon { width: 64px; height: 64px; stroke-width: 1.25; }
.driver-profile-photo-empty span { font-size: 11px; font-weight: 700; }
.driver-profile-copy h1 { margin-bottom: 10px; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.055em; }
.driver-vehicle-name { margin-bottom: 10px; color: var(--muted); font-size: 16px; }
.driver-vehicle-name + .driver-profile-metrics { margin-top: 28px; }
.driver-contact-links { margin-bottom: 24px; display: grid; justify-items: start; gap: 5px; }
.driver-phone { color: var(--green-2); font-size: 17px; font-weight: 800; }
.driver-email { overflow-wrap: anywhere; color: var(--green-2); font-size: 13px; font-weight: 700; }
.driver-phone:hover, .driver-email:hover { text-decoration: underline; }
.driver-profile-metrics { margin-bottom: 28px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.driver-profile-metrics div { display: grid; gap: 3px; }
.driver-profile-metrics strong { font-family: ui-rounded, system-ui; font-size: 23px; }
.driver-profile-metrics span { color: var(--muted); font-size: 10px; }
.driver-profile-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.player-contact-hero { padding: 26px 28px; display: flex; align-items: center; gap: 16px; }
.player-contact-hero h1 { margin: 3px 0 6px; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.045em; }
.player-contact-hero > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.player-contact-avatar { width: 54px; height: 54px; flex: 0 0 auto; font-size: 18px; }
.player-contact-layout { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.player-contact-list-panel, .player-phone-panel { padding: 24px; }
.player-contact-list { margin-top: 14px; display: grid; }
.player-contact-card { min-width: 0; padding: 14px 0; border-top: 1px solid #e7ece8; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.player-contact-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--green-2); background: #e8eee9; }
.player-contact-icon .transport-icon { width: 23px; height: 23px; }
.player-contact-copy { min-width: 0; }
.player-contact-copy strong, .player-contact-copy small { display: block; }
.player-contact-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.player-contact-actions { display: flex; gap: 7px; }
.player-phone-panel strong { display: block; margin: 12px 0 5px; font-size: 18px; }
.player-phone-panel p { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.player-phone-number { display: inline-block; margin-top: 12px; color: var(--green-2); font-size: 19px; font-weight: 800; }
.player-phone-disclosure { margin-top: 14px; border-top: 1px solid #e4e9e5; }
.player-phone-disclosure > summary { min-height: 44px; display: flex; align-items: center; color: var(--green-2); font-size: 11px; font-weight: 800; cursor: pointer; }
.player-phone-form { padding: 14px; border: 1px solid #dfe6e0; border-radius: 13px; display: grid; gap: 12px; background: #f8faf7; }
.player-phone-form .consent-check { grid-column: auto; }
.player-phone-form p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.player-phone-form .button { justify-self: start; }
.player-phone-private-note { padding: 12px 14px; border: 1px solid #e0e5e1; border-radius: 11px; display: grid; gap: 3px; color: #4f5c55; background: #f7f9f6; }
.player-phone-private-note strong { font-size: 11px; }
.player-phone-private-note span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.locations-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 24px; align-items: start; }
.resources-panel { margin-top: 24px; padding: 26px; }
.resources-panel .section-intro { margin: 8px 0 18px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-card { min-width: 0; min-height: 82px; padding: 15px; border: 1px solid #dfe6e0; border-radius: 15px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; background: #f9fbf8; transition: .18s ease; }
.resource-card:hover { border-color: #aebdb4; background: white; transform: translateY(-1px); }
.resource-card-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--green); background: #e6eee8; font-size: 15px; font-weight: 900; }
.resource-card strong, .resource-card small { display: block; }
.resource-card strong { font-size: 13px; line-height: 1.3; }
.resource-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.resource-admin-layout { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: 24px; align-items: start; }
.resource-create-panel, .resource-list-panel { padding: 28px; }
.resource-create-panel h2 { margin-bottom: 18px; }
.resource-form-options { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(220px, 1fr); gap: 12px; align-items: end; }
.checkbox-card { min-height: 66px; padding: 12px 14px; border: 1px solid #dfe6e0; border-radius: 13px; display: flex; align-items: center; gap: 11px; background: #f8faf7; cursor: pointer; }
.checkbox-card input { width: auto; flex: 0 0 auto; }
.checkbox-card strong, .checkbox-card small { display: block; }
.checkbox-card strong { font-size: 11px; }
.checkbox-card small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.resource-preview-link { display: inline-flex; margin: 2px 0 14px 50px; color: var(--green-2); font-size: 10px; font-weight: 800; }
.resource-editable-list { margin-top: 14px; }
.place-search-panel, .place-manual-panel, .saved-places-panel { padding: 28px; }
.saved-places-panel { margin-top: 24px; }
.place-search-panel > .section-intro { margin: 8px 0 18px; }
.place-search-form { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.place-coordinate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.setup-note { margin: 16px 0; padding: 14px 16px; border: 1px solid #ead7a8; border-radius: 13px; color: #5c4a19; background: #fff8e4; }
.setup-note strong { display: block; margin-bottom: 4px; font-size: 12px; }
.setup-note p { margin: 0; font-size: 10px; line-height: 1.5; }
.google-maps-attribution { color: #4b5560; font-size: 11px; font-weight: 800; white-space: nowrap; }
.place-search-results { margin-top: 20px; display: grid; gap: 10px; }
.place-result-card { padding: 15px; border: 1px solid #e0e6e0; border-radius: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: center; background: #fbfcfa; }
.place-result-card strong { display: block; font-size: 14px; }
.place-result-card p { margin: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.place-result-card a { color: var(--green-2); font-size: 10px; font-weight: 700; }
.google-ranking-note { margin: 5px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.google-place-badge { margin-left: 5px; padding: 3px 6px; border-radius: 999px; color: #32558a; background: #e7effa; font-size: 7px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.policy-page { max-width: 800px; margin: 4vh auto; padding: 36px; }
.policy-page h1 { margin-bottom: 24px; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.045em; }
.policy-page h2 { margin: 27px 0 8px; font-size: 19px; }
.policy-page p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.policy-page a { color: var(--green-2); font-weight: 700; text-decoration: underline; }

@media (max-width: 1050px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .completed-events-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upcoming-list { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .event-hero { flex-direction: column; }
  .event-hero-main, .event-hero-side { width: 100%; }
  .event-grid { grid-template-columns: 1fr; }
  .event-sidebar { grid-template-columns: minmax(0, 1fr) 220px; }
  .context-layout, .context-detail-grid { grid-template-columns: 1fr; }
  .locations-layout { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-admin-layout { grid-template-columns: 1fr; }
  .driver-profile-card { grid-template-columns: 1fr 1fr; }
  .player-contact-layout { grid-template-columns: 1fr; }
  .attendance-row { grid-template-columns: minmax(160px, .5fr) minmax(0, 1.5fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 58px; gap: 10px; padding: 0 14px; }
  .brand > span:last-child, .brand small, .nav-actions .button-quiet:not(.family-nav), .user-name { display: none; }
  .brand { min-height: 44px; flex: 0 0 auto; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-actions { min-width: 0; margin-left: auto; gap: 3px; }
  .button { min-height: 44px; }
  .nav-actions > a { display: none; }
  .user-button { min-height: 44px; min-width: 44px; padding: 5px 11px 5px 5px; justify-content: center; }
  .sign-out-label { font-size: 11px; }
  .page-shell { padding: 12px 12px calc(94px + env(safe-area-inset-bottom)); }
  .hero { display: none; }
  .resume-last-page { margin-bottom: 14px; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .resume-last-page-icon { width: 34px; height: 34px; }
  .resume-last-page .button { grid-column: 1 / -1; width: 100%; }
  .resume-last-page-dismiss { grid-column: 1 / -1; min-height: 44px; }
  .hero h1 { margin-bottom: 10px; font-size: 33px; line-height: 1.04; }
  .hero .lede { font-size: 13px; line-height: 1.5; }
  .hero-actions { width: 100%; }
  .hero-actions .button-light { width: 100%; }
  .hero-actions .button-hero-quiet { flex: 1; }
  .availability-nudge { margin: 0 0 14px; padding: 13px; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .availability-nudge-next-event { display: none; }
  .availability-nudge-icon { width: 34px; height: 34px; }
  .availability-nudge-copy > strong { font-size: 12px; }
  .availability-nudge-copy > small { font-size: 10px; }
  .mobile-next-event { margin-bottom: 14px; padding: 17px; border-radius: 19px; display: grid; gap: 11px; color: white; background: linear-gradient(135deg, #173c32, #2b6653); box-shadow: 0 14px 34px rgba(20,54,44,.18); }
  .mobile-next-event.event-rides-complete { box-shadow: 0 0 0 3px rgba(92,166,109,.25), 0 14px 34px rgba(20,54,44,.18); }
  .mobile-next-event-link { min-width: 0; display: grid; gap: 5px; }
  .mobile-next-event .event-kind { color: rgba(255,255,255,.72); font-size: 10px; }
  .mobile-next-event .travel-badge-home { color: #123b2e; background: #cbed95; }
  .mobile-next-event .travel-badge-away { color: #672414; background: #ffc4b5; }
  .mobile-next-event h2 { margin: 0; font-size: 25px; line-height: 1.08; letter-spacing: -.04em; }
  .mobile-next-event-link > span:last-of-type { color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.4; }
  .mobile-arrival { margin-top: 4px; font-family: ui-rounded, system-ui, sans-serif; font-size: 18px; }
  .mobile-next-event .transport-summary { margin-top: 5px; }
  .mobile-availability-actions { display: grid; gap: 3px; }
  .mobile-next-event .button-primary { color: var(--green); background: var(--lime); box-shadow: none; }
  .mobile-next-event .availability-nudge-later { width: 100%; color: rgba(255,255,255,.74); }
  .mobile-next-event .availability-nudge-later:hover { color: white; }
  .mobile-next-event > .ride-action-menu { color: var(--ink); box-shadow: none; }
  .availability-nudge-actions { grid-column: 1 / -1; width: 100%; }
  .availability-nudge-actions .button { width: 100%; }
  .availability-nudge-later { min-height: 44px; font-size: 11px; }
  .dashboard-grid { gap: 16px; }
  .calendar-panel, .upcoming-panel { padding: 15px; border-radius: 18px; }
  .calendar { display: none; }
  .calendar-panel { overflow: hidden; }
  .calendar-heading { position: static; }
  .roster-filter { grid-template-columns: 1fr auto; }
  .roster-filter > p { grid-column: 1 / -1; margin: -1px 2px 0; }
  .month-nav a { min-width: 44px; height: 44px; }
  .mobile-calendar-list { display: grid; }
  .upcoming-panel { display: none; }
  .completed-events-panel { margin-top: 16px; padding: 17px; border-radius: 18px; }
  .completed-events-intro { line-height: 1.45; }
  .completed-events-list { grid-template-columns: 1fr; }
  .completed-event-card { min-height: 74px; }
  .completed-event-copy h3, .completed-event-copy p { white-space: normal; }
  .mobile-calendar-event-shell > .ride-action-menu { margin-left: 0; }
  .upcoming-list { grid-template-columns: 1fr; }
  .upcoming-card { min-height: 82px; }
  .upcoming-copy h3 { white-space: normal; }
  .upcoming-copy p { white-space: normal; line-height: 1.4; }
  .event-form { padding: 20px; grid-template-columns: 1fr; gap: 18px; }
  .inline-place-fields { grid-template-columns: 1fr; padding: 16px; }
  .inline-place-fields .field-wide { grid-column: auto; }
  .inline-place-actions { align-items: stretch; flex-direction: column; }
  .inline-place-actions .button { width: 100%; }
  .inline-place-google { padding: 14px; }
  .inline-place-google-heading { flex-direction: column; gap: 5px; }
  .inline-place-google-heading > small { max-width: none; text-align: left; }
  .inline-place-search-form, .inline-place-result-card { grid-template-columns: 1fr; }
  .inline-place-search-form .button, .inline-place-result-card .button { width: 100%; }
  .feedback-type-grid { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { min-height: 44px; }
  .vehicle-photo-field input[type="file"] { font-size: 16px; }
  .field-wide { grid-column: auto; }
  .back-link { min-height: 44px; margin: -8px 0 14px; align-items: center; }
  .event-timeline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .event-timeline { margin-bottom: 16px; }
  .event-timeline-context { grid-column: 1 / -1; grid-row: 1; min-width: 0; padding: 9px 14px; border: 0; border-bottom: 1px solid #e4eae5; text-align: left; place-content: initial; }
  .event-timeline-context > span { max-width: none; }
  .event-timeline-context > small { font-size: 9px; }
  .event-timeline-step { min-height: 70px; padding: 11px 13px; }
  .event-timeline-step > small { line-height: 1.35; white-space: normal; }
  .event-timeline-previous { grid-column: 1; grid-row: 2; border-right: 1px solid #e4eae5; }
  .event-timeline-next { grid-column: 2; grid-row: 2; }
  .event-hero { min-height: 0; margin-bottom: 12px; padding: 17px; border-radius: 18px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; }
  .event-hero-main, .event-hero-side { width: 100%; }
  .event-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-hero h1 { margin: 4px 0 11px; font-size: clamp(27px, 8vw, 34px); }
  .event-hero-fact { min-height: 76px; padding: 11px 12px; }
  .event-hero-fact-label { margin-bottom: 6px; font-size: 9px; }
  .event-hero-ride-count small { overflow: visible; white-space: normal; text-overflow: clip; }
  .event-hero-location strong { font-size: 13px; }
  .event-hero-location small { font-size: 9px; }
  .event-hero-ride-state { font-size: 9px; }
  .event-hero-edit { width: 100%; justify-self: stretch; }
  .event-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 12px; }
  .event-meta span:first-child { grid-column: 1 / -1; font-size: 14px; font-weight: 800; color: white; }
  .event-meta span + span::before { display: none; }
  .event-grid, .event-main { gap: 14px; }
  .event-main .panel, .event-sidebar .panel { padding: 17px; border-radius: 17px; }
  .panel-heading { align-items: flex-start; gap: 12px; }
  .panel-heading h2 { font-size: 20px; }
  .preview-banner { min-height: 66px; padding: 10px 12px; align-items: flex-start; font-size: 10px; }
  .quick-choice-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-choice-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ride-plan-choices .quick-choice:last-child { grid-column: 1 / -1; }
  .quick-choice { min-height: 48px; padding: 0; position: relative; display: grid; place-items: stretch; font-size: 12px; }
  .quick-choice input { position: absolute; opacity: 0; pointer-events: none; }
  .quick-choice span { width: 100%; min-height: 48px; padding: 8px 5px; display: grid; place-items: center; line-height: 1.2; text-align: center; overflow-wrap: normal; }
  .quick-choice:has(input:focus-visible) { outline: 3px solid rgba(36,91,72,.2); outline-offset: 2px; }
  .ride-action-menu > summary { min-height: 62px; }
  .ride-action-summary-copy strong { font-size: 13px; }
  .ride-action-summary-copy small { font-size: 10px; }
  .ride-action-row { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .ride-action-row-icon { width: 38px; height: 38px; }
  .ride-action-row > form, .ride-action-row > .ride-action-edit { grid-column: 2; justify-self: stretch; }
  .ride-action-button, .ride-action-edit { min-height: 44px; font-size: 12px; }
  .driver-quick-form { width: 100%; grid-template-columns: 1fr; }
  .driver-quick-details { grid-template-columns: 1fr; }
  .driver-quick-form input { min-height: 44px; font-size: 16px; }
  .ride-action-explain { margin-left: 47px; font-size: 10px; }
  .ride-action-dialog-heading { padding: 16px 17px 13px; }
  .ride-action-dialog .ride-action-body { padding: 6px 17px 18px; }
  .family-driving-note { margin-left: 0; font-size: 11px; }
  .member-player-card > .button { width: 100%; }
  .member-player-card { padding: 14px; gap: 14px; }
  .member-player-heading { align-items: flex-start; }
  .parent-queue-step { grid-template-columns: 26px minmax(0, 1fr); gap: 9px; }
  .parent-queue-number { width: 26px; height: 26px; font-size: 10px; }
  .parent-queue-step legend { margin-bottom: 8px; font-size: 14px; }
  .parent-queue-save { padding-left: 35px; display: grid; gap: 7px; }
  .parent-queue-save .button { width: 100%; }
  .parent-queue-save small { font-size: 10px; line-height: 1.4; }
  .parent-driver-queue { margin-top: 14px; padding-top: 14px; }
  .parent-driver-queue-heading { grid-template-columns: 26px minmax(0, 1fr); gap: 9px; }
  .parent-driver-queue-heading strong { font-size: 14px; }
  .parent-driver-queue-heading small { font-size: 10px; }
  .parent-driver-queue .ride-action-menu { margin-left: 35px; }
  .public-roster-row { grid-template-columns: minmax(0, 1fr) auto; }
  .public-roster-panel .section-intro { display: none; }
  .mobile-roster-summary { min-height: 52px; margin-top: 13px; padding: 11px 13px; border: 1px solid #dce4de; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--green); background: #f4f7f3; cursor: pointer; }
  .mobile-roster-summary span, .mobile-roster-summary strong { font-size: 12px; }
  .mobile-roster-summary strong { color: var(--muted); }
  .mobile-roster-toggle:not(:checked) ~ .mobile-roster-content { display: none; }
  .mobile-roster-toggle:checked + .mobile-roster-summary { border-radius: 13px 13px 0 0; background: #eaf2ec; }
  .mobile-roster-toggle:checked + .mobile-roster-summary span::before { content: "Hide "; }
  .mobile-roster-toggle:checked + .mobile-roster-summary span { font-size: 0; }
  .mobile-roster-toggle:checked + .mobile-roster-summary span::before { font-size: 12px; }
  .public-roster-person small { font-size: 10px; }
  .public-ride-state { grid-column: 1 / -1; padding-left: 46px; font-size: 11px; }
  .availability-options { grid-template-columns: 1fr; }
  .carpool-fields { grid-template-columns: 1fr; }
  .roster-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .roster-carpool { grid-column: 2 / -1; }
  .event-sidebar { grid-template-columns: 1fr; }
  .login-card, .error-card { margin: 3vh auto; padding: 25px; }
  .users-panel { padding: 20px; }
  .account-access-overview { padding: 15px; grid-template-columns: 36px minmax(0, 1fr); }
  .account-access-overview .button { grid-column: 1 / -1; width: 100%; }
  .admin-invite-panel, .invitation-history-panel { padding: 20px 18px; }
  .admin-invite-form, .created-invitation { grid-template-columns: 1fr; }
  .created-invitation details { grid-column: auto; }
  .invitation-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
  .invitation-row form { grid-column: 1 / -1; }
  .user-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .user-row time { grid-column: 2 / -1; }
  .user-role-form { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .user-access-actions { grid-column: 1 / -1; align-items: stretch; flex-direction: column; }
  .user-access-actions .button { width: 100%; }
  .admin-heading { display: block; }
  .admin-role-badge { margin: -12px 0 24px; }
  .admin-actions { grid-template-columns: 1fr; gap: 10px; }
  .admin-action { min-height: 88px; padding: 15px; }
  .admin-section { padding: 20px; border-radius: 18px; }
  .feedback-inbox-panel { padding: 20px; border-radius: 18px; }
  .feedback-card { padding: 17px; }
  .feedback-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .feedback-card-meta { grid-template-columns: 1fr; }
  .feedback-status-form .button { width: 100%; min-height: 44px; }
  .admin-event-row { grid-template-columns: 1fr; gap: 8px; }
  .admin-row-action { width: 100%; min-height: 44px; }
  .admin-roster-row { min-height: 72px; }
  .admin-create-roster > summary { min-height: 52px; }
  .context-list-panel, .context-create-panel, .context-section, .roster-coordination-panel, .driver-availability-panel, .ride-assignment-panel { padding: 20px; }
  .place-search-panel, .place-manual-panel, .saved-places-panel, .policy-page { padding: 20px; border-radius: 18px; }
  .resources-panel { margin-top: 16px; padding: 17px; border-radius: 18px; }
  .resource-grid { grid-template-columns: 1fr; gap: 9px; }
  .resource-card { min-height: 72px; padding: 13px; }
  .resource-create-panel, .resource-list-panel { padding: 20px; border-radius: 18px; }
  .resource-form-options { grid-template-columns: 1fr; }
  .checkbox-card { min-height: 58px; }
  .resource-preview-link { min-height: 44px; margin-left: 50px; align-items: center; }
  .place-search-form, .place-result-card { grid-template-columns: 1fr; }
  .place-search-form .button, .place-result-card .button { width: 100%; }
  .context-card { align-items: flex-start; flex-direction: column; gap: 7px; }
  .roster-lifecycle-panel { padding: 20px; align-items: stretch; flex-direction: column; gap: 15px; }
  .roster-retire-action > summary, .roster-lifecycle-panel .roster-reactivate-form .button { width: 100%; justify-content: center; }
  .inline-edit-form, .add-row-form { grid-template-columns: 1fr; }
  .check-field, .proxy-check, .consent-check { min-height: 44px; font-size: 14px; }
  .driver-profile-link { min-height: 44px; display: flex; align-items: center; }
  .attendance-list { margin-top: 12px; }
  .attendance-row { padding: 14px 0; grid-template-columns: 1fr; gap: 11px; }
  .attendance-person { min-height: 44px; }
  .attendance-person strong { font-size: 14px; }
  .attendance-person small { font-size: 11px; }
  .attendance-editor { gap: 8px; }
  .attendance-edit-toggle {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .attendance-edit-summary {
    min-height: 50px; padding: 9px 11px; border: 1px solid #dce4de; border-radius: 12px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
    color: var(--ink); background: #f7f9f6; cursor: pointer;
  }
  .attendance-edit-summary-copy, .attendance-edit-summary-copy strong, .attendance-edit-summary-copy small { min-width: 0; display: block; }
  .attendance-edit-summary-copy strong { font-size: 13px; line-height: 1.25; }
  .attendance-edit-summary-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
  .attendance-edit-action { color: var(--green-2); font-size: 12px; font-weight: 800; white-space: nowrap; }
  .attendance-edit-open { display: none; }
  .attendance-edit-toggle:focus-visible + .attendance-edit-summary { outline: 3px solid rgba(36, 91, 72, .2); outline-offset: 2px; }
  .attendance-edit-toggle:not(:checked) ~ .attendance-edit-body { display: none; }
  .attendance-edit-toggle:checked + .attendance-edit-summary { border-color: #9bb4a5; border-radius: 12px 12px 0 0; background: #edf4ef; }
  .attendance-edit-toggle:checked + .attendance-edit-summary .attendance-edit-closed { display: none; }
  .attendance-edit-toggle:checked + .attendance-edit-summary .attendance-edit-open { display: inline; }
  .attendance-edit-toggle:checked ~ .attendance-edit-body { padding: 12px; border: 1px solid #dce4de; border-top: 0; border-radius: 0 0 12px 12px; background: #fbfcfa; }
  .attendance-form { grid-template-columns: 1fr; }
  .attendance-form .attendance-note, .attendance-form .proxy-check, .attendance-form .button { grid-column: auto; }
  .attendance-form select, .attendance-form input { font-size: 16px; }
  .attendance-form .button { width: 100%; min-height: 44px; }
  .attendance-meta small { font-size: 10px; }
  .text-button, .danger-link { min-height: 44px; }
  .delete-disclosure summary { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .ride-assignment-form { grid-template-columns: 1fr; }
  .ride-assignment-panel .section-intro { margin-top: 8px; }
  .ride-assignment-current { padding: 12px; }
  .ride-assignment-current-row { grid-template-columns: 1fr; }
  .ride-assignment-current-row .button { width: 100%; min-height: 44px; }
  .driver-volunteer-form { grid-template-columns: 1fr; }
  .driver-volunteer-form .proxy-check, .driver-volunteer-form .consent-check, .driver-volunteer-form .button { grid-column: auto; }
  .driver-volunteer-form .button { width: 100%; }
  .event-driver-profiles { grid-template-columns: 1fr; }
  .event-driver-card { min-height: 68px; grid-template-columns: 1fr; }
  .event-driver-copy strong, .event-driver-copy small { white-space: normal; }
  .event-driver-actions { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); display: grid; }
  .admin-driver-disclosure > summary { min-height: 48px; }
  .event-driver-call, .driver-withdraw-form .text-button { width: 100%; min-height: 44px; font-size: 12px; }
  .roster-parent-label, .roster-parent-chip, .roster-parent-empty { font-size: 10px; }
  .driver-profile-card { padding: 18px; grid-template-columns: 1fr; gap: 24px; }
  .driver-profile-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .driver-profile-photo img { min-height: 0; height: 100%; }
  .player-contact-hero { padding: 20px; align-items: flex-start; }
  .player-contact-layout { margin-top: 14px; gap: 14px; }
  .player-contact-list-panel, .player-phone-panel { padding: 17px; }
  .player-contact-card { grid-template-columns: 42px minmax(0, 1fr); }
  .player-contact-actions { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; }
  .player-contact-actions .button { width: 100%; }
  .player-phone-form .button { width: 100%; }
  .family-nav { min-height: 44px; padding: 8px 10px; font-size: 11px; }
  .access-state-card { padding: 20px; grid-template-columns: 42px minmax(0, 1fr); }
  .access-state-icon { width: 42px; height: 42px; }
  .family-links-panel, .family-request-panel, .request-history-panel, .approval-panel { padding: 20px; border-radius: 18px; }
  .family-association-header { margin-bottom: 20px; }
  .family-association-header h2 { font-size: 22px; }
  .family-association-intro { margin-top: 10px; font-size: 12px; line-height: 1.55; }
  .family-request-panel > .family-request-form { padding-top: 18px; }
  .family-contact-summary, .approval-details { grid-template-columns: 1fr; }
  .family-request-form, .approval-form, .reject-form { grid-template-columns: 1fr; }
  .approval-heading { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .approval-badges { grid-column: 2; justify-content: flex-start; }
  .family-admin-link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .family-admin-link-row form { grid-column: 1 / -1; }
  .family-admin-link-row .button { width: 100%; }
  .map-preview { margin-inline: -4px; }
  .map-preview iframe { min-height: 190px; }
  .mobile-app-nav { min-height: 66px; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(34,58,47,.14); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(250,251,247,.96); box-shadow: 0 -8px 30px rgba(23,45,35,.1); backdrop-filter: blur(16px); }
  .mobile-app-nav a { min-height: 50px; border-radius: 12px; display: grid; place-content: center; gap: 2px; text-align: center; color: #68756e; }
  .mobile-app-nav a[aria-current="page"] { color: var(--green); background: #e8f0e8; }
  .mobile-app-nav span { font-size: 19px; line-height: 1; }
  .mobile-app-nav small { font-size: 9px; font-weight: 800; }
  footer { display: none; }
}

@media (max-width: 480px) {
  .event-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-hero-rides { grid-column: span 1; }
  .event-hero-fact { min-height: 0; }
  .calendar-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .roster-filter { padding: 10px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .roster-filter .field label { font-size: 9px; }
  .roster-filter .button { width: auto; min-width: 70px; }
  .roster-filter > p { display: none; }
  .month-nav { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .month-nav a { height: 44px; }
  .mobile-calendar-day { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .mobile-date-tile { width: 44px; min-height: 54px; }
  .mobile-calendar-event { padding: 12px; }
  .attendance-form { grid-template-columns: 1fr; }
  .attendance-form .button { width: 100%; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .button { width: 100%; }
  .event-driver-main { grid-template-columns: 48px minmax(0, 1fr); }
  .event-driver-car { width: 48px; }
  .event-driver-facts { margin-left: 58px; }
  .event-driver-actions { grid-template-columns: 1fr; }
  .driver-profile-actions { display: grid; grid-template-columns: 1fr; }
  .place-coordinate-fields { grid-template-columns: 1fr; }
  .driver-profile-actions .button { width: 100%; }
}

@media (max-width: 360px) {
  .brand > span:last-child { display: none; }
  .site-header { gap: 12px; }
  .hero h1 { font-size: 33px; }
}
