:root {
  --bg: #e8edf0;
  --canvas: #f8f5ea;
  --panel: #ffffff;
  --panel-soft: #f1f6f7;
  --line: #cad6db;
  --line-strong: #94a8b1;
  --text: #14242b;
  --muted: #647680;
  --brand: #006d92;
  --brand-dark: #02465f;
  --brand-ink: #081d26;
  --brand-soft: #e2f4f8;
  --ocean: #073447;
  --ocean-deep: #07161d;
  --cyan: #13bfd2;
  --cyan-soft: #dff9fb;
  --accent: #e21d2f;
  --accent-dark: #a41120;
  --accent-soft: #fff0f2;
  --sand: #d7b66f;
  --sand-soft: #fbf4de;
  --success: #087e5a;
  --danger: #b42318;
  --warn: #8a6100;
  --nav: #07161d;
  --shadow: 0 24px 70px rgba(5, 25, 34, .15);
  --shadow-soft: 0 12px 30px rgba(5, 25, 34, .1);
  --glow: 0 0 0 1px rgba(19, 191, 210, .12), 0 22px 55px rgba(7, 52, 71, .14);
  --radius: 8px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(7, 52, 71, .18), rgba(19, 191, 210, .08) 28%, rgba(215, 182, 111, .12) 58%, transparent 82%),
    linear-gradient(90deg, rgba(7, 52, 71, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 52, 71, .045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 36px 36px, 36px 36px, auto;
  color: var(--text);
  font-family: "Avenir Next", "Bahnschrift", "DIN Alternate", "Trebuchet MS", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
::selection { background: rgba(19, 191, 210, .22); }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(7, 22, 29, .96), rgba(7, 52, 71, .94) 58%, rgba(3, 25, 36, .98)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 18px);
}
.login-card {
  width: min(500px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,245,234,.95));
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .36), 0 0 0 1px rgba(19,191,210,.1);
}
.login-brand {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.login-brand img {
  width: 86px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--glow);
}
.login-card h1 { margin: 0 0 8px; font-size: 30px; color: var(--brand-ink); letter-spacing: 0; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background:
    linear-gradient(180deg, #082433 0%, var(--nav) 62%, #040b0f 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 16px);
  color: #fff;
  padding: 22px 16px;
  border-right: 1px solid rgba(19,191,210,.16);
  box-shadow: 20px 0 55px rgba(5, 25, 34, .24);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 0 0 3px rgba(19,191,210,.1);
  padding: 5px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 24px; letter-spacing: .08em; line-height: 1; }
.brand span { color: #9ec5cf; font-size: 13px; }
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #d8e9ee;
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
  font-weight: 700;
}
.nav button.active,
.nav button:hover {
  background: linear-gradient(90deg, rgba(19,191,210,.18), rgba(255,255,255,.08));
  border-color: rgba(19,191,210,.22);
  color: #fff;
}
.nav button.active {
  box-shadow: inset 3px 0 0 var(--cyan), 0 14px 28px rgba(0,0,0,.18);
}
.main {
  min-width: 0;
  padding: 30px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 4px 0 10px;
}
.topbar-title h1 {
  margin: 10px 0 6px;
  font-size: 34px;
  line-height: 1.08;
  color: var(--brand-ink);
  letter-spacing: 0;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bad7df;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 0 10px;
  box-shadow: var(--shadow-soft);
}
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,250,.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: panel-in .22s ease-out both;
}
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: 1.1fr .9fr; }
.kpi {
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--brand), var(--sand));
}
.kpi strong { display: block; font-size: 34px; margin-top: 8px; color: var(--brand-ink); letter-spacing: 0; }
.kpi span, .muted { color: var(--muted); }

.toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(7, 52, 71, .14);
}
.search-wrap {
  position: relative;
  width: min(460px, 100%);
}
.search-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
}
.search-wrap .search { padding-left: 40px; }
.search { width: min(460px, 100%); }
.status-filter { width: 180px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42px;
  padding: 8px 11px;
  background: linear-gradient(180deg, #fff, #fbfdfd);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(7, 52, 71, .035);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(19, 191, 210, .2);
  border-color: var(--brand);
}
textarea { min-height: 84px; resize: vertical; }
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(19, 191, 210, .24);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--brand);
  box-shadow: none;
}
.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: rgba(0, 109, 146, .4);
  color: var(--brand-dark);
}
.password-toggle .icon {
  width: 18px;
  height: 18px;
}
.audit-toolbar {
  align-items: stretch;
  gap: 10px;
}
.audit-toolbar .search-wrap {
  min-width: min(420px, 100%);
}
.audit-toolbar .status-filter {
  min-height: 42px;
}
.audit-row td {
  vertical-align: top;
}
.audit-detail-row td {
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  padding: 0;
}
.audit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.audit-detail-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.035);
  padding: 12px;
}
.audit-detail-grid > div.wide {
  grid-column: 1 / -1;
}
.audit-detail-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.audit-detail-grid span {
  color: var(--text);
  word-break: break-word;
}
.audit-details-json {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--text);
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.audit-details-empty {
  color: var(--muted);
}
.statistics-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}
.statistics-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 3vw, 42px);
}
.statistics-hero p {
  max-width: 760px;
  color: var(--muted);
}
.statistics-builder {
  margin-top: 16px;
}
.statistics-dataset-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(0, 220, 255, .06);
}
.statistics-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.statistics-output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 16px;
  margin-top: 16px;
}
.statistics-v2-grid,
.statistics-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.statistics-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.statistics-saved-list {
  display: grid;
  gap: 10px;
}
.statistics-saved-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255,255,255,.035);
}
.statistics-saved-item strong {
  display: block;
}
.statistics-saved-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.statistics-widget .statistics-chart {
  min-height: 230px;
}
.statistics-widget .statistics-bar {
  height: 210px;
}
.statistics-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.statistics-alert-list {
  display: grid;
  gap: 10px;
}
.statistics-alert {
  border: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(244,183,64,.08);
}
.statistics-alert-danger {
  border-left-color: var(--danger);
  background: rgba(255,91,102,.08);
}
.statistics-alert strong,
.statistics-alert span {
  display: block;
}
.statistics-alert span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.statistics-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 310px;
  padding: 18px 8px 4px;
  overflow-x: auto;
}
.statistics-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  min-width: 34px;
  height: 280px;
  gap: 8px;
}
.statistics-bar > span {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  box-shadow: 0 10px 24px rgba(0, 220, 255, .18);
}
.statistics-bar > span.tone-1 { background: linear-gradient(180deg, #27c981, #0f8f66); }
.statistics-bar > span.tone-2 { background: linear-gradient(180deg, #f4b740, #b77413); }
.statistics-bar > span.tone-3 { background: linear-gradient(180deg, #7fa9b8, #3f6674); }
.statistics-bar > span.tone-4 { background: linear-gradient(180deg, #ff5b66, #a92834); }
.statistics-bar small {
  width: 70px;
  margin-left: -18px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  transform: rotate(-38deg);
  transform-origin: top right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-light .statistics-dataset-note {
  background: rgba(0, 109, 146, .07);
}
@media (max-width: 980px) {
  .statistics-output-grid {
    grid-template-columns: 1fr;
  }
  .statistics-v2-grid {
    grid-template-columns: 1fr;
  }
  .statistics-question-grid {
    grid-template-columns: 1fr;
  }
  .statistics-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .statistics-hero {
    align-items: flex-start;
  }
  .statistics-filter-grid {
    grid-template-columns: 1fr;
  }
  .statistics-chart {
    min-height: 260px;
  }
}
.button, .primary, .ghost, .secondary, .danger, .icon-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 0 13px;
  box-shadow: var(--shadow-soft);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.button:hover, .primary:hover, .ghost:hover, .secondary:hover, .danger:hover, .icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(5, 25, 34, .14);
}
.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: #fff;
}
.compact-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}
.compact-action.active-action {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.info-icon { color: var(--brand-dark); background: var(--brand-soft); border-color: #a9d7e2; }
.edit-icon { color: #715315; background: var(--sand-soft); border-color: #ead59a; }
.danger-icon { color: var(--accent-dark); background: var(--accent-soft); border-color: #f1b8c0; }
.primary { background: linear-gradient(135deg, var(--brand), var(--ocean)); color: #fff; border-color: var(--ocean); font-weight: 800; }
.primary:hover { background: linear-gradient(135deg, var(--ocean), var(--ocean-deep)); border-color: var(--ocean-deep); }
.ghost:hover, .button:hover { border-color: var(--line-strong); background: var(--panel-soft); }
.danger { color: var(--danger); }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
table { width: 100%; min-width: 760px; border-collapse: collapse; }
.clubs-table { min-width: 980px; }
.insurance-table { min-width: 1040px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 13px; text-align: left; vertical-align: top; }
th {
  background: linear-gradient(180deg, #eef6f8, #e5eff2);
  color: #405762;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom-color: #bfd0d7;
}
.sort-header {
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-transform: inherit;
  box-shadow: none;
}
.sort-header:hover {
  color: var(--brand);
  transform: none;
  box-shadow: none;
}
td { max-width: 360px; overflow-wrap: anywhere; }
tbody tr:hover { background: #eef9fb; }
tbody tr:nth-child(even) { background: rgba(241, 246, 247, .72); }
tbody tr:nth-child(even):hover { background: #eaf7f9; }
tbody tr { transition: background .14s ease; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { color: var(--brand-ink); }
tr:last-child td { border-bottom: 0; }
.actions-cell {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.club-logo {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 18px rgba(5, 25, 34, .08);
}
.club-logo-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e8f6f9, var(--sand-soft));
}
.link { border: 0; background: transparent; color: var(--brand-dark); font-weight: 700; cursor: pointer; padding: 0; text-align: left; }
.rider-link { margin-right: 8px; }
.rider-palmares-icon { vertical-align: middle; }
.doc-link { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.request-doc-link { display: inline-flex; margin-top: 8px; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #eef3f6;
  border: 1px solid transparent;
}
.status.ok { background: #e2f7ee; color: var(--success); border-color: #b6e5d1; }
.status.warn { background: var(--sand-soft); color: var(--warn); border-color: #ead59a; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.label-with-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.duplicate-score-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #efd59b;
  border-radius: 999px;
  background: #fff8e7;
  color: var(--warn);
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.3;
  text-transform: none;
}
.field-note { margin-top: 5px; text-transform: none; font-weight: 500; }
.public-contact-block {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(0, 109, 146, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 198, 215, .08), rgba(39, 201, 139, .08)),
    rgba(255, 255, 255, .72);
}
.public-contact-head {
  display: grid;
  gap: 4px;
}
.public-contact-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.public-contact-grid {
  gap: 12px;
}
.category-default-hint {
  margin-top: 2px;
  padding: 11px 13px;
  border: 1px solid rgba(0, 220, 255, .18);
  border-radius: var(--radius);
  background: rgba(0, 220, 255, .08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(241,246,247,.78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.pagination .actions { margin-top: 0; }
button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}
.empty { color: var(--muted); text-align: center; padding: 24px; }
.error { color: var(--danger); margin-top: 12px; }
.notice {
  border: 1px solid #ead59a;
  border-radius: var(--radius);
  background: var(--sand-soft);
  color: #684000;
  padding: 12px;
}
.notice strong, .notice span { display: block; }
.notice span { margin-top: 4px; text-transform: none; font-weight: 500; color: #684000; }
.approval-panel { margin-top: 16px; }
.approval-panel h2 { margin: 0 0 10px; font-size: 18px; }
.reject-form { margin-top: 12px; }
.documents-panel { margin-top: 16px; }
.documents-panel h2 { margin: 0 0 12px; font-size: 18px; }
.duplicate-scan-panel { margin-top: 16px; }
.duplicate-scan-panel h2 { margin: 0 0 12px; font-size: 18px; }
.duplicate-warning-table { margin-top: 12px; }
.soft-notice { border-color: var(--line); background: #f2f8fa; color: var(--brand-ink); }
.club-tabs-panel { margin-top: 16px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(7, 52, 71, .14);
  margin: -4px 0 16px;
  padding-bottom: 10px;
}
.tab {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--ocean));
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 52, 71, .16);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.accounting-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.accounting-summary {
  display: inline-grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  min-width: 150px;
  box-shadow: 0 8px 22px rgba(5, 25, 34, .07);
}
.accounting-summary span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.accounting-summary strong { font-size: 22px; }
.accounting-summary.balance-due { border-color: #ead59a; background: var(--sand-soft); }
.accounting-summary.balance-ok { border-color: #b6e5d1; background: #eafaf3; }
.insurance-summaries .accounting-summary { flex: 1 1 190px; }
.insurance-summaries .accounting-summary strong { overflow-wrap: anywhere; }
.rider-palmares-panel { margin-top: 16px; }
.rider-palmares-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(7, 52, 71, .14);
}
.rider-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #a9d7e2;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  color: var(--brand-dark);
  box-shadow: var(--shadow-soft);
}
.rider-avatar .icon { width: 28px; height: 28px; }
.rider-palmares-head h2 {
  margin: 2px 0 4px;
  font-size: 24px;
  color: var(--brand-ink);
}
.rider-palmares-head p { margin: 0; color: var(--muted); }
.rider-palmares-grid {
  grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
  align-items: start;
}
.rider-palmares-grid h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--brand-ink);
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.document-preview-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(5, 25, 34, .08);
}
.document-preview-card:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.document-preview-frame {
  height: 280px;
  background: #eef6f8;
  border-bottom: 1px solid var(--line);
}
.document-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #fff;
}
.document-preview-caption {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}
.document-preview-caption strong { font-size: 14px; }
.document-preview-caption span { color: var(--muted); font-size: 12px; }
.competition-registration-panel {
  padding: 16px;
}
.competition-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.competition-choice.document-preview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 96px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.competition-date-card {
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 6px;
}
.competition-date-card.single-date {
  grid-template-columns: 64px;
}
.competition-date-pill {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 6px 4px;
  border: 1px solid rgba(0, 198, 215, .25);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 198, 215, .14), rgba(6, 18, 26, .72)),
    radial-gradient(circle at 50% 0%, rgba(39, 201, 139, .22), transparent 58%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.competition-date-pill small,
.competition-date-pill em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.competition-date-pill strong {
  line-height: .98;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
}
.competition-choice-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.competition-choice-copy strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}
.competition-choice-copy span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.document-manage-card {
  display: grid;
  gap: 8px;
}
.document-status-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 2px;
}
.document-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.document-crud-form {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7fbfc, var(--panel-soft));
}
.document-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}
.document-template-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(0, 220, 255, .08), rgba(39, 201, 129, .035)),
    rgba(7, 25, 36, .86);
  box-shadow: var(--shadow-soft);
}
.document-template-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.document-template-topline h3 {
  margin: 4px 0 0;
  font-size: 19px;
  color: var(--text);
}
.document-template-badges,
.template-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.document-template-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}
.document-template-meta div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(142, 181, 195, .12);
  border-radius: var(--radius);
  background: rgba(2, 8, 13, .28);
}
.document-template-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.document-template-meta dd {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-template-editor textarea {
  min-height: 190px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}
.doc-member-search-field {
  position: relative;
  z-index: 4;
}
.doc-member-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% - 2px);
  right: 0;
  left: 0;
  display: none;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(0, 220, 255, .22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 220, 255, .12), transparent 32%),
    #06131c;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}
.doc-member-search-results.open {
  display: grid;
  gap: 6px;
}
.doc-member-search-results button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(142, 181, 195, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.doc-member-search-results button:hover {
  border-color: rgba(0, 220, 255, .36);
  background: rgba(0, 220, 255, .12);
}
.doc-member-search-results button strong {
  color: #f4fbfd;
  font-size: 13px;
}
.doc-member-search-results button span,
.doc-member-empty {
  color: var(--muted);
  font-size: 12px;
}
.doc-member-empty {
  padding: 10px;
}
.template-helper {
  padding: 12px;
  border: 1px solid rgba(0, 220, 255, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 220, 255, .08), rgba(39, 201, 129, .04)),
    rgba(2, 8, 13, .3);
}
.template-helper strong {
  width: 100%;
  color: #eafcff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-helper span {
  display: inline-flex;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(0, 220, 255, .28);
  border-radius: 999px;
  background: rgba(0, 220, 255, .12);
  color: #bdf8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.template-variable-chip {
  cursor: grab;
  user-select: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.template-variable-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 220, 255, .48);
  background: rgba(0, 220, 255, .2);
  color: #f4fdff;
}
.template-variable-chip:active {
  cursor: grabbing;
}
.template-drop-target {
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.template-drop-hover {
  border-color: rgba(0, 220, 255, .58) !important;
  background: rgba(0, 220, 255, .08) !important;
  box-shadow: 0 0 0 4px rgba(0, 220, 255, .1);
}
.tasks-panel {
  display: grid;
  gap: 16px;
}
.task-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}
.task-summary-strip > div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 220, 255, .08), rgba(3, 26, 37, .72)),
    rgba(2, 15, 23, .78);
}
.task-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.task-summary-strip strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.task-list {
  display: grid;
  gap: 10px;
}
.task-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 220, 255, .06), transparent 48%),
    rgba(3, 20, 30, .76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  transition: transform .18s ease, border-color .18s ease;
}
.task-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 220, 255, .28);
}
.task-card.task-danger {
  border-color: rgba(255, 89, 103, .26);
}
.task-card.task-warn {
  border-color: rgba(244, 183, 64, .24);
}
.task-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 220, 255, .09);
  color: var(--cyan);
}
.task-body {
  min-width: 0;
}
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.task-head h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 16px;
}
.task-body p {
  margin: 7px 0 0;
  color: var(--muted);
}
.task-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.task-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: 999px;
  color: #cfe8ee;
  background: rgba(142, 181, 195, .07);
  font-size: 12px;
}
.results-panel .notice {
  margin-bottom: 12px;
}
.result-inline-input {
  width: 86px;
  min-height: 36px;
  text-align: right;
}
.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(7, 52, 71, .14);
}
.wizard-steps button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  padding: 0 11px;
  cursor: pointer;
  font-weight: 800;
}
.wizard-steps button.active {
  background: linear-gradient(135deg, var(--brand), var(--ocean));
  border-color: var(--ocean);
  color: #fff;
}
.import-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.import-source-card {
  cursor: pointer;
  text-align: left;
}
.import-source-card strong {
  display: block;
  font-size: 20px;
  color: var(--brand-ink);
  margin-bottom: 8px;
}
.import-source-card span {
  color: var(--muted);
  line-height: 1.45;
}
.import-table {
  margin-top: 12px;
}
.import-table select,
.import-table input {
  min-width: 150px;
}
.import-report-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(9, 96, 101, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--brand-ink);
  font-weight: 700;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.inline-mini {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 6px;
  padding: 0 9px;
  border: 1px solid rgba(245, 86, 101, .28);
  border-radius: 8px;
  background: rgba(245, 86, 101, .08);
  color: #b32034;
  font-size: 12px;
  font-weight: 900;
}
.inline-mini:hover {
  background: rgba(245, 86, 101, .14);
}
.request-doc-remove {
  grid-column: 1 / -1;
}

.manager-bottom-nav {
  display: none;
}

.manager-mobile-home-loading {
  min-height: 50vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.manager-mobile-home {
  display: none;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 16px 36px rgba(5, 25, 34, .22);
  }
  .brand { margin-bottom: 12px; padding-bottom: 12px; }
  .brand-mark { width: 48px; height: 52px; }
  .nav { display: flex; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
  .nav button { flex: 0 0 auto; white-space: nowrap; }
  .main { min-width: 0; padding: 18px; overflow-x: hidden; }
  .kpis, .split, .form-grid, .rider-palmares-grid { grid-template-columns: 1fr; }
  .topbar, .toolbar { flex-direction: column; align-items: stretch; }
  .rider-palmares-head { grid-template-columns: auto minmax(0, 1fr); }
  .rider-palmares-head .ghost { grid-column: 1 / -1; }
  .search-wrap, .search { width: 100%; }
  .login-brand { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .main { padding: 14px; }
  .panel { padding: 14px; }
  .topbar-title h1 { font-size: 28px; }
  .brand strong { font-size: 21px; }
  .nav button { min-height: 42px; }
  .club-profile-panel { padding: 16px; }
  .club-profile-identity {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .club-profile-logo {
    width: 58px;
    height: 58px;
  }
  .club-profile-identity h2 {
    font-size: 24px;
  }
  .club-profile-card {
    min-height: 0;
    padding: 14px;
  }
  .social-links {
    grid-template-columns: 1fr;
  }
  .social-link {
    min-height: 38px;
    justify-content: flex-start;
    padding: 9px 11px;
  }
  .form-grid label,
  .form-grid .actions {
    min-width: 0;
  }
  .form-grid .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .form-grid .actions button {
    width: 100%;
    justify-content: center;
  }
  .reference-map-toolbar {
    display: grid;
  }
  .reference-map-canvas {
    min-height: 320px;
  }
  .document-grid { grid-template-columns: 1fr; }
  .document-preview-frame { height: 220px; }
  .import-source-grid, .import-report-kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* FRMS premium dark control-room redesign */
:root {
  --bg: #02080d;
  --canvas: #06121a;
  --panel: #071924;
  --panel-soft: #0b2230;
  --panel-strong: #0d2a38;
  --line: rgba(142, 181, 195, .18);
  --line-strong: rgba(20, 198, 219, .42);
  --text: #f4f8f7;
  --muted: #8fa8b3;
  --brand: #00c8e7;
  --brand-dark: #0297b5;
  --brand-ink: #f7fbfb;
  --brand-soft: rgba(0, 200, 231, .12);
  --ocean: #062430;
  --ocean-deep: #02090e;
  --cyan: #00dcff;
  --cyan-soft: rgba(0, 220, 255, .16);
  --accent: #ff5967;
  --accent-dark: #ff4455;
  --accent-soft: rgba(255, 89, 103, .12);
  --sand: #f4b740;
  --sand-soft: rgba(244, 183, 64, .14);
  --success: #27c981;
  --danger: #ff5b66;
  --warn: #f6a93b;
  --nav: #02090f;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, .28);
  --glow: 0 0 0 1px rgba(0, 220, 255, .16), 0 22px 70px rgba(0, 200, 231, .14);
  --radius: 10px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 22% 8%, rgba(0, 220, 255, .16), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(39, 201, 129, .1), transparent 25%),
    radial-gradient(circle at 55% 100%, rgba(0, 89, 115, .34), transparent 40%),
    linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #02070c 0%, #06131b 42%, #02080d 100%);
  color: var(--text);
  font-family: "Sora", "Cabinet Grotesk", "General Sans", "Avenir Next", "Trebuchet MS", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 220, 255, .055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.028) 1px, transparent 1px),
    radial-gradient(ellipse at 50% -20%, rgba(0, 200, 231, .13), transparent 52%);
  background-size: 48px 48px, 48px 48px, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background:
    repeating-linear-gradient(120deg, rgba(255,255,255,.08) 0 1px, transparent 1px 11px);
  mix-blend-mode: overlay;
}

.login-screen {
  background:
    radial-gradient(circle at 24% 20%, rgba(0, 220, 255, .22), transparent 30%),
    linear-gradient(135deg, rgba(2, 8, 13, .98), rgba(5, 28, 39, .96));
}
.login-card,
.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 34, 48, .92), rgba(6, 18, 26, .96)),
    linear-gradient(135deg, rgba(0, 220, 255, .1), transparent 42%);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.045);
}
.login-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 220, 255, .12), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(0, 200, 231, .14), transparent 30%);
  opacity: .7;
}
.panel > *,
.login-card > * { position: relative; }
.login-card h1,
.login-card p,
.topbar-title h1,
.kpi strong,
.import-source-card strong,
.rider-palmares-head h2,
.rider-palmares-grid h3 { color: var(--text); }

.app-shell {
  grid-template-columns: 304px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 220, 255, .14), transparent 30%),
    linear-gradient(180deg, rgba(4, 18, 27, .98), rgba(2, 8, 13, .98) 58%, #010407 100%);
  border-right: 1px solid rgba(0, 220, 255, .16);
  box-shadow: 26px 0 80px rgba(0,0,0,.34);
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0, 220, 255, .07)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 18px);
}
.sidebar > * { position: relative; }
.brand {
  padding: 12px 8px 22px;
  border-bottom-color: rgba(255,255,255,.09);
}
.brand-mark {
  width: 64px;
  height: 68px;
  background: rgba(255,255,255,.96);
  border-color: rgba(0, 220, 255, .34);
  box-shadow: 0 0 0 5px rgba(0,220,255,.06), 0 18px 48px rgba(0,0,0,.38);
}
.brand strong {
  font-size: 30px;
  letter-spacing: .04em;
}
.brand span {
  color: #a9c4cd;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
}
.nav { gap: 8px; }
.nav button {
  min-height: 44px;
  color: #c8d9de;
  border-color: transparent;
  background: rgba(255,255,255,.012);
  font-size: 14px;
  font-weight: 760;
}
.nav button:hover {
  background: rgba(0, 220, 255, .08);
  border-color: rgba(0, 220, 255, .2);
  color: #fff;
}
.nav button.active {
  background: linear-gradient(90deg, rgba(0, 220, 255, .22), rgba(39, 201, 129, .08));
  border-color: rgba(0, 220, 255, .38);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cyan), 0 16px 34px rgba(0, 220, 255, .1);
}
.sidebar-performance {
  margin-top: auto;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 220, 255, .17);
  border-radius: 12px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 8, 13, .85) 72%),
    radial-gradient(circle at 70% 8%, rgba(0, 220, 255, .24), transparent 36%),
    linear-gradient(135deg, rgba(0, 78, 105, .46), rgba(2, 8, 13, .94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 42px rgba(0,0,0,.28);
}
.sidebar-performance strong {
  font-size: 17px;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sidebar-performance span { color: #bdd0d5; font-size: 12px; }

.main { padding: 26px 34px 40px; }
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(142, 181, 195, .11);
}
.topbar-title h1 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 850;
  letter-spacing: -.01em;
}
.topbar-title.title-empty h1 {
  display: none;
}
.topbar-title.title-empty {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-title.title-empty .muted {
  margin: 0;
}
.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-icon {
  position: relative;
  width: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(142, 181, 195, .18);
  border-radius: 50%;
  background: rgba(4, 18, 27, .8);
  color: #d9f4f5;
  box-shadow: none;
}
.topbar-icon span {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #001218;
  font-size: 11px;
  font-weight: 900;
}
.topbar-icon.has-alerts {
  border-color: rgba(244, 183, 64, .42);
  color: #ffd37a;
  box-shadow: 0 0 22px rgba(244, 183, 64, .14);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 11px 4px 4px;
  border: 1px solid rgba(142, 181, 195, .18);
  border-radius: 999px;
  background: rgba(4, 18, 27, .72);
  cursor: pointer;
  box-shadow: none;
}
.user-chip > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0bbbd5, #0a6074);
  color: #fff;
  font-weight: 900;
}
.user-chip strong { display: block; color: #fff; font-size: 13px; }
.user-chip small { display: block; color: var(--muted); font-size: 11px; }
.identity-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  min-width: 250px;
  padding: 8px;
  border: 1px solid rgba(142, 181, 195, .18);
  border-radius: var(--radius-lg);
  background: rgba(2, 9, 14, .98);
  box-shadow: var(--shadow-soft);
}
.identity-menu[hidden] { display: none; }
.identity-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #dcebef;
  text-align: left;
  box-shadow: none;
}
.identity-menu button:hover {
  background: rgba(0, 220, 255, .1);
  color: #fff;
}
.identity-menu-section {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(142, 181, 195, .14);
}
.identity-menu-section > span {
  padding: 4px 10px 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.identity-menu button strong,
.identity-menu button small {
  display: block;
}
.identity-menu button strong {
  color: inherit;
  font-size: 13px;
}
.identity-menu button small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.password-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 4, 8, .68);
}
.password-card {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(0, 220, 255, .2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 0, rgba(0, 220, 255, .13), transparent 38%),
    rgba(5, 18, 27, .98);
  box-shadow: var(--shadow);
}
.password-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.password-head h2 {
  margin: 4px 0 0;
  color: #f4fbfd;
}
.role-pill {
  background: rgba(0, 220, 255, .11);
  color: var(--cyan);
  border-color: rgba(0, 220, 255, .28);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.toolbar {
  border-bottom-color: rgba(142, 181, 195, .12);
}
.kpi {
  background:
    radial-gradient(circle at 100% 0, rgba(0, 220, 255, .16), transparent 34%),
    linear-gradient(180deg, rgba(11, 34, 48, .92), rgba(7, 25, 36, .95));
}
.kpi::before {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(39, 201, 129, .8), transparent);
}
.kpi strong {
  font-size: 38px;
  text-shadow: 0 0 22px rgba(0, 220, 255, .15);
}
.muted,
.kpi span { color: var(--muted); }

input, select, textarea {
  background: rgba(2, 8, 13, .52);
  border-color: rgba(142, 181, 195, .2);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(0, 220, 255, .13);
  border-color: rgba(0, 220, 255, .55);
}
input[type="date"] {
  color-scheme: dark;
  min-width: 150px;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(135deg);
  opacity: .8;
  cursor: pointer;
}
label span {
  color: #8fb0ba;
  letter-spacing: .08em;
}
.search-wrap .icon { color: var(--cyan); }

.button, .primary, .ghost, .secondary, .danger, .icon-button {
  border-color: rgba(142, 181, 195, .18);
  background: rgba(4, 18, 27, .78);
  color: var(--text);
  box-shadow: none;
  font-weight: 800;
}
.button:hover, .primary:hover, .ghost:hover, .secondary:hover, .danger:hover, .icon-button:hover {
  border-color: rgba(0, 220, 255, .42);
  background: rgba(7, 36, 49, .95);
  box-shadow: 0 14px 38px rgba(0, 220, 255, .09);
}
.primary {
  background: linear-gradient(135deg, #00dcff, #11b8c9 48%, #11836f);
  border-color: rgba(0, 220, 255, .72);
  color: #011016;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
}
.primary:hover {
  background: linear-gradient(135deg, #6af2ff, #00c8e7);
  color: #001218;
}
.info-icon,
.compact-action.active-action {
  color: var(--cyan);
  background: rgba(0, 220, 255, .12);
  border-color: rgba(0, 220, 255, .34);
}
.edit-icon {
  color: #ffd37a;
  background: rgba(244, 183, 64, .12);
  border-color: rgba(244, 183, 64, .34);
}
.danger-icon,
.danger {
  color: #ff8991;
  background: rgba(255, 89, 103, .11);
  border-color: rgba(255, 89, 103, .32);
}
.ok-icon {
  color: #2ef2a5;
  background: rgba(39, 201, 129, .12);
  border-color: rgba(39, 201, 129, .34);
}

.table-wrap {
  border-color: rgba(142, 181, 195, .14);
  background: rgba(2, 8, 13, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), var(--shadow-soft);
}
table {
  color: var(--text);
}
th {
  background: linear-gradient(180deg, rgba(9, 32, 44, .96), rgba(5, 18, 26, .96));
  color: #9fb9c2;
  border-bottom-color: rgba(0, 220, 255, .16);
  letter-spacing: .07em;
}
td {
  border-bottom-color: rgba(142, 181, 195, .1);
}
tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
tbody tr:hover,
tbody tr:nth-child(even):hover {
  background: rgba(0, 220, 255, .07);
}
.sort-header { color: inherit; }
.sort-header:hover { color: var(--cyan); }
.clickable-row:hover td { color: #fff; }

.status {
  border-color: rgba(142, 181, 195, .18);
  background: rgba(142, 181, 195, .08);
  color: #c9d9dd;
}
.status.ok {
  background: rgba(39, 201, 129, .14);
  color: #67f0b1;
  border-color: rgba(39, 201, 129, .28);
}
.status.warn {
  background: rgba(244, 183, 64, .14);
  color: #ffd37a;
  border-color: rgba(244, 183, 64, .28);
}
.status.danger {
  background: rgba(255, 89, 103, .12);
  color: #ff8991;
  border-color: rgba(255, 89, 103, .28);
}
.notice,
.soft-notice {
  background: rgba(244, 183, 64, .1);
  border-color: rgba(244, 183, 64, .24);
  color: #ffe2a5;
}
.notice span { color: #dfc897; }
.empty { color: #8aa6af; }
.error { color: #ff8991; }

.tabs {
  border-bottom-color: rgba(142, 181, 195, .12);
}
.tab,
.wizard-steps button {
  background: rgba(4, 18, 27, .78);
  color: #b9ccd2;
  border-color: rgba(142, 181, 195, .18);
}
.tab.active,
.wizard-steps button.active {
  background: linear-gradient(135deg, rgba(0, 220, 255, .28), rgba(39, 201, 129, .1));
  border-color: rgba(0, 220, 255, .45);
  color: #fff;
}
.accounting-summary,
.document-crud-form,
.document-preview-card,
.import-source-card,
.checkbox-row {
  background: rgba(7, 25, 36, .86);
  border-color: rgba(142, 181, 195, .16);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.accounting-summary span,
.document-preview-caption span,
.import-source-card span { color: var(--muted); }
.accounting-summary.balance-ok { background: rgba(39, 201, 129, .1); border-color: rgba(39, 201, 129, .25); }
.accounting-summary.balance-due { background: rgba(244, 183, 64, .1); border-color: rgba(244, 183, 64, .25); }
.club-logo,
.brand-mark {
  background: rgba(255,255,255,.96);
}
.link,
.doc-link { color: var(--cyan); }
.pagination {
  background: rgba(4, 18, 27, .75);
  border-color: rgba(142, 181, 195, .16);
  color: var(--muted);
}
.billing-panel .section-heading {
  margin: 8px 0 18px;
  padding: 18px;
  border: 1px solid rgba(0, 220, 255, .16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 220, 255, .11), rgba(39, 201, 129, .05)),
    rgba(7, 25, 36, .72);
}
.billing-panel .section-heading h2 {
  margin: 4px 0;
  font-size: 28px;
}
.compact-form {
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius-lg);
  background: rgba(4, 18, 27, .55);
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  display: inline-grid;
  place-content: center;
  flex: 0 0 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(142, 181, 195, .58);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0)),
    rgba(4, 18, 27, .88);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 0 0 0 rgba(0, 220, 255, 0);
  vertical-align: middle;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .14s ease;
  background: #06121a;
  clip-path: polygon(14% 48%, 0 64%, 40% 100%, 100% 18%, 84% 4%, 37% 68%);
}
input[type="checkbox"]:checked {
  border-color: rgba(0, 220, 255, .92);
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.22),
    0 0 0 3px rgba(0, 220, 255, .13);
}
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:hover {
  border-color: rgba(0, 220, 255, .78);
}
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 0 0 4px rgba(0, 220, 255, .22);
}
.inline-check,
.payment-target {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.inline-field {
  display: inline-grid;
  gap: 5px;
  min-width: 230px;
}
.inline-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.payment-targets {
  display: grid;
  gap: 12px;
}
.surfware-user-target {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 84px;
  align-items: center;
}
.compact-input {
  min-height: 34px;
  padding: 7px 9px;
  text-align: center;
}
.payment-targets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.payment-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.payment-target {
  padding: 10px 12px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: 8px;
  background: rgba(7, 25, 36, .72);
}
.payment-target small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.invoice-print-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  padding: 28px;
  background: rgba(1, 10, 15, .82);
  backdrop-filter: blur(12px);
}
.invoice-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: auto;
  padding: 28px;
  background: rgba(1, 10, 15, .78);
  backdrop-filter: blur(12px);
}
.planner-import-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: auto;
  padding: 28px;
  background: rgba(1, 10, 15, .78);
  backdrop-filter: blur(12px);
}
.planner-import-card {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(142, 181, 195, .18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 0, rgba(0, 220, 255, .12), transparent 36%),
    linear-gradient(135deg, rgba(0, 220, 255, .08), rgba(39, 201, 129, .04)),
    rgba(7, 25, 36, .96);
  box-shadow: var(--shadow-soft);
}
.invoice-detail-card {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(142, 181, 195, .18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 220, 255, .08), rgba(39, 201, 129, .04)),
    rgba(7, 25, 36, .96);
  box-shadow: var(--shadow-soft);
}
.invoice-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.invoice-detail-head h2 {
  margin: 4px 0;
  font-size: 28px;
}
.invoice-detail-card h3 {
  margin: 22px 0 10px;
  color: var(--text);
}
.invoice-print-toolbar {
  width: min(920px, 100%);
  margin: 0 auto 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.invoice-preview-sheet {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 42px;
  border-radius: 14px;
  background: #f8fbfb;
  color: #09202a;
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.invoice-preview-header,
.invoice-preview-parties,
.invoice-preview-summary,
.invoice-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}
.invoice-preview-header {
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid #d9e5e8;
}
.invoice-preview-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.invoice-preview-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.invoice-preview-brand strong {
  display: block;
  font-size: 30px;
  letter-spacing: 0;
}
.invoice-preview-brand span,
.invoice-preview-meta span,
.invoice-preview-parties span,
.invoice-preview-summary span {
  display: block;
  color: #5d737b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.invoice-preview-meta {
  text-align: right;
}
.invoice-preview-meta strong {
  display: block;
  font-size: 34px;
}
.invoice-preview-parties {
  margin: 28px 0;
}
.invoice-preview-parties > div {
  flex: 1;
  padding: 18px;
  border: 1px solid #dbe7ea;
  border-radius: 10px;
  background: #ffffff;
}
.invoice-preview-parties strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}
.invoice-preview-parties p {
  margin: 6px 0 0;
  color: #476069;
}
.invoice-preview-designation {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #dbe7ea;
  border-radius: 10px;
  background: #ffffff;
}
.invoice-preview-designation span {
  display: block;
  color: #5d737b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.invoice-preview-designation ul {
  margin: 0;
  padding-left: 18px;
}
.invoice-preview-designation li {
  margin: 7px 0;
  color: #193540;
}
.invoice-preview-designation li strong {
  white-space: nowrap;
}
.invoice-preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  color: #102b35;
}
.invoice-preview-table th,
.invoice-preview-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #dde8eb;
  text-align: left;
  color: #102b35;
}
.invoice-preview-table th {
  color: #35525d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #edf5f7;
}
.invoice-preview-table tbody tr:nth-child(even) {
  background: #f3f8f9;
}
.invoice-preview-table strong {
  color: #071b23;
}
.invoice-preview-table .amount {
  text-align: right;
  white-space: nowrap;
}
.invoice-preview-table.compact th,
.invoice-preview-table.compact td {
  padding: 9px 10px;
}
.invoice-preview-summary {
  margin: 28px 0;
  justify-content: flex-end;
}
.invoice-preview-summary > div {
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #eaf3f5;
}
.invoice-preview-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}
.invoice-preview-summary .due {
  background: #fff0d6;
}
.invoice-preview-summary .paid {
  background: #ddf8eb;
}
.invoice-preview-payments h3 {
  margin: 0 0 10px;
}
.invoice-preview-payments p {
  color: #5d737b;
}
.invoice-preview-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #d9e5e8;
  color: #6c8087;
  font-size: 12px;
}

.club-profile-panel {
  overflow: hidden;
  position: relative;
}
.club-profile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 220, 255, .16), transparent 34%),
    linear-gradient(135deg, rgba(39, 201, 129, .08), transparent 46%);
}
.club-profile-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(142, 181, 195, .16);
}
.club-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.club-profile-logo {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 220, 255, .22);
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  padding: 8px;
}
.member-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 220, 255, .24);
  object-fit: cover;
  background:
    radial-gradient(circle at 35% 20%, rgba(0, 220, 255, .24), transparent 45%),
    rgba(4, 18, 27, .76);
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}
.member-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.member-avatar-lg {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.member-avatar-empty {
  font-size: 13px;
}
.member-avatar-lg.member-avatar-empty {
  font-size: 24px;
}
.member-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}
.member-photo-edit-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius-lg);
  background: rgba(4, 18, 27, .55);
}
.member-photo-edit-preview span {
  margin: 0;
  color: var(--muted);
}
.photo-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 10, 16, .82);
  backdrop-filter: blur(14px);
}
.photo-crop-card {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(0, 220, 255, .2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(7, 25, 36, .98), rgba(4, 18, 27, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  padding: 18px;
}
.photo-crop-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.photo-crop-head h2 {
  margin: 4px 0 0;
}
.photo-crop-canvas {
  display: block;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border: 1px solid rgba(0, 220, 255, .26);
  border-radius: 50%;
  background: #06121a;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.03);
}
.photo-crop-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.photo-crop-controls input[type="range"] {
  width: 100%;
}
.club-profile-identity h2 {
  margin: 4px 0;
  font-size: 32px;
  letter-spacing: 0;
}
.club-profile-identity p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.club-profile-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.club-profile-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius-lg);
  background: rgba(4, 18, 27, .62);
}
.club-profile-card.wide {
  grid-column: span 2;
}
.club-profile-card span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.club-profile-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}
.club-profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.club-profile-foot {
  color: var(--muted);
  line-height: 1.45;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(0, 220, 255, .22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 220, 255, .07);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.social-link:hover {
  border-color: rgba(0, 220, 255, .48);
  background: rgba(0, 220, 255, .14);
  transform: translateY(-1px);
}
.social-link .icon {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.stacked-form {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 220, 255, .08), transparent 42%),
    rgba(4, 18, 27, .62);
}
.stacked-form h2 {
  margin: 4px 0 4px;
  font-size: 20px;
}
.stacked-form p {
  margin: 0;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-form label {
  min-width: min(260px, 100%);
}
.inline-form button {
  min-height: 44px;
}

.dash-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(0, 220, 255, .18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 220, 255, .22), transparent 34%),
    linear-gradient(135deg, rgba(4, 18, 27, .94), rgba(7, 36, 49, .74)),
    linear-gradient(90deg, rgba(39, 201, 129, .08), transparent);
  box-shadow: var(--shadow-soft);
}
.dash-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,.08) 45%, transparent 46% 100%),
    repeating-linear-gradient(90deg, rgba(142, 181, 195, .08) 0 1px, transparent 1px 72px);
}
.dash-hero > * {
  position: relative;
  z-index: 1;
}
.dash-hero h2 {
  margin: 6px 0;
  max-width: 760px;
  color: #f4fbfd;
  font-size: clamp(30px, 4vw, 58px);
  line-height: .96;
}
.dash-hero-global h2 {
  max-width: none;
  white-space: nowrap;
}
.dash-hero p {
  max-width: 720px;
  margin: 0;
  color: #9fb9c2;
  font-size: 15px;
  line-height: 1.6;
}
.dash-hero-metrics {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(176px, 1fr));
  gap: 12px;
  min-width: min(460px, 100%);
}
.dash-hero-signal {
  align-self: stretch;
  display: grid;
  place-content: center;
  padding: 18px;
  border: 1px solid rgba(0, 220, 255, .22);
  border-radius: var(--radius-lg);
  background: rgba(2, 8, 13, .52);
  text-align: center;
}
.dash-hero-signal-integration {
  border-color: rgba(39, 201, 129, .22);
  background:
    radial-gradient(circle at 70% 12%, rgba(39, 201, 129, .14), transparent 42%),
    rgba(2, 8, 13, .5);
}
.dash-hero-signal span,
.dash-panel-head span,
.dash-kpi span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dash-hero-signal strong {
  color: #f4fbfd;
  font-size: 44px;
  line-height: 1;
}
.dash-hero-signal small {
  color: var(--muted);
}
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.dash-kpi {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(9, 32, 44, .9), rgba(4, 18, 27, .86)),
    rgba(2, 8, 13, .6);
}
.dash-kpi::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .16;
}
.dash-kpi strong {
  display: block;
  margin-top: 12px;
  color: #f8fdff;
  font-size: 28px;
  line-height: 1;
}
.dash-kpi em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}
.dash-kpi-cyan { color: var(--cyan); }
.dash-kpi-green { color: #2ef2a5; }
.dash-kpi-amber { color: #ffd37a; }
.dash-kpi-slate { color: #a8c9d5; }
.dash-grid-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.dash-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.dash-panel {
  min-height: 310px;
  padding: 18px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(8, 29, 40, .8), rgba(3, 13, 20, .78)),
    rgba(2, 8, 13, .52);
  box-shadow: var(--shadow-soft);
}
.dash-panel-wide {
  grid-column: span 2;
}
.dash-grid-two .dash-panel-wide {
  grid-column: auto;
}
.dash-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.dash-panel-head strong {
  color: #f4fbfd;
  font-size: 18px;
}
.dash-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 230px;
  padding-top: 12px;
}
.dash-bars-compact {
  min-height: 190px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.dash-bar-item {
  flex: 1;
  min-width: 34px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}
.dash-bars-compact .dash-bar-item {
  min-width: 54px;
}
.dash-bars-compact .dash-bar-track {
  min-height: 128px;
}
.dash-bar-track {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 160px;
  border-radius: 7px;
  background: rgba(142, 181, 195, .08);
}
.dash-bar-track span {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #61efff, #00bcd7 54%, #11836f);
  box-shadow: 0 0 22px rgba(0, 220, 255, .2);
}
.dash-bars-annual-creations .dash-bar-track span {
  background: linear-gradient(180deg, #ffd37a, #f4b740 54%, #b86618);
  box-shadow: 0 0 22px rgba(244, 183, 64, .18);
}
.dash-bar-item small {
  overflow: hidden;
  color: #9fb9c2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-bar-item strong {
  color: #f4fbfd;
  font-size: 12px;
}
.dash-hbars {
  display: grid;
  gap: 14px;
}
.dash-hbar.compact {
  margin-top: 10px;
}
.dash-hbar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #d7e8ed;
}
.dash-hbar-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-hbar-head strong {
  color: #f4fbfd;
}
.dash-hbar-note {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.dash-hbar-stack {
  display: flex;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: 999px;
  background: rgba(142, 181, 195, .08);
}
.dash-hbar-stack span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 7px;
  color: #04121b;
}
.dash-hbar-stack .family-0 { background: linear-gradient(90deg, #00dcff, #15bfe3); }
.dash-hbar-stack .family-1 { background: linear-gradient(90deg, #27c981, #58dfac); }
.dash-hbar-stack .family-2 { background: linear-gradient(90deg, #f4b740, #ffd27b); }
.dash-hbar-stack em {
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.dash-hbar-stack strong {
  color: inherit;
  font-size: 12px;
}
.dash-hbar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(142, 181, 195, .1);
}
.dash-hbar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00dcff, #27c981);
}
.dash-hbar-track .tone-1 { background: linear-gradient(90deg, #f4b740, #00dcff); }
.dash-hbar-track .tone-2 { background: linear-gradient(90deg, #27c981, #8fb0ba); }
.dash-hbar-track .tone-3 { background: linear-gradient(90deg, #ff5b66, #f4b740); }
.dash-sex-bars {
  gap: 16px;
}
.dash-sex-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dash-sex-legend span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.dash-sex-stack {
  display: flex;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: 999px;
  background: rgba(142, 181, 195, .08);
}
.dash-sex-stack span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
}
.dash-sex-legend .female,
.dash-sex-stack .female {
  background: linear-gradient(90deg, #ff7ab6, #f2448f);
}
.dash-sex-legend .male,
.dash-sex-stack .male {
  background: linear-gradient(90deg, #14b8ff, #006dff);
}
.dash-sex-stack em {
  color: #f8fcff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.dash-pyramid {
  display: grid;
  gap: 10px;
  padding: 4px 0;
}
.dash-pyramid-head,
.dash-pyramid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.dash-pyramid-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.dash-pyramid-head span:first-child {
  text-align: right;
}
.dash-pyramid-head strong,
.dash-pyramid-row > strong {
  color: #d7e8ed;
  text-align: center;
}
.dash-pyramid-row > strong {
  font-size: 12px;
}
.dash-pyramid-side {
  display: flex;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(142, 181, 195, .08);
}
.dash-pyramid-side.female {
  justify-content: flex-end;
}
.dash-pyramid-side span {
  display: flex;
  align-items: center;
  min-width: 28px;
  padding: 0 8px;
  border-radius: inherit;
}
.dash-pyramid-side.female span {
  justify-content: flex-start;
  background: linear-gradient(90deg, #ff7ab6, #f2448f);
  box-shadow: 0 0 18px rgba(242, 68, 143, .18);
}
.dash-pyramid-side.male span {
  justify-content: flex-end;
  background: linear-gradient(90deg, #14b8ff, #006dff);
  box-shadow: 0 0 18px rgba(20, 184, 255, .18);
}
.dash-pyramid-side em {
  color: #f8fcff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.dash-donut-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 16px;
}
.dash-donut {
  position: relative;
  display: grid;
  width: 160px;
  height: 160px;
  place-content: center;
  border-radius: 999px;
}
.dash-donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: inherit;
  background: #06121a;
  box-shadow: inset 0 0 22px rgba(0,0,0,.45);
}
.dash-donut strong,
.dash-donut span {
  position: relative;
  z-index: 1;
  text-align: center;
}
.dash-donut strong {
  color: #f4fbfd;
  font-size: 28px;
}
.dash-donut span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.empty-donut {
  background: rgba(142, 181, 195, .1);
}
.dash-legend {
  display: grid;
  gap: 10px;
}
.dash-legend div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  color: #cfe0e5;
}
.dash-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-legend strong {
  color: #f4fbfd;
}
.dash-list {
  display: grid;
  gap: 10px;
}
.dash-list-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(142, 181, 195, .1);
  border-radius: var(--radius-md);
  background: rgba(2, 8, 13, .34);
}
.dash-list-row span {
  color: var(--cyan);
  font-weight: 800;
  font-size: 12px;
}
.dash-list-row strong {
  color: #f4fbfd;
}
.dash-list-row em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
}
.dash-finance-stack {
  display: grid;
  gap: 12px;
}
.dash-finance-stack div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(142, 181, 195, .12);
  border-radius: var(--radius-md);
  background: rgba(2, 8, 13, .36);
}
.dash-finance-stack span {
  color: var(--muted);
}
.dash-finance-stack strong {
  color: #f4fbfd;
}
.dash-finance-stack .warn strong { color: #ffd37a; }
.dash-finance-stack .ok strong { color: #67f0b1; }
.dash-finance-stack-compact {
  gap: 8px;
}
.dash-finance-stack-compact div {
  padding: 10px 12px;
}
.dashboard-deferred {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed rgba(142, 181, 195, .22);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 220, 255, .08), transparent 36%),
    rgba(2, 8, 13, .22);
}
.dashboard-deferred strong {
  color: #f4fbfd;
  font-size: 16px;
}
.dashboard-deferred span {
  color: var(--muted);
  line-height: 1.45;
}
.dashboard-deferred .ghost {
  justify-self: start;
}
.dash-open-competitions {
  display: grid;
  gap: 12px;
}
.dash-open-competition {
  display: grid;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(142, 181, 195, .12);
  border-radius: var(--radius-md);
  background: rgba(2, 8, 13, .34);
}
.dash-open-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.dash-open-head strong {
  display: block;
  color: #f4fbfd;
}
.dash-open-head span {
  color: var(--muted);
  font-size: 12px;
}
.dash-open-head em {
  flex: 0 0 auto;
  color: var(--cyan);
  font-style: normal;
  font-weight: 900;
}
.club-compliance-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
  border-color: rgba(0, 220, 255, .16);
}
.club-compliance-score {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: var(--radius-lg);
  background: rgba(2, 8, 13, .38);
}
.club-compliance-score span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.club-compliance-score strong {
  color: #f4fbfd;
  font-size: 42px;
  line-height: 1;
}
.club-compliance-score em {
  color: var(--muted);
  font-style: normal;
}
.club-compliance-score.ok strong { color: #67f0b1; }
.club-compliance-score.warn strong { color: #ffd37a; }
.club-compliance-score.danger strong { color: #ff8991; }
.club-compliance-list {
  display: grid;
  align-content: center;
  gap: 14px;
}
.compliance-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compliance-issues span,
.compliance-issues em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(244, 183, 64, .25);
  border-radius: 999px;
  background: rgba(244, 183, 64, .1);
  color: #ffe2a5;
  font-size: 12px;
  font-style: normal;
  padding: 0 10px;
}
.references-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.references-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}
.references-sidebar-head strong,
.reference-head h2 {
  display: block;
  margin-top: 6px;
  color: #f4fbfd;
  font-size: 22px;
}
.reference-list {
  display: grid;
  gap: 8px;
}
.reference-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(142, 181, 195, .12);
  border-radius: var(--radius-md);
  background: rgba(2, 8, 13, .28);
  color: #dcebef;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.reference-list button:hover,
.reference-list button.active {
  transform: translateX(2px);
  border-color: rgba(0, 220, 255, .38);
  background: linear-gradient(135deg, rgba(0, 220, 255, .16), rgba(39, 201, 129, .08));
}
.reference-list span {
  font-weight: 900;
}
.reference-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.reference-field-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(142, 181, 195, .14);
  border-radius: var(--radius-md);
  background: rgba(2, 8, 13, .18);
}
.reference-field-group legend {
  padding: 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}
.reference-field-group > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.reference-field-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.reference-field-group-grid .wide {
  grid-column: 1 / -1;
}
.reference-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.reference-head p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.reference-form-panel textarea {
  min-height: 130px;
  resize: vertical;
}
.reference-map-picker {
  overflow: hidden;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 220, 255, .12), transparent 28%),
    linear-gradient(135deg, rgba(2, 24, 35, .72), rgba(4, 12, 18, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.reference-map-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(142, 181, 195, .12);
}
.reference-map-toolbar strong {
  display: block;
  margin-top: 4px;
  color: #f4fbfd;
  font-size: 16px;
}
.reference-map-toolbar p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.reference-map-canvas {
  min-height: 420px;
  background: #071824;
  isolation: isolate;
}
.reference-map-canvas .leaflet-control-attribution {
  background: rgba(2, 8, 13, .72);
  color: rgba(244, 251, 253, .74);
  border-radius: 8px 0 0 0;
}
.reference-map-canvas .leaflet-control-attribution a {
  color: #20d8ff;
}
.reference-map-status {
  padding: 11px 16px;
  border-top: 1px solid rgba(142, 181, 195, .12);
  color: var(--muted);
  font-size: 12px;
}
.configuration-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
.configuration-hero h2 {
  margin: 6px 0 8px;
  color: #f4fbfd;
  font-size: clamp(26px, 3vw, 42px);
}
.configuration-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.configuration-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 220, 255, .22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 35% 30%, rgba(0, 220, 255, .24), transparent 54%),
    rgba(2, 12, 18, .64);
  color: var(--cyan);
}
.configuration-mark .icon {
  width: 38px;
  height: 38px;
}
.configuration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.configuration-card {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(6, 31, 44, .88), rgba(3, 12, 18, .76)),
    radial-gradient(circle at 82% 14%, rgba(0, 220, 255, .16), transparent 38%);
  color: #eaf7fa;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.configuration-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 220, 255, .44);
  background:
    linear-gradient(145deg, rgba(7, 40, 56, .94), rgba(3, 12, 18, .8)),
    radial-gradient(circle at 82% 14%, rgba(0, 220, 255, .22), transparent 42%);
}
.configuration-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 220, 255, .26);
  border-radius: 16px;
  color: var(--cyan);
  background: rgba(0, 220, 255, .08);
}
.configuration-card em {
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.configuration-card strong {
  color: #fff;
  font-size: 22px;
}
.configuration-card > span:last-child {
  color: var(--muted);
  line-height: 1.5;
}
.manager-mobile-list {
  display: none;
}
.manager-mobile-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(6, 31, 44, .88), rgba(3, 12, 18, .72)),
    radial-gradient(circle at 92% 8%, rgba(0, 220, 255, .14), transparent 40%);
  box-shadow: var(--shadow-soft);
}
.manager-mobile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.manager-mobile-head strong {
  display: block;
  color: #f4fbfd;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.manager-mobile-head span:not(.status) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.manager-mobile-meta,
.manager-mobile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.manager-mobile-meta {
  color: var(--muted);
  font-size: 12px;
}
.manager-mobile-filter-row {
  display: contents;
}
.manager-mobile-actions .primary,
.manager-mobile-actions .danger,
.manager-mobile-actions .ghost,
.manager-mobile-actions a.ghost {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 40px;
}
.manager-mobile-actions a.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.manager-request-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 164, 63, .22);
  border-radius: 12px;
  background: rgba(244, 164, 63, .08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.manager-request-note strong {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.toggle-field {
  min-height: 46px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(142, 181, 195, .16);
  border-radius: var(--radius);
  background: rgba(2, 8, 13, .22);
}
.toggle-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}
.toggle-field span {
  color: #dcebef;
  font-weight: 800;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.badge-ok {
  border: 1px solid rgba(39, 201, 129, .35);
  background: rgba(39, 201, 129, .14);
  color: #71f0b8;
}
.badge-muted {
  border: 1px solid rgba(142, 181, 195, .18);
  background: rgba(142, 181, 195, .08);
  color: #9fb9c2;
}

body.theme-light {
  --bg: #e8edf0;
  --canvas: #f8f5ea;
  --panel: #ffffff;
  --panel-soft: #f1f6f7;
  --panel-strong: #ffffff;
  --line: #cad6db;
  --line-strong: #94a8b1;
  --text: #14242b;
  --muted: #647680;
  --brand: #006d92;
  --brand-dark: #02465f;
  --brand-ink: #081d26;
  --brand-soft: #e2f4f8;
  --ocean: #073447;
  --ocean-deep: #07161d;
  --cyan: #0aaec4;
  --cyan-soft: #dff9fb;
  --accent: #d7192b;
  --accent-dark: #a41120;
  --accent-soft: #fff0f2;
  --sand: #c99220;
  --sand-soft: #fbf4de;
  --success: #087e5a;
  --danger: #b42318;
  --warn: #8a6100;
  --nav: #07161d;
  --shadow: 0 24px 70px rgba(5, 25, 34, .15);
  --shadow-soft: 0 12px 30px rgba(5, 25, 34, .1);
  --glow: 0 0 0 1px rgba(19, 191, 210, .12), 0 22px 55px rgba(7, 52, 71, .14);
}
body.theme-light {
  color-scheme: light;
  background:
    linear-gradient(145deg, rgba(7, 52, 71, .15), rgba(19, 191, 210, .07) 28%, rgba(215, 182, 111, .12) 58%, transparent 82%),
    linear-gradient(90deg, rgba(7, 52, 71, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 52, 71, .04) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 36px 36px, 36px 36px, auto;
}
body.theme-light::before {
  background:
    linear-gradient(90deg, rgba(7, 52, 71, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 52, 71, .032) 1px, transparent 1px),
    radial-gradient(ellipse at 50% -20%, rgba(19, 191, 210, .1), transparent 52%);
}
body.theme-light::after {
  opacity: .08;
  mix-blend-mode: multiply;
}
body.theme-light .topbar {
  border-bottom-color: rgba(7, 52, 71, .12);
}
body.theme-light .role-pill {
  background: #ffffff;
  border-color: #bad7df;
  color: var(--brand-dark);
}
body.theme-light .panel,
body.theme-light .login-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,250,.96));
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow);
}
body.theme-light .panel::before,
body.theme-light .login-card::before {
  opacity: .28;
  background:
    linear-gradient(90deg, rgba(19, 191, 210, .1), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(7, 52, 71, .08), transparent 30%);
}
body.theme-light .login-card h1,
body.theme-light .login-card p,
body.theme-light .topbar-title h1,
body.theme-light .kpi strong,
body.theme-light .import-source-card strong,
body.theme-light .rider-palmares-head h2,
body.theme-light .rider-palmares-grid h3 {
  color: var(--brand-ink);
}
body.theme-light .topbar-icon,
body.theme-light .user-chip,
body.theme-light .button,
body.theme-light .ghost,
body.theme-light .secondary,
body.theme-light .icon-button {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(7, 52, 71, .14);
  color: var(--brand-dark);
  box-shadow: var(--shadow-soft);
}
body.theme-light .topbar-icon:hover,
body.theme-light .button:hover,
body.theme-light .ghost:hover,
body.theme-light .secondary:hover,
body.theme-light .icon-button:hover {
  background: var(--panel-soft);
  border-color: rgba(0, 109, 146, .28);
  box-shadow: 0 14px 34px rgba(7, 52, 71, .12);
}
body.theme-light .user-chip strong { color: var(--brand-ink); }
body.theme-light .user-chip small { color: var(--muted); }
body.theme-light .identity-menu {
  background: rgba(255,255,255,.98);
  border-color: var(--line);
}
body.theme-light .identity-menu button {
  color: var(--text);
}
body.theme-light .identity-menu button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
body.theme-light .kpi {
  background:
    radial-gradient(circle at 100% 0, rgba(19, 191, 210, .12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,246,247,.95));
}
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
body.theme-light input[type="date"] {
  color-scheme: light;
}
body.theme-light input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}
body.theme-light label span,
body.theme-light .toggle-field span {
  color: var(--muted);
}
body.theme-light .table-wrap {
  background: rgba(255, 255, 255, .84);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
body.theme-light table {
  color: var(--text);
}
body.theme-light th {
  background: linear-gradient(180deg, #eef6f8, #e5eff2);
  color: var(--muted);
  border-bottom-color: var(--line);
}
body.theme-light td {
  border-bottom-color: rgba(7, 52, 71, .1);
}
body.theme-light tbody tr:nth-child(even) { background: rgba(241, 246, 247, .72); }
body.theme-light tbody tr:hover,
body.theme-light tbody tr:nth-child(even):hover {
  background: #eef9fb;
}
body.theme-light .clickable-row:hover td { color: var(--brand-ink); }
body.theme-light .status {
  background: #eef3f6;
  color: var(--muted);
  border-color: var(--line);
}
body.theme-light .status.ok {
  background: #e2f7ee;
  color: var(--success);
  border-color: #b6e5d1;
}
body.theme-light .status.warn {
  background: var(--sand-soft);
  color: var(--warn);
  border-color: #ead59a;
}
body.theme-light .status.danger {
  background: var(--accent-soft);
  color: var(--danger);
  border-color: #f1b8c0;
}
body.theme-light .notice,
body.theme-light .soft-notice,
body.theme-light .accounting-summary,
body.theme-light .document-crud-form,
body.theme-light .document-preview-card,
body.theme-light .import-source-card,
body.theme-light .checkbox-row,
body.theme-light .compact-form,
body.theme-light .toggle-field {
  background: rgba(255,255,255,.88);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
body.theme-light .tab,
body.theme-light .wizard-steps button,
body.theme-light .pagination {
  background: rgba(255,255,255,.88);
  border-color: var(--line);
  color: var(--text);
}
body.theme-light .tab.active,
body.theme-light .wizard-steps button.active {
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border-color: rgba(0, 109, 146, .32);
  color: var(--brand-dark);
}
body.theme-light input[type="checkbox"] {
  background:
    linear-gradient(180deg, #fff, #eef6f8);
  border-color: rgba(7, 52, 71, .54);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.7),
    0 1px 2px rgba(5, 25, 34, .12);
}
body.theme-light input[type="checkbox"]:checked {
  border-color: #006d92;
  background: linear-gradient(135deg, #00a7c7, #159a72);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.3),
    0 0 0 3px rgba(0, 109, 146, .18);
}
body.theme-light input[type="checkbox"]::before {
  background: #fff;
}
body.theme-light input[type="checkbox"]:hover {
  border-color: #006d92;
}
body.theme-light input[type="checkbox"]:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.5),
    0 0 0 4px rgba(0, 109, 146, .22);
}
body.theme-light .badge-muted {
  background: #eef3f6;
  color: var(--muted);
  border-color: var(--line);
}
body.theme-light .badge-ok {
  background: #e2f7ee;
  color: var(--success);
  border-color: #b6e5d1;
}
body.theme-light .dash-hero,
body.theme-light .dash-panel,
body.theme-light .dash-kpi,
body.theme-light .dash-hero-signal,
body.theme-light .dash-list-row,
body.theme-light .dash-finance-stack div,
body.theme-light .dash-open-competition,
body.theme-light .club-profile-panel,
body.theme-light .club-profile-card,
body.theme-light .task-summary-strip > div,
body.theme-light .task-card,
body.theme-light .document-template-card,
body.theme-light .references-sidebar,
body.theme-light .reference-list button,
body.theme-light .configuration-hero,
body.theme-light .configuration-card,
body.theme-light .manager-mobile-card,
body.theme-light .invoice-detail-card,
body.theme-light .photo-crop-card,
body.theme-light .password-card {
  background:
    radial-gradient(circle at 100% 0, rgba(19, 191, 210, .1), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,246,247,.94));
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
body.theme-light .dash-hero::before,
body.theme-light .club-profile-panel::before {
  opacity: .28;
}
body.theme-light .dash-hero h2,
body.theme-light .dash-panel-head strong,
body.theme-light .dash-kpi strong,
body.theme-light .dash-list-row strong,
body.theme-light .dash-open-head strong,
body.theme-light .club-profile-identity h2,
body.theme-light .club-profile-card strong,
body.theme-light .task-head h3,
body.theme-light .references-sidebar-head strong,
body.theme-light .reference-head h2,
body.theme-light .configuration-hero h2,
body.theme-light .configuration-card strong,
body.theme-light .manager-mobile-head strong,
body.theme-light .invoice-detail-head h2,
body.theme-light .password-head h2 {
  color: var(--brand-ink);
}
body.theme-light .dash-hero p,
body.theme-light .dash-hero-signal span,
body.theme-light .dash-panel-head span,
body.theme-light .dash-kpi span,
body.theme-light .dash-list-row span,
body.theme-light .dash-open-head span,
body.theme-light .club-profile-identity p,
body.theme-light .club-profile-card span,
body.theme-light .club-profile-card p,
body.theme-light .club-profile-foot,
body.theme-light .task-body p,
body.theme-light .task-meta span,
body.theme-light .configuration-hero p,
body.theme-light .configuration-card > span:last-child,
body.theme-light .manager-mobile-head span:not(.status),
body.theme-light .manager-mobile-meta,
body.theme-light .reference-head p {
  color: var(--muted);
}
body.theme-light .configuration-mark,
body.theme-light .configuration-card-icon {
  background: var(--brand-soft);
  border-color: rgba(0, 109, 146, .24);
  color: #006d92;
}
body.theme-light .configuration-card:hover {
  background:
    radial-gradient(circle at 100% 0, rgba(19, 191, 210, .16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(231,240,243,.94));
  border-color: rgba(0, 109, 146, .32);
}
body.theme-light .dash-bar-track,
body.theme-light .dash-hbar-track,
body.theme-light .dash-donut,
body.theme-light .member-photo-edit-preview,
body.theme-light .reference-list button {
  background: rgba(7, 52, 71, .08);
}
body.theme-light .reference-list button:hover,
body.theme-light .reference-list button.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: rgba(0, 109, 146, .26);
}
body.theme-light .reference-map-picker {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 109, 146, .12), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(231,240,243,.92));
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
body.theme-light .reference-map-toolbar {
  border-bottom-color: var(--line);
}
body.theme-light .reference-map-toolbar strong {
  color: var(--brand-ink);
}
body.theme-light .reference-map-toolbar p,
body.theme-light .reference-map-status {
  color: var(--muted);
}
body.theme-light .reference-map-status {
  border-top-color: var(--line);
}
body.theme-light .reference-map-canvas {
  background: #dcebef;
}
body.theme-light .dash-kpi-green { color: #087e5a; }
body.theme-light .dash-kpi-amber { color: #9b6704; }
body.theme-light .dash-kpi-slate { color: #47626d; }
body.theme-light .task-card.task-danger { border-color: #f1b8c0; }
body.theme-light .task-card.task-warn { border-color: #ead59a; }
body.theme-light .password-modal,
body.theme-light .invoice-detail-modal,
body.theme-light .invoice-print-modal,
body.theme-light .planner-import-modal,
body.theme-light .photo-crop-modal {
  background: rgba(231, 240, 243, .76);
}
body.theme-light .planner-import-card {
  background:
    radial-gradient(circle at 82% 0, rgba(0, 109, 146, .12), transparent 36%),
    linear-gradient(135deg, rgba(0, 109, 146, .08), rgba(39, 201, 129, .05)),
    rgba(255, 255, 255, .98);
}
body.theme-light .dashboard-deferred {
  background:
    radial-gradient(circle at 100% 0, rgba(0, 109, 146, .08), transparent 36%),
    #f8fbfc;
  border-color: #b8cbd2;
}
body.theme-light .dashboard-deferred strong {
  color: var(--brand-ink);
}
body.theme-light .dashboard-deferred span {
  color: #526873;
}
body.theme-light .social-link {
  background: #e8f6f8;
  border-color: #a9d7e2;
  color: #073447;
}
body.theme-light .social-link .icon {
  color: #006d92;
}
body.theme-light .social-link:hover {
  background: #d8f0f5;
  border-color: #6fbccc;
}

/* Manager / Mon club: high-contrast light theme pass. */
body.theme-light .club-tabs-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(0, 109, 146, .08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,249,.96));
  border-color: #b8cbd2;
}
body.theme-light .club-tabs-panel .tabs {
  border-bottom-color: #b8cbd2;
}
body.theme-light .club-tabs-panel .tab {
  background: #f8fbfc;
  border-color: #b9ccd4;
  color: #18333f;
  box-shadow: none;
}
body.theme-light .club-tabs-panel .tab:hover {
  background: #e8f6f8;
  border-color: #7fbcca;
  color: #02465f;
}
body.theme-light .club-tabs-panel .tab.active {
  background: linear-gradient(135deg, #02465f, #006d92);
  border-color: #02465f;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 109, 146, .18);
}
body.theme-light .club-profile-card,
body.theme-light .club-compliance-score {
  background: linear-gradient(180deg, #ffffff, #f2f7f8);
  border-color: #b8cbd2;
}
body.theme-light .club-profile-card span,
body.theme-light .club-compliance-score span {
  color: #005a76;
}
body.theme-light .club-profile-card p,
body.theme-light .club-profile-foot,
body.theme-light .club-compliance-score em,
body.theme-light .club-compliance-list,
body.theme-light .document-preview-caption span {
  color: #4d626d;
}
body.theme-light .club-compliance-score.warn strong,
body.theme-light .club-compliance-score.ok strong,
body.theme-light .club-compliance-score.danger strong {
  text-shadow: none;
}
body.theme-light .status {
  background: #e7eef1;
  color: #364e59;
  border-color: #b8cbd2;
}
body.theme-light .status.ok {
  background: #d8f3e7;
  color: #045c41;
  border-color: #8fd4b8;
}
body.theme-light .status.warn {
  background: #fff1bf;
  color: #5f3b00;
  border-color: #cf950f;
}
body.theme-light .status.danger {
  background: #ffe1e5;
  color: #91170f;
  border-color: #dc8790;
}
body.theme-light .compliance-issues span,
body.theme-light .compliance-issues em {
  background: #fff1bf;
  color: #5f3b00;
  border-color: #cf950f;
}
body.theme-light .club-tabs-panel .doc-link,
body.theme-light .club-profile-panel .doc-link {
  color: #02465f;
  text-decoration: underline;
  text-decoration-color: rgba(0, 109, 146, .35);
  text-underline-offset: 3px;
}
body.theme-light .club-tabs-panel .table-wrap {
  background: #ffffff;
  border-color: #b8cbd2;
}
body.theme-light .club-tabs-panel th {
  background: linear-gradient(180deg, #e4eff2, #d8e7eb);
  color: #334c57;
}
body.theme-light .club-tabs-panel td {
  color: #14242b;
}
body.theme-light .club-tabs-panel .muted {
  color: #526873;
}
body.theme-light .club-tabs-panel tbody tr:hover,
body.theme-light .club-tabs-panel tbody tr:nth-child(even):hover {
  background: #e8f6f8;
}
body.theme-light .document-preview-card {
  background: #ffffff;
  border-color: #b8cbd2;
  color: #14242b;
}
body.theme-light .competition-choice.document-preview-card {
  background:
    linear-gradient(135deg, #ffffff 0%, #f5fbfc 62%, #eaf6f8 100%);
  border-color: #b8d3dc;
}
body.theme-light .competition-date-pill {
  background:
    linear-gradient(180deg, #073447, #005a76),
    radial-gradient(circle at 50% 0%, rgba(39, 201, 139, .26), transparent 60%);
  border-color: rgba(0, 109, 146, .34);
  color: #ffffff;
}
body.theme-light .competition-date-pill small,
body.theme-light .competition-date-pill em {
  color: #9debf1;
}
body.theme-light .competition-choice-copy strong {
  color: #0b2430;
}
body.theme-light .competition-choice-copy span {
  color: #45606c;
}
body.theme-light .document-preview-card:hover {
  border-color: #006d92;
  box-shadow: 0 14px 34px rgba(0, 109, 146, .16);
}
body.theme-light .document-preview-frame {
  background: #e7eef1;
  border-bottom-color: #b8cbd2;
}

/* Contrast pass: keep semantic colors readable across both themes. */
body:not(.theme-light) {
  --warn-readable: #ffd98a;
  --warn-strong-readable: #ffe8b7;
  --success-readable: #7df0bd;
  --danger-readable: #ff9aa2;
}
body:not(.theme-light) .edit-icon,
body:not(.theme-light) .status.warn,
body:not(.theme-light) .dash-kpi-amber,
body:not(.theme-light) .dash-finance-stack .warn strong,
body:not(.theme-light) .club-compliance-score.warn strong {
  color: var(--warn-readable);
}
body:not(.theme-light) .notice,
body:not(.theme-light) .soft-notice,
body:not(.theme-light) .empty.error {
  color: var(--warn-strong-readable);
}
body:not(.theme-light) .notice span {
  color: #f6d79f;
}
body.theme-light .sidebar .nav button,
body.theme-light .sidebar .brand,
body.theme-light .sidebar .brand span,
body.theme-light .sidebar-performance,
body.theme-light .sidebar-performance span {
  color: inherit;
}
body.theme-light .nav button {
  color: #d8e9ee;
}
body.theme-light .nav button:hover,
body.theme-light .nav button.active {
  color: #ffffff;
}
body.theme-light .brand strong,
body.theme-light .sidebar-performance strong {
  color: #ffffff;
}
body.theme-light .brand span,
body.theme-light .sidebar-performance span {
  color: #bdd0d5;
}
body.theme-light .primary {
  background: linear-gradient(135deg, #006d92, #073447);
  border-color: #073447;
  color: #ffffff;
  text-shadow: none;
}
body.theme-light .primary:hover {
  background: linear-gradient(135deg, #02465f, #07161d);
  color: #ffffff;
}
body.theme-light .edit-icon {
  color: #7a4b00;
  background: #fff4d8;
  border-color: #e8c16e;
}
body.theme-light .info-icon,
body.theme-light .compact-action.active-action {
  color: #005a76;
  background: #e2f4f8;
  border-color: #a9d7e2;
}
body.theme-light .danger-icon,
body.theme-light .danger {
  color: #9f1d16;
  background: #fff0f2;
  border-color: #efadb7;
}
body.theme-light .ok-icon {
  color: #066b4d;
  background: #e2f7ee;
  border-color: #a8dfc7;
}
body.theme-light .dash-hero-signal span,
body.theme-light .dash-panel-head span,
body.theme-light .dash-kpi span,
body.theme-light .dash-list-row span,
body.theme-light .dash-open-head em,
body.theme-light .search-wrap .icon,
body.theme-light .link,
body.theme-light .doc-link,
body.theme-light .sort-header:hover {
  color: #006d92;
}
body.theme-light .dash-hero-signal strong,
body.theme-light .dash-bar-item strong,
body.theme-light .dash-hbar-head strong,
body.theme-light .dash-donut strong,
body.theme-light .dash-pyramid-head strong,
body.theme-light .dash-pyramid-row > strong,
body.theme-light .dash-legend strong,
body.theme-light .dash-finance-stack strong,
body.theme-light .dash-open-head strong,
body.theme-light .club-compliance-score strong,
body.theme-light .task-summary-strip strong,
body.theme-light .document-template-topline h3,
body.theme-light .document-template-meta dd,
body.theme-light .reference-list button,
body.theme-light .reference-list em,
body.theme-light .badge strong {
  color: var(--brand-ink);
}
body.theme-light .dash-bar-item small,
body.theme-light .dash-hbar-head,
body.theme-light .dash-pyramid-head,
body.theme-light .dash-legend div,
body.theme-light .dash-donut span,
body.theme-light .dash-finance-stack span,
body.theme-light .dash-open-head span,
body.theme-light .task-summary-strip span,
body.theme-light .document-template-meta dt,
body.theme-light .document-template-meta,
body.theme-light .empty,
body.theme-light .pagination {
  color: var(--muted);
}
body.theme-light .dash-finance-stack .warn strong,
body.theme-light .club-compliance-score.warn strong,
body.theme-light .dash-kpi-amber,
body.theme-light .notice,
body.theme-light .notice span,
body.theme-light .soft-notice {
  color: #6f4700;
}
body.theme-light .dash-finance-stack .ok strong,
body.theme-light .club-compliance-score.ok strong,
body.theme-light .dash-kpi-green {
  color: #05704f;
}
body.theme-light .club-compliance-score.danger strong,
body.theme-light .error,
body.theme-light .empty.error {
  color: #a92318;
}
body.theme-light .dash-donut::after {
  background: #ffffff;
  box-shadow: inset 0 0 18px rgba(7, 52, 71, .1);
}
body.theme-light .empty-donut,
body.theme-light .dash-bar-track,
body.theme-light .dash-hbar-track,
body.theme-light .dash-sex-stack,
body.theme-light .dash-pyramid-side {
  background: rgba(7, 52, 71, .11);
}
body.theme-light .invoice-preview-sheet,
body.theme-light .invoice-preview-parties > div,
body.theme-light .invoice-preview-summary > div,
body.theme-light .invoice-preview-table {
  color: #102b35;
}
body.theme-light .template-helper {
  border-color: rgba(0, 109, 146, .22);
  background:
    linear-gradient(135deg, rgba(0, 109, 146, .08), rgba(8, 126, 90, .045)),
    rgba(255, 255, 255, .88);
}
body.theme-light .doc-member-search-results {
  border-color: rgba(0, 109, 146, .2);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 109, 146, .1), transparent 32%),
    #ffffff;
  box-shadow: 0 18px 40px rgba(7, 52, 71, .16);
}
body.theme-light .doc-member-search-results button {
  background: #f4f8fa;
  border-color: #d8e6ea;
  color: #102b35;
}
body.theme-light .doc-member-search-results button:hover {
  border-color: rgba(0, 109, 146, .34);
  background: #e6f5f8;
}
body.theme-light .doc-member-search-results button strong {
  color: #073447;
}
body.theme-light .template-helper strong {
  color: #073447;
}
body.theme-light .template-helper span {
  border-color: rgba(0, 109, 146, .22);
  background: #e2f4f8;
  color: #02465f;
}
body.theme-light .template-variable-chip:hover {
  border-color: rgba(0, 109, 146, .38);
  background: #cdeef6;
  color: #073447;
}
body.theme-light .template-drop-hover {
  border-color: rgba(0, 109, 146, .5) !important;
  background: rgba(0, 109, 146, .08) !important;
  box-shadow: 0 0 0 4px rgba(0, 109, 146, .1);
}
body.theme-light .dash-hbar-stack {
  background: #edf3f6;
  border-color: #c9dde3;
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr; }
  .topbar-actions { justify-content: flex-start; flex-wrap: wrap; }
  .club-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form { align-items: stretch; }
  .dash-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .configuration-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid-main,
  .dash-grid-two { grid-template-columns: 1fr 1fr; }
  .dash-panel-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    height: auto;
    position: sticky;
    top: 0;
  }
  .sidebar-performance { display: none; }
  .main { padding: 18px; }
  .club-profile-head { flex-direction: column; }
  .club-profile-head .actions,
  .club-profile-head .actions button {
    width: 100%;
    justify-content: center;
  }
  .club-profile-grid { grid-template-columns: 1fr; }
  .club-profile-card.wide { grid-column: auto; }
  .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .social-link {
    justify-content: center;
    min-width: 0;
  }
  .social-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dash-hero { flex-direction: column; padding: 22px; }
  .dash-hero-metrics { grid-template-columns: 1fr; min-width: 0; }
  .dash-kpi-grid,
  .dash-grid-main,
  .dash-grid-two { grid-template-columns: 1fr; }
  .references-shell { grid-template-columns: 1fr; }
  .references-sidebar { position: static; }
  .configuration-hero { align-items: flex-start; }
  .configuration-mark { width: 70px; height: 70px; border-radius: 20px; }
  .configuration-grid { grid-template-columns: 1fr; }
  .manager-hub .tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .manager-hub .tab {
    flex: 0 0 auto;
  }
  .manager-mobile-source {
    display: none;
  }
  .table-wrap:not(.manager-mobile-source) {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table,
  .table-wrap:not(.manager-mobile-source) table.responsive-table thead,
  .table-wrap:not(.manager-mobile-source) table.responsive-table tbody,
  .table-wrap:not(.manager-mobile-source) table.responsive-table tr,
  .table-wrap:not(.manager-mobile-source) table.responsive-table td {
    display: block;
    width: 100%;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table tbody {
    display: grid;
    gap: 12px;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table tr {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(142, 181, 195, .16);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(145deg, rgba(6, 31, 44, .88), rgba(3, 12, 18, .72)),
      radial-gradient(circle at 92% 8%, rgba(0, 220, 255, .14), transparent 40%);
    box-shadow: var(--shadow-soft);
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table td {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0;
    border: 0;
    color: #eaf7fa;
    overflow-wrap: anywhere;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table td::before {
    content: attr(data-label);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table td.actions-cell,
  .table-wrap:not(.manager-mobile-source) table.responsive-table td:first-child {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 4px;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table td.actions-cell::before,
  .table-wrap:not(.manager-mobile-source) table.responsive-table td:first-child::before {
    display: none;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table td.responsive-full,
  .table-wrap:not(.manager-mobile-source) table.responsive-table td[colspan] {
    display: block;
    text-align: center;
  }
  .table-wrap:not(.manager-mobile-source) table.responsive-table td.responsive-full::before,
  .table-wrap:not(.manager-mobile-source) table.responsive-table td[colspan]::before {
    display: none;
  }
  body.theme-light .table-wrap:not(.manager-mobile-source) table.responsive-table tr {
    background:
      radial-gradient(circle at 100% 0, rgba(19, 191, 210, .1), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,246,247,.94));
    border-color: var(--line);
    color: var(--text);
  }
  body.theme-light .table-wrap:not(.manager-mobile-source) table.responsive-table td {
    color: var(--text);
  }
  body.theme-light .table-wrap:not(.manager-mobile-source) table.responsive-table td::before {
    color: #006d92;
  }
  .manager-mobile-list {
    display: grid;
    gap: 12px;
  }
  .manager-hub .toolbar,
  #competition-athlete-list .toolbar,
  #competition-category-list .toolbar {
    align-items: stretch;
  }
  .manager-hub .toolbar .search-wrap,
  #competition-athlete-list .toolbar .search-wrap,
  #competition-category-list .toolbar .search-wrap,
  .manager-hub .toolbar .status-filter,
  #competition-athlete-list .toolbar .status-filter {
    width: 100%;
  }
  .manager-hub .toolbar .primary,
  .manager-hub .toolbar .with-icon {
    width: 100%;
    justify-content: center;
  }
  #open-competition-list.document-grid {
    gap: 12px;
  }
  .competition-choice-grid {
    grid-template-columns: 1fr;
  }
  .competition-choice.document-preview-card {
    min-height: 86px;
    padding: 12px;
    gap: 12px;
  }
  .competition-date-card {
    grid-template-columns: repeat(2, 48px);
  }
  .competition-date-card.single-date {
    grid-template-columns: 58px;
  }
  .competition-date-pill {
    min-height: 58px;
    border-radius: 11px;
  }
  .competition-date-pill strong {
    font-size: 21px;
  }
  .competition-date-pill small,
  .competition-date-pill em {
    font-size: 9px;
  }
  .competition-choice-copy strong {
    font-size: 16px;
    line-height: 1.18;
  }
  .competition-choice-copy span {
    font-size: 12px;
  }
  .dash-panel-wide { grid-column: auto; }
  .dash-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .dash-bars { overflow-x: auto; }
  .dash-bar-item { min-width: 48px; }
  .club-compliance-panel { grid-template-columns: 1fr; }
  .club-compliance-score {
    min-height: 0;
    padding: 16px;
  }
  .dash-hbar-stack {
    min-height: 34px;
    border-radius: 14px;
  }
  .dash-hbar-stack span {
    flex-direction: column;
    gap: 0;
    padding: 6px 4px;
  }
  .dash-hbar-stack em {
    font-size: 9px;
  }
  .dash-hbar-stack strong {
    font-size: 11px;
  }
  .task-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-card { grid-template-columns: 40px minmax(0, 1fr); }
  .task-action {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .club-profile-panel { padding: 16px; }
  .club-profile-identity {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .club-profile-logo {
    width: 58px;
    height: 58px;
  }
  .club-profile-identity h2 {
    font-size: 24px;
  }
  .club-profile-card {
    min-height: 0;
    padding: 14px;
  }
  .social-links {
    grid-template-columns: 1fr;
  }
  .social-link {
    min-height: 38px;
    justify-content: flex-start;
    padding: 9px 11px;
  }
  .form-grid label,
  .form-grid .actions {
    min-width: 0;
  }
  .form-grid .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .form-grid .actions button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  body.manager-mobile-mode {
    background:
      radial-gradient(circle at 88% 8%, rgba(19, 191, 210, .22), transparent 28%),
      linear-gradient(180deg, #07161d 0 285px, #e8edf0 285px 100%),
      var(--bg);
  }
  body.manager-mobile-mode .app-shell {
    display: block;
    min-height: 100svh;
    padding-bottom: 92px;
  }
  body.manager-mobile-mode .sidebar {
    display: none;
  }
  body.manager-mobile-mode .main {
    padding: 0;
    overflow: visible;
  }
  body.manager-mobile-mode .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(12, 35, 44, .08);
    backdrop-filter: blur(16px);
  }
  body.manager-mobile-home-active .topbar {
    display: none;
  }
  body.manager-mobile-mode .topbar-title h1 {
    margin: 0;
    font-size: 20px;
  }
  body.manager-mobile-mode .topbar-title .role-pill,
  body.manager-mobile-mode .topbar-title .muted,
  body.manager-mobile-mode .topbar-actions .topbar-icon[title="Aide"] {
    display: none;
  }
  body.manager-mobile-mode .topbar-actions {
    justify-content: flex-end;
    gap: 6px;
  }
  body.manager-mobile-mode .user-chip {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }
  body.manager-mobile-mode .user-chip > div {
    display: none;
  }
  body.manager-mobile-mode #view {
    padding: 14px;
  }
  body.manager-mobile-home-active #view {
    padding: 0 0 24px;
  }
  body.manager-mobile-home-active .manager-mobile-home {
    display: block;
  }
  .manager-mobile-hero {
    position: relative;
    min-height: 310px;
    padding: 54px 28px 118px;
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 88% 14%, rgba(19,191,210,.28), transparent 24%),
      radial-gradient(circle at 10% 82%, rgba(215,182,111,.16), transparent 30%),
      linear-gradient(158deg, #082433 0%, #07161d 54%, #073447 55%, #0b5c8e 100%);
  }
  .manager-mobile-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -90px -20%;
    height: 175px;
    background:
      radial-gradient(ellipse at center, rgba(255,255,255,.16), transparent 58%),
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
    transform: rotate(-4deg);
  }
  .manager-mobile-hero span {
    display: block;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 900;
  }
  .manager-mobile-hero h1 {
    max-width: 78%;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 10vw, 50px);
    line-height: .94;
    letter-spacing: 0;
    text-transform: uppercase;
  }
  .manager-mobile-hero p {
    max-width: 76%;
    margin: 14px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
  }
  .manager-mobile-hero img {
    position: absolute;
    right: 26px;
    top: 62px;
    width: 108px;
    height: 108px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .94;
  }
  .manager-event-card {
    position: relative;
    z-index: 2;
    margin: -78px 24px 22px;
    padding: 20px 20px 24px;
    min-height: 178px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    background:
      linear-gradient(rgba(7, 22, 29, .76), rgba(7, 22, 29, .78)),
      radial-gradient(circle at 18% 25%, rgba(19, 191, 210, .28), transparent 32%),
      linear-gradient(135deg, #0b3346, #071117);
    box-shadow: 0 20px 50px rgba(16, 24, 32, .24);
  }
  .manager-event-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
  }
  .manager-event-card-head strong {
    font-size: 20px;
    letter-spacing: 0;
  }
  .manager-event-card-head button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--cyan), var(--brand));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0, 109, 146, .28);
  }
  .manager-event-card h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 32px;
    line-height: 1.05;
  }
  .manager-event-card p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.74);
    font-size: 16px;
    line-height: 1.35;
  }
  .manager-event-card > span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--cyan-soft);
    color: var(--brand-dark);
    font-weight: 900;
  }
  .manager-event-card-empty {
    background:
      radial-gradient(circle at 18% 25%, rgba(19, 191, 210, .18), transparent 32%),
      linear-gradient(135deg, #233945, #07161d);
  }
  .manager-home-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 24px 18px;
  }
  .manager-home-quick div {
    min-height: 78px;
    padding: 14px;
    border: 1px solid #e4ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 31, 40, .08);
  }
  .manager-home-quick span {
    display: block;
    color: #667681;
    font-weight: 800;
    font-size: 12px;
  }
  .manager-home-quick strong {
    display: block;
    margin-top: 6px;
    color: #101925;
    font-size: 20px;
    line-height: 1.1;
  }
  .manager-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 24px 22px;
  }
  .manager-home-card {
    display: grid;
    justify-items: start;
    align-content: start;
    min-height: 160px;
    padding: 22px;
    border: 1px solid rgba(222, 231, 236, .9);
    border-radius: 14px;
    background: #fff;
    color: #101925;
    text-align: left;
    box-shadow: 0 16px 36px rgba(15, 27, 35, .08);
  }
  .manager-home-card > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand), var(--ocean));
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 109, 146, .22);
  }
  .manager-home-card-red > span {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 12px 24px rgba(226, 29, 47, .2);
  }
  .manager-home-card .icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.3;
  }
  .manager-home-card strong {
    display: block;
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: 0;
  }
  .manager-home-card em {
    display: block;
    color: #6a7680;
    font-style: normal;
    font-size: 15px;
    line-height: 1.35;
  }
  .manager-bottom-nav {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    min-height: 76px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(12, 35, 44, .12);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -18px 42px rgba(17, 24, 39, .12);
    backdrop-filter: blur(18px);
  }
  body.manager-mobile-mode .manager-bottom-nav {
    display: grid;
  }
  .manager-bottom-nav button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #65727c;
    font-size: 11px;
    font-weight: 900;
    box-shadow: none;
    padding: 4px;
  }
  .manager-bottom-nav .icon {
    width: 27px;
    height: 27px;
  }
  .manager-bottom-nav button.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
  }
  body.manager-mobile-mode .panel,
  body.manager-mobile-mode .manager-mobile-card,
  body.manager-mobile-mode .club-profile-panel {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 27, 35, .08);
  }
  body.manager-mobile-mode .manager-hub-mobile {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body.manager-mobile-mode .manager-hub .tabs {
    position: sticky;
    top: 63px;
    z-index: 12;
    margin: -14px -14px 14px;
    padding: 10px 14px;
    background: rgba(244,246,248,.96);
    border-bottom: 1px solid rgba(12, 35, 44, .08);
    backdrop-filter: blur(12px);
  }
  body.manager-mobile-mode .manager-hub-mobile .tabs {
    top: 58px;
    margin: -14px -14px 10px;
    gap: 8px;
    padding: 8px 14px;
  }
  body.manager-mobile-mode .manager-hub-mobile .tab {
    flex: 1 1 0;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    justify-content: center;
  }
  body.manager-mobile-mode .manager-hub-mobile .tab .icon {
    width: 17px;
    height: 17px;
  }
  body.manager-mobile-mode .manager-mobile-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 14px;
    border: 1px solid rgba(12, 35, 44, .08);
    border-radius: 16px;
    background:
      radial-gradient(circle at 100% 0, rgba(19, 191, 210, .14), transparent 38%),
      linear-gradient(135deg, #ffffff, #f3f8fa);
    box-shadow: 0 12px 28px rgba(15, 27, 35, .07);
  }
  body.manager-mobile-mode .manager-mobile-page-head span {
    display: block;
    margin-bottom: 3px;
    color: #687b84;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  body.manager-mobile-mode .manager-mobile-page-head strong {
    display: block;
    color: #102430;
    font-size: 22px;
    line-height: 1.05;
  }
  body.manager-mobile-mode .manager-mobile-page-head .primary {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
  }
  body.manager-mobile-mode .manager-mobile-filterbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid rgba(12, 35, 44, .08);
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 24px rgba(15, 27, 35, .06);
  }
  body.manager-mobile-mode .manager-mobile-filterbar .search-wrap {
    width: 100%;
  }
  body.manager-mobile-mode .manager-mobile-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  body.manager-mobile-mode .manager-mobile-filter-row .status-filter {
    width: 100%;
    min-width: 0;
  }
  body.manager-mobile-mode .manager-mobile-filter-row .list-limit {
    width: 96px;
    padding-inline: 10px;
  }
  body.manager-mobile-mode .manager-request-mobile-list {
    gap: 10px;
  }
  body.manager-mobile-mode .manager-request-mobile-card {
    padding: 13px;
    border-color: rgba(12, 35, 44, .08);
    background:
      radial-gradient(circle at 100% 0, rgba(0, 109, 146, .1), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,250,.96));
  }
  body.manager-mobile-mode .manager-request-mobile-card .configuration-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  body.manager-mobile-mode .manager-request-mobile-card .manager-mobile-head {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
  body.manager-mobile-mode .manager-request-mobile-card .manager-mobile-head strong {
    color: #102430;
    font-size: 16px;
  }
  body.manager-mobile-mode .manager-request-mobile-card .manager-mobile-head span:not(.status) {
    color: #637781;
  }
  body.manager-mobile-mode .request-mobile-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    color: #657680;
  }
  body.manager-mobile-mode .request-mobile-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.manager-mobile-mode .manager-request-note {
    background: #fff7ea;
    border-color: #f0d39d;
    color: #7b5f30;
  }
  body.manager-mobile-mode .request-editor-panel {
    padding: 14px;
    border: 0;
    background:
      radial-gradient(circle at 100% 0, rgba(0, 109, 146, .1), transparent 32%),
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,250,.96));
  }
  body.manager-mobile-mode .request-editor-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.manager-mobile-mode .request-editor-form label {
    min-height: 0;
  }
  body.manager-mobile-mode .request-editor-form label span:first-child {
    font-size: 11px;
    letter-spacing: .04em;
  }
  body.manager-mobile-mode .request-editor-form input,
  body.manager-mobile-mode .request-editor-form select,
  body.manager-mobile-mode .request-editor-form textarea {
    min-height: 48px;
    border-radius: 13px;
    font-size: 16px;
  }
  body.manager-mobile-mode .request-editor-form input[type="file"] {
    min-height: 54px;
    padding: 13px;
    background: #fff;
  }
  body.manager-mobile-mode .request-editor-form .actions.wide {
    position: sticky;
    bottom: 86px;
    z-index: 18;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 2px -4px -2px;
    padding: 10px;
    border: 1px solid rgba(12, 35, 44, .08);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 -10px 30px rgba(15, 27, 35, .1);
    backdrop-filter: blur(14px);
  }
  body.manager-mobile-mode .request-editor-form .actions.wide button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .manager-mobile-hero {
    padding-left: 22px;
    padding-right: 22px;
  }
  .manager-mobile-hero img {
    width: 88px;
    height: 88px;
    right: 20px;
  }
  .manager-home-grid {
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .manager-home-card {
    min-height: 146px;
    padding: 18px;
  }
  .manager-home-card > span {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
  }
  .manager-home-card strong {
    font-size: 19px;
  }
  .manager-home-card em {
    font-size: 13px;
  }
  .manager-event-card,
  .manager-home-quick {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }
  .invoice-print-modal,
  .invoice-print-modal * {
    visibility: visible !important;
  }
  .invoice-print-modal {
    position: absolute;
    inset: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
    backdrop-filter: none;
  }
  .invoice-print-toolbar {
    display: none !important;
  }
  .invoice-preview-sheet {
    width: 100%;
    margin: 0;
    padding: 18mm;
    border-radius: 0;
    box-shadow: none;
  }
  .sidebar,
  .topbar,
  .manager-bottom-nav,
  #statistics-dashboard-filter-form,
  .statistics-hero .actions,
  .statistics-widget .actions {
    display: none !important;
  }
  body:not(.invoice-print-active) .app-shell,
  body:not(.invoice-print-active) .main {
    display: block !important;
  }
  body:not(.invoice-print-active) #view,
  body:not(.invoice-print-active) #view * {
    visibility: visible !important;
  }
}

.notification-hero .configuration-mark {
  color: var(--accent);
}

.notification-kpis {
  margin-bottom: 18px;
}

.notification-grid {
  align-items: start;
}

.notification-grid .panel,
.notification-manual-panel {
  min-width: 0;
}

.notification-grid .compact-table table {
  font-size: 13px;
}

.notification-grid .compact-form {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--panel-strong) 76%, transparent);
}

.notification-manual-panel textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.notification-manual-panel [hidden] {
  display: none !important;
}

.toggle-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.inline-seeding-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 118px;
}

.seeding-inline-input {
  width: 62px;
  text-align: center;
}

.saved-pulse {
  animation: savedPulse 0.8s ease;
}

.discipline-multiselect {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.discipline-multiselect legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.discipline-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.discipline-choice {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.discipline-choice:hover {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--border));
  transform: translateY(-1px);
}

.discipline-choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.discipline-choice input:checked + span {
  color: var(--brand-dark);
  font-weight: 800;
}

.document-check-panel .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.document-check-panel h2 {
  margin: 4px 0 0;
}

.doc-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.doc-check-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--panel-soft);
}

.doc-check-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.doc-check-grid strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.doc-check-grid p {
  margin: 0;
  color: var(--muted);
}

.danger-notice {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: color-mix(in srgb, var(--danger) 9%, var(--panel));
}

.doc-public-notice {
  display: inline-flex;
  margin-top: 6px;
  white-space: nowrap;
}

.danger-note {
  border-color: color-mix(in srgb, var(--danger) 36%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
}

@keyframes savedPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 198, 215, 0.36); }
  45% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(0, 198, 215, 0); }
  100% { transform: scale(1); box-shadow: none; }
}

@media (max-width: 780px) {
  .notification-grid {
    grid-template-columns: 1fr;
  }
  .notification-manual-panel .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .discipline-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .discipline-choice {
    justify-content: flex-start;
    border-radius: 12px;
  }
  .document-check-panel .section-head,
  .doc-check-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}
