:root {
  --wlc-bg: #0b1020;
  --wlc-bg-soft: #121a2f;
  --wlc-panel: rgba(16, 24, 44, 0.82);
  --wlc-panel-strong: rgba(10, 17, 33, 0.92);
  --wlc-border: rgba(148, 163, 184, 0.14);
  --wlc-text: #e5ecff;
  --wlc-muted: #8ea0c9;
  --wlc-accent: #7dd3a7;
  --wlc-accent-strong: #22c55e;
  --wlc-highlight: #f59e0b;
  --wlc-danger: #fb7185;
  --bs-primary: #7dd3a7;
  --bs-primary-rgb: 125, 211, 167;
  --bs-success: #22c55e;
  --bs-success-rgb: 34, 197, 94;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #fb7185;
  --bs-danger-rgb: 251, 113, 133;
  --bs-body-bg: transparent;
  --bs-body-color: var(--wlc-text);
  --bs-secondary-color: var(--wlc-muted);
  --bs-tertiary-bg: rgba(255, 255, 255, 0.03);
  --bs-border-color: var(--wlc-border);
}

* {
  scrollbar-color: rgba(125, 211, 167, 0.55) rgba(255, 255, 255, 0.06);
}

body {
  color: var(--wlc-text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, #09101d 0%, var(--wlc-bg) 38%, #060a14 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

main,
.container,
.row,
.card,
.table-responsive {
  position: relative;
}

.min-vh-75 {
  min-height: 75vh;
}

.site-nav {
  background: rgba(7, 12, 25, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
  z-index: 1045;
}

.navbar-brand {
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.brand-logo {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav-header {
  margin-bottom: 0.85rem;
}

.site-nav-links-wrap {
  display: block;
  background: rgba(7, 12, 25, 0.78);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  z-index: 1030;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 0.55rem 0 0.65rem;
}

.site-nav-user {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.site-nav-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.4rem 0.72rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.88rem;
  color: inherit;
  cursor: pointer;
}

.site-nav-user-toggle:hover,
.site-nav-user-toggle[aria-expanded="true"] {
  border-color: rgba(125, 211, 167, 0.22);
  background: rgba(125, 211, 167, 0.08);
}

.site-nav-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 10.5rem;
  padding: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(9, 15, 29, 0.96);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
  z-index: 1040;
}

.site-nav-user-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.42rem 0.58rem;
  border-radius: 0.7rem;
  font-size: 0.84rem;
  color: #dce7ff;
  text-decoration: none;
}

.site-nav-user-menu-item:hover,
.site-nav-user-menu-item:focus-visible {
  color: #f7fbff;
  background: rgba(125, 211, 167, 0.08);
  outline: none;
}

.site-nav .nav-link,
.site-nav-links-wrap .nav-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
  color: rgba(229, 236, 255, 0.72);
  white-space: nowrap;
  text-align: left;
  border-radius: 1rem;
  min-width: 6.25rem;
  min-height: 2.9rem;
  padding: 0.62rem 0.95rem;
}

.site-nav .nav-link .nav-link-icon,
.site-nav-links-wrap .nav-link .nav-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav .nav-link i,
.site-nav-links-wrap .nav-link i {
  display: block !important;
  font-size: 1.08rem;
  line-height: 1;
}

.site-nav .nav-link .nav-link-label,
.site-nav-links-wrap .nav-link .nav-link-label {
  display: block !important;
  font-size: 0.84rem;
  line-height: 1;
  text-align: left;
}

.site-nav .nav-link.active,
.site-nav .nav-link:hover,
.site-nav-links-wrap .nav-link.active,
.site-nav-links-wrap .nav-link:hover,
.site-nav .navbar-brand {
  color: #f8fbff;
}

.site-nav .nav-link.active,
.site-nav-links-wrap .nav-link.active {
  background: rgba(125, 211, 167, 0.11);
  border: 1px solid rgba(125, 211, 167, 0.28);
}

.challenge-subnav-shell {
  padding-top: 1rem;
}

.challenge-subnav-form {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.challenge-subnav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wlc-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.challenge-subnav-select-wrap {
  position: relative;
}

.challenge-subnav-select {
  flex: 1 1 auto;
  max-width: 100%;
  min-height: 3.1rem;
  padding-inline: 0 2.35rem;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 700;
  color: #f8fbff;
}

.challenge-subnav-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 231, 255, 0.58);
  pointer-events: none;
  font-size: 0.95rem;
}

.card {
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.88), rgba(9, 15, 29, 0.92));
  border: 1px solid var(--wlc-border);
  border-radius: 1.2rem;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
}

.stat-card {
  background: linear-gradient(145deg, rgba(18, 29, 54, 0.92), rgba(9, 15, 29, 0.95));
}

.alert {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.2);
}

.text-body-secondary,
.small,
.form-text,
.table,
.table > :not(caption) > * > * {
  color: inherit;
}

.text-body-secondary,
.small,
.form-text,
.table .text-body-secondary {
  color: var(--wlc-muted) !important;
}

.form-control,
.form-select,
textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: var(--wlc-text) !important;
  border-radius: 0.95rem;
  padding: 0.8rem 0.95rem;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  box-shadow: 0 0 0 0.2rem rgba(125, 211, 167, 0.18) !important;
  border-color: rgba(125, 211, 167, 0.45) !important;
}

.form-control::placeholder,
textarea::placeholder {
  color: rgba(142, 160, 201, 0.7);
}

.form-label {
  color: #dce7ff;
  font-weight: 600;
}

.btn {
  border-radius: 999px;
  padding-inline: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wlc-accent) 0%, var(--wlc-accent-strong) 100%);
  border: none;
  color: #04110a;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #04110a;
  transform: translateY(-1px);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-danger,
.btn-outline-accent {
  border-width: 1px;
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-primary,
.btn-outline-accent {
  border-color: rgba(125, 211, 167, 0.35);
  color: var(--wlc-accent);
}

.btn-outline-primary:hover,
.btn-outline-accent:hover {
  background: rgba(125, 211, 167, 0.12);
  border-color: rgba(125, 211, 167, 0.5);
  color: #dff9ea;
}

.btn-outline-secondary,
.btn-outline-light {
  border-color: rgba(148, 163, 184, 0.25);
  color: #dce7ff;
}

.btn-outline-secondary:hover,
.btn-outline-light:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #fff;
}

.progress {
  height: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--wlc-accent), var(--wlc-accent-strong));
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--wlc-text);
  --bs-table-border-color: rgba(148, 163, 184, 0.12);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.015);
  --bs-table-hover-bg: rgba(125, 211, 167, 0.04);
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.table-clean th {
  font-weight: 700;
  color: #f2f6ff;
}

.table-clean td,
.table-clean th {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.participant-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dataset-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #dce7ff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
}

.dataset-toggle.is-active {
  border-color: rgba(125, 211, 167, 0.45);
  background: rgba(125, 211, 167, 0.1);
}

.dataset-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(9, 16, 29, 0.9);
}

.admin-user-card {
  height: 100%;
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-tabs-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-page-intro {
  padding: 0.25rem 0 0.15rem;
}

.admin-page-intro__text {
  max-width: 46rem;
}

.admin-page-intro .h3 {
  letter-spacing: -0.02em;
}

.admin-form-card .card-body,
.admin-table-card .card-body,
.admin-detail-card .card-body {
  padding: 1.35rem;
}

.admin-form-card .h5,
.admin-table-card .h5,
.admin-detail-card .h5 {
  margin-bottom: 1rem;
}

.admin-form-card form,
.admin-detail-card form {
  margin-bottom: 0;
}

.admin-tabs,
.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-tab,
.admin-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #dce7ff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-tab:hover,
.admin-subtab:hover {
  border-color: rgba(125, 211, 167, 0.28);
  background: rgba(125, 211, 167, 0.05);
}

.admin-tab.is-active,
.admin-subtab.is-active {
  border-color: rgba(125, 211, 167, 0.42);
  background: rgba(125, 211, 167, 0.12);
  color: #effcf4;
}

.admin-user-list__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-user-list__item:hover {
  border-color: rgba(125, 211, 167, 0.3);
  background: rgba(125, 211, 167, 0.05);
  transform: translateY(-1px);
}

.admin-user-list__item.is-active {
  border-color: rgba(125, 211, 167, 0.45);
  background: rgba(125, 211, 167, 0.08);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 167, 0.15);
}

.admin-user-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-user-card__section {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-user-card__details {
  margin-top: 1rem;
}

.admin-user-card__details summary {
  cursor: pointer;
  color: var(--wlc-muted);
  font-size: 0.95rem;
}

.admin-user-card__details[open] summary {
  color: #dce7ff;
}

.admin-users-table th,
.admin-users-table td,
.admin-matrix-table th,
.admin-matrix-table td {
  white-space: nowrap;
}

.admin-users-table td:first-child,
.admin-matrix-table td:first-child {
  white-space: normal;
}

.admin-table-shell {
  max-height: 34rem;
  overflow: auto;
  border-radius: 1rem;
}

.admin-table-shell .table {
  margin-bottom: 0;
}

.admin-table-shell thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(11, 16, 32, 0.96);
  backdrop-filter: blur(8px);
}

.matrix-toggle-form {
  margin: 0;
}

.matrix-toggle-btn {
  width: 100%;
  justify-content: center;
  min-width: 7.25rem;
}

.matrix-toggle-btn.is-assigned {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #dff9ea;
}

.badge.text-bg-light {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #eff4ff !important;
}

.badge.text-bg-success {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #b7f7ca !important;
}

.badge.text-bg-warning {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #ffd89c !important;
}

.badge.text-bg-secondary {
  background: rgba(148, 163, 184, 0.18) !important;
  color: #dce7ff !important;
}

.badge-checkpoint {
  background: rgba(125, 211, 167, 0.12);
  color: #bdf3d2;
  border: 1px solid rgba(125, 211, 167, 0.22);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.62rem;
}

.dashboard-jumplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dashboard-jumplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #dce7ff;
  text-decoration: none;
  font-size: 0.92rem;
  appearance: none;
  cursor: pointer;
}

.dashboard-jumplink:hover,
.dashboard-jumplink:focus-visible {
  border-color: rgba(125, 211, 167, 0.28);
  background: rgba(125, 211, 167, 0.06);
  color: #effcf4;
  outline: none;
}

.dashboard-inline-jump {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 0.35rem;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.dashboard-anchor {
  scroll-margin-top: 6.75rem;
}

.ranking-table-compact th,
.ranking-table-compact td {
  white-space: nowrap;
}

.ranking-table-compact th:nth-child(2),
.ranking-table-compact td:nth-child(2) {
  white-space: normal;
}

.chart-shell {
  position: relative;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  overflow: hidden;
}

.chart-shell-lg {
  height: 380px;
  min-height: 380px;
  max-height: 380px;
}

.checkpoint-table-shell {
  max-height: none;
  overflow: visible;
  border-radius: 1rem;
}

.last-checkpoints-shell {
  max-height: 21rem;
  overflow: auto;
  border-radius: 1rem;
}

.checkpoint-table-shell thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(11, 16, 32, 0.96);
}

.last-checkpoints-shell thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(11, 16, 32, 0.96);
}

canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.display-6 {
  font-size: clamp(2rem, 2vw + 1.25rem, 2.75rem);
}

.inline-progress-percent {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.9em;
  white-space: nowrap;
}

code {
  color: #ffd89c;
}


.weights-actions {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.weights-actions form {
  margin: 0;
  display: flex;
}

.weights-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.entry-notes-cell {
  color: rgba(229, 236, 255, 0.88);
}

.weights-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.9rem 1rem;
}

.weights-filter-quickranges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

.weights-filter-quickranges .btn {
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
}

.weights-filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  flex: 1 1 22rem;
}

.weights-filter-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.55rem;
}

.weights-filter-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  width: 100%;
}

.weights-filter-action-buttons .btn-outline-primary {
  min-height: 2.15rem;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.weights-history-table tbody td:nth-child(1),
.weights-history-card .table-mobile-cards td[data-label="Datum"] {
  font-size: 1.03rem;
  font-weight: 700;
  color: #f4f7ff;
}

.weights-history-table tbody td:nth-child(2),
.weights-history-card .table-mobile-cards td[data-label="Gewicht"] {
  font-size: 1.03rem;
  font-weight: 700;
  color: #f4f7ff;
}

.weights-range-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(13, 22, 45, 0.48);
}

.weights-range-summary-label {
  font-size: 0.82rem;
  color: var(--wlc-muted);
  margin-bottom: 0.18rem;
}

.weights-range-summary-dates {
  font-size: 0.88rem;
  color: rgba(229, 236, 255, 0.86);
}

.weights-range-summary-values {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.weights-range-summary-values.is-loss {
  color: #4ade80;
}

.weights-range-summary-values.is-gain {
  color: #fb7185;
}

.weights-actions .btn,
.weights-actions form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.38rem 0.78rem;
  border-radius: 0.8rem;
  font-size: 0.82rem;
  line-height: 1.1;
  vertical-align: middle;
}

.weights-actions form .btn {
  width: auto;
}

@media (max-width: 991.98px) {
  .admin-user-list__item,
  .admin-user-card__header {
    flex-direction: column;
  }

  .site-nav-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-nav-user {
    margin-left: auto;
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .brand-logo {
    width: 1.5rem;
    height: 1.5rem;
  }

  .chart-shell,
  .chart-shell-lg {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .site-nav > .container {
    padding-top: 0.85rem !important;
    padding-bottom: 0.35rem !important;
  }

  .weights-form-card .card-body,
  .weights-history-card .card-body,
  .admin-form-card .card-body,
  .admin-detail-card .card-body,
  .admin-table-card .card-body {
    padding: 1rem;
  }

  .admin-tabs,
  .admin-subtabs {
    gap: 0.5rem;
  }

  .admin-tab,
  .admin-subtab {
    width: 100%;
  }

  .site-nav {
    border-bottom: 0;
  }

  .site-nav-row {
    gap: 0.55rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav-user {
    width: auto;
    margin-left: auto;
    flex-shrink: 0;
  }

  .site-nav .nav-link,
  .site-nav-links-wrap .nav-link {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 4.9rem;
    padding: 0.52rem 0.64rem;
    border-radius: 0.8rem;
  }

  .site-nav-links {
    justify-content: space-between;
    gap: 0.45rem;
  }

  .site-nav .nav-link .nav-link-label,
  .site-nav-links-wrap .nav-link .nav-link-label {
    display: block !important;
    font-size: 0.76rem;
    color: rgba(229, 236, 255, 0.74);
    line-height: 1.08;
  }

  .site-nav .nav-link i,
  .site-nav-links-wrap .nav-link i {
    font-size: 1rem;
  }

  .brand-text {
    display: inline-block;
    font-size: 1rem;
    white-space: nowrap;
    line-height: 1;
    max-width: none;
  }

  .brand-logo {
    width: 1.45rem;
    height: 1.45rem;
  }

  .site-nav-user-toggle {
    min-height: 2.05rem;
    padding: 0.24rem 0.48rem;
    font-size: 0.78rem;
    max-width: 5.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav-user-menu {
    top: calc(100% + 0.3rem);
    min-width: 9.2rem;
    right: 0;
    padding: 0.32rem;
    z-index: 1060;
  }

  .site-nav-user-menu-item {
    min-height: 2.1rem;
    padding: 0.38rem 0.5rem;
    font-size: 0.76rem;
  }

  .site-nav-header {
    margin-bottom: 0.45rem;
  }

  .site-nav-links-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
    margin-inline: 0;
    padding: 0;
    background: rgba(7, 12, 25, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .site-nav-links-wrap .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .challenge-subnav-form {
    padding: 0;
  }

  .challenge-subnav-select {
    max-width: none;
    min-height: 2.8rem;
    font-size: 1rem;
    padding-right: 1.95rem;
  }

  .challenge-subnav-select-icon {
    right: 1rem;
    font-size: 0.82rem;
  }

  .admin-table-shell {
    max-height: none;
    overflow: visible;
  }

  .weights-form-card .form-control,
  .weights-form-card textarea {
    padding: 0.68rem 0.82rem;
  }

  .weights-form-card .btn-primary {
    width: 100%;
  }

  .weights-form-card .card-body,
  .weights-history-card .card-body {
    padding: 0.9rem;
  }

  .weights-form-card .h5,
  .weights-history-card .h5 {
    margin-bottom: 0.85rem;
  }

  .checkpoint-table-shell .table th,
  .checkpoint-table-shell .table td {
    font-size: 0.77rem;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }

  .last-checkpoints-shell {
    max-height: none;
    overflow: visible;
  }

  .challenge-checkpoints-table.table-mobile-cards tr {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
    gap: 0.2rem 0.75rem;
    align-items: start;
  }

  .challenge-checkpoints-table.table-mobile-cards td {
    width: auto;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }

  .challenge-checkpoints-table.table-mobile-cards td::before {
    display: none;
  }

  .challenge-checkpoints-table.table-mobile-cards td[data-label="Datum"] {
    grid-column: 1;
  }

  .challenge-checkpoints-table.table-mobile-cards td[data-label="Gewicht"] {
    grid-column: 2;
    text-align: right !important;
  }

  .challenge-checkpoints-table.table-mobile-cards td:empty {
    display: none;
  }

  .dashboard-jumplinks {
    gap: 0.5rem;
  }

  .dashboard-jumplink {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    font-size: 0.84rem;
    padding: 0.48rem 0.72rem;
  }

  .dashboard-anchor {
    scroll-margin-top: 7rem;
  }

  .ranking-table-compact th,
  .ranking-table-compact td {
    font-size: 0.77rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .ranking-table-compact .badge {
    font-size: 0.68rem;
    padding: 0.28rem 0.42rem;
  }

  .ranking-table-compact .progress {
    height: 0.45rem;
    margin-top: 0.35rem !important;
  }

  .admin-form-actions,
  .admin-inline-actions {
    flex-direction: column;
  }

  .admin-form-actions .btn,
  .admin-inline-actions .btn {
    width: 100%;
  }

  .admin-detail-header {
    align-items: flex-start !important;
  }

  .admin-detail-header .btn {
    width: 100%;
  }

  .admin-form-card .form-control,
  .admin-form-card .form-select,
  .admin-detail-card .form-control,
  .admin-detail-card .form-select {
    padding: 0.72rem 0.85rem;
  }

  .admin-form-card .form-check,
  .admin-detail-card .form-check {
    min-height: 2.25rem;
    display: flex;
    align-items: center;
  }

  .admin-form-card .btn-primary,
  .admin-detail-card .btn-primary,
  .admin-detail-card .btn-outline-primary,
  .admin-detail-card .btn-outline-secondary,
  .admin-detail-header .btn-outline-secondary,
  .admin-detail-card .btn-outline-danger {
    width: 100%;
  }

  .admin-page-intro {
    padding-top: 0;
  }

  .table-mobile-cards thead {
    display: none;
  }

  .table-mobile-cards,
  .table-mobile-cards tbody,
  .table-mobile-cards tr,
  .table-mobile-cards td {
    display: block;
    width: 100%;
  }

  .table-mobile-cards tr {
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .table-mobile-cards tr:last-child {
    border-bottom: 0;
  }

  .table-mobile-cards td {
    padding: 0.22rem 0;
    border: 0;
    text-align: left !important;
  }

  .table-mobile-cards td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--wlc-muted);
    font-size: 0.75rem;
    font-weight: 600;
  }

  .weights-history-card .table-mobile-cards tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 0.75rem;
    align-items: start;
  }

  .weights-history-card .table-mobile-cards td {
    width: auto;
  }

  .weights-history-card .table-mobile-cards td::before {
    display: none;
  }

  .weights-history-card .table-mobile-cards td[data-label="Datum"] {
    grid-column: 1;
  }

  .weights-history-card .table-mobile-cards td[data-label="Gewicht"] {
    grid-column: 2;
    text-align: right !important;
  }

  .weights-history-card .table-mobile-cards td[data-label="Notizen"],
  .weights-history-card .table-mobile-cards td[data-label="Aktionen"] {
    grid-column: 1 / -1;
  }

  .weights-history-card .table-mobile-cards td[data-label="Notizen"] {
    padding-top: 0.1rem;
    padding-bottom: 0.25rem;
  }

  .weights-history-card .table-mobile-cards .entry-marker-cell {
    padding-top: 0;
    min-width: 0;
  }

  .weights-history-card .table-mobile-cards .entry-marker-cell:empty {
    display: none;
  }

  .weights-history-card .table-mobile-cards .entry-marker-cell::before {
    display: none;
  }

  .weights-history-card .table-mobile-cards .weights-entry-footer {
    align-items: flex-end;
  }

  .weights-filter-quickranges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: 100%;
  }

  .weights-filter-quickranges .btn {
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.8rem;
  }

  .weights-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.85rem 1rem;
  }

  .weights-filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    flex: 1 1 22rem;
  }

  .weights-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
  }

  .weights-filter-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    width: 100%;
  }

  .weights-filter-action-buttons .btn-outline-primary {
    width: 100%;
    justify-content: center;
  }

  .weights-history-table-wrap {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .weights-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(10, 18, 38, 0.96);
    backdrop-filter: blur(10px);
  }

  .weights-history-table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .weights-history-table tbody tr:last-child {
    border-bottom: 0;
  }

  .weights-actions {
    justify-content: flex-end !important;
    gap: 0.4rem;
    margin-left: auto;
  }

  .weights-entry-footer {
    align-items: center;
  }

  .weights-actions .btn,
  .weights-actions form,
  .weights-actions form .btn {
    width: auto;
  }

  .weights-actions .btn,
  .weights-actions form .btn {
    min-height: 1.9rem;
    padding: 0.34rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1;
  }

  .weights-filter-bar {
    align-items: stretch;
  }

  .weights-range-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .weights-range-summary-values {
    width: 100%;
    justify-content: space-between;
  }

  .weights-filter-fields {
    grid-template-columns: 1fr;
    flex-basis: 100%;
  }

  .weights-filter-quickranges {
    gap: 0.35rem;
  }

  .weights-filter-actions {
    width: 100%;
    justify-content: space-between;
  }

  .weights-filter-action-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .weights-history-table-wrap {
    max-height: none;
  }

  .admin-users-table .matrix-toggle-form,
  .admin-users-table .matrix-toggle-btn {
    width: 100%;
  }

  .admin-users-table .matrix-toggle-btn {
    min-width: 0;
  }

  .admin-users-table .btn,
  .admin-challenges-table .btn {
    width: 100%;
  }

  .admin-users-table.table-mobile-cards tr,
  .admin-challenges-table.table-mobile-cards tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    align-items: start;
  }

  .admin-users-table.table-mobile-cards td,
  .admin-challenges-table.table-mobile-cards td {
    width: auto;
  }

  .admin-users-table.table-mobile-cards td:first-child,
  .admin-challenges-table.table-mobile-cards td:first-child,
  .admin-users-table.table-mobile-cards td[data-label="Aktion"],
  .admin-challenges-table.table-mobile-cards td[data-label="Aktion"] {
    grid-column: 1 / -1;
  }

  .admin-users-table.table-mobile-cards td[data-label="Benutzer"],
  .admin-users-table.table-mobile-cards td[data-label="Aktion"] {
    grid-column: 1 / -1;
  }
}
