:root {
  --bg: #eef3f1;
  --bg-accent: radial-gradient(circle at top right, rgba(250, 204, 21, 0.2), transparent 28%), linear-gradient(180deg, #f8faf8 0%, #eef3f1 100%);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: #f6f8f7;
  --text: #14231f;
  --muted: #5f706a;
  --line: rgba(20, 35, 31, 0.08);
  --brand: #0f766e;
  --brand-dark: #0c5f59;
  --accent: #f59e0b;
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 4px 12px rgba(15, 23, 42, 0.04);
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg-accent);
  overflow-x: hidden;
}

body.public-page { background: linear-gradient(180deg, #fbfcfb 0%, #f0f4f3 100%); }
body.auth-page { min-height: 100vh; }

body.public-page .mobile-topbar,
body.public-page .sidebar,
body.public-page .sidebar-backdrop {
  display: none !important;
}

a { color: inherit; }

.app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell {
  position: relative;
}

.app > * {
  min-width: 0;
}

.mobile-topbar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 18px 16px;
  color: #effcf8;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.28), transparent 24%),
    linear-gradient(180deg, #072b31 0%, #0b3e46 52%, #0e5b58 100%);
}

.brand-block {
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.brand-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(239, 252, 248, 0.72);
}

.sidebar h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.brand-copy {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(239, 252, 248, 0.78);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: rgba(239, 252, 248, 0.88);
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, color .18s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.nav-link.is-active {
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.content, .public-wrapper {
  padding: 22px;
  min-width: 0;
}

.content-inner {
  max-width: 1440px;
  min-width: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.auth-login h2 {
  margin-bottom: 10px;
}

.auth-copy {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--muted);
}

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

.public-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.5vw, 34px);
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

p, li, td, th, label, input, select, textarea, button {
  font-size: 14px;
}

small {
  line-height: 1.55;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.page-head {
  margin-bottom: 16px;
}

.page-head h2,
.page-head h3,
.page-head p {
  margin-bottom: 0;
}

.tabs {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tab-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.tab-button {
  border: 1px solid #d8e1de;
  background: rgba(255, 255, 255, 0.72);
  color: #335148;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.tab-button:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.tab-button.is-active,
.tab-button[aria-selected="true"] {
  border-color: rgba(15, 118, 110, 0.55);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.08));
  color: #0f5d56;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.1);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel {
  min-width: 0;
}

.tab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tab-panel-head h3 {
  margin: 0;
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.table-search {
  display: grid;
  gap: 4px;
  min-width: min(100%, 280px);
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.table-search span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table-search input[type="search"] {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: #fff;
}

.table-search input[type="search"]::placeholder {
  color: #7b8b86;
}

.table-key-hint {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.results-table th.is-primary-field,
.results-table td.is-primary-field {
  background: rgba(15, 118, 110, 0.08);
}

.results-table td.is-primary-field {
  box-shadow: inset 1px 0 0 rgba(15, 118, 110, 0.12), inset -1px 0 0 rgba(15, 118, 110, 0.12);
}

.primary-field-input {
  border-color: rgba(15, 118, 110, 0.42) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%) !important;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.08);
}

.table-stable {
  table-layout: fixed;
}

.results-table {
  min-width: 1440px;
}

.results-table th:nth-child(1),
.results-table td:nth-child(1) { width: 220px; }

.results-table th:nth-child(2),
.results-table td:nth-child(2) { width: 120px; }

.results-table th:nth-child(3),
.results-table td:nth-child(3) { width: 80px; }

.results-table th:nth-child(4),
.results-table td:nth-child(4) { width: 200px; }

.results-table th:nth-child(5),
.results-table td:nth-child(5) { width: 210px; }

.results-table th:nth-child(6),
.results-table td:nth-child(6),
.results-table th:nth-child(7),
.results-table td:nth-child(7),
.results-table th:nth-child(8),
.results-table td:nth-child(8) { width: 72px; text-align: center; }

.results-table th:nth-child(9),
.results-table td:nth-child(9) { width: 90px; }

.results-table th:nth-child(10),
.results-table td:nth-child(10) { width: 90px; }

.results-table th:last-child,
.results-table td:last-child { width: 220px; }

.card, .form-card, .panel, .detail-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card strong,
.detail-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card div,
.detail-card div {
  font-size: 24px;
  font-weight: 700;
}

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

.detail-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.form-group {
  display: grid;
  gap: 5px;
}

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

.form-group label {
  font-weight: 600;
  color: #26413a;
}

.form-group input,
.form-group select,
.form-group textarea,
table select,
table input[type="text"],
table input[type="number"],
table input[type="date"],
table input[type="email"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d8e1de;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-group input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border-radius: 6px;
  background: #fff;
}

.form-group select,
table select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #4b635c 50%),
    linear-gradient(135deg, #4b635c 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-group textarea {
  min-height: 104px;
  resize: vertical;
}

.form-group [data-points-mode-custom] {
  margin-top: 8px;
}

.form-group [data-points-mode-custom][hidden] {
  display: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
table input:focus,
table select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.checkbox-group {
  align-content: end;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 4px;
  border: 1px solid #d8e1de;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.discipline-form {
  margin-bottom: 16px;
}

.discipline-section + .discipline-section {
  margin-top: 12px;
}

.discipline-section-grid {
  display: grid;
  gap: 8px 10px;
}

.discipline-section-grid-basic {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.discipline-section-grid-settings {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.discipline-form .form-group {
  align-content: start;
}

.discipline-form .form-group label {
  font-size: 14px;
}

.discipline-form .form-group input,
.discipline-form .form-group select,
.discipline-form .form-group textarea {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
}

.discipline-form .form-group textarea {
  min-height: 96px;
}

.discipline-form .form-group small {
  font-size: 12px;
  line-height: 1.35;
}

.discipline-form .checkbox-group {
  align-content: center;
}

.discipline-form .checkbox-group label {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #26413a;
}

.discipline-form .checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  border-radius: 5px;
}

.discipline-toggle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.discipline-toggle-row .checkbox-group {
  display: flex;
  align-items: center;
}

.discipline-assignment-form {
  margin-bottom: 16px;
}

.discipline-assignment-table th,
.discipline-assignment-table td {
  padding: 8px 10px;
  vertical-align: top;
}

.discipline-assignment-table td small {
  display: block;
  margin-top: 4px;
  white-space: normal;
}

.discipline-assignment-table input[type="text"],
.discipline-assignment-table input[type="number"],
.discipline-assignment-table input[type="date"],
.discipline-assignment-table select {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.discipline-assignment-table input[type="checkbox"] {
  margin-top: 10px;
}

.discipline-assignment-table td:nth-child(1),
.discipline-assignment-table td:nth-child(3),
.discipline-assignment-table td:nth-child(4),
.discipline-assignment-table td:last-child {
  text-align: center;
  vertical-align: middle;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-card > .form-actions:last-child,
.panel > .form-actions:last-child {
  margin-bottom: 0;
}

.form-actions-inline {
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(15, 118, 110, 0.12);
}

.button:hover {
  filter: brightness(1.04);
}

.button-secondary {
  background: #dce5e1;
  color: #28413c;
  box-shadow: none;
}

.button-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.flash {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}

.flash-success {
  border-left: 5px solid #16a34a;
}

.flash-error {
  border-left: 5px solid #dc2626;
}

.flash ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
  width: max-content;
  min-width: 100%;
}

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

.responsive-table thead,
.responsive-table tbody {
  white-space: nowrap;
}

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

th {
  position: sticky;
  top: 0;
  background: #f3f7f5;
  color: #40554f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) td {
  background: #fbfcfc;
}

tbody tr:hover td {
  background: #f4fbf9;
}

tbody tr:last-child td {
  border-bottom: 0;
}

table input[type="checkbox"] {
  transform: none;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #9fb1ab;
  border-radius: 6px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
  flex: 0 0 18px;
  vertical-align: middle;
}

input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  background: transparent;
  transform: translate(-50%, -58%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease-in-out;
}

input[type="checkbox"]:checked {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

input[type="checkbox"]:checked::before {
  transform: translate(-50%, -58%) rotate(45deg) scale(1);
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

input[type="checkbox"]:hover {
  transform: none;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.badge-type-time {
  background: #e0f2fe;
  color: #075985;
}

.badge-type-score {
  background: #dcfce7;
  color: #166534;
}

.badge-type-rank {
  background: #fef3c7;
  color: #92400e;
}

.badge-type-default {
  background: #e5e7eb;
  color: #374151;
}

.panel + .panel {
  margin-top: 14px;
}

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

.stack-item {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}

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

.stack-item-head strong {
  font-size: 15px;
}

.stack-item-head span {
  color: var(--muted);
  font-weight: 600;
}

.stack-item-year {
  min-width: 4rem;
  text-align: right;
}

.stack-item-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-item-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: #edf6f3;
  color: #26413a;
  font-weight: 600;
}

.stack-item-points {
  margin-left: auto;
  min-width: 7.5rem;
  justify-content: flex-end;
  text-align: right;
  background: #dff3ec;
}

.setup-guide {
  border-color: rgba(15, 118, 110, 0.12);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(243,249,247,.96) 100%);
}

.setup-guide-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.setup-guide-item {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}

.setup-guide-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #18423d;
}

.setup-guide-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.member-avatar,
.avatar-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: #e5e7eb;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(20,35,31,.08);
}

.member-avatar-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .04em;
}

.member-table th,
.member-table td {
  padding-top: 6px;
  padding-bottom: 6px;
}

.member-table {
  min-width: 980px;
}

.member-table td:first-child,
.member-table th:first-child {
  width: 76px;
}

.member-table th:nth-child(2),
.member-table td:nth-child(2) {
  width: 180px;
}

.member-table th:nth-child(3),
.member-table td:nth-child(3) {
  width: 160px;
}

.member-table th:nth-child(4),
.member-table td:nth-child(4) {
  width: 160px;
}

.member-table th:nth-child(5),
.member-table td:nth-child(5) {
  width: 90px;
}

.member-table th:last-child,
.member-table td:last-child {
  width: 180px;
}

.member-table td:nth-child(2) a,
.member-table td:nth-child(3) a,
.member-table td:nth-child(4) a {
  color: inherit;
  text-decoration: none;
}

.member-table td:nth-child(2) a:hover,
.member-table td:nth-child(3) a:hover,
.member-table td:nth-child(4) a:hover {
  color: var(--brand-dark);
}

.member-table .member-avatar,
.member-table .member-avatar-placeholder {
  width: 42px;
  height: 42px;
}

.member-table .member-avatar-placeholder {
  font-size: 14px;
}

.member-table td[data-label="Name"],
.member-table td:nth-child(2),
.member-table td:nth-child(3),
.member-table td:nth-child(4) {
  font-weight: 600;
}

.member-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 42px;
  width: 100%;
  white-space: nowrap;
}

.member-actions form {
  margin: 0;
}

.icon-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  white-space: nowrap;
}

.icon-actions form {
  margin: 0;
}

.icon-action-link,
.icon-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d8e1de;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #28413c;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.icon-action-link:hover,
.icon-action-button:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.06);
  color: var(--brand-dark);
}

.icon-action-danger {
  color: #b42318;
}

.icon-action-danger:hover {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.06);
  color: #8f1b13;
}

.icon-action-link svg,
.icon-action-button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.avatar-preview {
  margin-top: 8px;
}

.public-rankings {
  max-width: 1360px;
}

.public-hero {
  margin-bottom: 28px;
}

.public-kicker {
  color: var(--brand);
}

.public-tournament + .public-tournament {
  margin-top: 28px;
}

.public-tournament-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.public-tournament-head h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2vw, 32px);
}

.public-tournament-head p {
  margin: 0;
  color: var(--muted);
}

.public-tournament-head-compact {
  margin-bottom: 12px;
}

.public-tournament-title-block {
  display: grid;
  gap: 6px;
}

.public-stats-head {
  align-items: flex-start;
}

.public-context-card {
  margin-bottom: 14px;
}

.public-context-card .public-tournament-head {
  margin-bottom: 0;
}

.public-context-card .public-tournament-head h2 {
  margin-bottom: 4px;
  font-size: clamp(22px, 1.7vw, 28px);
}

.public-stats-scope-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.public-meta-cards {
  grid-template-columns: repeat(2, minmax(180px, 260px));
  margin-bottom: 18px;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.public-filter-bar {
  margin-bottom: 24px;
}

.public-page .panel,
.public-page .card {
  border-radius: 12px;
}

.public-header-actions {
  margin-bottom: 20px;
}

.public-header-actions .button {
  min-height: 36px;
}

.public-page .tab-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
}

.public-page .podium-card {
  border-radius: 12px;
}

.portal-all-years .public-portal-main-tabs {
  display: none;
}

.public-tab-hint p {
  margin: 0;
  color: var(--muted);
}

.public-page.is-loading .tab-panel,
.public-page.is-loading [data-public-portal-summary] {
  opacity: 0.76;
  transition: opacity .24s cubic-bezier(.2, .7, .2, 1);
}

.portal-refresh {
  animation: portal-refresh-in .26s cubic-bezier(.2, .7, .2, 1);
}

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

[data-public-portal-status] {
  margin-bottom: 14px;
}

.public-filter-form {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.public-filter-form .form-group {
  min-width: min(100%, 220px);
}

.public-page [data-public-tournament-select] {
  width: 100%;
}

.public-page .public-filter-bar .public-filter-form {
  width: 100%;
}

.public-page .public-filter-bar .form-group {
  width: min(100%, 460px);
  min-width: min(100%, 460px);
  flex: 0 0 min(100%, 460px);
}

.public-link {
  text-decoration: none;
  font-weight: 700;
}

.public-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.public-link:hover {
  color: var(--brand-dark);
}

.public-stats-cards {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.public-api-hint {
  display: grid;
  gap: 8px;
}

.public-api-hint code {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  background: #edf3f1;
  color: #24433c;
}

.public-tournament-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.public-meta-pill,
.public-tournament-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf6f3;
  color: #26413a;
  font-size: 13px;
  font-weight: 600;
}

.public-meta-pill-muted {
  background: #f4f8f7;
  color: #4f6660;
}

.public-tournament-meta-compact {
  margin-top: 2px;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.podium-card {
  padding: 18px;
  border-radius: 20px;
  color: #0d1b18;
  box-shadow: var(--shadow-soft);
}

.podium-1 { background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%); }
.podium-2 { background: linear-gradient(180deg, #e5e7eb 0%, #cbd5e1 100%); }
.podium-3 { background: linear-gradient(180deg, #fed7aa 0%, #fb923c 100%); }

.podium-rank {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.podium-points {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 800;
}

.podium-meta {
  margin-top: 6px;
  color: rgba(13, 27, 24, 0.72);
}

.podium-team-name {
  font-size: 22px;
  font-weight: 800;
}

.public-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.public-member-chip span {
  display: grid;
  gap: 4px;
}

.public-member-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.public-member-chip strong,
.public-member-chip small,
.public-link-button strong,
.public-link-button small {
  text-decoration: none;
}

.public-member-chip small {
  color: rgba(20, 35, 31, 0.65);
}

.public-member-chip .podium-lead {
  color: #10211d;
  font-size: 14px;
  font-weight: 800;
}

.public-member-chip .podium-submeta {
  color: rgba(13, 27, 24, 0.72);
  font-size: 11px;
}

.podium-person .member-avatar,
.podium-person .member-avatar-placeholder {
  width: 40px;
  height: 40px;
  min-width: 40px;
  font-size: 14px;
}

.public-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef5f2;
  color: #18423d;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(24, 66, 61, 0.08);
}

.public-member-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.public-member-stat:hover {
  color: var(--brand-dark);
}

.public-member-stat-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  box-shadow: inset 0 0 0 1px rgba(20, 35, 31, 0.06);
}

.public-member-stat-avatar.member-avatar-placeholder {
  font-size: 12px;
}

.public-member-stat span {
  display: grid;
  gap: 4px;
  line-height: 1.25;
}

.public-responsive-table td[data-label="Rang"] {
  width: 44px;
}

.public-responsive-table td[data-label="Mitglied"] {
  min-width: 180px;
}

.public-podium-table {
  margin-top: 14px;
}

.public-podium-table th:first-child,
.public-podium-table td:first-child {
  width: 48px;
}

.public-podium-table th:nth-child(3),
.public-podium-table td:nth-child(3) {
  width: 72px;
}

.public-podium-table th:nth-child(4),
.public-podium-table td:nth-child(4),
.public-podium-table th:nth-child(5),
.public-podium-table td:nth-child(5),
.public-podium-table th:nth-child(6),
.public-podium-table td:nth-child(6) {
  width: 72px;
}

.public-standings-table {
  width: 100%;
  table-layout: fixed;
}

.public-standings-table .public-member-chip .member-avatar,
.public-standings-table .public-member-chip .member-avatar-placeholder {
  width: 34px;
  height: 34px;
  min-width: 34px;
  font-size: 12px;
}

.public-standings-table th,
.public-standings-table td {
  vertical-align: middle;
}

.public-standings-table th {
  white-space: nowrap;
}

.public-standings-table-individual th:nth-child(1),
.public-standings-table-individual td:nth-child(1) {
  width: 48px;
  text-align: center;
}

.public-standings-table-individual th:nth-child(3),
.public-standings-table-individual td:nth-child(3) {
  width: 72px;
  text-align: right;
}

.public-standings-table-individual th:nth-child(4),
.public-standings-table-individual td:nth-child(4) {
  width: 56px;
  text-align: right;
}

.public-standings-table-team th:nth-child(1),
.public-standings-table-team td:nth-child(1) {
  width: 48px;
  text-align: center;
}

.public-standings-table-team th:nth-child(3),
.public-standings-table-team td:nth-child(3) {
  width: 56px;
  text-align: right;
}

.public-standings-table-team th:nth-child(4),
.public-standings-table-team td:nth-child(4),
.public-standings-table-team th:nth-child(5),
.public-standings-table-team td:nth-child(5) {
  width: 72px;
  text-align: right;
}

.public-responsive-table {
  width: 100%;
}

.public-scroll-table {
  width: max-content;
  min-width: 100%;
}

.public-discipline-results-table th,
.public-discipline-results-table td {
  white-space: nowrap;
}

.portal-accordion {
  display: grid;
  gap: 14px;
}

.portal-accordion-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  margin: 0 0 12px;
}

.portal-accordion-item:last-child {
  margin-bottom: 0;
}

.portal-accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.portal-accordion-item summary::-webkit-details-marker {
  display: none;
}

.portal-accordion-item[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

.portal-accordion-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.portal-accordion-body {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.portal-accordion-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.member-modal[hidden] {
  display: none;
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 18, 0.56);
}

.member-modal-card {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: 18px;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.member-modal-close-row {
  position: sticky;
  top: 8px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.member-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 229, 225, 0.96);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font: inherit;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.member-modal-close span {
  display: block;
  transform: translateY(-1px);
}

.member-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-profile-head-card {
  padding: 16px 18px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #143533 0%, #1a4540 52%, #0f2f31 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.member-profile-head-card .member-avatar,
.member-profile-head-card .member-avatar-placeholder {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.member-profile-head h3 {
  margin-bottom: 4px;
}

.member-profile-head-card h1,
.member-profile-head-card h3 {
  color: #f8fcfb;
}

.member-profile-section {
  margin-bottom: 14px;
}

.member-profile-section-hero {
  margin-bottom: 12px;
}

.member-profile-intro {
  display: grid;
  gap: 4px;
}

.member-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.member-profile-meta p {
  margin: 0;
}

.member-profile-head-card .member-profile-meta {
  margin-top: 4px;
}

.member-profile-head-card .member-profile-meta p {
  color: rgba(248, 252, 251, 0.88);
}

.member-profile-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.member-profile-head-card .member-profile-kicker {
  color: rgba(220, 235, 230, 0.76);
}

.member-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
  justify-self: flex-start;
}

.member-status-badge.is-active {
  background: #dcfce7;
  color: #166534;
}

.member-status-badge.is-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.member-profile-panel .public-filter-form {
  margin-bottom: 14px;
}

.member-profile-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 248, 247, 0.75);
}

.member-profile-controls .form-group {
  margin-bottom: 0;
  min-width: 220px;
}

.member-profile-controls .form-group-align-end {
  margin-left: auto;
}

.form-group-align-end {
  display: flex;
  align-items: flex-end;
}

.member-profile-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.member-profile-switches .button {
  min-height: 34px;
  padding: 0 12px;
}

.member-section-head {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.member-section-head h4 {
  margin: 0;
  font-size: 18px;
}

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

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

.member-summary-sections {
  display: grid;
  gap: 12px;
}

.member-summary-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 249, 248, 0.82);
}

.member-summary-section h5 {
  margin: 0;
  color: #516762;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.member-summary-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
}

.member-summary-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.member-summary-item strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

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

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(248, 252, 250, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .mobile-topbar-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8e1de;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    justify-content: flex-start;
  }

  .menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
  }

  .menu-toggle strong {
    font-size: 14px;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(88vw, 320px);
    min-height: 100vh;
    padding: 18px;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(7, 16, 18, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  body.menu-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .content, .public-wrapper {
    padding: 22px;
    overflow-x: hidden;
  }
}

@media (max-width: 900px) {
  .cards, .form-grid, .detail-grid {
    grid-template-columns: 1fr;
  }

  .public-grid,
  .public-meta-cards,
  .setup-guide-grid {
    grid-template-columns: 1fr;
  }

  .discipline-section-grid-basic,
  .discipline-section-grid-settings {
    grid-template-columns: 1fr;
  }

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

  .portal-accordion-item summary {
    flex-direction: row;
    align-items: center;
  }

  .table-toolbar {
    justify-content: stretch;
  }

  .table-search {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1280px) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .content, .public-wrapper {
    padding: 28px;
  }
}

@media (max-width: 680px) {
  .content, .public-wrapper {
    padding: 16px;
  }

  .card, .form-card, .panel, .detail-card {
    padding: 16px;
    border-radius: 18px;
  }

  .nav-link {
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .public-wrapper {
    padding: 10px;
  }

  .public-wrapper .panel,
  .public-wrapper .card {
    padding: 14px;
    border-radius: 10px;
  }

  .public-hero,
  .page-head {
    margin-bottom: 16px;
  }

  .public-filter-bar {
    margin-bottom: 16px;
  }

  .public-stats-head {
    flex-direction: column;
    gap: 10px;
  }

  .public-stats-scope-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .public-stats-scope-actions .button {
    min-width: 0;
  }

  .public-header-actions {
    margin-bottom: 14px;
  }

  .member-profile-panel .public-filter-form {
    margin-bottom: 12px;
  }

  .member-profile-controls {
    padding: 10px;
  }

  .member-profile-controls .form-group {
    min-width: 0;
    width: 100%;
  }

  .member-profile-controls .form-group-align-end {
    margin-left: 0;
  }

  .portal-accordion-item summary,
  .portal-accordion-body {
    padding: 10px 12px;
  }

  .portal-accordion-item {
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .portal-accordion {
    gap: 10px;
  }

  .portal-accordion-item:last-child {
    margin-bottom: 0;
  }

  .public-tournament-head h2 {
    margin-bottom: 4px;
  }

  .public-meta-pill,
  .public-tournament-meta span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
  }

  .member-modal-card {
    width: min(100vw - 12px, 940px);
    margin: 6px auto;
    padding: 12px;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .content,
  .content-inner,
  .public-wrapper,
  .panel,
  .form-card,
  .detail-card,
  .card {
    min-width: 0;
  }

  .responsive-table .member-avatar,
  .responsive-table .member-avatar-placeholder {
    width: 48px;
    height: 48px;
  }

  .member-profile-head {
    align-items: flex-start;
  }

  .member-profile-meta {
    align-items: flex-start;
  }

  .form-group-align-end {
    align-items: stretch;
  }

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

@media (max-width: 420px) {
  .page-head h1,
  .panel h2 {
    font-size: clamp(22px, 8vw, 30px);
  }

  .public-page h2 {
    font-size: clamp(18px, 6.5vw, 24px);
  }

  .member-section-head h4 {
    font-size: 16px;
  }

  .podium-card {
    padding: 14px;
    border-radius: 16px;
  }

  .podium-rank {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .podium-points {
    margin-top: 8px;
    font-size: 18px;
  }

  .podium-team-name {
    font-size: 18px;
  }

  .public-standings-table th,
  .public-standings-table td {
    padding: 11px 6px;
    font-size: 12px;
  }

  .public-standings-table-individual th:nth-child(1),
  .public-standings-table-individual td:nth-child(1) {
    width: 34px;
  }

  .public-standings-table-individual th:nth-child(3),
  .public-standings-table-individual td:nth-child(3) {
    width: 52px;
  }

  .public-standings-table-individual th:nth-child(4),
  .public-standings-table-individual td:nth-child(4) {
    width: 40px;
  }

  .public-standings-table-team th:nth-child(1),
  .public-standings-table-team td:nth-child(1) {
    width: 34px;
  }

  .public-standings-table-team th:nth-child(3),
  .public-standings-table-team td:nth-child(3) {
    width: 44px;
  }

  .public-standings-table-team th:nth-child(4),
  .public-standings-table-team td:nth-child(4) {
    width: 52px;
  }

  .public-standings-table-team th:nth-child(5),
  .public-standings-table-team td:nth-child(5) {
    width: 40px;
  }

  .public-member-chip {
    gap: 6px;
  }

  .public-member-stat {
    gap: 6px;
  }

  .public-member-chip .member-avatar,
  .public-member-chip .member-avatar-placeholder {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 12px;
  }

  .public-member-chip span {
    gap: 2px;
    min-width: 0;
  }

  .public-member-chip strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .public-member-chip small {
    font-size: 10px;
    line-height: 1.2;
  }

  .public-member-chip .podium-lead {
    font-size: 12px;
  }

  .public-member-chip .podium-submeta {
    font-size: 10px;
  }

  .public-member-stat-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .public-member-stat-avatar.member-avatar-placeholder {
    font-size: 11px;
  }

  .public-rank-badge {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .member-profile-head-card .member-avatar,
  .member-profile-head-card .member-avatar-placeholder {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex-basis: 56px;
  }
}

@media (min-width: 375px) and (max-width: 420px) {
  .public-standings-table th,
  .public-standings-table td {
    padding: 11px 7px;
    font-size: 12px;
  }

  .public-standings-table-individual th:nth-child(1),
  .public-standings-table-individual td:nth-child(1) {
    width: 36px;
  }

  .public-standings-table-individual th:nth-child(3),
  .public-standings-table-individual td:nth-child(3) {
    width: 56px;
  }

  .public-standings-table-individual th:nth-child(4),
  .public-standings-table-individual td:nth-child(4) {
    width: 44px;
  }

  .public-standings-table-team th:nth-child(1),
  .public-standings-table-team td:nth-child(1) {
    width: 36px;
  }

  .public-standings-table-team th:nth-child(3),
  .public-standings-table-team td:nth-child(3) {
    width: 46px;
  }

  .public-standings-table-team th:nth-child(4),
  .public-standings-table-team td:nth-child(4) {
    width: 56px;
  }

  .public-standings-table-team th:nth-child(5),
  .public-standings-table-team td:nth-child(5) {
    width: 44px;
  }
}

@media (max-width: 560px) {
  .public-responsive-table,
  .public-responsive-table thead,
  .public-responsive-table tbody,
  .public-responsive-table tr,
  .public-responsive-table th,
  .public-responsive-table td {
    display: block;
  }

  .public-responsive-table thead {
    display: none;
  }

  .public-responsive-table {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .public-responsive-table tbody {
    display: grid;
    gap: 8px;
  }

  .public-responsive-table tr {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
  }

  .public-responsive-table td {
    display: grid;
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 5px 0;
    border: 0;
    text-align: left !important;
  }

  .public-responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .public-responsive-table td[data-label="Avatar"] {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .public-responsive-table td[data-label="Avatar"]::before {
    display: none;
  }

  .public-scroll-table,
  .public-scroll-table thead,
  .public-scroll-table tbody,
  .public-scroll-table tr,
  .public-scroll-table th,
  .public-scroll-table td {
    display: table-cell;
  }

  .public-scroll-table td::before {
    display: none;
    content: none;
  }

  .public-scroll-table {
    display: table;
  }

  .public-scroll-table thead {
    display: table-header-group;
  }

  .public-scroll-table tbody {
    display: table-row-group;
  }

  .public-scroll-table tr {
    display: table-row;
  }

  .public-scroll-table th,
  .public-scroll-table td {
    padding: 10px 10px;
    font-size: 12px;
  }
}
