:root {
  --ink: #0b0f19;
  --muted: #626a76;
  --line: #dce2ea;
  --paper: #f4f6fa;
  --panel: #ffffff;
  --blue: #245aa8;
  --blue-soft: #eaf1fb;
  --red: #0b0f19;
  --danger: #b42318;
  --gold: #f0bd48;
  --shadow: 0 18px 48px rgba(23, 25, 29, .12);
  --soft-shadow: 0 8px 24px rgba(23, 25, 29, .08);
  --app-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at top, #e4ebf8, #f7f8fb 45%, #fff);
}

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

.login-card img {
  width: 88px;
  height: auto;
}

.login-card h1 {
  margin: 14px 0 4px;
  font-size: 34px;
}

.login-card p {
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: #344047;
  font-weight: 750;
  font-size: 13px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 11px 12px;
}

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

.demo-logins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.brand img {
  width: 46px;
  height: 40px;
  object-fit: contain;
}

.brand strong, .brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.rail h2 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

.nav, .band-list, .stack {
  display: grid;
  gap: 10px;
}

.nav button, .band-button, .ghost, .primary, .segmented button, .pill {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  text-align: left;
}

.nav button.active, .band-button.active, .segmented button.active, .pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 850;
}

.band-button {
  min-height: 58px;
}

.band-button small {
  display: block;
  margin-top: 3px;
  color: inherit;
  opacity: .74;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

main {
  min-width: 0;
  padding: 18px clamp(16px, 3vw, 36px) 40px;
}

.app-update {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #b8c9e8;
  border-radius: 8px;
  background: #eef4ff;
  color: #1a315d;
  cursor: pointer;
}

.app-update strong,
.app-update span {
  display: block;
}

.app-update span {
  margin-top: 2px;
  color: #4b5f86;
  font-size: 13px;
}

.app-update button {
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  padding: 10px 12px;
  font-weight: 800;
  text-decoration: none;
}

.app-update .update-action {
  min-height: 44px;
  white-space: nowrap;
}

.app-update.required {
  border-color: #e8b8b8;
  background: #fff0f0;
  color: #6d1a1a;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.check-row input {
  width: auto;
}

.login-remember {
  justify-content: flex-start;
  min-height: 38px;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

#passwordResetRequestForm {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.status-pill {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.band-select {
  min-height: 40px;
  font-weight: 850;
}

.notification-panel {
  padding: 0;
  overflow: hidden;
}

.notification-tab {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-weight: 850;
}

.notification-tab strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 6px 9px;
  font-size: 12px;
}

.notification-tab.active {
  background: var(--blue);
  color: #fff;
}

.notification-tab.active strong {
  background: #fff;
}

.notification-list {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.search-results {
  margin-bottom: 16px;
}

.hero {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  box-shadow: var(--soft-shadow);
  display: grid;
  align-items: end;
  padding: clamp(22px, 4vw, 36px);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .home-logo {
  position: static;
  width: 84px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 18, .78), rgba(5, 10, 18, .32), rgba(5, 10, 18, .08));
}

.hero > div {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.hero p {
  color: rgba(255, 255, 255, .86);
}

.home-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}

.home-gallery img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.quick-actions button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  font-weight: 850;
  text-align: center;
}

.quick-actions span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.home-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.home-snapshot-card, .home-join-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  padding: 12px;
  display: grid;
  gap: 7px;
}

.home-snapshot-card strong {
  font-size: 18px;
}

.home-snapshot-card p, .home-join-card span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.snapshot-icon {
  width: max-content;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
}

.home-join-card {
  grid-column: span 2;
}

.home-join-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hero-actions, .tabs, .segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero .ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 0 16px;
  padding: 8px 0;
  background: var(--paper);
  overflow-x: auto;
}

.tabs button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 0 14px;
  white-space: nowrap;
}

.tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 850;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.command-center {
  display: grid;
  gap: 18px;
}

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

.command-card {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.command-card.urgent {
  border-color: #f2c2c2;
  background: #fff7f7;
}

.command-card strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.command-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.section-head h2 {
  margin: 0;
}

.compact-head {
  margin-bottom: 8px;
}

.command-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.small-date {
  width: 52px;
  height: 52px;
}

.home-upcoming-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.home-upcoming-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-upcoming-main strong,
.home-upcoming-main span {
  overflow-wrap: anywhere;
}

.home-upcoming-main span {
  color: var(--muted);
  font-size: 12px;
}

.home-rsvp-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 4px;
}

.mini-rsvp {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  padding: 0 7px;
}

.mini-rsvp.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.latest-photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.latest-photo-card {
  display: grid;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.latest-photo-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  object-fit: cover;
}

.latest-photo-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

#feed {
  grid-template-columns: minmax(0, 680px) 300px;
  justify-content: center;
}

.panel h2, .card h2, .chat-head h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.composer input {
  margin-bottom: 10px;
}

.composer {
  display: none;
}

.composer.is-open {
  display: block;
}

.composer-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.segmented {
  margin-bottom: 10px;
}

.segmented button {
  min-height: 34px;
}

.post.notice {
  border-left: 4px solid var(--blue);
  background: #fbfdff;
}

.composer {
  margin-bottom: 10px;
}

.form-toggle {
  width: 100%;
  margin-top: 10px;
}

.simple-panel form {
  display: none;
}

.simple-panel.show-forms form {
  display: grid;
}

.tool-collapsible:not(.show-forms) .tool-panel-body,
.role-lock-panel:not(.show-forms) .role-lock-body {
  display: none;
}

.post-head, .member, .event-row, .message-row, .event-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.avatar.gold {
  background: var(--gold);
  color: var(--ink);
}

.meta strong {
  display: block;
}

.meta span, .small {
  color: var(--muted);
  font-size: 12px;
}

.post-body {
  margin: 12px 0;
  color: #354047;
  line-height: 1.55;
}

.tag-row, .actions, .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comments {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.comment {
  border-radius: 8px;
  background: #f4f7fb;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.comment-form, .inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) minmax(120px, .4fr) auto;
}

.tag, .notice-label {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 850;
}

.notice-label {
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 10px;
}

.actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.reaction-summary {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.post-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.post-summary-row .reaction-summary {
  margin-top: 0;
}

.read-summary {
  min-height: 32px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 900;
}

.read-summary::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff url("/assets/aac-logo.png") center / contain no-repeat;
  border: 1px solid #d8e1f0;
}

.read-members-sheet[hidden] {
  display: none;
}

.read-members-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, .32);
}

.read-members-card {
  position: relative;
  width: min(380px, 100%);
  max-height: min(680px, calc(var(--app-height) - 40px));
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 25, 29, .28);
}

.read-members-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
}

.read-members-head button {
  width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.read-members-head img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 2px;
}

.read-tabs {
  margin: -1px 10px 0;
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.read-tabs button {
  min-height: 38px;
  border: 0;
  background: #fff;
  color: #9aa1aa;
  font-weight: 900;
  text-align: center;
}

.read-tabs button.active {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.read-help {
  margin: 14px 22px 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.read-member-list {
  max-height: min(480px, calc(var(--app-height) - 190px));
  overflow-y: auto;
}

.read-member-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-top: 1px solid #edf0f4;
}

.read-member-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-dot {
  width: 22px;
  height: 22px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.post-tools {
  border-top: 0;
  padding-top: 0;
  margin-top: 8px;
  justify-content: flex-end;
}

.report-mini,
.comment-mini {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  min-height: 24px;
  padding: 4px 2px;
}

.report-mini:hover,
.comment-mini:hover {
  color: var(--red);
}

.photo-strip, .album-grid, .album-media-grid, .member-grid {
  display: grid;
  gap: 12px;
}

.photo-strip {
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0;
}

.photo, .album-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), #fff 55%, #ffe8e8);
  color: var(--blue);
  font-weight: 900;
}

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

.album-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.album-thumb {
  background: linear-gradient(135deg, var(--blue), #111827);
  color: #fff;
  font-size: 28px;
}

.album-media {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.album-media span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.album-media-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #111827;
  border: 1px solid var(--line);
}

.team-media-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.photo-filter-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.photo-filter-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  min-height: 42px;
}

.photo-filter-tabs button:last-child {
  border-right: 0;
}

.photo-filter-tabs button.active {
  background: var(--blue);
  color: #fff;
}

.photo-filter-tabs span {
  font-weight: 800;
  margin-left: 4px;
}

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

.team-media-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 8px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.team-media-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.team-media-card strong,
.team-media-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-media-card small {
  color: var(--muted);
}

.media-viewer[hidden] {
  display: none;
}

.media-viewer {
  inset: 0;
  position: fixed;
  z-index: 80;
}

.media-viewer-backdrop {
  background: rgba(2, 6, 23, 0.72);
  inset: 0;
  position: absolute;
}

.media-viewer-card {
  background: #fff;
  border-radius: 8px 8px 0 0;
  bottom: 0;
  box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 10px;
  left: 50%;
  max-height: 92vh;
  max-width: 780px;
  overflow: auto;
  padding: 12px;
  position: absolute;
  transform: translateX(-50%);
  width: min(100%, 780px);
}

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

.media-viewer-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.media-viewer-head small {
  color: var(--muted);
}

.media-viewer-body {
  align-items: center;
  background: #05070c;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-height: 220px;
  overflow: hidden;
}

.media-viewer-body img,
.media-viewer-body video {
  max-height: 68vh;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.event-row {
  justify-content: space-between;
}

.schedule-list-panel,
.event-detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.schedule-team-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.schedule-team-button {
  border-color: #d8e1f0;
}

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

.schedule-list-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.schedule-list-item.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(36, 90, 168, .12);
}

.schedule-list-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.schedule-list-item strong,
.schedule-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-list-item small {
  color: var(--muted);
}

.schedule-list-item em {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
}

.event-people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

.event-card.answered {
  border-color: #cddaf1;
}

.event-main {
  align-items: center;
}

.event-time {
  display: block;
  margin: 2px 0;
  font-size: 16px;
}

.rsvp-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
}

.event-map {
  min-height: 34px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.quick-update-panel {
  display: none;
}

.quick-update-grid {
  display: grid;
  gap: 8px;
}

.calendar-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.calendar-head strong {
  font-size: 17px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  min-height: 44px;
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 4px;
}

.calendar-day.empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day.today {
  border-color: var(--blue);
}

.calendar-day.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.calendar-day span {
  min-width: 18px;
  min-height: 18px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  font-size: 10px;
  font-weight: 900;
  place-items: center;
}

.calendar-day.selected span {
  background: #fff;
  color: var(--blue);
}

.calendar-selected {
  display: grid;
  gap: 10px;
}

.calendar-selected h2 {
  font-size: 16px;
}

.datebox {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
  text-align: center;
  flex: 0 0 auto;
}

.datebox span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.messages {
  min-height: min(430px, calc(var(--app-height) - 260px));
  max-height: calc(var(--app-height) - 235px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px 12px;
  background: linear-gradient(180deg, #f5f7fb 0%, #fff 100%);
  scrollbar-width: thin;
}

.chat-view {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.chat-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

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

.chat-team-picker h2 {
  display: none;
}

.chat-room-grid,
.chat-team-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.chat-choice-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(23, 25, 29, .05);
}

.chat-choice-button img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d8e1f0;
  padding: 3px;
}

.chat-choice-button span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.chat-choice-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-choice-button small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-team-grid[hidden] {
  display: none;
}

.coaches-chat-button {
  border-color: #f3cf6f;
  background: #fffaf0;
}

.admin-chat-button {
  border-color: #9eb7e8;
  background: #f4f8ff;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: min(84%, 620px);
  margin-right: auto;
}

.message-row.mine {
  margin-left: auto;
  margin-right: 0;
}

.message-sender-id {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d8e1f0;
  color: var(--blue);
  display: grid;
  flex: 0 0 28px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
  text-transform: uppercase;
}

.message-row.mine .message-sender-id {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.bubble {
  padding: 8px 11px 7px;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  border: 1px solid #e6ecf5;
  line-height: 1.45;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.bubble p {
  margin: 2px 0 1px;
}

.message-author {
  display: block;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.message-time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  margin-top: 3px;
  text-align: right;
}

.message-video,
.message-photo {
  width: min(360px, 100%);
  display: block;
  margin: 6px 0;
  border-radius: 8px;
  background: #111827;
}

.message-video {
  aspect-ratio: 16 / 9;
}

.message-photo {
  max-height: 260px;
  object-fit: cover;
}

.dm-videos {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.mine .bubble {
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 18px 18px 5px 18px;
  color: #fff;
}

.mine .message-time {
  color: rgba(255, 255, 255, .82);
}

.mine .message-author {
  color: rgba(255, 255, 255, .9);
}

.message-form, .chat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 0;
}

.message-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 8px;
  box-shadow: none;
}

.message-form input {
  min-height: 38px;
  border-radius: 999px;
  background: #f7f9fc;
  border-color: #dfe6f1;
  padding-inline: 14px;
}

.message-form button.primary {
  min-height: 38px;
  border-radius: 999px;
  padding-inline: 15px;
}

.chat-head {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 10px;
  box-shadow: none;
}

.chat-head h2 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.2;
}

.chat-head .small {
  font-size: 11px;
}

.chat-back-button {
  min-height: 34px;
  border-radius: 999px;
  padding-inline: 12px;
  white-space: nowrap;
}

.file-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 850;
  padding: 0 12px;
}

.file-pill input {
  display: none;
}

.empty-chat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  justify-self: center;
  padding: 12px;
}

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

.photo-team-view {
  display: grid;
  gap: 12px;
}

.photo-team-picker {
  display: grid;
  gap: 8px;
}

.photo-team-picker[hidden] {
  display: none;
}

.photo-team-button {
  border-color: #d8e1f0;
}

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

.team-photo-section h3 {
  color: var(--ink);
  font-size: 14px;
  margin: 4px 0 0;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.member-group {
  display: grid;
  gap: 6px;
}

.member-group h3 {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
  text-transform: uppercase;
}

.member-name {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.member-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.member-title {
  font-size: 14px;
  line-height: 1.25;
}

.member-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d8e1f0;
  background: #fff;
  color: var(--blue);
  display: grid;
  flex: 0 0 42px;
  font-size: 13px;
  font-weight: 900;
  object-fit: cover;
  place-items: center;
}

.member-photo.large {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  font-size: 18px;
}

.member-photo-fallback {
  background: var(--blue-soft);
}

.member-photo-tools {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.member-photo-tools.compact-photo {
  background: #f7f9fc;
}

.member-photo-form {
  min-width: 0;
  display: grid;
  gap: 7px;
  flex: 1;
}

.member-photo-form input {
  width: 100%;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.member-badge {
  min-height: 22px;
  border: 1px solid #d8e1f0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.member-badge.owner {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.member-badge.team {
  background: #fff;
  color: var(--ink);
}

.member-admin-tools,
.member-admin-detail {
  display: grid;
  gap: 8px;
}

.member-admin-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.member-profile-form,
.member-team-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

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

.member-profile-form label,
.member-team-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.member-profile-form textarea,
.member-profile-form button {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none;
}

.setting {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.money-card {
  display: grid;
  gap: 10px;
}

.money-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.money-head span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.money-head small,
.money-payer-row small {
  color: var(--muted);
}

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

.money-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 850;
  padding: 7px;
  text-align: center;
}

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

.money-payer-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 8px;
}

.money-payer-row span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.money-payer-row .paid {
  color: #166534;
}

.money-payer-row .overdue {
  color: var(--danger);
}

.money-member-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding: 8px;
}

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

.form-card-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.form-card-head span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.form-card-head small {
  color: var(--muted);
}

.form-admin-tools {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.invite-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
}

.invite-card code {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 6px 8px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.invite-card img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app-update-card .update-action {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}

.more-menu {
  border-color: #cddaf1;
  background: linear-gradient(180deg, #fff, #f5f8ff);
}

.more-menu .section-head {
  margin-bottom: 10px;
}

.more-menu .section-head p {
  margin: 4px 0 0;
}

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

.more-menu-grid button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  display: grid;
  align-content: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(23, 25, 29, .05);
}

.more-menu-grid strong,
.more-menu-grid span {
  display: block;
}

.more-menu-grid strong {
  font-size: 16px;
}

.more-menu-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.tool-section-grid {
  margin: 8px 0 2px;
}

.has-tool-menus .tool-collapsible:not(.show-forms) {
  display: none;
}

.has-tool-menus .tool-collapsible.show-forms {
  margin-top: 8px;
}

.tool-highlight {
  animation: toolPulse 1.45s ease;
}

.role-lock-list {
  display: grid;
  gap: 10px;
}

.role-lock-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.role-lock-row strong {
  display: block;
  margin-bottom: 8px;
}

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

.role-lock-options .check-row {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #f7f8fb;
  font-weight: 750;
}

@keyframes toolPulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 95, 169, .32); border-color: var(--blue); }
  65% { box-shadow: 0 0 0 12px rgba(49, 95, 169, 0); border-color: var(--blue); }
  100% { box-shadow: none; }
}

.tool-group-title {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.danger {
  border-color: #ffd1d1;
  color: var(--danger);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
  margin: 8px 0;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--ink));
}

.switch {
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.switch.off {
  background: #c7d0d7;
}

.switch.off::after {
  right: auto;
  left: 3px;
}

.compact {
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transition: .2s ease;
  z-index: 5;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 84px 1fr;
  }

  .brand div, .rail h2, .band-list, .rail .ghost, .nav button {
    font-size: 0;
  }

  .nav button::first-letter {
    font-size: 16px;
  }

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

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

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    min-height: var(--app-height);
    overflow-x: hidden;
  }

  .app {
    display: block;
    min-height: var(--app-height);
    padding-top: env(safe-area-inset-top, 0px);
  }

  .rail {
    position: fixed;
    inset: auto 0 0;
    z-index: 4;
    height: auto;
    min-height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--line);
    border-width: 1px 0 0;
    display: block;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(23, 25, 29, .08);
  }

  .brand, .band-list, .rail h2, .rail > .ghost {
    display: none;
  }

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

  .nav button {
    min-width: 0;
    min-height: 48px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    padding: 4px;
    overflow: hidden;
    white-space: normal;
    word-break: normal;
  }

  .nav button::first-letter {
    font-size: inherit;
  }

  main {
    min-height: var(--app-height);
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    min-height: auto;
    margin-bottom: 8px;
    padding: 14px;
    color: #fff;
    box-shadow: var(--shadow);
    border: 0;
  }

  .hero-actions,
  .eyebrow,
  .tabs {
    display: none;
  }

  .hero img {
    display: block;
  }

  .hero::after {
    display: block;
    background: linear-gradient(180deg, rgba(5, 10, 18, .38), rgba(5, 10, 18, .82));
  }

  .hero > div {
    max-width: none;
  }

  .hero .home-logo {
    width: 62px;
    margin-bottom: 54px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.1;
  }

  .hero p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .9);
  }

  .home-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 8px;
  }

  .home-gallery img {
    height: 70px;
  }

  .quick-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .quick-actions button {
    min-height: 58px;
    padding: 4px 2px;
    font-size: 11px;
  }

  .quick-actions span {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .hero-actions, .message-form, .chat-head {
    grid-template-columns: 1fr;
  }

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

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

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .search-form {
    display: none;
  }

  .band-select {
    min-width: 0;
  }

  .status-pill {
    padding: 0 9px;
    font-size: 12px;
  }

  #feed > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #feed {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  #postList {
    order: 1;
  }

  .composer {
    order: 2;
  }

  #feed > aside {
    order: 3;
    width: 100%;
  }

  #feed > aside .panel:not(.notification-panel) {
    display: none;
  }

  .composer h2 {
    font-size: 16px;
  }

  .segmented {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .segmented button {
    flex: 0 0 auto;
  }

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

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

  .home-join-card {
    grid-column: 1 / -1;
  }

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

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

  .phone-hidden-tool {
    display: none;
  }

  .app-update-admin-panel #appUpdateForm {
    display: none;
  }

  .app-update-admin-panel h2 {
    margin-bottom: 8px;
  }

  .role-lock-options {
    grid-template-columns: 1fr;
  }

  .app-update {
    align-items: stretch;
    flex-direction: column;
  }

  .app-update .update-action {
    width: 100%;
  }

  .album-grid, .album-media-grid, .member-grid, .photo-strip {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-logins {
    grid-template-columns: 1fr;
  }

  .inline-form, .comment-form {
    grid-template-columns: 1fr;
  }

  .team-media-upload,
  .team-photo-grid {
    grid-template-columns: 1fr;
  }

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

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

  .money-payer-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .schedule-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .schedule-list-item em {
    grid-column: 2;
    width: max-content;
  }

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