:root {
  --navy-950: #07185c;
  --navy-800: #152b8a;
  --navy-700: #243b9b;
  --ink: #101a3d;
  --muted: #667085;
  --line: #e7ebf3;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --yellow: #f5c400;
  --red: #e31b23;
  --green: #168a46;
  --green-900: #064e3b;
  --green-700: #047857;
  --green-100: #dff6ea;
  --champagne: #f3d88b;
  --orange: #d97706;
  --shadow: 0 18px 45px rgba(16, 26, 61, 0.08);
  --soft-shadow: 0 8px 24px rgba(16, 26, 61, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #f2f6f3;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(6, 78, 59, 0.08) 0 20%, transparent 20% 100%),
    repeating-linear-gradient(90deg, rgba(7, 24, 92, 0.018) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, #fbfdfb 0%, #eef5f0 100%);
}

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

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 288px 1fr;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  color: #fff;
  background: linear-gradient(180deg, #07185c 0%, #10247a 58%, #07185c 100%);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(135deg, rgba(245, 196, 0, 0.18) 0 2px, transparent 2px 18px);
}

.brand {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.brand img {
  width: 96px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.brand-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.nav-link,
.bottom-nav button,
.icon-button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.segmented button,
.status-choice {
  min-height: 44px;
  cursor: pointer;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: 56px;
  padding: 8px 12px 8px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
  font-weight: 760;
  letter-spacing: 0;
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.12);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: var(--yellow);
  transform: translateY(-50%);
}

.nav-icon,
.mini-icon,
.bottom-icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -12px 22px rgba(7, 24, 92, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  color: var(--green-900);
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(226, 247, 235, 0.94) 58%, rgba(243, 216, 139, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.nav-icon::before,
.mini-icon::before,
.bottom-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(315deg, rgba(243, 216, 139, 0.28), transparent 52%);
}

.nav-icon svg,
.mini-icon svg,
.bottom-icon svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(7, 24, 92, 0.14));
}

.nav-link.active .nav-icon {
  color: var(--green-900);
  border-color: rgba(243, 216, 139, 0.72);
  background:
    linear-gradient(145deg, #fff 0%, #eaf8f0 56%, #f7df98 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 3px rgba(245, 196, 0, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.16);
}

.mini-icon {
  color: var(--green-900);
  border-color: rgba(6, 78, 59, 0.12);
  background:
    linear-gradient(145deg, #fff, #e9f8ef 58%, #f8edc8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(6, 78, 59, 0.11);
}

.stat-card .mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.stat-card .mini-icon svg {
  width: 20px;
  height: 20px;
}

.content {
  min-width: 0;
  padding: 22px clamp(16px, 3vw, 34px) 92px;
}

.page-title-wrap {
  min-width: 0;
}

.mobile-brandline {
  display: none;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.top-header h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.page-kicker {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-800);
}

.user-chip strong,
.user-chip span {
  display: block;
  white-space: nowrap;
}

.user-chip strong {
  font-size: 14px;
}

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

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

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

.card,
.panel,
.drawer,
.modal-content {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.card,
.panel {
  padding: 16px;
  min-width: 0;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(6, 78, 59, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.96)),
    #fff;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -46px -34px auto;
  width: 150px;
  height: 82px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.12), rgba(243, 216, 139, 0.14));
  transform: rotate(-12deg);
}

.stat-card.neutral {
  border-color: rgba(6, 78, 59, 0.16);
}

.stat-card.neutral .mini-icon {
  color: var(--green-900);
  background: var(--green-100);
  border-color: rgba(6, 78, 59, 0.16);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stat-value {
  margin: 14px 0 4px;
  color: var(--navy-950);
  font-size: 32px;
  font-weight: 900;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.delta {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.delta.down {
  color: var(--red);
}

.delta.neutral {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 9px;
  border: 1px solid rgba(6, 78, 59, 0.14);
  border-radius: 999px;
  color: var(--green-900);
  background: rgba(223, 246, 234, 0.74);
  font-weight: 850;
}

.section-header,
.toolbar,
.table-row,
.list-row,
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-row {
  min-width: 0;
  align-items: flex-start;
}

.detail-row strong {
  min-width: 0;
  max-width: 62%;
  text-align: right;
  overflow-wrap: anywhere;
}

.section-header {
  margin-bottom: 14px;
}

.section-header h2,
.panel h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.form-control {
  display: grid;
  gap: 7px;
}

.form-control label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

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

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(21, 43, 138, 0.12);
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 12px 26px rgba(6, 78, 59, 0.18);
}

.secondary-button {
  color: var(--green-900);
  background: #eefaf3;
  border: 1px solid rgba(6, 78, 59, 0.14);
}

.ghost-button {
  color: var(--navy-950);
  background: #fff;
  border: 1px solid var(--line);
}

.danger-button {
  color: #fff;
  background: var(--red);
}

.icon-button {
  width: 44px;
  padding: 0;
  color: var(--green-900);
  background:
    linear-gradient(145deg, #fff, #f1fbf5);
  border: 1px solid rgba(6, 78, 59, 0.12);
  box-shadow: 0 10px 22px rgba(6, 78, 59, 0.08);
}

.button-icon {
  display: inline-grid;
  place-items: center;
}

.button-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(243, 216, 139, 0.42);
  border-radius: 999px;
  color: var(--green-900);
  background: rgba(243, 216, 139, 0.18);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  max-width: 100%;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge.success,
.badge.present,
.badge.completed,
.badge.active,
.badge.valid {
  color: var(--green);
  background: #eaf8f0;
}

.badge.warning,
.badge.excused,
.badge.medical,
.badge.attendance_due,
.badge.pending,
.badge.ongoing {
  color: var(--orange);
  background: #fff7ed;
}

.badge.danger,
.badge.absent,
.badge.cancelled,
.badge.missing,
.badge.expired,
.badge.passive,
.badge.failed {
  color: var(--red);
  background: #fff1f2;
}

.badge.planned {
  color: var(--navy-800);
  background: #eef2ff;
}

.data-table {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

td {
  font-size: 14px;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  overflow-wrap: anywhere;
}

.name-cell img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.muted {
  color: var(--muted);
}

.athlete-grid,
.team-grid,
.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.athlete-card,
.team-card,
.coach-card,
.mobile-list-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.athlete-card-top,
.coach-card-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.athlete-card-top img,
.coach-card-top img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

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

.kpi {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kpi strong {
  display: block;
  color: var(--navy-950);
  font-size: 18px;
}

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

.donut {
  --value: 84;
  display: grid;
  place-items: center;
  width: min(210px, 100%);
  aspect-ratio: 1;
  margin: 6px auto;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), var(--red) 0 74%, var(--orange) 74% 88%, #e9edf7 88% 100%);
}

.donut-inner {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-950);
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-inner strong {
  font-size: 28px;
}

.report-ready {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 210px;
}

.report-ready-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 160deg, var(--green-700), var(--champagne), #eef5f0, var(--green-700));
  box-shadow: inset 0 0 0 10px #fff, 0 18px 36px rgba(6, 78, 59, 0.14);
}

.report-ready-mark::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
}

.report-ready-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--green-900);
  background: var(--green-100);
}

.report-ready-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-ready strong,
.executive-empty strong {
  display: block;
  color: var(--navy-950);
  font-size: 17px;
}

.report-ready p,
.executive-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.executive-empty {
  display: grid;
  gap: 16px;
  min-height: 210px;
  align-content: center;
}

.executive-empty-lines {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(6, 78, 59, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdfb, #f3f8f4);
}

.executive-empty-lines span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.2), rgba(243, 216, 139, 0.36));
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--navy-800);
}

.circle-progress {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), #e7ebf3 0);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 900;
}

.circle-progress::before {
  content: "";
  position: absolute;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(245, 196, 0, 0.16);
}

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

.dues-term-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(6, 78, 59, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--soft-shadow);
}

.dues-term-card.active {
  border-color: rgba(245, 196, 0, 0.7);
  background: linear-gradient(180deg, #fff, #f7fcf8);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.12), var(--soft-shadow);
}

.dues-term-card strong,
.dues-term-card small,
.dues-term-card em {
  display: block;
  min-width: 0;
}

.dues-term-card strong {
  color: var(--navy-950);
  font-size: 17px;
}

.dues-term-card small {
  margin-top: 3px;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 850;
}

.dues-term-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.dues-search {
  max-width: 260px;
}

.due-bulk-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(6, 78, 59, 0.1);
  border-radius: 14px;
  background: #f8fcf9;
}

.due-amount-control {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto;
  gap: 7px;
  align-items: center;
  max-width: 170px;
}

.due-amount-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.due-amount-input {
  min-height: 38px;
  padding: 8px 10px;
}

.due-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.segmented button {
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segmented button.active {
  color: #fff;
  background: var(--navy-800);
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(7, 24, 92, 0.28);
  backdrop-filter: blur(3px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(560px, 100vw);
  height: 100vh;
  border-radius: 18px 0 0 18px;
  overflow: hidden;
}

.drawer-header,
.drawer-footer,
.modal-header,
.modal-footer {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-footer,
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.drawer-body,
.modal-body {
  padding: 16px;
  overflow: auto;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.venue-textarea {
  min-height: 118px;
}

.venue-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.venue-showcase span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: 100%;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(6, 78, 59, 0.13);
  border-radius: 999px;
  color: var(--green-900);
  background:
    linear-gradient(145deg, #fff, #f1fbf5);
  box-shadow: 0 10px 22px rgba(6, 78, 59, 0.06);
}

.venue-showcase strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.venue-chip-icon {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--green-900);
  background:
    linear-gradient(145deg, #fff, #dff6ea 70%, #f3d88b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.venue-chip-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.error-text {
  color: var(--red);
  font-size: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  margin-top: 4px;
  color: var(--muted);
}

.toggle-row input {
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  accent-color: var(--navy-800);
}

.setup-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 78, 59, 0.16);
  border-radius: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.94), rgba(7, 24, 92, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: 0 26px 70px rgba(7, 24, 92, 0.16);
}

.setup-panel::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: min(280px, 42%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 216, 139, 0.8));
}

.setup-command {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: #fff;
}

.setup-command > div {
  min-width: 0;
}

.setup-command h2 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.setup-command p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.setup-command .panel-eyebrow {
  color: #fff;
  border-color: rgba(243, 216, 139, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.setup-command .primary-button {
  flex: 0 0 auto;
  color: var(--green-900);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.setup-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.setup-tile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  text-align: left;
  backdrop-filter: blur(16px);
}

.setup-tile:hover,
.setup-tile:focus-visible {
  border-color: rgba(243, 216, 139, 0.62);
  background: rgba(255, 255, 255, 0.14);
}

.setup-tile.featured {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.setup-tile .mini-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--green-900);
  background:
    linear-gradient(145deg, #ffffff 0%, #e6f8ee 66%, #f3d88b 100%);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 26px rgba(0, 0, 0, 0.12);
}

.setup-tile .mini-icon svg {
  width: 21px;
  height: 21px;
}

.setup-tile strong,
.setup-tile small {
  display: block;
}

.setup-tile strong {
  color: #fff;
}

.setup-tile small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

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

.attendance-row {
  display: grid;
  grid-template-columns: 34px minmax(170px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-choice {
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
}

.status-choice.active.present {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.status-choice.active.absent {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.status-choice.active.excused,
.status-choice.active.medical {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.sticky-action {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.chart-bars {
  display: grid;
  gap: 12px;
}

.chart-row {
  display: grid;
  grid-template-columns: 90px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700));
}

.empty-state {
  display: grid;
  gap: 12px;
  place-items: center;
  align-content: center;
  min-height: 220px;
  text-align: center;
  color: var(--muted);
}

.empty-state::before {
  content: "";
  width: 58px;
  height: 58px;
  border: 1px solid rgba(6, 78, 59, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(223, 246, 234, 0.92)),
    repeating-linear-gradient(135deg, rgba(6, 78, 59, 0.13) 0 2px, transparent 2px 10px);
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.08);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 520px);
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(7, 24, 92, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px);
}

.login-hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: clamp(28px, 6vw, 72px);
  color: #fff;
  overflow: hidden;
}

.login-hero > * {
  max-width: 760px;
}

.login-hero::after {
  content: "";
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  right: clamp(28px, 6vw, 72px);
  bottom: 132px;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 216, 139, 0.88), transparent);
}

.login-shell-mark {
  position: relative;
  z-index: 1;
  width: min(454px, 86vw);
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.22);
}

.login-shell-mark img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.login-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.login-hero h1 {
  max-width: 720px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1;
}

.login-hero p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.login-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(243, 216, 139, 0.44);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-proof-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.login-proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.login-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 4vw, 42px);
  background:
    linear-gradient(180deg, #ffffff, #f6faf7);
}

.login-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(6, 78, 59, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 58px rgba(7, 24, 92, 0.12);
}

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

.login-form .primary-button {
  width: 100%;
  min-height: 52px;
}

.login-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 26px;
}

.role-button {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(6, 78, 59, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdfb);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.role-button:hover,
.role-button:focus-visible {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
}

.role-button.is-disabled,
.role-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  background: #f8fafc;
}

.login-assurance {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid rgba(6, 78, 59, 0.1);
  border-radius: 14px;
  background: #f2faf5;
}

.login-assurance strong {
  color: var(--green-900);
  font-size: 13px;
}

.login-assurance span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(4px, env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(21, 43, 138, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(7, 24, 92, 0.16);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 52px;
  padding: 5px 3px;
  border-radius: 13px;
  color: #5d6880;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.08;
}

.bottom-nav button.active {
  color: #fff;
  background: linear-gradient(145deg, var(--green-900), var(--navy-800));
  box-shadow: 0 12px 28px rgba(6, 78, 59, 0.24);
}

.bottom-nav .bottom-icon {
  width: 25px;
  height: 22px;
  border-radius: 10px;
  color: currentColor;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.bottom-nav button.active .bottom-icon {
  color: var(--green-900);
  background:
    linear-gradient(145deg, #fff, #dff6ea 68%, #f3d88b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.bottom-nav .bottom-icon svg {
  width: 18px;
  height: 18px;
}

.toast-region {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  max-width: 340px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 750;
  pointer-events: auto;
}

.mobile-only {
  display: none;
}

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

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

  .grid.two,
  .attendance-layout {
    grid-template-columns: 1fr;
  }

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

  .due-bulk-toolbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .app-shell {
    display: block;
    width: 100%;
    overflow-x: clip;
  }

  .sidebar {
    display: none;
  }

  .content {
    width: 100%;
    overflow-x: clip;
    padding: 16px 12px 116px;
  }

  .top-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .mobile-brandline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 9px 5px 5px;
    border: 1px solid rgba(21, 43, 138, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(16, 26, 61, 0.06);
    color: var(--navy-950);
    font-size: 11px;
    font-weight: 850;
  }

  .mobile-brandline img {
    width: 58px;
    height: 24px;
    object-fit: contain;
  }

  .top-header h1 {
    font-size: clamp(26px, 9vw, 38px);
  }

  .page-kicker {
    max-width: 32ch;
    font-size: 14px;
    line-height: 1.45;
  }

  .user-chip {
    display: none;
  }

  .top-header > .ghost-button[data-action="logout"] {
    width: auto;
    min-width: 74px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(16, 26, 61, 0.08);
  }

  .bottom-nav,
  .mobile-only {
    display: grid;
  }

  .grid.three,
  .filters,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-header .dues-search {
    max-width: none;
  }

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

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

  .panel,
  .card {
    border-radius: 18px;
    padding: 14px;
  }

  .stat-card {
    min-height: 148px;
    padding: 13px;
  }

  .stat-card::after {
    width: 82px;
    height: 82px;
    right: -34px;
    bottom: -38px;
  }

  .stat-value {
    margin-top: 12px;
    font-size: 30px;
  }

  .stat-label {
    font-size: 12px;
    line-height: 1.35;
  }

  .mini-icon {
    width: 38px;
    height: 38px;
  }

  .team-grid,
  .coach-grid,
  .athlete-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-card .toolbar,
  .coach-card .toolbar,
  .athlete-card .toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .team-card .toolbar > *,
  .coach-card .toolbar > *,
  .athlete-card .toolbar > * {
    width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
  }

  .team-card .toolbar > :last-child:nth-child(odd),
  .coach-card .toolbar > :last-child:nth-child(odd),
  .athlete-card .toolbar > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .coach-card-top,
  .athlete-card-top {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .coach-card-top img,
  .athlete-card-top img {
    width: 48px;
    height: 48px;
  }

  .coach-card-top .muted,
  .athlete-card-top .muted {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .data-table table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 0;
    padding: 4px 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

  .name-cell {
    justify-content: flex-end;
    min-width: 0;
    text-align: right;
  }

  .due-actions {
    justify-content: flex-end;
  }

  .due-amount-control {
    margin-left: auto;
  }

  .name-cell strong,
  .name-cell div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .attendance-row {
    grid-template-columns: 28px 1fr;
  }

  .attendance-row .status-buttons {
    grid-column: 1 / -1;
  }

  .drawer {
    width: 100vw;
    border-radius: 0;
  }

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

  .login-hero {
    min-height: 42vh;
  }

  .login-hero::after {
    bottom: 98px;
  }

  .login-shell-mark {
    width: min(320px, 100%);
    padding: 13px 15px;
  }

  .login-shell-mark img {
    width: 100%;
  }

  .setup-command {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .setup-command .primary-button {
    display: none;
  }

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

  .setup-tile {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 84px;
    gap: 10px;
    padding: 12px;
  }

  .setup-tile .mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .setup-tile .mini-icon svg {
    width: 18px;
    height: 18px;
  }

  .setup-tile strong {
    font-size: 13px;
    line-height: 1.18;
  }

  .setup-tile small {
    display: none;
  }

  .report-ready {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .report-ready-mark {
    width: 96px;
  }
}

@media (max-width: 520px) {
  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar > *,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

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

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

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-value {
    font-size: 28px;
  }

  .kpi {
    padding: 9px;
  }

  .kpi strong {
    font-size: 16px;
  }

  .kpi span {
    font-size: 11px;
  }

  .setup-panel {
    padding: 14px;
  }

  .setup-command h2 {
    font-size: 25px;
    line-height: 1.1;
  }

  .setup-tile {
    min-height: 82px;
  }

  .toast-region {
    right: 12px;
    bottom: 118px;
    width: min(320px, calc(100vw - 24px));
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .grid.stats,
  .kpi-row,
  .team-card .toolbar,
  .coach-card .toolbar,
  .athlete-card .toolbar {
    grid-template-columns: 1fr;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
}
