main {
  max-width: 1200px;
}
.memberfilters {
  display: flex;
  gap: 16px;
  align-items: end;
  margin: 24px 0;
}
.memberfilters label:first-child {
  flex: 1;
}
.counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.count {
  padding: 12px 18px;
  border-radius: 10px;
  background: #eaf1f8;
  color: #102d50;
}
.membertable {
  width: 100%;
  border-collapse: collapse;
}
.membertable th,
.membertable td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid #dce5ed;
}
.membertable th {
  color: #46617c;
}
.membername {
  font-weight: 700;
  color: #102d50;
}
.status {
  display: inline-block;
  border-radius: 14px;
  padding: 4px 10px;
  background: #edf3fa;
  font-size: 13px;
  text-transform: capitalize;
}
.status.inactive {
  background: #f5e8e9;
}
.status.trial {
  background: #e6efff;
}
.profilegrid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.profilegrid section {
  background: #fff;
  padding: 22px;
  border: 1px solid #dce5ed;
  border-radius: 12px;
}
.profileform {
  max-width: 820px;
  margin: 20px auto;
}
.profileform fieldset {
  border: 1px solid #dce5ed;
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}
.profileform legend {
  font-weight: 700;
  color: #102d50;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.privatebadge {
  color: #9b2836;
  font-size: 13px;
}
.duplicates {
  padding: 16px;
  background: #fff3e6;
  border-radius: 10px;
  margin: 16px 0;
}
.importrow {
  border: 1px solid #dce5ed;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}
.wodifysummary {
  padding: 16px;
  background: #f3f7fb;
  border-radius: 10px;
  margin: 16px 0;
}
.wodifysummary h2 {
  margin-top: 0;
}
.wodifystatus {
  font-weight: 600;
}
.namecheck {
  border: 1px solid #f0c48a;
  background: #fff8ee;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.namecheck input {
  width: 100%;
  box-sizing: border-box;
}
.importrow dd {
  overflow-wrap: anywhere;
}
.importkind {
  border: 1px solid #dce5ed;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.importkind label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  font-weight: normal;
  margin: 0;
}
.importkind input[type="radio"] {
  width: auto;
  min-height: 0;
  margin: 4px 0 0;
  padding: 0;
  flex: none;
}
.detailcolumns,
.detailowners {
  margin: 12px 0;
}
.detailcolumns summary,
.detailowners summary {
  cursor: pointer;
  font-weight: 600;
}
.columngrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin: 10px 0;
}
.columngrid label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.columngrid select {
  width: 100%;
  max-width: 100%;
}
.detailchanges {
  border-left: 3px solid #f0c48a;
  padding-left: 12px;
}
.detailchanges ul {
  margin: 4px 0;
  padding-left: 20px;
}
.detailrow li,
.detailrow p {
  overflow-wrap: anywhere;
}
.agechange {
  font-weight: 600;
  color: #7a4a00;
}
.formerror {
  color: #a22435;
  margin: 14px 0;
}
.profiletitle {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}
.profilegrid dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}
.profilegrid dt {
  color: #5c7188;
}
.profilegrid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.profilegrid pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.membertable td {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 650px) {
  .memberfilters {
    flex-wrap: wrap;
  }
  .memberfilters label:first-child {
    flex-basis: 100%;
  }
  .membertable thead {
    display: none;
  }
  .membertable,
  .membertable tbody,
  .membertable tr,
  .membertable td {
    display: block;
  }
  .membertable tr {
    border: 1px solid #dce5ed;
    border-radius: 12px;
    padding: 14px;
    margin: 14px 0;
  }
  .membertable td {
    border: 0;
    padding: 5px 0;
  }
  .membertable .membername {
    font-size: 18px;
  }
  .profilegrid,
  .formgrid {
    grid-template-columns: 1fr;
  }
  .profiletitle {
    align-items: start;
  }
  .profilegrid section {
    padding: 16px;
  }
  .counts {
    gap: 7px;
  }
  .count {
    padding: 10px;
  }
  main {
    padding: 16px !important;
  }
  .toolbar {
    gap: 12px;
    flex-wrap: wrap;
  }
  input,
  select,
  textarea {
    min-width: 0;
    width: 100%;
  }
  .profileform fieldset {
    padding: 14px;
  }
}
.modulelinks a {
  display: inline-block;
  color: #102d50;
  background: white;
  border: 1px solid #d4dfea;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.modulelinks {
  margin-bottom: 24px;
}
@media (max-width: 650px) {
  .profilegrid dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .profilegrid dt:not(:first-child) {
    margin-top: 10px;
  }
  .profilegrid dd {
    overflow-wrap: break-word;
  }
  .privatebadge {
    display: block;
    margin-top: 6px;
  }
  .profiletitle button {
    flex-shrink: 0;
  }
  .modulelinks {
    gap: 8px;
  }
}

#onboardingpanel {
  grid-column: 1/-1;
}
#inviteform {
  max-width: 640px;
}
#inviteform .onboardingcheck {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
#inviteform .onboardingcheck input {
  width: auto;
  flex: none;
  margin-top: 5px;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  margin: 20px 0;
}
.profile-summary span {
  display: block;
  color: #5c7188;
  font-size: 13px;
}
.profile-summary strong {
  overflow-wrap: anywhere;
}
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #dce5ed;
  padding-bottom: 10px;
  margin: 24px 0;
}
.profile-tabs button {
  background: transparent;
  color: #102d50;
  border: 0;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 8px;
  font-weight: 600;
}
.profile-tabs button[aria-selected="true"] {
  border-color: #c51d36;
  color: #0b4f97;
}
.profile-tabs button:focus-visible {
  outline: 2px solid #0b4f97;
}
.profile-card {
  padding: 22px;
  margin: 18px 0;
  background: white;
  border: 1px solid #dce5ed;
  border-radius: 12px;
}
.profile-card h2 {
  margin-bottom: 16px;
}
.profile-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.profile-table th,
.profile-table td {
  padding: 14px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #dce5ed;
  overflow-wrap: anywhere;
}
.profile-table th {
  font-size: 13px;
  color: #526a82;
}
.profile-table td p {
  margin: 5px 0;
}
.profile-table-wrap {
  max-width: 100%;
}
.document-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.document-columns article {
  border-bottom: 1px solid #dce5ed;
  padding: 12px 0;
}
.profile-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
}
.profile-filters label {
  margin: 0;
}
.attendance-bars {
  list-style: none;
  padding: 0;
}
.attendance-bars li {
  display: grid;
  grid-template-columns: 130px 1fr 28px;
  gap: 12px;
  align-items: center;
  margin: 7px 0;
  font-size: 13px;
}
.attendance-bar {
  height: 14px;
  background: #0b4f97;
  border-radius: 3px;
  min-width: 1px;
}
.profilegrid #accountsection {
  grid-column: 1/-1;
}
#accountsection #onboardingpanel {
  border: 0;
  padding: 0;
}
#profilemembershippanel .panel {
  margin: 18px 0;
}
.profile-tabs + section .toolbar h2 {
  margin: 0;
}
@media (max-width: 650px) {
  .profile-summary,
  .document-columns {
    grid-template-columns: 1fr;
  }
  .profile-tabs {
    gap: 3px;
  }
  .profile-tabs button {
    flex: 1 1 140px;
    font-size: 13px;
    padding: 10px 5px;
  }
  .profile-card {
    padding: 14px;
  }
  .profile-table {
    font-size: 12px;
  }
  .profile-table th,
  .profile-table td {
    padding: 10px 4px;
  }
  .profile-filters {
    grid-template-columns: 1fr 1fr;
  }
  .attendance-bars li {
    grid-template-columns: 105px 1fr 22px;
    gap: 8px;
  }
  .profilegrid #accountsection {
    grid-column: auto;
  }
}

.profile-tabs button:hover {
  background: #eaf1f8;
}
.profile-tabs button:focus-visible {
  background: #eaf1f8;
}

/* Profile tabs override the shared plan-tab treatment at every interaction state. */
.profile-tabs button[role="tab"][aria-selected="true"],
.profile-tabs button[role="tab"][aria-selected="true"]:hover,
.profile-tabs button[role="tab"][aria-selected="true"]:focus-visible {
  background: #eaf2fa;
  color: #102d50;
  border-bottom: 3px solid #c52242;
  border-radius: 6px 6px 0 0;
}
.profile-tabs button[role="tab"] {
  line-height: 1.4;
}
.profile-alerts {
  background: white;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 18px 0;
}
.profile-alerts h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
.profile-alerts ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.profile-alerts a {
  display: block;
  border-radius: 6px;
  background: #fff4df;
  color: #724500;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
}
.profile-alerts .muted {
  margin: 0;
}

.profile-actions {
  position: relative;
  flex-shrink: 0;
}
.profile-action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
  min-width: 240px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  background: #fff;
  border: 1px solid #cad7e7;
  border-radius: 8px;
  box-shadow: 0 8px 24px #122d4d26;
}
.profile-action-menu:not([hidden]) {
  display: grid;
  gap: 6px;
}
.profile-action-menu button {
  text-align: left;
  width: 100%;
  white-space: normal;
}

/* Compact management directory, independent of personal mobile chrome. */
#directory .counts {
  gap: 16px;
  margin: 12px 0;
}
#directory .count {
  padding: 0;
  background: none;
  font-size: 12px;
  color: #526a82;
}
#directory .count strong {
  color: #102d50;
}
.directory-top {
  display: flex;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid #dce5ed;
  padding: 10px 0;
}
.directory-top > button {
  margin-left: auto;
  white-space: nowrap;
}
#directoryviews {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#directoryviews button {
  font-size: 12px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #526a82;
}
#directoryviews button[aria-pressed="true"] {
  background: #eaf2fa;
  color: #102d50;
  box-shadow: inset 0 -2px #c52242;
}
#directory .memberfilters {
  gap: 12px;
  margin: 16px 0 8px;
}
#directory .memberfilters label {
  font-size: 12px;
}
#directory .memberfilters input,
#directory .memberfilters select {
  font-size: 13px;
  padding: 9px;
  min-height: 38px;
}
#directorysummary {
  font-size: 12px;
  margin: 10px 0;
}
.directory-custom:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  background: #f3f6fa;
  padding: 14px;
  margin-top: 10px;
}
.directory-custom label {
  font-size: 12px;
}
.directory-custom select {
  font-size: 13px;
}
.directory-table-wrap {
  overflow-x: auto;
}
.membertable {
  font-size: 13px;
}
.membertable th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.membertable th,
.membertable td {
  padding: 8px 10px;
  line-height: 1.35;
  vertical-align: middle;
}
.membertable small {
  display: block;
  font-size: 11px;
  color: #60758a;
  margin-top: 3px;
}
.membertable a {
  color: #102d50;
  text-decoration: none;
}
.membertable a:hover {
  text-decoration: underline;
}
.membertable .status {
  font-size: 11px;
  padding: 3px 7px;
}
@media (max-width: 650px) {
  #directory .memberfilters label:first-child {
    flex-basis: 100%;
  }
  #directory .memberfilters label {
    flex: 1 1 110px;
  }
  .membertable tr {
    padding: 10px;
    margin: 7px 0;
    border-radius: 7px;
  }
  .membertable td {
    padding: 3px 0;
  }
  .membertable .membername {
    font-size: 14px;
  }
  .membertable td:nth-child(4)::before {
    content: "Joined: ";
    color: #60758a;
  }
  .membertable td:nth-child(5)::before {
    content: "Last attendance: ";
    color: #60758a;
  }
  .membertable td:nth-child(6)::before {
    content: "Coach: ";
    color: #60758a;
  }
  .membertable td:nth-child(7)::before {
    content: "App account: ";
    color: #60758a;
  }
  .directory-top {
    flex-wrap: wrap;
  }
  #directoryviews {
    flex: 1 1 100%;
  }
  .directory-custom label {
    width: 100%;
  }
}
#directoryviews {
  margin: 0;
  padding: 0;
  border: 0;
  align-items: center;
  flex: 1;
}
#directoryviews button {
  margin: 0;
}
#directory .directory-top {
  align-items: center;
}
#directory #customfilter {
  margin: 0;
  flex-shrink: 0;
  color: #102d50;
  background: #fff;
  transition: none;
}
#directory #customfilter:hover,
#directory #customfilter:focus-visible {
  background: #eaf2fa;
  color: #102d50;
}
#directoryviews button:hover,
#directoryviews button:focus-visible {
  background: #eaf2fa;
  color: #102d50;
}
#directory .membertable tr:hover {
  background: #edf3fa;
}
/* Profile invoices: one line each; the invoice number opens the details (owner 2026-10-30). */
.invoice-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.invoice-line {
  border-bottom: 1px solid #dce5ed;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.invoice-line summary {
  cursor: pointer;
}
.invoice-ref {
  font-weight: 700;
  text-decoration: underline;
}
.invoice-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fbefd2;
  color: #7a4b00;
}
.invoice-detail p {
  margin: 6px 0;
}
@media (max-width: 600px) {
  .invoice-line summary {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 360px) {
  .invoice-line summary {
    font-size: 13px;
  }
}

/* Deactivate / Reactivate member confirmation (owner 2026-10-30). */
.status.inactive.cannot-sign-in {
  text-transform: none;
}
.status-dialog {
  max-width: min(480px, calc(100vw - 32px));
  margin: auto;
  inset: 0;
  height: fit-content;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  padding: 20px;
}
.status-dialog textarea {
  width: 100%;
  min-height: 64px;
}
/* Wodify import, part 3: the membership a row will add. */
.importterms {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 14px;
  margin: 8px 0;
}
.importterms dt {
  font-weight: 600;
}
.importterms dd {
  margin: 0;
}

/* At-risk members (Brock 2026-11-04): a count that opens the filter, a reason line and the Owner/Admin days setting. */
#directory .atrisk-count {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 0;
}
#directory .atrisk-count[aria-pressed="true"] {
  text-decoration: none;
  box-shadow: inset 0 -2px #c52242;
}
.membertable small.atrisk-reason {
  color: #a3132f;
  font-weight: 600;
}
.atrisk-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 10px;
  font-size: 12px;
}
.atrisk-settings label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
}
.atrisk-settings input {
  width: 6em;
  font-size: 13px;
  padding: 8px;
}
.atrisk-settings button {
  font-size: 12px;
  padding: 8px 12px;
}
.atrisk-settings [role="status"] {
  flex-basis: 100%;
}
.atrisk-settings [role="status"]:empty {
  display: none;
}
/* Wodify import, part 4 (Run 9): members to import, rows not imported and the saved imports list. */
.historypeople {
  border: 1px solid #dce5ed;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.historyperson {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  font-weight: normal;
  margin: 0;
  overflow-wrap: anywhere;
}
.historyperson input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 4px 0 0;
  flex: none;
}
.historyproblems {
  margin: 12px 0;
}
.historyproblems summary {
  cursor: pointer;
  font-weight: 600;
}
.historyproblems li {
  overflow-wrap: anywhere;
  margin: 4px 0;
}
.historyimportlist {
  margin-top: 24px;
}
.historyimports {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.historyimports li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  padding: 12px 16px;
  overflow-wrap: anywhere;
}
.historyimports li span {
  min-width: 0;
  flex: 1 1 220px;
}

/* Parents of dependents (Brock 2026-11-08). */
.family-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.family-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.family-find {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.family-find label {
  flex: 1 1 220px;
}
.family-list a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
